url
stringlengths
58
61
repository_url
stringclasses
1 value
labels_url
stringlengths
72
75
comments_url
stringlengths
67
70
events_url
stringlengths
65
68
html_url
stringlengths
46
51
id
int64
599M
3.28B
node_id
stringlengths
18
32
number
int64
1
7.71k
title
stringlengths
1
290
user
dict
labels
listlengths
0
4
state
stringclasses
2 values
locked
bool
1 class
assignee
dict
assignees
listlengths
0
4
milestone
dict
comments
listlengths
0
30
created_at
timestamp[us, tz=UTC]date
2020-04-14 10:18:02
2025-07-30 11:34:53
updated_at
timestamp[us, tz=UTC]date
2020-04-27 16:04:17
2025-07-31 05:22:35
closed_at
timestamp[us, tz=UTC]date
2020-04-14 12:01:40
2025-07-30 14:22:21
author_association
stringclasses
4 values
type
null
active_lock_reason
null
sub_issues_summary
dict
body
stringlengths
0
228k
closed_by
dict
reactions
dict
timeline_url
stringlengths
67
70
performed_via_github_app
null
state_reason
stringclasses
4 values
draft
float64
0
1
pull_request
dict
created_at_dt
timestamp[us, tz=UTC]date
2020-04-14 10:18:02
2025-07-30 11:34:53
closed_at_dt
timestamp[us, tz=UTC]date
2020-04-14 12:01:40
2025-07-30 14:22:21
time_to_close
duration[us]
is_pull_request
bool
2 classes
https://api.github.com/repos/huggingface/datasets/issues/7707
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7707/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7707/comments
https://api.github.com/repos/huggingface/datasets/issues/7707/events
https://github.com/huggingface/datasets/issues/7707
3,271,867,998
I_kwDODunzps7DBL5e
7,707
load_dataset() in 4.0.0 failed when decoding audio
{ "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "Hi @lhoestq . Would you please have a look at it? I use the official NV Docker ([NV official docker image](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch): `nvcr.io/nvidia/pytorch:25.06-py3`) on A100 and encountered this issue, but I don't know how to fix it.", "created_at": "2025-07-29T03:27:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3130505493", "id": 3130505493, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps66l7kV", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3130505493/reactions" }, "updated_at": "2025-07-29T05:48:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3130505493", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Use !pip install -U datasets[audio] rather than !pip install datasets\n\nI got the solution from this link [https://github.com/huggingface/datasets/issues/7678](https://github.com/huggingface/datasets/issues/7678), and it processes the data; however, it led to certain transformer importnerrors", "created_at": "2025-07-29T13:50:33Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3132627446", "id": 3132627446, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps66uBn2", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3132627446/reactions" }, "updated_at": "2025-07-30T15:11:23Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3132627446", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107439558?v=4", "events_url": "https://api.github.com/users/asantewaa-bremang/events{/privacy}", "followers_url": "https://api.github.com/users/asantewaa-bremang/followers", "following_url": "https://api.github.com/users/asantewaa-bremang/following{/other_user}", "gists_url": "https://api.github.com/users/asantewaa-bremang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/asantewaa-bremang", "id": 107439558, "login": "asantewaa-bremang", "node_id": "U_kgDOBmdlxg", "organizations_url": "https://api.github.com/users/asantewaa-bremang/orgs", "received_events_url": "https://api.github.com/users/asantewaa-bremang/received_events", "repos_url": "https://api.github.com/users/asantewaa-bremang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/asantewaa-bremang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/asantewaa-bremang/subscriptions", "type": "User", "url": "https://api.github.com/users/asantewaa-bremang", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> https://github.com/huggingface/datasets/issues/7678\n\nHi @asantewaa-bremang . Thanks for your reply, but sadly it does not work for me.", "created_at": "2025-07-30T01:06:25Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3134550394", "id": 3134550394, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps661XF6", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3134550394/reactions" }, "updated_at": "2025-07-30T01:06:25Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3134550394", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "It looks like a torchcodec issue, have you tried to look at the torchcodec issues here in case someone has the same issue ? https://github.com/pytorch/torchcodec/issues\n\notherwise feel free to open a new issue there", "created_at": "2025-07-30T15:13:48Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3136790067", "id": 3136790067, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps66954z", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136790067/reactions" }, "updated_at": "2025-07-30T15:13:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136790067", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@jiqing-feng, are you running the code on Colab? If you are, you should restart after making this installation ! pip install -U datasets[audio]. ", "created_at": "2025-07-30T16:38:50Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3137087580", "id": 3137087580, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps66_Chc", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3137087580/reactions" }, "updated_at": "2025-07-30T16:38:50Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3137087580", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107439558?v=4", "events_url": "https://api.github.com/users/asantewaa-bremang/events{/privacy}", "followers_url": "https://api.github.com/users/asantewaa-bremang/followers", "following_url": "https://api.github.com/users/asantewaa-bremang/following{/other_user}", "gists_url": "https://api.github.com/users/asantewaa-bremang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/asantewaa-bremang", "id": 107439558, "login": "asantewaa-bremang", "node_id": "U_kgDOBmdlxg", "organizations_url": "https://api.github.com/users/asantewaa-bremang/orgs", "received_events_url": "https://api.github.com/users/asantewaa-bremang/received_events", "repos_url": "https://api.github.com/users/asantewaa-bremang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/asantewaa-bremang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/asantewaa-bremang/subscriptions", "type": "User", "url": "https://api.github.com/users/asantewaa-bremang", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> [@jiqing-feng](https://github.com/jiqing-feng), are you running the code on Colab? If you are, you should restart after making this installation ! pip install -U datasets[audio].\n\nNo, I ran the script on the A100 instance locally.", "created_at": "2025-07-31T01:02:58Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3138255744", "id": 3138255744, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps67DfuA", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138255744/reactions" }, "updated_at": "2025-07-31T01:02:58Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138255744", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> It looks like a torchcodec issue, have you tried to look at the torchcodec issues here in case someone has the same issue ? https://github.com/pytorch/torchcodec/issues\n> \n> otherwise feel free to open a new issue there\n\nThanks! I've opened a new issue on torchcodec. Could we have a fallback implementation without torchcodec (just like datasets==3.6.0) ?", "created_at": "2025-07-31T03:00:54Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3138406828", "id": 3138406828, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps67EEms", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138406828/reactions" }, "updated_at": "2025-07-31T03:01:09Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138406828", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "> Thanks! I've opened a new issue on torchcodec. Could we have a fallback implementation without torchcodec (just like datasets==3.6.0) ?\n\nFor now I'd recommend using `datasets==3.6.0` if this issue is blocking for you", "created_at": "2025-07-31T16:17:43Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3140560731", "id": 3140560731, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps67MSdb", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3140560731/reactions" }, "updated_at": "2025-07-31T16:17:43Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3140560731", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Resolved by installing the pre-release torchcodec. Thanks!", "created_at": "2025-08-01T05:15:45Z", "html_url": "https://github.com/huggingface/datasets/issues/7707#issuecomment-3142202121", "id": 3142202121, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7707", "node_id": "IC_kwDODunzps67SjMJ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3142202121/reactions" }, "updated_at": "2025-08-01T05:15:45Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3142202121", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/107918818?v=4", "events_url": "https://api.github.com/users/jiqing-feng/events{/privacy}", "followers_url": "https://api.github.com/users/jiqing-feng/followers", "following_url": "https://api.github.com/users/jiqing-feng/following{/other_user}", "gists_url": "https://api.github.com/users/jiqing-feng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiqing-feng", "id": 107918818, "login": "jiqing-feng", "node_id": "U_kgDOBm614g", "organizations_url": "https://api.github.com/users/jiqing-feng/orgs", "received_events_url": "https://api.github.com/users/jiqing-feng/received_events", "repos_url": "https://api.github.com/users/jiqing-feng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiqing-feng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiqing-feng/subscriptions", "type": "User", "url": "https://api.github.com/users/jiqing-feng", "user_view_type": "public" } } ]
2025-07-29T03:25:03Z
2025-07-31T03:01:09Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Cannot decode audio data. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation") print(dataset[0]["audio"]["array"]) ``` 1st round run, got ``` File "/usr/local/lib/python3.12/dist-packages/datasets/features/audio.py", line 172, in decode_example raise ImportError("To support decoding audio data, please install 'torchcodec'.") ImportError: To support decoding audio data, please install 'torchcodec'. ``` After `pip install torchcodec` and run, got ``` File "/usr/local/lib/python3.12/dist-packages/torchcodec/_core/_metadata.py", line 16, in <module> from torchcodec._core.ops import ( File "/usr/local/lib/python3.12/dist-packages/torchcodec/_core/ops.py", line 84, in <module> load_torchcodec_shared_libraries() File "/usr/local/lib/python3.12/dist-packages/torchcodec/_core/ops.py", line 69, in load_torchcodec_shared_libraries raise RuntimeError( RuntimeError: Could not load libtorchcodec. Likely causes: 1. FFmpeg is not properly installed in your environment. We support versions 4, 5, 6 and 7. 2. The PyTorch version (2.8.0a0+5228986c39.nv25.06) is not compatible with this version of TorchCodec. Refer to the version compatibility table: https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec. 3. Another runtime dependency; see exceptions below. The following exceptions were raised as we tried to load libtorchcodec: [start of libtorchcodec loading traceback] FFmpeg version 7: libavutil.so.59: cannot open shared object file: No such file or directory FFmpeg version 6: libavutil.so.58: cannot open shared object file: No such file or directory FFmpeg version 5: libavutil.so.57: cannot open shared object file: No such file or directory FFmpeg version 4: libavutil.so.56: cannot open shared object file: No such file or directory [end of libtorchcodec loading traceback]. ``` After `apt update && apt install ffmpeg -y`, got ``` Traceback (most recent call last): File "/workspace/jiqing/test_datasets.py", line 4, in <module> print(dataset[0]["audio"]["array"]) ~~~~~~~^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/arrow_dataset.py", line 2859, in __getitem__ return self._getitem(key) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/arrow_dataset.py", line 2841, in _getitem formatted_output = format_table( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/formatting/formatting.py", line 657, in format_table return formatter(pa_table, query_type=query_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/formatting/formatting.py", line 410, in __call__ return self.format_row(pa_table) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/formatting/formatting.py", line 459, in format_row row = self.python_features_decoder.decode_row(row) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/formatting/formatting.py", line 223, in decode_row return self.features.decode_example(row, token_per_repo_id=self.token_per_repo_id) if self.features else row ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/features/features.py", line 2093, in decode_example column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/features/features.py", line 1405, in decode_nested_example return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/datasets/features/audio.py", line 198, in decode_example audio = AudioDecoder(bytes, stream_index=self.stream_index, sample_rate=self.sampling_rate) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torchcodec/decoders/_audio_decoder.py", line 62, in __init__ self._decoder = create_decoder(source=source, seek_mode="approximate") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torchcodec/decoders/_decoder_utils.py", line 33, in create_decoder return core.create_from_bytes(source, seek_mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torchcodec/_core/ops.py", line 144, in create_from_bytes return create_from_tensor(buffer, seek_mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torch/_ops.py", line 756, in __call__ return self._op(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ NotImplementedError: Could not run 'torchcodec_ns::create_from_tensor' with arguments from the 'CPU' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'torchcodec_ns::create_from_tensor' is only available for these backends: [Meta, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradMPS, AutogradXPU, AutogradHPU, AutogradLazy, AutogradMTIA, AutogradMAIA, AutogradMeta, Tracer, AutocastCPU, AutocastMTIA, AutocastMAIA, AutocastXPU, AutocastMPS, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher]. Meta: registered at /dev/null:214 [kernel] BackendSelect: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/core/BackendSelectFallbackKernel.cpp:3 [backend fallback] Python: registered at /__w/torchcodec/torchcodec/pytorch/torchcodec/src/torchcodec/_core/custom_ops.cpp:694 [kernel] FuncTorchDynamicLayerBackMode: registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/DynamicLayer.cpp:479 [backend fallback] Functionalize: registered at /opt/pytorch/pytorch/aten/src/ATen/FunctionalizeFallbackKernel.cpp:349 [backend fallback] Named: registered at /opt/pytorch/pytorch/aten/src/ATen/core/NamedRegistrations.cpp:7 [backend fallback] Conjugate: registered at /opt/pytorch/pytorch/aten/src/ATen/ConjugateFallback.cpp:17 [backend fallback] Negative: registered at /opt/pytorch/pytorch/aten/src/ATen/native/NegateFallback.cpp:18 [backend fallback] ZeroTensor: registered at /opt/pytorch/pytorch/aten/src/ATen/ZeroTensorFallback.cpp:86 [backend fallback] ADInplaceOrView: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:104 [backend fallback] AutogradOther: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:63 [backend fallback] AutogradCPU: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:67 [backend fallback] AutogradCUDA: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:75 [backend fallback] AutogradXLA: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:87 [backend fallback] AutogradMPS: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:95 [backend fallback] AutogradXPU: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:71 [backend fallback] AutogradHPU: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:108 [backend fallback] AutogradLazy: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:91 [backend fallback] AutogradMTIA: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:79 [backend fallback] AutogradMAIA: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:83 [backend fallback] AutogradMeta: registered at /opt/pytorch/pytorch/aten/src/ATen/core/VariableFallbackKernel.cpp:99 [backend fallback] Tracer: registered at /opt/pytorch/pytorch/torch/csrc/autograd/TraceTypeManual.cpp:294 [backend fallback] AutocastCPU: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:322 [backend fallback] AutocastMTIA: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:466 [backend fallback] AutocastMAIA: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:504 [backend fallback] AutocastXPU: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:542 [backend fallback] AutocastMPS: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:209 [backend fallback] AutocastCUDA: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/autocast_mode.cpp:165 [backend fallback] FuncTorchBatched: registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/LegacyBatchingRegistrations.cpp:731 [backend fallback] BatchedNestedTensor: registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/LegacyBatchingRegistrations.cpp:758 [backend fallback] FuncTorchVmapMode: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/VmapModeRegistrations.cpp:27 [backend fallback] Batched: registered at /opt/pytorch/pytorch/aten/src/ATen/LegacyBatchingRegistrations.cpp:1075 [backend fallback] VmapMode: fallthrough registered at /opt/pytorch/pytorch/aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback] FuncTorchGradWrapper: registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/TensorWrapper.cpp:208 [backend fallback] PythonTLSSnapshot: registered at /opt/pytorch/pytorch/aten/src/ATen/core/PythonFallbackKernel.cpp:202 [backend fallback] FuncTorchDynamicLayerFrontMode: registered at /opt/pytorch/pytorch/aten/src/ATen/functorch/DynamicLayer.cpp:475 [backend fallback] PreDispatch: registered at /opt/pytorch/pytorch/aten/src/ATen/core/PythonFallbackKernel.cpp:206 [backend fallback] PythonDispatcher: registered at /opt/pytorch/pytorch/aten/src/ATen/core/PythonFallbackKernel.cpp:198 [backend fallback] ``` ### Expected behavior The result is ``` [0.00238037 0.0020752 0.00198364 ... 0.00042725 0.00057983 0.0010376 ] ``` on `datasets==3.6.0` ### Environment info [NV official docker image](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch): `nvcr.io/nvidia/pytorch:25.06-py3` ``` - `datasets` version: 4.0.0 - Platform: Linux-5.4.292-1.el8.elrepo.x86_64-x86_64-with-glibc2.39 - Python version: 3.12.3 - `huggingface_hub` version: 0.34.2 - PyArrow version: 19.0.1 - Pandas version: 2.2.3 - `fsspec` version: 2025.3.0 ```
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7707/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7707/timeline
null
null
null
null
2025-07-29T03:25:03Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7709
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7709/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7709/comments
https://api.github.com/repos/huggingface/datasets/issues/7709/events
https://github.com/huggingface/datasets/issues/7709
3,276,677,990
I_kwDODunzps7DTiNm
7,709
Release 4.0.0 breaks usage patterns of with_format
{ "avatar_url": "https://avatars.githubusercontent.com/u/9154515?v=4", "events_url": "https://api.github.com/users/wittenator/events{/privacy}", "followers_url": "https://api.github.com/users/wittenator/followers", "following_url": "https://api.github.com/users/wittenator/following{/other_user}", "gists_url": "https://api.github.com/users/wittenator/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wittenator", "id": 9154515, "login": "wittenator", "node_id": "MDQ6VXNlcjkxNTQ1MTU=", "organizations_url": "https://api.github.com/users/wittenator/orgs", "received_events_url": "https://api.github.com/users/wittenator/received_events", "repos_url": "https://api.github.com/users/wittenator/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wittenator/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wittenator/subscriptions", "type": "User", "url": "https://api.github.com/users/wittenator", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "This is a breaking change with 4.0 which introduced `Column` objects. To get the numpy array from a `Column` you can `col[i]`, `col[i:j]` or even `col[:]` if you want the full column as a numpy array:\n\n```python\nfrom datasets import load_dataset\ndataset = load_dataset(...)\ndataset = dataset.with_format(\"numpy\")\nprint(dataset[\"star\"][:].ndim)\n```", "created_at": "2025-07-30T15:41:59Z", "html_url": "https://github.com/huggingface/datasets/issues/7709#issuecomment-3136883161", "id": 3136883161, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7709", "node_id": "IC_kwDODunzps66-QnZ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136883161/reactions" }, "updated_at": "2025-07-30T15:41:59Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136883161", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-30T11:34:53Z
2025-07-30T15:41:59Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Previously it was possible to access a whole column that was e.g. in numpy format via `with_format` by indexing the column. Now this possibility seems to be gone with the new Column() class. As far as I see, this makes working on a whole column (in-memory) more complex, i.e. normalizing an in-memory dataset for which iterating would be too slow. Is this intended behaviour? I couldn't find much documentation on the intended usage of the new Column class yet. ### Steps to reproduce the bug Steps to reproduce: ``` from datasets import load_dataset dataset = load_dataset("lhoestq/demo1") dataset = dataset.with_format("numpy") print(dataset["star"].ndim) ``` ### Expected behavior Working on whole columns should be possible. ### Environment info - `datasets` version: 4.0.0 - Platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.36 - Python version: 3.12.11 - `huggingface_hub` version: 0.34.3 - PyArrow version: 21.0.0 - Pandas version: 2.3.1 - `fsspec` version: 2025.3.0
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7709/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7709/timeline
null
null
null
null
2025-07-30T11:34:53Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7706
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7706/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7706/comments
https://api.github.com/repos/huggingface/datasets/issues/7706/events
https://github.com/huggingface/datasets/pull/7706
3,271,129,240
PR_kwDODunzps6hC5uD
7,706
Reimplemented partial split download support (revival of #6832)
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": " Mario’s Patch (in PR #6832):\r\n```\r\ndef _make_split_generators_kwargs(self, prepare_split_kwargs):\r\n # Pass `pipeline` into `_split_generators()` from `prepare_split_kwargs` if\r\n # it's in the call signature of `_split_generators()`.\r\n # This allows for global preprocessing in beam.\r\n split_generators_kwargs = {}\r\n if \"pipeline\" in inspect.signature(self._split_generators).parameters:\r\n split_generators_kwargs[\"pipeline\"] = prepare_split_kwargs[\"pipeline\"]\r\n split_generators_kwargs.update(super()._make_split_generators_kwargs(prepare_split_kwargs))\r\n return split_generators_kwargs\r\n```\r\n\r\nIn the latest main(in my fork and og repo's main):\r\n```\r\ndef _make_split_generators_kwargs(self, prepare_split_kwargs):\r\n \"\"\"Get kwargs for `self._split_generators()` from `prepare_split_kwargs`.\"\"\"\r\n splits = prepare_split_kwargs.pop(\"splits\", None)\r\n if self._supports_partial_generation():\r\n return {\"splits\": splits}\r\n return {}\r\n```\r\nIt enables passing splits into _split_generators() only for builders that support it(if i am not wrong..). So ignored Beam logic for now!", "created_at": "2025-07-28T19:46:55Z", "html_url": "https://github.com/huggingface/datasets/pull/7706#issuecomment-3129110776", "id": 3129110776, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7706", "node_id": "IC_kwDODunzps66gnD4", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3129110776/reactions" }, "updated_at": "2025-07-28T19:47:24Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3129110776", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-07-28T19:40:40Z
2025-07-29T09:25:12Z
null
CONTRIBUTOR
null
null
null
(revival of #6832) https://github.com/huggingface/datasets/pull/7648#issuecomment-3084050130 Close https://github.com/huggingface/datasets/issues/4101, and more --- ### PR under work!!!!
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7706/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7706/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7706.diff", "html_url": "https://github.com/huggingface/datasets/pull/7706", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7706.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7706" }
2025-07-28T19:40:40Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7703
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7703/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7703/comments
https://api.github.com/repos/huggingface/datasets/issues/7703/events
https://github.com/huggingface/datasets/issues/7703
3,265,648,942
I_kwDODunzps7Cpdku
7,703
[Docs] map() example uses undefined `tokenizer` — causes NameError
{ "avatar_url": "https://avatars.githubusercontent.com/u/183703408?v=4", "events_url": "https://api.github.com/users/Sanjaykumar030/events{/privacy}", "followers_url": "https://api.github.com/users/Sanjaykumar030/followers", "following_url": "https://api.github.com/users/Sanjaykumar030/following{/other_user}", "gists_url": "https://api.github.com/users/Sanjaykumar030/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sanjaykumar030", "id": 183703408, "login": "Sanjaykumar030", "node_id": "U_kgDOCvMXcA", "organizations_url": "https://api.github.com/users/Sanjaykumar030/orgs", "received_events_url": "https://api.github.com/users/Sanjaykumar030/received_events", "repos_url": "https://api.github.com/users/Sanjaykumar030/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sanjaykumar030/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sanjaykumar030/subscriptions", "type": "User", "url": "https://api.github.com/users/Sanjaykumar030", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "I've submitted PR #7704 which adds documentation to clarify the behavior of `map()` when returning `None`.", "created_at": "2025-07-27T05:39:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7703#issuecomment-3124002704", "id": 3124002704, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7703", "node_id": "IC_kwDODunzps66NH-Q", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3124002704/reactions" }, "updated_at": "2025-07-27T05:39:18Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3124002704", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/183703408?v=4", "events_url": "https://api.github.com/users/Sanjaykumar030/events{/privacy}", "followers_url": "https://api.github.com/users/Sanjaykumar030/followers", "following_url": "https://api.github.com/users/Sanjaykumar030/following{/other_user}", "gists_url": "https://api.github.com/users/Sanjaykumar030/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sanjaykumar030", "id": 183703408, "login": "Sanjaykumar030", "node_id": "U_kgDOCvMXcA", "organizations_url": "https://api.github.com/users/Sanjaykumar030/orgs", "received_events_url": "https://api.github.com/users/Sanjaykumar030/received_events", "repos_url": "https://api.github.com/users/Sanjaykumar030/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sanjaykumar030/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sanjaykumar030/subscriptions", "type": "User", "url": "https://api.github.com/users/Sanjaykumar030", "user_view_type": "public" } } ]
2025-07-26T13:35:11Z
2025-07-27T09:44:35Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
## Description The current documentation example for `datasets.Dataset.map()` demonstrates batched processing but uses a `tokenizer` object without defining or importing it. This causes an error every time it's copied. Here is the problematic line: ```python # process a batch of examples >>> ds = ds.map(lambda example: tokenizer(example["text"]), batched=True) ``` This assumes the user has already set up a tokenizer, which contradicts the goal of having self-contained, copy-paste-friendly examples. ## Problem Users who copy and run the example as-is will encounter: ```python NameError: name 'tokenizer' is not defined ``` This breaks the flow for users and violates HuggingFace's documentation principle that examples should "work as expected" when copied directly. ## Proposal Update the example to include the required tokenizer setup using the Transformers library, like so: ```python from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased") ds_tokenized = ds.map(lambda example: tokenizer(example["text"]), batched=True) ``` This will help new users understand the workflow and apply the method correctly. ## Note This PR complements ongoing improvements like #7700, which clarifies multiprocessing in .map(). My change focuses on undefined tokenizer — causes NameError
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7703/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7703/timeline
null
null
null
null
2025-07-26T13:35:11Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7705
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7705/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7705/comments
https://api.github.com/repos/huggingface/datasets/issues/7705/events
https://github.com/huggingface/datasets/issues/7705
3,269,070,499
I_kwDODunzps7C2g6j
7,705
Can Not read installed dataset in dataset.load(.)
{ "avatar_url": "https://avatars.githubusercontent.com/u/52521165?v=4", "events_url": "https://api.github.com/users/HuangChiEn/events{/privacy}", "followers_url": "https://api.github.com/users/HuangChiEn/followers", "following_url": "https://api.github.com/users/HuangChiEn/following{/other_user}", "gists_url": "https://api.github.com/users/HuangChiEn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuangChiEn", "id": 52521165, "login": "HuangChiEn", "node_id": "MDQ6VXNlcjUyNTIxMTY1", "organizations_url": "https://api.github.com/users/HuangChiEn/orgs", "received_events_url": "https://api.github.com/users/HuangChiEn/received_events", "repos_url": "https://api.github.com/users/HuangChiEn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuangChiEn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuangChiEn/subscriptions", "type": "User", "url": "https://api.github.com/users/HuangChiEn", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "You can download the dataset locally using [huggingface_hub.snapshot_download](https://huggingface.co/docs/huggingface_hub/v0.34.3/en/package_reference/file_download#huggingface_hub.snapshot_download) and then do\n\n```python\ndataset = load_dataset(local_directory_path)\n```", "created_at": "2025-07-30T15:44:26Z", "html_url": "https://github.com/huggingface/datasets/issues/7705#issuecomment-3136890512", "id": 3136890512, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7705", "node_id": "IC_kwDODunzps66-SaQ", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136890512/reactions" }, "updated_at": "2025-07-30T15:44:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136890512", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> You can download the dataset locally using [huggingface_hub.snapshot_download](https://huggingface.co/docs/huggingface_hub/v0.34.3/en/package_reference/file_download#huggingface_hub.snapshot_download) and then do\n> \n> dataset = load_dataset(local_directory_path)\n\nIt's good suggestion, but my server env is network restriction. It can not directly fetch data from huggingface. I spent lot of time to download and transfer it to the server.\nSo, I attempt to make load_dataset connect to my local dataset. ", "created_at": "2025-08-05T01:22:10Z", "html_url": "https://github.com/huggingface/datasets/issues/7705#issuecomment-3152953771", "id": 3152953771, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7705", "node_id": "IC_kwDODunzps677kGr", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3152953771/reactions" }, "updated_at": "2025-08-05T01:22:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3152953771", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/52521165?v=4", "events_url": "https://api.github.com/users/HuangChiEn/events{/privacy}", "followers_url": "https://api.github.com/users/HuangChiEn/followers", "following_url": "https://api.github.com/users/HuangChiEn/following{/other_user}", "gists_url": "https://api.github.com/users/HuangChiEn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuangChiEn", "id": 52521165, "login": "HuangChiEn", "node_id": "MDQ6VXNlcjUyNTIxMTY1", "organizations_url": "https://api.github.com/users/HuangChiEn/orgs", "received_events_url": "https://api.github.com/users/HuangChiEn/received_events", "repos_url": "https://api.github.com/users/HuangChiEn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuangChiEn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuangChiEn/subscriptions", "type": "User", "url": "https://api.github.com/users/HuangChiEn", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Just Solved it few day before. Will post solution later...\nalso thanks folks quick reply..", "created_at": "2025-08-05T01:24:32Z", "html_url": "https://github.com/huggingface/datasets/issues/7705#issuecomment-3152956713", "id": 3152956713, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7705", "node_id": "IC_kwDODunzps677k0p", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3152956713/reactions" }, "updated_at": "2025-08-05T01:24:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3152956713", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/52521165?v=4", "events_url": "https://api.github.com/users/HuangChiEn/events{/privacy}", "followers_url": "https://api.github.com/users/HuangChiEn/followers", "following_url": "https://api.github.com/users/HuangChiEn/following{/other_user}", "gists_url": "https://api.github.com/users/HuangChiEn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuangChiEn", "id": 52521165, "login": "HuangChiEn", "node_id": "MDQ6VXNlcjUyNTIxMTY1", "organizations_url": "https://api.github.com/users/HuangChiEn/orgs", "received_events_url": "https://api.github.com/users/HuangChiEn/received_events", "repos_url": "https://api.github.com/users/HuangChiEn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuangChiEn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuangChiEn/subscriptions", "type": "User", "url": "https://api.github.com/users/HuangChiEn", "user_view_type": "public" } } ]
2025-07-28T09:43:54Z
2025-07-30T15:44:26Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
Hi, folks, I'm newbie in huggingface dataset api. As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset. code snippet : <img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4239-b1cf-145d74f125d1" /> data path : "/xxx/joseph/llava_ds/vlm_ds" it contains all video clips i want! <img width="1398" height="261" alt="Image" src="https://github.com/user-attachments/assets/bf213b66-e344-4311-97e7-bc209677ae77" /> i run the py script by <img width="1042" height="38" alt="Image" src="https://github.com/user-attachments/assets/8b3fcee4-e1a6-41b8-bee1-91567b00d9d2" /> But bad happended, even i provide dataset path by "HF_HUB_CACHE", it still attempt to download data from remote side : <img width="1697" height="813" alt="Image" src="https://github.com/user-attachments/assets/baa6cff1-a724-4710-a8c4-4805459deffb" /> Any suggestion will be appreciated!!
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7705/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7705/timeline
null
null
null
null
2025-07-28T09:43:54Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7704
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7704/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7704/comments
https://api.github.com/repos/huggingface/datasets/issues/7704/events
https://github.com/huggingface/datasets/pull/7704
3,265,730,177
PR_kwDODunzps6gwtb8
7,704
Fix map() example in datasets documentation: define tokenizer before use
{ "avatar_url": "https://avatars.githubusercontent.com/u/183703408?v=4", "events_url": "https://api.github.com/users/Sanjaykumar030/events{/privacy}", "followers_url": "https://api.github.com/users/Sanjaykumar030/followers", "following_url": "https://api.github.com/users/Sanjaykumar030/following{/other_user}", "gists_url": "https://api.github.com/users/Sanjaykumar030/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sanjaykumar030", "id": 183703408, "login": "Sanjaykumar030", "node_id": "U_kgDOCvMXcA", "organizations_url": "https://api.github.com/users/Sanjaykumar030/orgs", "received_events_url": "https://api.github.com/users/Sanjaykumar030/received_events", "repos_url": "https://api.github.com/users/Sanjaykumar030/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sanjaykumar030/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sanjaykumar030/subscriptions", "type": "User", "url": "https://api.github.com/users/Sanjaykumar030", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "Hi @lhoestq, just a gentle follow-up on this doc fix PR (#7704). Let me know if any changes are needed — happy to update.\r\nHope this improvement helps users run the example without confusion!", "created_at": "2025-08-01T13:48:35Z", "html_url": "https://github.com/huggingface/datasets/pull/7704#issuecomment-3144658468", "id": 3144658468, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7704", "node_id": "IC_kwDODunzps67b64k", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3144658468/reactions" }, "updated_at": "2025-08-01T13:48:35Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3144658468", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/183703408?v=4", "events_url": "https://api.github.com/users/Sanjaykumar030/events{/privacy}", "followers_url": "https://api.github.com/users/Sanjaykumar030/followers", "following_url": "https://api.github.com/users/Sanjaykumar030/following{/other_user}", "gists_url": "https://api.github.com/users/Sanjaykumar030/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sanjaykumar030", "id": 183703408, "login": "Sanjaykumar030", "node_id": "U_kgDOCvMXcA", "organizations_url": "https://api.github.com/users/Sanjaykumar030/orgs", "received_events_url": "https://api.github.com/users/Sanjaykumar030/received_events", "repos_url": "https://api.github.com/users/Sanjaykumar030/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sanjaykumar030/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sanjaykumar030/subscriptions", "type": "User", "url": "https://api.github.com/users/Sanjaykumar030", "user_view_type": "public" } } ]
2025-07-26T14:18:17Z
2025-07-26T14:18:17Z
null
NONE
null
null
null
## Problem The current datasets.Dataset.map() example in the documentation demonstrates batched processing using a tokenizer object without defining or importing it. This causes a NameError when users copy and run the example as-is, breaking the expected seamless experience. ## Correction This PR fixes the issue by explicitly importing and initializing the tokenizer using the Transformers library (AutoTokenizer.from_pretrained("bert-base-uncased")), making the example self-contained and runnable without errors. This will help new users understand the workflow and apply the method correctly. Closes #7703
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7704/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7704/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7704.diff", "html_url": "https://github.com/huggingface/datasets/pull/7704", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7704.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7704" }
2025-07-26T14:18:17Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7702
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7702/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7702/comments
https://api.github.com/repos/huggingface/datasets/issues/7702/events
https://github.com/huggingface/datasets/pull/7702
3,265,328,549
PR_kwDODunzps6gvdYC
7,702
num_proc=0 behave like None and clarify num_proc documentation in .map()
{ "avatar_url": "https://avatars.githubusercontent.com/u/84439872?v=4", "events_url": "https://api.github.com/users/tanuj-rai/events{/privacy}", "followers_url": "https://api.github.com/users/tanuj-rai/followers", "following_url": "https://api.github.com/users/tanuj-rai/following{/other_user}", "gists_url": "https://api.github.com/users/tanuj-rai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tanuj-rai", "id": 84439872, "login": "tanuj-rai", "node_id": "MDQ6VXNlcjg0NDM5ODcy", "organizations_url": "https://api.github.com/users/tanuj-rai/orgs", "received_events_url": "https://api.github.com/users/tanuj-rai/received_events", "repos_url": "https://api.github.com/users/tanuj-rai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tanuj-rai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tanuj-rai/subscriptions", "type": "User", "url": "https://api.github.com/users/tanuj-rai", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "I think we can support num_proc=0 and make it equivalent to `None` to make it simpler", "created_at": "2025-07-30T15:46:03Z", "html_url": "https://github.com/huggingface/datasets/pull/7702#issuecomment-3136895555", "id": 3136895555, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7702", "node_id": "IC_kwDODunzps66-TpD", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136895555/reactions" }, "updated_at": "2025-07-30T15:46:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136895555", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7702). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-30T15:47:46Z", "html_url": "https://github.com/huggingface/datasets/pull/7702#issuecomment-3136901002", "id": 3136901002, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7702", "node_id": "IC_kwDODunzps66-U-K", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136901002/reactions" }, "updated_at": "2025-07-30T15:47:46Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136901002", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> I think we can support num_proc=0 and make it equivalent to `None` to make it simpler\r\n\r\nThank you @lhoestq for reviewing it. Please let me know if anything needs to be updated further.", "created_at": "2025-07-31T05:27:19Z", "html_url": "https://github.com/huggingface/datasets/pull/7702#issuecomment-3138604518", "id": 3138604518, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7702", "node_id": "IC_kwDODunzps67E03m", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138604518/reactions" }, "updated_at": "2025-07-31T05:27:19Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3138604518", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/84439872?v=4", "events_url": "https://api.github.com/users/tanuj-rai/events{/privacy}", "followers_url": "https://api.github.com/users/tanuj-rai/followers", "following_url": "https://api.github.com/users/tanuj-rai/following{/other_user}", "gists_url": "https://api.github.com/users/tanuj-rai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tanuj-rai", "id": 84439872, "login": "tanuj-rai", "node_id": "MDQ6VXNlcjg0NDM5ODcy", "organizations_url": "https://api.github.com/users/tanuj-rai/orgs", "received_events_url": "https://api.github.com/users/tanuj-rai/received_events", "repos_url": "https://api.github.com/users/tanuj-rai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tanuj-rai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tanuj-rai/subscriptions", "type": "User", "url": "https://api.github.com/users/tanuj-rai", "user_view_type": "public" } } ]
2025-07-26T08:19:39Z
2025-07-31T05:22:35Z
null
NONE
null
null
null
Fixes issue #7700 This PR makes num_proc=0 behave like None in Dataset.map(), disabling multiprocessing. It improves UX by aligning with DataLoader(num_workers=0) behavior. The num_proc docstring is also updated to clearly explain valid values and behavior. @SunMarc
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7702/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7702/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7702.diff", "html_url": "https://github.com/huggingface/datasets/pull/7702", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7702.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7702" }
2025-07-26T08:19:39Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7701
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7701/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7701/comments
https://api.github.com/repos/huggingface/datasets/issues/7701/events
https://github.com/huggingface/datasets/pull/7701
3,265,236,296
PR_kwDODunzps6gvJ83
7,701
Update fsspec max version to current release 2025.7.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/5445560?v=4", "events_url": "https://api.github.com/users/rootAvish/events{/privacy}", "followers_url": "https://api.github.com/users/rootAvish/followers", "following_url": "https://api.github.com/users/rootAvish/following{/other_user}", "gists_url": "https://api.github.com/users/rootAvish/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rootAvish", "id": 5445560, "login": "rootAvish", "node_id": "MDQ6VXNlcjU0NDU1NjA=", "organizations_url": "https://api.github.com/users/rootAvish/orgs", "received_events_url": "https://api.github.com/users/rootAvish/received_events", "repos_url": "https://api.github.com/users/rootAvish/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rootAvish/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rootAvish/subscriptions", "type": "User", "url": "https://api.github.com/users/rootAvish", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "@lhoestq I ran the test suite locally and while some tests were failing those failures are present on the main branch too. Could you please review and trigger the CI?", "created_at": "2025-07-26T08:02:37Z", "html_url": "https://github.com/huggingface/datasets/pull/7701#issuecomment-3121473565", "id": 3121473565, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7701", "node_id": "IC_kwDODunzps66Degd", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3121473565/reactions" }, "updated_at": "2025-07-26T08:02:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3121473565", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/5445560?v=4", "events_url": "https://api.github.com/users/rootAvish/events{/privacy}", "followers_url": "https://api.github.com/users/rootAvish/followers", "following_url": "https://api.github.com/users/rootAvish/following{/other_user}", "gists_url": "https://api.github.com/users/rootAvish/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rootAvish", "id": 5445560, "login": "rootAvish", "node_id": "MDQ6VXNlcjU0NDU1NjA=", "organizations_url": "https://api.github.com/users/rootAvish/orgs", "received_events_url": "https://api.github.com/users/rootAvish/received_events", "repos_url": "https://api.github.com/users/rootAvish/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rootAvish/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rootAvish/subscriptions", "type": "User", "url": "https://api.github.com/users/rootAvish", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7701). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-28T11:14:39Z", "html_url": "https://github.com/huggingface/datasets/pull/7701#issuecomment-3126742159", "id": 3126742159, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7701", "node_id": "IC_kwDODunzps66XkyP", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3126742159/reactions" }, "updated_at": "2025-07-28T11:14:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3126742159", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-26T06:47:59Z
2025-07-28T11:58:11Z
2025-07-28T11:58:11Z
CONTRIBUTOR
null
null
null
Diffusers currently asks for a max fsspec version of `2025.3.0`. This change updates it to the current latest version. This change is mainly required to resolve conflicts with other packages in an environment. In my particular case, `aider-chat` which is a part of my environment installs `2025.5.1` which is incompatible with `datasets`.
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7701/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7701/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7701.diff", "html_url": "https://github.com/huggingface/datasets/pull/7701", "merged_at": "2025-07-28T11:58:11Z", "patch_url": "https://github.com/huggingface/datasets/pull/7701.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7701" }
2025-07-26T06:47:59Z
2025-07-28T11:58:11Z
2 days, 5:10:12
true
https://api.github.com/repos/huggingface/datasets/issues/7708
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7708/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7708/comments
https://api.github.com/repos/huggingface/datasets/issues/7708/events
https://github.com/huggingface/datasets/pull/7708
3,273,614,584
PR_kwDODunzps6hLVip
7,708
Concurrent push_to_hub
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7708). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-29T13:17:07Z", "html_url": "https://github.com/huggingface/datasets/pull/7708#issuecomment-3132501540", "id": 3132501540, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7708", "node_id": "IC_kwDODunzps66ti4k", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3132501540/reactions" }, "updated_at": "2025-07-29T13:17:07Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3132501540", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-29T13:14:30Z
2025-07-30T15:55:00Z
null
MEMBER
null
null
null
Retry the step that (download + update + upload) the README.md using `create_commit(..., parent_commit=...)` if there was a commit in the meantime. This should enable concurrent `push_to_hub()` since it won't overwrite the README.md metadata anymore. DO NOT MERGE FOR NOW since it seems there is one bug that prevents this logic from working: I'm using parent_commit to enable concurrent push_to_hub() in datasets for a retry mechanism, but for some reason I always run into a weird situation. Sometimes create_commit(.., parent_commit=...) returns error 500 but the commit did happen on the Hub side without respecting parent_commit e.g. request id ``` huggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/lhoestq/tmp/commit/main (Request ID: Root=1-6888d8af-2ce517bc60c69cb378b51526;d1b17993-c5d0-4ccd-9926-060c45f9ed61) ``` fix coming in [internal](https://github.com/huggingface-internal/moon-landing/pull/14617) close https://github.com/huggingface/datasets/issues/7600
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7708/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7708/timeline
null
null
1
{ "diff_url": "https://github.com/huggingface/datasets/pull/7708.diff", "html_url": "https://github.com/huggingface/datasets/pull/7708", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7708.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7708" }
2025-07-29T13:14:30Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7700
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7700/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7700/comments
https://api.github.com/repos/huggingface/datasets/issues/7700/events
https://github.com/huggingface/datasets/issues/7700
3,263,922,255
I_kwDODunzps7Ci4BP
7,700
[doc] map.num_proc needs clarification
{ "avatar_url": "https://avatars.githubusercontent.com/u/196988264?v=4", "events_url": "https://api.github.com/users/sfc-gh-sbekman/events{/privacy}", "followers_url": "https://api.github.com/users/sfc-gh-sbekman/followers", "following_url": "https://api.github.com/users/sfc-gh-sbekman/following{/other_user}", "gists_url": "https://api.github.com/users/sfc-gh-sbekman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sfc-gh-sbekman", "id": 196988264, "login": "sfc-gh-sbekman", "node_id": "U_kgDOC73NaA", "organizations_url": "https://api.github.com/users/sfc-gh-sbekman/orgs", "received_events_url": "https://api.github.com/users/sfc-gh-sbekman/received_events", "repos_url": "https://api.github.com/users/sfc-gh-sbekman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sfc-gh-sbekman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sfc-gh-sbekman/subscriptions", "type": "User", "url": "https://api.github.com/users/sfc-gh-sbekman", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-07-25T17:35:09Z
2025-07-25T17:39:36Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
https://huggingface.co/docs/datasets/v4.0.0/en/package_reference/main_classes#datasets.Dataset.map.num_proc ``` num_proc (int, optional, defaults to None) — Max number of processes when generating cache. Already cached shards are loaded sequentially. ``` for batch: ``` num_proc (int, optional, defaults to None): The number of processes to use for multiprocessing. If None, no multiprocessing is used. This can significantly speed up batching for large datasets. ``` So what happens to `map.num_proc` - is it the same behavior as `batch.num_proc` - so only if `num_proc=None` then no multiprocessing is used? Let's update the doc to be unambiguous. **bonus**: we could make all of these behave similarly to `DataLoader.num_workers` - where `num_workers==0` implies no multiprocessing. I think that's the most intuitive, IMHO. 0 workers - the main process has to do all the work. `None` could be the same as `0`. context: debugging a failing `map` Thank you!
null
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7700/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7700/timeline
null
null
null
null
2025-07-25T17:35:09Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7699
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7699/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7699/comments
https://api.github.com/repos/huggingface/datasets/issues/7699/events
https://github.com/huggingface/datasets/issues/7699
3,261,053,171
I_kwDODunzps7CX7jz
7,699
Broken link in documentation for "Create a video dataset"
{ "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "The URL is ok but it seems the webdataset website is down. There seems to be a related issue here: https://github.com/webdataset/webdataset/issues/155\n\nFeel free to ask the authors there for an update. Otherwise happy to witch the link to the mirror shared in that issue", "created_at": "2025-07-25T15:27:47Z", "html_url": "https://github.com/huggingface/datasets/issues/7699#issuecomment-3118631690", "id": 3118631690, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7699", "node_id": "IC_kwDODunzps654osK", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118631690/reactions" }, "updated_at": "2025-07-25T15:27:47Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118631690", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-24T19:46:28Z
2025-07-25T15:27:47Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
The link to "the [WebDataset documentation](https://webdataset.github.io/webdataset)." is broken. https://huggingface.co/docs/datasets/main/en/video_dataset#webdataset <img width="2048" height="264" alt="Image" src="https://github.com/user-attachments/assets/975dd10c-aad8-42fc-9fbc-de0e2747a326" />
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7699/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7699/timeline
null
null
null
null
2025-07-24T19:46:28Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7698
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7698/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7698/comments
https://api.github.com/repos/huggingface/datasets/issues/7698/events
https://github.com/huggingface/datasets/issues/7698
3,255,350,916
I_kwDODunzps7CCLaE
7,698
NotImplementedError when using streaming=True in Google Colab environment
{ "avatar_url": "https://avatars.githubusercontent.com/u/100470741?v=4", "events_url": "https://api.github.com/users/Aniket17200/events{/privacy}", "followers_url": "https://api.github.com/users/Aniket17200/followers", "following_url": "https://api.github.com/users/Aniket17200/following{/other_user}", "gists_url": "https://api.github.com/users/Aniket17200/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aniket17200", "id": 100470741, "login": "Aniket17200", "node_id": "U_kgDOBf0P1Q", "organizations_url": "https://api.github.com/users/Aniket17200/orgs", "received_events_url": "https://api.github.com/users/Aniket17200/received_events", "repos_url": "https://api.github.com/users/Aniket17200/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aniket17200/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aniket17200/subscriptions", "type": "User", "url": "https://api.github.com/users/Aniket17200", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Hi, @Aniket17200, try upgrading datasets using '!pip install -U datasets'. I hope this will resolve your issue.", "created_at": "2025-07-23T13:46:33Z", "html_url": "https://github.com/huggingface/datasets/issues/7698#issuecomment-3108643682", "id": 3108643682, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7698", "node_id": "IC_kwDODunzps65SiNi", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3108643682/reactions" }, "updated_at": "2025-07-23T13:46:33Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3108643682", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/84439872?v=4", "events_url": "https://api.github.com/users/tanuj-rai/events{/privacy}", "followers_url": "https://api.github.com/users/tanuj-rai/followers", "following_url": "https://api.github.com/users/tanuj-rai/following{/other_user}", "gists_url": "https://api.github.com/users/tanuj-rai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tanuj-rai", "id": 84439872, "login": "tanuj-rai", "node_id": "MDQ6VXNlcjg0NDM5ODcy", "organizations_url": "https://api.github.com/users/tanuj-rai/orgs", "received_events_url": "https://api.github.com/users/tanuj-rai/received_events", "repos_url": "https://api.github.com/users/tanuj-rai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tanuj-rai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tanuj-rai/subscriptions", "type": "User", "url": "https://api.github.com/users/tanuj-rai", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thank you @tanuj-rai, it's working great ", "created_at": "2025-07-23T15:06:23Z", "html_url": "https://github.com/huggingface/datasets/issues/7698#issuecomment-3109038307", "id": 3109038307, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7698", "node_id": "IC_kwDODunzps65UCjj", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3109038307/reactions" }, "updated_at": "2025-07-23T15:06:23Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3109038307", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/100470741?v=4", "events_url": "https://api.github.com/users/Aniket17200/events{/privacy}", "followers_url": "https://api.github.com/users/Aniket17200/followers", "following_url": "https://api.github.com/users/Aniket17200/following{/other_user}", "gists_url": "https://api.github.com/users/Aniket17200/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aniket17200", "id": 100470741, "login": "Aniket17200", "node_id": "U_kgDOBf0P1Q", "organizations_url": "https://api.github.com/users/Aniket17200/orgs", "received_events_url": "https://api.github.com/users/Aniket17200/received_events", "repos_url": "https://api.github.com/users/Aniket17200/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aniket17200/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aniket17200/subscriptions", "type": "User", "url": "https://api.github.com/users/Aniket17200", "user_view_type": "public" } } ]
2025-07-23T08:04:53Z
2025-07-23T15:06:23Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug When attempting to load a large dataset (like tiiuae/falcon-refinedweb or allenai/c4) using streaming=True in a standard Google Colab notebook, the process fails with a NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet. This issue persists even after upgrading datasets and huggingface_hub and restarting the session. ### Steps to reproduce the bug Open a new Google Colab notebook. (Optional but recommended) Run !pip install --upgrade datasets huggingface_hub and restart the runtime. Run the following code: Python from datasets import load_dataset try: print("Attempting to load a stream...") streaming_dataset = load_dataset('tiiuae/falcon-refinedweb', streaming=True) print("Success!") except Exception as e: print(e) ### Expected behavior The load_dataset command should return a StreamingDataset object without raising an error, allowing iteration over the dataset. Actual Behavior The code fails and prints the following error traceback: [PASTE THE FULL ERROR TRACEBACK HERE] (Note: Copy the entire error message you received, from Traceback... to the final error line, and paste it in this section.) ### Environment info Platform: Google Colab datasets version: [Run !pip show datasets in Colab and paste the version here] huggingface_hub version: [Run !pip show huggingface_hub and paste the version here] Python version: [Run !python --version and paste the version here]
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7698/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7698/timeline
null
null
null
null
2025-07-23T08:04:53Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7697
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7697/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7697/comments
https://api.github.com/repos/huggingface/datasets/issues/7697/events
https://github.com/huggingface/datasets/issues/7697
3,254,526,399
I_kwDODunzps7B_CG_
7,697
-
{ "avatar_url": "https://avatars.githubusercontent.com/u/44517413?v=4", "events_url": "https://api.github.com/users/kakamond/events{/privacy}", "followers_url": "https://api.github.com/users/kakamond/followers", "following_url": "https://api.github.com/users/kakamond/following{/other_user}", "gists_url": "https://api.github.com/users/kakamond/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kakamond", "id": 44517413, "login": "kakamond", "node_id": "MDQ6VXNlcjQ0NTE3NDEz", "organizations_url": "https://api.github.com/users/kakamond/orgs", "received_events_url": "https://api.github.com/users/kakamond/received_events", "repos_url": "https://api.github.com/users/kakamond/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kakamond/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kakamond/subscriptions", "type": "User", "url": "https://api.github.com/users/kakamond", "user_view_type": "public" }
[]
closed
false
null
[]
null
[]
2025-07-23T01:30:32Z
2025-07-25T15:21:39Z
2025-07-25T15:21:39Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
-
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7697/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7697/timeline
null
completed
null
null
2025-07-23T01:30:32Z
2025-07-25T15:21:39Z
2 days, 13:51:07
false
https://api.github.com/repos/huggingface/datasets/issues/7696
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7696/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7696/comments
https://api.github.com/repos/huggingface/datasets/issues/7696/events
https://github.com/huggingface/datasets/issues/7696
3,253,433,350
I_kwDODunzps7B63QG
7,696
load_dataset() in 4.0.0 returns different audio samples compared to earlier versions breaking reproducibility
{ "avatar_url": "https://avatars.githubusercontent.com/u/25346345?v=4", "events_url": "https://api.github.com/users/Manalelaidouni/events{/privacy}", "followers_url": "https://api.github.com/users/Manalelaidouni/followers", "following_url": "https://api.github.com/users/Manalelaidouni/following{/other_user}", "gists_url": "https://api.github.com/users/Manalelaidouni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Manalelaidouni", "id": 25346345, "login": "Manalelaidouni", "node_id": "MDQ6VXNlcjI1MzQ2MzQ1", "organizations_url": "https://api.github.com/users/Manalelaidouni/orgs", "received_events_url": "https://api.github.com/users/Manalelaidouni/received_events", "repos_url": "https://api.github.com/users/Manalelaidouni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Manalelaidouni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Manalelaidouni/subscriptions", "type": "User", "url": "https://api.github.com/users/Manalelaidouni", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! This is because `datasets` now uses the FFmpeg-based library `torchcodec` instead of the libsndfile-based library `soundfile` to decode audio data. Those two have different decoding implementations", "created_at": "2025-07-25T14:27:36Z", "html_url": "https://github.com/huggingface/datasets/issues/7696#issuecomment-3118059961", "id": 3118059961, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7696", "node_id": "IC_kwDODunzps652dG5", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118059961/reactions" }, "updated_at": "2025-07-25T14:27:36Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118059961", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I’m all for torchcodec, good luck with the migration!", "created_at": "2025-07-30T14:22:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7696#issuecomment-3136587542", "id": 3136587542, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7696", "node_id": "IC_kwDODunzps669IcW", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136587542/reactions" }, "updated_at": "2025-07-30T14:22:18Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136587542", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/25346345?v=4", "events_url": "https://api.github.com/users/Manalelaidouni/events{/privacy}", "followers_url": "https://api.github.com/users/Manalelaidouni/followers", "following_url": "https://api.github.com/users/Manalelaidouni/following{/other_user}", "gists_url": "https://api.github.com/users/Manalelaidouni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Manalelaidouni", "id": 25346345, "login": "Manalelaidouni", "node_id": "MDQ6VXNlcjI1MzQ2MzQ1", "organizations_url": "https://api.github.com/users/Manalelaidouni/orgs", "received_events_url": "https://api.github.com/users/Manalelaidouni/received_events", "repos_url": "https://api.github.com/users/Manalelaidouni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Manalelaidouni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Manalelaidouni/subscriptions", "type": "User", "url": "https://api.github.com/users/Manalelaidouni", "user_view_type": "public" } } ]
2025-07-22T17:02:17Z
2025-07-30T14:22:21Z
2025-07-30T14:22:21Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug In datasets 4.0.0 release, `load_dataset()` returns different audio samples compared to earlier versions, this breaks integration tests that depend on consistent sample data across different environments (first and second envs specified below). ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation") ds = ds.cast_column("audio", Audio(24000)) sample= ds[0]["audio"]["array"] print(sample) # sample in 3.6.0 [0.00231914 0.00245417 0.00187414 ... 0.00061956 0.00101157 0.00076325] # sample in 4.0.0 array([0.00238037, 0.00220794, 0.00198703, ..., 0.00057983, 0.00085863, 0.00115309], dtype=float32) ``` ### Expected behavior The same dataset should load identical samples across versions to maintain reproducibility. ### Environment info First env: - datasets version: 3.6.0 - Platform: Windows-10-10.0.26100-SP0 - Python: 3.11.0 Second env: - datasets version: 4.0.0 - Platform: Linux-6.1.123+-x86_64-with-glibc2.35 - Python: 3.11.13
{ "avatar_url": "https://avatars.githubusercontent.com/u/25346345?v=4", "events_url": "https://api.github.com/users/Manalelaidouni/events{/privacy}", "followers_url": "https://api.github.com/users/Manalelaidouni/followers", "following_url": "https://api.github.com/users/Manalelaidouni/following{/other_user}", "gists_url": "https://api.github.com/users/Manalelaidouni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Manalelaidouni", "id": 25346345, "login": "Manalelaidouni", "node_id": "MDQ6VXNlcjI1MzQ2MzQ1", "organizations_url": "https://api.github.com/users/Manalelaidouni/orgs", "received_events_url": "https://api.github.com/users/Manalelaidouni/received_events", "repos_url": "https://api.github.com/users/Manalelaidouni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Manalelaidouni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Manalelaidouni/subscriptions", "type": "User", "url": "https://api.github.com/users/Manalelaidouni", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7696/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7696/timeline
null
completed
null
null
2025-07-22T17:02:17Z
2025-07-30T14:22:21Z
7 days, 21:20:04
false
https://api.github.com/repos/huggingface/datasets/issues/7694
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7694/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7694/comments
https://api.github.com/repos/huggingface/datasets/issues/7694/events
https://github.com/huggingface/datasets/issues/7694
3,247,600,408
I_kwDODunzps7BknMY
7,694
Dataset.to_json consumes excessive memory, appears to not be a streaming operation
{ "avatar_url": "https://avatars.githubusercontent.com/u/49603999?v=4", "events_url": "https://api.github.com/users/ycq0125/events{/privacy}", "followers_url": "https://api.github.com/users/ycq0125/followers", "following_url": "https://api.github.com/users/ycq0125/following{/other_user}", "gists_url": "https://api.github.com/users/ycq0125/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ycq0125", "id": 49603999, "login": "ycq0125", "node_id": "MDQ6VXNlcjQ5NjAzOTk5", "organizations_url": "https://api.github.com/users/ycq0125/orgs", "received_events_url": "https://api.github.com/users/ycq0125/received_events", "repos_url": "https://api.github.com/users/ycq0125/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ycq0125/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ycq0125/subscriptions", "type": "User", "url": "https://api.github.com/users/ycq0125", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! to_json is memory efficient and writes the data by batch:\n\nhttps://github.com/huggingface/datasets/blob/d9861d86be222884dabbd534a2db770c70c9b558/src/datasets/io/json.py#L153-L159\n\nWhat memory are you mesuring ? If you are mesuring RSS, it is likely that it counts the memory mapped data of the dataset. Memory mapped data are loaded as physical memory when accessed and are automatically discarded when your OS needs more memory, and therefore doesn't OOM.", "created_at": "2025-07-25T14:42:21Z", "html_url": "https://github.com/huggingface/datasets/issues/7694#issuecomment-3118206286", "id": 3118206286, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7694", "node_id": "IC_kwDODunzps653A1O", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118206286/reactions" }, "updated_at": "2025-07-25T14:42:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118206286", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-21T07:51:25Z
2025-07-25T14:42:21Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug When exporting a Dataset object to a JSON Lines file using the .to_json(lines=True) method, the process consumes a very large amount of memory. The memory usage is proportional to the size of the entire Dataset object being saved, rather than being a low, constant memory operation. This behavior is unexpected, as the JSONL format is line-oriented and ideally suited for streaming writes. This issue can easily lead to Out-of-Memory (OOM) errors when exporting large datasets, especially in memory-constrained environments like Docker containers. <img width="1343" height="329" alt="Image" src="https://github.com/user-attachments/assets/518b4263-ad12-422d-9672-28ffe97240ce" /> ### Steps to reproduce the bug ``` import os from datasets import load_dataset, Dataset from loguru import logger # A public dataset to test with REPO_ID = "adam89/TinyStoriesChinese" SUBSET = "default" SPLIT = "train" NUM_ROWS_TO_LOAD = 10 # Use a reasonably large number to see the memory spike def run_test(): """Loads data into memory and then saves it, triggering the memory issue.""" logger.info("Step 1: Loading data into an in-memory Dataset object...") # Create an in-memory Dataset object from a stream # This simulates having a processed dataset ready to be saved iterable_dataset = load_dataset(REPO_ID, name=SUBSET, split=SPLIT, streaming=True) limited_stream = iterable_dataset.take(NUM_ROWS_TO_LOAD) in_memory_dataset = Dataset.from_generator(limited_stream.__iter__) logger.info(f"Dataset with {len(in_memory_dataset)} rows created in memory.") output_path = "./test_output.jsonl" logger.info(f"Step 2: Saving the dataset to {output_path} using .to_json()...") logger.info("Please monitor memory usage during this step.") # This is the step that causes the massive memory allocation in_memory_dataset.to_json(output_path, force_ascii=False) logger.info("Save operation complete.") os.remove(output_path) if __name__ == "__main__": # To see the memory usage clearly, run this script with a memory profiler: # python -m memray run your_script_name.py # python -m memray tree xxx.bin run_test() ``` ### Expected behavior I would expect the .to_json(lines=True) method to be a memory-efficient, streaming operation. The memory usage should remain low and relatively constant, as data is converted and written to the file line-by-line or in small batches. The memory footprint should not be proportional to the total number of rows in the in_memory_dataset. ### Environment info datasets version:3.6.0 Python version:3.9.18 os:macOS 15.3.1 (arm64)
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7694/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7694/timeline
null
null
null
null
2025-07-21T07:51:25Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7693
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7693/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7693/comments
https://api.github.com/repos/huggingface/datasets/issues/7693/events
https://github.com/huggingface/datasets/issues/7693
3,246,369,678
I_kwDODunzps7Bf6uO
7,693
Dataset scripts are no longer supported, but found superb.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/114297534?v=4", "events_url": "https://api.github.com/users/edwinzajac/events{/privacy}", "followers_url": "https://api.github.com/users/edwinzajac/followers", "following_url": "https://api.github.com/users/edwinzajac/following{/other_user}", "gists_url": "https://api.github.com/users/edwinzajac/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/edwinzajac", "id": 114297534, "login": "edwinzajac", "node_id": "U_kgDOBtAKvg", "organizations_url": "https://api.github.com/users/edwinzajac/orgs", "received_events_url": "https://api.github.com/users/edwinzajac/received_events", "repos_url": "https://api.github.com/users/edwinzajac/repos", "site_admin": false, "starred_url": "https://api.github.com/users/edwinzajac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edwinzajac/subscriptions", "type": "User", "url": "https://api.github.com/users/edwinzajac", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "I got a pretty similar issue when I try to load bigbio/neurotrial_ner dataset. \n`Dataset scripts are no longer supported, but found neurotrial_ner.py`", "created_at": "2025-07-21T14:10:07Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3096949005", "id": 3096949005, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps64l7EN", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096949005/reactions" }, "updated_at": "2025-07-21T14:10:07Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096949005", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/6295808?v=4", "events_url": "https://api.github.com/users/dejokz/events{/privacy}", "followers_url": "https://api.github.com/users/dejokz/followers", "following_url": "https://api.github.com/users/dejokz/following{/other_user}", "gists_url": "https://api.github.com/users/dejokz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dejokz", "id": 6295808, "login": "dejokz", "node_id": "MDQ6VXNlcjYyOTU4MDg=", "organizations_url": "https://api.github.com/users/dejokz/orgs", "received_events_url": "https://api.github.com/users/dejokz/received_events", "repos_url": "https://api.github.com/users/dejokz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dejokz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dejokz/subscriptions", "type": "User", "url": "https://api.github.com/users/dejokz", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same here. I was running this tutorial and got a similar error: https://github.com/openai/whisper/discussions/654 (I'm a first-time transformers library user)\n\nRuntimeError: Dataset scripts are no longer supported, but found librispeech_asr.py\n\nWhat am I supposed to do at this point?\n\nThanks", "created_at": "2025-07-22T10:43:47Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3102186067", "id": 3102186067, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps6455pT", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3102186067/reactions" }, "updated_at": "2025-07-22T10:44:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3102186067", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/45080861?v=4", "events_url": "https://api.github.com/users/gMontoyaSpeech/events{/privacy}", "followers_url": "https://api.github.com/users/gMontoyaSpeech/followers", "following_url": "https://api.github.com/users/gMontoyaSpeech/following{/other_user}", "gists_url": "https://api.github.com/users/gMontoyaSpeech/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gMontoyaSpeech", "id": 45080861, "login": "gMontoyaSpeech", "node_id": "MDQ6VXNlcjQ1MDgwODYx", "organizations_url": "https://api.github.com/users/gMontoyaSpeech/orgs", "received_events_url": "https://api.github.com/users/gMontoyaSpeech/received_events", "repos_url": "https://api.github.com/users/gMontoyaSpeech/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gMontoyaSpeech/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gMontoyaSpeech/subscriptions", "type": "User", "url": "https://api.github.com/users/gMontoyaSpeech", "user_view_type": "public" } }, { "author_association": "NONE", "body": "hey I got the same error and I have tried to downgrade version to 3.6.0 and it works.\n`pip install datasets==3.6.0`", "created_at": "2025-07-22T15:27:21Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3103380232", "id": 3103380232, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps64-dMI", "performed_via_github_app": null, "reactions": { "+1": 4, "-1": 0, "confused": 2, "eyes": 2, "heart": 12, "hooray": 2, "laugh": 0, "rocket": 2, "total_count": 24, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3103380232/reactions" }, "updated_at": "2025-07-22T15:27:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3103380232", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/202590134?v=4", "events_url": "https://api.github.com/users/Tin-viAct/events{/privacy}", "followers_url": "https://api.github.com/users/Tin-viAct/followers", "following_url": "https://api.github.com/users/Tin-viAct/following{/other_user}", "gists_url": "https://api.github.com/users/Tin-viAct/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tin-viAct", "id": 202590134, "login": "Tin-viAct", "node_id": "U_kgDODBNHtg", "organizations_url": "https://api.github.com/users/Tin-viAct/orgs", "received_events_url": "https://api.github.com/users/Tin-viAct/received_events", "repos_url": "https://api.github.com/users/Tin-viAct/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tin-viAct/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tin-viAct/subscriptions", "type": "User", "url": "https://api.github.com/users/Tin-viAct", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thank you very much @Tin-viAct . That indeed did the trick for me :) \nNow the code continue its normal flow ", "created_at": "2025-07-22T17:11:00Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3103924102", "id": 3103924102, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps65Ah-G", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 1, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3103924102/reactions" }, "updated_at": "2025-07-22T17:11:00Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3103924102", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/45080861?v=4", "events_url": "https://api.github.com/users/gMontoyaSpeech/events{/privacy}", "followers_url": "https://api.github.com/users/gMontoyaSpeech/followers", "following_url": "https://api.github.com/users/gMontoyaSpeech/following{/other_user}", "gists_url": "https://api.github.com/users/gMontoyaSpeech/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gMontoyaSpeech", "id": 45080861, "login": "gMontoyaSpeech", "node_id": "MDQ6VXNlcjQ1MDgwODYx", "organizations_url": "https://api.github.com/users/gMontoyaSpeech/orgs", "received_events_url": "https://api.github.com/users/gMontoyaSpeech/received_events", "repos_url": "https://api.github.com/users/gMontoyaSpeech/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gMontoyaSpeech/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gMontoyaSpeech/subscriptions", "type": "User", "url": "https://api.github.com/users/gMontoyaSpeech", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thanks @Tin-viAct, Works!", "created_at": "2025-07-24T14:25:36Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3113684351", "id": 3113684351, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps65lw1_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3113684351/reactions" }, "updated_at": "2025-07-24T14:25:36Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3113684351", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/80170218?v=4", "events_url": "https://api.github.com/users/johnbarb71/events{/privacy}", "followers_url": "https://api.github.com/users/johnbarb71/followers", "following_url": "https://api.github.com/users/johnbarb71/following{/other_user}", "gists_url": "https://api.github.com/users/johnbarb71/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/johnbarb71", "id": 80170218, "login": "johnbarb71", "node_id": "MDQ6VXNlcjgwMTcwMjE4", "organizations_url": "https://api.github.com/users/johnbarb71/orgs", "received_events_url": "https://api.github.com/users/johnbarb71/received_events", "repos_url": "https://api.github.com/users/johnbarb71/repos", "site_admin": false, "starred_url": "https://api.github.com/users/johnbarb71/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johnbarb71/subscriptions", "type": "User", "url": "https://api.github.com/users/johnbarb71", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "I converted [openslr/librispeech_asr](https://huggingface.co/datasets/openslr/librispeech_asr) to Parquet - thanks for reporting.\n\nIt's now compatible with `datasets` 4.0 !\n\nI'll try to ping the authors of the other datasets like [s3prl/superb](https://huggingface.co/datasets/s3prl/superb) and [espnet/yodas2](https://huggingface.co/datasets/espnet/yodas2)", "created_at": "2025-07-25T15:16:36Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3118509647", "id": 3118509647, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps654K5P", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118509647/reactions" }, "updated_at": "2025-07-25T15:19:13Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118509647", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "How come a breaking change was allowed and now requires extra work from individual authors for things to be usable? \n\nhttps://en.wikipedia.org/wiki/Backward_compatibility", "created_at": "2025-07-29T10:08:22Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3131714366", "id": 3131714366, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps66qis-", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3131714366/reactions" }, "updated_at": "2025-07-29T10:08:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3131714366", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/27398253?v=4", "events_url": "https://api.github.com/users/pgzmnk/events{/privacy}", "followers_url": "https://api.github.com/users/pgzmnk/followers", "following_url": "https://api.github.com/users/pgzmnk/following{/other_user}", "gists_url": "https://api.github.com/users/pgzmnk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pgzmnk", "id": 27398253, "login": "pgzmnk", "node_id": "MDQ6VXNlcjI3Mzk4MjUz", "organizations_url": "https://api.github.com/users/pgzmnk/orgs", "received_events_url": "https://api.github.com/users/pgzmnk/received_events", "repos_url": "https://api.github.com/users/pgzmnk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pgzmnk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pgzmnk/subscriptions", "type": "User", "url": "https://api.github.com/users/pgzmnk", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "We follow semantic versioning so that breaking changes only occur in major releases. Also note that dataset scripts have been legacy for some time now, with a message on the dataset pages to ask authors to update their datasets.\n\nIt's ok to ping older versions of `datasets`, but imo a few remaining datasets need to be converted since they are valuable to the community.", "created_at": "2025-07-30T15:01:03Z", "html_url": "https://github.com/huggingface/datasets/issues/7693#issuecomment-3136740791", "id": 3136740791, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7693", "node_id": "IC_kwDODunzps669t23", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136740791/reactions" }, "updated_at": "2025-07-30T15:01:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3136740791", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-20T13:48:06Z
2025-07-30T15:01:03Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Hello, I'm trying to follow the [Hugging Face Pipelines tutorial](https://huggingface.co/docs/transformers/main_classes/pipelines) but the tutorial seems to work only on old datasets versions. I then get the error : ``` -------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[65], [line 1](vscode-notebook-cell:?execution_count=65&line=1) ----> [1](vscode-notebook-cell:?execution_count=65&line=1) dataset = datasets.load_dataset("superb", name="asr", split="test") 3 # KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item 4 # as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset 5 for out in tqdm(pipe(KeyDataset(dataset, "file"))): File ~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs) 1387 verification_mode = VerificationMode( 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 1389 ) 1391 # Create a dataset builder -> [1392](https://file+.vscode-resource.vscode-cdn.net/home/edwin/Desktop/debug/llm_course/~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1392) builder_instance = load_dataset_builder( 1393 path=path, 1394 name=name, 1395 data_dir=data_dir, 1396 data_files=data_files, 1397 cache_dir=cache_dir, 1398 features=features, 1399 download_config=download_config, 1400 download_mode=download_mode, 1401 revision=revision, 1402 token=token, 1403 storage_options=storage_options, 1404 **config_kwargs, 1405 ) 1407 # Return iterable dataset in case of streaming 1408 if streaming: File ~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs) 1130 if features is not None: 1131 features = _fix_for_backward_compatible_features(features) -> [1132](https://file+.vscode-resource.vscode-cdn.net/home/edwin/Desktop/debug/llm_course/~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1132) dataset_module = dataset_module_factory( 1133 path, 1134 revision=revision, 1135 download_config=download_config, 1136 download_mode=download_mode, 1137 data_dir=data_dir, 1138 data_files=data_files, 1139 cache_dir=cache_dir, 1140 ) 1141 # Get dataset builder class 1142 builder_kwargs = dataset_module.builder_kwargs File ~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs) 1026 if isinstance(e1, FileNotFoundError): 1027 raise FileNotFoundError( 1028 f"Couldn't find any data file at {relative_to_absolute_path(path)}. " 1029 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1030 ) from None -> [1031](https://file+.vscode-resource.vscode-cdn.net/home/edwin/Desktop/debug/llm_course/~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:1031) raise e1 from None 1032 else: 1033 raise FileNotFoundError(f"Couldn't find any data file at {relative_to_absolute_path(path)}.") File ~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs) 981 try: 982 api.hf_hub_download( 983 repo_id=path, 984 filename=filename, (...) 987 proxies=download_config.proxies, 988 ) --> [989](https://file+.vscode-resource.vscode-cdn.net/home/edwin/Desktop/debug/llm_course/~/Desktop/debug/llm_course/.venv/lib/python3.11/site-packages/datasets/load.py:989) raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}") 990 except EntryNotFoundError: 991 # Use the infos from the parquet export except in some cases: 992 if data_dir or data_files or (revision and revision != "main"): RuntimeError: Dataset scripts are no longer supported, but found superb.py ``` NB : I tried to replace "superb" by "anton-l/superb_demo" but I get a 'torchcodec' importing error. Maybe I misunderstood something. ### Steps to reproduce the bug ``` import datasets from transformers import pipeline from transformers.pipelines.pt_utils import KeyDataset from tqdm.auto import tqdm pipe = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h", device=0) dataset = datasets.load_dataset("superb", name="asr", split="test") # KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item # as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset for out in tqdm(pipe(KeyDataset(dataset, "file"))): print(out) # {"text": "NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND"} # {"text": ....} # .... ``` ### Expected behavior Get the tutorial expected results ### Environment info --- SYSTEM INFO --- Operating System: Ubuntu 24.10 Kernel: Linux 6.11.0-29-generic Architecture: x86-64 --- PYTHON --- Python 3.11.13 --- VENV INFO ---- datasets=4.0.0 transformers=4.53 tqdm=4.67.1
null
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7693/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7693/timeline
null
null
null
null
2025-07-20T13:48:06Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7695
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7695/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7695/comments
https://api.github.com/repos/huggingface/datasets/issues/7695/events
https://github.com/huggingface/datasets/pull/7695
3,251,904,843
PR_kwDODunzps6gB7jS
7,695
Support downloading specific splits in load_dataset
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "I’ve completed the following steps to continue the partial split download support (from PR #6832):\r\n\r\nI did changes on top of what has been done by mario. Here are some of those changes: \r\n- Restored support for writing multiple split shards:\r\n\r\n- In _prepare_split_single, we now correctly replace JJJJJ and SSSSS placeholders in the fpath for job/shard IDs before creating the writer.\r\n\r\n- Added os.makedirs(os.path.dirname(path), exist_ok=True) after placeholder substitution to prevent FileNotFoundError.\r\n\r\n- Applied the fix to both split writers:\r\n\r\n 1] self._generate_examples version (used by most modules).\r\n\r\n 2] self._generate_tables version (used by IterableDatasetBuilder).\r\n\r\n- Confirmed 109/113 tests passing, meaning the general logic is working across the board.\r\n\r\nWhat’s still failing\r\n4 integration tests fail:\r\n\r\n`test_load_hub_dataset_with_single_config_in_metadata`\r\n\r\n`test_load_hub_dataset_with_two_config_in_metadata`\r\n\r\n`test_load_hub_dataset_with_metadata_config_in_parallel`\r\n\r\n`test_reload_old_cache_from_2_15`\r\n\r\nAll are due to FileNotFoundError from uncreated output paths, which I'm currently finalizing by ensuring os.makedirs() is correctly applied before every writer instantiation.\r\n\r\nI will update about these fixes after running tests!", "created_at": "2025-07-22T09:38:59Z", "html_url": "https://github.com/huggingface/datasets/pull/7695#issuecomment-3101895080", "id": 3101895080, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7695", "node_id": "IC_kwDODunzps644ymo", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3101895080/reactions" }, "updated_at": "2025-07-24T07:17:34Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3101895080", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "@lhoestq this was just an update", "created_at": "2025-07-24T07:17:57Z", "html_url": "https://github.com/huggingface/datasets/pull/7695#issuecomment-3112330175", "id": 3112330175, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7695", "node_id": "IC_kwDODunzps65gmO_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3112330175/reactions" }, "updated_at": "2025-07-24T07:17:57Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3112330175", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7695). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-28T14:19:21Z", "html_url": "https://github.com/huggingface/datasets/pull/7695#issuecomment-3127461721", "id": 3127461721, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7695", "node_id": "IC_kwDODunzps66aUdZ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3127461721/reactions" }, "updated_at": "2025-07-28T14:19:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3127461721", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Local DIR wasn't doing well, dk actually what happened, will PR again! Sorry :)", "created_at": "2025-07-28T17:23:08Z", "html_url": "https://github.com/huggingface/datasets/pull/7695#issuecomment-3128245583", "id": 3128245583, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7695", "node_id": "IC_kwDODunzps66dT1P", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3128245583/reactions" }, "updated_at": "2025-07-28T17:33:30Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3128245583", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-07-22T09:33:54Z
2025-07-28T17:33:30Z
2025-07-28T17:15:45Z
CONTRIBUTOR
null
null
null
This PR builds on #6832 by @mariosasko. May close - #4101, #2538 Discussion - https://github.com/huggingface/datasets/pull/7648#issuecomment-3084050130 --- ### Note - This PR is under work and frequent changes will be pushed.
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7695/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7695/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7695.diff", "html_url": "https://github.com/huggingface/datasets/pull/7695", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7695.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7695" }
2025-07-22T09:33:54Z
2025-07-28T17:15:45Z
6 days, 7:41:51
true
https://api.github.com/repos/huggingface/datasets/issues/7692
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7692/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7692/comments
https://api.github.com/repos/huggingface/datasets/issues/7692/events
https://github.com/huggingface/datasets/issues/7692
3,246,268,635
I_kwDODunzps7BfiDb
7,692
xopen: invalid start byte for streaming dataset with trust_remote_code=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/5188731?v=4", "events_url": "https://api.github.com/users/sedol1339/events{/privacy}", "followers_url": "https://api.github.com/users/sedol1339/followers", "following_url": "https://api.github.com/users/sedol1339/following{/other_user}", "gists_url": "https://api.github.com/users/sedol1339/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sedol1339", "id": 5188731, "login": "sedol1339", "node_id": "MDQ6VXNlcjUxODg3MzE=", "organizations_url": "https://api.github.com/users/sedol1339/orgs", "received_events_url": "https://api.github.com/users/sedol1339/received_events", "repos_url": "https://api.github.com/users/sedol1339/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sedol1339/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sedol1339/subscriptions", "type": "User", "url": "https://api.github.com/users/sedol1339", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! it would be cool to convert this dataset to Parquet. This will make it work for `datasets>=4.0`, enable the Dataset Viewer and make it more reliable to load/stream (currently it uses a loading script in python and those are known for having issues sometimes)\n\nusing `datasets==3.6.0`, here is the command to convert it and open a Pull Request:\n\n```\ndatasets-cli convert_to_parquet espnet/yodas2 --trust_remote_code\n```\n\nThough it's likely that the `UnicodeDecodeError` comes from the loading script. If the script has a bug, it must be fixed to be able to convert the dataset without errors", "created_at": "2025-07-25T14:38:54Z", "html_url": "https://github.com/huggingface/datasets/issues/7692#issuecomment-3118172600", "id": 3118172600, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7692", "node_id": "IC_kwDODunzps6524m4", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118172600/reactions" }, "updated_at": "2025-07-25T14:38:54Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118172600", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-20T11:08:20Z
2025-07-25T14:38:54Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I am trying to load YODAS2 dataset with datasets==3.6.0 ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True))) ``` And get `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte` The cause of the error is the following: ``` from datasets.utils.file_utils import xopen filepath = 'https://huggingface.co/datasets/espnet/yodas2/resolve/c9674490249665d658f527e2684848377108d82c/data/ru000/text/00000000.json' xopen(filepath, 'r').read() >>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte ``` And the cause of this is the following: ``` import fsspec fsspec.open( 'hf://datasets/espnet/yodas2@c9674490249665d658f527e2684848377108d82c/data/ru000/text/00000000.json', mode='r', hf={'token': None, 'endpoint': 'https://huggingface.co'}, ).open().read() >>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte ``` Is it true that streaming=True loading is not supported anymore for trust_remote_code=True, even with datasets==3.6.0? This breaks backward compatibility. ### Steps to reproduce the bug ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True))) ``` ### Expected behavior No errors expected ### Environment info datasets==3.6.0, ubuntu 24.04
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7692/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7692/timeline
null
null
null
null
2025-07-20T11:08:20Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7691
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7691/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7691/comments
https://api.github.com/repos/huggingface/datasets/issues/7691/events
https://github.com/huggingface/datasets/issues/7691
3,245,547,170
I_kwDODunzps7Bcx6i
7,691
Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming
{ "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "It seems the error occurs right here, as it tries to infer the Features: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/webdataset/webdataset.py#L78-L90", "created_at": "2025-07-19T18:44:34Z", "html_url": "https://github.com/huggingface/datasets/issues/7691#issuecomment-3092508759", "id": 3092508759, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7691", "node_id": "IC_kwDODunzps64U_BX", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092508759/reactions" }, "updated_at": "2025-07-19T18:44:34Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092508759", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" } }, { "author_association": "NONE", "body": "It seems to me that if we have something that is so large that it cannot fit in pa.table, the fallback method should be to just set it as \"binary\" type, perhaps?", "created_at": "2025-07-19T20:19:14Z", "html_url": "https://github.com/huggingface/datasets/issues/7691#issuecomment-3092552369", "id": 3092552369, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7691", "node_id": "IC_kwDODunzps64VJqx", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092552369/reactions" }, "updated_at": "2025-07-19T20:19:14Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092552369", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I also tried creating a dataset_info.json but the webdataset builder didn't seem to look for it and load it", "created_at": "2025-07-19T21:03:08Z", "html_url": "https://github.com/huggingface/datasets/issues/7691#issuecomment-3092570641", "id": 3092570641, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7691", "node_id": "IC_kwDODunzps64VOIR", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092570641/reactions" }, "updated_at": "2025-07-19T21:03:08Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3092570641", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Workaround on my end, removed all videos larger than 2GB for now. The dataset no longer crashes.", "created_at": "2025-07-21T19:17:33Z", "html_url": "https://github.com/huggingface/datasets/issues/7691#issuecomment-3098061246", "id": 3098061246, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7691", "node_id": "IC_kwDODunzps64qKm-", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3098061246/reactions" }, "updated_at": "2025-07-21T19:17:33Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3098061246", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Potential patch to webdataset.py could be like so: \n```python\nLARGE_THRESHOLD = 2 * 1024 * 1024 * 1024 # 2 GB\nlarge_fields = set()\n\n# Replace large binary fields with None for schema inference\nprocessed_examples = []\nfor example in first_examples:\n new_example = {}\n for k, v in example.items():\n if isinstance(v, bytes) and len(v) > LARGE_THRESHOLD:\n large_fields.add(k)\n new_example[k] = None # Replace with None to avoid Arrow errors\n else:\n new_example[k] = v\n processed_examples.append(new_example)\n\n# Proceed to infer schema\npa_tables = [\n pa.Table.from_pylist(cast_to_python_objects([example], only_1d_for_numpy=True))\n for example in processed_examples\n]\ninferred_arrow_schema = pa.concat_tables(pa_tables, promote_options=\"default\").schema\n\n# Patch features to reflect large_binary\nfeatures = datasets.Features.from_arrow_schema(inferred_arrow_schema)\nfor field in large_fields:\n features[field] = datasets.Value(\"large_binary\")\n\n```", "created_at": "2025-07-25T08:51:10Z", "html_url": "https://github.com/huggingface/datasets/issues/7691#issuecomment-3116952116", "id": 3116952116, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7691", "node_id": "IC_kwDODunzps65yOo0", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3116952116/reactions" }, "updated_at": "2025-07-25T08:51:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3116952116", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/122366389?v=4", "events_url": "https://api.github.com/users/cleong110/events{/privacy}", "followers_url": "https://api.github.com/users/cleong110/followers", "following_url": "https://api.github.com/users/cleong110/following{/other_user}", "gists_url": "https://api.github.com/users/cleong110/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleong110", "id": 122366389, "login": "cleong110", "node_id": "U_kgDOB0sptQ", "organizations_url": "https://api.github.com/users/cleong110/orgs", "received_events_url": "https://api.github.com/users/cleong110/received_events", "repos_url": "https://api.github.com/users/cleong110/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleong110/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleong110/subscriptions", "type": "User", "url": "https://api.github.com/users/cleong110", "user_view_type": "public" } } ]
2025-07-19T18:40:27Z
2025-07-25T08:51:10Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I am creating a large WebDataset-format dataset for sign language processing research, and a number of the videos are over 2GB. The instant I hit one of the shards with one of those videos, I get a ArrowCapacityError, even with streaming. I made a config for the dataset that specifically includes just one problem shard, and the error triggers the instant you even run load_dataset(), even with streaming=True ``` ds = load_dataset("bible-nlp/sign-bibles", "ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard", streaming=True, split="train") ``` This gives: ``` File "/opt/home/cleong/projects/semantic_and_visual_similarity/sign-bibles-dataset/sign_bibles_dataset/tasks/test_iteration.py", line 13, in iterate_keys ds = load_dataset("bible-nlp/sign-bibles", language_subset, streaming=True, split="train") File "/opt/home/cleong/envs/sign-bibles-dataset/lib/python3.13/site-packages/datasets/load.py", line 1409, in load_dataset return builder_instance.as_streaming_dataset(split=split) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/opt/home/cleong/envs/sign-bibles-dataset/lib/python3.13/site-packages/datasets/builder.py", line 1225, in as_streaming_dataset splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)} ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/home/cleong/envs/sign-bibles-dataset/lib/python3.13/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 88, in _split_generators pa.Table.from_pylist(cast_to_python_objects([example], only_1d_for_numpy=True)) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/table.pxi", line 2046, in pyarrow.lib._Tabular.from_pylist File "pyarrow/table.pxi", line 6431, in pyarrow.lib._from_pylist File "pyarrow/table.pxi", line 4893, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1607, in pyarrow.lib._sanitize_arrays File "pyarrow/table.pxi", line 1588, in pyarrow.lib._schema_from_arrays File "pyarrow/array.pxi", line 375, in pyarrow.lib.array File "pyarrow/array.pxi", line 45, in pyarrow.lib._sequence_to_array File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 3980158992 ``` ### Steps to reproduce the bug ```python #!/usr/bin/env python import argparse from datasets import get_dataset_config_names, load_dataset from tqdm import tqdm from pyarrow.lib import ArrowCapacityError, ArrowInvalid def iterate_keys(language_subset: str) -> None: """Iterate over all samples in the Sign Bibles dataset and print idx and sample key.""" # https://huggingface.co/docs/datasets/v4.0.0/en/package_reference/loading_methods#datasets.load_dataset ds = load_dataset("bible-nlp/sign-bibles", language_subset, streaming=True, split="train") print(f"\n==> Loaded dataset config '{language_subset}'") idx = 0 estimated_shard_index = 0 samples_per_shard = 5 with tqdm(desc=f"{language_subset} samples") as pbar: iterator = iter(ds) while True: try: if idx % samples_per_shard == 0 and idx > 0: # 5 samples per shard: 0, 1, 2, 3, 4 print(f"Estimated Shard idx (starting at 0, {samples_per_shard}/shard): {estimated_shard_index}") estimated_shard_index += 1 sample = next(iterator) sample_key = sample.get("__key__", "missing-key") print(f"[{language_subset}] idx={idx}, key={sample_key}") idx += 1 pbar.update(1) except StopIteration: print(f"Finished iterating through {idx} samples of {language_subset}") break except (ArrowCapacityError, ArrowInvalid) as e: print(f"PyArrow error on idx={idx}, config={language_subset}: {e}") idx += 1 pbar.update(1) continue except KeyError as e: print(f"Missing key error on idx={idx}, config={language_subset}: {e}") idx += 1 pbar.update(1) continue def main(): configs = get_dataset_config_names("bible-nlp/sign-bibles") print(f"Available configs: {configs}") configs = [ "ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard" ] for language_subset in configs: print(f"TESTING CONFIG {language_subset}") iterate_keys(language_subset) # try: # except (ArrowCapacityError, ArrowInvalid) as e: # print(f"PyArrow error at config level for {language_subset}: {e}") # continue # except RuntimeError as e: # print(f"RuntimeError at config level for {language_subset}: {e}") # continue if __name__ == "__main__": parser = argparse.ArgumentParser(description="Iterate through Sign Bibles dataset and print sample keys.") args = parser.parse_args() main() ``` ### Expected behavior I expect, when I load with streaming=True, that there should not be any data loaded or anything like that. https://huggingface.co/docs/datasets/main/en/package_reference/loading_methods#datasets.load_dataset says that with streaming=true, I did expect to have some trouble with large files, but that the streaming mode would not actually try to load them unless requested, e.g. with sample["mp4"] >In the streaming case: > Don’t download or cache anything. Instead, the dataset is lazily loaded and will be streamed on-the-fly when iterating on it. ### Environment info Local setup: Conda environment on Ubuntu, pip list includes the following datasets 4.0.0 pyarrow 20.0.0 Verified on Colab: https://colab.research.google.com/drive/1HdN8stlROWrLSYXUoNeV0vQ9pClhIVM8?usp=sharing, though there it crashes by using up all available RAM
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7691/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7691/timeline
null
null
null
null
2025-07-19T18:40:27Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7690
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7690/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7690/comments
https://api.github.com/repos/huggingface/datasets/issues/7690/events
https://github.com/huggingface/datasets/pull/7690
3,244,380,691
PR_kwDODunzps6fozag
7,690
HDF5 support
{ "avatar_url": "https://avatars.githubusercontent.com/u/17013474?v=4", "events_url": "https://api.github.com/users/klamike/events{/privacy}", "followers_url": "https://api.github.com/users/klamike/followers", "following_url": "https://api.github.com/users/klamike/following{/other_user}", "gists_url": "https://api.github.com/users/klamike/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klamike", "id": 17013474, "login": "klamike", "node_id": "MDQ6VXNlcjE3MDEzNDc0", "organizations_url": "https://api.github.com/users/klamike/orgs", "received_events_url": "https://api.github.com/users/klamike/received_events", "repos_url": "https://api.github.com/users/klamike/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klamike/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klamike/subscriptions", "type": "User", "url": "https://api.github.com/users/klamike", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "A few to-dos which I think can be left for future PRs (which I am happy to do/help with -- just this one is already huge 😄 ):\r\n- [Enum types](https://docs.h5py.org/en/stable/special.html#enumerated-types)\r\n- HDF5 [io](https://github.com/huggingface/datasets/tree/main/src/datasets/io)\r\n- [dataset-viewer](https://github.com/huggingface/dataset-viewer) support (not sure if changes are needed with the way it is written now)", "created_at": "2025-07-23T02:11:02Z", "html_url": "https://github.com/huggingface/datasets/pull/7690#issuecomment-3105391677", "id": 3105391677, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7690", "node_id": "IC_kwDODunzps65GIQ9", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3105391677/reactions" }, "updated_at": "2025-07-23T02:54:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3105391677", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/17013474?v=4", "events_url": "https://api.github.com/users/klamike/events{/privacy}", "followers_url": "https://api.github.com/users/klamike/followers", "following_url": "https://api.github.com/users/klamike/following{/other_user}", "gists_url": "https://api.github.com/users/klamike/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klamike", "id": 17013474, "login": "klamike", "node_id": "MDQ6VXNlcjE3MDEzNDc0", "organizations_url": "https://api.github.com/users/klamike/orgs", "received_events_url": "https://api.github.com/users/klamike/received_events", "repos_url": "https://api.github.com/users/klamike/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klamike/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klamike/subscriptions", "type": "User", "url": "https://api.github.com/users/klamike", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@lhoestq any interest in merging this? Let me know if I can do anything to make reviewing it easier!", "created_at": "2025-07-25T15:22:21Z", "html_url": "https://github.com/huggingface/datasets/pull/7690#issuecomment-3118570910", "id": 3118570910, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7690", "node_id": "IC_kwDODunzps654Z2e", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118570910/reactions" }, "updated_at": "2025-07-25T15:22:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118570910", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/17013474?v=4", "events_url": "https://api.github.com/users/klamike/events{/privacy}", "followers_url": "https://api.github.com/users/klamike/followers", "following_url": "https://api.github.com/users/klamike/following{/other_user}", "gists_url": "https://api.github.com/users/klamike/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klamike", "id": 17013474, "login": "klamike", "node_id": "MDQ6VXNlcjE3MDEzNDc0", "organizations_url": "https://api.github.com/users/klamike/orgs", "received_events_url": "https://api.github.com/users/klamike/received_events", "repos_url": "https://api.github.com/users/klamike/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klamike/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klamike/subscriptions", "type": "User", "url": "https://api.github.com/users/klamike", "user_view_type": "public" } } ]
2025-07-18T21:09:41Z
2025-07-28T21:32:12Z
null
NONE
null
null
null
This PR adds support for tabular HDF5 file(s) by converting each row to an Arrow table. It supports columns with the usual dtypes including up to 5-dimensional arrays as well as support for complex/compound types by splitting them into several columns. All datasets within the HDF5 file should have rows on the first dimension (groups/subgroups are still allowed). Closes #3113. Replaces #7625 which only supports a relatively small subset of HDF5.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7690/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7690/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7690.diff", "html_url": "https://github.com/huggingface/datasets/pull/7690", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7690.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7690" }
2025-07-18T21:09:41Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7689
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7689/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7689/comments
https://api.github.com/repos/huggingface/datasets/issues/7689/events
https://github.com/huggingface/datasets/issues/7689
3,242,580,301
I_kwDODunzps7BRdlN
7,689
BadRequestError for loading dataset?
{ "avatar_url": "https://avatars.githubusercontent.com/u/45011687?v=4", "events_url": "https://api.github.com/users/WPoelman/events{/privacy}", "followers_url": "https://api.github.com/users/WPoelman/followers", "following_url": "https://api.github.com/users/WPoelman/following{/other_user}", "gists_url": "https://api.github.com/users/WPoelman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WPoelman", "id": 45011687, "login": "WPoelman", "node_id": "MDQ6VXNlcjQ1MDExNjg3", "organizations_url": "https://api.github.com/users/WPoelman/orgs", "received_events_url": "https://api.github.com/users/WPoelman/received_events", "repos_url": "https://api.github.com/users/WPoelman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WPoelman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WPoelman/subscriptions", "type": "User", "url": "https://api.github.com/users/WPoelman", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "Same here, for `HuggingFaceFW/fineweb`. Code that worked with no issues for the last 2 months suddenly fails today. Tried updating `datasets`, `huggingface_hub`, `fsspec` to newest versions, but the same error occurs.", "created_at": "2025-07-18T09:34:20Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088803431", "id": 3088803431, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64G2Zn", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088803431/reactions" }, "updated_at": "2025-07-18T09:34:20Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088803431", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/29806640?v=4", "events_url": "https://api.github.com/users/rovle/events{/privacy}", "followers_url": "https://api.github.com/users/rovle/followers", "following_url": "https://api.github.com/users/rovle/following{/other_user}", "gists_url": "https://api.github.com/users/rovle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rovle", "id": 29806640, "login": "rovle", "node_id": "MDQ6VXNlcjI5ODA2NjQw", "organizations_url": "https://api.github.com/users/rovle/orgs", "received_events_url": "https://api.github.com/users/rovle/received_events", "repos_url": "https://api.github.com/users/rovle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rovle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rovle/subscriptions", "type": "User", "url": "https://api.github.com/users/rovle", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I'm also hitting this issue, with `mandarjoshi/trivia_qa`; My dataset loading was working successfully yesterday - I'm using `huggingface-hub==0.27.1`, `datasets==3.2.0`", "created_at": "2025-07-18T09:43:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088828249", "id": 3088828249, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64G8dZ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088828249/reactions" }, "updated_at": "2025-07-18T09:52:17Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088828249", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/19254716?v=4", "events_url": "https://api.github.com/users/HSaddiq/events{/privacy}", "followers_url": "https://api.github.com/users/HSaddiq/followers", "following_url": "https://api.github.com/users/HSaddiq/following{/other_user}", "gists_url": "https://api.github.com/users/HSaddiq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HSaddiq", "id": 19254716, "login": "HSaddiq", "node_id": "MDQ6VXNlcjE5MjU0NzE2", "organizations_url": "https://api.github.com/users/HSaddiq/orgs", "received_events_url": "https://api.github.com/users/HSaddiq/received_events", "repos_url": "https://api.github.com/users/HSaddiq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HSaddiq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HSaddiq/subscriptions", "type": "User", "url": "https://api.github.com/users/HSaddiq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same, here with `datasets==3.6.0`", "created_at": "2025-07-18T09:50:46Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088848863", "id": 3088848863, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HBff", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088848863/reactions" }, "updated_at": "2025-07-18T09:50:46Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088848863", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/95627643?v=4", "events_url": "https://api.github.com/users/AlexandrosEmvoliadis/events{/privacy}", "followers_url": "https://api.github.com/users/AlexandrosEmvoliadis/followers", "following_url": "https://api.github.com/users/AlexandrosEmvoliadis/following{/other_user}", "gists_url": "https://api.github.com/users/AlexandrosEmvoliadis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexandrosEmvoliadis", "id": 95627643, "login": "AlexandrosEmvoliadis", "node_id": "U_kgDOBbMpew", "organizations_url": "https://api.github.com/users/AlexandrosEmvoliadis/orgs", "received_events_url": "https://api.github.com/users/AlexandrosEmvoliadis/received_events", "repos_url": "https://api.github.com/users/AlexandrosEmvoliadis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexandrosEmvoliadis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexandrosEmvoliadis/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexandrosEmvoliadis", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same, with `datasets==4.0.0`.", "created_at": "2025-07-18T09:52:40Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088853696", "id": 3088853696, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HCrA", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088853696/reactions" }, "updated_at": "2025-07-18T09:57:07Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088853696", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/3599351?v=4", "events_url": "https://api.github.com/users/Alpacius/events{/privacy}", "followers_url": "https://api.github.com/users/Alpacius/followers", "following_url": "https://api.github.com/users/Alpacius/following{/other_user}", "gists_url": "https://api.github.com/users/Alpacius/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Alpacius", "id": 3599351, "login": "Alpacius", "node_id": "MDQ6VXNlcjM1OTkzNTE=", "organizations_url": "https://api.github.com/users/Alpacius/orgs", "received_events_url": "https://api.github.com/users/Alpacius/received_events", "repos_url": "https://api.github.com/users/Alpacius/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Alpacius/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Alpacius/subscriptions", "type": "User", "url": "https://api.github.com/users/Alpacius", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same here tried different versions of huggingface-hub and datasets but the error keeps occuring ", "created_at": "2025-07-18T09:53:26Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088856530", "id": 3088856530, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HDXS", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088856530/reactions" }, "updated_at": "2025-07-18T09:53:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088856530", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/114345821?v=4", "events_url": "https://api.github.com/users/LMSPaul/events{/privacy}", "followers_url": "https://api.github.com/users/LMSPaul/followers", "following_url": "https://api.github.com/users/LMSPaul/following{/other_user}", "gists_url": "https://api.github.com/users/LMSPaul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LMSPaul", "id": 114345821, "login": "LMSPaul", "node_id": "U_kgDOBtDHXQ", "organizations_url": "https://api.github.com/users/LMSPaul/orgs", "received_events_url": "https://api.github.com/users/LMSPaul/received_events", "repos_url": "https://api.github.com/users/LMSPaul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LMSPaul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LMSPaul/subscriptions", "type": "User", "url": "https://api.github.com/users/LMSPaul", "user_view_type": "public" } }, { "author_association": "NONE", "body": "A temporary workaround is to first download your dataset with\n\nhuggingface-cli download HuggingFaceH4/ultrachat_200k --repo-type dataset\n\nThen find the local path of the dataset typically like ~/.cache/huggingface/hub/HuggingFaceH4-ultrachat_200k/snapshots/*id*\n\nAnd then load like \n\nfrom datasets import load_dataset\ndataset = load_dataset(\"~/.cache/huggingface/hub/HuggingFaceH4-ultrachat_200k/snapshots/*id*\")\n", "created_at": "2025-07-18T10:03:49Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088885172", "id": 3088885172, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HKW0", "performed_via_github_app": null, "reactions": { "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088885172/reactions" }, "updated_at": "2025-07-18T10:03:49Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088885172", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/114345821?v=4", "events_url": "https://api.github.com/users/LMSPaul/events{/privacy}", "followers_url": "https://api.github.com/users/LMSPaul/followers", "following_url": "https://api.github.com/users/LMSPaul/following{/other_user}", "gists_url": "https://api.github.com/users/LMSPaul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LMSPaul", "id": 114345821, "login": "LMSPaul", "node_id": "U_kgDOBtDHXQ", "organizations_url": "https://api.github.com/users/LMSPaul/orgs", "received_events_url": "https://api.github.com/users/LMSPaul/received_events", "repos_url": "https://api.github.com/users/LMSPaul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LMSPaul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LMSPaul/subscriptions", "type": "User", "url": "https://api.github.com/users/LMSPaul", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I am also experiencing this issue. I was trying to load TinyStories\nds = datasets.load_dataset(\"roneneldan/TinyStories\", streaming=True, split=\"train\")\n\nresulting in the previously stated error:\nException has occurred: BadRequestError\n(Request ID: Root=1-687a1d09-66cceb496c9401b1084133d6;3550deed-c459-4799-bc74-97924742bd94)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n✖ Invalid input: expected array, received string\n → at paths\n✖ Invalid input: expected boolean, received string\n → at expand\nFileNotFoundError: Dataset roneneldan/TinyStories is not cached in None\n\nThis very code worked fine yesterday, so it's a very recent issue.\n\nEnvironment info:\nprint(\"datasets version:\", datasets.__version__)\nprint(\"huggingface_hub version:\", huggingface_hub.__version__)\nprint(\"pyarrow version:\", pyarrow.__version__)\nprint(\"pandas version:\", pandas.__version__)\nprint(\"fsspec version:\", fsspec.__version__)\nprint(\"Python version:\", sys.version)\nprint(\"Platform:\", platform.platform())\ndatasets version: 4.0.0\nhuggingface_hub version: 0.33.4\npyarrow version: 19.0.0\npandas version: 2.2.3\nfsspec version: 2024.9.0\nPython version: 3.12.11 (main, Jun 10 2025, 11:55:20) [GCC 15.1.1 20250425]\nPlatform: Linux-6.15.6-arch1-1-x86_64-with-glibc2.41", "created_at": "2025-07-18T10:21:11Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3088945396", "id": 3088945396, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HZD0", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088945396/reactions" }, "updated_at": "2025-07-18T10:21:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3088945396", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/5984212?v=4", "events_url": "https://api.github.com/users/Snowyiu/events{/privacy}", "followers_url": "https://api.github.com/users/Snowyiu/followers", "following_url": "https://api.github.com/users/Snowyiu/following{/other_user}", "gists_url": "https://api.github.com/users/Snowyiu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Snowyiu", "id": 5984212, "login": "Snowyiu", "node_id": "MDQ6VXNlcjU5ODQyMTI=", "organizations_url": "https://api.github.com/users/Snowyiu/orgs", "received_events_url": "https://api.github.com/users/Snowyiu/received_events", "repos_url": "https://api.github.com/users/Snowyiu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Snowyiu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Snowyiu/subscriptions", "type": "User", "url": "https://api.github.com/users/Snowyiu", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same here with datasets==3.6.0\n```\nhuggingface_hub.errors.BadRequestError: (Request ID: Root=1-687a238d-27374f964534f79f702bc239;61f0669c-cb70-4aff-b57b-73a446f9c65e)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n✖ Invalid input: expected array, received string\n → at paths\n✖ Invalid input: expected boolean, received string\n → at expand\n```", "created_at": "2025-07-18T10:42:43Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089020990", "id": 3089020990, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64Hrg-", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089020990/reactions" }, "updated_at": "2025-07-18T10:42:43Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089020990", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/112567202?v=4", "events_url": "https://api.github.com/users/Buffett111/events{/privacy}", "followers_url": "https://api.github.com/users/Buffett111/followers", "following_url": "https://api.github.com/users/Buffett111/following{/other_user}", "gists_url": "https://api.github.com/users/Buffett111/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Buffett111", "id": 112567202, "login": "Buffett111", "node_id": "U_kgDOBrWjog", "organizations_url": "https://api.github.com/users/Buffett111/orgs", "received_events_url": "https://api.github.com/users/Buffett111/received_events", "repos_url": "https://api.github.com/users/Buffett111/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Buffett111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Buffett111/subscriptions", "type": "User", "url": "https://api.github.com/users/Buffett111", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same here, works perfectly yesterday\n\n```\nError code: ConfigNamesError\nException: BadRequestError\nMessage: (Request ID: Root=1-687a23a5-314b45b36ce962cf0e431b9a;b979ddb2-a80b-483c-8b1e-403e24e83127)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n✖ Invalid input: expected array, received string\n → at paths\n✖ Invalid input: expected boolean, received string\n → at expand\n```", "created_at": "2025-07-18T10:49:26Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089044117", "id": 3089044117, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64HxKV", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089044117/reactions" }, "updated_at": "2025-07-18T10:49:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089044117", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/93083801?v=4", "events_url": "https://api.github.com/users/StarryZhang-whu/events{/privacy}", "followers_url": "https://api.github.com/users/StarryZhang-whu/followers", "following_url": "https://api.github.com/users/StarryZhang-whu/following{/other_user}", "gists_url": "https://api.github.com/users/StarryZhang-whu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/StarryZhang-whu", "id": 93083801, "login": "StarryZhang-whu", "node_id": "U_kgDOBYxYmQ", "organizations_url": "https://api.github.com/users/StarryZhang-whu/orgs", "received_events_url": "https://api.github.com/users/StarryZhang-whu/received_events", "repos_url": "https://api.github.com/users/StarryZhang-whu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/StarryZhang-whu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StarryZhang-whu/subscriptions", "type": "User", "url": "https://api.github.com/users/StarryZhang-whu", "user_view_type": "public" } }, { "author_association": "NONE", "body": "It was literally working for me and then suddenly it stopped working next time I run the command. Same issue but private repo so I can't share example. ", "created_at": "2025-07-18T10:59:21Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089076656", "id": 3089076656, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64H5Gw", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089076656/reactions" }, "updated_at": "2025-07-18T10:59:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089076656", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/31596917?v=4", "events_url": "https://api.github.com/users/nikitas-theo/events{/privacy}", "followers_url": "https://api.github.com/users/nikitas-theo/followers", "following_url": "https://api.github.com/users/nikitas-theo/following{/other_user}", "gists_url": "https://api.github.com/users/nikitas-theo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nikitas-theo", "id": 31596917, "login": "nikitas-theo", "node_id": "MDQ6VXNlcjMxNTk2OTE3", "organizations_url": "https://api.github.com/users/nikitas-theo/orgs", "received_events_url": "https://api.github.com/users/nikitas-theo/received_events", "repos_url": "https://api.github.com/users/nikitas-theo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nikitas-theo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nikitas-theo/subscriptions", "type": "User", "url": "https://api.github.com/users/nikitas-theo", "user_view_type": "public" } }, { "author_association": "NONE", "body": "A bug from Hugging Face not us", "created_at": "2025-07-18T11:07:53Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089104496", "id": 3089104496, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64H_5w", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089104496/reactions" }, "updated_at": "2025-07-18T11:07:53Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089104496", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/89017978?v=4", "events_url": "https://api.github.com/users/ZhangzeqingCN/events{/privacy}", "followers_url": "https://api.github.com/users/ZhangzeqingCN/followers", "following_url": "https://api.github.com/users/ZhangzeqingCN/following{/other_user}", "gists_url": "https://api.github.com/users/ZhangzeqingCN/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ZhangzeqingCN", "id": 89017978, "login": "ZhangzeqingCN", "node_id": "MDQ6VXNlcjg5MDE3OTc4", "organizations_url": "https://api.github.com/users/ZhangzeqingCN/orgs", "received_events_url": "https://api.github.com/users/ZhangzeqingCN/received_events", "repos_url": "https://api.github.com/users/ZhangzeqingCN/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ZhangzeqingCN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZhangzeqingCN/subscriptions", "type": "User", "url": "https://api.github.com/users/ZhangzeqingCN", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same here!", "created_at": "2025-07-18T11:17:35Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089131524", "id": 3089131524, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64IGgE", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089131524/reactions" }, "updated_at": "2025-07-18T11:17:35Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089131524", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/168540866?v=4", "events_url": "https://api.github.com/users/sdtblckgov/events{/privacy}", "followers_url": "https://api.github.com/users/sdtblckgov/followers", "following_url": "https://api.github.com/users/sdtblckgov/following{/other_user}", "gists_url": "https://api.github.com/users/sdtblckgov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdtblckgov", "id": 168540866, "login": "sdtblckgov", "node_id": "U_kgDOCgu6wg", "organizations_url": "https://api.github.com/users/sdtblckgov/orgs", "received_events_url": "https://api.github.com/users/sdtblckgov/received_events", "repos_url": "https://api.github.com/users/sdtblckgov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdtblckgov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdtblckgov/subscriptions", "type": "User", "url": "https://api.github.com/users/sdtblckgov", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@LMSPaul thanks! The workaround seems to work (at least for the datasets I tested).\n\nOn the command line:\n```sh\nhuggingface-cli download <dataset-name> --repo-type dataset --local-dir <local-dir>\n```\n\nAnd then in Python:\n```python\nfrom datasets import load_dataset\n\n# The dataset-specific options seem to work with this as well, \n# except for a warning from \"trust_remote_code\"\nds = load_dataset(<local-dir>)\n```", "created_at": "2025-07-18T11:25:52Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089151595", "id": 3089151595, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64ILZr", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 1, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089151595/reactions" }, "updated_at": "2025-07-18T11:25:52Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089151595", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/45011687?v=4", "events_url": "https://api.github.com/users/WPoelman/events{/privacy}", "followers_url": "https://api.github.com/users/WPoelman/followers", "following_url": "https://api.github.com/users/WPoelman/following{/other_user}", "gists_url": "https://api.github.com/users/WPoelman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WPoelman", "id": 45011687, "login": "WPoelman", "node_id": "MDQ6VXNlcjQ1MDExNjg3", "organizations_url": "https://api.github.com/users/WPoelman/orgs", "received_events_url": "https://api.github.com/users/WPoelman/received_events", "repos_url": "https://api.github.com/users/WPoelman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WPoelman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WPoelman/subscriptions", "type": "User", "url": "https://api.github.com/users/WPoelman", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same for me.. I couldn't load ..\nIt was perfectly working yesterday..\n\n\nfrom datasets import load_dataset\nraw_datasets = load_dataset(\"glue\", \"mrpc\")\n\nThe error resulting is given below\n\n---------------------------------------------------------------------------\nBadRequestError Traceback (most recent call last)\n/tmp/ipykernel_60/772458687.py in <cell line: 0>()\n 1 from datasets import load_dataset\n----> 2 raw_datasets = load_dataset(\"glue\", \"mrpc\")\n\n/usr/local/lib/python3.11/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\n 2060 \n 2061 # Create a dataset builder\n-> 2062 builder_instance = load_dataset_builder(\n 2063 path=path,\n 2064 name=name,\n\n/usr/local/lib/python3.11/dist-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\n 1780 download_config = download_config.copy() if download_config else DownloadConfig()\n 1781 download_config.storage_options.update(storage_options)\n-> 1782 dataset_module = dataset_module_factory(\n 1783 path,\n 1784 revision=revision,\n\n/usr/local/lib/python3.11/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\n 1662 f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\n 1663 ) from None\n-> 1664 raise e1 from None\n 1665 elif trust_remote_code:\n 1666 raise FileNotFoundError(\n\n/usr/local/lib/python3.11/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\n 1627 download_mode=download_mode,\n 1628 use_exported_dataset_infos=use_exported_dataset_infos,\n-> 1629 ).get_module()\n 1630 except GatedRepoError as e:\n 1631 message = f\"Dataset '{path}' is a gated dataset on the Hub.\"\n\n/usr/local/lib/python3.11/dist-packages/datasets/load.py in get_module(self)\n 1017 else:\n 1018 patterns = get_data_patterns(base_path, download_config=self.download_config)\n-> 1019 data_files = DataFilesDict.from_patterns(\n 1020 patterns,\n 1021 base_path=base_path,\n\n/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in from_patterns(cls, patterns, base_path, allowed_extensions, download_config)\n 687 patterns_for_key\n 688 if isinstance(patterns_for_key, DataFilesList)\n--> 689 else DataFilesList.from_patterns(\n 690 patterns_for_key,\n 691 base_path=base_path,\n\n/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in from_patterns(cls, patterns, base_path, allowed_extensions, download_config)\n 580 try:\n 581 data_files.extend(\n--> 582 resolve_pattern(\n 583 pattern,\n 584 base_path=base_path,\n\n/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in resolve_pattern(pattern, base_path, allowed_extensions, download_config)\n 358 matched_paths = [\n 359 filepath if filepath.startswith(protocol_prefix) else protocol_prefix + filepath\n--> 360 for filepath, info in fs.glob(pattern, detail=True, **glob_kwargs).items()\n 361 if (info[\"type\"] == \"file\" or (info.get(\"islink\") and os.path.isfile(os.path.realpath(filepath))))\n 362 and (xbasename(filepath) not in files_to_ignore)\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in glob(self, path, **kwargs)\n 519 kwargs = {\"expand_info\": kwargs.get(\"detail\", False), **kwargs}\n 520 path = self.resolve_path(path, revision=kwargs.get(\"revision\")).unresolve()\n--> 521 return super().glob(path, **kwargs)\n 522 \n 523 def find(\n\n/usr/local/lib/python3.11/dist-packages/fsspec/spec.py in glob(self, path, maxdepth, **kwargs)\n 635 # any exception allowed bar FileNotFoundError?\n 636 return False\n--> 637 \n 638 def lexists(self, path, **kwargs):\n 639 \"\"\"If there is a file at the given path (including\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in find(self, path, maxdepth, withdirs, detail, refresh, revision, **kwargs)\n 554 \"\"\"\n 555 if maxdepth:\n--> 556 return super().find(\n 557 path, maxdepth=maxdepth, withdirs=withdirs, detail=detail, refresh=refresh, revision=revision, **kwargs\n 558 )\n\n/usr/local/lib/python3.11/dist-packages/fsspec/spec.py in find(self, path, maxdepth, withdirs, detail, **kwargs)\n 498 # This is needed for posix glob compliance\n 499 if withdirs and path != \"\" and self.isdir(path):\n--> 500 out[path] = self.info(path)\n 501 \n 502 for _, dirs, files in self.walk(path, maxdepth, detail=True, **kwargs):\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in info(self, path, refresh, revision, **kwargs)\n 717 out = out1[0]\n 718 if refresh or out is None or (expand_info and out and out[\"last_commit\"] is None):\n--> 719 paths_info = self._api.get_paths_info(\n 720 resolved_path.repo_id,\n 721 resolved_path.path_in_repo,\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_validators.py in _inner_fn(*args, **kwargs)\n 112 kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.__name__, has_token=has_token, kwargs=kwargs)\n 113 \n--> 114 return fn(*args, **kwargs)\n 115 \n 116 return _inner_fn # type: ignore\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_api.py in get_paths_info(self, repo_id, paths, expand, revision, repo_type, token)\n 3397 headers=headers,\n 3398 )\n-> 3399 hf_raise_for_status(response)\n 3400 paths_info = response.json()\n 3401 return [\n\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)\n 463 f\"\\n\\nBad request for {endpoint_name} endpoint:\" if endpoint_name is not None else \"\\n\\nBad request:\"\n 464 )\n--> 465 raise _format(BadRequestError, message, response) from e\n 466 \n 467 elif response.status_code == 403:\n\nBadRequestError: (Request ID: Root=1-687a3201-087954b9245ab59672e6068e;d5bb4dbe-03e1-4912-bcec-5964c017b920)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n✖ Invalid input: expected array, received string\n → at paths\n✖ Invalid input: expected boolean, re", "created_at": "2025-07-18T11:41:22Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089194603", "id": 3089194603, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64IV5r", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089194603/reactions" }, "updated_at": "2025-07-18T11:41:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089194603", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/39984052?v=4", "events_url": "https://api.github.com/users/mumthazbeegumm/events{/privacy}", "followers_url": "https://api.github.com/users/mumthazbeegumm/followers", "following_url": "https://api.github.com/users/mumthazbeegumm/following{/other_user}", "gists_url": "https://api.github.com/users/mumthazbeegumm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mumthazbeegumm", "id": 39984052, "login": "mumthazbeegumm", "node_id": "MDQ6VXNlcjM5OTg0MDUy", "organizations_url": "https://api.github.com/users/mumthazbeegumm/orgs", "received_events_url": "https://api.github.com/users/mumthazbeegumm/received_events", "repos_url": "https://api.github.com/users/mumthazbeegumm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mumthazbeegumm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mumthazbeegumm/subscriptions", "type": "User", "url": "https://api.github.com/users/mumthazbeegumm", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "Thanks for the report!\nThe issue has been fixed and should now work without any code changes 😄\nSorry for the inconvenience!\n\nClosing, please open again if needed.", "created_at": "2025-07-18T11:52:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089227282", "id": 3089227282, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64Id4S", "performed_via_github_app": null, "reactions": { "+1": 10, "-1": 0, "confused": 0, "eyes": 0, "heart": 2, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 12, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089227282/reactions" }, "updated_at": "2025-07-18T11:52:29Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089227282", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/17179696?v=4", "events_url": "https://api.github.com/users/sergiopaniego/events{/privacy}", "followers_url": "https://api.github.com/users/sergiopaniego/followers", "following_url": "https://api.github.com/users/sergiopaniego/following{/other_user}", "gists_url": "https://api.github.com/users/sergiopaniego/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sergiopaniego", "id": 17179696, "login": "sergiopaniego", "node_id": "MDQ6VXNlcjE3MTc5Njk2", "organizations_url": "https://api.github.com/users/sergiopaniego/orgs", "received_events_url": "https://api.github.com/users/sergiopaniego/received_events", "repos_url": "https://api.github.com/users/sergiopaniego/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sergiopaniego/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sergiopaniego/subscriptions", "type": "User", "url": "https://api.github.com/users/sergiopaniego", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Works for me. Thanks!\n", "created_at": "2025-07-18T11:55:16Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320", "id": 3089238320, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64Igkw", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089238320/reactions" }, "updated_at": "2025-07-18T11:55:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089238320", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/10846210?v=4", "events_url": "https://api.github.com/users/karol-brejna-i/events{/privacy}", "followers_url": "https://api.github.com/users/karol-brejna-i/followers", "following_url": "https://api.github.com/users/karol-brejna-i/following{/other_user}", "gists_url": "https://api.github.com/users/karol-brejna-i/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/karol-brejna-i", "id": 10846210, "login": "karol-brejna-i", "node_id": "MDQ6VXNlcjEwODQ2MjEw", "organizations_url": "https://api.github.com/users/karol-brejna-i/orgs", "received_events_url": "https://api.github.com/users/karol-brejna-i/received_events", "repos_url": "https://api.github.com/users/karol-brejna-i/repos", "site_admin": false, "starred_url": "https://api.github.com/users/karol-brejna-i/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/karol-brejna-i/subscriptions", "type": "User", "url": "https://api.github.com/users/karol-brejna-i", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Yes Now it's works for me..Thanks\r\n\r\nOn Fri, 18 Jul 2025, 5:25 pm Karol Brejna, ***@***.***> wrote:\r\n\r\n> *karol-brejna-i* left a comment (huggingface/datasets#7689)\r\n> <https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320>\r\n>\r\n> Works for me. Thanks!\r\n>\r\n> —\r\n> Reply to this email directly, view it on GitHub\r\n> <https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320>,\r\n> or unsubscribe\r\n> <https://github.com/notifications/unsubscribe-auth/AJRBXNEWBJ5UYVC2IRJM5DD3JDODZAVCNFSM6AAAAACB2FDG4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOBZGIZTQMZSGA>\r\n> .\r\n> You are receiving this because you commented.Message ID:\r\n> ***@***.***>\r\n>\r\n", "created_at": "2025-07-18T11:59:51Z", "html_url": "https://github.com/huggingface/datasets/issues/7689#issuecomment-3089248827", "id": 3089248827, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7689", "node_id": "IC_kwDODunzps64IjI7", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089248827/reactions" }, "updated_at": "2025-07-18T11:59:51Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3089248827", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/39984052?v=4", "events_url": "https://api.github.com/users/mumthazbeegumm/events{/privacy}", "followers_url": "https://api.github.com/users/mumthazbeegumm/followers", "following_url": "https://api.github.com/users/mumthazbeegumm/following{/other_user}", "gists_url": "https://api.github.com/users/mumthazbeegumm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mumthazbeegumm", "id": 39984052, "login": "mumthazbeegumm", "node_id": "MDQ6VXNlcjM5OTg0MDUy", "organizations_url": "https://api.github.com/users/mumthazbeegumm/orgs", "received_events_url": "https://api.github.com/users/mumthazbeegumm/received_events", "repos_url": "https://api.github.com/users/mumthazbeegumm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mumthazbeegumm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mumthazbeegumm/subscriptions", "type": "User", "url": "https://api.github.com/users/mumthazbeegumm", "user_view_type": "public" } } ]
2025-07-18T09:30:04Z
2025-07-18T11:59:51Z
2025-07-18T11:52:29Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Up until a couple days ago I was having no issues loading `Helsinki-NLP/europarl` and `Helsinki-NLP/un_pc`, but now suddenly I get the following error: ``` huggingface_hub.errors.BadRequestError: (Request ID: ...) Bad request: * Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand ✖ Invalid input: expected array, received string → at paths ✖ Invalid input: expected boolean, received string → at expand ``` I tried with both `4.0.0` and `3.5.1` since this dataset uses `trust_remote_code`, but I get the same error with both. What can I do to load the dataset? I checked the documentation and GitHub issues here, but couldn't find a solution. ### Steps to reproduce the bug ```python import datasets ds = datasets.load_dataset("Helsinki-NLP/europarl", "en-fr", streaming=True, trust_remote_code=True)["train"] ``` ### Expected behavior That the dataset loads as it did a couple days ago. ### Environment info - `datasets` version: 3.5.1 - Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28 - Python version: 3.11.11 - `huggingface_hub` version: 0.30.2 - PyArrow version: 20.0.0 - Pandas version: 2.2.2 - `fsspec` version: 2024.6.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/17179696?v=4", "events_url": "https://api.github.com/users/sergiopaniego/events{/privacy}", "followers_url": "https://api.github.com/users/sergiopaniego/followers", "following_url": "https://api.github.com/users/sergiopaniego/following{/other_user}", "gists_url": "https://api.github.com/users/sergiopaniego/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sergiopaniego", "id": 17179696, "login": "sergiopaniego", "node_id": "MDQ6VXNlcjE3MTc5Njk2", "organizations_url": "https://api.github.com/users/sergiopaniego/orgs", "received_events_url": "https://api.github.com/users/sergiopaniego/received_events", "repos_url": "https://api.github.com/users/sergiopaniego/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sergiopaniego/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sergiopaniego/subscriptions", "type": "User", "url": "https://api.github.com/users/sergiopaniego", "user_view_type": "public" }
{ "+1": 23, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 23, "url": "https://api.github.com/repos/huggingface/datasets/issues/7689/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7689/timeline
null
completed
null
null
2025-07-18T09:30:04Z
2025-07-18T11:52:29Z
2:22:25
false
https://api.github.com/repos/huggingface/datasets/issues/7687
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7687/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7687/comments
https://api.github.com/repos/huggingface/datasets/issues/7687/events
https://github.com/huggingface/datasets/issues/7687
3,238,760,301
I_kwDODunzps7BC49t
7,687
Datasets keeps rebuilding the dataset every time i call the python script
{ "avatar_url": "https://avatars.githubusercontent.com/u/58883113?v=4", "events_url": "https://api.github.com/users/CALEB789/events{/privacy}", "followers_url": "https://api.github.com/users/CALEB789/followers", "following_url": "https://api.github.com/users/CALEB789/following{/other_user}", "gists_url": "https://api.github.com/users/CALEB789/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CALEB789", "id": 58883113, "login": "CALEB789", "node_id": "MDQ6VXNlcjU4ODgzMTEz", "organizations_url": "https://api.github.com/users/CALEB789/orgs", "received_events_url": "https://api.github.com/users/CALEB789/received_events", "repos_url": "https://api.github.com/users/CALEB789/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CALEB789/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CALEB789/subscriptions", "type": "User", "url": "https://api.github.com/users/CALEB789", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "here is the code to load the dataset form the cache:\n\n```python\ns = load_dataset('databricks/databricks-dolly-15k')['train']\n```\n\nif you pass the location of a local directory it will create a new cache based on that directory content", "created_at": "2025-07-25T15:21:31Z", "html_url": "https://github.com/huggingface/datasets/issues/7687#issuecomment-3118561602", "id": 3118561602, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7687", "node_id": "IC_kwDODunzps654XlC", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118561602/reactions" }, "updated_at": "2025-07-25T15:21:31Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118561602", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-17T09:03:38Z
2025-07-25T15:21:31Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Every time it runs, somehow, samples increase. This can cause a 12mb dataset to have other built versions of 400 mbs+ <img width="363" height="481" alt="Image" src="https://github.com/user-attachments/assets/766ce958-bd2b-41bc-b950-86710259bfdc" /> ### Steps to reproduce the bug `from datasets import load_dataset s = load_dataset('~/.cache/huggingface/datasets/databricks___databricks-dolly-15k')['train'] ` 1. A dataset needs to be available in the .cache folder 2. Run the code multiple times, and every time it runs, more versions are created ### Expected behavior The number of samples increases every time the script runs ### Environment info - `datasets` version: 3.6.0 - Platform: Windows-11-10.0.26100-SP0 - Python version: 3.13.3 - `huggingface_hub` version: 0.32.3 - PyArrow version: 20.0.0 - Pandas version: 2.2.3 - `fsspec` version: 2025.3.0
null
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/7687/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7687/timeline
null
null
null
null
2025-07-17T09:03:38Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7686
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7686/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7686/comments
https://api.github.com/repos/huggingface/datasets/issues/7686/events
https://github.com/huggingface/datasets/issues/7686
3,237,201,090
I_kwDODunzps7A88TC
7,686
load_dataset does not check .no_exist files in the hub cache
{ "avatar_url": "https://avatars.githubusercontent.com/u/3627235?v=4", "events_url": "https://api.github.com/users/jmaccarl/events{/privacy}", "followers_url": "https://api.github.com/users/jmaccarl/followers", "following_url": "https://api.github.com/users/jmaccarl/following{/other_user}", "gists_url": "https://api.github.com/users/jmaccarl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jmaccarl", "id": 3627235, "login": "jmaccarl", "node_id": "MDQ6VXNlcjM2MjcyMzU=", "organizations_url": "https://api.github.com/users/jmaccarl/orgs", "received_events_url": "https://api.github.com/users/jmaccarl/received_events", "repos_url": "https://api.github.com/users/jmaccarl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jmaccarl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jmaccarl/subscriptions", "type": "User", "url": "https://api.github.com/users/jmaccarl", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-07-16T20:04:00Z
2025-07-16T20:04:00Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I'm not entirely sure if this should be submitted as a bug in the `datasets` library or the `huggingface_hub` library, given it could be fixed at different levels of the stack. The fundamental issue is that the `load_datasets` api doesn't use the `.no_exist` files in the hub cache unlike other wrapper APIs that do. This is because the `utils.file_utils.cached_path` used directly calls `hf_hub_download` instead of using `file_download.try_to_load_from_cache` from `huggingface_hub` (see `transformers` library `utils.hub.cached_files` for one alternate example). This results in unnecessary metadata HTTP requests occurring for files that don't exist on every call. It won't generate the .no_exist cache files, nor will it use them. ### Steps to reproduce the bug Run the following snippet as one example (setting cache dirs to clean paths for clarity) `env HF_HOME=~/local_hf_hub python repro.py` ``` from datasets import load_dataset import huggingface_hub # monkeypatch to print out metadata requests being made original_get_hf_file_metadata = huggingface_hub.file_download.get_hf_file_metadata def get_hf_file_metadata_wrapper(*args, **kwargs): print("File metadata request made (get_hf_file_metadata):", args, kwargs) return original_get_hf_file_metadata(*args, **kwargs) # Apply the patch huggingface_hub.file_download.get_hf_file_metadata = get_hf_file_metadata_wrapper dataset = load_dataset( "Salesforce/wikitext", "wikitext-2-v1", split="test", trust_remote_code=True, cache_dir="~/local_datasets", revision="b08601e04326c79dfdd32d625aee71d232d685c3", ) ``` This may be called over and over again, and you will see the same calls for files that don't exist: ``` File metadata request made (get_hf_file_metadata): () {'url': 'https://huggingface.co/datasets/Salesforce/wikitext/resolve/b08601e04326c79dfdd32d625aee71d232d685c3/wikitext.py', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets/3.6.0; hf_hub/0.33.2; python/3.12.11; torch/2.7.0; huggingface_hub/0.33.2; pyarrow/20.0.0; jax/0.5.3'}, 'token': None} File metadata request made (get_hf_file_metadata): () {'url': 'https://huggingface.co/datasets/Salesforce/wikitext/resolve/b08601e04326c79dfdd32d625aee71d232d685c3/.huggingface.yaml', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets/3.6.0; hf_hub/0.33.2; python/3.12.11; torch/2.7.0; huggingface_hub/0.33.2; pyarrow/20.0.0; jax/0.5.3'}, 'token': None} File metadata request made (get_hf_file_metadata): () {'url': 'https://huggingface.co/datasets/Salesforce/wikitext/resolve/b08601e04326c79dfdd32d625aee71d232d685c3/dataset_infos.json', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets/3.6.0; hf_hub/0.33.2; python/3.12.11; torch/2.7.0; huggingface_hub/0.33.2; pyarrow/20.0.0; jax/0.5.3'}, 'token': None} ``` And you can see that the .no_exist folder is never created ``` $ ls ~/local_hf_hub/hub/datasets--Salesforce--wikitext/ blobs refs snapshots ``` ### Expected behavior The expected behavior is for the print "File metadata request made" to stop after the first call, and for .no_exist directory & files to be populated under ~/local_hf_hub/hub/datasets--Salesforce--wikitext/ ### Environment info - `datasets` version: 3.6.0 - Platform: Linux-6.5.13-65-650-4141-22041-coreweave-amd64-85c45edc-x86_64-with-glibc2.35 - Python version: 3.12.11 - `huggingface_hub` version: 0.33.2 - PyArrow version: 20.0.0 - Pandas version: 2.3.1 - `fsspec` version: 2024.9.0
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7686/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7686/timeline
null
null
null
null
2025-07-16T20:04:00Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7688
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7688/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7688/comments
https://api.github.com/repos/huggingface/datasets/issues/7688/events
https://github.com/huggingface/datasets/issues/7688
3,238,851,443
I_kwDODunzps7BDPNz
7,688
No module named "distributed"
{ "avatar_url": "https://avatars.githubusercontent.com/u/45058324?v=4", "events_url": "https://api.github.com/users/yingtongxiong/events{/privacy}", "followers_url": "https://api.github.com/users/yingtongxiong/followers", "following_url": "https://api.github.com/users/yingtongxiong/following{/other_user}", "gists_url": "https://api.github.com/users/yingtongxiong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yingtongxiong", "id": 45058324, "login": "yingtongxiong", "node_id": "MDQ6VXNlcjQ1MDU4MzI0", "organizations_url": "https://api.github.com/users/yingtongxiong/orgs", "received_events_url": "https://api.github.com/users/yingtongxiong/received_events", "repos_url": "https://api.github.com/users/yingtongxiong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yingtongxiong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yingtongxiong/subscriptions", "type": "User", "url": "https://api.github.com/users/yingtongxiong", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "The error ModuleNotFoundError: No module named 'datasets.distributed' means your installed datasets library is too old or incompatible with the version of Library you are using(in my case it was BEIR). The datasets.distributed module was removed in recent versions of the datasets library.\n\nDowngrade datasets to version 2.14.6 : ! pip install datasets==2.14.6\n", "created_at": "2025-07-21T13:49:04Z", "html_url": "https://github.com/huggingface/datasets/issues/7688#issuecomment-3096866547", "id": 3096866547, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7688", "node_id": "IC_kwDODunzps64lm7z", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096866547/reactions" }, "updated_at": "2025-07-21T13:50:27Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096866547", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/169159018?v=4", "events_url": "https://api.github.com/users/baraayusry/events{/privacy}", "followers_url": "https://api.github.com/users/baraayusry/followers", "following_url": "https://api.github.com/users/baraayusry/following{/other_user}", "gists_url": "https://api.github.com/users/baraayusry/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/baraayusry", "id": 169159018, "login": "baraayusry", "node_id": "U_kgDOChUpag", "organizations_url": "https://api.github.com/users/baraayusry/orgs", "received_events_url": "https://api.github.com/users/baraayusry/received_events", "repos_url": "https://api.github.com/users/baraayusry/repos", "site_admin": false, "starred_url": "https://api.github.com/users/baraayusry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baraayusry/subscriptions", "type": "User", "url": "https://api.github.com/users/baraayusry", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "this code does run in `datasets` 4.0:\n```python\nfrom datasets.distributed import split_dataset_by_node\n```\n\nmake sure you have a python version that is recent enough (>=3.9) to be able to install `datasets` 4.0", "created_at": "2025-07-25T14:34:54Z", "html_url": "https://github.com/huggingface/datasets/issues/7688#issuecomment-3118131381", "id": 3118131381, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7688", "node_id": "IC_kwDODunzps652ui1", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118131381/reactions" }, "updated_at": "2025-07-25T14:34:54Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118131381", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I do think the problem is caused by the python version, because I do have python version 3.12.5", "created_at": "2025-07-25T15:14:19Z", "html_url": "https://github.com/huggingface/datasets/issues/7688#issuecomment-3118487703", "id": 3118487703, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7688", "node_id": "IC_kwDODunzps654FiX", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118487703/reactions" }, "updated_at": "2025-07-25T15:14:19Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118487703", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/169159018?v=4", "events_url": "https://api.github.com/users/baraayusry/events{/privacy}", "followers_url": "https://api.github.com/users/baraayusry/followers", "following_url": "https://api.github.com/users/baraayusry/following{/other_user}", "gists_url": "https://api.github.com/users/baraayusry/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/baraayusry", "id": 169159018, "login": "baraayusry", "node_id": "U_kgDOChUpag", "organizations_url": "https://api.github.com/users/baraayusry/orgs", "received_events_url": "https://api.github.com/users/baraayusry/received_events", "repos_url": "https://api.github.com/users/baraayusry/repos", "site_admin": false, "starred_url": "https://api.github.com/users/baraayusry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baraayusry/subscriptions", "type": "User", "url": "https://api.github.com/users/baraayusry", "user_view_type": "public" } } ]
2025-07-17T09:32:35Z
2025-07-25T15:14:19Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip install datasets 2. from datasets.distributed import split_dataset_by_node ### Expected behavior expecting the command "from datasets.distributed import split_dataset_by_node" can be ran successfully ### Environment info python: 3.12
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7688/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7688/timeline
null
null
null
null
2025-07-17T09:32:35Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7685
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7685/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7685/comments
https://api.github.com/repos/huggingface/datasets/issues/7685/events
https://github.com/huggingface/datasets/issues/7685
3,236,979,340
I_kwDODunzps7A8GKM
7,685
Inconsistent range request behavior for parquet REST api
{ "avatar_url": "https://avatars.githubusercontent.com/u/21327470?v=4", "events_url": "https://api.github.com/users/universalmind303/events{/privacy}", "followers_url": "https://api.github.com/users/universalmind303/followers", "following_url": "https://api.github.com/users/universalmind303/following{/other_user}", "gists_url": "https://api.github.com/users/universalmind303/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/universalmind303", "id": 21327470, "login": "universalmind303", "node_id": "MDQ6VXNlcjIxMzI3NDcw", "organizations_url": "https://api.github.com/users/universalmind303/orgs", "received_events_url": "https://api.github.com/users/universalmind303/received_events", "repos_url": "https://api.github.com/users/universalmind303/repos", "site_admin": false, "starred_url": "https://api.github.com/users/universalmind303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/universalmind303/subscriptions", "type": "User", "url": "https://api.github.com/users/universalmind303", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "This is a weird bug, is it a range that is supposed to be satisfiable ? I mean, is it on the boundraries ?\n\nLet me know if you'r e still having the issue, in case it was just a transient bug", "created_at": "2025-07-25T15:24:05Z", "html_url": "https://github.com/huggingface/datasets/issues/7685#issuecomment-3118590303", "id": 3118590303, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7685", "node_id": "IC_kwDODunzps654elf", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118590303/reactions" }, "updated_at": "2025-07-25T15:24:05Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118590303", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@lhoestq yes the ranges are supposed to be satisfiable, and _sometimes_ they are. \n\nThe head requests show that it does in fact accept a byte range. \n\n```\n> curl -IL \"https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet\" \n\n\nHTTP/2 200\ncontent-length: 218006142\ncontent-disposition: inline; filename*=UTF-8''0000.parquet; filename=\"0000.parquet\";\ncache-control: public, max-age=31536000\netag: \"cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\"\naccess-control-allow-origin: *\naccess-control-allow-headers: Content-Range, Content-Type, Content-Disposition, ETag\naccess-control-expose-headers: Accept-Ranges, Content-Range, Content-Type, Content-Disposition, ETag, X-Cache\naccept-ranges: bytes\nx-request-id: 01K11493PRMCZKVSNCBF1EX1WJ\ndate: Fri, 25 Jul 2025 15:47:25 GMT\nx-cache: Hit from cloudfront\nvia: 1.1 ad637ff39738449b56ab4eac4b02cbf4.cloudfront.net (CloudFront)\nx-amz-cf-pop: MSP50-P2\nx-amz-cf-id: ti1Ze3e0knGMl0PkeZ_F_snZNZe4007D9uT502MkGjM4NWPYWy13wA==\nage: 15\ncontent-security-policy: default-src 'none'; sandbox\n```\n\nand as I mentioned, _sometimes_ it satisfies the request \n\n```\n* Request completely sent off\n< HTTP/2 206\n< content-length: 131072\n< content-disposition: inline; filename*=UTF-8''0000.parquet; filename=\"0000.parquet\";\n< cache-control: public, max-age=31536000\n< etag: \"cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\"\n< access-control-allow-origin: *\n< access-control-allow-headers: Content-Range, Content-Type, Content-Disposition, ETag\n< access-control-expose-headers: Accept-Ranges, Content-Range, Content-Type, Content-Disposition, ETag, X-Cache\n< x-request-id: 01K1146P5PNC4D2XD348C78BTC\n< date: Fri, 25 Jul 2025 15:46:06 GMT\n< x-cache: Hit from cloudfront\n< via: 1.1 990606ab91bf6503d073ad5fee40784c.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P2\n< x-amz-cf-id: l58ghqEzNZn4eo4IRNl76fOFrHTk_TJKeLi0-g8YYHmq7Oh3s8sXnQ==\n< age: 248\n< content-security-policy: default-src 'none'; sandbox\n< content-range: bytes 217875070-218006141/218006142\n```\n\nbut more often than not, it returns a 416\n```\n* Request completely sent off\n< HTTP/2 416\n< content-type: text/html\n< content-length: 49\n< server: CloudFront\n< date: Fri, 25 Jul 2025 15:51:08 GMT\n< expires: Fri, 25 Jul 2025 15:51:08 GMT\n< content-range: bytes */177\n< x-cache: Error from cloudfront\n< via: 1.1 65ba38c8dc30018660c405d1f32ef3a0.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: 1t1Att_eqiO-LmlnnaO-cCPoh6G2AIQDaklhS08F_revXNqijMpseA==\n```\n\n\n", "created_at": "2025-07-25T15:49:54Z", "html_url": "https://github.com/huggingface/datasets/issues/7685#issuecomment-3118858316", "id": 3118858316, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7685", "node_id": "IC_kwDODunzps655gBM", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118858316/reactions" }, "updated_at": "2025-07-25T15:51:23Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3118858316", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/21327470?v=4", "events_url": "https://api.github.com/users/universalmind303/events{/privacy}", "followers_url": "https://api.github.com/users/universalmind303/followers", "following_url": "https://api.github.com/users/universalmind303/following{/other_user}", "gists_url": "https://api.github.com/users/universalmind303/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/universalmind303", "id": 21327470, "login": "universalmind303", "node_id": "MDQ6VXNlcjIxMzI3NDcw", "organizations_url": "https://api.github.com/users/universalmind303/orgs", "received_events_url": "https://api.github.com/users/universalmind303/received_events", "repos_url": "https://api.github.com/users/universalmind303/repos", "site_admin": false, "starred_url": "https://api.github.com/users/universalmind303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/universalmind303/subscriptions", "type": "User", "url": "https://api.github.com/users/universalmind303", "user_view_type": "public" } }, { "author_association": "NONE", "body": "As a workaround, adding a unique parameter to the url avoids the CDN caching and returns the correct result. \n\n```\n❯ curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet?cachebust=<SOMEUNIQUESTRING>\" \n``` \n", "created_at": "2025-07-25T16:09:49Z", "html_url": "https://github.com/huggingface/datasets/issues/7685#issuecomment-3119052298", "id": 3119052298, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7685", "node_id": "IC_kwDODunzps656PYK", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3119052298/reactions" }, "updated_at": "2025-07-25T16:09:49Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3119052298", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/21327470?v=4", "events_url": "https://api.github.com/users/universalmind303/events{/privacy}", "followers_url": "https://api.github.com/users/universalmind303/followers", "following_url": "https://api.github.com/users/universalmind303/following{/other_user}", "gists_url": "https://api.github.com/users/universalmind303/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/universalmind303", "id": 21327470, "login": "universalmind303", "node_id": "MDQ6VXNlcjIxMzI3NDcw", "organizations_url": "https://api.github.com/users/universalmind303/orgs", "received_events_url": "https://api.github.com/users/universalmind303/received_events", "repos_url": "https://api.github.com/users/universalmind303/repos", "site_admin": false, "starred_url": "https://api.github.com/users/universalmind303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/universalmind303/subscriptions", "type": "User", "url": "https://api.github.com/users/universalmind303", "user_view_type": "public" } } ]
2025-07-16T18:39:44Z
2025-07-25T16:09:50Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere. The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. More often than not, I am seeing 416, but other times for an identical request, it gives me the data along with `206 Partial Content` as expected. ### Steps to reproduce the bug repeating this request multiple times will return either 416 or 206. ```sh $ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet" ``` Note: this is not limited to just the above file, I tried with many different datasets and am able to consistently reproduce issue across multiple datasets. when the 416 is returned, I get the following headers ``` < HTTP/2 416 < content-type: text/html < content-length: 49 < server: CloudFront < date: Wed, 16 Jul 2025 14:58:43 GMT < expires: Wed, 16 Jul 2025 14:58:43 GMT < content-range: bytes */177 < x-cache: Error from cloudfront < via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront) < ``` this suggests to me that there is likely a CDN/caching/routing issue happening and the request is not getting routed properly. Full verbose output via curl. <details> ❯ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved. * IPv6: (none) * IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86 * Trying 18.160.102.96:443... * Connected to huggingface.co (18.160.102.96) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): } [319 bytes data] * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): { [122 bytes data] * (304) (IN), TLS handshake, Unknown (8): { [19 bytes data] * (304) (IN), TLS handshake, Certificate (11): { [3821 bytes data] * (304) (IN), TLS handshake, CERT verify (15): { [264 bytes data] * (304) (IN), TLS handshake, Finished (20): { [36 bytes data] * (304) (OUT), TLS handshake, Finished (20): } [36 bytes data] * SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: CN=huggingface.co * start date: Apr 13 00:00:00 2025 GMT * expire date: May 12 23:59:59 2026 GMT * subjectAltName: host "huggingface.co" matched cert's "huggingface.co" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02 * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: huggingface.co] * [HTTP/2] [1] [:path: /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] * [HTTP/2] [1] [range: bytes=217875070-218006142] > GET /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet HTTP/2 > Host: huggingface.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 416 < content-type: text/html < content-length: 49 < server: CloudFront < date: Wed, 16 Jul 2025 14:58:41 GMT < expires: Wed, 16 Jul 2025 14:58:41 GMT < content-range: bytes */177 < x-cache: Error from cloudfront < via: 1.1 e2f1bed2f82641d6d5439eac20a790ba.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P1 < x-amz-cf-id: Mo8hn-EZLJqE_hoBday8DdhmVXhV3v9-Wg-EEHI6gX_fNlkanVIUBA== < { [49 bytes data] 100 49 100 49 0 0 2215 0 --:--:-- --:--:-- --:--:-- 2227 * Connection #0 to host huggingface.co left intact (.venv) Daft main*​* ≡❯ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved. * IPv6: (none) * IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86 * Trying 18.160.102.96:443... * Connected to huggingface.co (18.160.102.96) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): } [319 bytes data] * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): { [122 bytes data] * (304) (IN), TLS handshake, Unknown (8): { [19 bytes data] * (304) (IN), TLS handshake, Certificate (11): { [3821 bytes data] * (304) (IN), TLS handshake, CERT verify (15): { [264 bytes data] * (304) (IN), TLS handshake, Finished (20): { [36 bytes data] * (304) (OUT), TLS handshake, Finished (20): } [36 bytes data] * SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: CN=huggingface.co * start date: Apr 13 00:00:00 2025 GMT * expire date: May 12 23:59:59 2026 GMT * subjectAltName: host "huggingface.co" matched cert's "huggingface.co" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02 * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: huggingface.co] * [HTTP/2] [1] [:path: /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] * [HTTP/2] [1] [range: bytes=217875070-218006142] > GET /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet HTTP/2 > Host: huggingface.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 416 < content-type: text/html < content-length: 49 < server: CloudFront < date: Wed, 16 Jul 2025 14:58:42 GMT < expires: Wed, 16 Jul 2025 14:58:42 GMT < content-range: bytes */177 < x-cache: Error from cloudfront < via: 1.1 bb352451e1eacf85f8786ee3ecd07eca.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P1 < x-amz-cf-id: 9xy-CX9KvlS8Ye4eFr8jXMDobZHFkvdyvkLJGmK_qiwZQywCCwfq7Q== < { [49 bytes data] 100 49 100 49 0 0 2381 0 --:--:-- --:--:-- --:--:-- 2450 * Connection #0 to host huggingface.co left intact (.venv) Daft main*​* ≡❯ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved. * IPv6: (none) * IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86 * Trying 18.160.102.96:443... * Connected to huggingface.co (18.160.102.96) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): } [319 bytes data] * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): { [122 bytes data] * (304) (IN), TLS handshake, Unknown (8): { [19 bytes data] * (304) (IN), TLS handshake, Certificate (11): { [3821 bytes data] * (304) (IN), TLS handshake, CERT verify (15): { [264 bytes data] * (304) (IN), TLS handshake, Finished (20): { [36 bytes data] * (304) (OUT), TLS handshake, Finished (20): } [36 bytes data] * SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: CN=huggingface.co * start date: Apr 13 00:00:00 2025 GMT * expire date: May 12 23:59:59 2026 GMT * subjectAltName: host "huggingface.co" matched cert's "huggingface.co" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02 * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: huggingface.co] * [HTTP/2] [1] [:path: /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] * [HTTP/2] [1] [range: bytes=217875070-218006142] > GET /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet HTTP/2 > Host: huggingface.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 416 < content-type: text/html < content-length: 49 < server: CloudFront < date: Wed, 16 Jul 2025 14:58:43 GMT < expires: Wed, 16 Jul 2025 14:58:43 GMT < content-range: bytes */177 < x-cache: Error from cloudfront < via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P1 < x-amz-cf-id: wtBgwY4u4YJ2pD1ovM8UV770UiJoqWfs7i7VzschDyoLv5g7swGGmw== < { [49 bytes data] 100 49 100 49 0 0 2273 0 --:--:-- --:--:-- --:--:-- 2333 * Connection #0 to host huggingface.co left intact (.venv) Daft main*​* ≡❯ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved. * IPv6: (none) * IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86 * Trying 18.160.102.96:443... * Connected to huggingface.co (18.160.102.96) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): } [319 bytes data] * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): { [122 bytes data] * (304) (IN), TLS handshake, Unknown (8): { [19 bytes data] * (304) (IN), TLS handshake, Certificate (11): { [3821 bytes data] * (304) (IN), TLS handshake, CERT verify (15): { [264 bytes data] * (304) (IN), TLS handshake, Finished (20): { [36 bytes data] * (304) (OUT), TLS handshake, Finished (20): } [36 bytes data] * SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: CN=huggingface.co * start date: Apr 13 00:00:00 2025 GMT * expire date: May 12 23:59:59 2026 GMT * subjectAltName: host "huggingface.co" matched cert's "huggingface.co" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02 * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: huggingface.co] * [HTTP/2] [1] [:path: /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] * [HTTP/2] [1] [range: bytes=217875070-218006142] > GET /api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet HTTP/2 > Host: huggingface.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 302 < content-type: text/plain; charset=utf-8 < content-length: 177 < location: https://huggingface.co/datasets/HuggingFaceTB/smoltalk2/resolve/refs%2Fconvert%2Fparquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0000.parquet < date: Wed, 16 Jul 2025 14:58:44 GMT < x-powered-by: huggingface-moon < cross-origin-opener-policy: same-origin < referrer-policy: strict-origin-when-cross-origin < x-request-id: Root=1-6877be24-476860f03849cb1a1570c9d8 < access-control-allow-origin: https://huggingface.co < access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash < set-cookie: token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None < set-cookie: token=; Domain=huggingface.co; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax < x-cache: Miss from cloudfront < via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P1 < x-amz-cf-id: xuSi0X5RpH1OZqQOM8gGQLQLU8eOM6Gbkk-bgIX_qBnTTaa1VNkExA== < * Ignoring the response-body 100 177 100 177 0 0 2021 0 --:--:-- --:--:-- --:--:-- 2034 * Connection #0 to host huggingface.co left intact * Issue another request to this URL: 'https://huggingface.co/datasets/HuggingFaceTB/smoltalk2/resolve/refs%2Fconvert%2Fparquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0000.parquet' * Found bundle for host: 0x600002d54570 [can multiplex] * Re-using existing connection with host huggingface.co * [HTTP/2] [3] OPENED stream for https://huggingface.co/datasets/HuggingFaceTB/smoltalk2/resolve/refs%2Fconvert%2Fparquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0000.parquet * [HTTP/2] [3] [:method: GET] * [HTTP/2] [3] [:scheme: https] * [HTTP/2] [3] [:authority: huggingface.co] * [HTTP/2] [3] [:path: /datasets/HuggingFaceTB/smoltalk2/resolve/refs%2Fconvert%2Fparquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0000.parquet] * [HTTP/2] [3] [user-agent: curl/8.7.1] * [HTTP/2] [3] [accept: */*] * [HTTP/2] [3] [range: bytes=217875070-218006142] > GET /datasets/HuggingFaceTB/smoltalk2/resolve/refs%2Fconvert%2Fparquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0000.parquet HTTP/2 > Host: huggingface.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 302 < content-type: text/plain; charset=utf-8 < content-length: 1317 < location: https://cas-bridge.xethub.hf.co/xet-bridge-us/686fc33898943c873b45c9a0/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC < date: Wed, 16 Jul 2025 14:58:44 GMT < x-powered-by: huggingface-moon < cross-origin-opener-policy: same-origin < referrer-policy: strict-origin-when-cross-origin < x-request-id: Root=1-6877be24-4f628b292dc8a7a5339c41d3 < access-control-allow-origin: https://huggingface.co < vary: Origin, Accept < access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash < set-cookie: token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None < set-cookie: token=; Domain=huggingface.co; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax < x-repo-commit: 712df366ffbc959d9f4279bf2da579230b7ca5d8 < accept-ranges: bytes < x-linked-size: 218006142 < x-linked-etag: "01736bf26d0046ddec4ab8900fba3f0dc6500b038314b44d0edb73a7c88dec07" < x-xet-hash: cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9 < link: <https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/xet-read-token/712df366ffbc959d9f4279bf2da579230b7ca5d8>; rel="xet-auth", <https://cas-server.xethub.hf.co/reconstruction/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9>; rel="xet-reconstruction-info" < x-cache: Miss from cloudfront < via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P1 < x-amz-cf-id: 0qXw2sJGrWCLVt7c-Vtn09uE3nu6CrJw9RmAKvNr_flG75muclvlIg== < * Ignoring the response-body 100 1317 100 1317 0 0 9268 0 --:--:-- --:--:-- --:--:-- 9268 * Connection #0 to host huggingface.co left intact * Issue another request to this URL: 'https://cas-bridge.xethub.hf.co/xet-bridge-us/686fc33898943c873b45c9a0/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC' * Host cas-bridge.xethub.hf.co:443 was resolved. * IPv6: (none) * IPv4: 18.160.181.55, 18.160.181.54, 18.160.181.52, 18.160.181.88 * Trying 18.160.181.55:443... * Connected to cas-bridge.xethub.hf.co (18.160.181.55) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): } [328 bytes data] * (304) (IN), TLS handshake, Server hello (2): { [122 bytes data] * (304) (IN), TLS handshake, Unknown (8): { [19 bytes data] * (304) (IN), TLS handshake, Certificate (11): { [3818 bytes data] * (304) (IN), TLS handshake, CERT verify (15): { [264 bytes data] * (304) (IN), TLS handshake, Finished (20): { [36 bytes data] * (304) (OUT), TLS handshake, Finished (20): } [36 bytes data] * SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: CN=cas-bridge.xethub.hf.co * start date: Jun 4 00:00:00 2025 GMT * expire date: Jul 3 23:59:59 2026 GMT * subjectAltName: host "cas-bridge.xethub.hf.co" matched cert's "cas-bridge.xethub.hf.co" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M04 * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://cas-bridge.xethub.hf.co/xet-bridge-us/686fc33898943c873b45c9a0/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: cas-bridge.xethub.hf.co] * [HTTP/2] [1] [:path: /xet-bridge-us/686fc33898943c873b45c9a0/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] * [HTTP/2] [1] [range: bytes=217875070-218006142] > GET /xet-bridge-us/686fc33898943c873b45c9a0/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC HTTP/2 > Host: cas-bridge.xethub.hf.co > User-Agent: curl/8.7.1 > Accept: */* > Range: bytes=217875070-218006142 > * Request completely sent off < HTTP/2 206 < content-length: 131072 < date: Mon, 14 Jul 2025 08:40:28 GMT < x-request-id: 01K041FDPVA03RR2PRXDZSN30G < content-disposition: inline; filename*=UTF-8''0000.parquet; filename="0000.parquet"; < cache-control: public, max-age=31536000 < etag: "cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9" < access-control-allow-origin: * < access-control-allow-headers: Content-Range, Content-Type, Content-Disposition, ETag < access-control-expose-headers: Accept-Ranges, Content-Range, Content-Type, Content-Disposition, ETag, X-Cache < x-cache: Hit from cloudfront < via: 1.1 1c857e24a4dc84d2d9c78d5b3463bed6.cloudfront.net (CloudFront) < x-amz-cf-pop: MSP50-P2 < x-amz-cf-id: 3SxFmQa5wLeeXbNiwaAo0_RwoR_n7-SivjsLjDLG-Pwn5UhG2oiEQA== < age: 195496 < content-security-policy: default-src 'none'; sandbox < content-range: bytes 217875070-218006141/218006142 < { [8192 bytes data] 100 128k 100 128k 0 0 769k 0 --:--:-- --:--:-- --:--:-- 769k * Connection #1 to host cas-bridge.xethub.hf.co left intact </details> ### Expected behavior always get back a `206` ### Environment info n/a
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7685/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7685/timeline
null
null
null
null
2025-07-16T18:39:44Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7683
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7683/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7683/comments
https://api.github.com/repos/huggingface/datasets/issues/7683/events
https://github.com/huggingface/datasets/pull/7683
3,231,553,161
PR_kwDODunzps6e82iW
7,683
Convert to string when needed + faster .zstd
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7683). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-15T09:40:16Z", "html_url": "https://github.com/huggingface/datasets/pull/7683#issuecomment-3072916525", "id": 3072916525, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7683", "node_id": "IC_kwDODunzps63KPwt", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3072916525/reactions" }, "updated_at": "2025-07-15T09:40:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3072916525", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-15T09:37:44Z
2025-07-15T10:13:58Z
2025-07-15T10:13:56Z
MEMBER
null
null
null
for https://huggingface.co/datasets/allenai/olmo-mix-1124
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7683/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7683/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7683.diff", "html_url": "https://github.com/huggingface/datasets/pull/7683", "merged_at": "2025-07-15T10:13:56Z", "patch_url": "https://github.com/huggingface/datasets/pull/7683.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7683" }
2025-07-15T09:37:44Z
2025-07-15T10:13:56Z
0:36:12
true
https://api.github.com/repos/huggingface/datasets/issues/7684
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7684/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7684/comments
https://api.github.com/repos/huggingface/datasets/issues/7684/events
https://github.com/huggingface/datasets/pull/7684
3,231,680,474
PR_kwDODunzps6e9SjQ
7,684
fix audio cast storage from array + sampling_rate
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7684). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-15T10:16:10Z", "html_url": "https://github.com/huggingface/datasets/pull/7684#issuecomment-3073032403", "id": 3073032403, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7684", "node_id": "IC_kwDODunzps63KsDT", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073032403/reactions" }, "updated_at": "2025-07-15T10:16:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073032403", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-15T10:13:42Z
2025-07-15T10:24:08Z
2025-07-15T10:24:07Z
MEMBER
null
null
null
fix https://github.com/huggingface/datasets/issues/7682
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7684/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7684/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7684.diff", "html_url": "https://github.com/huggingface/datasets/pull/7684", "merged_at": "2025-07-15T10:24:07Z", "patch_url": "https://github.com/huggingface/datasets/pull/7684.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7684" }
2025-07-15T10:13:42Z
2025-07-15T10:24:07Z
0:10:25
true
https://api.github.com/repos/huggingface/datasets/issues/7681
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7681/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7681/comments
https://api.github.com/repos/huggingface/datasets/issues/7681/events
https://github.com/huggingface/datasets/issues/7681
3,227,112,736
I_kwDODunzps7AWdUg
7,681
Probabilistic High Memory Usage and Freeze on Python 3.10
{ "avatar_url": "https://avatars.githubusercontent.com/u/82735346?v=4", "events_url": "https://api.github.com/users/ryan-minato/events{/privacy}", "followers_url": "https://api.github.com/users/ryan-minato/followers", "following_url": "https://api.github.com/users/ryan-minato/following{/other_user}", "gists_url": "https://api.github.com/users/ryan-minato/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ryan-minato", "id": 82735346, "login": "ryan-minato", "node_id": "MDQ6VXNlcjgyNzM1MzQ2", "organizations_url": "https://api.github.com/users/ryan-minato/orgs", "received_events_url": "https://api.github.com/users/ryan-minato/received_events", "repos_url": "https://api.github.com/users/ryan-minato/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ryan-minato/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ryan-minato/subscriptions", "type": "User", "url": "https://api.github.com/users/ryan-minato", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-07-14T01:57:16Z
2025-07-14T01:57:16Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug A probabilistic issue encountered when processing datasets containing PIL.Image columns using the huggingface/datasets library on Python 3.10. The process occasionally experiences a sudden and significant memory spike, reaching 100% utilization, leading to a complete freeze. During this freeze, the process becomes unresponsive, cannot be forcefully terminated, and does not throw any exceptions. I have attempted to mitigate this issue by setting `datasets.config.IN_MEMORY_MAX_SIZE`, but it had no effect. In fact, based on the document of `load_dataset`, I suspect that setting `IN_MEMORY_MAX_SIZE` might even have a counterproductive effect. This bug is not consistently reproducible, but its occurrence rate significantly decreases or disappears entirely when upgrading Python to version 3.11 or higher. Therefore, this issue also serves to share a potential solution for others who might encounter similar problems. ### Steps to reproduce the bug Due to the probabilistic nature of this bug, consistent reproduction cannot be guaranteed for every run. However, in my environment, processing large datasets like timm/imagenet-1k-wds(whether reading, casting, or mapping operations) almost certainly triggers the issue at some point. The probability of the issue occurring drastically increases when num_proc is set to a value greater than 1 during operations. When the issue occurs, my system logs repeatedly show the following warnings: ``` WARN: very high memory utilization: 57.74GiB / 57.74GiB (100 %) WARN: container is unhealthy: triggered memory limits (OOM) WARN: container is unhealthy: triggered memory limits (OOM) WARN: container is unhealthy: triggered memory limits (OOM) ``` ### Expected behavior The dataset should be read and processed normally without memory exhaustion or freezing. If an unrecoverable error occurs, an appropriate exception should be raised. I have found that upgrading Python to version 3.11 or above completely resolves this issue. On Python 3.11, when memory usage approaches 100%, it suddenly drops before slowly increasing again. I suspect this behavior is due to an expected memory management action, possibly involving writing to disk cache, which prevents the complete freeze observed in Python 3.10. ### Environment info - `datasets` version: 4.0.0 - Platform: Linux-5.15.0-71-generic-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.33.4 - PyArrow version: 20.0.0 - Pandas version: 2.3.1 - `fsspec` version: 2025.3.0
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7681/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7681/timeline
null
null
null
null
2025-07-14T01:57:16Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7682
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7682/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7682/comments
https://api.github.com/repos/huggingface/datasets/issues/7682/events
https://github.com/huggingface/datasets/issues/7682
3,229,687,253
I_kwDODunzps7AgR3V
7,682
Fail to cast Audio feature for numpy arrays in datasets 4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/163345686?v=4", "events_url": "https://api.github.com/users/luatil-cloud/events{/privacy}", "followers_url": "https://api.github.com/users/luatil-cloud/followers", "following_url": "https://api.github.com/users/luatil-cloud/following{/other_user}", "gists_url": "https://api.github.com/users/luatil-cloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/luatil-cloud", "id": 163345686, "login": "luatil-cloud", "node_id": "U_kgDOCbx1Fg", "organizations_url": "https://api.github.com/users/luatil-cloud/orgs", "received_events_url": "https://api.github.com/users/luatil-cloud/received_events", "repos_url": "https://api.github.com/users/luatil-cloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/luatil-cloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/luatil-cloud/subscriptions", "type": "User", "url": "https://api.github.com/users/luatil-cloud", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "thanks for reporting, I opened a PR and I'll make a patch release soon ", "created_at": "2025-07-15T10:14:37Z", "html_url": "https://github.com/huggingface/datasets/issues/7682#issuecomment-3073027855", "id": 3073027855, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7682", "node_id": "IC_kwDODunzps63Kq8P", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073027855/reactions" }, "updated_at": "2025-07-15T10:14:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073027855", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> thanks for reporting, I opened a PR and I'll make a patch release soon\n\nThank you very much @lhoestq!", "created_at": "2025-07-15T12:10:39Z", "html_url": "https://github.com/huggingface/datasets/issues/7682#issuecomment-3073357417", "id": 3073357417, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7682", "node_id": "IC_kwDODunzps63L7Zp", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073357417/reactions" }, "updated_at": "2025-07-15T12:10:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073357417", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/163345686?v=4", "events_url": "https://api.github.com/users/luatil-cloud/events{/privacy}", "followers_url": "https://api.github.com/users/luatil-cloud/followers", "following_url": "https://api.github.com/users/luatil-cloud/following{/other_user}", "gists_url": "https://api.github.com/users/luatil-cloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/luatil-cloud", "id": 163345686, "login": "luatil-cloud", "node_id": "U_kgDOCbx1Fg", "organizations_url": "https://api.github.com/users/luatil-cloud/orgs", "received_events_url": "https://api.github.com/users/luatil-cloud/received_events", "repos_url": "https://api.github.com/users/luatil-cloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/luatil-cloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/luatil-cloud/subscriptions", "type": "User", "url": "https://api.github.com/users/luatil-cloud", "user_view_type": "public" } } ]
2025-07-14T18:41:02Z
2025-07-15T12:10:39Z
2025-07-15T10:24:08Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Casting features with Audio for numpy arrays - done here with `ds.map(gen_sine, features=features)` fails in version 4.0.0 but not in version 3.6.0 ### Steps to reproduce the bug The following `uv script` should be able to reproduce the bug in version 4.0.0 and pass in version 3.6.0 on a macOS Sequoia 15.5 ```python # /// script # requires-python = ">=3.13" # dependencies = [ # "datasets[audio]==4.0.0", # "librosa>=0.11.0", # ] # /// # NAME # create_audio_dataset.py - create an audio dataset of sine waves # # SYNOPSIS # uv run create_audio_dataset.py # # DESCRIPTION # Create an audio dataset using the Hugging Face [datasets] library. # Illustrates how to create synthetic audio datasets using the [map] # datasets function. # # The strategy is to first create a dataset with the input to the # generation function, then execute the map function that generates # the result, and finally cast the final features. # # BUG # Casting features with Audio for numpy arrays - # done here with `ds.map(gen_sine, features=features)` fails # in version 4.0.0 but not in version 3.6.0 # # This happens both in cases where --extra audio is provided and where is not. # When audio is not provided i've installed the latest compatible version # of soundfile. # # The error when soundfile is installed but the audio --extra is not # indicates that the array values do not have the `.T` property, # whilst also indicating that the value is a list instead of a numpy array. # # Last lines of error report when for datasets + soundfile case # ... # # File "/Users/luasantilli/.cache/uv/archive-v0/tc_5IhQe7Zpw8ZXgQWpnl/lib/python3.13/site-packages/datasets/features/audio.py", line 239, in cast_storage # storage = pa.array([Audio().encode_example(x) if x is not None else None for x in storage.to_pylist()]) # ~~~~~~~~~~~~~~~~~~~~~~^^^ # File "/Users/luasantilli/.cache/uv/archive-v0/tc_5IhQe7Zpw8ZXgQWpnl/lib/python3.13/site-packages/datasets/features/audio.py", line 122, in encode_example # sf.write(buffer, value["array"].T, value["sampling_rate"], format="wav") # ^^^^^^^^^^^^^^^^ # AttributeError: 'list' object has no attribute 'T' # ... # # For the case of datasets[audio] without explicit adding soundfile I get an FFmpeg # error. # # Last lines of error report: # # ... # RuntimeError: Could not load libtorchcodec. Likely causes: # 1. FFmpeg is not properly installed in your environment. We support # versions 4, 5, 6 and 7. # 2. The PyTorch version (2.7.1) is not compatible with # this version of TorchCodec. Refer to the version compatibility # table: # https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec. # 3. Another runtime dependency; see exceptions below. # The following exceptions were raised as we tried to load libtorchcodec: # # [start of libtorchcodec loading traceback] # FFmpeg version 7: dlopen(/Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder7.dylib, 0x0006): Library not loaded: @rpath/libavutil.59.dylib # Referenced from: <6DB21246-F28A-31A6-910A-D8F3355D1064> /Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder7.dylib # Reason: no LC_RPATH's found # FFmpeg version 6: dlopen(/Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder6.dylib, 0x0006): Library not loaded: @rpath/libavutil.58.dylib # Referenced from: <BD3B44FC-E14B-3ABF-800F-BB54B6CCA3B1> /Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder6.dylib # Reason: no LC_RPATH's found # FFmpeg version 5: dlopen(/Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder5.dylib, 0x0006): Library not loaded: @rpath/libavutil.57.dylib # Referenced from: <F06EBF8A-238C-3A96-BFBB-B34E0BBDABF0> /Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder5.dylib # Reason: no LC_RPATH's found # FFmpeg version 4: dlopen(/Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder4.dylib, 0x0006): Library not loaded: @rpath/libavutil.56.dylib # Referenced from: <6E59F017-C703-3AF6-A271-6277DD5F8170> /Users/luasantilli/.cache/uv/archive-v0/RK3IAlGfiICwDkHm2guLC/lib/python3.13/site-packages/torchcodec/libtorchcodec_decoder4.dylib # Reason: no LC_RPATH's found # ... # # This is strange because the the same error does not happen when using version 3.6.0 with datasets[audio]. # # The same error appears in python3.12 ## Imports import numpy as np from datasets import Dataset, Features, Audio, Value ## Parameters NUM_WAVES = 128 SAMPLE_RATE = 16_000 DURATION = 1.0 ## Input dataset arguments freqs = np.linspace(100, 2000, NUM_WAVES).tolist() ds = Dataset.from_dict({"frequency": freqs}) ## Features for the final dataset features = Features( {"frequency": Value("float32"), "audio": Audio(sampling_rate=SAMPLE_RATE)} ) ## Generate audio sine waves and cast features def gen_sine(example): t = np.linspace(0, DURATION, int(SAMPLE_RATE * DURATION), endpoint=False) wav = np.sin(2 * np.pi * example["frequency"] * t) return { "frequency": example["frequency"], "audio": {"array": wav, "sampling_rate": SAMPLE_RATE}, } ds = ds.map(gen_sine, features=features) print(ds) print(ds.features) ``` ### Expected behavior I expect the result of version `4.0.0` to be the same of that in version `3.6.0`. Switching the value of the script above to `3.6.0` I get the following, expected, result: ``` $ uv run bug_report.py Map: 100%|███████████████████████████████████████████████████████| 128/128 [00:00<00:00, 204.58 examples/s] Dataset({ features: ['frequency', 'audio'], num_rows: 128 }) {'frequency': Value(dtype='float32', id=None), 'audio': Audio(sampling_rate=16000, mono=True, decode=True, id=None)} ``` ### Environment info - `datasets` version: 4.0.0 - Platform: macOS-15.5-arm64-arm-64bit-Mach-O - Python version: 3.13.1 - `huggingface_hub` version: 0.33.4 - PyArrow version: 20.0.0 - Pandas version: 2.3.1 - `fsspec` version: 2025.3.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7682/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7682/timeline
null
completed
null
null
2025-07-14T18:41:02Z
2025-07-15T10:24:08Z
15:43:06
false
https://api.github.com/repos/huggingface/datasets/issues/7680
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7680/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7680/comments
https://api.github.com/repos/huggingface/datasets/issues/7680/events
https://github.com/huggingface/datasets/issues/7680
3,224,824,151
I_kwDODunzps7ANulX
7,680
Question about iterable dataset and streaming
{ "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "> If we have already loaded the dataset, why doing to_iterable_dataset? Does it go through the dataset faster than map-style dataset?\n\nyes, it makes a faster DataLoader for example (otherwise DataLoader uses `__getitem__` which is slower than iterating)\n\n> load_dataset(streaming=True) is useful for huge dataset, but the speed is slow. How to make it comparable to to_iterable_dataset without loading the whole dataset into RAM?\n\nYou can aim for saturating your bandwidth using a DataLoader with num_workers and prefetch_factor. The maximum speed will be your internet bandwidth (unless your CPU is a bottlenbeck for CPU operations like image decoding).", "created_at": "2025-07-15T10:18:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3073039226", "id": 3073039226, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps63Ktt6", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073039226/reactions" }, "updated_at": "2025-07-15T10:18:29Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073039226", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> > If we have already loaded the dataset, why doing to_iterable_dataset? Does it go through the dataset faster than map-style dataset?\n> \n> yes, it makes a faster DataLoader for example (otherwise DataLoader uses `__getitem__` which is slower than iterating)\n\nOkay, but `__getitem__` seems suitable for distributed settings. A distributed sampler would dispatch distinct indexes to each rank (rank0 got 0,1,2,3, rank1 got 4,5,6,7), however, if we make it `to_iterable_dataset`, then each rank needs to iterate all the samples, making it slower (i,e, rank1 got 0,1,2,3, rank2 got 0,1,2,3,(4,5,6,7))\n\nWhat's your opinion here?", "created_at": "2025-07-15T11:19:22Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3073211438", "id": 3073211438, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps63LXwu", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073211438/reactions" }, "updated_at": "2025-07-15T11:19:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073211438", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "> however, if we make it to_iterable_dataset, then each rank needs to iterate all the samples, making it slower (i,e, rank1 got 0,1,2,3, rank2 got 0,1,2,3,(4,5,6,7))\n\nActually if you specify `to_iterable_dataset(num_shards=world_size)` (or a factor of world_size) and use a `torch.utils.data.DataLoader` then each rank will get a subset of the data thanks to the sharding. E.g. rank0 gets 0,1,2,3 and rank1 gets 4,5,6,7.\n\nThis is because `datasets.IterableDataset` subclasses `torch.utils.data.IterableDataset` and is aware of the current rank.", "created_at": "2025-07-15T13:01:55Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3073511987", "id": 3073511987, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps63MhIz", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073511987/reactions" }, "updated_at": "2025-07-15T13:02:59Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073511987", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Got it, very nice features `num_shards` 👍🏻 \n\nI would benchmark `to_iterable_dataset(num_shards=world_size)` against traditional map-style one in distributed settings in the near future.", "created_at": "2025-07-15T13:39:37Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3073643360", "id": 3073643360, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps63NBNg", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073643360/reactions" }, "updated_at": "2025-07-15T13:39:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073643360", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Hi @lhoestq , I run a test for the speed in single node. Things are not expected as you mentioned before.\n\n```python\nimport time\n\nimport datasets\nfrom torch.utils.data import DataLoader\n\n\ndef time_decorator(func):\n def wrapper(*args, **kwargs):\n start_time = time.time()\n result = func(*args, **kwargs)\n end_time = time.time()\n print(f\"Time taken: {end_time - start_time} seconds\")\n return result\n\n return wrapper\n\n\ndataset = datasets.load_dataset(\n \"parquet\", data_dir=\"my_dir\", split=\"train\"\n)\n\n\n@time_decorator\ndef load_dataset1():\n for _ in dataset:\n pass\n\n\n@time_decorator\ndef load_dataloader1():\n for _ in DataLoader(dataset, batch_size=100, num_workers=5):\n pass\n\n\n@time_decorator\ndef load_dataset2():\n for _ in dataset.to_iterable_dataset():\n pass\n\n\n@time_decorator\ndef load_dataloader2():\n for _ in DataLoader(dataset.to_iterable_dataset(num_shards=5), batch_size=100, num_workers=5):\n pass\n\n\nload_dataset1()\nload_dataloader1()\nload_dataset2()\nload_dataloader2()\n```\n```bash\nResolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 53192/53192 [00:00<00:00, 227103.16it/s]\nTime taken: 100.36162948608398 seconds\nTime taken: 70.09702134132385 seconds\nTime taken: 343.09229612350464 seconds\nTime taken: 132.8996012210846 seconds\n```\n\n1. Why `for _ in dataset.to_iterable_dataset()` is much slower than `for _ in dataset`\n2. The `70 < 132`, the dataloader is slower when `to_iterable_dataset`", "created_at": "2025-07-31T12:11:00Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3139714315", "id": 3139714315, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps67JD0L", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139714315/reactions" }, "updated_at": "2025-07-31T12:11:00Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139714315", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "Loading in batches is faster than one example at a time. In your test the dataset is loaded in batches while the iterable_dataset is loaded one example at a time and the dataloader has a buffer to turn the examples to batches.\n\ncan you try this ?\n\n```\nbatched_dataset = dataset.batch(100, num_proc=5)\n\n@time_decorator\ndef load_dataloader3():\n for _ in DataLoader(batched_dataset.to_iterable_dataset(num_shards=5), batch_size=None, num_workers=5):\n pass\n```", "created_at": "2025-07-31T13:15:23Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3139938907", "id": 3139938907, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps67J6pb", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139938907/reactions" }, "updated_at": "2025-07-31T13:15:23Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139938907", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "To be fair, I test the time including batching:\n```python\n@time_decorator\ndef load_dataloader3():\n for _ in DataLoader(dataset.batch(100, num_proc=5).to_iterable_dataset(num_shards=5), batch_size=None, num_workers=5):\n pass\n```\n\n```bash\nTime taken: 49.722447633743286 seconds\n```", "created_at": "2025-07-31T13:29:45Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3139984886", "id": 3139984886, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps67KF32", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139984886/reactions" }, "updated_at": "2025-07-31T13:29:45Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3139984886", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I run another test about shuffling.\n\n```python\n@time_decorator\ndef load_map_dataloader1():\n for _ in DataLoader(dataset, batch_size=100, num_workers=5, shuffle=True):\n pass\n\n@time_decorator\ndef load_map_dataloader2():\n for _ in DataLoader(dataset.batch(100, num_proc=5), batch_size=None, num_workers=5, shuffle=True):\n pass\n\n\n@time_decorator\ndef load_iter_dataloader1():\n for _ in DataLoader(dataset.batch(100, num_proc=5).to_iterable_dataset(num_shards=5).shuffle(buffer_size=1000), batch_size=None, num_workers=5):\n pass\n\nload_map_dataloader1()\nload_map_dataloader2()\nload_iter_dataloader1()\n```\n\n```bash\nTime taken: 43.8506863117218 seconds\nTime taken: 38.02591300010681 seconds\nTime taken: 53.38815689086914 seconds\n```\n\n\n- What if I have custom collate_fn when batching?\n\n- And if I want to shuffle the dataset, what's the correct order for `to_iterable_dataset(num_shards=x)`, `batch()` and `shuffle()`. Is `dataset.batch().to_iterable_dataset().shuffle()`? This is not faster than map-style dataset", "created_at": "2025-08-01T01:10:09Z", "html_url": "https://github.com/huggingface/datasets/issues/7680#issuecomment-3141811538", "id": 3141811538, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7680", "node_id": "IC_kwDODunzps67RD1S", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3141811538/reactions" }, "updated_at": "2025-08-01T13:01:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3141811538", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/73541181?v=4", "events_url": "https://api.github.com/users/Tavish9/events{/privacy}", "followers_url": "https://api.github.com/users/Tavish9/followers", "following_url": "https://api.github.com/users/Tavish9/following{/other_user}", "gists_url": "https://api.github.com/users/Tavish9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tavish9", "id": 73541181, "login": "Tavish9", "node_id": "MDQ6VXNlcjczNTQxMTgx", "organizations_url": "https://api.github.com/users/Tavish9/orgs", "received_events_url": "https://api.github.com/users/Tavish9/received_events", "repos_url": "https://api.github.com/users/Tavish9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tavish9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tavish9/subscriptions", "type": "User", "url": "https://api.github.com/users/Tavish9", "user_view_type": "public" } } ]
2025-07-12T04:48:30Z
2025-07-15T13:39:38Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
In the doc, I found the following example: https://github.com/huggingface/datasets/blob/611f5a592359ebac6f858f515c776aa7d99838b2/docs/source/stream.mdx?plain=1#L65-L78 I am confused, 1. If we have already loaded the dataset, why doing `to_iterable_dataset`? Does it go through the dataset faster than map-style dataset? 2. `load_dataset(streaming=True)` is useful for huge dataset, but the speed is slow. How to make it comparable to `to_iterable_dataset` without loading the whole dataset into RAM?
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7680/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7680/timeline
null
null
null
null
2025-07-12T04:48:30Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7679
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7679/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7679/comments
https://api.github.com/repos/huggingface/datasets/issues/7679/events
https://github.com/huggingface/datasets/issues/7679
3,220,787,371
I_kwDODunzps6_-VCr
7,679
metric glue breaks with 4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "events_url": "https://api.github.com/users/stas00/events{/privacy}", "followers_url": "https://api.github.com/users/stas00/followers", "following_url": "https://api.github.com/users/stas00/following{/other_user}", "gists_url": "https://api.github.com/users/stas00/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stas00", "id": 10676103, "login": "stas00", "node_id": "MDQ6VXNlcjEwNjc2MTAz", "organizations_url": "https://api.github.com/users/stas00/orgs", "received_events_url": "https://api.github.com/users/stas00/received_events", "repos_url": "https://api.github.com/users/stas00/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stas00/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stas00/subscriptions", "type": "User", "url": "https://api.github.com/users/stas00", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "I released `evaluate` 0.4.5 yesterday to fix the issue - sorry for the inconvenience:\n\n```\npip install -U evaluate\n```", "created_at": "2025-07-11T08:52:28Z", "html_url": "https://github.com/huggingface/datasets/issues/7679#issuecomment-3061315967", "id": 3061315967, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7679", "node_id": "IC_kwDODunzps62d_l_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3061315967/reactions" }, "updated_at": "2025-07-11T08:52:28Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3061315967", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Thanks so much, @lhoestq!", "created_at": "2025-07-11T17:41:38Z", "html_url": "https://github.com/huggingface/datasets/issues/7679#issuecomment-3063189186", "id": 3063189186, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7679", "node_id": "IC_kwDODunzps62lI7C", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3063189186/reactions" }, "updated_at": "2025-07-11T17:41:38Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3063189186", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "events_url": "https://api.github.com/users/stas00/events{/privacy}", "followers_url": "https://api.github.com/users/stas00/followers", "following_url": "https://api.github.com/users/stas00/following{/other_user}", "gists_url": "https://api.github.com/users/stas00/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stas00", "id": 10676103, "login": "stas00", "node_id": "MDQ6VXNlcjEwNjc2MTAz", "organizations_url": "https://api.github.com/users/stas00/orgs", "received_events_url": "https://api.github.com/users/stas00/received_events", "repos_url": "https://api.github.com/users/stas00/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stas00/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stas00/subscriptions", "type": "User", "url": "https://api.github.com/users/stas00", "user_view_type": "public" } } ]
2025-07-10T21:39:50Z
2025-07-11T17:42:01Z
2025-07-11T17:42:01Z
CONTRIBUTOR
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug worked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks. The code that fails is: https://huggingface.co/spaces/evaluate-metric/glue/blob/v0.4.0/glue.py#L84 ``` def simple_accuracy(preds, labels): print(preds, labels) print(f"{preds==labels}") return float((preds == labels).mean()) ``` data: ``` Column([1, 0, 0, 1, 1]) Column([1, 0, 0, 1, 0]) False ``` ``` [rank0]: return float((preds == labels).mean()) [rank0]: ^^^^^^^^^^^^^^^^^^^^^^ [rank0]: AttributeError: 'bool' object has no attribute 'mean' ``` Some behavior has changed in this new major release of `datasets` and requires updating HF accelerate and perhaps the glue metric code, all belong to HF. ### Environment info datasets=4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "events_url": "https://api.github.com/users/stas00/events{/privacy}", "followers_url": "https://api.github.com/users/stas00/followers", "following_url": "https://api.github.com/users/stas00/following{/other_user}", "gists_url": "https://api.github.com/users/stas00/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stas00", "id": 10676103, "login": "stas00", "node_id": "MDQ6VXNlcjEwNjc2MTAz", "organizations_url": "https://api.github.com/users/stas00/orgs", "received_events_url": "https://api.github.com/users/stas00/received_events", "repos_url": "https://api.github.com/users/stas00/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stas00/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stas00/subscriptions", "type": "User", "url": "https://api.github.com/users/stas00", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7679/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7679/timeline
null
completed
null
null
2025-07-10T21:39:50Z
2025-07-11T17:42:01Z
20:02:11
false
https://api.github.com/repos/huggingface/datasets/issues/7678
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7678/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7678/comments
https://api.github.com/repos/huggingface/datasets/issues/7678/events
https://github.com/huggingface/datasets/issues/7678
3,218,625,544
I_kwDODunzps6_2FQI
7,678
To support decoding audio data, please install 'torchcodec'.
{ "avatar_url": "https://avatars.githubusercontent.com/u/48163702?v=4", "events_url": "https://api.github.com/users/alpcansoydas/events{/privacy}", "followers_url": "https://api.github.com/users/alpcansoydas/followers", "following_url": "https://api.github.com/users/alpcansoydas/following{/other_user}", "gists_url": "https://api.github.com/users/alpcansoydas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alpcansoydas", "id": 48163702, "login": "alpcansoydas", "node_id": "MDQ6VXNlcjQ4MTYzNzAy", "organizations_url": "https://api.github.com/users/alpcansoydas/orgs", "received_events_url": "https://api.github.com/users/alpcansoydas/received_events", "repos_url": "https://api.github.com/users/alpcansoydas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alpcansoydas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alpcansoydas/subscriptions", "type": "User", "url": "https://api.github.com/users/alpcansoydas", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! yes you should `!pip install -U datasets[audio]` to have the required dependencies.\n\n`datasets` 4.0 now relies on `torchcodec` for audio decoding. The `torchcodec` AudioDecoder enables streaming from HF and also allows to decode ranges of audio", "created_at": "2025-07-10T14:42:08Z", "html_url": "https://github.com/huggingface/datasets/issues/7678#issuecomment-3057752413", "id": 3057752413, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7678", "node_id": "IC_kwDODunzps62QZld", "performed_via_github_app": null, "reactions": { "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057752413/reactions" }, "updated_at": "2025-07-10T14:42:08Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057752413", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Same issues on Colab.\n\n> !pip install -U datasets[audio] \n\nThis works for me. Thanks.", "created_at": "2025-07-22T03:46:38Z", "html_url": "https://github.com/huggingface/datasets/issues/7678#issuecomment-3100712597", "id": 3100712597, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7678", "node_id": "IC_kwDODunzps640R6V", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3100712597/reactions" }, "updated_at": "2025-07-22T03:46:52Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3100712597", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/58977158?v=4", "events_url": "https://api.github.com/users/LaiThePhong/events{/privacy}", "followers_url": "https://api.github.com/users/LaiThePhong/followers", "following_url": "https://api.github.com/users/LaiThePhong/following{/other_user}", "gists_url": "https://api.github.com/users/LaiThePhong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LaiThePhong", "id": 58977158, "login": "LaiThePhong", "node_id": "MDQ6VXNlcjU4OTc3MTU4", "organizations_url": "https://api.github.com/users/LaiThePhong/orgs", "received_events_url": "https://api.github.com/users/LaiThePhong/received_events", "repos_url": "https://api.github.com/users/LaiThePhong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LaiThePhong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LaiThePhong/subscriptions", "type": "User", "url": "https://api.github.com/users/LaiThePhong", "user_view_type": "public" } } ]
2025-07-10T09:43:13Z
2025-07-22T03:46:52Z
2025-07-11T05:05:42Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
In the latest version of datasets==4.0.0, i cannot print the audio data on the Colab notebook. But it works on the 3.6.0 version. !pip install -q -U datasets huggingface_hub fsspec from datasets import load_dataset downloaded_dataset = load_dataset("ymoslem/MediaSpeech", "tr", split="train") print(downloaded_dataset["audio"][0]) --------------------------------------------------------------------------- ImportError Traceback (most recent call last) [/tmp/ipython-input-4-90623240.py](https://localhost:8080/#) in <cell line: 0>() ----> 1 downloaded_dataset["audio"][0] 10 frames [/usr/local/lib/python3.11/dist-packages/datasets/features/audio.py](https://localhost:8080/#) in decode_example(self, value, token_per_repo_id) 170 from ._torchcodec import AudioDecoder 171 else: --> 172 raise ImportError("To support decoding audio data, please install 'torchcodec'.") 173 174 if not self.decode: ImportError: To support decoding audio data, please install 'torchcodec'. ### Environment info - `datasets` version: 4.0.0 - Platform: Linux-6.1.123+-x86_64-with-glibc2.35 - Python version: 3.11.13 - `huggingface_hub` version: 0.33.2 - PyArrow version: 18.1.0 - Pandas version: 2.2.2 - `fsspec` version: 2025.3.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/48163702?v=4", "events_url": "https://api.github.com/users/alpcansoydas/events{/privacy}", "followers_url": "https://api.github.com/users/alpcansoydas/followers", "following_url": "https://api.github.com/users/alpcansoydas/following{/other_user}", "gists_url": "https://api.github.com/users/alpcansoydas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alpcansoydas", "id": 48163702, "login": "alpcansoydas", "node_id": "MDQ6VXNlcjQ4MTYzNzAy", "organizations_url": "https://api.github.com/users/alpcansoydas/orgs", "received_events_url": "https://api.github.com/users/alpcansoydas/received_events", "repos_url": "https://api.github.com/users/alpcansoydas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alpcansoydas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alpcansoydas/subscriptions", "type": "User", "url": "https://api.github.com/users/alpcansoydas", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7678/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7678/timeline
null
completed
null
null
2025-07-10T09:43:13Z
2025-07-11T05:05:42Z
19:22:29
false
https://api.github.com/repos/huggingface/datasets/issues/7677
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7677/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7677/comments
https://api.github.com/repos/huggingface/datasets/issues/7677/events
https://github.com/huggingface/datasets/issues/7677
3,218,044,656
I_kwDODunzps6_z3bw
7,677
Toxicity fails with datasets 4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4", "events_url": "https://api.github.com/users/serena-ruan/events{/privacy}", "followers_url": "https://api.github.com/users/serena-ruan/followers", "following_url": "https://api.github.com/users/serena-ruan/following{/other_user}", "gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/serena-ruan", "id": 82044803, "login": "serena-ruan", "node_id": "MDQ6VXNlcjgyMDQ0ODAz", "organizations_url": "https://api.github.com/users/serena-ruan/orgs", "received_events_url": "https://api.github.com/users/serena-ruan/received_events", "repos_url": "https://api.github.com/users/serena-ruan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions", "type": "User", "url": "https://api.github.com/users/serena-ruan", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! You can fix this by upgrading `evaluate`:\n\n```\npip install -U evaluate\n```", "created_at": "2025-07-10T14:46:48Z", "html_url": "https://github.com/huggingface/datasets/issues/7677#issuecomment-3057782286", "id": 3057782286, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7677", "node_id": "IC_kwDODunzps62Qg4O", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057782286/reactions" }, "updated_at": "2025-07-10T14:46:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057782286", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thanks, verified evaluate 0.4.5 works!", "created_at": "2025-07-11T04:40:59Z", "html_url": "https://github.com/huggingface/datasets/issues/7677#issuecomment-3060487668", "id": 3060487668, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7677", "node_id": "IC_kwDODunzps62a1X0", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3060487668/reactions" }, "updated_at": "2025-07-11T04:40:59Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3060487668", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4", "events_url": "https://api.github.com/users/serena-ruan/events{/privacy}", "followers_url": "https://api.github.com/users/serena-ruan/followers", "following_url": "https://api.github.com/users/serena-ruan/following{/other_user}", "gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/serena-ruan", "id": 82044803, "login": "serena-ruan", "node_id": "MDQ6VXNlcjgyMDQ0ODAz", "organizations_url": "https://api.github.com/users/serena-ruan/orgs", "received_events_url": "https://api.github.com/users/serena-ruan/received_events", "repos_url": "https://api.github.com/users/serena-ruan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions", "type": "User", "url": "https://api.github.com/users/serena-ruan", "user_view_type": "public" } } ]
2025-07-10T06:15:22Z
2025-07-11T04:40:59Z
2025-07-11T04:40:59Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug With the latest 4.0.0 release, huggingface toxicity evaluation module fails with error: `ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).` ### Steps to reproduce the bug Repro: ``` >>> toxicity.compute(predictions=["This is a response"]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/evaluate/module.py", line 467, in compute output = self._compute(**inputs, **compute_kwargs) File "/Users/serena.ruan/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-measurement--toxicity/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b/toxicity.py", line 135, in _compute scores = toxicity(predictions, self.toxic_classifier, toxic_label) File "/Users/serena.ruan/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-measurement--toxicity/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b/toxicity.py", line 103, in toxicity for pred_toxic in toxic_classifier(preds): File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/pipelines/text_classification.py", line 159, in __call__ result = super().__call__(*inputs, **kwargs) File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1431, in __call__ return self.run_single(inputs, preprocess_params, forward_params, postprocess_params) File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1437, in run_single model_inputs = self.preprocess(inputs, **preprocess_params) File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/pipelines/text_classification.py", line 183, in preprocess return self.tokenizer(inputs, return_tensors=return_tensors, **tokenizer_kwargs) File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2867, in __call__ encodings = self._call_one(text=text, text_pair=text_pair, **all_kwargs) File "/Users/serena.ruan/miniconda3/envs/mlflow-310/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2927, in _call_one raise ValueError( ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples). ``` ### Expected behavior This works before 4.0.0 release ### Environment info - `datasets` version: 4.0.0 - Platform: macOS-15.5-arm64-arm-64bit - Python version: 3.10.16 - `huggingface_hub` version: 0.33.0 - PyArrow version: 19.0.1 - Pandas version: 2.2.3 - `fsspec` version: 2024.12.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4", "events_url": "https://api.github.com/users/serena-ruan/events{/privacy}", "followers_url": "https://api.github.com/users/serena-ruan/followers", "following_url": "https://api.github.com/users/serena-ruan/following{/other_user}", "gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/serena-ruan", "id": 82044803, "login": "serena-ruan", "node_id": "MDQ6VXNlcjgyMDQ0ODAz", "organizations_url": "https://api.github.com/users/serena-ruan/orgs", "received_events_url": "https://api.github.com/users/serena-ruan/received_events", "repos_url": "https://api.github.com/users/serena-ruan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions", "type": "User", "url": "https://api.github.com/users/serena-ruan", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7677/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7677/timeline
null
completed
null
null
2025-07-10T06:15:22Z
2025-07-11T04:40:59Z
22:25:37
false
https://api.github.com/repos/huggingface/datasets/issues/7676
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7676/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7676/comments
https://api.github.com/repos/huggingface/datasets/issues/7676/events
https://github.com/huggingface/datasets/issues/7676
3,216,857,559
I_kwDODunzps6_vVnX
7,676
Many things broken since the new 4.0.0 release
{ "avatar_url": "https://avatars.githubusercontent.com/u/37179323?v=4", "events_url": "https://api.github.com/users/mobicham/events{/privacy}", "followers_url": "https://api.github.com/users/mobicham/followers", "following_url": "https://api.github.com/users/mobicham/following{/other_user}", "gists_url": "https://api.github.com/users/mobicham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mobicham", "id": 37179323, "login": "mobicham", "node_id": "MDQ6VXNlcjM3MTc5MzIz", "organizations_url": "https://api.github.com/users/mobicham/orgs", "received_events_url": "https://api.github.com/users/mobicham/received_events", "repos_url": "https://api.github.com/users/mobicham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mobicham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mobicham/subscriptions", "type": "User", "url": "https://api.github.com/users/mobicham", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Happy to take a look, do you have a list of impacted datasets ?", "created_at": "2025-07-09T23:21:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3054410935", "id": 3054410935, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62Dpy3", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3054410935/reactions" }, "updated_at": "2025-07-09T23:21:18Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3054410935", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thanks @lhoestq , related to lm-eval, at least `winogrande`, `mmlu` and `hellaswag`, based on my tests yesterday. But many others like <a href=\"https://huggingface.co/datasets/lukaemon/bbh\">bbh</a>, most probably others too. ", "created_at": "2025-07-10T09:04:40Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3056448516", "id": 3056448516, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62LbQE", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3056448516/reactions" }, "updated_at": "2025-07-10T09:06:58Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3056448516", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/37179323?v=4", "events_url": "https://api.github.com/users/mobicham/events{/privacy}", "followers_url": "https://api.github.com/users/mobicham/followers", "following_url": "https://api.github.com/users/mobicham/following{/other_user}", "gists_url": "https://api.github.com/users/mobicham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mobicham", "id": 37179323, "login": "mobicham", "node_id": "MDQ6VXNlcjM3MTc5MzIz", "organizations_url": "https://api.github.com/users/mobicham/orgs", "received_events_url": "https://api.github.com/users/mobicham/received_events", "repos_url": "https://api.github.com/users/mobicham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mobicham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mobicham/subscriptions", "type": "User", "url": "https://api.github.com/users/mobicham", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Hi @mobicham ,\n\nI was having the same issue `ValueError: Feature type 'List' not found` yesterday, when I tried to load my dataset using the `load_dataset()` function.\nBy updating to `4.0.0`, I don't see this error anymore.\n\np.s. I used `Sequence` in replace of list when building my dataset (see below)\n```\nfeatures = Features({\n ...\n \"objects\": Sequence({\n \"id\": Value(\"int64\"),\n \"bbox\": Sequence(Value(\"float32\"), length=4),\n \"category\": Value(\"string\")\n }),\n ...\n})\ndataset = Dataset.from_dict(data_dict)\ndataset = dataset.cast(features)\n\n``` \n", "created_at": "2025-07-10T12:32:41Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3057263523", "id": 3057263523, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62OiOj", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057263523/reactions" }, "updated_at": "2025-07-10T12:32:41Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057263523", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/177617068?v=4", "events_url": "https://api.github.com/users/zhiying318/events{/privacy}", "followers_url": "https://api.github.com/users/zhiying318/followers", "following_url": "https://api.github.com/users/zhiying318/following{/other_user}", "gists_url": "https://api.github.com/users/zhiying318/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zhiying318", "id": 177617068, "login": "zhiying318", "node_id": "U_kgDOCpY4rA", "organizations_url": "https://api.github.com/users/zhiying318/orgs", "received_events_url": "https://api.github.com/users/zhiying318/received_events", "repos_url": "https://api.github.com/users/zhiying318/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zhiying318/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhiying318/subscriptions", "type": "User", "url": "https://api.github.com/users/zhiying318", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "The issue comes from [hails/mmlu_no_train](https://huggingface.co/datasets/hails/mmlu_no_train), [allenai/winogrande](https://huggingface.co/datasets/allenai/winogrande), [lukaemon/bbh](https://huggingface.co/datasets/lukaemon/bbh) and [Rowan/hellaswag](https://huggingface.co/datasets/Rowan/hellaswag) which are all unsupported in `datasets` 4.0 since they are based on python scripts. Fortunately there are PRs to fix those datasets (I did some of them a year ago but dataset authors haven't merged yet... will have to ping people again about it and update here):\n\n- https://huggingface.co/datasets/hails/mmlu_no_train/discussions/2 merged ! ✅ \n- https://huggingface.co/datasets/allenai/winogrande/discussions/6 merged ! ✅ \n- https://huggingface.co/datasets/Rowan/hellaswag/discussions/7 merged ! ✅ \n- https://huggingface.co/datasets/lukaemon/bbh/discussions/2 merged ! ✅ ", "created_at": "2025-07-10T13:51:41Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3057550659", "id": 3057550659, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62PoVD", "performed_via_github_app": null, "reactions": { "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057550659/reactions" }, "updated_at": "2025-07-13T15:28:02Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057550659", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thank you very much @lhoestq , I will try next week 👍 ", "created_at": "2025-07-10T16:55:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3058235305", "id": 3058235305, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62SPep", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3058235305/reactions" }, "updated_at": "2025-07-10T16:55:18Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3058235305", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/37179323?v=4", "events_url": "https://api.github.com/users/mobicham/events{/privacy}", "followers_url": "https://api.github.com/users/mobicham/followers", "following_url": "https://api.github.com/users/mobicham/following{/other_user}", "gists_url": "https://api.github.com/users/mobicham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mobicham", "id": 37179323, "login": "mobicham", "node_id": "MDQ6VXNlcjM3MTc5MzIz", "organizations_url": "https://api.github.com/users/mobicham/orgs", "received_events_url": "https://api.github.com/users/mobicham/received_events", "repos_url": "https://api.github.com/users/mobicham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mobicham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mobicham/subscriptions", "type": "User", "url": "https://api.github.com/users/mobicham", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I get this error when using datasets 3.5.1 to load a dataset saved with datasets 4.0.0. If you are hitting this issue, make sure that both dataset saving code and the loading code are <4.0.0 or >=4.0.0.", "created_at": "2025-07-10T23:45:46Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3059555018", "id": 3059555018, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62XRrK", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3059555018/reactions" }, "updated_at": "2025-07-10T23:46:42Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3059555018", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/137927988?v=4", "events_url": "https://api.github.com/users/jsternabsci/events{/privacy}", "followers_url": "https://api.github.com/users/jsternabsci/followers", "following_url": "https://api.github.com/users/jsternabsci/following{/other_user}", "gists_url": "https://api.github.com/users/jsternabsci/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jsternabsci", "id": 137927988, "login": "jsternabsci", "node_id": "U_kgDOCDidNA", "organizations_url": "https://api.github.com/users/jsternabsci/orgs", "received_events_url": "https://api.github.com/users/jsternabsci/received_events", "repos_url": "https://api.github.com/users/jsternabsci/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jsternabsci/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jsternabsci/subscriptions", "type": "User", "url": "https://api.github.com/users/jsternabsci", "user_view_type": "public" } }, { "author_association": "NONE", "body": "This broke several lm-eval-harness workflows for me and reverting to older versions of datasets is not fixing the issue, does anyone have a workaround?", "created_at": "2025-07-11T01:17:58Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3059863298", "id": 3059863298, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62Yc8C", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3059863298/reactions" }, "updated_at": "2025-07-11T01:18:17Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3059863298", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/7035671?v=4", "events_url": "https://api.github.com/users/rawsh/events{/privacy}", "followers_url": "https://api.github.com/users/rawsh/followers", "following_url": "https://api.github.com/users/rawsh/following{/other_user}", "gists_url": "https://api.github.com/users/rawsh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rawsh", "id": 7035671, "login": "rawsh", "node_id": "MDQ6VXNlcjcwMzU2NzE=", "organizations_url": "https://api.github.com/users/rawsh/orgs", "received_events_url": "https://api.github.com/users/rawsh/received_events", "repos_url": "https://api.github.com/users/rawsh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rawsh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rawsh/subscriptions", "type": "User", "url": "https://api.github.com/users/rawsh", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "> I get this error when using datasets 3.5.1 to load a dataset saved with datasets 4.0.0. If you are hitting this issue, make sure that both dataset saving code and the loading code are <4.0.0 or >=4.0.0.\n\n`datasets` 4.0 can load datasets saved using any older version. But the other way around is not always true: if you save a dataset with `datasets` 4.0 it may use the new `List` type that requires 4.0 and raise `ValueError: Feature type 'List' not found.`\n\nHowever issues with lm eval harness seem to come from another issue: unsupported dataset scripts (see https://github.com/huggingface/datasets/issues/7676#issuecomment-3057550659)\n\n> This broke several lm-eval-harness workflows for me and reverting to older versions of datasets is not fixing the issue, does anyone have a workaround?\n\nwhen reverting to an old `datasets` version I'd encourage you to clear your cache (by default it is located at `~/.cache/huggingface/datasets`) otherwise it might try to load a `List` type that didn't exist in old versions", "created_at": "2025-07-11T15:24:53Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3062733589", "id": 3062733589, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps62jZsV", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3062733589/reactions" }, "updated_at": "2025-07-11T15:40:24Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3062733589", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "All the impacted datasets in lm eval harness have been fixed thanks to the reactivity of dataset authors ! let me know if you encounter issues with other datasets :)", "created_at": "2025-07-13T15:29:39Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3067113656", "id": 3067113656, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps620HC4", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 2, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3067113656/reactions" }, "updated_at": "2025-07-13T15:29:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3067113656", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Hello folks, I have found `patrickvonplaten/librispeech_asr_dummy` to be another dataset that is currently broken since the 4.0.0 release. Is there a PR on this as well?", "created_at": "2025-07-17T17:14:39Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3084832703", "id": 3084832703, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps633s-_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084832703/reactions" }, "updated_at": "2025-07-17T17:14:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084832703", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/195342820?v=4", "events_url": "https://api.github.com/users/jonryuamazon/events{/privacy}", "followers_url": "https://api.github.com/users/jonryuamazon/followers", "following_url": "https://api.github.com/users/jonryuamazon/following{/other_user}", "gists_url": "https://api.github.com/users/jonryuamazon/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jonryuamazon", "id": 195342820, "login": "jonryuamazon", "node_id": "U_kgDOC6Sx5A", "organizations_url": "https://api.github.com/users/jonryuamazon/orgs", "received_events_url": "https://api.github.com/users/jonryuamazon/received_events", "repos_url": "https://api.github.com/users/jonryuamazon/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jonryuamazon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonryuamazon/subscriptions", "type": "User", "url": "https://api.github.com/users/jonryuamazon", "user_view_type": "public" } }, { "author_association": "NONE", "body": "https://huggingface.co/datasets/microsoft/prototypical-hai-collaborations seems to be impacted as well.\n\n```\n_temp = load_dataset(\"microsoft/prototypical-hai-collaborations\", \"wildchat1m_en3u-task_anns\")\n``` \nleads to \n`ValueError: Feature type 'List' not found. Available feature types: ['Value', 'ClassLabel', 'Translation', 'TranslationVariableLanguages', 'LargeList', 'Sequence', 'Array2D', 'Array3D', 'Array4D', 'Array5D', 'Audio', 'Image', 'Video', 'Pdf']`", "created_at": "2025-07-21T09:27:57Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3095896144", "id": 3095896144, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps64h6BQ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3095896144/reactions" }, "updated_at": "2025-07-21T09:27:57Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3095896144", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/11272436?v=4", "events_url": "https://api.github.com/users/krumeto/events{/privacy}", "followers_url": "https://api.github.com/users/krumeto/followers", "following_url": "https://api.github.com/users/krumeto/following{/other_user}", "gists_url": "https://api.github.com/users/krumeto/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/krumeto", "id": 11272436, "login": "krumeto", "node_id": "MDQ6VXNlcjExMjcyNDM2", "organizations_url": "https://api.github.com/users/krumeto/orgs", "received_events_url": "https://api.github.com/users/krumeto/received_events", "repos_url": "https://api.github.com/users/krumeto/repos", "site_admin": false, "starred_url": "https://api.github.com/users/krumeto/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krumeto/subscriptions", "type": "User", "url": "https://api.github.com/users/krumeto", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "`microsoft/prototypical-hai-collaborations` is not impacted, you can load it using both `datasets` 3.6 and 4.0. I also tried on colab to confirm.\n\nOne thing that could explain `ValueError: Feature type 'List' not found.` is maybe if you have loaded and cached this dataset with `datasets` 4.0 and then tried to reload it from cache using 3.6.0.\n\nEDIT: actually I tried and 3.6 can reload datasets cached with 4.0 so I'm not sure why you have this error. Which version of `datasets` are you using ?", "created_at": "2025-07-21T10:33:09Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3096104081", "id": 3096104081, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps64isyR", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096104081/reactions" }, "updated_at": "2025-07-21T10:38:01Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096104081", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "> Hello folks, I have found patrickvonplaten/librispeech_asr_dummy to be another dataset that is currently broken since the 4.0.0 release. Is there a PR on this as well?\n\nI guess you can use [hf-internal-testing/librispeech_asr_dummy](https://huggingface.co/datasets/hf-internal-testing/librispeech_asr_dummy) instead of `patrickvonplaten/librispeech_asr_dummy`, or ask the dataset author to convert their dataset to Parquet", "created_at": "2025-07-21T10:34:47Z", "html_url": "https://github.com/huggingface/datasets/issues/7676#issuecomment-3096113257", "id": 3096113257, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7676", "node_id": "IC_kwDODunzps64ivBp", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096113257/reactions" }, "updated_at": "2025-07-21T10:34:47Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3096113257", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-09T18:59:50Z
2025-07-21T10:38:01Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug The new changes in 4.0.0 are breaking many datasets, including those from lm-evaluation-harness. I am trying to revert back to older versions, like 3.6.0 to make the eval work but I keep getting: ``` Python File /venv/main/lib/python3.12/site-packages/datasets/features/features.py:1474, in generate_from_dict(obj) 1471 class_type = _FEATURE_TYPES.get(_type, None) or globals().get(_type, None) 1473 if class_type is None: -> 1474 raise ValueError(f"Feature type '{_type}' not found. Available feature types: {list(_FEATURE_TYPES.keys())}") 1476 if class_type == LargeList: 1477 feature = obj.pop("feature") ValueError: Feature type 'List' not found. Available feature types: ['Value', 'ClassLabel', 'Translation', 'TranslationVariableLanguages', 'LargeList', 'Sequence', 'Array2D', 'Array3D', 'Array4D', 'Array5D', 'Audio', 'Image', 'Video', 'Pdf'] ``` ### Steps to reproduce the bug ``` Python import lm_eval model_eval = lm_eval.models.huggingface.HFLM(pretrained=model, tokenizer=tokenizer) lm_eval.evaluator.simple_evaluate(model_eval, tasks=["winogrande"], num_fewshot=5, batch_size=1) ``` ### Expected behavior Older `datasets` versions should work just fine as before ### Environment info - `datasets` version: 3.6.0 - Platform: Linux-6.8.0-60-generic-x86_64-with-glibc2.39 - Python version: 3.12.11 - `huggingface_hub` version: 0.33.1 - PyArrow version: 20.0.0 - Pandas version: 2.3.1 - `fsspec` version: 2025.3.0
null
{ "+1": 13, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 13, "url": "https://api.github.com/repos/huggingface/datasets/issues/7676/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7676/timeline
null
null
null
null
2025-07-09T18:59:50Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7675
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7675/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7675/comments
https://api.github.com/repos/huggingface/datasets/issues/7675/events
https://github.com/huggingface/datasets/issues/7675
3,216,699,094
I_kwDODunzps6_uu7W
7,675
common_voice_11_0.py failure in dataset library
{ "avatar_url": "https://avatars.githubusercontent.com/u/98793855?v=4", "events_url": "https://api.github.com/users/egegurel/events{/privacy}", "followers_url": "https://api.github.com/users/egegurel/followers", "following_url": "https://api.github.com/users/egegurel/following{/other_user}", "gists_url": "https://api.github.com/users/egegurel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/egegurel", "id": 98793855, "login": "egegurel", "node_id": "U_kgDOBeN5fw", "organizations_url": "https://api.github.com/users/egegurel/orgs", "received_events_url": "https://api.github.com/users/egegurel/received_events", "repos_url": "https://api.github.com/users/egegurel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/egegurel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/egegurel/subscriptions", "type": "User", "url": "https://api.github.com/users/egegurel", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! This dataset is not in a supported format and `datasets` 4 doesn't support datasets that based on python scripts which are often source of errors. Feel free to ask the dataset authors to convert the dataset to a supported format at https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/discussions, e.g. parquet.\n\nIn the meantime you can pin old versions of `datasets` like `datasets==3.6.0`", "created_at": "2025-07-09T18:11:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7675#issuecomment-3053565137", "id": 3053565137, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7675", "node_id": "IC_kwDODunzps62AbTR", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 5, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 5, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3053565137/reactions" }, "updated_at": "2025-07-10T14:49:43Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3053565137", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thanks @lhoestq! I encountered the same issue and switching to an older version of `datasets` worked.", "created_at": "2025-07-14T12:34:48Z", "html_url": "https://github.com/huggingface/datasets/issues/7675#issuecomment-3069325985", "id": 3069325985, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7675", "node_id": "IC_kwDODunzps628jKh", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3069325985/reactions" }, "updated_at": "2025-07-14T12:34:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3069325985", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/33909898?v=4", "events_url": "https://api.github.com/users/Srija616/events{/privacy}", "followers_url": "https://api.github.com/users/Srija616/followers", "following_url": "https://api.github.com/users/Srija616/following{/other_user}", "gists_url": "https://api.github.com/users/Srija616/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Srija616", "id": 33909898, "login": "Srija616", "node_id": "MDQ6VXNlcjMzOTA5ODk4", "organizations_url": "https://api.github.com/users/Srija616/orgs", "received_events_url": "https://api.github.com/users/Srija616/received_events", "repos_url": "https://api.github.com/users/Srija616/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Srija616/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Srija616/subscriptions", "type": "User", "url": "https://api.github.com/users/Srija616", "user_view_type": "public" } }, { "author_association": "NONE", "body": ">which version of datasets worked for you, I tried switching to 4.6.0 and also moved back for fsspec, but still facing issues for this.\n\n", "created_at": "2025-07-15T04:44:33Z", "html_url": "https://github.com/huggingface/datasets/issues/7675#issuecomment-3071895584", "id": 3071895584, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7675", "node_id": "IC_kwDODunzps63GWgg", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3071895584/reactions" }, "updated_at": "2025-07-15T04:44:33Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3071895584", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/123626175?v=4", "events_url": "https://api.github.com/users/Ravneet2511/events{/privacy}", "followers_url": "https://api.github.com/users/Ravneet2511/followers", "following_url": "https://api.github.com/users/Ravneet2511/following{/other_user}", "gists_url": "https://api.github.com/users/Ravneet2511/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Ravneet2511", "id": 123626175, "login": "Ravneet2511", "node_id": "U_kgDOB15ivw", "organizations_url": "https://api.github.com/users/Ravneet2511/orgs", "received_events_url": "https://api.github.com/users/Ravneet2511/received_events", "repos_url": "https://api.github.com/users/Ravneet2511/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Ravneet2511/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ravneet2511/subscriptions", "type": "User", "url": "https://api.github.com/users/Ravneet2511", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Try datasets<=3.6.0", "created_at": "2025-07-15T18:25:19Z", "html_url": "https://github.com/huggingface/datasets/issues/7675#issuecomment-3074910403", "id": 3074910403, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7675", "node_id": "IC_kwDODunzps63R2jD", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3074910403/reactions" }, "updated_at": "2025-07-15T18:25:19Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3074910403", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/56947987?v=4", "events_url": "https://api.github.com/users/jeffhataws/events{/privacy}", "followers_url": "https://api.github.com/users/jeffhataws/followers", "following_url": "https://api.github.com/users/jeffhataws/following{/other_user}", "gists_url": "https://api.github.com/users/jeffhataws/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeffhataws", "id": 56947987, "login": "jeffhataws", "node_id": "MDQ6VXNlcjU2OTQ3OTg3", "organizations_url": "https://api.github.com/users/jeffhataws/orgs", "received_events_url": "https://api.github.com/users/jeffhataws/received_events", "repos_url": "https://api.github.com/users/jeffhataws/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeffhataws/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeffhataws/subscriptions", "type": "User", "url": "https://api.github.com/users/jeffhataws", "user_view_type": "public" } }, { "author_association": "NONE", "body": "same issue ", "created_at": "2025-07-22T09:35:42Z", "html_url": "https://github.com/huggingface/datasets/issues/7675#issuecomment-3101883913", "id": 3101883913, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7675", "node_id": "IC_kwDODunzps644v4J", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3101883913/reactions" }, "updated_at": "2025-07-22T09:35:42Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3101883913", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/1344378?v=4", "events_url": "https://api.github.com/users/unnir/events{/privacy}", "followers_url": "https://api.github.com/users/unnir/followers", "following_url": "https://api.github.com/users/unnir/following{/other_user}", "gists_url": "https://api.github.com/users/unnir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/unnir", "id": 1344378, "login": "unnir", "node_id": "MDQ6VXNlcjEzNDQzNzg=", "organizations_url": "https://api.github.com/users/unnir/orgs", "received_events_url": "https://api.github.com/users/unnir/received_events", "repos_url": "https://api.github.com/users/unnir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/unnir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/unnir/subscriptions", "type": "User", "url": "https://api.github.com/users/unnir", "user_view_type": "public" } } ]
2025-07-09T17:47:59Z
2025-07-22T09:35:42Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I tried to download dataset but have got this error: from datasets import load_dataset load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True) --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[8], line 4 1 from datasets import load_dataset ----> 4 load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True) File c:\Users\ege_g\AppData\Local\Programs\Python\Python312\Lib\site-packages\datasets\load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs) 1387 verification_mode = VerificationMode( 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 1389 ) 1391 # Create a dataset builder -> 1392 builder_instance = load_dataset_builder( 1393 path=path, 1394 name=name, 1395 data_dir=data_dir, 1396 data_files=data_files, 1397 cache_dir=cache_dir, 1398 features=features, 1399 download_config=download_config, 1400 download_mode=download_mode, 1401 revision=revision, 1402 token=token, 1403 storage_options=storage_options, 1404 **config_kwargs, 1405 ) 1407 # Return iterable dataset in case of streaming 1408 if streaming: File c:\Users\ege_g\AppData\Local\Programs\Python\Python312\Lib\site-packages\datasets\load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs) 1130 if features is not None: 1131 features = _fix_for_backward_compatible_features(features) -> 1132 dataset_module = dataset_module_factory( 1133 path, 1134 revision=revision, 1135 download_config=download_config, 1136 download_mode=download_mode, 1137 data_dir=data_dir, 1138 data_files=data_files, 1139 cache_dir=cache_dir, 1140 ) 1141 # Get dataset builder class 1142 builder_kwargs = dataset_module.builder_kwargs File c:\Users\ege_g\AppData\Local\Programs\Python\Python312\Lib\site-packages\datasets\load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs) 1026 if isinstance(e1, FileNotFoundError): 1027 raise FileNotFoundError( 1028 f"Couldn't find any data file at {relative_to_absolute_path(path)}. " 1029 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1030 ) from None -> 1031 raise e1 from None 1032 else: 1033 raise FileNotFoundError(f"Couldn't find any data file at {relative_to_absolute_path(path)}.") File c:\Users\ege_g\AppData\Local\Programs\Python\Python312\Lib\site-packages\datasets\load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs) 981 try: 982 api.hf_hub_download( 983 repo_id=path, 984 filename=filename, (...) 987 proxies=download_config.proxies, 988 ) --> 989 raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}") 990 except EntryNotFoundError: 991 # Use the infos from the parquet export except in some cases: 992 if data_dir or data_files or (revision and revision != "main"): RuntimeError: Dataset scripts are no longer supported, but found common_voice_11_0.py ### Steps to reproduce the bug from datasets import load_dataset load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True) ### Expected behavior its supposed to download this dataset. ### Environment info Python 3.12 , Windows 11
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7675/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7675/timeline
null
null
null
null
2025-07-09T17:47:59Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7674
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7674/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7674/comments
https://api.github.com/repos/huggingface/datasets/issues/7674/events
https://github.com/huggingface/datasets/pull/7674
3,216,251,069
PR_kwDODunzps6eJGo5
7,674
set dev version
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7674). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-09T15:04:01Z", "html_url": "https://github.com/huggingface/datasets/pull/7674#issuecomment-3053002573", "id": 3053002573, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7674", "node_id": "IC_kwDODunzps61-R9N", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3053002573/reactions" }, "updated_at": "2025-07-09T15:04:01Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3053002573", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-09T15:01:25Z
2025-07-09T15:04:01Z
2025-07-09T15:01:33Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7674/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7674/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7674.diff", "html_url": "https://github.com/huggingface/datasets/pull/7674", "merged_at": "2025-07-09T15:01:33Z", "patch_url": "https://github.com/huggingface/datasets/pull/7674.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7674" }
2025-07-09T15:01:25Z
2025-07-09T15:01:33Z
0:00:08
true
https://api.github.com/repos/huggingface/datasets/issues/7673
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7673/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7673/comments
https://api.github.com/repos/huggingface/datasets/issues/7673/events
https://github.com/huggingface/datasets/pull/7673
3,216,075,633
PR_kwDODunzps6eIgj-
7,673
Release: 4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7673). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-09T14:06:02Z", "html_url": "https://github.com/huggingface/datasets/pull/7673#issuecomment-3052813892", "id": 3052813892, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7673", "node_id": "IC_kwDODunzps619j5E", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052813892/reactions" }, "updated_at": "2025-07-09T14:06:02Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052813892", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-09T14:03:16Z
2025-07-09T14:36:19Z
2025-07-09T14:36:18Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7673/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7673/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7673.diff", "html_url": "https://github.com/huggingface/datasets/pull/7673", "merged_at": "2025-07-09T14:36:18Z", "patch_url": "https://github.com/huggingface/datasets/pull/7673.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7673" }
2025-07-09T14:03:16Z
2025-07-09T14:36:18Z
0:33:02
true
https://api.github.com/repos/huggingface/datasets/issues/7672
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7672/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7672/comments
https://api.github.com/repos/huggingface/datasets/issues/7672/events
https://github.com/huggingface/datasets/pull/7672
3,215,287,164
PR_kwDODunzps6eF1vj
7,672
Fix double sequence
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7672). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-09T09:56:13Z", "html_url": "https://github.com/huggingface/datasets/pull/7672#issuecomment-3051957441", "id": 3051957441, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7672", "node_id": "IC_kwDODunzps616SzB", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3051957441/reactions" }, "updated_at": "2025-07-09T09:56:13Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3051957441", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-09T09:53:39Z
2025-07-09T09:56:29Z
2025-07-09T09:56:28Z
MEMBER
null
null
null
```python >>> Features({"a": Sequence(Sequence({"c": Value("int64")}))}) {'a': List({'c': List(Value('int64'))})} ``` instead of `{'a': {'c': List(List(Value('int64')))}}`
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7672/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7672/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7672.diff", "html_url": "https://github.com/huggingface/datasets/pull/7672", "merged_at": "2025-07-09T09:56:27Z", "patch_url": "https://github.com/huggingface/datasets/pull/7672.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7672" }
2025-07-09T09:53:39Z
2025-07-09T09:56:28Z
0:02:49
true
https://api.github.com/repos/huggingface/datasets/issues/7671
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7671/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7671/comments
https://api.github.com/repos/huggingface/datasets/issues/7671/events
https://github.com/huggingface/datasets/issues/7671
3,213,223,886
I_kwDODunzps6_hefO
7,671
Mapping function not working if the first example is returned as None
{ "avatar_url": "https://avatars.githubusercontent.com/u/46325823?v=4", "events_url": "https://api.github.com/users/dnaihao/events{/privacy}", "followers_url": "https://api.github.com/users/dnaihao/followers", "following_url": "https://api.github.com/users/dnaihao/following{/other_user}", "gists_url": "https://api.github.com/users/dnaihao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dnaihao", "id": 46325823, "login": "dnaihao", "node_id": "MDQ6VXNlcjQ2MzI1ODIz", "organizations_url": "https://api.github.com/users/dnaihao/orgs", "received_events_url": "https://api.github.com/users/dnaihao/received_events", "repos_url": "https://api.github.com/users/dnaihao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dnaihao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dnaihao/subscriptions", "type": "User", "url": "https://api.github.com/users/dnaihao", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi, map() always expect an output.\n\nIf you wish to filter examples, you should use filter(), in your case it could be something like this:\n\n```python\nds = ds.map(my_processing_function).filter(ignore_long_prompts)\n```", "created_at": "2025-07-09T10:30:39Z", "html_url": "https://github.com/huggingface/datasets/issues/7671#issuecomment-3052108458", "id": 3052108458, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7671", "node_id": "IC_kwDODunzps6163qq", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052108458/reactions" }, "updated_at": "2025-07-09T10:30:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052108458", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Realized this! Thanks a lot, I will close this issue then.", "created_at": "2025-07-09T12:30:32Z", "html_url": "https://github.com/huggingface/datasets/issues/7671#issuecomment-3052492460", "id": 3052492460, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7671", "node_id": "IC_kwDODunzps618Vas", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052492460/reactions" }, "updated_at": "2025-07-09T12:30:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052492460", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/46325823?v=4", "events_url": "https://api.github.com/users/dnaihao/events{/privacy}", "followers_url": "https://api.github.com/users/dnaihao/followers", "following_url": "https://api.github.com/users/dnaihao/following{/other_user}", "gists_url": "https://api.github.com/users/dnaihao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dnaihao", "id": 46325823, "login": "dnaihao", "node_id": "MDQ6VXNlcjQ2MzI1ODIz", "organizations_url": "https://api.github.com/users/dnaihao/orgs", "received_events_url": "https://api.github.com/users/dnaihao/received_events", "repos_url": "https://api.github.com/users/dnaihao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dnaihao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dnaihao/subscriptions", "type": "User", "url": "https://api.github.com/users/dnaihao", "user_view_type": "public" } } ]
2025-07-08T17:07:47Z
2025-07-09T12:30:32Z
2025-07-09T12:30:32Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug https://github.com/huggingface/datasets/blob/8a19de052e3d79f79cea26821454bbcf0e9dcd68/src/datasets/arrow_dataset.py#L3652C29-L3652C37 Here we can see the writer is initialized on `i==0`. However, there can be cases where in the user mapping function, the first example is filtered out (length constraints, etc). In this case, the writer would be a `None` type and the code will report `NoneType has no write function`. A simple fix is available, simply change line 3652 from `if i == 0:` to `if writer is None:` ### Steps to reproduce the bug Prepare a dataset have this function ``` import datasets def make_map_fn(split, max_prompt_tokens=3): def process_fn(example, idx): question = example['question'] reasoning_steps = example['reasoning_steps'] label = example['label'] answer_format = "" for i in range(len(reasoning_steps)): system_message = "Dummy" all_steps_formatted = [] content = f"""Dummy""" prompt = [ {"role": "system", "content": system_message}, {"role": "user", "content": content}, ] tokenized = tokenizer.apply_chat_template(prompt, return_tensors="pt", truncation=False) if tokenized.shape[1] > max_prompt_tokens: return None # skip overly long examples data = { "dummy": "dummy" } return data return process_fn ... # load your dataset ... train = train.map(function=make_map_fn('train'), with_indices=True) ``` ### Expected behavior The dataset mapping shall behave even when the first example is filtered out. ### Environment info I am using `datasets==3.6.0` but I have observed this issue in the github repo too: https://github.com/huggingface/datasets/blob/8a19de052e3d79f79cea26821454bbcf0e9dcd68/src/datasets/arrow_dataset.py#L3652C29-L3652C37
{ "avatar_url": "https://avatars.githubusercontent.com/u/46325823?v=4", "events_url": "https://api.github.com/users/dnaihao/events{/privacy}", "followers_url": "https://api.github.com/users/dnaihao/followers", "following_url": "https://api.github.com/users/dnaihao/following{/other_user}", "gists_url": "https://api.github.com/users/dnaihao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dnaihao", "id": 46325823, "login": "dnaihao", "node_id": "MDQ6VXNlcjQ2MzI1ODIz", "organizations_url": "https://api.github.com/users/dnaihao/orgs", "received_events_url": "https://api.github.com/users/dnaihao/received_events", "repos_url": "https://api.github.com/users/dnaihao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dnaihao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dnaihao/subscriptions", "type": "User", "url": "https://api.github.com/users/dnaihao", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7671/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7671/timeline
null
completed
null
null
2025-07-08T17:07:47Z
2025-07-09T12:30:32Z
19:22:45
false
https://api.github.com/repos/huggingface/datasets/issues/7670
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7670/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7670/comments
https://api.github.com/repos/huggingface/datasets/issues/7670/events
https://github.com/huggingface/datasets/pull/7670
3,208,962,372
PR_kwDODunzps6dwgOc
7,670
Fix audio bytes
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7670). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-07T13:07:47Z", "html_url": "https://github.com/huggingface/datasets/pull/7670#issuecomment-3045016310", "id": 3045016310, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7670", "node_id": "IC_kwDODunzps61f0L2", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3045016310/reactions" }, "updated_at": "2025-07-07T13:07:47Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3045016310", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-07T13:05:15Z
2025-07-07T13:07:47Z
2025-07-07T13:05:33Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7670/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7670/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7670.diff", "html_url": "https://github.com/huggingface/datasets/pull/7670", "merged_at": "2025-07-07T13:05:33Z", "patch_url": "https://github.com/huggingface/datasets/pull/7670.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7670" }
2025-07-07T13:05:15Z
2025-07-07T13:05:33Z
0:00:18
true
https://api.github.com/repos/huggingface/datasets/issues/7669
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7669/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7669/comments
https://api.github.com/repos/huggingface/datasets/issues/7669/events
https://github.com/huggingface/datasets/issues/7669
3,203,541,091
I_kwDODunzps6-8ihj
7,669
How can I add my custom data to huggingface datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/219205504?v=4", "events_url": "https://api.github.com/users/xiagod/events{/privacy}", "followers_url": "https://api.github.com/users/xiagod/followers", "following_url": "https://api.github.com/users/xiagod/following{/other_user}", "gists_url": "https://api.github.com/users/xiagod/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xiagod", "id": 219205504, "login": "xiagod", "node_id": "U_kgDODRDPgA", "organizations_url": "https://api.github.com/users/xiagod/orgs", "received_events_url": "https://api.github.com/users/xiagod/received_events", "repos_url": "https://api.github.com/users/xiagod/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xiagod/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiagod/subscriptions", "type": "User", "url": "https://api.github.com/users/xiagod", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "Hey @xiagod \n\nThe easiest way to add your custom data to Hugging Face Datasets is to use the built-in load_dataset function with your local files. Some examples include:\n\nCSV files:\nfrom datasets import load_dataset\ndataset = load_dataset(\"csv\", data_files=\"my_file.csv\")\n\nJSON or JSONL files:\nfrom datasets import load_dataset\ndataset = load_dataset(\"json\", data_files=\"my_file.json\")\n\n\nImages stored in folders (e.g. data/train/cat/, data/train/dog/):\nfrom datasets import load_dataset\ndataset = load_dataset(\"imagefolder\", data_dir=\"/path/to/pokemon\")\n\n\nThese methods let you quickly create a custom dataset without needing to write a full script.\n\nMore information can be found in Hugging Face's tutorial \"Create a dataset\" or \"Load\" documentation here: \n\nhttps://huggingface.co/docs/datasets/create_dataset \n\nhttps://huggingface.co/docs/datasets/loading#local-and-remote-files\n\n\n\nIf you want to submit your dataset to the Hugging Face Datasets GitHub repo so others can load it follow this guide: \n\nhttps://huggingface.co/docs/datasets/upload_dataset \n\n\n", "created_at": "2025-07-05T18:19:37Z", "html_url": "https://github.com/huggingface/datasets/issues/7669#issuecomment-3039528978", "id": 3039528978, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7669", "node_id": "IC_kwDODunzps61K4gS", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3039528978/reactions" }, "updated_at": "2025-07-05T18:19:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3039528978", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/76807356?v=4", "events_url": "https://api.github.com/users/kevJ711/events{/privacy}", "followers_url": "https://api.github.com/users/kevJ711/followers", "following_url": "https://api.github.com/users/kevJ711/following{/other_user}", "gists_url": "https://api.github.com/users/kevJ711/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kevJ711", "id": 76807356, "login": "kevJ711", "node_id": "MDQ6VXNlcjc2ODA3MzU2", "organizations_url": "https://api.github.com/users/kevJ711/orgs", "received_events_url": "https://api.github.com/users/kevJ711/received_events", "repos_url": "https://api.github.com/users/kevJ711/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kevJ711/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kevJ711/subscriptions", "type": "User", "url": "https://api.github.com/users/kevJ711", "user_view_type": "public" } } ]
2025-07-04T19:19:54Z
2025-07-05T18:19:37Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7669/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7669/timeline
null
null
null
null
2025-07-04T19:19:54Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7668
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7668/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7668/comments
https://api.github.com/repos/huggingface/datasets/issues/7668/events
https://github.com/huggingface/datasets/issues/7668
3,199,039,322
I_kwDODunzps6-rXda
7,668
Broken EXIF crash the whole program
{ "avatar_url": "https://avatars.githubusercontent.com/u/30485844?v=4", "events_url": "https://api.github.com/users/Seas0/events{/privacy}", "followers_url": "https://api.github.com/users/Seas0/followers", "following_url": "https://api.github.com/users/Seas0/following{/other_user}", "gists_url": "https://api.github.com/users/Seas0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Seas0", "id": 30485844, "login": "Seas0", "node_id": "MDQ6VXNlcjMwNDg1ODQ0", "organizations_url": "https://api.github.com/users/Seas0/orgs", "received_events_url": "https://api.github.com/users/Seas0/received_events", "repos_url": "https://api.github.com/users/Seas0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Seas0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Seas0/subscriptions", "type": "User", "url": "https://api.github.com/users/Seas0", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "There are other discussions about error handling for images decoding here : https://github.com/huggingface/datasets/issues/7632 https://github.com/huggingface/datasets/issues/7612\n\nand a PR here: https://github.com/huggingface/datasets/pull/7638 (would love your input on the proposed solution !)", "created_at": "2025-07-03T12:27:16Z", "html_url": "https://github.com/huggingface/datasets/issues/7668#issuecomment-3032081529", "id": 3032081529, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7668", "node_id": "IC_kwDODunzps60ueR5", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032081529/reactions" }, "updated_at": "2025-07-03T12:27:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032081529", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-07-03T11:24:15Z
2025-07-03T12:27:16Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug When parsing this image in the ImageNet1K dataset, the `datasets` crashs whole training process just because unable to parse an invalid EXIF tag. ![Image](https://github.com/user-attachments/assets/3c840203-ac8c-41a0-9cf7-45f64488037d) ### Steps to reproduce the bug Use the `datasets.Image.decode_example` method to decode the aforementioned image could reproduce the bug. The decoding function will throw an unhandled exception at the `image.getexif()` method call due to invalid utf-8 stream in EXIF tags. ``` File lib/python3.12/site-packages/datasets/features/image.py:188, in Image.decode_example(self, value, token_per_repo_id) 186 image = PIL.Image.open(BytesIO(bytes_)) 187 image.load() # to avoid "Too many open files" errors --> 188 if image.getexif().get(PIL.Image.ExifTags.Base.Orientation) is not None: 189 image = PIL.ImageOps.exif_transpose(image) 190 if self.mode and self.mode != image.mode: File lib/python3.12/site-packages/PIL/Image.py:1542, in Image.getexif(self) 1540 xmp_tags = self.info.get("XML:com.adobe.xmp") 1541 if not xmp_tags and (xmp_tags := self.info.get("xmp")): -> 1542 xmp_tags = xmp_tags.decode("utf-8") 1543 if xmp_tags: 1544 match = re.search(r'tiff:Orientation(="|>)([0-9])', xmp_tags) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 4312: invalid start byte ``` ### Expected behavior The invalid EXIF tag should simply be ignored or issue a warning message, instead of crash the whole program at once. ### Environment info - `datasets` version: 3.6.0 - Platform: Linux-6.5.0-18-generic-x86_64-with-glibc2.35 - Python version: 3.12.11 - `huggingface_hub` version: 0.33.0 - PyArrow version: 20.0.0 - Pandas version: 2.3.0 - `fsspec` version: 2025.3.0
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7668/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7668/timeline
null
null
null
null
2025-07-03T11:24:15Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7665
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7665/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7665/comments
https://api.github.com/repos/huggingface/datasets/issues/7665/events
https://github.com/huggingface/datasets/issues/7665
3,193,239,955
I_kwDODunzps6-VPmT
7,665
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files
{ "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "Somehow I created the issue twice🙈 This one is an exact duplicate of #7664.", "created_at": "2025-07-01T17:17:31Z", "html_url": "https://github.com/huggingface/datasets/issues/7665#issuecomment-3024901004", "id": 3024901004, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7665", "node_id": "IC_kwDODunzps60TFOM", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024901004/reactions" }, "updated_at": "2025-07-01T17:17:31Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024901004", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" } } ]
2025-07-01T17:14:53Z
2025-07-01T17:17:48Z
2025-07-01T17:17:48Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of the dataset schema. In my case there is a field `body:` with a string value ``` "### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4" ``` As a result, I got an exception ``` "TypeError: Couldn't cast array of type timestamp[s] to null". ``` Full stack-trace in the attached file below. I also attach a minimized dataset (data.json, a single entry) that reproduces the error. **Observations**(on the minimal example): - if I remove _all fields before_ `body`, a different error appears, - if I remove _all fields after_ `body`, yet another error appears, - if `body` is _the only field_, the error disappears. So this might be one complex bug or several edge cases interacting. I haven’t dug deeper. Also changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven’t verified correctness of that workaround yet. Anyway my understanding is that `load_dataset` with first argument set to "json" should properly handle `.jsonl` files. Correct me if I'm wrong. [stack_trace.txt](https://github.com/user-attachments/files/21004153/stack_trace.txt) [data.json](https://github.com/user-attachments/files/21004164/data.json) P.S. I discovered this while going through the HuggingFace tutorial. Specifically [this part](https://huggingface.co/learn/llm-course/chapter5/5?fw=pt).I will try to inform the tutorial team about this issue, as it can be a showstopper for young 🤗 adepts. ### Steps to reproduce the bug 1. Download attached [data.json](https://github.com/user-attachments/files/21004164/data.json) file. 2. Run the following code which should work correctly: ``` from datasets import load_dataset load_dataset("json", data_files="data.json", split="train") ``` 3. Change extension of the `data` file to `.jsonl` and run: ``` from datasets import load_dataset load_dataset("json", data_files="data.jsonl", split="train") ``` This will trigger an error like the one in the attached [stack_trace.txt](https://github.com/user-attachments/files/21004153/stack_trace.txt). One can also try removing fields before the `body` field and after it. These actions give different errors. ### Expected behavior Parsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema. ### Environment info datasets version: _3.6.0_ pyarrow version: _20.0.0_ Python version: _3.11.9_ platform version: _macOS-15.5-arm64-arm-64bit_
{ "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7665/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7665/timeline
null
duplicate
null
null
2025-07-01T17:14:53Z
2025-07-01T17:17:48Z
0:02:55
false
https://api.github.com/repos/huggingface/datasets/issues/7666
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7666/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7666/comments
https://api.github.com/repos/huggingface/datasets/issues/7666/events
https://github.com/huggingface/datasets/pull/7666
3,196,220,722
PR_kwDODunzps6dGf7E
7,666
Backward compat list feature
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7666). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-02T15:00:37Z", "html_url": "https://github.com/huggingface/datasets/pull/7666#issuecomment-3028209679", "id": 3028209679, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7666", "node_id": "IC_kwDODunzps60ftAP", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3028209679/reactions" }, "updated_at": "2025-07-02T15:00:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3028209679", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-02T14:58:00Z
2025-07-02T15:00:37Z
2025-07-02T14:59:40Z
MEMBER
null
null
null
cc @kashif
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7666/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7666/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7666.diff", "html_url": "https://github.com/huggingface/datasets/pull/7666", "merged_at": "2025-07-02T14:59:40Z", "patch_url": "https://github.com/huggingface/datasets/pull/7666.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7666" }
2025-07-02T14:58:00Z
2025-07-02T14:59:40Z
0:01:40
true
https://api.github.com/repos/huggingface/datasets/issues/7667
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7667/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7667/comments
https://api.github.com/repos/huggingface/datasets/issues/7667/events
https://github.com/huggingface/datasets/pull/7667
3,196,251,707
PR_kwDODunzps6dGmm8
7,667
Fix infer list of images
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7667). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-02T15:10:28Z", "html_url": "https://github.com/huggingface/datasets/pull/7667#issuecomment-3028243400", "id": 3028243400, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7667", "node_id": "IC_kwDODunzps60f1PI", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3028243400/reactions" }, "updated_at": "2025-07-02T15:10:28Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3028243400", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-02T15:07:58Z
2025-07-02T15:10:28Z
2025-07-02T15:08:03Z
MEMBER
null
null
null
cc @kashif
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7667/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7667/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7667.diff", "html_url": "https://github.com/huggingface/datasets/pull/7667", "merged_at": "2025-07-02T15:08:03Z", "patch_url": "https://github.com/huggingface/datasets/pull/7667.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7667" }
2025-07-02T15:07:58Z
2025-07-02T15:08:03Z
0:00:05
true
https://api.github.com/repos/huggingface/datasets/issues/7664
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7664/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7664/comments
https://api.github.com/repos/huggingface/datasets/issues/7664/events
https://github.com/huggingface/datasets/issues/7664
3,193,239,035
I_kwDODunzps6-VPX7
7,664
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files
{ "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "Hey @zdzichukowalski, I was not able to reproduce this on python 3.11.9 and datasets 3.6.0. The contents of \"body\" are correctly parsed as a string and no other fields like timestamps are created. Could you try reproducing this in a fresh environment, or posting the complete code where you encountered that stacktrace? (I noticed in the stacktrace you had a bigger program, perhaps there are some side effects)", "created_at": "2025-07-03T13:01:59Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3032187029", "id": 3032187029, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps60u4CV", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032187029/reactions" }, "updated_at": "2025-07-03T13:01:59Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032187029", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/117304069?v=4", "events_url": "https://api.github.com/users/itsmejul/events{/privacy}", "followers_url": "https://api.github.com/users/itsmejul/followers", "following_url": "https://api.github.com/users/itsmejul/following{/other_user}", "gists_url": "https://api.github.com/users/itsmejul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/itsmejul", "id": 117304069, "login": "itsmejul", "node_id": "U_kgDOBv3rBQ", "organizations_url": "https://api.github.com/users/itsmejul/orgs", "received_events_url": "https://api.github.com/users/itsmejul/received_events", "repos_url": "https://api.github.com/users/itsmejul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/itsmejul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/itsmejul/subscriptions", "type": "User", "url": "https://api.github.com/users/itsmejul", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi @zdzichukowalski, thanks for reporting this!\n\nTo help investigate this further, could you please share the following:\n\nExact contents of the data.jsonl file you're using — especially the first few lines that trigger the error.\n\nThe full code snippet you used to run load_dataset(), along with any environment setup (if not already shared).\n\nCan you confirm whether the issue persists when running in a clean virtual environment (e.g., with only datasets, pyarrow, and their dependencies)?\n\nIf possible, could you try running the same with an explicit features schema, like:\n\n```\nfrom datasets import load_dataset, Features, Value\nfeatures = Features({\"body\": Value(\"string\")})\nds = load_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\", features=features)\n```\nAlso, just to clarify — does the \"body\" field contain plain string content, or is it sometimes being parsed from multi-line or structured inputs (like embedded JSON or CSV-like text)?\n\nOnce we have this info, we can check whether this is a schema inference issue, a PyArrow type coercion bug, or something else.", "created_at": "2025-07-04T07:14:03Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3034784388", "id": 3034784388, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps604yKE", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034784388/reactions" }, "updated_at": "2025-07-04T07:14:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034784388", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Ok I can confirm that I also cannot reproduce the error in a clean environment with the minimized version of the dataset that I provided. Same story for the old environment. Nonetheless the bug still happens in the new environment with the full version of the dataset, which I am providing now. Please let me know if now you can reproduce the problem.\n\nAdditionally I'm attaching result of the `pip freeze` command.\n\n[datasets-issues.jsonl.zip](https://github.com/user-attachments/files/21081755/datasets-issues.jsonl.zip)\n[requirements.txt](https://github.com/user-attachments/files/21081776/requirements.txt)\n\n@ArjunJagdale running with explicit script gives the following stack:\n[stack_features_version.txt](https://github.com/user-attachments/files/21082056/stack_features_version.txt)\n\nThe problematic `body` field seems to be e.g. content of [this comment](https://github.com/huggingface/datasets/issues/5596#issue-1604919993) from Github in which someone provided a stack trace containing json structure ;) I would say that it is intended to be a plain string. \n\nTo find a part that triggers an error, simply search for the \"timestamp[s]\" in the dataset. There are few such entries.\n\nI think I provided all the information you asked. \n\nOh, and workaround I suggested, that is convert `.jsonl` to `.json` worked for me.\n\nP.S\n1. @itsmejul the stack trace I provided is coming from running the two-liner script that I attached. There is no bigger program, although there were some jupiter files alongside the script, which were run in the same env. I am not sure what part of the stack trace suggests that there is something more ;) \n\n2. Is it possible that on some layer in the python/env/jupiter there is some caching mechanism for files that would give false results for my minimized version of the dataset file? There is of course possibility that I made a mistake and run the script with the wrong file, but I double and triple checked things before creating an issue. Earlier I wrote that \"(...) changing the file extension to `.json` or `.txt` avoids the problem\". But with the full version this is not true(when I change to `txt`), and minimized version always works. So it looks like that when I changed the extension to e.g. `txt` then a minimized file loaded from the disk and it was parsed correctly, but every time when I changed back to `jsonl` my script must have used an original content of the file - the one before I made a minimization. But this is still all strange because I even removed the fields before and after the body from my minimized `jsonl` and there were some different errors(I mention it in my original post), so I do not get why today I cannot reproduce it in the original env... \n\n", "created_at": "2025-07-05T22:57:17Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3040378646", "id": 3040378646, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps61OH8W", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3040378646/reactions" }, "updated_at": "2025-07-05T23:03:35Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3040378646", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi @zdzichukowalski, thanks again for the detailed info and files!\n\nI’ve reviewed the `datasets-issues.jsonl` you shared, and I can now confirm the issue with full clarity:\n\nSome entries in the `\"body\"` field contain string content that resembles schema definitions — for example:\n\n```\nstruct<type: string, action: string, datetime: timestamp[s], ...>\n```\n\nThese strings appear to be copied from GitHub comments or stack traces (e.g., from #5596)\n\nWhen using the `.jsonl` format, `load_dataset()` relies on row-wise schema inference via PyArrow. If some rows contain real structured fields like `pull_request.merged_at` (a valid timestamp), and others contain schema-like text inside string fields, PyArrow can get confused while unifying the schema — leading to cast errors.\n\nThat’s why:\n\n* Using a reduced schema like `features={\"body\": Value(\"string\")}` fails — because the full table has many more fields.\n* Converting the file to `.json` (a list of objects) works — because global schema inference kicks in.\n* Filtering the dataset to only the `body` field avoids the issue entirely.\n\n### Suggested Workarounds\n\n* Convert the `.jsonl` file to `.json` to enable global schema inference.\n* Or, preprocess the `.jsonl` file to extract only the `\"body\"` field if that’s all you need.", "created_at": "2025-07-06T19:14:20Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3042348071", "id": 3042348071, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps61Vown", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3042348071/reactions" }, "updated_at": "2025-07-06T19:14:20Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3042348071", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "So in summary should we treat it as a low severity bug in `PyArrow`, in `Datasets` library, or as a proper behavior and do nothing with it?", "created_at": "2025-07-09T08:36:11Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3051695276", "id": 3051695276, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps615Sys", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3051695276/reactions" }, "updated_at": "2025-07-09T08:36:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3051695276", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/1151198?v=4", "events_url": "https://api.github.com/users/zdzichukowalski/events{/privacy}", "followers_url": "https://api.github.com/users/zdzichukowalski/followers", "following_url": "https://api.github.com/users/zdzichukowalski/following{/other_user}", "gists_url": "https://api.github.com/users/zdzichukowalski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zdzichukowalski", "id": 1151198, "login": "zdzichukowalski", "node_id": "MDQ6VXNlcjExNTExOTg=", "organizations_url": "https://api.github.com/users/zdzichukowalski/orgs", "received_events_url": "https://api.github.com/users/zdzichukowalski/received_events", "repos_url": "https://api.github.com/users/zdzichukowalski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zdzichukowalski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zdzichukowalski/subscriptions", "type": "User", "url": "https://api.github.com/users/zdzichukowalski", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "You are right actually! I’d also categorize this as a low-severity schema inference edge case, mainly stemming from PyArrow, but exposed by how datasets handles .jsonl inputs.\n\nIt's not a bug in datasets per se, but confusing when string fields (like body) contain text that resembles schema — e.g., \"timestamp[s]\".\n\nMaybe @lhoestq — could this be considered as a small feature/improvement?", "created_at": "2025-07-09T13:13:49Z", "html_url": "https://github.com/huggingface/datasets/issues/7664#issuecomment-3052632478", "id": 3052632478, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7664", "node_id": "IC_kwDODunzps6183me", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052632478/reactions" }, "updated_at": "2025-07-09T13:14:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052632478", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-07-01T17:14:32Z
2025-07-09T13:14:11Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of the dataset schema. In my case there is a field `body:` with a string value ``` "### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4" ``` As a result, I got an exception ``` "TypeError: Couldn't cast array of type timestamp[s] to null". ``` Full stack-trace in the attached file below. I also attach a minimized dataset (data.json, a single entry) that reproduces the error. **Observations**(on the minimal example): - if I remove _all fields before_ `body`, a different error appears, - if I remove _all fields after_ `body`, yet another error appears, - if `body` is _the only field_, the error disappears. So this might be one complex bug or several edge cases interacting. I haven’t dug deeper. Also changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven’t verified correctness of that workaround yet. Anyway my understanding is that `load_dataset` with first argument set to "json" should properly handle `.jsonl` files. Correct me if I'm wrong. [stack_trace.txt](https://github.com/user-attachments/files/21004153/stack_trace.txt) [data.json](https://github.com/user-attachments/files/21004164/data.json) P.S. I discovered this while going through the HuggingFace tutorial. Specifically [this part](https://huggingface.co/learn/llm-course/chapter5/5?fw=pt). I will try to inform the tutorial team about this issue, as it can be a showstopper for young 🤗 adepts. ### Steps to reproduce the bug 1. Download attached [data.json](https://github.com/user-attachments/files/21004164/data.json) file. 2. Run the following code which should work correctly: ``` from datasets import load_dataset load_dataset("json", data_files="data.json", split="train") ``` 3. Change extension of the `data` file to `.jsonl` and run: ``` from datasets import load_dataset load_dataset("json", data_files="data.jsonl", split="train") ``` This will trigger an error like the one in the attached [stack_trace.txt](https://github.com/user-attachments/files/21004153/stack_trace.txt). One can also try removing fields before the `body` field and after it. These actions give different errors. ### Expected behavior Parsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema. ### Environment info datasets version: _3.6.0_ pyarrow version: _20.0.0_ Python version: _3.11.9_ platform version: _macOS-15.5-arm64-arm-64bit_
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7664/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7664/timeline
null
null
null
null
2025-07-01T17:14:32Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7661
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7661/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7661/comments
https://api.github.com/repos/huggingface/datasets/issues/7661/events
https://github.com/huggingface/datasets/pull/7661
3,190,408,237
PR_kwDODunzps6czBDi
7,661
fix del tqdm lock error
{ "avatar_url": "https://avatars.githubusercontent.com/u/44766273?v=4", "events_url": "https://api.github.com/users/Hypothesis-Z/events{/privacy}", "followers_url": "https://api.github.com/users/Hypothesis-Z/followers", "following_url": "https://api.github.com/users/Hypothesis-Z/following{/other_user}", "gists_url": "https://api.github.com/users/Hypothesis-Z/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hypothesis-Z", "id": 44766273, "login": "Hypothesis-Z", "node_id": "MDQ6VXNlcjQ0NzY2Mjcz", "organizations_url": "https://api.github.com/users/Hypothesis-Z/orgs", "received_events_url": "https://api.github.com/users/Hypothesis-Z/received_events", "repos_url": "https://api.github.com/users/Hypothesis-Z/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hypothesis-Z/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hypothesis-Z/subscriptions", "type": "User", "url": "https://api.github.com/users/Hypothesis-Z", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-07-01T02:04:02Z
2025-07-08T01:38:46Z
null
NONE
null
null
null
fixes https://github.com/huggingface/datasets/issues/7660
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7661/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7661/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7661.diff", "html_url": "https://github.com/huggingface/datasets/pull/7661", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7661.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7661" }
2025-07-01T02:04:02Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7662
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7662/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7662/comments
https://api.github.com/repos/huggingface/datasets/issues/7662/events
https://github.com/huggingface/datasets/issues/7662
3,190,805,531
I_kwDODunzps6-L9Qb
7,662
Applying map after transform with multiprocessing will cause OOM
{ "avatar_url": "https://avatars.githubusercontent.com/u/26482910?v=4", "events_url": "https://api.github.com/users/JunjieLl/events{/privacy}", "followers_url": "https://api.github.com/users/JunjieLl/followers", "following_url": "https://api.github.com/users/JunjieLl/following{/other_user}", "gists_url": "https://api.github.com/users/JunjieLl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JunjieLl", "id": 26482910, "login": "JunjieLl", "node_id": "MDQ6VXNlcjI2NDgyOTEw", "organizations_url": "https://api.github.com/users/JunjieLl/orgs", "received_events_url": "https://api.github.com/users/JunjieLl/received_events", "repos_url": "https://api.github.com/users/JunjieLl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JunjieLl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JunjieLl/subscriptions", "type": "User", "url": "https://api.github.com/users/JunjieLl", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! `add_column` loads the full column data in memory:\n\nhttps://github.com/huggingface/datasets/blob/bfa497b1666f4c58bd231c440d8b92f9859f3a58/src/datasets/arrow_dataset.py#L6021-L6021\n\na workaround to add the new column is to include the new data in the map() function instead, which only loads one batch at a time", "created_at": "2025-07-09T10:33:18Z", "html_url": "https://github.com/huggingface/datasets/issues/7662#issuecomment-3052117613", "id": 3052117613, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7662", "node_id": "IC_kwDODunzps61655t", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052117613/reactions" }, "updated_at": "2025-07-09T10:33:18Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052117613", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> Hi ! `add_column` loads the full column data in memory:\n> \n> [datasets/src/datasets/arrow_dataset.py](https://github.com/huggingface/datasets/blob/bfa497b1666f4c58bd231c440d8b92f9859f3a58/src/datasets/arrow_dataset.py#L6021-L6021)\n> \n> Line 6021 in [bfa497b](/huggingface/datasets/commit/bfa497b1666f4c58bd231c440d8b92f9859f3a58)\n> \n> column_table = InMemoryTable.from_pydict({name: column}, schema=pyarrow_schema) \n> a workaround to add the new column is to include the new data in the map() function instead, which only loads one batch at a time\n\n\nHow about cast_column,since map cannot apply type transformation, e.g. Audio(16000) to Audio(24000)", "created_at": "2025-07-09T11:48:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7662#issuecomment-3052335751", "id": 3052335751, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7662", "node_id": "IC_kwDODunzps617vKH", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052335751/reactions" }, "updated_at": "2025-07-09T11:48:29Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052335751", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/26482910?v=4", "events_url": "https://api.github.com/users/JunjieLl/events{/privacy}", "followers_url": "https://api.github.com/users/JunjieLl/followers", "following_url": "https://api.github.com/users/JunjieLl/following{/other_user}", "gists_url": "https://api.github.com/users/JunjieLl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JunjieLl", "id": 26482910, "login": "JunjieLl", "node_id": "MDQ6VXNlcjI2NDgyOTEw", "organizations_url": "https://api.github.com/users/JunjieLl/orgs", "received_events_url": "https://api.github.com/users/JunjieLl/received_events", "repos_url": "https://api.github.com/users/JunjieLl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JunjieLl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JunjieLl/subscriptions", "type": "User", "url": "https://api.github.com/users/JunjieLl", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "cast_column calls `pyarrow.Table.cast` on the full dataset which I believe the memory usage depends on the source and target types but should be low in general\n\ncasting from Audio(16000) to Audio(24000) is cheap since the source and target arrow types are the same", "created_at": "2025-07-09T12:00:15Z", "html_url": "https://github.com/huggingface/datasets/issues/7662#issuecomment-3052383419", "id": 3052383419, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7662", "node_id": "IC_kwDODunzps6176y7", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052383419/reactions" }, "updated_at": "2025-07-09T12:01:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052383419", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> cast_column calls `pyarrow.Table.cast` on the full dataset which I believe the memory usage depends on the source and target types but should be low in general\n> \n> casting from Audio(16000) to Audio(24000) is cheap since the source and target arrow types are the same\n\nThanks for replying. So the OOM is caused by add_column operation. When I skip the operation, low memory will be achieved. Right?", "created_at": "2025-07-09T12:26:44Z", "html_url": "https://github.com/huggingface/datasets/issues/7662#issuecomment-3052479181", "id": 3052479181, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7662", "node_id": "IC_kwDODunzps618SLN", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052479181/reactions" }, "updated_at": "2025-07-09T12:26:44Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3052479181", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/26482910?v=4", "events_url": "https://api.github.com/users/JunjieLl/events{/privacy}", "followers_url": "https://api.github.com/users/JunjieLl/followers", "following_url": "https://api.github.com/users/JunjieLl/following{/other_user}", "gists_url": "https://api.github.com/users/JunjieLl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JunjieLl", "id": 26482910, "login": "JunjieLl", "node_id": "MDQ6VXNlcjI2NDgyOTEw", "organizations_url": "https://api.github.com/users/JunjieLl/orgs", "received_events_url": "https://api.github.com/users/JunjieLl/received_events", "repos_url": "https://api.github.com/users/JunjieLl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JunjieLl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JunjieLl/subscriptions", "type": "User", "url": "https://api.github.com/users/JunjieLl", "user_view_type": "public" } }, { "author_association": "NONE", "body": "> Hi ! `add_column` loads the full column data in memory:\n> \n> [datasets/src/datasets/arrow_dataset.py](https://github.com/huggingface/datasets/blob/bfa497b1666f4c58bd231c440d8b92f9859f3a58/src/datasets/arrow_dataset.py#L6021-L6021)\n> \n> Line 6021 in [bfa497b](/huggingface/datasets/commit/bfa497b1666f4c58bd231c440d8b92f9859f3a58)\n> \n> column_table = InMemoryTable.from_pydict({name: column}, schema=pyarrow_schema) \n> a workaround to add the new column is to include the new data in the map() function instead, which only loads one batch at a time\n\n\nNote num_process=1 would not cause OOM. I'm confused.\n\n", "created_at": "2025-07-10T06:17:39Z", "html_url": "https://github.com/huggingface/datasets/issues/7662#issuecomment-3055756719", "id": 3055756719, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7662", "node_id": "IC_kwDODunzps62IyWv", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3055756719/reactions" }, "updated_at": "2025-07-10T06:17:39Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3055756719", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/26482910?v=4", "events_url": "https://api.github.com/users/JunjieLl/events{/privacy}", "followers_url": "https://api.github.com/users/JunjieLl/followers", "following_url": "https://api.github.com/users/JunjieLl/following{/other_user}", "gists_url": "https://api.github.com/users/JunjieLl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JunjieLl", "id": 26482910, "login": "JunjieLl", "node_id": "MDQ6VXNlcjI2NDgyOTEw", "organizations_url": "https://api.github.com/users/JunjieLl/orgs", "received_events_url": "https://api.github.com/users/JunjieLl/received_events", "repos_url": "https://api.github.com/users/JunjieLl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JunjieLl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JunjieLl/subscriptions", "type": "User", "url": "https://api.github.com/users/JunjieLl", "user_view_type": "public" } } ]
2025-07-01T05:45:57Z
2025-07-10T06:17:40Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I have a 30TB dataset. When I perform add_column and cast_column operations on it and then execute a multiprocessing map, it results in an OOM (Out of Memory) error. However, if I skip the add_column and cast_column steps and directly run the map, there is no OOM. After debugging step by step, I found that the OOM is caused at this point, and I suspect it’s because the add_column and cast_column operations are not cached, which causes the entire dataset to be loaded in each subprocess, leading to the OOM. The critical line of code is: https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/utils/py_utils.py#L607 Note num_process=1 would not cause OOM. I'm confused. ### Steps to reproduce the bug For reproduce, you can load dataset and set cache_dir (for caching): amphion/Emilia-Dataset which is a veru large datasets that RAM can not fits. And apply the map with multiprocessing after a transform operation (e.g. add_column, cast_column). As long as num_process>1, it must cause OOM. ### Expected behavior It should not cause OOM. ### Environment info - `datasets` version: 3.6.0 - Platform: Linux-5.10.134-16.101.al8.x86_64-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.33.1 - PyArrow version: 20.0.0 - Pandas version: 2.3.0 - `fsspec` version: 2024.6.1
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7662/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7662/timeline
null
null
null
null
2025-07-01T05:45:57Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7660
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7660/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7660/comments
https://api.github.com/repos/huggingface/datasets/issues/7660/events
https://github.com/huggingface/datasets/issues/7660
3,189,028,251
I_kwDODunzps6-FLWb
7,660
AttributeError: type object 'tqdm' has no attribute '_lock'
{ "avatar_url": "https://avatars.githubusercontent.com/u/44766273?v=4", "events_url": "https://api.github.com/users/Hypothesis-Z/events{/privacy}", "followers_url": "https://api.github.com/users/Hypothesis-Z/followers", "following_url": "https://api.github.com/users/Hypothesis-Z/following{/other_user}", "gists_url": "https://api.github.com/users/Hypothesis-Z/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hypothesis-Z", "id": 44766273, "login": "Hypothesis-Z", "node_id": "MDQ6VXNlcjQ0NzY2Mjcz", "organizations_url": "https://api.github.com/users/Hypothesis-Z/orgs", "received_events_url": "https://api.github.com/users/Hypothesis-Z/received_events", "repos_url": "https://api.github.com/users/Hypothesis-Z/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hypothesis-Z/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hypothesis-Z/subscriptions", "type": "User", "url": "https://api.github.com/users/Hypothesis-Z", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "Deleting a class (**not instance**) attribute might be invalid in this case, which is `tqdm` doing in `ensure_lock`.\n\n```python\nfrom tqdm import tqdm as old_tqdm\n\nclass tqdm1(old_tqdm):\n def __delattr__(self, attr):\n try:\n super().__delattr__(attr)\n except AttributeError:\n if attr != '_lock':\n print(attr)\n raise\n\nclass Meta(type):\n def __delattr__(cls, name):\n if name == \"_lock\":\n return \n return super().__delattr__(name)\n \nclass tqdm2(old_tqdm, metaclass=Meta):\n pass\n\ndel tqdm2._lock\ndel tqdm1._lock # error\n```\n\nhttps://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/utils/tqdm.py#L104-L122", "created_at": "2025-06-30T15:58:04Z", "html_url": "https://github.com/huggingface/datasets/issues/7660#issuecomment-3019757469", "id": 3019757469, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7660", "node_id": "IC_kwDODunzps6z_ded", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3019757469/reactions" }, "updated_at": "2025-06-30T16:07:45Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3019757469", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/44766273?v=4", "events_url": "https://api.github.com/users/Hypothesis-Z/events{/privacy}", "followers_url": "https://api.github.com/users/Hypothesis-Z/followers", "following_url": "https://api.github.com/users/Hypothesis-Z/following{/other_user}", "gists_url": "https://api.github.com/users/Hypothesis-Z/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hypothesis-Z", "id": 44766273, "login": "Hypothesis-Z", "node_id": "MDQ6VXNlcjQ0NzY2Mjcz", "organizations_url": "https://api.github.com/users/Hypothesis-Z/orgs", "received_events_url": "https://api.github.com/users/Hypothesis-Z/received_events", "repos_url": "https://api.github.com/users/Hypothesis-Z/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hypothesis-Z/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hypothesis-Z/subscriptions", "type": "User", "url": "https://api.github.com/users/Hypothesis-Z", "user_view_type": "public" } }, { "author_association": "NONE", "body": "A cheaper option (seems to work in my case): \n```python\nfrom datasets import tqdm as hf_tqdm\nhf_tqdm.set_lock(hf_tqdm.get_lock())\n```", "created_at": "2025-07-01T02:57:10Z", "html_url": "https://github.com/huggingface/datasets/issues/7660#issuecomment-3021563269", "id": 3021563269, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7660", "node_id": "IC_kwDODunzps60GWWF", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3021563269/reactions" }, "updated_at": "2025-07-02T14:42:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3021563269", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/44766273?v=4", "events_url": "https://api.github.com/users/Hypothesis-Z/events{/privacy}", "followers_url": "https://api.github.com/users/Hypothesis-Z/followers", "following_url": "https://api.github.com/users/Hypothesis-Z/following{/other_user}", "gists_url": "https://api.github.com/users/Hypothesis-Z/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hypothesis-Z", "id": 44766273, "login": "Hypothesis-Z", "node_id": "MDQ6VXNlcjQ0NzY2Mjcz", "organizations_url": "https://api.github.com/users/Hypothesis-Z/orgs", "received_events_url": "https://api.github.com/users/Hypothesis-Z/received_events", "repos_url": "https://api.github.com/users/Hypothesis-Z/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hypothesis-Z/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hypothesis-Z/subscriptions", "type": "User", "url": "https://api.github.com/users/Hypothesis-Z", "user_view_type": "public" } } ]
2025-06-30T15:57:16Z
2025-07-03T15:14:27Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug `AttributeError: type object 'tqdm' has no attribute '_lock'` It occurs when I'm trying to load datasets in thread pool. Issue https://github.com/huggingface/datasets/issues/6066 and PR https://github.com/huggingface/datasets/pull/6067 https://github.com/huggingface/datasets/pull/6068 tried to fix this. ### Steps to reproduce the bug Will have to try several times to reproduce the error because it is concerned with threads. 1. save some datasets for test ```pythonfrom datasets import Dataset, DatasetDict import os os.makedirs("test_dataset_shards", exist_ok=True) for i in range(10): data = Dataset.from_dict({"text": [f"example {j}" for j in range(1000000)]}) data = DatasetDict({'train': data}) data.save_to_disk(f"test_dataset_shards/shard_{i}") ``` 2. load them in a thread pool ```python from datasets import load_from_disk from tqdm import tqdm from concurrent.futures import ThreadPoolExecutor, as_completed import glob datas = glob.glob('test_dataset_shards/shard_*') with ThreadPoolExecutor(max_workers=10) as pool: futures = [pool.submit(load_from_disk, it) for it in datas] datas = [] for future in tqdm(as_completed(futures), total=len(futures)): datas.append(future.result()) ``` ### Expected behavior no exception raised ### Environment info datasets==2.19.0 python==3.10
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7660/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7660/timeline
null
null
null
null
2025-06-30T15:57:16Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7663
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7663/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7663/comments
https://api.github.com/repos/huggingface/datasets/issues/7663/events
https://github.com/huggingface/datasets/pull/7663
3,192,582,371
PR_kwDODunzps6c6aJF
7,663
Custom metadata filenames
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7663). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-01T13:53:17Z", "html_url": "https://github.com/huggingface/datasets/pull/7663#issuecomment-3024125052", "id": 3024125052, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7663", "node_id": "IC_kwDODunzps60QHx8", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024125052/reactions" }, "updated_at": "2025-07-01T13:53:17Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024125052", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-07-01T13:50:36Z
2025-07-01T13:58:41Z
2025-07-01T13:58:39Z
MEMBER
null
null
null
example: https://huggingface.co/datasets/lhoestq/overlapping-subsets-imagefolder/tree/main To make multiple subsets for an imagefolder (one metadata file per subset), e.g. ```yaml configs: - config_name: default metadata_filenames: - metadata.csv - config_name: other metadata_filenames: - metadata2.csv ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 1, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7663/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7663/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7663.diff", "html_url": "https://github.com/huggingface/datasets/pull/7663", "merged_at": "2025-07-01T13:58:39Z", "patch_url": "https://github.com/huggingface/datasets/pull/7663.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7663" }
2025-07-01T13:50:36Z
2025-07-01T13:58:39Z
0:08:03
true
https://api.github.com/repos/huggingface/datasets/issues/7658
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7658/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7658/comments
https://api.github.com/repos/huggingface/datasets/issues/7658/events
https://github.com/huggingface/datasets/pull/7658
3,187,800,504
PR_kwDODunzps6cqTMs
7,658
Fix: Prevent loss of info.features and column_names in IterableDatasetDict.map when features is None
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Hi!\r\nI haven’t included a test for this change, as the fix is quite small and targeted.\r\nPlease let me know if you’d like a test for this case or if you’d prefer to handle it during review.\r\nThanks!", "created_at": "2025-06-30T09:31:34Z", "html_url": "https://github.com/huggingface/datasets/pull/7658#issuecomment-3018453459", "id": 3018453459, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7658", "node_id": "IC_kwDODunzps6z6fHT", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3018453459/reactions" }, "updated_at": "2025-06-30T09:31:34Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3018453459", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "we can't know in advance the `features` after map() (it transforms the data !), so you can reuse the `features` from `info.features`", "created_at": "2025-07-01T13:24:43Z", "html_url": "https://github.com/huggingface/datasets/pull/7658#issuecomment-3024012842", "id": 3024012842, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7658", "node_id": "IC_kwDODunzps60PsYq", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024012842/reactions" }, "updated_at": "2025-07-01T13:24:43Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024012842", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "I'll the patch as suggested — `info.features = features` or `self.info.features` — to ensure schema preservation while keeping the logic simple and explicit. WDYT?\r\n", "created_at": "2025-07-01T16:13:22Z", "html_url": "https://github.com/huggingface/datasets/pull/7658#issuecomment-3024677084", "id": 3024677084, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7658", "node_id": "IC_kwDODunzps60SOjc", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024677084/reactions" }, "updated_at": "2025-07-01T16:13:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024677084", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "info.features should be None in the general case, and replaced by the user's `features` if it's passed explicitly with `map(..., features=...)`\r\n\r\nhttps://github.com/huggingface/datasets/issues/7568 is not an issue we can fix", "created_at": "2025-07-01T16:17:07Z", "html_url": "https://github.com/huggingface/datasets/pull/7658#issuecomment-3024704891", "id": 3024704891, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7658", "node_id": "IC_kwDODunzps60SVV7", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024704891/reactions" }, "updated_at": "2025-07-01T16:17:07Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024704891", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> info.features should be None in the general case, and replaced by the user's `features` if it's passed explicitly with `map(..., features=...)`\r\n> \r\n> #7568 is not an issue we can fix\r\n\r\nThanks for the clarification! Totally makes sense now — I understand that features=None is the expected behavior post-map() unless explicitly passed, and that preserving old schema by default could lead to incorrect assumptions.\r\nClosing this one — appreciate the feedback as always", "created_at": "2025-07-01T16:26:05Z", "html_url": "https://github.com/huggingface/datasets/pull/7658#issuecomment-3024730752", "id": 3024730752, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7658", "node_id": "IC_kwDODunzps60SbqA", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024730752/reactions" }, "updated_at": "2025-07-01T16:26:05Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024730752", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-30T09:31:12Z
2025-07-01T16:26:30Z
2025-07-01T16:26:12Z
CONTRIBUTOR
null
null
null
This PR fixes a bug where calling `IterableDatasetDict.map()` or `IterableDataset.map()` with the default `features=None` argument would overwrite the existing `info.features` attribute with `None`. This, in turn, caused the resulting dataset to lose its schema, breaking downstream usage of attributes like `column_names`. Why Previously, the code would always set `info.features = features`, even if `features` was `None`. When mapping with removal of columns or other transformations, this led to the destruction of the schema and caused failures in code that relied on the dataset schema being present. How We now update `info.features` only if `features` is not `None`. This preserves the original schema unless the user explicitly provides a new one. Reference Fixes #7568
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7658/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7658/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7658.diff", "html_url": "https://github.com/huggingface/datasets/pull/7658", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7658.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7658" }
2025-06-30T09:31:12Z
2025-07-01T16:26:12Z
1 day, 6:55:00
true
https://api.github.com/repos/huggingface/datasets/issues/7659
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7659/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7659/comments
https://api.github.com/repos/huggingface/datasets/issues/7659/events
https://github.com/huggingface/datasets/pull/7659
3,187,882,217
PR_kwDODunzps6cqkou
7,659
Update the beans dataset link in Preprocess
{ "avatar_url": "https://avatars.githubusercontent.com/u/5434867?v=4", "events_url": "https://api.github.com/users/HJassar/events{/privacy}", "followers_url": "https://api.github.com/users/HJassar/followers", "following_url": "https://api.github.com/users/HJassar/following{/other_user}", "gists_url": "https://api.github.com/users/HJassar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HJassar", "id": 5434867, "login": "HJassar", "node_id": "MDQ6VXNlcjU0MzQ4Njc=", "organizations_url": "https://api.github.com/users/HJassar/orgs", "received_events_url": "https://api.github.com/users/HJassar/received_events", "repos_url": "https://api.github.com/users/HJassar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HJassar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HJassar/subscriptions", "type": "User", "url": "https://api.github.com/users/HJassar", "user_view_type": "public" }
[]
closed
false
null
[]
null
[]
2025-06-30T09:58:44Z
2025-07-07T08:38:19Z
2025-07-01T14:01:42Z
CONTRIBUTOR
null
null
null
In the Preprocess tutorial, the to "the beans dataset" is incorrect. Fixed.
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7659/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7659/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7659.diff", "html_url": "https://github.com/huggingface/datasets/pull/7659", "merged_at": "2025-07-01T14:01:42Z", "patch_url": "https://github.com/huggingface/datasets/pull/7659.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7659" }
2025-06-30T09:58:44Z
2025-07-01T14:01:42Z
1 day, 4:02:58
true
https://api.github.com/repos/huggingface/datasets/issues/7656
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7656/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7656/comments
https://api.github.com/repos/huggingface/datasets/issues/7656/events
https://github.com/huggingface/datasets/pull/7656
3,185,865,686
PR_kwDODunzps6ckPHc
7,656
fix(iterable): ensure MappedExamplesIterable supports state_dict for resume
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-29T07:50:13Z
2025-06-29T07:50:13Z
null
CONTRIBUTOR
null
null
null
Fixes #7630 ### Problem When calling `.map()` on an `IterableDataset`, resuming from a checkpoint skips a large number of samples. This is because `MappedExamplesIterable` did not implement `state_dict()` or `load_state_dict()`, so checkpointing was not properly delegated to the underlying iterable. ### What This PR Does This patch adds: ```python def state_dict(self): return self.ex_iterable.state_dict() def load_state_dict(self, state): self.ex_iterable.load_state_dict(state) ``` to MappedExamplesIterable, so the wrapped base iterable's state can be saved and restored as expected. Result Using .map() no longer causes sample skipping after checkpoint resume. Let me know if a dedicated test case is required — happy to add one!
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7656/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7656/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7656.diff", "html_url": "https://github.com/huggingface/datasets/pull/7656", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7656.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7656" }
2025-06-29T07:50:13Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7657
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7657/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7657/comments
https://api.github.com/repos/huggingface/datasets/issues/7657/events
https://github.com/huggingface/datasets/pull/7657
3,186,036,016
PR_kwDODunzps6cks2E
7,657
feat: add subset_name as alias for name in load_dataset
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-29T10:39:00Z
2025-07-18T17:45:41Z
null
CONTRIBUTOR
null
null
null
fixes #7637 This PR introduces subset_name as a user-facing alias for the name (previously `config_name`) argument in load_dataset. It aligns terminology with the Hugging Face Hub UI (which shows “Subset”), reducing confusion for new users. Supports `subset_name` in `load_dataset()` Adds `.subset_name` property to DatasetBuilder Maintains full backward compatibility Raises clear error if name and `subset_name` conflict
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7657/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7657/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7657.diff", "html_url": "https://github.com/huggingface/datasets/pull/7657", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7657.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7657" }
2025-06-29T10:39:00Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7655
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7655/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7655/comments
https://api.github.com/repos/huggingface/datasets/issues/7655/events
https://github.com/huggingface/datasets/pull/7655
3,185,382,105
PR_kwDODunzps6ci9oi
7,655
Added specific use cases in Improve Performace
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-28T19:00:32Z
2025-06-28T19:00:32Z
null
CONTRIBUTOR
null
null
null
Fixes #2494
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7655/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7655/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7655.diff", "html_url": "https://github.com/huggingface/datasets/pull/7655", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7655.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7655" }
2025-06-28T19:00:32Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7654
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7654/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7654/comments
https://api.github.com/repos/huggingface/datasets/issues/7654/events
https://github.com/huggingface/datasets/pull/7654
3,184,770,992
PR_kwDODunzps6chPmz
7,654
fix(load): strip deprecated use_auth_token from config_kwargs
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-28T09:20:21Z
2025-06-28T09:20:21Z
null
CONTRIBUTOR
null
null
null
Fixes #7504 This PR resolves a compatibility error when loading datasets via `load_dataset()` using outdated arguments like `use_auth_token`. **What was happening:** Users passing `use_auth_token` in `load_dataset(..., use_auth_token=...)` encountered a `ValueError`: BuilderConfig ParquetConfig(...) doesn't have a 'use_auth_token' key. **Why:** `use_auth_token` has been deprecated and removed from config definitions (replaced by `token`), but the `load_dataset()` function still forwarded it via `**config_kwargs` to BuilderConfigs, leading to unrecognized key errors. **Fix:** We now intercept and strip `use_auth_token` from `config_kwargs` inside `load_dataset`, replacing it with a warning: ```python if "use_auth_token" in config_kwargs: logger.warning("The 'use_auth_token' argument is deprecated. Please use 'token' instead.") config_kwargs.pop("use_auth_token") ``` This ensures legacy compatibility while guiding users to switch to the token argument. Let me know if you'd prefer a deprecation error instead of a warning. Thanks!
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7654/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7654/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7654.diff", "html_url": "https://github.com/huggingface/datasets/pull/7654", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7654.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7654" }
2025-06-28T09:20:21Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7653
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7653/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7653/comments
https://api.github.com/repos/huggingface/datasets/issues/7653/events
https://github.com/huggingface/datasets/pull/7653
3,184,746,093
PR_kwDODunzps6chLmb
7,653
feat(load): fallback to `load_from_disk()` when loading a saved dataset directory
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-28T08:47:36Z
2025-06-28T08:47:36Z
null
CONTRIBUTOR
null
null
null
### Related Issue Fixes #7503 Partially addresses #5044 by allowing `load_dataset()` to auto-detect and gracefully delegate to `load_from_disk()` for locally saved datasets. --- ### What does this PR do? This PR introduces a minimal fallback mechanism in `load_dataset()` that detects when the provided `path` points to a dataset saved using `save_to_disk()`, and automatically redirects to `load_from_disk()`. #### 🐛 Before (unexpected metadata-only rows): ```python ds = load_dataset("/path/to/saved_dataset") # → returns rows with only internal metadata (_data_files, _fingerprint, etc.) ```` #### ✅ After (graceful fallback): ```python ds = load_dataset("/path/to/saved_dataset") # → logs a warning and internally switches to load_from_disk() ``` --- ### Why is this useful? * Prevents confusion when reloading local datasets saved via `save_to_disk()`. * Enables smoother compatibility with frameworks (e.g., TRL, `lighteval`) that rely on `load_dataset()` calls. * Fully backward-compatible — hub-based loading, custom builders, and streaming remain untouched.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7653/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7653/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7653.diff", "html_url": "https://github.com/huggingface/datasets/pull/7653", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7653.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7653" }
2025-06-28T08:47:36Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7652
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7652/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7652/comments
https://api.github.com/repos/huggingface/datasets/issues/7652/events
https://github.com/huggingface/datasets/pull/7652
3,183,372,055
PR_kwDODunzps6cdCnv
7,652
Add columns support to JSON loader for selective key filtering
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "I need this feature right now. It would be great if it could automatically fill in None for non-existent keys instead of reporting an error.", "created_at": "2025-07-03T06:52:10Z", "html_url": "https://github.com/huggingface/datasets/pull/7652#issuecomment-3031087320", "id": 3031087320, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7652", "node_id": "IC_kwDODunzps60qrjY", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3031087320/reactions" }, "updated_at": "2025-07-03T06:52:10Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3031087320", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/51043929?v=4", "events_url": "https://api.github.com/users/aihao2000/events{/privacy}", "followers_url": "https://api.github.com/users/aihao2000/followers", "following_url": "https://api.github.com/users/aihao2000/following{/other_user}", "gists_url": "https://api.github.com/users/aihao2000/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aihao2000", "id": 51043929, "login": "aihao2000", "node_id": "MDQ6VXNlcjUxMDQzOTI5", "organizations_url": "https://api.github.com/users/aihao2000/orgs", "received_events_url": "https://api.github.com/users/aihao2000/received_events", "repos_url": "https://api.github.com/users/aihao2000/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aihao2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aihao2000/subscriptions", "type": "User", "url": "https://api.github.com/users/aihao2000", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> I need this feature right now. It would be great if it could automatically fill in None for non-existent keys instead of reporting an error.\r\n\r\nHi @aihao2000, Just to confirm — I have done the changes you asked for!\r\nIf you pass columns=[\"key1\", \"key2\", \"optional_key\"] to load_dataset(..., columns=...), and any of those keys are missing from the input JSON objects, the loader will automatically fill those columns with None values, instead of raising an error.", "created_at": "2025-07-03T09:52:48Z", "html_url": "https://github.com/huggingface/datasets/pull/7652#issuecomment-3031633365", "id": 3031633365, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7652", "node_id": "IC_kwDODunzps60sw3V", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3031633365/reactions" }, "updated_at": "2025-07-03T09:52:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3031633365", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi! any update on this PR?", "created_at": "2025-07-14T10:41:53Z", "html_url": "https://github.com/huggingface/datasets/pull/7652#issuecomment-3068910341", "id": 3068910341, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7652", "node_id": "IC_kwDODunzps6269sF", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068910341/reactions" }, "updated_at": "2025-07-14T10:41:53Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068910341", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-27T16:18:42Z
2025-07-14T10:41:53Z
null
CONTRIBUTOR
null
null
null
Fixes #7594 This PR adds support for filtering specific columns when loading datasets from .json or .jsonl files — similar to how the columns=... argument works for Parquet. As suggested, support for the `columns=...` argument (previously available for Parquet) has now been extended to **JSON and JSONL** loading via `load_dataset(...)`. You can now load only specific keys/columns and skip the rest — which should help in cases where some fields are unclean, inconsistent, or just unnecessary. ### Example: ```python from datasets import load_dataset dataset = load_dataset("json", data_files="your_data.jsonl", columns=["id", "title"]) print(dataset["train"].column_names) # Output: ['id', 'title'] ``` ### Summary of changes: * Added `columns: Optional[List[str]]` to `JsonConfig` * Updated `_generate_tables()` to filter selected columns * Forwarded `columns` argument from `load_dataset()` to the config * Added test for validation(should be fine!) Let me know if you'd like the same to be added for CSV or others as a follow-up — happy to help.
null
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7652/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7652/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7652.diff", "html_url": "https://github.com/huggingface/datasets/pull/7652", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7652.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7652" }
2025-06-27T16:18:42Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7651
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7651/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7651/comments
https://api.github.com/repos/huggingface/datasets/issues/7651/events
https://github.com/huggingface/datasets/pull/7651
3,182,792,775
PR_kwDODunzps6cbMmg
7,651
fix: Extended metadata file names for folder_based_builder
{ "avatar_url": "https://avatars.githubusercontent.com/u/6965756?v=4", "events_url": "https://api.github.com/users/iPieter/events{/privacy}", "followers_url": "https://api.github.com/users/iPieter/followers", "following_url": "https://api.github.com/users/iPieter/following{/other_user}", "gists_url": "https://api.github.com/users/iPieter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iPieter", "id": 6965756, "login": "iPieter", "node_id": "MDQ6VXNlcjY5NjU3NTY=", "organizations_url": "https://api.github.com/users/iPieter/orgs", "received_events_url": "https://api.github.com/users/iPieter/received_events", "repos_url": "https://api.github.com/users/iPieter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iPieter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iPieter/subscriptions", "type": "User", "url": "https://api.github.com/users/iPieter", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-27T13:12:11Z
2025-06-30T08:19:37Z
null
NONE
null
null
null
Fixes #7650. The metadata files generated by the `DatasetDict.save_to_file` function are not included in the folder_based_builder's metadata list, causing issues when only 1 actual data file is present, as described in issue #7650. This PR adds these filenames to the builder, allowing correct loading.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7651/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7651/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7651.diff", "html_url": "https://github.com/huggingface/datasets/pull/7651", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7651.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7651" }
2025-06-27T13:12:11Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7650
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7650/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7650/comments
https://api.github.com/repos/huggingface/datasets/issues/7650/events
https://github.com/huggingface/datasets/issues/7650
3,182,745,315
I_kwDODunzps69tNbj
7,650
`load_dataset` defaults to json file format for datasets with 1 shard
{ "avatar_url": "https://avatars.githubusercontent.com/u/6965756?v=4", "events_url": "https://api.github.com/users/iPieter/events{/privacy}", "followers_url": "https://api.github.com/users/iPieter/followers", "following_url": "https://api.github.com/users/iPieter/following{/other_user}", "gists_url": "https://api.github.com/users/iPieter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iPieter", "id": 6965756, "login": "iPieter", "node_id": "MDQ6VXNlcjY5NjU3NTY=", "organizations_url": "https://api.github.com/users/iPieter/orgs", "received_events_url": "https://api.github.com/users/iPieter/received_events", "repos_url": "https://api.github.com/users/iPieter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iPieter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iPieter/subscriptions", "type": "User", "url": "https://api.github.com/users/iPieter", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-27T12:54:25Z
2025-06-27T12:54:25Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I currently have multiple datasets (train+validation) saved as 50MB shards. For one dataset the validation pair is small enough to fit into a single shard and this apparently causes problems when loading the dataset. I created the datasets using a DatasetDict, saved them as 50MB arrow files for streaming and then load each dataset. I have no problem loading any of the other datasets with more than 1 arrow file/shard. The error indicates the training set got loaded in arrow format (correct) and the validation set in json (incorrect). This seems to be because some of the metadata files are considered as dataset files. ``` Error loading /nfs/dataset_pt-uk: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('arrow', {}), NamedSplit('validation'): ('json', {})} ``` ![Image](https://github.com/user-attachments/assets/f6e7596a-dd53-46a9-9a23-4e9cac2ac049) Concretely, there is a mismatch between the metadata created by the `DatasetDict.save_to_file` and the builder for `datasets.load_dataset`: https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/data_files.py#L107 The `folder_based_builder` lists all files and with 1 arrow file the json files (that are actually metadata) are in the majority. https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/packaged_modules/folder_based_builder/folder_based_builder.py#L58 ### Steps to reproduce the bug Create a dataset with metadata and 1 arrow file in validation and multiple arrow files in the training set, following the above description. In my case, I saved the files via: ```python dataset = DatasetDict({ 'train': train_dataset, 'validation': val_dataset }) dataset.save_to_disk(output_path, max_shard_size="50MB") ``` ### Expected behavior The dataset would get loaded. ### Environment info - `datasets` version: 3.6.0 - Platform: Linux-6.14.0-22-generic-x86_64-with-glibc2.41 - Python version: 3.12.7 - `huggingface_hub` version: 0.31.1 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.6.1
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7650/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7650/timeline
null
null
null
null
2025-06-27T12:54:25Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7649
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7649/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7649/comments
https://api.github.com/repos/huggingface/datasets/issues/7649/events
https://github.com/huggingface/datasets/pull/7649
3,181,481,444
PR_kwDODunzps6cW0sQ
7,649
Enable parallel shard upload in push_to_hub() using num_proc
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "it was already added in https://github.com/huggingface/datasets/pull/7606 actually ^^'", "created_at": "2025-07-07T09:31:13Z", "html_url": "https://github.com/huggingface/datasets/pull/7649#issuecomment-3044173910", "id": 3044173910, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7649", "node_id": "IC_kwDODunzps61cmhW", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3044173910/reactions" }, "updated_at": "2025-07-07T09:31:13Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3044173910", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Oh sure sure, Closing this one as redundant.", "created_at": "2025-07-07T18:13:52Z", "html_url": "https://github.com/huggingface/datasets/pull/7649#issuecomment-3046117667", "id": 3046117667, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7649", "node_id": "IC_kwDODunzps61kBEj", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3046117667/reactions" }, "updated_at": "2025-07-07T18:13:52Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3046117667", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-27T05:59:03Z
2025-07-07T18:13:53Z
2025-07-07T18:13:52Z
CONTRIBUTOR
null
null
null
Fixes #7591 ### Add num_proc support to `push_to_hub()` for parallel shard upload This PR adds support for parallel upload of dataset shards via the `num_proc` argument in `Dataset.push_to_hub()`. 📌 While the `num_proc` parameter was already present in the `push_to_hub()` signature and correctly passed to `_push_parquet_shards_to_hub()`, it was not being used to parallelize the upload. 🔧 This PR updates the internal `_push_parquet_shards_to_hub()` function to: - Use `multiprocessing.Pool` and `iflatmap_unordered()` for concurrent shard upload when `num_proc > 1` - Preserve original serial upload behavior if `num_proc` is `None` or ≤ 1 - Keep tqdm progress and commit behavior unchanged Let me know if any test coverage or further changes are needed!
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7649/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7649/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7649.diff", "html_url": "https://github.com/huggingface/datasets/pull/7649", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7649.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7649" }
2025-06-27T05:59:03Z
2025-07-07T18:13:52Z
10 days, 12:14:49
true
https://api.github.com/repos/huggingface/datasets/issues/7648
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7648/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7648/comments
https://api.github.com/repos/huggingface/datasets/issues/7648/events
https://github.com/huggingface/datasets/pull/7648
3,181,409,736
PR_kwDODunzps6cWmSn
7,648
Fix misleading add_column() usage example in docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "I believe there are other occurences of cases like this, like select_columns, select, filter, shard and flatten, could you also fix the docstring for them as well before we merge ?", "created_at": "2025-07-07T15:11:04Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3045569776", "id": 3045569776, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps61h7Tw", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3045569776/reactions" }, "updated_at": "2025-07-07T15:11:04Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3045569776", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Done! @lhoestq! I've updated the docstring examples for the following methods to clarify that they return new datasets instead of modifying in-place:\r\n\r\n- `select_columns`\r\n- `select`\r\n- `filter`\r\n- `shard`\r\n- `flatten`\r\n", "created_at": "2025-07-07T18:11:25Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3046111777", "id": 3046111777, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps61j_oh", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3046111777/reactions" }, "updated_at": "2025-07-07T18:11:25Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3046111777", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Also, any suggestions on what kind of issues I should work on next? I tried looking on my own, but I’d be happy if you could assign me something — I’ll do my best!\r\n", "created_at": "2025-07-08T07:25:26Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3047694093", "id": 3047694093, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps61qB8N", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3047694093/reactions" }, "updated_at": "2025-07-08T07:25:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3047694093", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi! any update on this PR?", "created_at": "2025-07-14T10:42:21Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3068913005", "id": 3068913005, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps626-Vt", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068913005/reactions" }, "updated_at": "2025-07-14T10:42:21Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068913005", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7648). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-07-17T13:13:51Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3084030640", "id": 3084030640, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps630pKw", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084030640/reactions" }, "updated_at": "2025-07-17T13:13:51Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084030640", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "> Also, any suggestions on what kind of issues I should work on next? I tried looking on my own, but I’d be happy if you could assign me something — I’ll do my best!\r\n\r\nHmm. One long lasting issue is the one about being able to download only one split of a dataset (currently `load_dataset()` downloads all the splits, even when only one of train/test/validation is passed with `load_dataset(..., split=split)`)\r\n\r\nThis makes some downloads pretty long, I remember Mario started to work on this in this PR but couldn't finish it: https://github.com/huggingface/datasets/pull/6832\r\n\r\nI think it would be a challenging but pretty impactful addition, and feel free to ping me if you have questions or if I can help. You can also take a look at Mario's first PR which was already in an advanced state. \r\n\r\nLet me know if it sounds like the kind of contribution you're looking for :)", "created_at": "2025-07-17T13:20:08Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3084050130", "id": 3084050130, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps630t7S", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084050130/reactions" }, "updated_at": "2025-07-17T13:20:08Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084050130", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi @lhoestq, thanks for the thoughtful suggestion!\r\n\r\nThe issue you mentioned sounds like a meaningful problem to tackle, and I’d love to take a closer look at it. I’ll start by reviewing Mario’s PR (#6832), understand what was implemented so far, and what remains to be done.\r\n\r\nIf I have any questions or run into anything unclear, I’ll be sure to reach out. \r\n\r\nI plan to give this a solid try. Thanks again — contributing to Hugging Face is something I truly hope to grow into.\r\n\r\n---\r\nOnce again the the main Issue is to - \r\n\r\n>Allow users to download only the requested split(s) in load_dataset(...), avoiding unnecessary processing/downloading of the full dataset (especially important for large datasets like svhn, squad, glue).\r\n\r\nright?\r\n\r\nAlso I have gone through some related / mentioned issues and PRs - \r\n\r\n- PR #6832 | Mario's main implementation for per-split download logic. Introduces splits param, _available_splits, and conditional logic in download_and_prepare()\r\n\r\n- PR #6639 | Your earlier PR to trigger download_and_prepare() only when splits are missing from disk\r\n\r\n- Issue #4101 / #2538 / #6529 | Real-world user complaints about load_dataset(..., split=...) still downloading everything. Confirm the need for this fix\r\n\r\n- #2249 | Referenced by albertvillanova — old idea of caching only specific splits\r\n\r\n---\r\nIF I am not wrong, #2249 had some limitations - \r\n- Only worked for some dataset scripts where the download dict had split names as keys (like natural_questions).\r\n\r\n- Would fail or cause confusing behavior on datasets with: \r\n1] Custom download keys (TRAIN_DOWNLOAD_URL, val_nyt, metadata)\r\n2] Files passed one by one to dl_manager.download(), not as a dict\r\n\r\n- Reused DownloadConfig, which led to blurry separation between cached_path, DownloadManager, and dataset logic.\r\n\r\n- Needed to modify each dataset's _split_generators() to fully support split filtering.\r\n\r\n- Risked partial or inconsistent caching if logic wasn’t tight.\r\n", "created_at": "2025-07-17T15:04:44Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3084425516", "id": 3084425516, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps632Jks", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084425516/reactions" }, "updated_at": "2025-07-20T16:07:49Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3084425516", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> Hi @lhoestq, thanks for the thoughtful suggestion!\r\n> \r\n> The issue you mentioned sounds like a meaningful problem to tackle, and I’d love to take a closer look at it. I’ll start by reviewing Mario’s PR (#6832), understand what was implemented so far, and what remains to be done.\r\n> \r\n> If I have any questions or run into anything unclear, I’ll be sure to reach out.\r\n> \r\n> I plan to give this a solid try. Thanks again — contributing to Hugging Face is something I truly hope to grow into.\r\n> \r\n> Once again the the main Issue is to -\r\n> \r\n> > Allow users to download only the requested split(s) in load_dataset(...), avoiding unnecessary processing/downloading of the full dataset (especially important for large datasets like svhn, squad, glue).\r\n> \r\n> right?\r\n> \r\n> Also I have gone through some related / mentioned issues and PRs -\r\n> \r\n> * PR [Support downloading specific splits in `load_dataset` #6832](https://github.com/huggingface/datasets/pull/6832) | Mario's main implementation for per-split download logic. Introduces splits param, _available_splits, and conditional logic in download_and_prepare()\r\n> * PR [Run download_and_prepare if missing splits #6639](https://github.com/huggingface/datasets/pull/6639) | Your earlier PR to trigger download_and_prepare() only when splits are missing from disk\r\n> * Issue [How can I download only the train and test split for full numbers using load_dataset()?  #4101](https://github.com/huggingface/datasets/issues/4101) / [Loading partial dataset when debugging #2538](https://github.com/huggingface/datasets/issues/2538) / [Impossible to only download a test split #6529](https://github.com/huggingface/datasets/issues/6529) | Real-world user complaints about load_dataset(..., split=...) still downloading everything. Confirm the need for this fix\r\n> * [Allow downloading/processing/caching only specific splits #2249](https://github.com/huggingface/datasets/pull/2249) | Referenced by albertvillanova — old idea of caching only specific splits\r\n> \r\n> IF I am not wrong, #2249 had some limitations -\r\n> \r\n> * Only worked for some dataset scripts where the download dict had split names as keys (like natural_questions).\r\n> * Would fail or cause confusing behavior on datasets with:\r\n> 1] Custom download keys (TRAIN_DOWNLOAD_URL, val_nyt, metadata)\r\n> 2] Files passed one by one to dl_manager.download(), not as a dict\r\n> * Reused DownloadConfig, which led to blurry separation between cached_path, DownloadManager, and dataset logic.\r\n> * Needed to modify each dataset's _split_generators() to fully support split filtering.\r\n> * Risked partial or inconsistent caching if logic wasn’t tight.\r\n\r\nAlso This one is in the charge now - https://github.com/huggingface/datasets/pull/7706#issue-3271129240", "created_at": "2025-07-28T19:42:05Z", "html_url": "https://github.com/huggingface/datasets/pull/7648#issuecomment-3129063346", "id": 3129063346, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7648", "node_id": "IC_kwDODunzps66gbey", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3129063346/reactions" }, "updated_at": "2025-07-28T19:42:34Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3129063346", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-27T05:27:04Z
2025-07-28T19:42:34Z
2025-07-17T13:14:17Z
CONTRIBUTOR
null
null
null
Fixes #7611 This PR fixes the usage example in the Dataset.add_column() docstring, which previously implied that add_column() modifies the dataset in-place. Why: The method returns a new dataset with the additional column, and users must assign the result to a variable to preserve the change. This should make the behavior clearer for users. @lhoestq @davanstrien
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7648/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7648/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7648.diff", "html_url": "https://github.com/huggingface/datasets/pull/7648", "merged_at": "2025-07-17T13:14:17Z", "patch_url": "https://github.com/huggingface/datasets/pull/7648.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7648" }
2025-06-27T05:27:04Z
2025-07-17T13:14:17Z
20 days, 7:47:13
true
https://api.github.com/repos/huggingface/datasets/issues/7647
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7647/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7647/comments
https://api.github.com/repos/huggingface/datasets/issues/7647/events
https://github.com/huggingface/datasets/issues/7647
3,178,952,517
I_kwDODunzps69evdF
7,647
loading mozilla-foundation--common_voice_11_0 fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/5703039?v=4", "events_url": "https://api.github.com/users/pavel-esir/events{/privacy}", "followers_url": "https://api.github.com/users/pavel-esir/followers", "following_url": "https://api.github.com/users/pavel-esir/following{/other_user}", "gists_url": "https://api.github.com/users/pavel-esir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pavel-esir", "id": 5703039, "login": "pavel-esir", "node_id": "MDQ6VXNlcjU3MDMwMzk=", "organizations_url": "https://api.github.com/users/pavel-esir/orgs", "received_events_url": "https://api.github.com/users/pavel-esir/received_events", "repos_url": "https://api.github.com/users/pavel-esir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pavel-esir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pavel-esir/subscriptions", "type": "User", "url": "https://api.github.com/users/pavel-esir", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "@claude Could you please address this issue", "created_at": "2025-06-27T12:27:55Z", "html_url": "https://github.com/huggingface/datasets/issues/7647#issuecomment-3012884773", "id": 3012884773, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7647", "node_id": "IC_kwDODunzps6zlPkl", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3012884773/reactions" }, "updated_at": "2025-06-27T12:29:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3012884773", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/72126242?v=4", "events_url": "https://api.github.com/users/jyotiyadav94/events{/privacy}", "followers_url": "https://api.github.com/users/jyotiyadav94/followers", "following_url": "https://api.github.com/users/jyotiyadav94/following{/other_user}", "gists_url": "https://api.github.com/users/jyotiyadav94/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jyotiyadav94", "id": 72126242, "login": "jyotiyadav94", "node_id": "MDQ6VXNlcjcyMTI2MjQy", "organizations_url": "https://api.github.com/users/jyotiyadav94/orgs", "received_events_url": "https://api.github.com/users/jyotiyadav94/received_events", "repos_url": "https://api.github.com/users/jyotiyadav94/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jyotiyadav94/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jyotiyadav94/subscriptions", "type": "User", "url": "https://api.github.com/users/jyotiyadav94", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "kinda related: https://github.com/huggingface/datasets/issues/7675", "created_at": "2025-07-10T14:49:30Z", "html_url": "https://github.com/huggingface/datasets/issues/7647#issuecomment-3057791919", "id": 3057791919, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7647", "node_id": "IC_kwDODunzps62QjOv", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057791919/reactions" }, "updated_at": "2025-07-10T14:49:30Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3057791919", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-06-26T12:23:48Z
2025-07-10T14:49:30Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug Hello everyone, i am trying to load `mozilla-foundation--common_voice_11_0` and it fails. Reproducer ``` import datasets datasets.load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True, trust_remote_code=True) ``` and it fails with ``` File ~/opt/envs/.../lib/python3.10/site-packages/datasets/utils/file_utils.py:827, in _add_retries_to_file_obj_read_method.<locals>.read_with_retries(*args, **kwargs) 825 for retry in range(1, max_retries + 1): 826 try: --> 827 out = read(*args, **kwargs) 828 break 829 except ( 830 _AiohttpClientError, 831 asyncio.TimeoutError, 832 requests.exceptions.ConnectionError, 833 requests.exceptions.Timeout, 834 ) as err: File /usr/lib/python3.10/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final) 319 def decode(self, input, final=False): 320 # decode input (taking the buffer into account) 321 data = self.buffer + input --> 322 (result, consumed) = self._buffer_decode(data, self.errors, final) 323 # keep undecoded input until the next call 324 self.buffer = data[consumed:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte ``` When i remove streaming then everything is good but i need `streaming=True` ### Steps to reproduce the bug ``` import datasets datasets.load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True, trust_remote_code=True) ``` ### Expected behavior Expected that it will download dataset ### Environment info datasets==3.6.0 python3.10 on all platforms linux/win/mac
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7647/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7647/timeline
null
null
null
null
2025-06-26T12:23:48Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7645
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7645/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7645/comments
https://api.github.com/repos/huggingface/datasets/issues/7645/events
https://github.com/huggingface/datasets/pull/7645
3,176,810,164
PR_kwDODunzps6cHkp-
7,645
`ClassLabel` docs: Correct value for unknown labels
{ "avatar_url": "https://avatars.githubusercontent.com/u/56924246?v=4", "events_url": "https://api.github.com/users/l-uuz/events{/privacy}", "followers_url": "https://api.github.com/users/l-uuz/followers", "following_url": "https://api.github.com/users/l-uuz/following{/other_user}", "gists_url": "https://api.github.com/users/l-uuz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/l-uuz", "id": 56924246, "login": "l-uuz", "node_id": "MDQ6VXNlcjU2OTI0MjQ2", "organizations_url": "https://api.github.com/users/l-uuz/orgs", "received_events_url": "https://api.github.com/users/l-uuz/received_events", "repos_url": "https://api.github.com/users/l-uuz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/l-uuz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/l-uuz/subscriptions", "type": "User", "url": "https://api.github.com/users/l-uuz", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-25T20:01:35Z
2025-06-25T20:01:35Z
null
NONE
null
null
null
This small change fixes the documentation to to be compliant with what happens in `encode_example`. https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/features/features.py#L1126-L1129
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7645/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7645/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7645.diff", "html_url": "https://github.com/huggingface/datasets/pull/7645", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7645.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7645" }
2025-06-25T20:01:35Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7644
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7644/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7644/comments
https://api.github.com/repos/huggingface/datasets/issues/7644/events
https://github.com/huggingface/datasets/pull/7644
3,176,363,492
PR_kwDODunzps6cGGfW
7,644
fix sequence ci
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7644). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T17:10:30Z", "html_url": "https://github.com/huggingface/datasets/pull/7644#issuecomment-3005536697", "id": 3005536697, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7644", "node_id": "IC_kwDODunzps6zJNm5", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005536697/reactions" }, "updated_at": "2025-06-25T17:10:30Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005536697", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-25T17:07:55Z
2025-06-25T17:10:30Z
2025-06-25T17:08:01Z
MEMBER
null
null
null
fix error from https://github.com/huggingface/datasets/pull/7643
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7644/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7644/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7644.diff", "html_url": "https://github.com/huggingface/datasets/pull/7644", "merged_at": "2025-06-25T17:08:01Z", "patch_url": "https://github.com/huggingface/datasets/pull/7644.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7644" }
2025-06-25T17:07:55Z
2025-06-25T17:08:01Z
0:00:06
true
https://api.github.com/repos/huggingface/datasets/issues/7646
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7646/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7646/comments
https://api.github.com/repos/huggingface/datasets/issues/7646/events
https://github.com/huggingface/datasets/pull/7646
3,178,036,854
PR_kwDODunzps6cLhrM
7,646
Introduces automatic subset-level grouping for folder-based dataset builders #7066
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "It adds automatic grouping of files into subsets based on their root name (e.g., `train0.jsonl`, `train1.jsonl` → `\"train\"`), as discussed above. The logic is integrated into `FolderBasedBuilder` and is fully tested + documented.\r\n\r\nLet me know if any changes are needed — happy to iterate!", "created_at": "2025-06-26T08:26:14Z", "html_url": "https://github.com/huggingface/datasets/pull/7646#issuecomment-3007638551", "id": 3007638551, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7646", "node_id": "IC_kwDODunzps6zROwX", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007638551/reactions" }, "updated_at": "2025-06-26T08:26:14Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007638551", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "Hi ! I believe the subsets need to be instantiated here as `configs` - not `splits` (which are meant for train/validation/test):\r\n\r\nhttps://github.com/huggingface/datasets/blob/ef762e664a2a1675368ed7a203b0ac8cecca6e19/src/datasets/load.py#L647-L662\r\n\r\nAlso the subset names should probably be inferred only from the parquet/csv/json files and not from png/jpeg/wav/mp4 etc. WDYT ?", "created_at": "2025-06-26T14:02:38Z", "html_url": "https://github.com/huggingface/datasets/pull/7646#issuecomment-3008614688", "id": 3008614688, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7646", "node_id": "IC_kwDODunzps6zU9Eg", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3008614688/reactions" }, "updated_at": "2025-06-26T14:02:38Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3008614688", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> Hi ! I believe the subsets need to be instantiated here as `configs` - not `splits` (which are meant for train/validation/test):\r\n> \r\n> https://github.com/huggingface/datasets/blob/ef762e664a2a1675368ed7a203b0ac8cecca6e19/src/datasets/load.py#L647-L662\r\n> \r\n> Also the subset names should probably be inferred only from the parquet/csv/json files and not from png/jpeg/wav/mp4 etc. WDYT ?\r\n\r\nThanks a lot for the review!\r\n\r\nYou're absolutely right — treating subsets as separate configs instead of overloaded splits makes much more sense. If that approach sounds good to you, I can move the grouping logic to `load.py`, where configs are instantiated, and revise the PR to emit one `BuilderConfig` per grouped subset.\r\n\r\nAlso totally agree on limiting grouping to structured file types — I’d scope this to `.json`, `.jsonl`, `.csv`, and `.parquet`.\r\n\r\nLet me know if this direction sounds good, and I’ll get started on the changes right away!\r\n", "created_at": "2025-06-26T17:22:25Z", "html_url": "https://github.com/huggingface/datasets/pull/7646#issuecomment-3009210038", "id": 3009210038, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7646", "node_id": "IC_kwDODunzps6zXOa2", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3009210038/reactions" }, "updated_at": "2025-06-26T17:40:12Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3009210038", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi! @lhoestq!", "created_at": "2025-07-14T10:42:55Z", "html_url": "https://github.com/huggingface/datasets/pull/7646#issuecomment-3068916654", "id": 3068916654, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7646", "node_id": "IC_kwDODunzps626_Ou", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068916654/reactions" }, "updated_at": "2025-07-14T10:42:55Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068916654", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-26T07:01:37Z
2025-07-14T10:42:56Z
null
CONTRIBUTOR
null
null
null
Fixes #7066 This PR introduces automatic **subset-level grouping** for folder-based dataset builders by: 1. Adding a utility function `group_files_by_subset()` that clusters files by root name (ignoring digits and shard suffixes). 2. Integrating this logic into `FolderBasedBuilder._split_generators()` to yield one split per subset. 3. Adding unit tests for the grouping function. 4. Updating the documentation to describe this new behavior under `docs/source/repository_structure.mdx`. --- ### Motivation Datasets with files like: ``` train0.jsonl train1.jsonl animals.jsonl metadata.jsonl ``` will now be **automatically grouped** as: - `"train"` subset → `train0.jsonl`, `train1.jsonl` - `"animals"` subset → `animals.jsonl` - `"metadata"` subset → `metadata.jsonl` This enables structured multi-subset loading even when the dataset doesn't follow traditional `train/validation/test` split conventions. --- ### Files Changed - `src/datasets/data_files.py`: added `group_files_by_subset()` utility - `src/datasets/packaged_modules/folder_based_builder/folder_based_builder.py`: grouped files before yielding splits - `tests/test_data_files.py`: added unit test `test_group_files_by_subset` - `docs/source/repository_structure.mdx`: documented subset grouping for maintainers and users --- ### Benefits - More flexible and robust dataset split logic - Enables logical grouping of user-uploaded files without nested folder structure - Backward-compatible with all existing folder-based configs --- Ready for review ✅
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7646/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7646/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7646.diff", "html_url": "https://github.com/huggingface/datasets/pull/7646", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7646.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7646" }
2025-06-26T07:01:37Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7642
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7642/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7642/comments
https://api.github.com/repos/huggingface/datasets/issues/7642/events
https://github.com/huggingface/datasets/pull/7642
3,176,025,890
PR_kwDODunzps6cE_Wr
7,642
fix length for ci
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[]
2025-06-25T15:10:38Z
2025-06-25T15:11:53Z
2025-06-25T15:11:51Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7642/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7642/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7642.diff", "html_url": "https://github.com/huggingface/datasets/pull/7642", "merged_at": "2025-06-25T15:11:51Z", "patch_url": "https://github.com/huggingface/datasets/pull/7642.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7642" }
2025-06-25T15:10:38Z
2025-06-25T15:11:51Z
0:01:13
true
https://api.github.com/repos/huggingface/datasets/issues/7643
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7643/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7643/comments
https://api.github.com/repos/huggingface/datasets/issues/7643/events
https://github.com/huggingface/datasets/pull/7643
3,176,354,431
PR_kwDODunzps6cGEeK
7,643
Backward compat sequence instance
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7643). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T17:07:40Z", "html_url": "https://github.com/huggingface/datasets/pull/7643#issuecomment-3005524677", "id": 3005524677, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7643", "node_id": "IC_kwDODunzps6zJKrF", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005524677/reactions" }, "updated_at": "2025-06-25T17:07:40Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005524677", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-25T17:05:09Z
2025-06-25T17:07:40Z
2025-06-25T17:05:44Z
MEMBER
null
null
null
useful to still get `isinstance(Sequence(Value("int64")), Sequence)`for downstream libs like evaluate
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7643/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7643/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7643.diff", "html_url": "https://github.com/huggingface/datasets/pull/7643", "merged_at": "2025-06-25T17:05:43Z", "patch_url": "https://github.com/huggingface/datasets/pull/7643.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7643" }
2025-06-25T17:05:09Z
2025-06-25T17:05:44Z
0:00:35
true
https://api.github.com/repos/huggingface/datasets/issues/7641
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7641/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7641/comments
https://api.github.com/repos/huggingface/datasets/issues/7641/events
https://github.com/huggingface/datasets/pull/7641
3,175,953,405
PR_kwDODunzps6cEwUl
7,641
update docs and docstrings
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7641). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T14:51:46Z", "html_url": "https://github.com/huggingface/datasets/pull/7641#issuecomment-3005086578", "id": 3005086578, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7641", "node_id": "IC_kwDODunzps6zHfty", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005086578/reactions" }, "updated_at": "2025-06-25T14:51:46Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005086578", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-25T14:48:58Z
2025-06-25T14:51:46Z
2025-06-25T14:49:33Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7641/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7641/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7641.diff", "html_url": "https://github.com/huggingface/datasets/pull/7641", "merged_at": "2025-06-25T14:49:33Z", "patch_url": "https://github.com/huggingface/datasets/pull/7641.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7641" }
2025-06-25T14:48:58Z
2025-06-25T14:49:33Z
0:00:35
true
https://api.github.com/repos/huggingface/datasets/issues/7640
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7640/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7640/comments
https://api.github.com/repos/huggingface/datasets/issues/7640/events
https://github.com/huggingface/datasets/pull/7640
3,175,914,924
PR_kwDODunzps6cEofU
7,640
better features repr
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7640). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T14:40:16Z", "html_url": "https://github.com/huggingface/datasets/pull/7640#issuecomment-3005047069", "id": 3005047069, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7640", "node_id": "IC_kwDODunzps6zHWEd", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005047069/reactions" }, "updated_at": "2025-06-25T14:40:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3005047069", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-25T14:37:32Z
2025-06-25T14:46:47Z
2025-06-25T14:46:45Z
MEMBER
null
null
null
following the addition of List in #7634 before: ```python In [3]: ds.features Out[3]: {'json': {'id': Value(dtype='string', id=None), 'metadata:transcript': [{'end': Value(dtype='float64', id=None), 'start': Value(dtype='float64', id=None), 'transcript': Value(dtype='string', id=None), 'words': [{'end': Value(dtype='float64', id=None), 'score': Value(dtype='float64', id=None), 'start': Value(dtype='float64', id=None), 'word': Value(dtype='string', id=None)}]}], 'metadata:vad': [{'end': Value(dtype='float64', id=None), 'start': Value(dtype='float64', id=None)}]}, 'mp4': Value(dtype='binary', id=None), 'npz': {'boxes_and_keypoints:box': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'boxes_and_keypoints:is_valid_box': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None), 'boxes_and_keypoints:keypoints': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None), 'movement:EmotionArousalToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:EmotionValenceToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:FAUToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:FAUValue': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:alignment_head_rotation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:alignment_translation': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None), 'movement:emotion_arousal': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:emotion_scores': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:emotion_valence': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:expression': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:frame_latent': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:gaze_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:head_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:hypernet_features': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'movement:is_valid': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'smplh:body_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None), 'smplh:global_orient': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), 'smplh:is_valid': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None), 'smplh:left_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None), 'smplh:right_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None), 'smplh:translation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None)}, 'wav': Audio(sampling_rate=None, mono=True, decode=True, id=None), '__key__': Value(dtype='string', id=None), '__url__': Value(dtype='string', id=None)} ``` after: ```python In [3]: ds.features Out[3]: {'json': {'id': Value('string'), 'metadata:transcript': List({'end': Value('float64'), 'start': Value('float64'), 'transcript': Value('string'), 'words': List({'end': Value('float64'), 'score': Value('float64'), 'start': Value('float64'), 'word': Value('string')})}), 'metadata:vad': List({'end': Value('float64'), 'start': Value('float64')})}, 'mp4': Value('binary'), 'npz': {'boxes_and_keypoints:box': List(List(Value('float32'))), 'boxes_and_keypoints:is_valid_box': List(Value('bool')), 'boxes_and_keypoints:keypoints': List(List(List(Value('float32')))), 'movement:EmotionArousalToken': List(List(Value('float32'))), 'movement:EmotionValenceToken': List(List(Value('float32'))), 'movement:FAUToken': List(List(Value('float32'))), 'movement:FAUValue': List(List(Value('float32'))), 'movement:alignment_head_rotation': List(List(Value('float32'))), 'movement:alignment_translation': List(List(List(Value('float32')))), 'movement:emotion_arousal': List(List(Value('float32'))), 'movement:emotion_scores': List(List(Value('float32'))), 'movement:emotion_valence': List(List(Value('float32'))), 'movement:expression': List(List(Value('float32'))), 'movement:frame_latent': List(List(Value('float32'))), 'movement:gaze_encodings': List(List(Value('float32'))), 'movement:head_encodings': List(List(Value('float32'))), 'movement:hypernet_features': List(List(Value('float32'))), 'movement:is_valid': List(List(Value('float32'))), 'smplh:body_pose': List(List(List(Value('float32')))), 'smplh:global_orient': List(List(Value('float32'))), 'smplh:is_valid': List(Value('bool')), 'smplh:left_hand_pose': List(List(List(Value('float32')))), 'smplh:right_hand_pose': List(List(List(Value('float32')))), 'smplh:translation': List(List(Value('float32')))}, 'wav': Audio(sampling_rate=None, decode=True, stream_index=None), '__key__': Value('string'), '__url__': Value('string')} ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7640/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7640/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7640.diff", "html_url": "https://github.com/huggingface/datasets/pull/7640", "merged_at": "2025-06-25T14:46:45Z", "patch_url": "https://github.com/huggingface/datasets/pull/7640.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7640" }
2025-06-25T14:37:32Z
2025-06-25T14:46:45Z
0:09:13
true
https://api.github.com/repos/huggingface/datasets/issues/7639
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7639/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7639/comments
https://api.github.com/repos/huggingface/datasets/issues/7639/events
https://github.com/huggingface/datasets/pull/7639
3,175,616,169
PR_kwDODunzps6cDoAf
7,639
fix save_infos
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7639). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T13:19:33Z", "html_url": "https://github.com/huggingface/datasets/pull/7639#issuecomment-3004749032", "id": 3004749032, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7639", "node_id": "IC_kwDODunzps6zGNTo", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3004749032/reactions" }, "updated_at": "2025-06-25T13:19:33Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3004749032", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-25T13:16:26Z
2025-06-25T13:19:33Z
2025-06-25T13:16:33Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7639/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7639/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7639.diff", "html_url": "https://github.com/huggingface/datasets/pull/7639", "merged_at": "2025-06-25T13:16:33Z", "patch_url": "https://github.com/huggingface/datasets/pull/7639.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7639" }
2025-06-25T13:16:26Z
2025-06-25T13:16:33Z
0:00:07
true
https://api.github.com/repos/huggingface/datasets/issues/7638
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7638/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7638/comments
https://api.github.com/repos/huggingface/datasets/issues/7638/events
https://github.com/huggingface/datasets/pull/7638
3,172,645,391
PR_kwDODunzps6b5vpZ
7,638
Add ignore_decode_errors option to Image feature for robust decoding #7612
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "cc @lhoestq", "created_at": "2025-06-24T16:48:03Z", "html_url": "https://github.com/huggingface/datasets/pull/7638#issuecomment-3001189357", "id": 3001189357, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7638", "node_id": "IC_kwDODunzps6y4oPt", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3001189357/reactions" }, "updated_at": "2025-06-24T16:48:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3001189357", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I think splitting the error handling for the main image decoding process and the metadata decoding process is possibly a bit nicer, as some images do render correctly, but their metadata might be invalid and cause the pipeline to fail, which I've encountered recently as in #7668.\r\n\r\nThe [`decode_image`](https://docs.pytorch.org/vision/main/generated/torchvision.io.decode_image.html) function in `torchvision` handles similar cases by using the `apply_exif_orientation` flag to turn off the exif metadata processing entirely.", "created_at": "2025-07-03T12:35:39Z", "html_url": "https://github.com/huggingface/datasets/pull/7638#issuecomment-3032106052", "id": 3032106052, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7638", "node_id": "IC_kwDODunzps60ukRE", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032106052/reactions" }, "updated_at": "2025-07-03T12:39:23Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032106052", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/30485844?v=4", "events_url": "https://api.github.com/users/Seas0/events{/privacy}", "followers_url": "https://api.github.com/users/Seas0/followers", "following_url": "https://api.github.com/users/Seas0/following{/other_user}", "gists_url": "https://api.github.com/users/Seas0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Seas0", "id": 30485844, "login": "Seas0", "node_id": "MDQ6VXNlcjMwNDg1ODQ0", "organizations_url": "https://api.github.com/users/Seas0/orgs", "received_events_url": "https://api.github.com/users/Seas0/received_events", "repos_url": "https://api.github.com/users/Seas0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Seas0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Seas0/subscriptions", "type": "User", "url": "https://api.github.com/users/Seas0", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> I think splitting the error handling for the main image decoding process and the metadata decoding process is possibly a bit nicer, as some images do render correctly, but their metadata might be invalid and cause the pipeline to fail, which I've encountered recently as in #7668.\r\n> The [`decode_image`](https://docs.pytorch.org/vision/main/generated/torchvision.io.decode_image.html) function in `torchvision` handles similar cases by using the `apply_exif_orientation` flag to turn off the exif metadata processing entirely.\r\n \r\n @lhoestq & @Seas0 — that makes total sense.\r\n \r\nCurrently, if EXIF metadata like `.getexif()` fails (due to malformed tags), the whole image gets dropped even if it renders correctly — not ideal.\r\n \r\nTo address this, I'm planning to split the EXIF handling into a separate `try/except` block, like:\r\n```python\r\ntry:\r\n exif = image.getexif()\r\n if exif.get(PIL.Image.ExifTags.Base.Orientation) is not None:\r\n image = PIL.ImageOps.exif_transpose(image)\r\nexcept Exception as exif_err:\r\n if self.ignore_decode_errors:\r\n warnings.warn(f\"[Image.decode_example] Skipped EXIF metadata: {exif_err}\")\r\n else:\r\n raise\r\n```\r\n\r\nSo that, Valid but EXIF-broken images will still be returned & EXIF failures will be skipped only if ignore_decode_errors=True. \r\n\r\nSounds good??", "created_at": "2025-07-03T16:34:52Z", "html_url": "https://github.com/huggingface/datasets/pull/7638#issuecomment-3032888234", "id": 3032888234, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7638", "node_id": "IC_kwDODunzps60xjOq", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032888234/reactions" }, "updated_at": "2025-07-03T16:37:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3032888234", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "With the recent EXIF decoding isolation logic added, this PR now fully addresses:\r\n\r\n- ✅ #7612 – Robust iteration over corrupt samples (especially useful in `.streaming=True`)\r\n- ✅ #7632 – Graceful handling of invalid image files when using `cast_column(..., Image(...))`\r\n- ✅ #7668 – Broken EXIF metadata no longer crashes decoding; images are returned if usable\r\n\r\nAll decoding errors (including `.getexif()` and image file loading) are now skipped with a warning when `ignore_decode_errors=True`. This enables safe, scalable image preprocessing pipelines.", "created_at": "2025-07-04T07:07:29Z", "html_url": "https://github.com/huggingface/datasets/pull/7638#issuecomment-3034769764", "id": 3034769764, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7638", "node_id": "IC_kwDODunzps604ulk", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034769764/reactions" }, "updated_at": "2025-07-04T07:07:29Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034769764", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-24T16:47:51Z
2025-07-04T07:07:30Z
null
CONTRIBUTOR
null
null
null
This PR implements support for robust image decoding in the `Image` feature, as discussed in issue #7612. ## 🔧 What was added - A new boolean field: `ignore_decode_errors` (default: `False`) - If set to `True`, any exceptions during decoding will be caught, and `None` will be returned instead of raising an error ```python features = Features({ "image": Image(decode=True, ignore_decode_errors=True), }) ```` This enables robust iteration over potentially corrupted datasets — especially useful when streaming datasets like WebDataset or image-heavy public sets where sample corruption is common. ## 🧪 Behavior * If `ignore_decode_errors=False` (default), decoding behaves exactly as before * If `True`, decoding errors are caught, and a warning is emitted: ``` [Image.decode_example] Skipped corrupted image: ... ``` ## 🧵 Linked issue Closes #7612 Let me know if you'd like a follow-up test PR. Happy to write one!
null
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7638/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7638/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7638.diff", "html_url": "https://github.com/huggingface/datasets/pull/7638", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7638.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7638" }
2025-06-24T16:47:51Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7637
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7637/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7637/comments
https://api.github.com/repos/huggingface/datasets/issues/7637/events
https://github.com/huggingface/datasets/issues/7637
3,171,883,522
I_kwDODunzps69DxoC
7,637
Introduce subset_name as an alias of config_name
{ "avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4", "events_url": "https://api.github.com/users/albertvillanova/events{/privacy}", "followers_url": "https://api.github.com/users/albertvillanova/followers", "following_url": "https://api.github.com/users/albertvillanova/following{/other_user}", "gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/albertvillanova", "id": 8515462, "login": "albertvillanova", "node_id": "MDQ6VXNlcjg1MTU0NjI=", "organizations_url": "https://api.github.com/users/albertvillanova/orgs", "received_events_url": "https://api.github.com/users/albertvillanova/received_events", "repos_url": "https://api.github.com/users/albertvillanova/repos", "site_admin": false, "starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions", "type": "User", "url": "https://api.github.com/users/albertvillanova", "user_view_type": "public" }
[ { "color": "a2eeef", "default": true, "description": "New feature or request", "id": 1935892871, "name": "enhancement", "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement" } ]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "I second this! When you come from the Hub, the intuitive question is \"how do I set the subset name\", and it's not easily answered from the docs: `subset_name` would answer this directly.", "created_at": "2025-06-24T12:52:48Z", "html_url": "https://github.com/huggingface/datasets/issues/7637#issuecomment-3000357031", "id": 3000357031, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7637", "node_id": "IC_kwDODunzps6y1dCn", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3000357031/reactions" }, "updated_at": "2025-06-24T12:53:03Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3000357031", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/69208727?v=4", "events_url": "https://api.github.com/users/aymeric-roucher/events{/privacy}", "followers_url": "https://api.github.com/users/aymeric-roucher/followers", "following_url": "https://api.github.com/users/aymeric-roucher/following{/other_user}", "gists_url": "https://api.github.com/users/aymeric-roucher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aymeric-roucher", "id": 69208727, "login": "aymeric-roucher", "node_id": "MDQ6VXNlcjY5MjA4NzI3", "organizations_url": "https://api.github.com/users/aymeric-roucher/orgs", "received_events_url": "https://api.github.com/users/aymeric-roucher/received_events", "repos_url": "https://api.github.com/users/aymeric-roucher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aymeric-roucher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aymeric-roucher/subscriptions", "type": "User", "url": "https://api.github.com/users/aymeric-roucher", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "I've submitted PR [#7657](https://github.com/huggingface/datasets/pull/7657) to introduce subset_name as a user-facing alias for name in load_dataset, keeping terminology consistent with the Hub UI (“Subset”). It’s fully backward-compatible and includes a conflict check.\n\nLet me know if you'd like me to include tests as part of the PR — happy to add them if needed!", "created_at": "2025-06-29T10:55:54Z", "html_url": "https://github.com/huggingface/datasets/issues/7637#issuecomment-3016588856", "id": 3016588856, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7637", "node_id": "IC_kwDODunzps6zzX44", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016588856/reactions" }, "updated_at": "2025-06-29T10:55:54Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016588856", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "The main usage is as a positional argument anyway, so I wouldn't necessarily agree that we need an alias (with the risk of confusing users). But happy to have more mentions in the docs of syntaxes like `load_dataset(\"dataset_name\", \"subset_name\")`", "created_at": "2025-07-01T14:03:45Z", "html_url": "https://github.com/huggingface/datasets/issues/7637#issuecomment-3024175097", "id": 3024175097, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7637", "node_id": "IC_kwDODunzps60QT_5", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024175097/reactions" }, "updated_at": "2025-07-01T14:03:45Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024175097", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "> The main usage is as a positional argument anyway, so I wouldn't necessarily agree that we need an alias (with the risk of confusing users). But happy to have more mentions in the docs of syntaxes like `load_dataset(\"dataset_name\", \"subset_name\")`\n\nThanks @lhoestq, totally fair point — especially with positional usage being the norm. I’m happy to align with the team’s direction here. If you'd prefer, I can update this PR to shift the focus to documentation/examples (e.g., showing \"subset_name\" as the second arg).", "created_at": "2025-07-01T16:08:33Z", "html_url": "https://github.com/huggingface/datasets/issues/7637#issuecomment-3024661282", "id": 3024661282, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7637", "node_id": "IC_kwDODunzps60SKsi", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024661282/reactions" }, "updated_at": "2025-07-01T16:08:33Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3024661282", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-24T12:49:01Z
2025-07-01T16:08:33Z
null
MEMBER
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Feature request Add support for `subset_name` as an alias for `config_name` in the datasets library and related tools (such as loading scripts, documentation, and metadata). ### Motivation The Hugging Face Hub dataset viewer displays a column named **"Subset"**, which refers to what is currently technically called config_name in the datasets library. This inconsistency has caused confusion for many users, especially those unfamiliar with the internal terminology. I have repeatedly received questions from users trying to understand what "config" means, and why it doesn’t match what they see as "subset" on the Hub. Renaming everything to `subset_name` might be too disruptive, but introducing subset_name as a clear alias for config_name could significantly improve user experience without breaking backward compatibility. This change would: - Align terminology across the Hub UI and datasets codebase - Reduce user confusion, especially for newcomers - Make documentation and examples more intuitive
null
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/7637/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7637/timeline
null
null
null
null
2025-06-24T12:49:01Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7636
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7636/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7636/comments
https://api.github.com/repos/huggingface/datasets/issues/7636/events
https://github.com/huggingface/datasets/issues/7636
3,170,878,167
I_kwDODunzps68_8LX
7,636
"open" in globals()["__builtins__"], an error occurs: "TypeError: argument of type 'module' is not iterable"
{ "avatar_url": "https://avatars.githubusercontent.com/u/51187979?v=4", "events_url": "https://api.github.com/users/kuanyan9527/events{/privacy}", "followers_url": "https://api.github.com/users/kuanyan9527/followers", "following_url": "https://api.github.com/users/kuanyan9527/following{/other_user}", "gists_url": "https://api.github.com/users/kuanyan9527/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuanyan9527", "id": 51187979, "login": "kuanyan9527", "node_id": "MDQ6VXNlcjUxMTg3OTc5", "organizations_url": "https://api.github.com/users/kuanyan9527/orgs", "received_events_url": "https://api.github.com/users/kuanyan9527/received_events", "repos_url": "https://api.github.com/users/kuanyan9527/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuanyan9527/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuanyan9527/subscriptions", "type": "User", "url": "https://api.github.com/users/kuanyan9527", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "@kuanyan9527 Your query is indeed valid. Following could be its reasoning:\n\nQuoting from https://stackoverflow.com/a/11181607:\n\"By default, when in the `__main__` module,` __builtins__` is the built-in module `__builtin__` (note: no 's'); when in any other module, `__builtins__` is an alias for the dictionary of the `__builtin__` module itself.\"\n\nCan you confirm if you are running the snippet `print(\"open\" in globals()[\"__builtins__\"])` in the default? In that case, as expected, `__builtins__` is a module which is causing the error. But in the codebase, the class `patch_submodule`, is primarily used in the second circumstance, where it acts as a dictionary. Hence causing the code to function successfully.\n\nHope this helps.", "created_at": "2025-06-27T17:38:28Z", "html_url": "https://github.com/huggingface/datasets/issues/7636#issuecomment-3013895491", "id": 3013895491, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7636", "node_id": "IC_kwDODunzps6zpGVD", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013895491/reactions" }, "updated_at": "2025-06-27T17:38:28Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013895491", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/106822488?v=4", "events_url": "https://api.github.com/users/SP1029/events{/privacy}", "followers_url": "https://api.github.com/users/SP1029/followers", "following_url": "https://api.github.com/users/SP1029/following{/other_user}", "gists_url": "https://api.github.com/users/SP1029/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SP1029", "id": 106822488, "login": "SP1029", "node_id": "U_kgDOBl37WA", "organizations_url": "https://api.github.com/users/SP1029/orgs", "received_events_url": "https://api.github.com/users/SP1029/received_events", "repos_url": "https://api.github.com/users/SP1029/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SP1029/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SP1029/subscriptions", "type": "User", "url": "https://api.github.com/users/SP1029", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@kuanyan9527 Are there any more queries in this regards, else please feel free to close the issue.\nThank you.", "created_at": "2025-06-30T15:40:57Z", "html_url": "https://github.com/huggingface/datasets/issues/7636#issuecomment-3019686005", "id": 3019686005, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7636", "node_id": "IC_kwDODunzps6z_MB1", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3019686005/reactions" }, "updated_at": "2025-06-30T15:40:57Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3019686005", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/106822488?v=4", "events_url": "https://api.github.com/users/SP1029/events{/privacy}", "followers_url": "https://api.github.com/users/SP1029/followers", "following_url": "https://api.github.com/users/SP1029/following{/other_user}", "gists_url": "https://api.github.com/users/SP1029/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SP1029", "id": 106822488, "login": "SP1029", "node_id": "U_kgDOBl37WA", "organizations_url": "https://api.github.com/users/SP1029/orgs", "received_events_url": "https://api.github.com/users/SP1029/received_events", "repos_url": "https://api.github.com/users/SP1029/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SP1029/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SP1029/subscriptions", "type": "User", "url": "https://api.github.com/users/SP1029", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Your answer is very important to me,thanks.", "created_at": "2025-07-01T01:54:05Z", "html_url": "https://github.com/huggingface/datasets/issues/7636#issuecomment-3021429341", "id": 3021429341, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7636", "node_id": "IC_kwDODunzps60F1pd", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3021429341/reactions" }, "updated_at": "2025-07-01T01:54:05Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3021429341", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/51187979?v=4", "events_url": "https://api.github.com/users/kuanyan9527/events{/privacy}", "followers_url": "https://api.github.com/users/kuanyan9527/followers", "following_url": "https://api.github.com/users/kuanyan9527/following{/other_user}", "gists_url": "https://api.github.com/users/kuanyan9527/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuanyan9527", "id": 51187979, "login": "kuanyan9527", "node_id": "MDQ6VXNlcjUxMTg3OTc5", "organizations_url": "https://api.github.com/users/kuanyan9527/orgs", "received_events_url": "https://api.github.com/users/kuanyan9527/received_events", "repos_url": "https://api.github.com/users/kuanyan9527/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuanyan9527/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuanyan9527/subscriptions", "type": "User", "url": "https://api.github.com/users/kuanyan9527", "user_view_type": "public" } }, { "author_association": "NONE", "body": "I encountered this error when running datasets with pypy,\n`TypeError: argument of type 'module' is not iterable` in [src/datasets/utils/patching.py#L96](https://github.com/huggingface/datasets/blob/3.6.0/src/datasets/utils/patching.py#L96)\nby modifying `globals()[\"__builtins__\"]` to `builtins.__dict__`, importing via `import builtins`.\nCan this be applied to the community?", "created_at": "2025-07-10T04:13:16Z", "html_url": "https://github.com/huggingface/datasets/issues/7636#issuecomment-3055318364", "id": 3055318364, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7636", "node_id": "IC_kwDODunzps62HHVc", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3055318364/reactions" }, "updated_at": "2025-07-10T04:13:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3055318364", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/51187979?v=4", "events_url": "https://api.github.com/users/kuanyan9527/events{/privacy}", "followers_url": "https://api.github.com/users/kuanyan9527/followers", "following_url": "https://api.github.com/users/kuanyan9527/following{/other_user}", "gists_url": "https://api.github.com/users/kuanyan9527/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuanyan9527", "id": 51187979, "login": "kuanyan9527", "node_id": "MDQ6VXNlcjUxMTg3OTc5", "organizations_url": "https://api.github.com/users/kuanyan9527/orgs", "received_events_url": "https://api.github.com/users/kuanyan9527/received_events", "repos_url": "https://api.github.com/users/kuanyan9527/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuanyan9527/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuanyan9527/subscriptions", "type": "User", "url": "https://api.github.com/users/kuanyan9527", "user_view_type": "public" } } ]
2025-06-24T08:09:39Z
2025-07-10T04:13:16Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
When I run the following code, an error occurs: "TypeError: argument of type 'module' is not iterable" ```python print("open" in globals()["__builtins__"]) ``` Traceback (most recent call last): File "./main.py", line 2, in <module> print("open" in globals()["__builtins__"]) ^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'module' is not iterable But this code runs fine in datasets, I don't understand why [src/datasets/utils/patching.py#L96](https://github.com/huggingface/datasets/blob/3.6.0/src/datasets/utils/patching.py#L96)
{ "avatar_url": "https://avatars.githubusercontent.com/u/51187979?v=4", "events_url": "https://api.github.com/users/kuanyan9527/events{/privacy}", "followers_url": "https://api.github.com/users/kuanyan9527/followers", "following_url": "https://api.github.com/users/kuanyan9527/following{/other_user}", "gists_url": "https://api.github.com/users/kuanyan9527/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuanyan9527", "id": 51187979, "login": "kuanyan9527", "node_id": "MDQ6VXNlcjUxMTg3OTc5", "organizations_url": "https://api.github.com/users/kuanyan9527/orgs", "received_events_url": "https://api.github.com/users/kuanyan9527/received_events", "repos_url": "https://api.github.com/users/kuanyan9527/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuanyan9527/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuanyan9527/subscriptions", "type": "User", "url": "https://api.github.com/users/kuanyan9527", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7636/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7636/timeline
null
reopened
null
null
2025-06-24T08:09:39Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7634
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7634/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7634/comments
https://api.github.com/repos/huggingface/datasets/issues/7634/events
https://github.com/huggingface/datasets/pull/7634
3,169,389,653
PR_kwDODunzps6buyij
7,634
Replace Sequence by List
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7634). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-23T20:38:32Z", "html_url": "https://github.com/huggingface/datasets/pull/7634#issuecomment-2997875449", "id": 2997875449, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7634", "node_id": "IC_kwDODunzps6yr_L5", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2997875449/reactions" }, "updated_at": "2025-06-23T20:38:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2997875449", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-23T20:35:48Z
2025-06-25T13:59:13Z
2025-06-25T13:59:11Z
MEMBER
null
null
null
Sequence is just a utility that we need to keep for backward compatibility. And `[ ]` was used instead but doesn't allow passing the length of the list. This PR removes most mentions of Sequence and usage of `[ ]` and defines a proper List type instead. before: `Sequence(Value("int64"))` or `[Value("int64")]` now: `List(Value("int64"))` This PR conserves full backward compatibility. And it's a good occasion with the release of 4.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7634/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7634/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7634.diff", "html_url": "https://github.com/huggingface/datasets/pull/7634", "merged_at": "2025-06-25T13:59:11Z", "patch_url": "https://github.com/huggingface/datasets/pull/7634.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7634" }
2025-06-23T20:35:48Z
2025-06-25T13:59:11Z
1 day, 17:23:23
true
https://api.github.com/repos/huggingface/datasets/issues/7635
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7635/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7635/comments
https://api.github.com/repos/huggingface/datasets/issues/7635/events
https://github.com/huggingface/datasets/pull/7635
3,170,486,408
PR_kwDODunzps6bybOe
7,635
Fix: Preserve float columns in JSON loader when values are integer-like (e.g. 0.0, 1.0)
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-24T06:16:48Z
2025-06-24T06:16:48Z
null
CONTRIBUTOR
null
null
null
This PR fixes a bug in the JSON loader where columns containing float values like `[0.0, 1.0, 2.0]` were being implicitly coerced to `int`, due to pandas or Arrow type inference. This caused issues downstream in statistics computation (e.g., dataset-viewer) where such columns were incorrectly labeled as `"int"` instead of `"float"`. ### 🔍 What was happening: When the JSON loader falls back to `pandas_read_json()` (after `pa.read_json()` fails), pandas/Arrow can coerce float values to integers if all values are integer-like (e.g., `0.0 == 0`). ### ✅ What this PR does: - Adds a check in the fallback path of `_generate_tables()` - Ensures that columns made entirely of floats are preserved as `"float64"` even if they are integer-like (e.g. `0.0`, `1.0`) - This prevents loss of float semantics when creating the Arrow table ### 🧪 Reproducible Example: ```json [{"col": 0.0}, {"col": 1.0}, {"col": 2.0}] ```` Previously loaded as: * `int` Now correctly loaded as: * `float` Fixes #6937
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7635/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7635/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7635.diff", "html_url": "https://github.com/huggingface/datasets/pull/7635", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7635.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7635" }
2025-06-24T06:16:48Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7633
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7633/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7633/comments
https://api.github.com/repos/huggingface/datasets/issues/7633/events
https://github.com/huggingface/datasets/issues/7633
3,168,399,637
I_kwDODunzps682fEV
7,633
Proposal: Small Tamil Discourse Coherence Dataset.
{ "avatar_url": "https://avatars.githubusercontent.com/u/66418501?v=4", "events_url": "https://api.github.com/users/bikkiNitSrinagar/events{/privacy}", "followers_url": "https://api.github.com/users/bikkiNitSrinagar/followers", "following_url": "https://api.github.com/users/bikkiNitSrinagar/following{/other_user}", "gists_url": "https://api.github.com/users/bikkiNitSrinagar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bikkiNitSrinagar", "id": 66418501, "login": "bikkiNitSrinagar", "node_id": "MDQ6VXNlcjY2NDE4NTAx", "organizations_url": "https://api.github.com/users/bikkiNitSrinagar/orgs", "received_events_url": "https://api.github.com/users/bikkiNitSrinagar/received_events", "repos_url": "https://api.github.com/users/bikkiNitSrinagar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bikkiNitSrinagar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bikkiNitSrinagar/subscriptions", "type": "User", "url": "https://api.github.com/users/bikkiNitSrinagar", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-23T14:24:40Z
2025-06-23T14:24:40Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
I’m a beginner from NIT Srinagar proposing a dataset of 50 Tamil text pairs for discourse coherence (coherent/incoherent labels) to support NLP research in low-resource languages. - Size: 50 samples - Format: CSV with columns (text1, text2, label) - Use case: Training NLP models for coherence I’ll use GitHub’s web editor and Google Colab. Please confirm if this fits.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7633/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7633/timeline
null
null
null
null
2025-06-23T14:24:40Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7632
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7632/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7632/comments
https://api.github.com/repos/huggingface/datasets/issues/7632/events
https://github.com/huggingface/datasets/issues/7632
3,168,283,589
I_kwDODunzps682CvF
7,632
Graceful Error Handling for cast_column("image", Image(decode=True)) in Hugging Face Datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/37377515?v=4", "events_url": "https://api.github.com/users/ganiket19/events{/privacy}", "followers_url": "https://api.github.com/users/ganiket19/followers", "following_url": "https://api.github.com/users/ganiket19/following{/other_user}", "gists_url": "https://api.github.com/users/ganiket19/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ganiket19", "id": 37377515, "login": "ganiket19", "node_id": "MDQ6VXNlcjM3Mzc3NTE1", "organizations_url": "https://api.github.com/users/ganiket19/orgs", "received_events_url": "https://api.github.com/users/ganiket19/received_events", "repos_url": "https://api.github.com/users/ganiket19/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ganiket19/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ganiket19/subscriptions", "type": "User", "url": "https://api.github.com/users/ganiket19", "user_view_type": "public" }
[ { "color": "a2eeef", "default": true, "description": "New feature or request", "id": 1935892871, "name": "enhancement", "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement" } ]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Hi! This is now handled in PR #7638", "created_at": "2025-07-04T07:08:11Z", "html_url": "https://github.com/huggingface/datasets/issues/7632#issuecomment-3034771329", "id": 3034771329, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7632", "node_id": "IC_kwDODunzps604u-B", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034771329/reactions" }, "updated_at": "2025-07-04T07:08:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3034771329", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Thank you for implementing the suggestion it would be great help in our use case. ", "created_at": "2025-07-08T06:52:53Z", "html_url": "https://github.com/huggingface/datasets/issues/7632#issuecomment-3047598129", "id": 3047598129, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7632", "node_id": "IC_kwDODunzps61pqgx", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3047598129/reactions" }, "updated_at": "2025-07-08T06:52:53Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3047598129", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/37377515?v=4", "events_url": "https://api.github.com/users/ganiket19/events{/privacy}", "followers_url": "https://api.github.com/users/ganiket19/followers", "following_url": "https://api.github.com/users/ganiket19/following{/other_user}", "gists_url": "https://api.github.com/users/ganiket19/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ganiket19", "id": 37377515, "login": "ganiket19", "node_id": "MDQ6VXNlcjM3Mzc3NTE1", "organizations_url": "https://api.github.com/users/ganiket19/orgs", "received_events_url": "https://api.github.com/users/ganiket19/received_events", "repos_url": "https://api.github.com/users/ganiket19/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ganiket19/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ganiket19/subscriptions", "type": "User", "url": "https://api.github.com/users/ganiket19", "user_view_type": "public" } } ]
2025-06-23T13:49:24Z
2025-07-08T06:52:53Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Feature request Currently, when using dataset.cast_column("image", Image(decode=True)), the pipeline throws an error and halts if any image in the dataset is invalid or corrupted (e.g., truncated files, incorrect formats, unreachable URLs). This behavior disrupts large-scale processing where a few faulty samples are common. reference : https://discuss.huggingface.co/t/handle-errors-when-loading-images-404-corrupted-etc/50318/5 https://discuss.huggingface.co/t/handling-non-existing-url-in-image-dataset-while-cast-column/69185 Proposed Feature Introduce a mechanism (e.g., a continue_on_error=True flag or global error handling mode) in Image(decode=True) that: Skips invalid images and sets them as None, or Logs the error but allows the rest of the dataset to be processed without interruption. Example Usage from datasets import load_dataset, Image dataset = load_dataset("my_dataset") dataset = dataset.cast_column("image", Image(decode=True, continue_on_error=True)) Benefits Ensures robust large-scale image dataset processing. Improves developer productivity by avoiding custom retry/error-handling code. Aligns with best practices in dataset preprocessing pipelines that tolerate minor data corruption. Potential Implementation Options Internally wrap the decoding in a try/except block. Return None or a placeholder on failure. Optionally allow custom error callbacks or logging. ### Motivation Robustness: Large-scale image datasets often contain a small fraction of corrupt files or unreachable URLs. Halting on the first error forces users to write custom workarounds or preprocess externally. Simplicity: A built-in flag removes boilerplate try/except logic around every decode step. Performance: Skipping invalid samples inline is more efficient than a two-pass approach (filter then decode). ### Your contribution 1. API Change Extend datasets.features.Image(decode=True) to accept continue_on_error: bool = False. 2. Behavior If continue_on_error=False (default), maintain current behavior: any decode error raises an exception. If continue_on_error=True, wrap decode logic in try/except: On success: store the decoded image. On failure: log a warning (e.g., via logging.warning) and set the field to None (or a sentinel value). 3. Optional Enhancements Allow a callback hook: Image(decode=True, continue_on_error=True, on_error=lambda idx, url, exc: ...) Emit metrics or counts of skipped images.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7632/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7632/timeline
null
null
null
null
2025-06-23T13:49:24Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7631
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7631/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7631/comments
https://api.github.com/repos/huggingface/datasets/issues/7631/events
https://github.com/huggingface/datasets/pull/7631
3,165,127,657
PR_kwDODunzps6bgwOB
7,631
Pass user-agent from DownloadConfig into fsspec storage_options
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "- This PR assumes that `HfFileSystem` in `huggingface_hub` supports receiving `headers` in `storage_options`. If not, a follow-up PR can be opened to add this support to `HfFileSystem.__init__`.\r\n- No test was added for this since it’s a config passthrough. If needed, I’d be happy to add one.", "created_at": "2025-06-21T14:25:28Z", "html_url": "https://github.com/huggingface/datasets/pull/7631#issuecomment-2993608438", "id": 2993608438, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7631", "node_id": "IC_kwDODunzps6ybtb2", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2993608438/reactions" }, "updated_at": "2025-06-21T14:25:28Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2993608438", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-21T14:22:25Z
2025-06-21T14:25:28Z
null
CONTRIBUTOR
null
null
null
Fixes part of issue #6046 ### Problem The `user-agent` defined in `DownloadConfig` was not passed down to fsspec-based filesystems like `HfFileSystem`, which prevents proper identification/tracking of client requests. ### Solution Added support for injecting the `user-agent` into `storage_options["headers"]` within `_prepare_single_hop_path_and_storage_options()` based on the `protocol`. Now, when using `hf://`, `http://`, or `https://`, the custom user-agent is passed automatically. ### Code Location Modified: - `src/datasets/utils/file_utils.py` Used `get_datasets_user_agent(...)` to ensure proper formatting and fallback logic.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7631/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7631/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7631.diff", "html_url": "https://github.com/huggingface/datasets/pull/7631", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7631.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7631" }
2025-06-21T14:22:25Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7630
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7630/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7630/comments
https://api.github.com/repos/huggingface/datasets/issues/7630/events
https://github.com/huggingface/datasets/issues/7630
3,164,650,900
I_kwDODunzps68oL2U
7,630
[bug] resume from ckpt skips samples if .map is applied
{ "avatar_url": "https://avatars.githubusercontent.com/u/23004953?v=4", "events_url": "https://api.github.com/users/felipemello1/events{/privacy}", "followers_url": "https://api.github.com/users/felipemello1/followers", "following_url": "https://api.github.com/users/felipemello1/following{/other_user}", "gists_url": "https://api.github.com/users/felipemello1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/felipemello1", "id": 23004953, "login": "felipemello1", "node_id": "MDQ6VXNlcjIzMDA0OTUz", "organizations_url": "https://api.github.com/users/felipemello1/orgs", "received_events_url": "https://api.github.com/users/felipemello1/received_events", "repos_url": "https://api.github.com/users/felipemello1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/felipemello1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/felipemello1/subscriptions", "type": "User", "url": "https://api.github.com/users/felipemello1", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Thanks for reporting this — it looks like a separate but related bug to #7538, which involved sample loss when resuming an `IterableDataset` wrapped in `FormattedExamplesIterable`. That was resolved in #7553 by re-batching the iterable to track offset correctly.\n\nIn this case, the issue seems to arise specifically from applying `.map()` before sharding and checkpointing. That wraps the iterable in `MappedExamplesIterable`, which may not preserve or propagate `shard_example_idx` correctly across `.state_dict()` and `.load_state_dict()` calls.\n\nYou can see that without `.map()`, resume works fine — but with `.map()`, it jumps from sample 9 to 50, skipping the rest of the shard.\n\nI'll dig deeper into how `MappedExamplesIterable` manages offsets and whether it supports proper checkpoint resumption. If not, we might need a fix similar to the one in #7553, or a wrapper to preserve resume metadata.\n\nHappy to help fix it!\n", "created_at": "2025-06-29T07:40:05Z", "html_url": "https://github.com/huggingface/datasets/issues/7630#issuecomment-3016382129", "id": 3016382129, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7630", "node_id": "IC_kwDODunzps6zylax", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016382129/reactions" }, "updated_at": "2025-06-29T07:51:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016382129", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Let me know if a dedicated test case is required — happy to add one!", "created_at": "2025-06-29T07:51:32Z", "html_url": "https://github.com/huggingface/datasets/issues/7630#issuecomment-3016387412", "id": 3016387412, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7630", "node_id": "IC_kwDODunzps6zymtU", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016387412/reactions" }, "updated_at": "2025-06-29T07:51:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016387412", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-21T01:50:03Z
2025-06-29T07:51:32Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug resume from ckpt skips samples if .map is applied Maybe related: https://github.com/huggingface/datasets/issues/7538 ### Steps to reproduce the bug ```python from datasets import Dataset from datasets.distributed import split_dataset_by_node # Create dataset with map transformation def create_dataset(): ds = Dataset.from_dict({"id": list(range(100))}) ds = ds.to_iterable_dataset(num_shards=4) ds = ds.map(lambda x: x) #comment it out to get desired behavior ds = split_dataset_by_node(ds, rank=0, world_size=2) return ds ds = create_dataset() # Iterate and save checkpoint after 10 samples it = iter(ds) for idx, sample in enumerate(it): if idx == 9: # Checkpoint after 10 samples checkpoint = ds.state_dict() print(f"Checkpoint saved at sample: {sample['id']}") break # Continue with original iterator original_next_samples = [] for idx, sample in enumerate(it): original_next_samples.append(sample["id"]) if idx >= 4: break # Resume from checkpoint ds_new = create_dataset() ds_new.load_state_dict(checkpoint) # Get samples from resumed iterator it_new = iter(ds_new) resumed_next_samples = [] for idx, sample in enumerate(it_new): resumed_next_samples.append(sample["id"]) if idx >= 4: break print(f"\nExpected next samples: {original_next_samples}") print(f"Actual next samples: {resumed_next_samples}") print( f"\n❌ BUG: {resumed_next_samples[0] - original_next_samples[0]} samples were skipped!" ) ``` With map ``` Checkpoint saved at sample: 9 Expected next samples: [10, 11, 12, 13, 14] Actual next samples: [50, 51, 52, 53, 54] ❌ BUG: 40 samples were skipped! ``` ### Expected behavior without map ``` Expected next samples: [10, 11, 12, 13, 14] Actual next samples: [10, 11, 12, 13, 14] ❌ BUG: 0 samples were skipped! ``` ### Environment info datasets == 3.6.0
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7630/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7630/timeline
null
null
null
null
2025-06-21T01:50:03Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7629
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7629/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7629/comments
https://api.github.com/repos/huggingface/datasets/issues/7629/events
https://github.com/huggingface/datasets/pull/7629
3,161,169,782
PR_kwDODunzps6bTc7b
7,629
Add test for `as_iterable_dataset()` method in DatasetBuilder
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-19T19:23:55Z
2025-06-19T19:23:55Z
null
CONTRIBUTOR
null
null
null
This PR adds a test for the new `as_iterable_dataset()` method introduced in PR #7628. The test: - Loads a builder using `load_dataset_builder("c4", "en")` - Runs `download_and_prepare()` - Streams examples using `builder.as_iterable_dataset(split="train[:100]")` - Verifies streamed examples contain the "text" field This ensures that the builder correctly streams data from cached Arrow files.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7629/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7629/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7629.diff", "html_url": "https://github.com/huggingface/datasets/pull/7629", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7629.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7629" }
2025-06-19T19:23:55Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7628
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7628/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7628/comments
https://api.github.com/repos/huggingface/datasets/issues/7628/events
https://github.com/huggingface/datasets/pull/7628
3,161,156,461
PR_kwDODunzps6bTaGk
7,628
Add `as_iterable_dataset()` method to DatasetBuilder for streaming from cached Arrow files
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[]
2025-06-19T19:15:41Z
2025-06-19T19:15:41Z
null
CONTRIBUTOR
null
null
null
This PR implements `builder.as_iterable_dataset(split=...)` as discussed in #5481. It allows users to load an `IterableDataset` directly from cached Arrow files (using ArrowReader and ArrowExamplesIterable), without loading the full dataset into memory. This is useful for large-scale training scenarios where memory is constrained. A test has also been added in `test_builder.py`. Related to: #5481
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7628/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7628/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7628.diff", "html_url": "https://github.com/huggingface/datasets/pull/7628", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7628.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7628" }
2025-06-19T19:15:41Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7627
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7627/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7627/comments
https://api.github.com/repos/huggingface/datasets/issues/7627/events
https://github.com/huggingface/datasets/issues/7627
3,160,544,390
I_kwDODunzps68YhSG
7,627
Creating a HF Dataset from lakeFS with S3 storage takes too much time!
{ "avatar_url": "https://avatars.githubusercontent.com/u/118734142?v=4", "events_url": "https://api.github.com/users/Thunderhead-exe/events{/privacy}", "followers_url": "https://api.github.com/users/Thunderhead-exe/followers", "following_url": "https://api.github.com/users/Thunderhead-exe/following{/other_user}", "gists_url": "https://api.github.com/users/Thunderhead-exe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Thunderhead-exe", "id": 118734142, "login": "Thunderhead-exe", "node_id": "U_kgDOBxO9Pg", "organizations_url": "https://api.github.com/users/Thunderhead-exe/orgs", "received_events_url": "https://api.github.com/users/Thunderhead-exe/received_events", "repos_url": "https://api.github.com/users/Thunderhead-exe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Thunderhead-exe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Thunderhead-exe/subscriptions", "type": "User", "url": "https://api.github.com/users/Thunderhead-exe", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "### > Update\n\nThe bottleneck, from what I understand, was making one network request per file\n\nFor 30k images, this meant 30k separate GET requests to the MinIO server through the S3 API, and that was killing the performance\n\nUsing webDataset to transform the large number of files to few .tar files and passing “webdataset” instead of “imagefolder” to the load_dataset function worked perfectly (took only ~11s)", "created_at": "2025-06-23T12:38:29Z", "html_url": "https://github.com/huggingface/datasets/issues/7627#issuecomment-2996339556", "id": 2996339556, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7627", "node_id": "IC_kwDODunzps6ymINk", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2996339556/reactions" }, "updated_at": "2025-06-23T12:38:29Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2996339556", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/118734142?v=4", "events_url": "https://api.github.com/users/Thunderhead-exe/events{/privacy}", "followers_url": "https://api.github.com/users/Thunderhead-exe/followers", "following_url": "https://api.github.com/users/Thunderhead-exe/following{/other_user}", "gists_url": "https://api.github.com/users/Thunderhead-exe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Thunderhead-exe", "id": 118734142, "login": "Thunderhead-exe", "node_id": "U_kgDOBxO9Pg", "organizations_url": "https://api.github.com/users/Thunderhead-exe/orgs", "received_events_url": "https://api.github.com/users/Thunderhead-exe/received_events", "repos_url": "https://api.github.com/users/Thunderhead-exe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Thunderhead-exe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Thunderhead-exe/subscriptions", "type": "User", "url": "https://api.github.com/users/Thunderhead-exe", "user_view_type": "public" } } ]
2025-06-19T14:28:41Z
2025-06-23T12:39:10Z
2025-06-23T12:39:10Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
Hi, I’m new to HF dataset and I tried to create datasets based on data versioned in **lakeFS** _(**MinIO** S3 bucket as storage backend)_ Here I’m using ±30000 PIL image from MNIST data however it is taking around 12min to execute, which is a lot! From what I understand, it is loading the images into cache then building the dataset. – Please find bellow the execution screenshot – Is there a way to optimize this or am I doing something wrong? Thanks! ![Image](https://github.com/user-attachments/assets/c79257c8-f023-42a9-9e6f-0898b3ea93fe)
{ "avatar_url": "https://avatars.githubusercontent.com/u/118734142?v=4", "events_url": "https://api.github.com/users/Thunderhead-exe/events{/privacy}", "followers_url": "https://api.github.com/users/Thunderhead-exe/followers", "following_url": "https://api.github.com/users/Thunderhead-exe/following{/other_user}", "gists_url": "https://api.github.com/users/Thunderhead-exe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Thunderhead-exe", "id": 118734142, "login": "Thunderhead-exe", "node_id": "U_kgDOBxO9Pg", "organizations_url": "https://api.github.com/users/Thunderhead-exe/orgs", "received_events_url": "https://api.github.com/users/Thunderhead-exe/received_events", "repos_url": "https://api.github.com/users/Thunderhead-exe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Thunderhead-exe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Thunderhead-exe/subscriptions", "type": "User", "url": "https://api.github.com/users/Thunderhead-exe", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7627/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7627/timeline
null
completed
null
null
2025-06-19T14:28:41Z
2025-06-23T12:39:10Z
3 days, 22:10:29
false
https://api.github.com/repos/huggingface/datasets/issues/7626
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7626/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7626/comments
https://api.github.com/repos/huggingface/datasets/issues/7626/events
https://github.com/huggingface/datasets/pull/7626
3,159,322,138
PR_kwDODunzps6bNMuF
7,626
feat(map): reuse unchanged columns when input_columns specified to reduce disk usage (#6013)
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[]
2025-06-19T07:41:45Z
2025-07-28T17:39:12Z
2025-07-28T17:39:12Z
CONTRIBUTOR
null
null
null
## Summary This PR addresses [#6013](https://github.com/huggingface/datasets/issues/6013) by reusing unchanged columns from the original dataset in the `map()` method when `input_columns` is specified. ## What’s Implemented - Injected logic at the end of `Dataset.map()` to: - Identify untouched columns not in `input_columns` or `remove_columns` - Select those columns from the original dataset - Concatenate them with the transformed result using `pyarrow.concat_tables` ## Example Behavior ```python ds = Dataset.from_dict({"a": [1, 2], "b": [3, 4]}) ds2 = ds.map(lambda x: {"c": x["a"] + 10}, input_columns=["a"], remove_columns=["a"]) print(ds2.column_names) # Output: ['b', 'c'] ```` Column `b` is reused from the original dataset. ## Notes * This keeps disk usage and caching minimal by avoiding full dataset duplication. * Only triggered when `input_columns` is set. --- cc @lhoestq @mariosasko for review 🙂
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7626/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7626/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7626.diff", "html_url": "https://github.com/huggingface/datasets/pull/7626", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7626.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7626" }
2025-06-19T07:41:45Z
2025-07-28T17:39:12Z
39 days, 9:57:27
true
https://api.github.com/repos/huggingface/datasets/issues/7624
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7624/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7624/comments
https://api.github.com/repos/huggingface/datasets/issues/7624/events
https://github.com/huggingface/datasets/issues/7624
3,156,136,624
I_kwDODunzps68HtKw
7,624
#Dataset Make "image" column appear first in dataset preview UI
{ "avatar_url": "https://avatars.githubusercontent.com/u/98875217?v=4", "events_url": "https://api.github.com/users/jcerveto/events{/privacy}", "followers_url": "https://api.github.com/users/jcerveto/followers", "following_url": "https://api.github.com/users/jcerveto/following{/other_user}", "gists_url": "https://api.github.com/users/jcerveto/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jcerveto", "id": 98875217, "login": "jcerveto", "node_id": "U_kgDOBeS3UQ", "organizations_url": "https://api.github.com/users/jcerveto/orgs", "received_events_url": "https://api.github.com/users/jcerveto/received_events", "repos_url": "https://api.github.com/users/jcerveto/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jcerveto/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcerveto/subscriptions", "type": "User", "url": "https://api.github.com/users/jcerveto", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! It should follow the same order as the order of the keys in the metadata file", "created_at": "2025-06-19T13:42:55Z", "html_url": "https://github.com/huggingface/datasets/issues/7624#issuecomment-2988156316", "id": 2988156316, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7624", "node_id": "IC_kwDODunzps6yG6Wc", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2988156316/reactions" }, "updated_at": "2025-06-19T13:42:55Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2988156316", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "NONE", "body": "Hi! Thank you for your answer. \n\nAs you said it, I I forced every key in every JSON to have an order using `collections. OrderedDict` in Python. Now, it works!\n\nTY", "created_at": "2025-06-20T07:46:43Z", "html_url": "https://github.com/huggingface/datasets/issues/7624#issuecomment-2990157782", "id": 2990157782, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7624", "node_id": "IC_kwDODunzps6yOi_W", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2990157782/reactions" }, "updated_at": "2025-06-20T07:46:43Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2990157782", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/98875217?v=4", "events_url": "https://api.github.com/users/jcerveto/events{/privacy}", "followers_url": "https://api.github.com/users/jcerveto/followers", "following_url": "https://api.github.com/users/jcerveto/following{/other_user}", "gists_url": "https://api.github.com/users/jcerveto/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jcerveto", "id": 98875217, "login": "jcerveto", "node_id": "U_kgDOBeS3UQ", "organizations_url": "https://api.github.com/users/jcerveto/orgs", "received_events_url": "https://api.github.com/users/jcerveto/received_events", "repos_url": "https://api.github.com/users/jcerveto/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jcerveto/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcerveto/subscriptions", "type": "User", "url": "https://api.github.com/users/jcerveto", "user_view_type": "public" } } ]
2025-06-18T09:25:19Z
2025-06-20T07:46:43Z
2025-06-20T07:46:43Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
Hi! #Dataset I’m currently uploading a dataset that includes an `"image"` column (PNG files), along with some metadata columns. The dataset is loaded from a .jsonl file. My goal is to have the "image" column appear as the first column in the dataset card preview UI on the :hugs: Hub. However, at the moment, the `"image"` column is not the first—in fact, it appears last, which is not ideal for the presentation I’d like to achieve. I have a couple of questions: Is there a way to force the dataset card to display the `"image"` column first? Is there currently any way to control or influence the column order in the dataset preview UI? Does the order of keys in the .jsonl file or the features argument affect the display order? Thanks again for your time and help! :blush:
{ "avatar_url": "https://avatars.githubusercontent.com/u/98875217?v=4", "events_url": "https://api.github.com/users/jcerveto/events{/privacy}", "followers_url": "https://api.github.com/users/jcerveto/followers", "following_url": "https://api.github.com/users/jcerveto/following{/other_user}", "gists_url": "https://api.github.com/users/jcerveto/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jcerveto", "id": 98875217, "login": "jcerveto", "node_id": "U_kgDOBeS3UQ", "organizations_url": "https://api.github.com/users/jcerveto/orgs", "received_events_url": "https://api.github.com/users/jcerveto/received_events", "repos_url": "https://api.github.com/users/jcerveto/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jcerveto/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcerveto/subscriptions", "type": "User", "url": "https://api.github.com/users/jcerveto", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7624/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7624/timeline
null
completed
null
null
2025-06-18T09:25:19Z
2025-06-20T07:46:43Z
1 day, 22:21:24
false
https://api.github.com/repos/huggingface/datasets/issues/7625
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7625/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7625/comments
https://api.github.com/repos/huggingface/datasets/issues/7625/events
https://github.com/huggingface/datasets/pull/7625
3,159,016,001
PR_kwDODunzps6bMKof
7,625
feat: Add h5folder dataset loader for HDF5 support
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7625). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-25T14:05:11Z", "html_url": "https://github.com/huggingface/datasets/pull/7625#issuecomment-3004907984", "id": 3004907984, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7625", "node_id": "IC_kwDODunzps6zG0HQ", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3004907984/reactions" }, "updated_at": "2025-06-25T14:05:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3004907984", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "I guess test failed cause import os, import h5py, and import datasets lines are not alphabetically sorted, or not grouped properly.\r\n\r\n![image](https://github.com/user-attachments/assets/ab73f8f9-da50-4ba8-9b2d-b7c30fce94f5)\r\n", "created_at": "2025-06-26T05:29:52Z", "html_url": "https://github.com/huggingface/datasets/pull/7625#issuecomment-3007106944", "id": 3007106944, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7625", "node_id": "IC_kwDODunzps6zPM-A", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007106944/reactions" }, "updated_at": "2025-06-26T05:44:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007106944", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "This commit was accidental - `[Merge branch 'main' into patch-4]`. The \r\n`[chore: fix import order in h5folder.py to satisfy linter]` should solve the import order issue. \r\n\r\n\r\n", "created_at": "2025-06-26T05:42:16Z", "html_url": "https://github.com/huggingface/datasets/pull/7625#issuecomment-3007131648", "id": 3007131648, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7625", "node_id": "IC_kwDODunzps6zPTAA", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007131648/reactions" }, "updated_at": "2025-06-26T05:42:46Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3007131648", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-19T05:39:10Z
2025-06-26T05:44:26Z
null
CONTRIBUTOR
null
null
null
### Related Issue Closes #3113 ### What does this PR do? This PR introduces a new dataset loader module called **`h5folder`** to support loading datasets stored in **HDF5 (.h5)** format. It allows users to do: ```python from datasets import load_dataset dataset = load_dataset("h5folder", data_dir="path/to/") ```` ### 🧩 Design Overview * Implemented inside `datasets/packaged_modules/h5folder/h5folder.py` * Based on the `GeneratorBasedBuilder` API * Uses `h5py` to read HDF5 files and yield examples * Expects datasets such as `id`, `data`, and `label` inside `data.h5` * Converts numpy arrays to Python types before yielding ### 🧪 Example `.h5` Structure (for local testing) ```python import h5py import numpy as np with h5py.File("data.h5", "w") as f: f.create_dataset("id", data=np.arange(100)) f.create_dataset("data", data=np.random.randn(100, 10)) f.create_dataset("label", data=np.random.randint(0, 2, size=100)) ``` ### ✅ Testing - The loader logic follows the structure of existing modules like `imagefolder` - Will rely on Hugging Face CI to validate integration - Manually testing planned once merged or during feedback ### 📁 Files Added * `datasets/src/datasets/packaged_modules/h5folder/h5folder.py` ### 📌 Component(s) Affected * `area/datasets` * `area/load` ### 📦 Release Note Classification * `rn/feature` – Adds support for loading `.h5` datasets via `load_dataset("h5folder", ...)` --- Let me know if any changes or improvements are needed — happy to iterate. Thanks for reviewing!
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 3, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/huggingface/datasets/issues/7625/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7625/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7625.diff", "html_url": "https://github.com/huggingface/datasets/pull/7625", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7625.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7625" }
2025-06-19T05:39:10Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7623
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7623/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7623/comments
https://api.github.com/repos/huggingface/datasets/issues/7623/events
https://github.com/huggingface/datasets/pull/7623
3,154,519,684
PR_kwDODunzps6a9Jk5
7,623
fix: raise error in FolderBasedBuilder when data_dir and data_files are missing
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "@lhoestq Moved the logic to FolderBasedBuilder._info() as discussed in previous PR (#7618). Let me know if anything else is needed — happy to update!", "created_at": "2025-06-17T19:24:44Z", "html_url": "https://github.com/huggingface/datasets/pull/7623#issuecomment-2981591244", "id": 2981591244, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7623", "node_id": "IC_kwDODunzps6xt3jM", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2981591244/reactions" }, "updated_at": "2025-06-17T19:27:54Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2981591244", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7623). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-18T13:25:19Z", "html_url": "https://github.com/huggingface/datasets/pull/7623#issuecomment-2984207551", "id": 2984207551, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7623", "node_id": "IC_kwDODunzps6x32S_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984207551/reactions" }, "updated_at": "2025-06-18T13:25:19Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984207551", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-17T19:16:34Z
2025-06-18T14:18:41Z
2025-06-18T14:18:41Z
CONTRIBUTOR
null
null
null
### Related Issues/PRs Fixes #6152 --- ### What changes are proposed in this pull request? This PR adds a dedicated validation check in the `_info()` method of the `FolderBasedBuilder` class to ensure that users provide either `data_dir` or `data_files` when loading folder-based datasets (such as `audiofolder`, `imagefolder`, etc.). --- ### Why this change? Previously, when calling: ```python load_dataset("audiofolder") ```` without specifying `data_dir` or `data_files`, the loader would silently fallback to the **current working directory**, leading to: * Long loading times * Unexpected behavior (e.g., scanning unrelated files) This behavior was discussed in issue #6152. As suggested by maintainers, the fix has now been implemented directly inside the `FolderBasedBuilder._info()` method — keeping the logic localized to the specific builder instead of a generic loader function. --- ### How is this PR tested? * ✅ Manually tested by calling `load_dataset("audiofolder")` with no `data_dir` or `data_files` → a `ValueError` is now raised early. * ✅ Existing functionality (with valid input) remains unaffected. --- ### Does this PR require documentation update? * [x] No --- ### Release Notes #### Is this a user-facing change? * [x] Yes > Folder-based datasets now raise an explicit error if neither `data_dir` nor `data_files` are specified, preventing unintended fallback to the current working directory. --- #### What component(s) does this PR affect? * [x] `area/datasets` * [x] `area/load` --- <a name="release-note-category"></a> #### How should the PR be classified? * [x] `rn/bug-fix` - A user-facing bug fix --- #### Should this be included in the next patch release? * [x] Yes
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7623/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7623/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7623.diff", "html_url": "https://github.com/huggingface/datasets/pull/7623", "merged_at": "2025-06-18T14:18:41Z", "patch_url": "https://github.com/huggingface/datasets/pull/7623.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7623" }
2025-06-17T19:16:34Z
2025-06-18T14:18:41Z
19:02:07
true
https://api.github.com/repos/huggingface/datasets/issues/7622
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7622/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7622/comments
https://api.github.com/repos/huggingface/datasets/issues/7622/events
https://github.com/huggingface/datasets/pull/7622
3,154,398,557
PR_kwDODunzps6a8v6J
7,622
Guard against duplicate builder_kwargs/config_kwargs in load_dataset_…
{ "avatar_url": "https://avatars.githubusercontent.com/u/149825575?v=4", "events_url": "https://api.github.com/users/Shohail-Ismail/events{/privacy}", "followers_url": "https://api.github.com/users/Shohail-Ismail/followers", "following_url": "https://api.github.com/users/Shohail-Ismail/following{/other_user}", "gists_url": "https://api.github.com/users/Shohail-Ismail/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Shohail-Ismail", "id": 149825575, "login": "Shohail-Ismail", "node_id": "U_kgDOCO4oJw", "organizations_url": "https://api.github.com/users/Shohail-Ismail/orgs", "received_events_url": "https://api.github.com/users/Shohail-Ismail/received_events", "repos_url": "https://api.github.com/users/Shohail-Ismail/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Shohail-Ismail/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Shohail-Ismail/subscriptions", "type": "User", "url": "https://api.github.com/users/Shohail-Ismail", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "Hi folks, this PR fixes the duplicate-kwargs edge case and includes a unit test. Would love a review when you have a moment!\r\n\r\n@zach-huggingface\r\n@SunMarc ", "created_at": "2025-07-02T12:39:09Z", "html_url": "https://github.com/huggingface/datasets/pull/7622#issuecomment-3027722724", "id": 3027722724, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7622", "node_id": "IC_kwDODunzps60d2Hk", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3027722724/reactions" }, "updated_at": "2025-07-02T12:39:20Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3027722724", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/149825575?v=4", "events_url": "https://api.github.com/users/Shohail-Ismail/events{/privacy}", "followers_url": "https://api.github.com/users/Shohail-Ismail/followers", "following_url": "https://api.github.com/users/Shohail-Ismail/following{/other_user}", "gists_url": "https://api.github.com/users/Shohail-Ismail/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Shohail-Ismail", "id": 149825575, "login": "Shohail-Ismail", "node_id": "U_kgDOCO4oJw", "organizations_url": "https://api.github.com/users/Shohail-Ismail/orgs", "received_events_url": "https://api.github.com/users/Shohail-Ismail/received_events", "repos_url": "https://api.github.com/users/Shohail-Ismail/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Shohail-Ismail/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Shohail-Ismail/subscriptions", "type": "User", "url": "https://api.github.com/users/Shohail-Ismail", "user_view_type": "public" } } ]
2025-06-17T18:28:35Z
2025-07-23T14:06:20Z
2025-07-23T14:06:20Z
NONE
null
null
null
…builder (#4910 ) ### What does this PR do? Fixes edge case in `load_dataset_builder` by raising a `TypeError` if the same key exists in both `builder_kwargs` and `config_kwargs`. ### Implementation details - Added a guard clause in `load_dataset_builder` to detect duplicate keys between `builder_kwargs` and `config_kwargs` - Wrote a unit test in `tests/test_load_duplicate_keys.py` to verify the exception is raised correctly ### Fixes Closes #4910 ### Reviewers @zach-huggingface @SunMarc Would appreciate your review if you have time - thanks!
{ "avatar_url": "https://avatars.githubusercontent.com/u/149825575?v=4", "events_url": "https://api.github.com/users/Shohail-Ismail/events{/privacy}", "followers_url": "https://api.github.com/users/Shohail-Ismail/followers", "following_url": "https://api.github.com/users/Shohail-Ismail/following{/other_user}", "gists_url": "https://api.github.com/users/Shohail-Ismail/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Shohail-Ismail", "id": 149825575, "login": "Shohail-Ismail", "node_id": "U_kgDOCO4oJw", "organizations_url": "https://api.github.com/users/Shohail-Ismail/orgs", "received_events_url": "https://api.github.com/users/Shohail-Ismail/received_events", "repos_url": "https://api.github.com/users/Shohail-Ismail/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Shohail-Ismail/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Shohail-Ismail/subscriptions", "type": "User", "url": "https://api.github.com/users/Shohail-Ismail", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7622/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7622/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7622.diff", "html_url": "https://github.com/huggingface/datasets/pull/7622", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7622.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7622" }
2025-06-17T18:28:35Z
2025-07-23T14:06:20Z
35 days, 19:37:45
true
https://api.github.com/repos/huggingface/datasets/issues/7620
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7620/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7620/comments
https://api.github.com/repos/huggingface/datasets/issues/7620/events
https://github.com/huggingface/datasets/pull/7620
3,153,565,183
PR_kwDODunzps6a58TP
7,620
Fixes in docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7620). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-17T13:44:22Z", "html_url": "https://github.com/huggingface/datasets/pull/7620#issuecomment-2980446256", "id": 2980446256, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7620", "node_id": "IC_kwDODunzps6xpgAw", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980446256/reactions" }, "updated_at": "2025-06-17T13:44:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980446256", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-17T13:41:54Z
2025-06-17T13:58:26Z
2025-06-17T13:58:24Z
MEMBER
null
null
null
before release 4.0 (I also did minor improvements to `features` to not show their `id=None` in their `__repr__()`)
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7620/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7620/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7620.diff", "html_url": "https://github.com/huggingface/datasets/pull/7620", "merged_at": "2025-06-17T13:58:24Z", "patch_url": "https://github.com/huggingface/datasets/pull/7620.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7620" }
2025-06-17T13:41:54Z
2025-06-17T13:58:24Z
0:16:30
true
https://api.github.com/repos/huggingface/datasets/issues/7621
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7621/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7621/comments
https://api.github.com/repos/huggingface/datasets/issues/7621/events
https://github.com/huggingface/datasets/pull/7621
3,153,780,963
PR_kwDODunzps6a6rAu
7,621
minor docs data aug
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7621). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-17T14:50:28Z", "html_url": "https://github.com/huggingface/datasets/pull/7621#issuecomment-2980693085", "id": 2980693085, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7621", "node_id": "IC_kwDODunzps6xqcRd", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980693085/reactions" }, "updated_at": "2025-06-17T14:50:28Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980693085", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-17T14:46:57Z
2025-06-17T14:50:28Z
2025-06-17T14:47:11Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7621/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7621/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7621.diff", "html_url": "https://github.com/huggingface/datasets/pull/7621", "merged_at": "2025-06-17T14:47:11Z", "patch_url": "https://github.com/huggingface/datasets/pull/7621.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7621" }
2025-06-17T14:46:57Z
2025-06-17T14:47:11Z
0:00:14
true
https://api.github.com/repos/huggingface/datasets/issues/7618
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7618/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7618/comments
https://api.github.com/repos/huggingface/datasets/issues/7618/events
https://github.com/huggingface/datasets/pull/7618
3,148,912,897
PR_kwDODunzps6aqOnm
7,618
fix: raise error when folder-based datasets are loaded without data_dir or data_files
{ "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Great ! Since this logic is specific to one builder class maybe this check can be in the class definition ? I think you can put it in FolderBasedBuilder's `_info()` method.", "created_at": "2025-06-16T12:13:26Z", "html_url": "https://github.com/huggingface/datasets/pull/7618#issuecomment-2976414292", "id": 2976414292, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7618", "node_id": "IC_kwDODunzps6xaHpU", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2976414292/reactions" }, "updated_at": "2025-06-16T12:13:26Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2976414292", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-06-16T07:43:59Z
2025-06-16T12:13:26Z
null
CONTRIBUTOR
null
null
null
### Related Issues/PRs <!-- Uncomment 'Resolve' if this PR can close the linked items. --> <!-- Resolve --> #6152 --- ### What changes are proposed in this pull request? This PR adds an early validation step for folder-based datasets (like `audiofolder`) to prevent silent fallback behavior. **Before this fix**: - When `data_dir` or `data_files` were not provided, the loader defaulted to the current working directory. - This caused unexpected behavior like: - Long loading times - Scanning unintended local files **Now**: - If both `data_dir` and `data_files` are missing, a `ValueError` is raised early with a helpful message. --- ### How is this PR tested? - [x] Manual test via `load_dataset("audiofolder")` with missing `data_dir` - [ ] Existing unit tests (should not break any) - [ ] New tests (if needed, maintainers can guide) --- ### Does this PR require documentation update? - [x] No. You can skip the rest of this section. --- ### Release Notes #### Is this a user-facing change? - [x] Yes. Give a description of this change to be included in the release notes for users. > Adds early error handling for folder-based datasets when neither `data_dir` nor `data_files` is specified, avoiding unintended resolution to the current directory. #### What component(s), interfaces, languages, and integrations does this PR affect? Components: - [x] `area/datasets` - [x] `area/load` --- <a name="release-note-category"></a> #### How should the PR be classified in the release notes? Choose one: - [x] `rn/bug-fix` - A user-facing bug fix worth mentioning in the release notes --- #### Should this PR be included in the next patch release? - [x] Yes (this PR will be cherry-picked and included in the next patch release)
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7618/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7618/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7618.diff", "html_url": "https://github.com/huggingface/datasets/pull/7618", "merged_at": null, "patch_url": "https://github.com/huggingface/datasets/pull/7618.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7618" }
2025-06-16T07:43:59Z
null
null
true
https://api.github.com/repos/huggingface/datasets/issues/7619
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7619/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7619/comments
https://api.github.com/repos/huggingface/datasets/issues/7619/events
https://github.com/huggingface/datasets/issues/7619
3,153,058,517
I_kwDODunzps6779rV
7,619
`from_list` fails while `from_generator` works for large datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/4028948?v=4", "events_url": "https://api.github.com/users/abdulfatir/events{/privacy}", "followers_url": "https://api.github.com/users/abdulfatir/followers", "following_url": "https://api.github.com/users/abdulfatir/following{/other_user}", "gists_url": "https://api.github.com/users/abdulfatir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abdulfatir", "id": 4028948, "login": "abdulfatir", "node_id": "MDQ6VXNlcjQwMjg5NDg=", "organizations_url": "https://api.github.com/users/abdulfatir/orgs", "received_events_url": "https://api.github.com/users/abdulfatir/received_events", "repos_url": "https://api.github.com/users/abdulfatir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abdulfatir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdulfatir/subscriptions", "type": "User", "url": "https://api.github.com/users/abdulfatir", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "NONE", "body": "@lhoestq any thoughts on this? ", "created_at": "2025-06-18T09:29:24Z", "html_url": "https://github.com/huggingface/datasets/issues/7619#issuecomment-2983410342", "id": 2983410342, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7619", "node_id": "IC_kwDODunzps6x0zqm", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2983410342/reactions" }, "updated_at": "2025-06-18T09:29:24Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2983410342", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/4028948?v=4", "events_url": "https://api.github.com/users/abdulfatir/events{/privacy}", "followers_url": "https://api.github.com/users/abdulfatir/followers", "following_url": "https://api.github.com/users/abdulfatir/following{/other_user}", "gists_url": "https://api.github.com/users/abdulfatir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abdulfatir", "id": 4028948, "login": "abdulfatir", "node_id": "MDQ6VXNlcjQwMjg5NDg=", "organizations_url": "https://api.github.com/users/abdulfatir/orgs", "received_events_url": "https://api.github.com/users/abdulfatir/received_events", "repos_url": "https://api.github.com/users/abdulfatir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abdulfatir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdulfatir/subscriptions", "type": "User", "url": "https://api.github.com/users/abdulfatir", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Thanks for the report! This behavior is expected due to how `from_list()` and `from_generator()` differ internally.\n\n- `from_list()` builds the entire dataset in memory at once, which can easily exceed limits (especially with variable-length arrays or millions of rows). The Arrow error you're seeing (`Value too large to fit in C integer type`) is related to that memory overload.\n- `from_generator()` avoids this issue by batching and streaming data incrementally, which is much more memory-efficient.\n\nSo for large datasets like time series or NLP data with large arrays, `from_generator()` (or `datasets.IterableDataset`) is the recommended approach.\n\nHope this helps clarify the behavior — let me know if you'd like me to point to prior issues/discussions where similar tradeoffs came up!\n", "created_at": "2025-06-29T07:36:25Z", "html_url": "https://github.com/huggingface/datasets/issues/7619#issuecomment-3016379235", "id": 3016379235, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7619", "node_id": "IC_kwDODunzps6zyktj", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016379235/reactions" }, "updated_at": "2025-06-29T07:36:52Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016379235", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "@ArjunJagdale Yes, it is related to using large dataset but not in the way that you have described. As I understand, the problem here is that `datasets` does not use `LargeList` with 64-bit offsets from PyArrow when using `from_list`. However, with `from_generator` this seems to work okay, likely due to batching. As such, this is more like a bug than an expected outcome. If this is indeed \"expected\", `datasets` should fail more gracefully in these cases with a recommendation to use `from_generator`. ", "created_at": "2025-06-29T10:31:46Z", "html_url": "https://github.com/huggingface/datasets/issues/7619#issuecomment-3016572725", "id": 3016572725, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7619", "node_id": "IC_kwDODunzps6zzT81", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016572725/reactions" }, "updated_at": "2025-06-29T10:31:46Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016572725", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/4028948?v=4", "events_url": "https://api.github.com/users/abdulfatir/events{/privacy}", "followers_url": "https://api.github.com/users/abdulfatir/followers", "following_url": "https://api.github.com/users/abdulfatir/following{/other_user}", "gists_url": "https://api.github.com/users/abdulfatir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abdulfatir", "id": 4028948, "login": "abdulfatir", "node_id": "MDQ6VXNlcjQwMjg5NDg=", "organizations_url": "https://api.github.com/users/abdulfatir/orgs", "received_events_url": "https://api.github.com/users/abdulfatir/received_events", "repos_url": "https://api.github.com/users/abdulfatir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abdulfatir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdulfatir/subscriptions", "type": "User", "url": "https://api.github.com/users/abdulfatir", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Thanks for the clarification — you're absolutely right, this seems tied to the use of 32-bit list offsets in from_list() under the hood. That distinction between List and LargeList in PyArrow is a crucial one, and definitely worth highlighting in the docs or error message. Happy to help if a check or fallback to LargeList makes sense here.", "created_at": "2025-06-29T16:34:44Z", "html_url": "https://github.com/huggingface/datasets/issues/7619#issuecomment-3016839227", "id": 3016839227, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7619", "node_id": "IC_kwDODunzps6z0VA7", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016839227/reactions" }, "updated_at": "2025-06-29T16:34:44Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016839227", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-17T10:58:55Z
2025-06-29T16:34:44Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`. ### Steps to reproduce the bug #### Snippet A (crashes) ```py from tqdm.auto import tqdm import numpy as np import datasets def data_generator(): for i in tqdm(range(10_000_000)): length = np.random.randint(2048) series = np.random.rand(length) yield {"target": series, "item_id": str(i), "start": np.datetime64("2000", "ms")} data_list = list(data_generator()) ds = datasets.Dataset.from_list(data_list) ``` The last line crashes with ``` ArrowInvalid: Value 2147483761 too large to fit in C integer type ``` #### Snippet B (works) ```py from tqdm.auto import tqdm import numpy as np import datasets def data_generator(): for i in tqdm(range(10_000_000)): length = np.random.randint(2048) series = np.random.rand(length) yield {"target": series, "item_id": str(i), "start": np.datetime64("2000", "ms")} ds = datasets.Dataset.from_generator(data_generator) ``` ### Expected behavior I expected both the approaches to work or to fail similarly. ### Environment info ``` - `datasets` version: 3.6.0 - Platform: Linux-6.8.0-1029-aws-x86_64-with-glibc2.35 - Python version: 3.11.11 - `huggingface_hub` version: 0.32.2 - PyArrow version: 19.0.1 - Pandas version: 2.2.3 - `fsspec` version: 2025.3.0 ```
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7619/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7619/timeline
null
null
null
null
2025-06-17T10:58:55Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7617
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7617/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7617/comments
https://api.github.com/repos/huggingface/datasets/issues/7617/events
https://github.com/huggingface/datasets/issues/7617
3,148,102,085
I_kwDODunzps67pDnF
7,617
Unwanted column padding in nested lists of dicts
{ "avatar_url": "https://avatars.githubusercontent.com/u/45557362?v=4", "events_url": "https://api.github.com/users/qgallouedec/events{/privacy}", "followers_url": "https://api.github.com/users/qgallouedec/followers", "following_url": "https://api.github.com/users/qgallouedec/following{/other_user}", "gists_url": "https://api.github.com/users/qgallouedec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qgallouedec", "id": 45557362, "login": "qgallouedec", "node_id": "MDQ6VXNlcjQ1NTU3MzYy", "organizations_url": "https://api.github.com/users/qgallouedec/orgs", "received_events_url": "https://api.github.com/users/qgallouedec/received_events", "repos_url": "https://api.github.com/users/qgallouedec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qgallouedec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qgallouedec/subscriptions", "type": "User", "url": "https://api.github.com/users/qgallouedec", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Answer from @lhoestq:\n\n> No\n> This is because Arrow and Parquet a columnar format: they require a fixed type for each column. So if you have nested dicts, each item should have the same subfields\n\nThe way around I found is the handle it after sampling with this function:\n\n```python\ndef remove_padding(example):\n if isinstance(example, list):\n return [remove_padding(value) if isinstance(value, (dict, list)) else value for value in example]\n elif isinstance(example, Mapping):\n return {\n key: remove_padding(value) if isinstance(value, (dict, list)) else value\n for key, value in example.items()\n if value is not None\n }\n else:\n raise TypeError(\"Input must be a list or a dictionary.\")\n\n# Example:\nexample = next(iter(dataset))\nexample = remove_padding(example)\n```", "created_at": "2025-06-16T13:43:30Z", "html_url": "https://github.com/huggingface/datasets/issues/7617#issuecomment-2976720666", "id": 2976720666, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7617", "node_id": "IC_kwDODunzps6xbSca", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2976720666/reactions" }, "updated_at": "2025-06-16T13:43:30Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2976720666", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/45557362?v=4", "events_url": "https://api.github.com/users/qgallouedec/events{/privacy}", "followers_url": "https://api.github.com/users/qgallouedec/followers", "following_url": "https://api.github.com/users/qgallouedec/following{/other_user}", "gists_url": "https://api.github.com/users/qgallouedec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qgallouedec", "id": 45557362, "login": "qgallouedec", "node_id": "MDQ6VXNlcjQ1NTU3MzYy", "organizations_url": "https://api.github.com/users/qgallouedec/orgs", "received_events_url": "https://api.github.com/users/qgallouedec/received_events", "repos_url": "https://api.github.com/users/qgallouedec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qgallouedec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qgallouedec/subscriptions", "type": "User", "url": "https://api.github.com/users/qgallouedec", "user_view_type": "public" } } ]
2025-06-15T22:06:17Z
2025-06-16T13:43:31Z
2025-06-16T13:43:31Z
MEMBER
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
```python from datasets import Dataset dataset = Dataset.from_dict({ "messages": [ [ {"a": "...",}, {"b": "...",}, ], ] }) print(dataset[0]) ``` What I get: ``` {'messages': [{'a': '...', 'b': None}, {'a': None, 'b': '...'}]} ``` What I want: ``` {'messages': [{'a': '...'}, {'b': '...'}]} ``` Is there an easy way to automatically remove these auto-filled null/none values? If not, I probably need a recursive none exclusion function, don't I? Datasets 3.6.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/45557362?v=4", "events_url": "https://api.github.com/users/qgallouedec/events{/privacy}", "followers_url": "https://api.github.com/users/qgallouedec/followers", "following_url": "https://api.github.com/users/qgallouedec/following{/other_user}", "gists_url": "https://api.github.com/users/qgallouedec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qgallouedec", "id": 45557362, "login": "qgallouedec", "node_id": "MDQ6VXNlcjQ1NTU3MzYy", "organizations_url": "https://api.github.com/users/qgallouedec/orgs", "received_events_url": "https://api.github.com/users/qgallouedec/received_events", "repos_url": "https://api.github.com/users/qgallouedec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qgallouedec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qgallouedec/subscriptions", "type": "User", "url": "https://api.github.com/users/qgallouedec", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7617/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7617/timeline
null
completed
null
null
2025-06-15T22:06:17Z
2025-06-16T13:43:31Z
15:37:14
false
https://api.github.com/repos/huggingface/datasets/issues/7616
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7616/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7616/comments
https://api.github.com/repos/huggingface/datasets/issues/7616/events
https://github.com/huggingface/datasets/pull/7616
3,144,506,665
PR_kwDODunzps6acSW7
7,616
Torchcodec decoding
{ "avatar_url": "https://avatars.githubusercontent.com/u/49127578?v=4", "events_url": "https://api.github.com/users/TyTodd/events{/privacy}", "followers_url": "https://api.github.com/users/TyTodd/followers", "following_url": "https://api.github.com/users/TyTodd/following{/other_user}", "gists_url": "https://api.github.com/users/TyTodd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyTodd", "id": 49127578, "login": "TyTodd", "node_id": "MDQ6VXNlcjQ5MTI3NTc4", "organizations_url": "https://api.github.com/users/TyTodd/orgs", "received_events_url": "https://api.github.com/users/TyTodd/received_events", "repos_url": "https://api.github.com/users/TyTodd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyTodd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyTodd/subscriptions", "type": "User", "url": "https://api.github.com/users/TyTodd", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "@lhoestq any updates on when this will be merged? Let me know if theres anything you need from my end.", "created_at": "2025-06-17T13:52:48Z", "html_url": "https://github.com/huggingface/datasets/pull/7616#issuecomment-2980477096", "id": 2980477096, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7616", "node_id": "IC_kwDODunzps6xpnio", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980477096/reactions" }, "updated_at": "2025-06-17T13:52:48Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980477096", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/49127578?v=4", "events_url": "https://api.github.com/users/TyTodd/events{/privacy}", "followers_url": "https://api.github.com/users/TyTodd/followers", "following_url": "https://api.github.com/users/TyTodd/following{/other_user}", "gists_url": "https://api.github.com/users/TyTodd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyTodd", "id": 49127578, "login": "TyTodd", "node_id": "MDQ6VXNlcjQ5MTI3NTc4", "organizations_url": "https://api.github.com/users/TyTodd/orgs", "received_events_url": "https://api.github.com/users/TyTodd/received_events", "repos_url": "https://api.github.com/users/TyTodd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyTodd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyTodd/subscriptions", "type": "User", "url": "https://api.github.com/users/TyTodd", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "Btw I plan to release `datasets` 4.0 after your PR, this will be a major milestone :)", "created_at": "2025-06-17T14:36:49Z", "html_url": "https://github.com/huggingface/datasets/pull/7616#issuecomment-2980641019", "id": 2980641019, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7616", "node_id": "IC_kwDODunzps6xqPj7", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 1, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980641019/reactions" }, "updated_at": "2025-06-17T14:36:49Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2980641019", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "@lhoestq just pushed the new changes.", "created_at": "2025-06-17T19:05:55Z", "html_url": "https://github.com/huggingface/datasets/pull/7616#issuecomment-2981535016", "id": 2981535016, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7616", "node_id": "IC_kwDODunzps6xtp0o", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2981535016/reactions" }, "updated_at": "2025-06-17T19:05:55Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2981535016", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/49127578?v=4", "events_url": "https://api.github.com/users/TyTodd/events{/privacy}", "followers_url": "https://api.github.com/users/TyTodd/followers", "following_url": "https://api.github.com/users/TyTodd/following{/other_user}", "gists_url": "https://api.github.com/users/TyTodd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyTodd", "id": 49127578, "login": "TyTodd", "node_id": "MDQ6VXNlcjQ5MTI3NTc4", "organizations_url": "https://api.github.com/users/TyTodd/orgs", "received_events_url": "https://api.github.com/users/TyTodd/received_events", "repos_url": "https://api.github.com/users/TyTodd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyTodd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyTodd/subscriptions", "type": "User", "url": "https://api.github.com/users/TyTodd", "user_view_type": "public" } }, { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7616). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-18T14:32:11Z", "html_url": "https://github.com/huggingface/datasets/pull/7616#issuecomment-2984464684", "id": 2984464684, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7616", "node_id": "IC_kwDODunzps6x41Es", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984464684/reactions" }, "updated_at": "2025-06-18T14:32:11Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984464684", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } }, { "author_association": "MEMBER", "body": "Great ! I took the liberty to move the AudioDecoder to its own file and make small edits in the docs and docstrings\r\n\r\nIf it looks good to you I think we can merge :)", "created_at": "2025-06-18T16:28:32Z", "html_url": "https://github.com/huggingface/datasets/pull/7616#issuecomment-2984926736", "id": 2984926736, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7616", "node_id": "IC_kwDODunzps6x6l4Q", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984926736/reactions" }, "updated_at": "2025-06-18T16:28:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2984926736", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } } ]
2025-06-13T19:06:07Z
2025-06-19T18:25:49Z
2025-06-19T18:25:49Z
CONTRIBUTOR
null
null
null
Closes #7607 ## New signatures ### Audio ```python Audio(sampling_rate: Optional[int] = None, mono: bool = True, decode: bool = True, stream_index: Optional[int] = None) Audio.encode_example(self, value: Union[str, bytes, bytearray, dict, "AudioDecoder"]) -> dict Audio.decode_example(self, value: dict, token_per_repo_id: Optional[dict[str, Union[str, bool, None]]] = None) -> "AudioDecoder": ``` ### Video ```python Video(decode: bool = True, stream_index: Optional[int] = None, dimension_order: Literal['NCHW', 'NHWC'] = 'NCHW', num_ffmpeg_threads: int = 1, device: Optional[Union[str, "torch.device"]] = 'cpu', seek_mode: Literal['exact', 'approximate'] = 'exact') Video.encode_example(self, value: Union[str, bytes, bytearray, Example, np.ndarray, "VideoDecoder"]) -> Example: Video.decode_example(self, value: Union[str, Example], token_per_repo_id: Optional[dict[str, Union[bool, str]]] = None, ) -> "VideoDecoder": ``` ## Notes Audio features constructor takes in 1 new optional param stream_index which is passed to the AudioDecoder constructor to select the stream index of a file. Audio feature can now take in torchcodec.decoders.AudioDecoder as input to encode_example() Audio feature decode_example() returns torchcodec.decoders.AudioDecoder Video feature constructor takes in 5 new optional params stream_index, dimension_order, num_ffmpeg_threads, device, seek_mode all of which are passed to VideoDecoder constructor Video feature decode_example() returns torchcodec.decoders.VideoDecoder Video feature can now take in torchcodec.decoders.VideoDecoder as input to encode_example() All test cases have been updated to reflect these changes All documentation has also been updated to reflect these changes. Both VideoDecoder and AudioDecoder when formatted with (np_formatter, tf_formatter, etc) will ignore the type and return themselves. Formatting test cases were updated accordingly to reflect this. (Pretty simple to make this not the case if we want though) ## Errors This test case from `tests/packaged_modules/test_audiofolder.py` ```python @require_librosa @require_sndfile @pytest.mark.parametrize("streaming", [False, True]) def test_data_files_with_metadata_and_archives(streaming, cache_dir, data_files_with_zip_archives): audiofolder = AudioFolder(data_files=data_files_with_zip_archives, cache_dir=cache_dir) audiofolder.download_and_prepare() datasets = audiofolder.as_streaming_dataset() if streaming else audiofolder.as_dataset() for split, data_files in data_files_with_zip_archives.items(): num_of_archives = len(data_files) # the metadata file is inside the archive expected_num_of_audios = 2 * num_of_archives assert split in datasets dataset = list(datasets[split]) assert len(dataset) == expected_num_of_audios # make sure each sample has its own audio (all arrays are different) and metadata assert ( sum(np.array_equal(dataset[0]["audio"].get_all_samples().data.numpy(), example["audio"].get_all_samples().data.numpy()) for example in dataset[1:]) == 0 ) assert len({example["text"] for example in dataset}) == expected_num_of_audios assert all(example["text"] is not None for example in dataset) ``` Fails now because AudioDecoder needs to access the files after the lines below are run, but there seems to be some context issues. The file the decoder is trying to read is closed before the decoder gets the chance to decode it. ```python audiofolder.download_and_prepare() datasets = audiofolder.as_streaming_dataset() if streaming else audiofolder.as_dataset() ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7616/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7616/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7616.diff", "html_url": "https://github.com/huggingface/datasets/pull/7616", "merged_at": "2025-06-19T18:25:48Z", "patch_url": "https://github.com/huggingface/datasets/pull/7616.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7616" }
2025-06-13T19:06:07Z
2025-06-19T18:25:49Z
5 days, 23:19:42
true
https://api.github.com/repos/huggingface/datasets/issues/7615
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7615/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7615/comments
https://api.github.com/repos/huggingface/datasets/issues/7615/events
https://github.com/huggingface/datasets/pull/7615
3,143,443,498
PR_kwDODunzps6aYp18
7,615
remove unused code
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7615). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-13T12:39:59Z", "html_url": "https://github.com/huggingface/datasets/pull/7615#issuecomment-2970268596", "id": 2970268596, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7615", "node_id": "IC_kwDODunzps6xCrO0", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970268596/reactions" }, "updated_at": "2025-06-13T12:39:59Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970268596", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-13T12:37:30Z
2025-06-13T12:39:59Z
2025-06-13T12:37:40Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7615/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7615/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7615.diff", "html_url": "https://github.com/huggingface/datasets/pull/7615", "merged_at": "2025-06-13T12:37:40Z", "patch_url": "https://github.com/huggingface/datasets/pull/7615.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7615" }
2025-06-13T12:37:30Z
2025-06-13T12:37:40Z
0:00:10
true
https://api.github.com/repos/huggingface/datasets/issues/7614
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7614/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7614/comments
https://api.github.com/repos/huggingface/datasets/issues/7614/events
https://github.com/huggingface/datasets/pull/7614
3,143,381,638
PR_kwDODunzps6aYcbH
7,614
Lazy column
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7614). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-13T12:15:37Z", "html_url": "https://github.com/huggingface/datasets/pull/7614#issuecomment-2970209407", "id": 2970209407, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7614", "node_id": "IC_kwDODunzps6xCcx_", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970209407/reactions" }, "updated_at": "2025-06-13T12:15:37Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970209407", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-13T12:12:57Z
2025-06-17T13:08:51Z
2025-06-17T13:08:49Z
MEMBER
null
null
null
Same as https://github.com/huggingface/datasets/pull/7564 but for `Dataset`, cc @TopCoder2K FYI e.g. `ds[col]` now returns a lazy Column instead of a list This way calling `ds[col][idx]` only loads the required data in memory (bonus: also supports subfields access with `ds[col][subcol][idx]`) the breaking change will be for the next major release, which also includes removal of dataset scripts support close https://github.com/huggingface/datasets/issues/4180
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7614/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7614/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7614.diff", "html_url": "https://github.com/huggingface/datasets/pull/7614", "merged_at": "2025-06-17T13:08:49Z", "patch_url": "https://github.com/huggingface/datasets/pull/7614.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7614" }
2025-06-13T12:12:57Z
2025-06-17T13:08:49Z
4 days, 0:55:52
true
https://api.github.com/repos/huggingface/datasets/issues/7612
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7612/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7612/comments
https://api.github.com/repos/huggingface/datasets/issues/7612/events
https://github.com/huggingface/datasets/issues/7612
3,141,905,049
I_kwDODunzps67RaqZ
7,612
Provide an option of robust dataset iterator with error handling
{ "avatar_url": "https://avatars.githubusercontent.com/u/40016222?v=4", "events_url": "https://api.github.com/users/wwwjn/events{/privacy}", "followers_url": "https://api.github.com/users/wwwjn/followers", "following_url": "https://api.github.com/users/wwwjn/following{/other_user}", "gists_url": "https://api.github.com/users/wwwjn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wwwjn", "id": 40016222, "login": "wwwjn", "node_id": "MDQ6VXNlcjQwMDE2MjIy", "organizations_url": "https://api.github.com/users/wwwjn/orgs", "received_events_url": "https://api.github.com/users/wwwjn/received_events", "repos_url": "https://api.github.com/users/wwwjn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wwwjn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wwwjn/subscriptions", "type": "User", "url": "https://api.github.com/users/wwwjn", "user_view_type": "public" }
[ { "color": "a2eeef", "default": true, "description": "New feature or request", "id": 1935892871, "name": "enhancement", "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement" } ]
open
false
null
[]
null
[ { "author_association": "MEMBER", "body": "Hi ! Maybe we can add a parameter to the Image() type to make it to return `None` instead of raising an error in case of corruption ? Would that help ?", "created_at": "2025-06-19T13:47:12Z", "html_url": "https://github.com/huggingface/datasets/issues/7612#issuecomment-2988171051", "id": 2988171051, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7612", "node_id": "IC_kwDODunzps6yG98r", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2988171051/reactions" }, "updated_at": "2025-06-19T13:47:12Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2988171051", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "Hi! 👋🏼 I just opened PR [#7638](https://github.com/huggingface/datasets/pull/7638) to address this issue.\n\n### 🔧 What it does:\nIt adds an `ignore_decode_errors` flag to the `Image` feature. When set to `True`, corrupted image samples will be skipped (with a warning), and `None` will be returned instead of raising an exception.\n\nThis allows users to stream datasets that may contain some invalid images without breaking the iteration loop:\n\n```python\nfeatures = Features({\n \"image\": Image(decode=True, ignore_decode_errors=True)\n})\n````\n\n### 🧩 Why this helps:\n\n* Prevents full iteration breakdown during `.streaming=True` usage\n* Enables downstream tooling like Flux (see [[Flux#1290](https://github.com/pytorch/torchtitan/pull/1290)](https://github.com/pytorch/torchtitan/pull/1290)) to implement robust loaders now that `datasets` supports graceful handling\n* Keeps current behavior unchanged unless explicitly opted-in\n\nLet me know if you'd like me to follow up with test coverage or additional enhancements!\n\ncc @lhoestq ", "created_at": "2025-06-24T16:52:30Z", "html_url": "https://github.com/huggingface/datasets/issues/7612#issuecomment-3001200902", "id": 3001200902, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7612", "node_id": "IC_kwDODunzps6y4rEG", "performed_via_github_app": null, "reactions": { "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3001200902/reactions" }, "updated_at": "2025-06-24T16:52:30Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3001200902", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-13T00:40:48Z
2025-06-24T16:52:30Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Feature request Adding an option to skip corrupted data samples. Currently the datasets behavior is throwing errors if the data sample if corrupted and let user aware and handle the data corruption. When I tried to try-catch the error at user level, the iterator will raise StopIteration when I called next() again. The way I try to do error handling is: (This doesn't work, unfortunately) ``` # Load the dataset with streaming enabled dataset = load_dataset( "pixparse/cc12m-wds", split="train", streaming=True ) # Get an iterator from the dataset iterator = iter(dataset) while True: try: # Try to get the next example example = next(iterator) # Try to access and process the image image = example["jpg"] pil_image = Image.fromarray(np.array(image)) pil_image.verify() # Verify it's a valid image file except StopIteration: # Code path 1 print("\nStopIteration was raised! Reach the end of dataset") raise StopIteration except Exception as e: # Code path 2 errors += 1 print("Error! Skip this sample") cotinue else: successful += 1 ``` This is because the `IterableDataset` already throws an error (reaches Code path 2). And if I continue call next(), it will hit Code path 1. This is because the inner iterator of `IterableDataset`([code](https://github.com/huggingface/datasets/blob/89bd1f971402acb62805ef110bc1059c38b1c8c6/src/datasets/iterable_dataset.py#L2242)) as been stopped, so calling next() on it will raise StopIteration. So I can not skip the corrupted data sample in this way. Would also love to hear any suggestions about creating a robust dataloader. Thanks for your help in advance! ### Motivation ## Public dataset corruption might be common A lot of users would use public dataset, and the public dataset might contains some corrupted data, especially for dataset with image / video etc. I totally understand it's dataset owner and user's responsibility to ensure the data integrity / run data cleaning or preprocessing, but it would be easier for developers who would use the dataset ## Use cases For example, a robust dataloader would be easy for users who want to try quick tests on different dataset, and chose one dataset which fits their needs. So user could use IterableDataloader with `stream=True` to use the dataset easily without downloading and removing corrupted data samples from the dataset. ### Your contribution The error handling might not trivial and might need more careful design.
null
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/huggingface/datasets/issues/7612/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7612/timeline
null
null
null
null
2025-06-13T00:40:48Z
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7613
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7613/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7613/comments
https://api.github.com/repos/huggingface/datasets/issues/7613/events
https://github.com/huggingface/datasets/pull/7613
3,142,819,991
PR_kwDODunzps6aWgr3
7,613
fix parallel push_to_hub in dataset_dict
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "NONE", "body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7613). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "created_at": "2025-06-13T09:06:16Z", "html_url": "https://github.com/huggingface/datasets/pull/7613#issuecomment-2969643873", "id": 2969643873, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7613", "node_id": "IC_kwDODunzps6xASth", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2969643873/reactions" }, "updated_at": "2025-06-13T09:06:16Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2969643873", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/99929124?v=4", "events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}", "followers_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/followers", "following_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}", "gists_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuggingFaceDocBuilderDev", "id": 99929124, "login": "HuggingFaceDocBuilderDev", "node_id": "U_kgDOBfTMJA", "organizations_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/orgs", "received_events_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/received_events", "repos_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions", "type": "User", "url": "https://api.github.com/users/HuggingFaceDocBuilderDev", "user_view_type": "public" } } ]
2025-06-13T09:02:24Z
2025-06-13T12:30:23Z
2025-06-13T12:30:22Z
MEMBER
null
null
null
null
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7613/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7613/timeline
null
null
0
{ "diff_url": "https://github.com/huggingface/datasets/pull/7613.diff", "html_url": "https://github.com/huggingface/datasets/pull/7613", "merged_at": "2025-06-13T12:30:22Z", "patch_url": "https://github.com/huggingface/datasets/pull/7613.patch", "url": "https://api.github.com/repos/huggingface/datasets/pulls/7613" }
2025-06-13T09:02:24Z
2025-06-13T12:30:22Z
3:27:58
true
https://api.github.com/repos/huggingface/datasets/issues/7611
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7611/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7611/comments
https://api.github.com/repos/huggingface/datasets/issues/7611/events
https://github.com/huggingface/datasets/issues/7611
3,141,383,940
I_kwDODunzps67PbcE
7,611
Code example for dataset.add_column() does not reflect correct way to use function
{ "avatar_url": "https://avatars.githubusercontent.com/u/31388649?v=4", "events_url": "https://api.github.com/users/shaily99/events{/privacy}", "followers_url": "https://api.github.com/users/shaily99/followers", "following_url": "https://api.github.com/users/shaily99/following{/other_user}", "gists_url": "https://api.github.com/users/shaily99/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shaily99", "id": 31388649, "login": "shaily99", "node_id": "MDQ6VXNlcjMxMzg4NjQ5", "organizations_url": "https://api.github.com/users/shaily99/orgs", "received_events_url": "https://api.github.com/users/shaily99/received_events", "repos_url": "https://api.github.com/users/shaily99/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shaily99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shaily99/subscriptions", "type": "User", "url": "https://api.github.com/users/shaily99", "user_view_type": "public" }
[]
closed
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Hi @shaily99 \n\nThanks for pointing this out — you're absolutely right!\n\nThe current example in the docstring for add_column() implies in-place modification, which is misleading since add_column() actually returns a new dataset.", "created_at": "2025-06-27T05:15:22Z", "html_url": "https://github.com/huggingface/datasets/issues/7611#issuecomment-3011701955", "id": 3011701955, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7611", "node_id": "IC_kwDODunzps6zguzD", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011701955/reactions" }, "updated_at": "2025-06-27T05:15:22Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011701955", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "CONTRIBUTOR", "body": "#self-assign\n", "created_at": "2025-06-27T05:15:32Z", "html_url": "https://github.com/huggingface/datasets/issues/7611#issuecomment-3011702238", "id": 3011702238, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7611", "node_id": "IC_kwDODunzps6zgu3e", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011702238/reactions" }, "updated_at": "2025-06-27T05:15:32Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011702238", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } } ]
2025-06-12T19:42:29Z
2025-07-17T13:14:18Z
2025-07-17T13:14:18Z
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
https://github.com/huggingface/datasets/blame/38d4d0e11e22fdbc4acf373d2421d25abeb43439/src/datasets/arrow_dataset.py#L5925C10-L5925C10 The example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong -- it cannot. It returns a new dataset with the column added to it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lhoestq", "id": 42851186, "login": "lhoestq", "node_id": "MDQ6VXNlcjQyODUxMTg2", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "repos_url": "https://api.github.com/users/lhoestq/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "type": "User", "url": "https://api.github.com/users/lhoestq", "user_view_type": "public" }
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/7611/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7611/timeline
null
completed
null
null
2025-06-12T19:42:29Z
2025-07-17T13:14:18Z
34 days, 17:31:49
false
https://api.github.com/repos/huggingface/datasets/issues/7610
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7610/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7610/comments
https://api.github.com/repos/huggingface/datasets/issues/7610/events
https://github.com/huggingface/datasets/issues/7610
3,141,281,560
I_kwDODunzps67PCcY
7,610
i cant confirm email
{ "avatar_url": "https://avatars.githubusercontent.com/u/187984415?v=4", "events_url": "https://api.github.com/users/lykamspam/events{/privacy}", "followers_url": "https://api.github.com/users/lykamspam/followers", "following_url": "https://api.github.com/users/lykamspam/following{/other_user}", "gists_url": "https://api.github.com/users/lykamspam/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lykamspam", "id": 187984415, "login": "lykamspam", "node_id": "U_kgDOCzRqHw", "organizations_url": "https://api.github.com/users/lykamspam/orgs", "received_events_url": "https://api.github.com/users/lykamspam/received_events", "repos_url": "https://api.github.com/users/lykamspam/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lykamspam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lykamspam/subscriptions", "type": "User", "url": "https://api.github.com/users/lykamspam", "user_view_type": "public" }
[]
open
false
null
[]
null
[ { "author_association": "CONTRIBUTOR", "body": "Will you please clarify the issue by some screenshots or more in-depth explanation?", "created_at": "2025-06-27T05:10:06Z", "html_url": "https://github.com/huggingface/datasets/issues/7610#issuecomment-3011691722", "id": 3011691722, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7610", "node_id": "IC_kwDODunzps6zgsTK", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 1, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011691722/reactions" }, "updated_at": "2025-06-27T05:10:06Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011691722", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArjunJagdale", "id": 142811259, "login": "ArjunJagdale", "node_id": "U_kgDOCIMgew", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "type": "User", "url": "https://api.github.com/users/ArjunJagdale", "user_view_type": "public" } }, { "author_association": "NONE", "body": "![Image](https://github.com/user-attachments/assets/ebe58239-72ef-43f6-a849-35736878fbf3)\nThis is clarify answer. I have not received a letter.\n\n**The graphic at the top shows how I don't get any letter. Can you show in a clear way how you don't get a letter from me?**", "created_at": "2025-06-27T14:36:47Z", "html_url": "https://github.com/huggingface/datasets/issues/7610#issuecomment-3013302278", "id": 3013302278, "issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7610", "node_id": "IC_kwDODunzps6zm1gG", "performed_via_github_app": null, "reactions": { "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 1, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013302278/reactions" }, "updated_at": "2025-06-27T14:36:47Z", "url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013302278", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/187984415?v=4", "events_url": "https://api.github.com/users/lykamspam/events{/privacy}", "followers_url": "https://api.github.com/users/lykamspam/followers", "following_url": "https://api.github.com/users/lykamspam/following{/other_user}", "gists_url": "https://api.github.com/users/lykamspam/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lykamspam", "id": 187984415, "login": "lykamspam", "node_id": "U_kgDOCzRqHw", "organizations_url": "https://api.github.com/users/lykamspam/orgs", "received_events_url": "https://api.github.com/users/lykamspam/received_events", "repos_url": "https://api.github.com/users/lykamspam/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lykamspam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lykamspam/subscriptions", "type": "User", "url": "https://api.github.com/users/lykamspam", "user_view_type": "public" } } ]
2025-06-12T18:58:49Z
2025-06-27T14:36:47Z
null
NONE
null
null
{ "completed": 0, "percent_completed": 0, "total": 0 }
### Describe the bug This is dificult, I cant confirm email because I'm not get any email! I cant post forum because I cant confirm email! I can send help desk because... no exist on web page. paragraph 44 ### Steps to reproduce the bug rthjrtrt ### Expected behavior ewtgfwetgf ### Environment info sdgfswdegfwe
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/huggingface/datasets/issues/7610/reactions" }
https://api.github.com/repos/huggingface/datasets/issues/7610/timeline
null
null
null
null
2025-06-12T18:58:49Z
null
null
false