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/7609
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7609/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7609/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7609/events
|
https://github.com/huggingface/datasets/pull/7609
| 3,140,373,128
|
PR_kwDODunzps6aOQ_g
| 7,609
|
Update `_dill.py` to use `co_linetable` for Python 3.10+ in place of `co_lnotab`
|
{
"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": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7609). 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-12T13:49:24Z",
"html_url": "https://github.com/huggingface/datasets/pull/7609#issuecomment-2966816572",
"id": 2966816572,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7609",
"node_id": "IC_kwDODunzps6w1gc8",
"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/2966816572/reactions"
},
"updated_at": "2025-06-12T13:49:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2966816572",
"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": "not 100% sure either, I tried removing unnecessary checks - let me know if they sound good to you otherwise I'll revert",
"created_at": "2025-06-12T14:49:28Z",
"html_url": "https://github.com/huggingface/datasets/pull/7609#issuecomment-2967154225",
"id": 2967154225,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7609",
"node_id": "IC_kwDODunzps6w2y4x",
"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/2967154225/reactions"
},
"updated_at": "2025-06-12T14:49:28Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967154225",
"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": "I can't reproduce the warning anymore... 🤦🏻♂️\r\n",
"created_at": "2025-06-13T14:01:05Z",
"html_url": "https://github.com/huggingface/datasets/pull/7609#issuecomment-2970508932",
"id": 2970508932,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7609",
"node_id": "IC_kwDODunzps6xDl6E",
"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/2970508932/reactions"
},
"updated_at": "2025-06-13T14:01:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970508932",
"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"
}
},
{
"author_association": "MEMBER",
"body": "Ah now I can reproduce!, and I can confirm that the warning is gone when you apply the change in this PR",
"created_at": "2025-06-14T18:07:50Z",
"html_url": "https://github.com/huggingface/datasets/pull/7609#issuecomment-2972940039",
"id": 2972940039,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7609",
"node_id": "IC_kwDODunzps6xM3cH",
"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/2972940039/reactions"
},
"updated_at": "2025-06-14T18:07:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2972940039",
"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-12T13:47:01Z
| 2025-06-16T12:14:10Z
| 2025-06-16T12:14:08Z
|
MEMBER
| null | null | null |
Not 100% about this one, but it seems to be recommended.
```
/fsx/qgallouedec/miniconda3/envs/trl/lib/python3.12/site-packages/datasets/utils/_dill.py:385: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
```
Tests pass locally. And the warning is gone with this change.
https://peps.python.org/pep-0626/#backwards-compatibility
|
{
"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/7609/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7609/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7609.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7609",
"merged_at": "2025-06-16T12:14:08Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7609.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7609"
}
| 2025-06-12T13:47:01Z
| 2025-06-16T12:14:08Z
| 3 days, 22:27:07
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7608
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7608/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7608/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7608/events
|
https://github.com/huggingface/datasets/pull/7608
| 3,137,564,259
|
PR_kwDODunzps6aEr6b
| 7,608
|
Tests typing and fixes for 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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7608). 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-11T17:16:30Z",
"html_url": "https://github.com/huggingface/datasets/pull/7608#issuecomment-2963597325",
"id": 2963597325,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7608",
"node_id": "IC_kwDODunzps6wpOgN",
"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/2963597325/reactions"
},
"updated_at": "2025-06-11T17:16:30Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963597325",
"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-11T17:13:52Z
| 2025-06-12T21:15:23Z
| 2025-06-12T21:15:21Z
|
MEMBER
| null | null | null |
todo:
- [x] fix TestPushToHub.test_push_dataset_dict_to_hub_iterable_num_proc
|
{
"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/7608/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7608/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7608.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7608",
"merged_at": "2025-06-12T21:15:21Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7608.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7608"
}
| 2025-06-11T17:13:52Z
| 2025-06-12T21:15:21Z
| 1 day, 4:01:29
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7607
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7607/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7607/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7607/events
|
https://github.com/huggingface/datasets/issues/7607
| 3,135,722,560
|
I_kwDODunzps6651RA
| 7,607
|
Video and audio decoding with torchcodec
|
{
"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"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Good idea ! let me know if you have any question or if I can help",
"created_at": "2025-06-11T14:32:28Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2963080237",
"id": 2963080237,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6wnQQt",
"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/2963080237/reactions"
},
"updated_at": "2025-06-11T14:32:28Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963080237",
"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 Almost finished, but I'm having trouble understanding this test case.\nThis is how it looks originally. The `map` function is called, and then `with_format` is called. According to the test case example[\"video\"] is supposed to be a VideoReader. However, according to the [docs](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.with_format) its supposed to be the type passed into `with_format` (numpy in this case). My implementation with VideoDecoder currently does the latter, is that correct, or should it be a VideoDecoder object instead?\n```\n@require_torchvision\ndef test_dataset_with_video_map_and_formatted(shared_datadir):\n from torchvision.io import VideoReader\n\n video_path = str(shared_datadir / \"test_video_66x50.mov\")\n data = {\"video\": [video_path]}\n features = Features({\"video\": Video()})\n dset = Dataset.from_dict(data, features=features)\n dset = dset.map(lambda x: x).with_format(\"numpy\")\n example = dset[0]\n assert isinstance(example[\"video\"], VideoReader)\n # assert isinstance(example[\"video\"][0], np.ndarray)\n\n # from bytes\n with open(video_path, \"rb\") as f:\n data = {\"video\": [f.read()]}\n dset = Dataset.from_dict(data, features=features)\n dset = dset.map(lambda x: x).with_format(\"numpy\")\n example = dset[0]\n assert isinstance(example[\"video\"], VideoReader)\n # assert isinstance(example[\"video\"][0], np.ndarray)\n\n```",
"created_at": "2025-06-12T07:08:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2965389103",
"id": 2965389103,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6wwD8v",
"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/2965389103/reactions"
},
"updated_at": "2025-06-12T07:08:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2965389103",
"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": "Hi ! It's maybe more convenient for users to always have a VideoDecoder, since they might only access a few frames and not the full video. So IMO it's fine to always return a VideoDecoder (maybe later we can extend the VideoDecoder to return other types of tensors than numpy arrays though ? 👀 it's not crucial for now though)",
"created_at": "2025-06-12T14:18:05Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967019150",
"id": 2967019150,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w2R6O",
"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/2967019150/reactions"
},
"updated_at": "2025-06-12T14:18:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967019150",
"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 ya that makes sense, looks like this functionality lives in `src/datasets/formatting`, where an exception is made for VideoReader objects to remain as themselves when being formatted. I'll make the necessary changes. ",
"created_at": "2025-06-12T14:54:34Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967171700",
"id": 2967171700,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w23J0",
"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/2967171700/reactions"
},
"updated_at": "2025-06-12T14:54:34Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967171700",
"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": "CONTRIBUTOR",
"body": "@lhoestq I'm assuming this was also the case for torchaudio objects?",
"created_at": "2025-06-12T14:55:40Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967176012",
"id": 2967176012,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w24NM",
"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/2967176012/reactions"
},
"updated_at": "2025-06-12T14:55:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967176012",
"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": "We're not using torchaudio but soundfile. But anyway we unfortunately decode full audio files instead of returning a Reader and it can be interesting to fix this. Currently it always returns a dict {\"array\": np.array(...), \"sampling_rate\": int(...)}, while it would be cool to return a reader with seek() and read() - like methods as for videos.\n\n(there is a way to make the audio change backward compatible anyway by allowing `reader[\"array\"]` to return the full array)",
"created_at": "2025-06-12T14:59:13Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967193559",
"id": 2967193559,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w28fX",
"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/2967193559/reactions"
},
"updated_at": "2025-06-12T14:59:13Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967193559",
"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 (sorry for the spam btw)\nLooks like there's a # TODO to have these returned as np.arrays instead. I'm curious why the authors didn't do it initially. Maybe a performance thing?\nThis is from `/src/datasets/formatting/np_formatter.py` line 70\n```\nif config.TORCHVISION_AVAILABLE and \"torchvision\" in sys.modules:\n from torchvision.io import VideoReader\n\n if isinstance(value, VideoReader):\n return value # TODO(QL): set output to np arrays ?\n```",
"created_at": "2025-06-12T15:00:20Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967198659",
"id": 2967198659,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w29vD",
"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/2967198659/reactions"
},
"updated_at": "2025-06-12T15:00:20Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967198659",
"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": "CONTRIBUTOR",
"body": "Oh cool ya this is something that I could implement with torchcodec. I can add that to the PR as well.",
"created_at": "2025-06-12T15:30:00Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967308106",
"id": 2967308106,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w3YdK",
"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/2967308106/reactions"
},
"updated_at": "2025-06-12T15:30:00Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967308106",
"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": "> Looks like there's a # TODO to have these returned as np.arrays instead. I'm curious why the authors didn't do it initially. Maybe a performance thing?\n\nyea that was me, I focused on a simple logic to start with, since I knew there was torchcodec coming and maybe wasn't worth it at the time ^^\n\nbut anyway it's fine to start with a logic without formatting to start with and then iterate",
"created_at": "2025-06-12T19:03:15Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2967870875",
"id": 2967870875,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w5h2b",
"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/2967870875/reactions"
},
"updated_at": "2025-06-12T19:03:15Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2967870875",
"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": "Hey @lhoestq I ran into an error with this test case for the Audio feature\n\n```\n@require_sndfile\n@require_torchcodec\ndef test_dataset_with_audio_feature_map_is_decoded(shared_datadir):\n audio_path = str(shared_datadir / \"test_audio_44100.wav\")\n data = {\"audio\": [audio_path], \"text\": [\"Hello\"]}\n features = Features({\"audio\": Audio(), \"text\": Value(\"string\")})\n dset = Dataset.from_dict(data, features=features)\n\n def process_audio_sampling_rate_by_example(example):\n sample_rate = example[\"audio\"].get_all_samples().sample_rate\n example[\"double_sampling_rate\"] = 2 * sample_rate\n return example\n\n decoded_dset = dset.map(process_audio_sampling_rate_by_example)\n for item in decoded_dset.cast_column(\"audio\", Audio(decode=False)):\n assert item.keys() == {\"audio\", \"text\", \"double_sampling_rate\"}\n assert item[\"double_sampling_rate\"] == 88200\n\n def process_audio_sampling_rate_by_batch(batch):\n double_sampling_rates = []\n for audio in batch[\"audio\"]:\n double_sampling_rates.append(2 * audio.get_all_samples().sample_rate)\n batch[\"double_sampling_rate\"] = double_sampling_rates\n return batch\n\n decoded_dset = dset.map(process_audio_sampling_rate_by_batch, batched=True)\n for item in decoded_dset.cast_column(\"audio\", Audio(decode=False)):\n assert item.keys() == {\"audio\", \"text\", \"double_sampling_rate\"}\n assert item[\"double_sampling_rate\"] == 88200\n```\n\nthis is the error below\n```\nsrc/datasets/arrow_writer.py:626: in write_batch\n arrays.append(pa.array(typed_sequence))\n.....\nFAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded - pyarrow.lib.ArrowInvalid: Could not convert <torchcodec.decoders._audio_decoder.AudioDecoder object at 0x138cdd810> with type AudioDecoder: did not recognize Python value type when inferring an Arrow data type\n```\n\nBy the way I copied the test case and ran it on the original implementation of the Video feature, which uses the torchvision backend and I got a similar error.\n```\ndef test_dataset_with_video_feature_map_is_decoded(shared_datadir):\n video_path = str(shared_datadir / \"test_video_66x50.mov\")\n data = {\"video\": [video_path], \"text\": [\"Hello\"]}\n features = Features({\"video\": Video(), \"text\": Value(\"string\")})\n dset = Dataset.from_dict(data, features=features)\n\n def process_audio_sampling_rate_by_example(example):\n metadata = example[\"video\"].get_metadata()\n example[\"double_fps\"] = 2 * metadata[\"video\"][\"fps\"][0]\n return example\n\n decoded_dset = dset.map(process_audio_sampling_rate_by_example)\n for item in decoded_dset.cast_column(\"video\", Video(decode=False)):\n assert item.keys() == {\"video\", \"text\", \"double_fps\"}\n assert item[\"double_fps\"] == 2 * 10 # prollly wont work past 2*10 is made up!! shouldn't pass\n\n def process_audio_sampling_rate_by_batch(batch):\n double_fps = []\n for video in batch[\"video\"]:\n double_fps.append(2 * video.metadata.begin_stream_seconds)\n batch[\"double_fps\"] = double_fps\n return batch\n\n decoded_dset = dset.map(process_audio_sampling_rate_by_batch, batched=True)\n for item in decoded_dset.cast_column(\"video\", Video(decode=False)):\n assert item.keys() == {\"video\", \"text\", \"double_fps\"}\n assert item[\"double_fps\"] == 2 * 10 # prollly wont work past this no reason it should\n```\n\nI was wondering if these error's are expected. They seem to be coming from the fact that the function `_cast_to_python_objects` in `src/datasets/features/features.py` doesn't handle VideoDecoders or AudioDecoders. I was able to fix it and get rid of the error by adding this to the bottom of the function\n```\n elif config.TORCHCODEC_AVAILABLE and \"torchcodec\" in sys.modules and isinstance(obj, VideoDecoder):\n v = Video()\n return v.encode_example(obj), True\n elif config.TORCHCODEC_AVAILABLE and \"torchcodec\" in sys.modules and isinstance(obj, AudioDecoder):\n a = Audio()\n return a.encode_example(obj), True\n```\nThis fixed it, but I just want to make sure I'm not adding things that are messing up the intended functionality.",
"created_at": "2025-06-13T08:41:22Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2969559916",
"id": 2969559916,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w_-Ns",
"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/2969559916/reactions"
},
"updated_at": "2025-06-13T08:41:22Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2969559916",
"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": "This is the right fix ! :)",
"created_at": "2025-06-13T08:43:05Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2969564546",
"id": 2969564546,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6w__WC",
"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/2969564546/reactions"
},
"updated_at": "2025-06-13T08:43:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2969564546",
"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": "Btw I just remembered that we were using soundfile because it can support a wide range of audio formats, is it also the case for torchcodec ? including ogg, opus for example",
"created_at": "2025-06-13T12:34:10Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2970254594",
"id": 2970254594,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6xCn0C",
"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/2970254594/reactions"
},
"updated_at": "2025-06-13T12:34:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970254594",
"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": "Yes from what I understand torchcodec supports everything ffmpeg supports.",
"created_at": "2025-06-13T12:40:20Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2970269409",
"id": 2970269409,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6xCrbh",
"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/2970269409/reactions"
},
"updated_at": "2025-06-13T12:40:20Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970269409",
"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": "CONTRIBUTOR",
"body": "Okay just finished. However, I wasn't able to pass this test case:\n```python\n@require_torchcodec\n@require_sndfile\[email protected](\"streaming\", [False, True])\ndef test_load_dataset_with_audio_feature(streaming, jsonl_audio_dataset_path, shared_datadir):\n from torchcodec.decoders import AudioDecoder\n audio_path = str(shared_datadir / \"test_audio_44100.wav\")\n data_files = jsonl_audio_dataset_path\n features = Features({\"audio\": Audio(), \"text\": Value(\"string\")})\n dset = load_dataset(\"json\", split=\"train\", data_files=data_files, features=features, streaming=streaming)\n item = dset[0] if not streaming else next(iter(dset))\n assert item.keys() == {\"audio\", \"text\"}\n assert isinstance(item[\"audio\"], AudioDecoder)\n samples = item[\"audio\"].get_all_samples()\n assert samples.sample_rate == 44100\n assert samples.data.shape == (1, 202311)\n```\n\nIt returned this error\n```\nstreaming = False, jsonl_audio_dataset_path = '/private/var/folders/47/c7dlgs_n6lx8rtr8f5w5m1m00000gn/T/pytest-of-tytodd/pytest-103/data2/audio_dataset.jsonl'\nshared_datadir = PosixPath('/private/var/folders/47/c7dlgs_n6lx8rtr8f5w5m1m00000gn/T/pytest-of-tytodd/pytest-103/test_load_dataset_with_audio_f0/data')\n\n @require_torchcodec\n @require_sndfile\n @pytest.mark.parametrize(\"streaming\", [False, True])\n def test_load_dataset_with_audio_feature(streaming, jsonl_audio_dataset_path, shared_datadir):\n from torchcodec.decoders import AudioDecoder\n audio_path = str(shared_datadir / \"test_audio_44100.wav\")\n data_files = jsonl_audio_dataset_path\n features = Features({\"audio\": Audio(), \"text\": Value(\"string\")})\n> dset = load_dataset(\"json\", split=\"train\", data_files=data_files, features=features, streaming=streaming)\n\ntests/features/test_audio.py:686: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nsrc/datasets/load.py:1418: in load_dataset\n builder_instance.download_and_prepare(\nsrc/datasets/builder.py:925: in download_and_prepare\n self._download_and_prepare(\nsrc/datasets/builder.py:1019: in _download_and_prepare\n verify_splits(self.info.splits, split_dict)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nexpected_splits = {'train': SplitInfo(name='train', num_bytes=2351563, num_examples=10000, shard_lengths=None, dataset_name=None), 'validation': SplitInfo(name='validation', num_bytes=238418, num_examples=1000, shard_lengths=None, dataset_name=None)}\nrecorded_splits = {'train': SplitInfo(name='train', num_bytes=167, num_examples=1, shard_lengths=None, dataset_name='json')}\n\n def verify_splits(expected_splits: Optional[dict], recorded_splits: dict):\n if expected_splits is None:\n logger.info(\"Unable to verify splits sizes.\")\n return\n if len(set(expected_splits) - set(recorded_splits)) > 0:\n> raise ExpectedMoreSplitsError(str(set(expected_splits) - set(recorded_splits)))\nE datasets.exceptions.ExpectedMoreSplitsError: {'validation'}\n\nsrc/datasets/utils/info_utils.py:68: ExpectedMoreSplitsError\n```\n\nIt looks like this test case wasn't passing when I forked the repo, so I assume I didn't do anything to break it. I also added this case to `test_video.py`, and it fails there as well. If this looks good, I'll go ahead and submit the PR.",
"created_at": "2025-06-13T14:17:59Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2970556285",
"id": 2970556285,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6xDxd9",
"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/2970556285/reactions"
},
"updated_at": "2025-06-13T14:18:29Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970556285",
"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": "Awesome ! yes feel free to submit the PR, I can see what I can do for the remaining tests",
"created_at": "2025-06-13T14:51:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2970651280",
"id": 2970651280,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6xEIqQ",
"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/2970651280/reactions"
},
"updated_at": "2025-06-13T14:51:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970651280",
"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 submitted it #7616 ",
"created_at": "2025-06-13T19:38:41Z",
"html_url": "https://github.com/huggingface/datasets/issues/7607#issuecomment-2971457146",
"id": 2971457146,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7607",
"node_id": "IC_kwDODunzps6xHNZ6",
"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/2971457146/reactions"
},
"updated_at": "2025-06-13T19:38:41Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2971457146",
"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"
}
}
] | 2025-06-11T07:02:30Z
| 2025-06-19T18:25:49Z
| 2025-06-19T18:25:49Z
|
CONTRIBUTOR
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Pytorch is migrating video processing to torchcodec and it's pretty cool. It would be nice to migrate both the audio and video features to use torchcodec instead of torchaudio/video.
### Motivation
My use case is I'm working on a multimodal AV model, and what's nice about torchcodec is I can extract the audio tensors directly from MP4 files. Also, I can easily resample video data to whatever fps I like on the fly. I haven't found an easy/efficient way to do this with torchvision.
### Your contribution
I’m modifying the Video dataclass to use torchcodec in place of the current backend, starting from a stable commit for a project I’m working on. If it ends up working well, I’m happy to open a PR on main.
|
{
"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/7607/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7607/timeline
| null |
completed
| null | null | 2025-06-11T07:02:30Z
| 2025-06-19T18:25:49Z
| 8 days, 11:23:19
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7606
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7606/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7606/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7606/events
|
https://github.com/huggingface/datasets/pull/7606
| 3,133,848,546
|
PR_kwDODunzps6Z3_kV
| 7,606
|
Add `num_proc=` to `.push_to_hub()` (Dataset and IterableDataset)
|
{
"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_7606). 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-10T14:37:34Z",
"html_url": "https://github.com/huggingface/datasets/pull/7606#issuecomment-2959512116",
"id": 2959512116,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7606",
"node_id": "IC_kwDODunzps6wZpI0",
"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/2959512116/reactions"
},
"updated_at": "2025-06-10T14:37:34Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2959512116",
"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-10T14:35:10Z
| 2025-06-11T16:47:28Z
| 2025-06-11T16:47:25Z
|
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": 7,
"laugh": 0,
"rocket": 0,
"total_count": 7,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7606/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7606/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7606.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7606",
"merged_at": "2025-06-11T16:47:25Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7606.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7606"
}
| 2025-06-10T14:35:10Z
| 2025-06-11T16:47:25Z
| 1 day, 2:12:15
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7604
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7604/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7604/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7604/events
|
https://github.com/huggingface/datasets/pull/7604
| 3,130,837,169
|
PR_kwDODunzps6Ztrm_
| 7,604
|
Docs and more methods for IterableDataset: push_to_hub, to_parquet...
|
{
"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_7604). 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-09T16:49:06Z",
"html_url": "https://github.com/huggingface/datasets/pull/7604#issuecomment-2956344702",
"id": 2956344702,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7604",
"node_id": "IC_kwDODunzps6wNj1-",
"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/2956344702/reactions"
},
"updated_at": "2025-06-09T16:49:06Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2956344702",
"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-09T16:44:40Z
| 2025-06-10T13:15:23Z
| 2025-06-10T13:15:21Z
|
MEMBER
| null | null | null |
to_csv, to_json, to_sql, to_pandas, to_polars, to_dict, to_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"
}
|
{
"+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/7604/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7604/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7604.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7604",
"merged_at": "2025-06-10T13:15:21Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7604.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7604"
}
| 2025-06-09T16:44:40Z
| 2025-06-10T13:15:21Z
| 20:30:41
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7605
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7605/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7605/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7605/events
|
https://github.com/huggingface/datasets/pull/7605
| 3,131,636,882
|
PR_kwDODunzps6ZwcPp
| 7,605
|
Make `push_to_hub` atomic (#7600)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"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_7605). 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-11T14:09:40Z",
"html_url": "https://github.com/huggingface/datasets/pull/7605#issuecomment-2962994027",
"id": 2962994027,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7605",
"node_id": "IC_kwDODunzps6wm7Nr",
"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/2962994027/reactions"
},
"updated_at": "2025-06-11T14:09:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2962994027",
"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": "Hi ! unfortunately we can't allow atomic commits for commits with hundreds of files additions (HF would time out)\r\n\r\nMaybe an alternative would be to retry if there was a commit in between ? this could be the default behavior as well",
"created_at": "2025-06-11T14:13:15Z",
"html_url": "https://github.com/huggingface/datasets/pull/7605#issuecomment-2963006746",
"id": 2963006746,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7605",
"node_id": "IC_kwDODunzps6wm-Ua",
"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/2963006746/reactions"
},
"updated_at": "2025-06-11T14:13:15Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963006746",
"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 taking a look – much appreciated!\r\n\r\nI've verified that commits with up to 20,000 files don't time out and the commit time scales linearly with the number of operations enqueued. It took just under 2 minutes to complete (successfully) the 20k file commit.\r\n\r\nThe fundamental issue I'm trying to tackle here is dataset corruption: getting into a state where a dataset on the hub cannot be used when downloaded. Non-atomic commits won't get us there, I think. If, for example, 3 of 5 commits complete and the machine/process calling `push_to_hub` has a network, hardware, or other failure that prevents it from completing the rest of the commits (even with retries) we'll now have some pointer files pointing to the new data and others pointing to the old data => corrupted. While this may seem like an unlikely scenario, it's a regular occurrence at scale.\r\n\r\nIf you still feel strongly that atomic commits are not the right way to go, I can either set it to not be the default or remove it entirely from this PR.\r\n\r\nAs for retries, it's a good idea. In a non-atomic world, the logic gets more complicated:\r\n- keep an explicit queue of pending add/delete operations\r\n- chunkwise pop from queue and commit with `parent_commit` set to previous chunked commit hash\r\n- if `create_commit` fails:\r\n - re-fetch README and set `parent_commit` to latest hash for `revision`\r\n - re-generate dataset card content\r\n - swap old `CommitOperationAdd` with new one for README in the pending queue\r\n- resume chunkwise committing from the queue as above\r\n\r\nEntirely doable, but more involved than I signed up for with this PR.",
"created_at": "2025-06-11T15:11:05Z",
"html_url": "https://github.com/huggingface/datasets/pull/7605#issuecomment-2963215614",
"id": 2963215614,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7605",
"node_id": "IC_kwDODunzps6wnxT-",
"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/2963215614/reactions"
},
"updated_at": "2025-06-11T15:11:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963215614",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Just to clarify – setting the `parent_commit` can be separated from making the commit atomic (which is what I'm suggesting by either atomic commits not the default or removing it from this PR). It's crucial to set the parent commit to avoid the read-modify-write race condition on the README schema.",
"created_at": "2025-06-11T15:56:58Z",
"html_url": "https://github.com/huggingface/datasets/pull/7605#issuecomment-2963367985",
"id": 2963367985,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7605",
"node_id": "IC_kwDODunzps6woWgx",
"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/2963367985/reactions"
},
"updated_at": "2025-06-11T15:56:58Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963367985",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
}
] | 2025-06-09T22:29:38Z
| 2025-06-23T19:32:08Z
| 2025-06-23T19:32:08Z
|
NONE
| null | null | null | null |
{
"avatar_url": "https://avatars.githubusercontent.com/u/60325139?v=4",
"events_url": "https://api.github.com/users/lmnt-com/events{/privacy}",
"followers_url": "https://api.github.com/users/lmnt-com/followers",
"following_url": "https://api.github.com/users/lmnt-com/following{/other_user}",
"gists_url": "https://api.github.com/users/lmnt-com/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lmnt-com",
"id": 60325139,
"login": "lmnt-com",
"node_id": "MDEyOk9yZ2FuaXphdGlvbjYwMzI1MTM5",
"organizations_url": "https://api.github.com/users/lmnt-com/orgs",
"received_events_url": "https://api.github.com/users/lmnt-com/received_events",
"repos_url": "https://api.github.com/users/lmnt-com/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lmnt-com/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lmnt-com/subscriptions",
"type": "Organization",
"url": "https://api.github.com/users/lmnt-com",
"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/7605/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7605/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7605.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7605",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7605.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7605"
}
| 2025-06-09T22:29:38Z
| 2025-06-23T19:32:08Z
| 13 days, 21:02:30
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7602
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7602/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7602/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7602/events
|
https://github.com/huggingface/datasets/pull/7602
| 3,128,758,924
|
PR_kwDODunzps6Zmk99
| 7,602
|
Enhance error handling and input validation across multiple modules
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/147746955?v=4",
"events_url": "https://api.github.com/users/mohiuddin-khan-shiam/events{/privacy}",
"followers_url": "https://api.github.com/users/mohiuddin-khan-shiam/followers",
"following_url": "https://api.github.com/users/mohiuddin-khan-shiam/following{/other_user}",
"gists_url": "https://api.github.com/users/mohiuddin-khan-shiam/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mohiuddin-khan-shiam",
"id": 147746955,
"login": "mohiuddin-khan-shiam",
"node_id": "U_kgDOCM5wiw",
"organizations_url": "https://api.github.com/users/mohiuddin-khan-shiam/orgs",
"received_events_url": "https://api.github.com/users/mohiuddin-khan-shiam/received_events",
"repos_url": "https://api.github.com/users/mohiuddin-khan-shiam/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mohiuddin-khan-shiam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mohiuddin-khan-shiam/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mohiuddin-khan-shiam",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[] | 2025-06-08T23:01:06Z
| 2025-06-08T23:01:06Z
| null |
NONE
| null | null | null |
This PR improves the robustness and user experience by:
1. **Audio Module**:
- Added clear error messages when required fields ('path' or 'bytes') are missing in audio encoding
2. **DatasetDict**:
- Enhanced key access error messages to show available splits when an invalid key is accessed
3. **NonMutableDict**:
- Added input validation for the update() method to ensure proper mapping types
4. **Arrow Reader**:
- Improved error messages for small dataset percentage splits with suggestions for alternatives
5. **FaissIndex**:
- Strengthened input validation with descriptive error messages
- Added proper type checking and shape validation for search queries
These changes make the code more maintainable and user-friendly by providing actionable feedback when issues arise.
| 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/7602/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7602/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7602.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7602",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7602.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7602"
}
| 2025-06-08T23:01:06Z
| null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7603
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7603/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7603/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7603/events
|
https://github.com/huggingface/datasets/pull/7603
| 3,130,394,563
|
PR_kwDODunzps6ZsKin
| 7,603
|
No TF in win tests
|
{
"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_7603). 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-09T15:04:05Z",
"html_url": "https://github.com/huggingface/datasets/pull/7603#issuecomment-2956069523",
"id": 2956069523,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7603",
"node_id": "IC_kwDODunzps6wMgqT",
"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/2956069523/reactions"
},
"updated_at": "2025-06-09T15:04:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2956069523",
"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-09T13:56:34Z
| 2025-06-09T15:33:31Z
| 2025-06-09T15:33:30Z
|
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/7603/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7603/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7603.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7603",
"merged_at": "2025-06-09T15:33:30Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7603.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7603"
}
| 2025-06-09T13:56:34Z
| 2025-06-09T15:33:30Z
| 1:36:56
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7600
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7600/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7600/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7600/events
|
https://github.com/huggingface/datasets/issues/7600
| 3,127,296,182
|
I_kwDODunzps66ZsC2
| 7,600
|
`push_to_hub` is not concurrency safe (dataset schema corruption)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "@lhoestq can you please take a look? I've submitted a PR that fixes this issue. Thanks.",
"created_at": "2025-06-09T22:30:31Z",
"html_url": "https://github.com/huggingface/datasets/issues/7600#issuecomment-2957183401",
"id": 2957183401,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7600",
"node_id": "IC_kwDODunzps6wQwmp",
"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/2957183401/reactions"
},
"updated_at": "2025-06-09T22:30:31Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2957183401",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Thanks for the ping ! As I said in https://github.com/huggingface/datasets/pull/7605 there is maybe a more general approach using retries :)",
"created_at": "2025-06-11T14:14:04Z",
"html_url": "https://github.com/huggingface/datasets/issues/7600#issuecomment-2963009643",
"id": 2963009643,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7600",
"node_id": "IC_kwDODunzps6wm_Br",
"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/2963009643/reactions"
},
"updated_at": "2025-06-11T14:14:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963009643",
"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": "Dropping this due to inactivity; we've implemented push_to_hub outside of HF datasets that's concurrency safe. Feel free to use the code I provided as a starting point if there's still interest in addressing this issue.",
"created_at": "2025-06-23T19:36:37Z",
"html_url": "https://github.com/huggingface/datasets/issues/7600#issuecomment-2997723601",
"id": 2997723601,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7600",
"node_id": "IC_kwDODunzps6yraHR",
"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/2997723601/reactions"
},
"updated_at": "2025-06-23T19:36:37Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2997723601",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Exploring another fix here: https://github.com/huggingface/datasets/issues/7600",
"created_at": "2025-07-30T09:33:50Z",
"html_url": "https://github.com/huggingface/datasets/issues/7600#issuecomment-3135533318",
"id": 3135533318,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7600",
"node_id": "IC_kwDODunzps665HEG",
"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/3135533318/reactions"
},
"updated_at": "2025-07-30T09:33:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3135533318",
"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-07T17:28:56Z
| 2025-07-30T09:33:50Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Concurrent processes modifying and pushing a dataset can overwrite each others' dataset card, leaving the dataset unusable.
Consider this scenario:
- we have an Arrow dataset
- there are `N` configs of the dataset
- there are `N` independent processes operating on each of the individual configs (e.g. adding a column, `new_col`)
- each process calls `push_to_hub` on their particular config when they're done processing
- all calls to `push_to_hub` succeed
- the `README.md` now has some configs with `new_col` added and some with `new_col` missing
Any attempt to load a config (using `load_dataset`) where `new_col` is missing will fail because of a schema mismatch between `README.md` and the Arrow files. Fixing the dataset requires updating `README.md` by hand with the correct schema for the affected config. In effect, `push_to_hub` is doing a `git push --force` (I found this behavior quite surprising).
We have hit this issue every time we run processing jobs over our datasets and have to fix corrupted schemas by hand.
Reading through the code, it seems that specifying a [`parent_commit`](https://github.com/huggingface/huggingface_hub/blob/v0.32.4/src/huggingface_hub/hf_api.py#L4587) hash around here https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L5794 would get us to a normal, non-forced git push, and avoid schema corruption. I'm not familiar enough with the code to know how to determine the commit hash from which the in-memory dataset card was loaded.
### Steps to reproduce the bug
See above.
### Expected behavior
Concurrent edits to disjoint configs of a dataset should never corrupt the dataset schema.
### Environment info
- `datasets` version: 2.20.0
- Platform: Linux-5.15.0-118-generic-x86_64-with-glibc2.35
- Python version: 3.10.14
- `huggingface_hub` version: 0.30.2
- PyArrow version: 19.0.1
- Pandas version: 2.2.2
- `fsspec` version: 2023.9.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/391004?v=4",
"events_url": "https://api.github.com/users/sharvil/events{/privacy}",
"followers_url": "https://api.github.com/users/sharvil/followers",
"following_url": "https://api.github.com/users/sharvil/following{/other_user}",
"gists_url": "https://api.github.com/users/sharvil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharvil",
"id": 391004,
"login": "sharvil",
"node_id": "MDQ6VXNlcjM5MTAwNA==",
"organizations_url": "https://api.github.com/users/sharvil/orgs",
"received_events_url": "https://api.github.com/users/sharvil/received_events",
"repos_url": "https://api.github.com/users/sharvil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharvil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharvil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharvil",
"user_view_type": "public"
}
|
{
"+1": 5,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 5,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7600/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7600/timeline
| null |
reopened
| null | null | 2025-06-07T17:28:56Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7599
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7599/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7599/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7599/events
|
https://github.com/huggingface/datasets/issues/7599
| 3,125,620,119
|
I_kwDODunzps66TS2X
| 7,599
|
My already working dataset (when uploaded few months ago) now is ignoring metadata.jsonl
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/97530443?v=4",
"events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/followers",
"following_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JuanCarlosMartinezSevilla",
"id": 97530443,
"login": "JuanCarlosMartinezSevilla",
"node_id": "U_kgDOBdAySw",
"organizations_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/orgs",
"received_events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/received_events",
"repos_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JuanCarlosMartinezSevilla",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "Maybe its been a recent update, but i can manage to load the metadata.jsonl separately from the images with:\n\n```\nmetadata = load_dataset(\"PRAIG/SMB\", split=\"train\", data_files=[\"*.jsonl\"])\nimages = load_dataset(\"PRAIG/SMB\", split=\"train\")\n```\nDo you know it this is an expected behaviour? This makes my dataset viewer to only load the images without the labeling of metadata.jsonl.\n\nThanks",
"created_at": "2025-06-08T12:55:10Z",
"html_url": "https://github.com/huggingface/datasets/issues/7599#issuecomment-2954056890",
"id": 2954056890,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7599",
"node_id": "IC_kwDODunzps6wE1S6",
"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/2954056890/reactions"
},
"updated_at": "2025-06-08T12:55:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2954056890",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/97530443?v=4",
"events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/followers",
"following_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JuanCarlosMartinezSevilla",
"id": 97530443,
"login": "JuanCarlosMartinezSevilla",
"node_id": "U_kgDOBdAySw",
"organizations_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/orgs",
"received_events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/received_events",
"repos_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JuanCarlosMartinezSevilla",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Hi ! this is because we now expect the metadata file to be inside the directory named after the split \"train\" (this way each split can have its own metadata and can be loaded independently)\n\nYou can fix that by configuring it explicitly in the dataset's README.md header:\n\n```yaml\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path:\n - \"train/**/*.png\"\n - \"metadata.jsonl\"\n```\n\n(or by moving the metadata.jsonl in train/ but in this case you also have to modify the content of the JSONL to fix the relative paths to the images)",
"created_at": "2025-06-11T14:36:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7599#issuecomment-2963095901",
"id": 2963095901,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7599",
"node_id": "IC_kwDODunzps6wnUFd",
"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/2963095901/reactions"
},
"updated_at": "2025-06-11T14:36:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963095901",
"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, dataset viewer is already working as expected!!",
"created_at": "2025-06-16T15:18:00Z",
"html_url": "https://github.com/huggingface/datasets/issues/7599#issuecomment-2977060437",
"id": 2977060437,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7599",
"node_id": "IC_kwDODunzps6xclZV",
"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/2977060437/reactions"
},
"updated_at": "2025-06-16T15:18:00Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2977060437",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/97530443?v=4",
"events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/followers",
"following_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JuanCarlosMartinezSevilla",
"id": 97530443,
"login": "JuanCarlosMartinezSevilla",
"node_id": "U_kgDOBdAySw",
"organizations_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/orgs",
"received_events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/received_events",
"repos_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JuanCarlosMartinezSevilla",
"user_view_type": "public"
}
}
] | 2025-06-06T18:59:00Z
| 2025-06-16T15:18:00Z
| 2025-06-16T15:18:00Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hi everyone, I uploaded my dataset https://huggingface.co/datasets/PRAIG/SMB a few months ago while I was waiting for a conference acceptance response. Without modifying anything in the dataset repository now the Dataset viewer is not rendering the metadata.jsonl annotations, neither it is being downloaded when using load_dataset. Can you please help? Thank you in advance.
### Steps to reproduce the bug
from datasets import load_dataset
ds = load_dataset("PRAIG/SMB")
ds = ds["train"]
### Expected behavior
It is expected to have all the metadata available in the jsonl file. Fields like: "score_id", "original_width", "original_height", "regions"... among others.
### Environment info
datasets==3.6.0, python 3.13.3 (but he problem is already in the huggingface dataset page)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/97530443?v=4",
"events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/followers",
"following_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JuanCarlosMartinezSevilla",
"id": 97530443,
"login": "JuanCarlosMartinezSevilla",
"node_id": "U_kgDOBdAySw",
"organizations_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/orgs",
"received_events_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/received_events",
"repos_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JuanCarlosMartinezSevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JuanCarlosMartinezSevilla",
"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/7599/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7599/timeline
| null |
completed
| null | null | 2025-06-06T18:59:00Z
| 2025-06-16T15:18:00Z
| 9 days, 20:19:00
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7598
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7598/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7598/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7598/events
|
https://github.com/huggingface/datasets/pull/7598
| 3,125,184,457
|
PR_kwDODunzps6ZaclZ
| 7,598
|
fix string_to_dict usage for windows
|
{
"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_7598). 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-06T15:57:11Z",
"html_url": "https://github.com/huggingface/datasets/pull/7598#issuecomment-2949729162",
"id": 2949729162,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7598",
"node_id": "IC_kwDODunzps6v0UuK",
"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/2949729162/reactions"
},
"updated_at": "2025-06-06T15:57:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2949729162",
"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-06T15:54:29Z
| 2025-06-06T16:12:22Z
| 2025-06-06T16:12:21Z
|
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/7598/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7598/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7598.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7598",
"merged_at": "2025-06-06T16:12:21Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7598.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7598"
}
| 2025-06-06T15:54:29Z
| 2025-06-06T16:12:21Z
| 0:17:52
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7597
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7597/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7597/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7597/events
|
https://github.com/huggingface/datasets/issues/7597
| 3,123,962,709
|
I_kwDODunzps66M-NV
| 7,597
|
Download datasets from a private hub in 2025
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/178552926?v=4",
"events_url": "https://api.github.com/users/DanielSchuhmacher/events{/privacy}",
"followers_url": "https://api.github.com/users/DanielSchuhmacher/followers",
"following_url": "https://api.github.com/users/DanielSchuhmacher/following{/other_user}",
"gists_url": "https://api.github.com/users/DanielSchuhmacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DanielSchuhmacher",
"id": 178552926,
"login": "DanielSchuhmacher",
"node_id": "U_kgDOCqSAXg",
"organizations_url": "https://api.github.com/users/DanielSchuhmacher/orgs",
"received_events_url": "https://api.github.com/users/DanielSchuhmacher/received_events",
"repos_url": "https://api.github.com/users/DanielSchuhmacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DanielSchuhmacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DanielSchuhmacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DanielSchuhmacher",
"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"
}
] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! First, and in the general case, Hugging Face does offer to host private datasets, and with a subscription you can even choose the region in which the repositories are hosted (US, EU)\n\nThen if you happen to have a private deployment, you can set the HF_ENDPOINT environment variable (same as in https://github.com/huggingface/transformers/issues/38634)",
"created_at": "2025-06-11T14:43:35Z",
"html_url": "https://github.com/huggingface/datasets/issues/7597#issuecomment-2963119422",
"id": 2963119422,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7597",
"node_id": "IC_kwDODunzps6wnZ0-",
"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/2963119422/reactions"
},
"updated_at": "2025-06-11T14:43:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2963119422",
"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 @lhoestq. Works as described!",
"created_at": "2025-06-13T13:45:52Z",
"html_url": "https://github.com/huggingface/datasets/issues/7597#issuecomment-2970465926",
"id": 2970465926,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7597",
"node_id": "IC_kwDODunzps6xDbaG",
"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/2970465926/reactions"
},
"updated_at": "2025-06-13T13:45:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2970465926",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/178552926?v=4",
"events_url": "https://api.github.com/users/DanielSchuhmacher/events{/privacy}",
"followers_url": "https://api.github.com/users/DanielSchuhmacher/followers",
"following_url": "https://api.github.com/users/DanielSchuhmacher/following{/other_user}",
"gists_url": "https://api.github.com/users/DanielSchuhmacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DanielSchuhmacher",
"id": 178552926,
"login": "DanielSchuhmacher",
"node_id": "U_kgDOCqSAXg",
"organizations_url": "https://api.github.com/users/DanielSchuhmacher/orgs",
"received_events_url": "https://api.github.com/users/DanielSchuhmacher/received_events",
"repos_url": "https://api.github.com/users/DanielSchuhmacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DanielSchuhmacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DanielSchuhmacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DanielSchuhmacher",
"user_view_type": "public"
}
}
] | 2025-06-06T07:55:19Z
| 2025-06-13T13:46:00Z
| 2025-06-13T13:46:00Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature.
The obvious workaround is to clone the repo first and then load it from local storage, but this adds an extra step. It'd be great to have the same experience regardless of where the hub is hosted.
This issue was raised before here: https://github.com/huggingface/datasets/issues/3679
@juliensimon
### Motivation
none
### Your contribution
none
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/178552926?v=4",
"events_url": "https://api.github.com/users/DanielSchuhmacher/events{/privacy}",
"followers_url": "https://api.github.com/users/DanielSchuhmacher/followers",
"following_url": "https://api.github.com/users/DanielSchuhmacher/following{/other_user}",
"gists_url": "https://api.github.com/users/DanielSchuhmacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DanielSchuhmacher",
"id": 178552926,
"login": "DanielSchuhmacher",
"node_id": "U_kgDOCqSAXg",
"organizations_url": "https://api.github.com/users/DanielSchuhmacher/orgs",
"received_events_url": "https://api.github.com/users/DanielSchuhmacher/received_events",
"repos_url": "https://api.github.com/users/DanielSchuhmacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DanielSchuhmacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DanielSchuhmacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DanielSchuhmacher",
"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/7597/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7597/timeline
| null |
completed
| null | null | 2025-06-06T07:55:19Z
| 2025-06-13T13:46:00Z
| 7 days, 5:50:41
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7596
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7596/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7596/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7596/events
|
https://github.com/huggingface/datasets/pull/7596
| 3,122,595,042
|
PR_kwDODunzps6ZRkEU
| 7,596
|
Add albumentations to use dataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq ping",
"created_at": "2025-06-06T18:32:11Z",
"html_url": "https://github.com/huggingface/datasets/pull/7596#issuecomment-2950123151",
"id": 2950123151,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7596",
"node_id": "IC_kwDODunzps6v106P",
"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/2950123151/reactions"
},
"updated_at": "2025-06-06T18:32:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2950123151",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq ping",
"created_at": "2025-06-09T17:13:15Z",
"html_url": "https://github.com/huggingface/datasets/pull/7596#issuecomment-2956406841",
"id": 2956406841,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7596",
"node_id": "IC_kwDODunzps6wNzA5",
"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/2956406841/reactions"
},
"updated_at": "2025-06-09T17:13:15Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2956406841",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq Thanks. Cleaned up torchvision.",
"created_at": "2025-06-15T22:14:51Z",
"html_url": "https://github.com/huggingface/datasets/pull/7596#issuecomment-2974718921",
"id": 2974718921,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7596",
"node_id": "IC_kwDODunzps6xTpvJ",
"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/2974718921/reactions"
},
"updated_at": "2025-06-15T22:14:51Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2974718921",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"user_view_type": "public"
}
}
] | 2025-06-05T20:39:46Z
| 2025-06-17T18:38:08Z
| 2025-06-17T14:44:30Z
|
CONTRIBUTOR
| null | null | null |
1. Fixed broken link to the list of transforms in torchvison.
2. Extended section about video image augmentations with an example from Albumentations.
|
{
"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/7596/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7596/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7596.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7596",
"merged_at": "2025-06-17T14:44:30Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7596.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7596"
}
| 2025-06-05T20:39:46Z
| 2025-06-17T14:44:30Z
| 11 days, 18:04:44
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7595
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7595/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7595/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7595/events
|
https://github.com/huggingface/datasets/pull/7595
| 3,121,689,436
|
PR_kwDODunzps6ZOaFl
| 7,595
|
Add `IterableDataset.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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7595). 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-05T15:32:19Z",
"html_url": "https://github.com/huggingface/datasets/pull/7595#issuecomment-2945003543",
"id": 2945003543,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7595",
"node_id": "IC_kwDODunzps6viTAX",
"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/2945003543/reactions"
},
"updated_at": "2025-06-05T15:32:19Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2945003543",
"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-05T15:29:32Z
| 2025-06-06T16:12:37Z
| 2025-06-06T16:12:36Z
|
MEMBER
| null | null | null |
Basic implementation, which writes one shard per input dataset shard.
This is to be improved later.
Close https://github.com/huggingface/datasets/issues/5665
PS: for image/audio datasets structured as actual image/audio files (not parquet), you can sometimes speed it up with `ds.decode(num_threads=...).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"
}
|
{
"+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/7595/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7595/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7595.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7595",
"merged_at": "2025-06-06T16:12:36Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7595.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7595"
}
| 2025-06-05T15:29:32Z
| 2025-06-06T16:12:36Z
| 1 day, 0:43:04
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7594
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7594/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7594/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7594/events
|
https://github.com/huggingface/datasets/issues/7594
| 3,120,799,626
|
I_kwDODunzps66A5-K
| 7,594
|
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"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": "Good point, I'd be in favor of having the `columns` argument in `JsonConfig` (and the others) to align with `ParquetConfig` to let users choose which columns to load and ignore the rest",
"created_at": "2025-06-05T12:29:48Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-2944050758",
"id": 2944050758,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6veqZG",
"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/2944050758/reactions"
},
"updated_at": "2025-06-05T12:29:48Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2944050758",
"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": "Is it possible to ignore columns when using parquet? ",
"created_at": "2025-06-05T12:32:24Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-2944062498",
"id": 2944062498,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6vetQi",
"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/2944062498/reactions"
},
"updated_at": "2025-06-05T12:32:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2944062498",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Yes, you can pass `columns=...` to load_dataset to select which columns to load, and it is passed to `ParquetConfig` :)",
"created_at": "2025-06-05T12:56:31Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-2944181857",
"id": 2944181857,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6vfKZh",
"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/2944181857/reactions"
},
"updated_at": "2025-06-05T12:56:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2944181857",
"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": "Ok, i didn't know that. \nAnyway, it would be good to add this to others",
"created_at": "2025-06-05T12:58:12Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-2944189379",
"id": 2944189379,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6vfMPD",
"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/2944189379/reactions"
},
"updated_at": "2025-06-05T12:58:12Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2944189379",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "Hi @lhoestq \n\nI'd like to take this up!\n\nAs you suggested, I’ll extend the support for the columns parameter (currently used in ParquetConfig) to JsonConfig as well. This will allow users to selectively load specific keys/columns from .jsonl (or .json) files and ignore the rest — solving the type inconsistency issues in unclean datasets.",
"created_at": "2025-06-27T06:15:10Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-3011805626",
"id": 3011805626,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6zhIG6",
"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/3011805626/reactions"
},
"updated_at": "2025-06-27T17:33:36Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011805626",
"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 @avishaiElmakies and @lhoestq \n\nJust wanted to let you know that this is now implemented in #7594\nAs 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.\n\n### ✅ Example:\n\n```python\nfrom datasets import load_dataset\n\ndataset = load_dataset(\"json\", data_files=\"your_data.jsonl\", columns=[\"id\", \"title\"])\nprint(dataset[\"train\"].column_names)\n# Output: ['id', 'title']\n```\n\n### 🔧 Summary of changes:\n\n* Added `columns: Optional[List[str]]` to `JsonConfig`\n* Updated `_generate_tables()` to filter selected columns\n* Forwarded `columns` argument from `load_dataset()` to the config\n* Added test case to validate behavior\n\nLet me know if you'd like the same to be added for CSV or others as a follow-up — happy to help.",
"created_at": "2025-06-27T17:33:40Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-3013885719",
"id": 3013885719,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6zpD8X",
"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/3013885719/reactions"
},
"updated_at": "2025-06-27T17:33:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013885719",
"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 this looks great! Thanks!\nI believe that every format that is supported by `datasets` should probably have this feature since it is very useful and will streamline the api (people will know that they can just use `columns` to select the columns they want, and it will not be dependent on the data format) ",
"created_at": "2025-06-27T17:44:35Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-3013907789",
"id": 3013907789,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6zpJVN",
"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/3013907789/reactions"
},
"updated_at": "2025-06-27T17:45:12Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3013907789",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "Thanks @avishaiElmakies — totally agree, making `columns=...` support consistent across all formats would be really helpful for users.",
"created_at": "2025-06-28T09:03:00Z",
"html_url": "https://github.com/huggingface/datasets/issues/7594#issuecomment-3015129044",
"id": 3015129044,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7594",
"node_id": "IC_kwDODunzps6ztzfU",
"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/3015129044/reactions"
},
"updated_at": "2025-06-28T09:03:00Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3015129044",
"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-05T11:12:45Z
| 2025-06-28T09:03:00Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl).
### Motivation
I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my data and it is too big for me to clean and save on my own hardware).
I would like the option to just ignore this column when using `load_dataset`, since i don't need it.
I tried to look if this is already possible but couldn't find a solution. if there is I would love some help. If it is not currently possible, I would love this feature
### Your contribution
I don't think I can help this time, unfortunately.
| 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/7594/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7594/timeline
| null | null | null | null | 2025-06-05T11:12:45Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7591
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7591/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7591/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7591/events
|
https://github.com/huggingface/datasets/issues/7591
| 3,117,816,388
|
I_kwDODunzps651hpE
| 7,591
|
Add num_proc parameter to push_to_hub
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/46050679?v=4",
"events_url": "https://api.github.com/users/SwayStar123/events{/privacy}",
"followers_url": "https://api.github.com/users/SwayStar123/followers",
"following_url": "https://api.github.com/users/SwayStar123/following{/other_user}",
"gists_url": "https://api.github.com/users/SwayStar123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SwayStar123",
"id": 46050679,
"login": "SwayStar123",
"node_id": "MDQ6VXNlcjQ2MDUwNjc5",
"organizations_url": "https://api.github.com/users/SwayStar123/orgs",
"received_events_url": "https://api.github.com/users/SwayStar123/received_events",
"repos_url": "https://api.github.com/users/SwayStar123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SwayStar123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SwayStar123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SwayStar123",
"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 @SwayStar123 \n\nI'd be interested in taking this up. I plan to add a `num_proc` parameter to `push_to_hub()` and use parallel uploads for shards using `concurrent.futures`. Will explore whether `ThreadPoolExecutor` or `ProcessPoolExecutor` is more suitable based on current implementation. Let me know if that sounds good!\n",
"created_at": "2025-06-27T05:33:42Z",
"html_url": "https://github.com/huggingface/datasets/issues/7591#issuecomment-3011731197",
"id": 3011731197,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7591",
"node_id": "IC_kwDODunzps6zg179",
"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/3011731197/reactions"
},
"updated_at": "2025-06-27T05:33:42Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011731197",
"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": "Just a quick update — `push_to_hub()` already had the `num_proc` argument in its signature and was correctly passing it internally to `_push_parquet_shards_to_hub()`.\n\nThe actual change required was inside `_push_parquet_shards_to_hub()` to enable parallel shard uploads using `multiprocessing` when `num_proc > 1`.\n\n@lhoestq @SwayStar123 ",
"created_at": "2025-06-27T06:00:23Z",
"html_url": "https://github.com/huggingface/datasets/issues/7591#issuecomment-3011780723",
"id": 3011780723,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7591",
"node_id": "IC_kwDODunzps6zhCBz",
"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/3011780723/reactions"
},
"updated_at": "2025-06-27T06:02:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011780723",
"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": "> Hi @SwayStar123 \n> \n> I'd be interested in taking this up. I plan to add a `num_proc` parameter to `push_to_hub()` and use parallel uploads for shards using `concurrent.futures`. Will explore whether `ThreadPoolExecutor` or `ProcessPoolExecutor` is more suitable based on current implementation. Let me know if that sounds good!\n> \n\nHey thanks for working on it. But I'm not a hf dev so I don't know the best way to do it.",
"created_at": "2025-06-27T06:13:54Z",
"html_url": "https://github.com/huggingface/datasets/issues/7591#issuecomment-3011803413",
"id": 3011803413,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7591",
"node_id": "IC_kwDODunzps6zhHkV",
"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/3011803413/reactions"
},
"updated_at": "2025-06-27T06:13:54Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3011803413",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/46050679?v=4",
"events_url": "https://api.github.com/users/SwayStar123/events{/privacy}",
"followers_url": "https://api.github.com/users/SwayStar123/followers",
"following_url": "https://api.github.com/users/SwayStar123/following{/other_user}",
"gists_url": "https://api.github.com/users/SwayStar123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SwayStar123",
"id": 46050679,
"login": "SwayStar123",
"node_id": "MDQ6VXNlcjQ2MDUwNjc5",
"organizations_url": "https://api.github.com/users/SwayStar123/orgs",
"received_events_url": "https://api.github.com/users/SwayStar123/received_events",
"repos_url": "https://api.github.com/users/SwayStar123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SwayStar123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SwayStar123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SwayStar123",
"user_view_type": "public"
}
}
] | 2025-06-04T13:19:15Z
| 2025-06-27T06:13:54Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
A number of processes parameter to the dataset.push_to_hub method
### Motivation
Shards are currently uploaded serially which makes it slow for many shards, uploading can be done in parallel and much faster
| 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/7591/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7591/timeline
| null | null | null | null | 2025-06-04T13:19:15Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7593
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7593/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7593/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7593/events
|
https://github.com/huggingface/datasets/pull/7593
| 3,118,812,368
|
PR_kwDODunzps6ZE34G
| 7,593
|
Fix broken link to albumentations
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"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_7593). 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-05T12:35:13Z",
"html_url": "https://github.com/huggingface/datasets/pull/7593#issuecomment-2944075020",
"id": 2944075020,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7593",
"node_id": "IC_kwDODunzps6vewUM",
"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/2944075020/reactions"
},
"updated_at": "2025-06-05T12:35:13Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2944075020",
"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": "@lhoestq ping",
"created_at": "2025-06-05T16:24:28Z",
"html_url": "https://github.com/huggingface/datasets/pull/7593#issuecomment-2945162034",
"id": 2945162034,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7593",
"node_id": "IC_kwDODunzps6vi5sy",
"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/2945162034/reactions"
},
"updated_at": "2025-06-05T16:24:28Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2945162034",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/5481618?v=4",
"events_url": "https://api.github.com/users/ternaus/events{/privacy}",
"followers_url": "https://api.github.com/users/ternaus/followers",
"following_url": "https://api.github.com/users/ternaus/following{/other_user}",
"gists_url": "https://api.github.com/users/ternaus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ternaus",
"id": 5481618,
"login": "ternaus",
"node_id": "MDQ6VXNlcjU0ODE2MTg=",
"organizations_url": "https://api.github.com/users/ternaus/orgs",
"received_events_url": "https://api.github.com/users/ternaus/received_events",
"repos_url": "https://api.github.com/users/ternaus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ternaus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ternaus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ternaus",
"user_view_type": "public"
}
}
] | 2025-06-04T19:00:13Z
| 2025-06-05T16:37:02Z
| 2025-06-05T16:36:32Z
|
CONTRIBUTOR
| null | null | null |
A few months back I rewrote all docs at [https://albumentations.ai/docs](https://albumentations.ai/docs), and some pages changed their links.
In this PR fixed link to the most recent doc in Albumentations about bounding boxes and it's format.
Fix a few typos in the doc as well.
|
{
"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/7593/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7593/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7593.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7593",
"merged_at": "2025-06-05T16:36:32Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7593.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7593"
}
| 2025-06-04T19:00:13Z
| 2025-06-05T16:36:32Z
| 21:36:19
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7592
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7592/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7592/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7592/events
|
https://github.com/huggingface/datasets/pull/7592
| 3,118,203,880
|
PR_kwDODunzps6ZC2so
| 7,592
|
Remove scripts altogether
|
{
"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_7592). 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-04T15:17:16Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-2940431479",
"id": 2940431479,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps6vQ2x3",
"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/2940431479/reactions"
},
"updated_at": "2025-06-04T15:17:16Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2940431479",
"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": "Hi @lhoestq,\r\nI wanted to ask\r\nare you planning to stop supporting dataset builds using `GeneratorBasedBuilder`?\r\n\r\nIf so, could you share the reason why?",
"created_at": "2025-07-14T06:57:27Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-3068065217",
"id": 3068065217,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps623vXB",
"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/3068065217/reactions"
},
"updated_at": "2025-07-14T06:59:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3068065217",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/93233241?v=4",
"events_url": "https://api.github.com/users/jp1924/events{/privacy}",
"followers_url": "https://api.github.com/users/jp1924/followers",
"following_url": "https://api.github.com/users/jp1924/following{/other_user}",
"gists_url": "https://api.github.com/users/jp1924/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jp1924",
"id": 93233241,
"login": "jp1924",
"node_id": "U_kgDOBY6gWQ",
"organizations_url": "https://api.github.com/users/jp1924/orgs",
"received_events_url": "https://api.github.com/users/jp1924/received_events",
"repos_url": "https://api.github.com/users/jp1924/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jp1924/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jp1924/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jp1924",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "We stopped supporting dataset scripts altogether, whether they are based on GeneratorBasedBuilder or any other builder. This means you can't `load_dataset()` a dataset script anymore. We did this mostly for security reasons which is blocking for many users and also impossible to build upon (e.g. the for the Dataset Viewer on HF)",
"created_at": "2025-07-15T10:23:14Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-3073053138",
"id": 3073053138,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps63KxHS",
"performed_via_github_app": null,
"reactions": {
"+1": 0,
"-1": 0,
"confused": 2,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073053138/reactions"
},
"updated_at": "2025-07-15T10:23:14Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3073053138",
"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": "Ah, so only the `trust_remote_code` feature of `load_dataset` is deprecated, and\r\n\r\n```python\r\nfrom datasets import load_dataset_builder\r\n \r\nbuilder = load_dataset_builder('cornell-movie-review-data/rotten_tomatoes') \r\nbuilder.download_and_prepare() \r\n```\r\n\r\nwe can still load data using `load_dataset_builder` and `download_and_prepare`, right?\r\nThat's a relief. I thought the removal of `trust_remote_code` in `load_dataset` meant `GeneratorBasedBuilder` was being deprecated too, haha.\r\nGot it, thanks for the clarification!\r\n",
"created_at": "2025-07-16T18:59:07Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-3079918731",
"id": 3079918731,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps63k9SL",
"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/3079918731/reactions"
},
"updated_at": "2025-07-16T18:59:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3079918731",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/93233241?v=4",
"events_url": "https://api.github.com/users/jp1924/events{/privacy}",
"followers_url": "https://api.github.com/users/jp1924/followers",
"following_url": "https://api.github.com/users/jp1924/following{/other_user}",
"gists_url": "https://api.github.com/users/jp1924/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jp1924",
"id": 93233241,
"login": "jp1924",
"node_id": "U_kgDOBY6gWQ",
"organizations_url": "https://api.github.com/users/jp1924/orgs",
"received_events_url": "https://api.github.com/users/jp1924/received_events",
"repos_url": "https://api.github.com/users/jp1924/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jp1924/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jp1924/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jp1924",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Can you give an example on how to upgrade from using `trust_remote_code`? I used to load_dataset from a script generating my training data in a streaming way.",
"created_at": "2025-08-04T15:14:06Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-3151194811",
"id": 3151194811,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps6702q7",
"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/3151194811/reactions"
},
"updated_at": "2025-08-04T15:14:06Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3151194811",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/758925?v=4",
"events_url": "https://api.github.com/users/autosquid/events{/privacy}",
"followers_url": "https://api.github.com/users/autosquid/followers",
"following_url": "https://api.github.com/users/autosquid/following{/other_user}",
"gists_url": "https://api.github.com/users/autosquid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/autosquid",
"id": 758925,
"login": "autosquid",
"node_id": "MDQ6VXNlcjc1ODkyNQ==",
"organizations_url": "https://api.github.com/users/autosquid/orgs",
"received_events_url": "https://api.github.com/users/autosquid/received_events",
"repos_url": "https://api.github.com/users/autosquid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/autosquid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/autosquid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/autosquid",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "For guys who dislike this change +1",
"created_at": "2025-08-04T15:16:46Z",
"html_url": "https://github.com/huggingface/datasets/pull/7592#issuecomment-3151205337",
"id": 3151205337,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7592",
"node_id": "IC_kwDODunzps6705PZ",
"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/3151205337/reactions"
},
"updated_at": "2025-08-04T15:17:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3151205337",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/758925?v=4",
"events_url": "https://api.github.com/users/autosquid/events{/privacy}",
"followers_url": "https://api.github.com/users/autosquid/followers",
"following_url": "https://api.github.com/users/autosquid/following{/other_user}",
"gists_url": "https://api.github.com/users/autosquid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/autosquid",
"id": 758925,
"login": "autosquid",
"node_id": "MDQ6VXNlcjc1ODkyNQ==",
"organizations_url": "https://api.github.com/users/autosquid/orgs",
"received_events_url": "https://api.github.com/users/autosquid/received_events",
"repos_url": "https://api.github.com/users/autosquid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/autosquid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/autosquid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/autosquid",
"user_view_type": "public"
}
}
] | 2025-06-04T15:14:11Z
| 2025-07-16T18:59:07Z
| 2025-06-09T16:45:27Z
|
MEMBER
| null | null | null |
TODO:
- [x] remplace fixtures based on script with no-script fixtures
- [x] windaube
|
{
"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/7592/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7592/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7592.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7592",
"merged_at": "2025-06-09T16:45:27Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7592.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7592"
}
| 2025-06-04T15:14:11Z
| 2025-06-09T16:45:27Z
| 5 days, 1:31:16
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7590
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7590/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7590/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7590/events
|
https://github.com/huggingface/datasets/issues/7590
| 3,101,654,892
|
I_kwDODunzps64339s
| 7,590
|
`Sequence(Features(...))` causes PyArrow cast error in `load_dataset` despite correct schema.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/183279820?v=4",
"events_url": "https://api.github.com/users/AHS-uni/events{/privacy}",
"followers_url": "https://api.github.com/users/AHS-uni/followers",
"following_url": "https://api.github.com/users/AHS-uni/following{/other_user}",
"gists_url": "https://api.github.com/users/AHS-uni/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AHS-uni",
"id": 183279820,
"login": "AHS-uni",
"node_id": "U_kgDOCuygzA",
"organizations_url": "https://api.github.com/users/AHS-uni/orgs",
"received_events_url": "https://api.github.com/users/AHS-uni/received_events",
"repos_url": "https://api.github.com/users/AHS-uni/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AHS-uni/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AHS-uni/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AHS-uni",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "Hi @lhoestq \n\nCould you help confirm whether this qualifies as a bug?\n\nIt looks like the issue stems from how `Sequence(Features(...))` is interpreted as a plain struct during schema inference, which leads to a mismatch when casting with PyArrow (especially with nested structs inside lists). From the description, this seems like an inconsistency with expected behavior.\n\nIf confirmed, I’d be happy to take a shot at investigating and potentially submitting a fix.\n\nAlso looping in @AHS-uni — could you kindly share a minimal JSONL example that reproduces this?\n\nThanks!",
"created_at": "2025-05-30T09:02:10Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-2921704887",
"id": 2921704887,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps6uJa23",
"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/2921704887/reactions"
},
"updated_at": "2025-05-30T09:02:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2921704887",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/180720690?v=4",
"events_url": "https://api.github.com/users/Flink-ddd/events{/privacy}",
"followers_url": "https://api.github.com/users/Flink-ddd/followers",
"following_url": "https://api.github.com/users/Flink-ddd/following{/other_user}",
"gists_url": "https://api.github.com/users/Flink-ddd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Flink-ddd",
"id": 180720690,
"login": "Flink-ddd",
"node_id": "U_kgDOCsWUMg",
"organizations_url": "https://api.github.com/users/Flink-ddd/orgs",
"received_events_url": "https://api.github.com/users/Flink-ddd/received_events",
"repos_url": "https://api.github.com/users/Flink-ddd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Flink-ddd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Flink-ddd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Flink-ddd",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Hello @Flink-ddd \n\nI updated the minimal example and included both JSON and JSONL minimal examples in the Colab notebook. \n\nHere is the minimal JSON file for convenience (can't upload JSONL files).\n\n[mini.json](https://github.com/user-attachments/files/20535145/mini.json)\n\nI've also found a number of issues which describe a similar problem:\n\n[7569](https://github.com/huggingface/datasets/issues/7569) (Open)\n[7137](https://github.com/huggingface/datasets/issues/7137) (Open)\n[7501](https://github.com/huggingface/datasets/issues/7501) (Closed)\n[2434](https://github.com/huggingface/datasets/issues/2434) (Closed)\n\nThe closed issues don't really address the problem (IMO). [7501](https://github.com/huggingface/datasets/issues/7501) provides a workaround (using a Python list instead of `Sequence`), but it seem precarious. ",
"created_at": "2025-05-31T18:19:21Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-2925533927",
"id": 2925533927,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps6uYBrn",
"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/2925533927/reactions"
},
"updated_at": "2025-05-31T18:21:03Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2925533927",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/183279820?v=4",
"events_url": "https://api.github.com/users/AHS-uni/events{/privacy}",
"followers_url": "https://api.github.com/users/AHS-uni/followers",
"following_url": "https://api.github.com/users/AHS-uni/following{/other_user}",
"gists_url": "https://api.github.com/users/AHS-uni/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AHS-uni",
"id": 183279820,
"login": "AHS-uni",
"node_id": "U_kgDOCuygzA",
"organizations_url": "https://api.github.com/users/AHS-uni/orgs",
"received_events_url": "https://api.github.com/users/AHS-uni/received_events",
"repos_url": "https://api.github.com/users/AHS-uni/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AHS-uni/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AHS-uni/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AHS-uni",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Hi ! `Sequence({...})` corresponds to a struct of lists ([docs](https://huggingface.co/docs/datasets/v3.6.0/en/package_reference/main_classes#datasets.Features)). This come from Tensorflow Datasets.\n\nIf you want to use a list of structs, you should use `[{...}]`, e.g.\n\n```python\nitem = {\n \"id\": Value(\"string\"),\n \"data\": Value(\"string\"),\n}\n\nfeatures = Features({\n \"list\": [item],\n})\n```",
"created_at": "2025-06-04T13:12:34Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-2939991397",
"id": 2939991397,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps6vPLVl",
"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/2939991397/reactions"
},
"updated_at": "2025-06-04T13:13:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2939991397",
"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 Thanks for your explanation, which helps me understand the logic behind. But I'm confused how to define that in `README.md`?\n\nMy jsonl data is: \n```\n{\"answers\": [{\"text\": \"text1\", \"label\": \"label1\"}, {\"text\": \"text2\", \"label\": \"label2\"},]}\n{\"answers\": [{\"text\": \"text1\", \"label\": \"label1\"}, {\"text\": \"text2\", \"label\": \"label2\"},]}\n...\n```\n\nMy README.md look like\n```\ndataset_info:\n- config_name: default\n features:\n - name: answers\n sequence:\n - name: text\n dtype: string\n - name: label\n dtype: string\n```\nI understand `sequence` here is not correct, but what's the correct format? I tried following (`sequence -> dtype`)and seems not the case:\n```\ndataset_info:\n- config_name: default\n features:\n - name: answers\n dtype:\n - name: text\n sequence: string\n - name: label\n sequence: string\n```",
"created_at": "2025-07-03T18:34:32Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-3033191683",
"id": 3033191683,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps60ytUD",
"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/3033191683/reactions"
},
"updated_at": "2025-07-03T18:34:32Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3033191683",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/13214530?v=4",
"events_url": "https://api.github.com/users/ain-soph/events{/privacy}",
"followers_url": "https://api.github.com/users/ain-soph/followers",
"following_url": "https://api.github.com/users/ain-soph/following{/other_user}",
"gists_url": "https://api.github.com/users/ain-soph/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ain-soph",
"id": 13214530,
"login": "ain-soph",
"node_id": "MDQ6VXNlcjEzMjE0NTMw",
"organizations_url": "https://api.github.com/users/ain-soph/orgs",
"received_events_url": "https://api.github.com/users/ain-soph/received_events",
"repos_url": "https://api.github.com/users/ain-soph/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ain-soph/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ain-soph/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ain-soph",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "The `List` type which doesn't have the weird dict behavior of `Sequence` has been added for `datasets` 4.0 (to be released next week). Feel free to install `datasets` from source to try it out :)\nEDIT: it's out !\n\nYou can fix the issue using `List` instead of `Sequence`, e.g. in the case of the original post:\n\n```python\n# Feature spec with List of structs\nitem = {\n \"id\": Value(\"string\"),\n \"data\": Value(\"string\"),\n}\n\nfeatures = Features({\n \"list\": List(item),\n})\n```\n\nfor which the README.md is\n\n```yaml\ndataset_info:\n- config_name: default\n features:\n - name: list\n list:\n - name: id\n dtype: string\n - name: data\n dtype: string\n```",
"created_at": "2025-07-04T11:08:43Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-3035647354",
"id": 3035647354,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps608E16",
"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/3035647354/reactions"
},
"updated_at": "2025-07-10T08:39:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3035647354",
"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 Thanks! I didn't realize there is a `list` keyword I could use. I thought I had to use `dtype` or something. Hope there could be better documentation on the `README.md` formats. I've closed my issue #7137 ",
"created_at": "2025-07-04T19:48:58Z",
"html_url": "https://github.com/huggingface/datasets/issues/7590#issuecomment-3037148190",
"id": 3037148190,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7590",
"node_id": "IC_kwDODunzps61BzQe",
"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/3037148190/reactions"
},
"updated_at": "2025-07-04T19:51:38Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3037148190",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/13214530?v=4",
"events_url": "https://api.github.com/users/ain-soph/events{/privacy}",
"followers_url": "https://api.github.com/users/ain-soph/followers",
"following_url": "https://api.github.com/users/ain-soph/following{/other_user}",
"gists_url": "https://api.github.com/users/ain-soph/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ain-soph",
"id": 13214530,
"login": "ain-soph",
"node_id": "MDQ6VXNlcjEzMjE0NTMw",
"organizations_url": "https://api.github.com/users/ain-soph/orgs",
"received_events_url": "https://api.github.com/users/ain-soph/received_events",
"repos_url": "https://api.github.com/users/ain-soph/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ain-soph/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ain-soph/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ain-soph",
"user_view_type": "public"
}
}
] | 2025-05-29T22:53:36Z
| 2025-07-19T22:45:08Z
| 2025-07-19T22:45:08Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Description
When loading a dataset with a field declared as a list of structs using `Sequence(Features(...))`, `load_dataset` incorrectly infers the field as a plain `struct<...>` instead of a `list<struct<...>>`. This leads to the following error:
```
ArrowNotImplementedError: Unsupported cast from list<item: struct<id: string, data: string>> to struct using function cast_struct
```
This occurs even when the `features` schema is explicitly provided and the dataset format supports nested structures natively (e.g., JSON, JSONL).
---
### Minimal Reproduction
[Colab Link.](https://colab.research.google.com/drive/1FZPQy6TP3jVd4B3mYKyfQaWNuOAvljUq?usp=sharing)
#### Dataset
```python
data = [
{
"list": [
{"id": "example1", "data": "text"},
]
},
]
```
#### Schema
```python
from datasets import Features, Sequence, Value
item = Features({
"id": Value("string"),
"data": Value("string"),
})
features = Features({
"list": Sequence(item),
})
```
---
### Tested File Formats
The same schema was tested across different formats:
| Format | Method | Result |
| --------- | --------------------------- | ------------------- |
| JSONL | `load_dataset("json", ...)` | Arrow cast error |
| JSON | `load_dataset("json", ...)` | Arrow cast error |
| In-memory | `Dataset.from_list(...)` | Works as expected |
The issue seems not to be in the schema or the data, but in how `load_dataset()` handles the `Sequence(Features(...))` pattern when parsing from files (specifically JSON and JSONL).
---
### Expected Behavior
If `features` is explicitly defined as:
```python
Features({"list": Sequence(Features({...}))})
```
Then the data should load correctly across all backends — including from JSON and JSONL — without any Arrow casting errors. This works correctly when loading from memory via `Dataset.from_list`.
---
### Environment
* `datasets`: 3.6.0
* `pyarrow`: 20.0.0
* Python: 3.12.10
* OS: Ubuntu 24.04.2 LTS
* Notebook: \[Colab test notebook available]
---
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/183279820?v=4",
"events_url": "https://api.github.com/users/AHS-uni/events{/privacy}",
"followers_url": "https://api.github.com/users/AHS-uni/followers",
"following_url": "https://api.github.com/users/AHS-uni/following{/other_user}",
"gists_url": "https://api.github.com/users/AHS-uni/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AHS-uni",
"id": 183279820,
"login": "AHS-uni",
"node_id": "U_kgDOCuygzA",
"organizations_url": "https://api.github.com/users/AHS-uni/orgs",
"received_events_url": "https://api.github.com/users/AHS-uni/received_events",
"repos_url": "https://api.github.com/users/AHS-uni/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AHS-uni/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AHS-uni/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AHS-uni",
"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/7590/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7590/timeline
| null |
completed
| null | null | 2025-05-29T22:53:36Z
| 2025-07-19T22:45:08Z
| 50 days, 23:51:32
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7588
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7588/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7588/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7588/events
|
https://github.com/huggingface/datasets/issues/7588
| 3,094,012,025
|
I_kwDODunzps64auB5
| 7,588
|
ValueError: Invalid pattern: '**' can only be an entire path component [Colab]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43061081?v=4",
"events_url": "https://api.github.com/users/wkambale/events{/privacy}",
"followers_url": "https://api.github.com/users/wkambale/followers",
"following_url": "https://api.github.com/users/wkambale/following{/other_user}",
"gists_url": "https://api.github.com/users/wkambale/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wkambale",
"id": 43061081,
"login": "wkambale",
"node_id": "MDQ6VXNlcjQzMDYxMDgx",
"organizations_url": "https://api.github.com/users/wkambale/orgs",
"received_events_url": "https://api.github.com/users/wkambale/received_events",
"repos_url": "https://api.github.com/users/wkambale/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wkambale/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wkambale/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wkambale",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "Could you please run the following code snippet in your environment and share the exact output? This will help check for any compatibility issues within the env itself. \n\n```\nimport datasets\nimport huggingface_hub\nimport fsspec\n\nprint(\"datasets version:\", datasets.__version__)\nprint(\"huggingface_hub version:\", huggingface_hub.__version__)\nprint(\"fsspec version:\", fsspec.__version__)\n```",
"created_at": "2025-05-28T11:28:13Z",
"html_url": "https://github.com/huggingface/datasets/issues/7588#issuecomment-2915960032",
"id": 2915960032,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7588",
"node_id": "IC_kwDODunzps6tzgTg",
"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/2915960032/reactions"
},
"updated_at": "2025-05-28T11:28:13Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2915960032",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/4007299?v=4",
"events_url": "https://api.github.com/users/zero-point/events{/privacy}",
"followers_url": "https://api.github.com/users/zero-point/followers",
"following_url": "https://api.github.com/users/zero-point/following{/other_user}",
"gists_url": "https://api.github.com/users/zero-point/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zero-point",
"id": 4007299,
"login": "zero-point",
"node_id": "MDQ6VXNlcjQwMDcyOTk=",
"organizations_url": "https://api.github.com/users/zero-point/orgs",
"received_events_url": "https://api.github.com/users/zero-point/received_events",
"repos_url": "https://api.github.com/users/zero-point/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zero-point/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zero-point/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zero-point",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "```bash\ndatasets version: 2.14.4\nhuggingface_hub version: 0.31.4\nfsspec version: 2025.3.2\n```",
"created_at": "2025-05-28T23:08:27Z",
"html_url": "https://github.com/huggingface/datasets/issues/7588#issuecomment-2917810648",
"id": 2917810648,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7588",
"node_id": "IC_kwDODunzps6t6kHY",
"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/2917810648/reactions"
},
"updated_at": "2025-05-28T23:08:27Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2917810648",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43061081?v=4",
"events_url": "https://api.github.com/users/wkambale/events{/privacy}",
"followers_url": "https://api.github.com/users/wkambale/followers",
"following_url": "https://api.github.com/users/wkambale/following{/other_user}",
"gists_url": "https://api.github.com/users/wkambale/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wkambale",
"id": 43061081,
"login": "wkambale",
"node_id": "MDQ6VXNlcjQzMDYxMDgx",
"organizations_url": "https://api.github.com/users/wkambale/orgs",
"received_events_url": "https://api.github.com/users/wkambale/received_events",
"repos_url": "https://api.github.com/users/wkambale/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wkambale/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wkambale/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wkambale",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Version 2.14.4 is not the latest version available, in fact it is from August 08, 2023 (you can check here: https://pypi.org/project/datasets/#history)\n\nUse pip install datasets==3.6.0 to install a more recent version (from May 7, 2025)\n\nI also had the same problem with Colab, after updating to the latest version it was solved.\n\nI hope it helps",
"created_at": "2025-05-29T18:04:41Z",
"html_url": "https://github.com/huggingface/datasets/issues/7588#issuecomment-2920173528",
"id": 2920173528,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7588",
"node_id": "IC_kwDODunzps6uDk_Y",
"performed_via_github_app": null,
"reactions": {
"+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/comments/2920173528/reactions"
},
"updated_at": "2025-05-29T18:04:41Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2920173528",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/50464878?v=4",
"events_url": "https://api.github.com/users/CleitonOERocha/events{/privacy}",
"followers_url": "https://api.github.com/users/CleitonOERocha/followers",
"following_url": "https://api.github.com/users/CleitonOERocha/following{/other_user}",
"gists_url": "https://api.github.com/users/CleitonOERocha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CleitonOERocha",
"id": 50464878,
"login": "CleitonOERocha",
"node_id": "MDQ6VXNlcjUwNDY0ODc4",
"organizations_url": "https://api.github.com/users/CleitonOERocha/orgs",
"received_events_url": "https://api.github.com/users/CleitonOERocha/received_events",
"repos_url": "https://api.github.com/users/CleitonOERocha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CleitonOERocha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CleitonOERocha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CleitonOERocha",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "thank you @CleitonOERocha. it sure did help.\n\nupdating `datasets` to v3.6.0 and keeping `fsspec` on v2025.3.2 eliminates the issue.",
"created_at": "2025-05-30T01:26:30Z",
"html_url": "https://github.com/huggingface/datasets/issues/7588#issuecomment-2920973180",
"id": 2920973180,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7588",
"node_id": "IC_kwDODunzps6uGoN8",
"performed_via_github_app": null,
"reactions": {
"+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/comments/2920973180/reactions"
},
"updated_at": "2025-05-30T01:26:30Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2920973180",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43061081?v=4",
"events_url": "https://api.github.com/users/wkambale/events{/privacy}",
"followers_url": "https://api.github.com/users/wkambale/followers",
"following_url": "https://api.github.com/users/wkambale/following{/other_user}",
"gists_url": "https://api.github.com/users/wkambale/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wkambale",
"id": 43061081,
"login": "wkambale",
"node_id": "MDQ6VXNlcjQzMDYxMDgx",
"organizations_url": "https://api.github.com/users/wkambale/orgs",
"received_events_url": "https://api.github.com/users/wkambale/received_events",
"repos_url": "https://api.github.com/users/wkambale/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wkambale/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wkambale/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wkambale",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Very helpful, thank you!",
"created_at": "2025-05-30T13:22:51Z",
"html_url": "https://github.com/huggingface/datasets/issues/7588#issuecomment-2922390119",
"id": 2922390119,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7588",
"node_id": "IC_kwDODunzps6uMCJn",
"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/2922390119/reactions"
},
"updated_at": "2025-05-30T13:22:51Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2922390119",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/172935628?v=4",
"events_url": "https://api.github.com/users/micah-shull/events{/privacy}",
"followers_url": "https://api.github.com/users/micah-shull/followers",
"following_url": "https://api.github.com/users/micah-shull/following{/other_user}",
"gists_url": "https://api.github.com/users/micah-shull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/micah-shull",
"id": 172935628,
"login": "micah-shull",
"node_id": "U_kgDOCk7JzA",
"organizations_url": "https://api.github.com/users/micah-shull/orgs",
"received_events_url": "https://api.github.com/users/micah-shull/received_events",
"repos_url": "https://api.github.com/users/micah-shull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/micah-shull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/micah-shull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/micah-shull",
"user_view_type": "public"
}
}
] | 2025-05-27T13:46:05Z
| 2025-05-30T13:22:52Z
| 2025-05-30T01:26:30Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
I have a dataset on HF [here](https://huggingface.co/datasets/kambale/luganda-english-parallel-corpus) that i've previously used to train a translation model [here](https://huggingface.co/kambale/pearl-11m-translate).
now i changed a few hyperparameters to increase number of tokens for the model, increase Transformer layers, and all
however, when i try to load the dataset, this error keeps coming up.. i have tried everything.. i have re-written the code a hundred times, and this keep coming up
### Steps to reproduce the bug
Imports:
```bash
!pip install datasets huggingface_hub fsspec
```
Python code:
```python
from datasets import load_dataset
HF_DATASET_NAME = "kambale/luganda-english-parallel-corpus"
# Load the dataset
try:
if not HF_DATASET_NAME or HF_DATASET_NAME == "YOUR_HF_DATASET_NAME":
raise ValueError(
"Please provide a valid Hugging Face dataset name."
)
dataset = load_dataset(HF_DATASET_NAME)
# Omitted code as the error happens on the line above
except ValueError as ve:
print(f"Configuration Error: {ve}")
raise
except Exception as e:
print(f"An error occurred while loading the dataset '{HF_DATASET_NAME}': {e}")
raise e
```
now, i have tried going through this [issue](https://github.com/huggingface/datasets/issues/6737) and nothing helps
### Expected behavior
loading the dataset successfully and perform splits (train, test, validation)
### Environment info
from the imports, i do not install specific versions of these libraries, so the latest or available version is installed
* `datasets` version: latest
* `Platform`: Google Colab
* `Hardware`: NVIDIA A100 GPU
* `Python` version: latest
* `huggingface_hub` version: latest
* `fsspec` version: latest
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43061081?v=4",
"events_url": "https://api.github.com/users/wkambale/events{/privacy}",
"followers_url": "https://api.github.com/users/wkambale/followers",
"following_url": "https://api.github.com/users/wkambale/following{/other_user}",
"gists_url": "https://api.github.com/users/wkambale/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wkambale",
"id": 43061081,
"login": "wkambale",
"node_id": "MDQ6VXNlcjQzMDYxMDgx",
"organizations_url": "https://api.github.com/users/wkambale/orgs",
"received_events_url": "https://api.github.com/users/wkambale/received_events",
"repos_url": "https://api.github.com/users/wkambale/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wkambale/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wkambale/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wkambale",
"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/7588/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7588/timeline
| null |
completed
| null | null | 2025-05-27T13:46:05Z
| 2025-05-30T01:26:30Z
| 2 days, 11:40:25
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7587
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7587/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7587/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7587/events
|
https://github.com/huggingface/datasets/pull/7587
| 3,091,834,987
|
PR_kwDODunzps6XrB8F
| 7,587
|
load_dataset splits typing
|
{
"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_7587). 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-05-26T18:31:09Z",
"html_url": "https://github.com/huggingface/datasets/pull/7587#issuecomment-2910416040",
"id": 2910416040,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7587",
"node_id": "IC_kwDODunzps6teWyo",
"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/2910416040/reactions"
},
"updated_at": "2025-05-26T18:31:09Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910416040",
"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-05-26T18:28:40Z
| 2025-05-26T18:31:10Z
| 2025-05-26T18:29:57Z
|
MEMBER
| null | null | null |
close https://github.com/huggingface/datasets/issues/7583
|
{
"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/7587/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7587/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7587.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7587",
"merged_at": "2025-05-26T18:29:57Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7587.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7587"
}
| 2025-05-26T18:28:40Z
| 2025-05-26T18:29:57Z
| 0:01:17
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7589
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7589/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7589/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7589/events
|
https://github.com/huggingface/datasets/pull/7589
| 3,101,119,704
|
PR_kwDODunzps6YKiyL
| 7,589
|
feat: use content defined chunking
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/961747?v=4",
"events_url": "https://api.github.com/users/kszucs/events{/privacy}",
"followers_url": "https://api.github.com/users/kszucs/followers",
"following_url": "https://api.github.com/users/kszucs/following{/other_user}",
"gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kszucs",
"id": 961747,
"login": "kszucs",
"node_id": "MDQ6VXNlcjk2MTc0Nw==",
"organizations_url": "https://api.github.com/users/kszucs/orgs",
"received_events_url": "https://api.github.com/users/kszucs/received_events",
"repos_url": "https://api.github.com/users/kszucs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kszucs",
"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_7589). 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-05-29T18:40:28Z",
"html_url": "https://github.com/huggingface/datasets/pull/7589#issuecomment-2920258514",
"id": 2920258514,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7589",
"node_id": "IC_kwDODunzps6uD5vS",
"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/2920258514/reactions"
},
"updated_at": "2025-05-29T18:40:28Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2920258514",
"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": "Need to set `DEFAULT_MAX_BATCH_SIZE = 1024 * 1024`",
"created_at": "2025-06-16T10:08:55Z",
"html_url": "https://github.com/huggingface/datasets/pull/7589#issuecomment-2975933002",
"id": 2975933002,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7589",
"node_id": "IC_kwDODunzps6xYSJK",
"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/2975933002/reactions"
},
"updated_at": "2025-06-16T10:08:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2975933002",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/961747?v=4",
"events_url": "https://api.github.com/users/kszucs/events{/privacy}",
"followers_url": "https://api.github.com/users/kszucs/followers",
"following_url": "https://api.github.com/users/kszucs/following{/other_user}",
"gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kszucs",
"id": 961747,
"login": "kszucs",
"node_id": "MDQ6VXNlcjk2MTc0Nw==",
"organizations_url": "https://api.github.com/users/kszucs/orgs",
"received_events_url": "https://api.github.com/users/kszucs/received_events",
"repos_url": "https://api.github.com/users/kszucs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kszucs",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "We should consider enabling page indexes by default when writing parquet files to enable page pruning readers like the next dataset viewer https://github.com/huggingface/dataset-viewer/pull/3199",
"created_at": "2025-07-24T09:21:54Z",
"html_url": "https://github.com/huggingface/datasets/pull/7589#issuecomment-3112719123",
"id": 3112719123,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7589",
"node_id": "IC_kwDODunzps65iFMT",
"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/3112719123/reactions"
},
"updated_at": "2025-07-24T09:21:54Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3112719123",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/961747?v=4",
"events_url": "https://api.github.com/users/kszucs/events{/privacy}",
"followers_url": "https://api.github.com/users/kszucs/followers",
"following_url": "https://api.github.com/users/kszucs/following{/other_user}",
"gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kszucs",
"id": 961747,
"login": "kszucs",
"node_id": "MDQ6VXNlcjk2MTc0Nw==",
"organizations_url": "https://api.github.com/users/kszucs/orgs",
"received_events_url": "https://api.github.com/users/kszucs/received_events",
"repos_url": "https://api.github.com/users/kszucs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kszucs",
"user_view_type": "public"
}
}
] | 2025-05-29T18:19:41Z
| 2025-07-25T11:56:51Z
| null |
MEMBER
| null | null | null |
Use content defined chunking by default when writing parquet files.
- [x] set the parameters in `io.parquet.ParquetDatasetReader`
- [x] set the parameters in `arrow_writer.ParquetWriter`
It requires a new pyarrow pin ">=21.0.0" which is released now.
| 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/7589/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7589/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7589.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7589",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7589.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7589"
}
| 2025-05-29T18:19:41Z
| null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7586
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7586/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7586/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7586/events
|
https://github.com/huggingface/datasets/issues/7586
| 3,091,320,431
|
I_kwDODunzps64Qc5v
| 7,586
|
help is appreciated
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54931785?v=4",
"events_url": "https://api.github.com/users/rajasekarnp1/events{/privacy}",
"followers_url": "https://api.github.com/users/rajasekarnp1/followers",
"following_url": "https://api.github.com/users/rajasekarnp1/following{/other_user}",
"gists_url": "https://api.github.com/users/rajasekarnp1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rajasekarnp1",
"id": 54931785,
"login": "rajasekarnp1",
"node_id": "MDQ6VXNlcjU0OTMxNzg1",
"organizations_url": "https://api.github.com/users/rajasekarnp1/orgs",
"received_events_url": "https://api.github.com/users/rajasekarnp1/received_events",
"repos_url": "https://api.github.com/users/rajasekarnp1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rajasekarnp1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajasekarnp1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rajasekarnp1",
"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": "how is this related to this repository ?",
"created_at": "2025-05-26T18:21:56Z",
"html_url": "https://github.com/huggingface/datasets/issues/7586#issuecomment-2910402073",
"id": 2910402073,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7586",
"node_id": "IC_kwDODunzps6teTYZ",
"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/2910402073/reactions"
},
"updated_at": "2025-05-26T18:21:56Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910402073",
"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-05-26T14:00:42Z
| 2025-05-26T18:21:57Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
https://github.com/rajasekarnp1/neural-audio-upscaler/tree/main
### Motivation
ai model develpment and audio
### Your contribution
ai model develpment and audio
| 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/7586/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7586/timeline
| null | null | null | null | 2025-05-26T14:00:42Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7585
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7585/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7585/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7585/events
|
https://github.com/huggingface/datasets/pull/7585
| 3,091,227,921
|
PR_kwDODunzps6Xo-Tw
| 7,585
|
Avoid multiple default config names
|
{
"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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7585). 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-05-26T13:30:42Z",
"html_url": "https://github.com/huggingface/datasets/pull/7585#issuecomment-2909772622",
"id": 2909772622,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7585",
"node_id": "IC_kwDODunzps6tb5tO",
"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/2909772622/reactions"
},
"updated_at": "2025-05-26T13:30:42Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2909772622",
"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-05-26T13:27:59Z
| 2025-06-05T12:41:54Z
| 2025-06-05T12:41:52Z
|
MEMBER
| null | null | null |
Fix duplicating default config names.
Currently, when calling `push_to_hub(set_default=True` with 2 different config names, both are set as default.
Moreover, this will generate an error next time we try to push another default config name, raised by `MetadataConfigs.get_default_config_name`:
https://github.com/huggingface/datasets/blob/da1db8a5b89fc0badaa0f571b36e122e52ae8c61/src/datasets/arrow_dataset.py#L5757
https://github.com/huggingface/datasets/blob/da1db8a5b89fc0badaa0f571b36e122e52ae8c61/src/datasets/utils/metadata.py#L186-L188
|
{
"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"
}
|
{
"+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/7585/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7585/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7585.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7585",
"merged_at": "2025-06-05T12:41:52Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7585.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7585"
}
| 2025-05-26T13:27:59Z
| 2025-06-05T12:41:52Z
| 9 days, 23:13:53
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7583
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7583/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7583/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7583/events
|
https://github.com/huggingface/datasets/issues/7583
| 3,088,987,757
|
I_kwDODunzps64HjZt
| 7,583
|
load_dataset type stubs reject List[str] for split parameter, but runtime supports it
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/25069969?v=4",
"events_url": "https://api.github.com/users/hierr/events{/privacy}",
"followers_url": "https://api.github.com/users/hierr/followers",
"following_url": "https://api.github.com/users/hierr/following{/other_user}",
"gists_url": "https://api.github.com/users/hierr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hierr",
"id": 25069969,
"login": "hierr",
"node_id": "MDQ6VXNlcjI1MDY5OTY5",
"organizations_url": "https://api.github.com/users/hierr/orgs",
"received_events_url": "https://api.github.com/users/hierr/received_events",
"repos_url": "https://api.github.com/users/hierr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hierr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hierr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hierr",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-05-25T02:33:18Z
| 2025-05-26T18:29:58Z
| 2025-05-26T18:29:58Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
The [load_dataset](https://huggingface.co/docs/datasets/v3.6.0/en/package_reference/loading_methods#datasets.load_dataset) method accepts a `List[str]` as the split parameter at runtime, however, the current type stubs restrict the split parameter to `Union[str, Split, None]`. This causes type checkers like Pylance to raise `reportArgumentType` errors when passing a list of strings, even though it works as intended at runtime.
### Steps to reproduce the bug
1. Use load_dataset with multiple splits e.g.:
```
from datasets import load_dataset
ds_train, ds_val, ds_test = load_dataset(
"Silly-Machine/TuPyE-Dataset",
"binary",
split=["train[:75%]", "train[75%:]", "test"]
)
```
2. Observe that code executes correctly at runtime and Pylance raises `Argument of type "List[str]" cannot be assigned to parameter "split" of type "str | Split | None"`
### Expected behavior
The type stubs for [load_dataset](https://huggingface.co/docs/datasets/v3.6.0/en/package_reference/loading_methods#datasets.load_dataset) should accept `Union[str, Split, List[str], None]` or more specific overloads for the split parameter to correctly represent runtime behavior.
### Environment info
- `datasets` version: 3.6.0
- Platform: Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.39
- Python version: 3.12.7
- `huggingface_hub` version: 0.32.0
- PyArrow version: 20.0.0
- Pandas version: 2.2.3
- `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/7583/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7583/timeline
| null |
completed
| null | null | 2025-05-25T02:33:18Z
| 2025-05-26T18:29:58Z
| 1 day, 15:56:40
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7582
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7582/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7582/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7582/events
|
https://github.com/huggingface/datasets/pull/7582
| 3,083,515,643
|
PR_kwDODunzps6XPIt7
| 7,582
|
fix: Add embed_storage in Pdf feature
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5564745?v=4",
"events_url": "https://api.github.com/users/AndreaFrancis/events{/privacy}",
"followers_url": "https://api.github.com/users/AndreaFrancis/followers",
"following_url": "https://api.github.com/users/AndreaFrancis/following{/other_user}",
"gists_url": "https://api.github.com/users/AndreaFrancis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AndreaFrancis",
"id": 5564745,
"login": "AndreaFrancis",
"node_id": "MDQ6VXNlcjU1NjQ3NDU=",
"organizations_url": "https://api.github.com/users/AndreaFrancis/orgs",
"received_events_url": "https://api.github.com/users/AndreaFrancis/received_events",
"repos_url": "https://api.github.com/users/AndreaFrancis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AndreaFrancis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AndreaFrancis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AndreaFrancis",
"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_7582). 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-05-22T14:09:02Z",
"html_url": "https://github.com/huggingface/datasets/pull/7582#issuecomment-2901373040",
"id": 2901373040,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7582",
"node_id": "IC_kwDODunzps6s73Bw",
"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/2901373040/reactions"
},
"updated_at": "2025-05-22T14:09:02Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2901373040",
"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-05-22T14:06:29Z
| 2025-05-22T14:17:38Z
| 2025-05-22T14:17:36Z
|
CONTRIBUTOR
| null | null | null |
Add missing `embed_storage` method in Pdf feature (Same as in Audio and Image)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5564745?v=4",
"events_url": "https://api.github.com/users/AndreaFrancis/events{/privacy}",
"followers_url": "https://api.github.com/users/AndreaFrancis/followers",
"following_url": "https://api.github.com/users/AndreaFrancis/following{/other_user}",
"gists_url": "https://api.github.com/users/AndreaFrancis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AndreaFrancis",
"id": 5564745,
"login": "AndreaFrancis",
"node_id": "MDQ6VXNlcjU1NjQ3NDU=",
"organizations_url": "https://api.github.com/users/AndreaFrancis/orgs",
"received_events_url": "https://api.github.com/users/AndreaFrancis/received_events",
"repos_url": "https://api.github.com/users/AndreaFrancis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AndreaFrancis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AndreaFrancis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AndreaFrancis",
"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/7582/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7582/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7582.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7582",
"merged_at": "2025-05-22T14:17:36Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7582.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7582"
}
| 2025-05-22T14:06:29Z
| 2025-05-22T14:17:36Z
| 0:11:07
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7581
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7581/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7581/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7581/events
|
https://github.com/huggingface/datasets/pull/7581
| 3,083,080,413
|
PR_kwDODunzps6XNpm0
| 7,581
|
Add missing property on `RepeatExamplesIterable`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42788329?v=4",
"events_url": "https://api.github.com/users/SilvanCodes/events{/privacy}",
"followers_url": "https://api.github.com/users/SilvanCodes/followers",
"following_url": "https://api.github.com/users/SilvanCodes/following{/other_user}",
"gists_url": "https://api.github.com/users/SilvanCodes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SilvanCodes",
"id": 42788329,
"login": "SilvanCodes",
"node_id": "MDQ6VXNlcjQyNzg4MzI5",
"organizations_url": "https://api.github.com/users/SilvanCodes/orgs",
"received_events_url": "https://api.github.com/users/SilvanCodes/received_events",
"repos_url": "https://api.github.com/users/SilvanCodes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SilvanCodes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SilvanCodes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SilvanCodes",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-05-22T11:41:07Z
| 2025-06-05T12:41:30Z
| 2025-06-05T12:41:29Z
|
CONTRIBUTOR
| null | null | null |
Fixes #7561
|
{
"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/7581/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7581/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7581.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7581",
"merged_at": "2025-06-05T12:41:29Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7581.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7581"
}
| 2025-05-22T11:41:07Z
| 2025-06-05T12:41:29Z
| 14 days, 1:00:22
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7584
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7584/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7584/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7584/events
|
https://github.com/huggingface/datasets/issues/7584
| 3,090,255,023
|
I_kwDODunzps64MYyv
| 7,584
|
Add LMDB format support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30512160?v=4",
"events_url": "https://api.github.com/users/trotsky1997/events{/privacy}",
"followers_url": "https://api.github.com/users/trotsky1997/followers",
"following_url": "https://api.github.com/users/trotsky1997/following{/other_user}",
"gists_url": "https://api.github.com/users/trotsky1997/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trotsky1997",
"id": 30512160,
"login": "trotsky1997",
"node_id": "MDQ6VXNlcjMwNTEyMTYw",
"organizations_url": "https://api.github.com/users/trotsky1997/orgs",
"received_events_url": "https://api.github.com/users/trotsky1997/received_events",
"repos_url": "https://api.github.com/users/trotsky1997/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trotsky1997/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trotsky1997/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trotsky1997",
"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 ! Can you explain what's your use case ? Is it about converting LMDB to Dataset objects (i.e. converting to Arrow) ?",
"created_at": "2025-05-26T18:23:36Z",
"html_url": "https://github.com/huggingface/datasets/issues/7584#issuecomment-2910404108",
"id": 2910404108,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7584",
"node_id": "IC_kwDODunzps6teT4M",
"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/2910404108/reactions"
},
"updated_at": "2025-05-26T18:23:36Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910404108",
"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-05-26T07:10:13Z
| 2025-05-26T18:23:37Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Add LMDB format support for large memory-mapping files
### Motivation
Add LMDB format support for large memory-mapping files
### Your contribution
I'm trying to add it
| 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/7584/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7584/timeline
| null | null | null | null | 2025-05-26T07:10:13Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7580
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7580/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7580/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7580/events
|
https://github.com/huggingface/datasets/issues/7580
| 3,082,993,027
|
I_kwDODunzps63wr2D
| 7,580
|
Requesting a specific split (eg: test) still downloads all (train, test, val) data when streaming=False.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48768216?v=4",
"events_url": "https://api.github.com/users/s3pi/events{/privacy}",
"followers_url": "https://api.github.com/users/s3pi/followers",
"following_url": "https://api.github.com/users/s3pi/following{/other_user}",
"gists_url": "https://api.github.com/users/s3pi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/s3pi",
"id": 48768216,
"login": "s3pi",
"node_id": "MDQ6VXNlcjQ4NzY4MjE2",
"organizations_url": "https://api.github.com/users/s3pi/orgs",
"received_events_url": "https://api.github.com/users/s3pi/received_events",
"repos_url": "https://api.github.com/users/s3pi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/s3pi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/s3pi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/s3pi",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! There was a PR open to improve this: https://github.com/huggingface/datasets/pull/6832 \nbut it hasn't been continued so far.\n\nIt would be a cool improvement though !",
"created_at": "2025-05-26T18:40:30Z",
"html_url": "https://github.com/huggingface/datasets/issues/7580#issuecomment-2910429022",
"id": 2910429022,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7580",
"node_id": "IC_kwDODunzps6teZ9e",
"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/2910429022/reactions"
},
"updated_at": "2025-05-26T18:40:30Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910429022",
"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-05-22T11:08:16Z
| 2025-05-26T18:40:31Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When using load_dataset() from the datasets library (in load.py), specifying a particular split (e.g., split="train") still results in downloading data for all splits when streaming=False. This happens during the builder_instance.download_and_prepare() call.
This behavior leads to unnecessary bandwidth usage and longer download times, especially for large datasets, even if the user only intends to use a single split.
### Steps to reproduce the bug
dataset_name = "skbose/indian-english-nptel-v0"
dataset = load_dataset(dataset_name, token=hf_token, split="test")
### Expected behavior
Optimize the download logic so that only the required split is downloaded when streaming=False when a specific split is provided.
### Environment info
Dataset: skbose/indian-english-nptel-v0
Platform: M1 Apple Silicon
Python verison: 3.12.9
datasets>=3.5.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/7580/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7580/timeline
| null | null | null | null | 2025-05-22T11:08:16Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7579
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7579/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7579/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7579/events
|
https://github.com/huggingface/datasets/pull/7579
| 3,081,849,022
|
PR_kwDODunzps6XJerX
| 7,579
|
Fix typos in PDF and Video documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5564745?v=4",
"events_url": "https://api.github.com/users/AndreaFrancis/events{/privacy}",
"followers_url": "https://api.github.com/users/AndreaFrancis/followers",
"following_url": "https://api.github.com/users/AndreaFrancis/following{/other_user}",
"gists_url": "https://api.github.com/users/AndreaFrancis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AndreaFrancis",
"id": 5564745,
"login": "AndreaFrancis",
"node_id": "MDQ6VXNlcjU1NjQ3NDU=",
"organizations_url": "https://api.github.com/users/AndreaFrancis/orgs",
"received_events_url": "https://api.github.com/users/AndreaFrancis/received_events",
"repos_url": "https://api.github.com/users/AndreaFrancis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AndreaFrancis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AndreaFrancis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AndreaFrancis",
"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_7579). 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-05-22T02:30:24Z",
"html_url": "https://github.com/huggingface/datasets/pull/7579#issuecomment-2899724292",
"id": 2899724292,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7579",
"node_id": "IC_kwDODunzps6s1kgE",
"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/2899724292/reactions"
},
"updated_at": "2025-05-22T02:30:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2899724292",
"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-05-22T02:27:40Z
| 2025-05-22T12:53:49Z
| 2025-05-22T12:53:47Z
|
CONTRIBUTOR
| 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/7579/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7579/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7579.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7579",
"merged_at": "2025-05-22T12:53:47Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7579.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7579"
}
| 2025-05-22T02:27:40Z
| 2025-05-22T12:53:47Z
| 10:26:07
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7577
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7577/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7577/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7577/events
|
https://github.com/huggingface/datasets/issues/7577
| 3,080,833,740
|
I_kwDODunzps63ocrM
| 7,577
|
arrow_schema is not compatible with list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/164412025?v=4",
"events_url": "https://api.github.com/users/jonathanshen-upwork/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanshen-upwork/followers",
"following_url": "https://api.github.com/users/jonathanshen-upwork/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanshen-upwork/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanshen-upwork",
"id": 164412025,
"login": "jonathanshen-upwork",
"node_id": "U_kgDOCcy6eQ",
"organizations_url": "https://api.github.com/users/jonathanshen-upwork/orgs",
"received_events_url": "https://api.github.com/users/jonathanshen-upwork/received_events",
"repos_url": "https://api.github.com/users/jonathanshen-upwork/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanshen-upwork/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanshen-upwork/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanshen-upwork",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Thanks for reporting, I'll look into it",
"created_at": "2025-05-26T18:29:38Z",
"html_url": "https://github.com/huggingface/datasets/issues/7577#issuecomment-2910412207",
"id": 2910412207,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7577",
"node_id": "IC_kwDODunzps6teV2v",
"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/2910412207/reactions"
},
"updated_at": "2025-05-26T18:29:38Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910412207",
"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": "Actually it looks like you just forgot parenthesis:\n\n```diff\n- f = datasets.Features({'x': list[datasets.Value(dtype='int32')]})\n+ f = datasets.Features({'x': list([datasets.Value(dtype='int32')])})\n```\n\nor simply using the `[ ]` syntax:\n\n```python\nf = datasets.Features({'x':[datasets.Value(dtype='int32')]})\n```\n\nI'm closing this issue if you don't mind",
"created_at": "2025-05-26T18:32:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7577#issuecomment-2910418458",
"id": 2910418458,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7577",
"node_id": "IC_kwDODunzps6teXYa",
"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/2910418458/reactions"
},
"updated_at": "2025-05-26T18:32:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910418458",
"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": "Ah is that what the syntax is? I don't think I was able to find an actual example of it so I assumed it was in the same way that you specify types eg. `list[int]`. This is good to know, thanks.",
"created_at": "2025-05-26T18:49:50Z",
"html_url": "https://github.com/huggingface/datasets/issues/7577#issuecomment-2910449519",
"id": 2910449519,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7577",
"node_id": "IC_kwDODunzps6tee9v",
"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/2910449519/reactions"
},
"updated_at": "2025-05-26T18:49:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910449519",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/164412025?v=4",
"events_url": "https://api.github.com/users/jonathanshen-upwork/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanshen-upwork/followers",
"following_url": "https://api.github.com/users/jonathanshen-upwork/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanshen-upwork/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanshen-upwork",
"id": 164412025,
"login": "jonathanshen-upwork",
"node_id": "U_kgDOCcy6eQ",
"organizations_url": "https://api.github.com/users/jonathanshen-upwork/orgs",
"received_events_url": "https://api.github.com/users/jonathanshen-upwork/received_events",
"repos_url": "https://api.github.com/users/jonathanshen-upwork/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanshen-upwork/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanshen-upwork/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanshen-upwork",
"user_view_type": "public"
}
}
] | 2025-05-21T16:37:01Z
| 2025-05-26T18:49:51Z
| 2025-05-26T18:32:55Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
```
import datasets
f = datasets.Features({'x': list[datasets.Value(dtype='int32')]})
f.arrow_schema
Traceback (most recent call last):
File "datasets/features/features.py", line 1826, in arrow_schema
return pa.schema(self.type).with_metadata({"huggingface": json.dumps(hf_metadata)})
^^^^^^^^^
File "datasets/features/features.py", line 1815, in type
return get_nested_type(self)
^^^^^^^^^^^^^^^^^^^^^
File "datasets/features/features.py", line 1252, in get_nested_type
return pa.struct(
^^^^^^^^^^
File "pyarrow/types.pxi", line 5406, in pyarrow.lib.struct
File "pyarrow/types.pxi", line 3890, in pyarrow.lib.field
File "pyarrow/types.pxi", line 5918, in pyarrow.lib.ensure_type
TypeError: DataType expected, got <class 'list'>
```
The following works
```
f = datasets.Features({'x': datasets.LargeList(datasets.Value(dtype='int32'))})
```
### Expected behavior
according to https://github.com/huggingface/datasets/blob/458f45a22c3cc9aea5f442f6f519333dcfeae9b9/src/datasets/features/features.py#L1765 python list should be a valid type specification for features
### Environment info
- `datasets` version: 3.5.1
- Platform: macOS-15.5-arm64-arm-64bit
- Python version: 3.12.9
- `huggingface_hub` version: 0.30.2
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.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": 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/7577/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7577/timeline
| null |
completed
| null | null | 2025-05-21T16:37:01Z
| 2025-05-26T18:32:55Z
| 5 days, 1:55:54
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7575
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7575/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7575/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7575/events
|
https://github.com/huggingface/datasets/pull/7575
| 3,080,228,718
|
PR_kwDODunzps6XD9gM
| 7,575
|
[MINOR:TYPO] Update save_to_disk docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3664563?v=4",
"events_url": "https://api.github.com/users/cakiki/events{/privacy}",
"followers_url": "https://api.github.com/users/cakiki/followers",
"following_url": "https://api.github.com/users/cakiki/following{/other_user}",
"gists_url": "https://api.github.com/users/cakiki/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cakiki",
"id": 3664563,
"login": "cakiki",
"node_id": "MDQ6VXNlcjM2NjQ1NjM=",
"organizations_url": "https://api.github.com/users/cakiki/orgs",
"received_events_url": "https://api.github.com/users/cakiki/received_events",
"repos_url": "https://api.github.com/users/cakiki/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cakiki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cakiki/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cakiki",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-05-21T13:22:24Z
| 2025-06-05T12:39:13Z
| 2025-06-05T12:39:13Z
|
CONTRIBUTOR
| null | null | null |
r/hub/filesystem in save_to_disk
|
{
"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/7575/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7575/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7575.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7575",
"merged_at": "2025-06-05T12:39:13Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7575.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7575"
}
| 2025-05-21T13:22:24Z
| 2025-06-05T12:39:13Z
| 14 days, 23:16:49
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7576
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7576/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7576/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7576/events
|
https://github.com/huggingface/datasets/pull/7576
| 3,080,450,538
|
PR_kwDODunzps6XEuMz
| 7,576
|
Fix regex library warnings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35470921?v=4",
"events_url": "https://api.github.com/users/emmanuel-ferdman/events{/privacy}",
"followers_url": "https://api.github.com/users/emmanuel-ferdman/followers",
"following_url": "https://api.github.com/users/emmanuel-ferdman/following{/other_user}",
"gists_url": "https://api.github.com/users/emmanuel-ferdman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/emmanuel-ferdman",
"id": 35470921,
"login": "emmanuel-ferdman",
"node_id": "MDQ6VXNlcjM1NDcwOTIx",
"organizations_url": "https://api.github.com/users/emmanuel-ferdman/orgs",
"received_events_url": "https://api.github.com/users/emmanuel-ferdman/received_events",
"repos_url": "https://api.github.com/users/emmanuel-ferdman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/emmanuel-ferdman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/emmanuel-ferdman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/emmanuel-ferdman",
"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_7576). 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-04T13:11:08Z",
"html_url": "https://github.com/huggingface/datasets/pull/7576#issuecomment-2939987135",
"id": 2939987135,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7576",
"node_id": "IC_kwDODunzps6vPKS_",
"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/2939987135/reactions"
},
"updated_at": "2025-06-04T13:11:08Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2939987135",
"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-05-21T14:31:58Z
| 2025-06-05T13:35:16Z
| 2025-06-05T12:37:55Z
|
CONTRIBUTOR
| null | null | null |
# PR Summary
This small PR resolves the regex library warnings showing starting Python3.11:
```python
DeprecationWarning: 'count' is passed as positional argument
```
|
{
"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/7576/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7576/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7576.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7576",
"merged_at": "2025-06-05T12:37:55Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7576.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7576"
}
| 2025-05-21T14:31:58Z
| 2025-06-05T12:37:55Z
| 14 days, 22:05:57
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7574
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7574/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7574/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7574/events
|
https://github.com/huggingface/datasets/issues/7574
| 3,079,641,072
|
I_kwDODunzps63j5fw
| 7,574
|
Missing multilingual directions in IWSLT2017 dataset's processing script
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/79297451?v=4",
"events_url": "https://api.github.com/users/andy-joy-25/events{/privacy}",
"followers_url": "https://api.github.com/users/andy-joy-25/followers",
"following_url": "https://api.github.com/users/andy-joy-25/following{/other_user}",
"gists_url": "https://api.github.com/users/andy-joy-25/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andy-joy-25",
"id": 79297451,
"login": "andy-joy-25",
"node_id": "MDQ6VXNlcjc5Mjk3NDUx",
"organizations_url": "https://api.github.com/users/andy-joy-25/orgs",
"received_events_url": "https://api.github.com/users/andy-joy-25/received_events",
"repos_url": "https://api.github.com/users/andy-joy-25/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andy-joy-25/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andy-joy-25/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andy-joy-25",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "I have opened 2 PRs on the Hub: `https://huggingface.co/datasets/IWSLT/iwslt2017/discussions/7` and `https://huggingface.co/datasets/IWSLT/iwslt2017/discussions/8` to resolve this issue",
"created_at": "2025-05-21T10:14:06Z",
"html_url": "https://github.com/huggingface/datasets/issues/7574#issuecomment-2897403729",
"id": 2897403729,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7574",
"node_id": "IC_kwDODunzps6sst9R",
"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/2897403729/reactions"
},
"updated_at": "2025-05-21T10:14:06Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2897403729",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/79297451?v=4",
"events_url": "https://api.github.com/users/andy-joy-25/events{/privacy}",
"followers_url": "https://api.github.com/users/andy-joy-25/followers",
"following_url": "https://api.github.com/users/andy-joy-25/following{/other_user}",
"gists_url": "https://api.github.com/users/andy-joy-25/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andy-joy-25",
"id": 79297451,
"login": "andy-joy-25",
"node_id": "MDQ6VXNlcjc5Mjk3NDUx",
"organizations_url": "https://api.github.com/users/andy-joy-25/orgs",
"received_events_url": "https://api.github.com/users/andy-joy-25/received_events",
"repos_url": "https://api.github.com/users/andy-joy-25/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andy-joy-25/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andy-joy-25/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andy-joy-25",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "cool ! I pinged the owners of the dataset on HF to merge your PRs :)",
"created_at": "2025-05-26T18:36:24Z",
"html_url": "https://github.com/huggingface/datasets/issues/7574#issuecomment-2910422688",
"id": 2910422688,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7574",
"node_id": "IC_kwDODunzps6teYag",
"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/2910422688/reactions"
},
"updated_at": "2025-05-26T18:36:37Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2910422688",
"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-05-21T09:53:17Z
| 2025-05-26T18:36:38Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hi,
Upon using `iwslt2017.py` in `IWSLT/iwslt2017` on the Hub for loading the datasets, I am unable to obtain the datasets for the language pairs `de-it`, `de-ro`, `de-nl`, `it-de`, `nl-de`, and `ro-de` using it. These 6 pairs do not show up when using `get_dataset_config_names()` to obtain the list of all the configs present in `IWSLT/iwslt2017`. This should not be the case since as mentioned in their original paper (please see https://aclanthology.org/2017.iwslt-1.1.pdf), the authors specify that "_this year we proposed the multilingual translation between any pair of languages from {Dutch, English, German, Italian, Romanian}..._" and because these datasets are indeed present in `data/2017-01-trnmted/texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.zip`.
Best Regards,
Anand
### Steps to reproduce the bug
Check the output of `get_dataset_config_names("IWSLT/iwslt2017", trust_remote_code=True)`: only 24 language pairs are present and the following 6 config names are absent: `iwslt2017-de-it`, `iwslt2017-de-ro`, `iwslt2017-de-nl`, `iwslt2017-it-de`, `iwslt2017-nl-de`, and `iwslt2017-ro-de`.
### Expected behavior
The aforementioned 6 language pairs should also be present and hence, all these 6 language pairs' IWSLT2017 datasets must also be available for further use.
I would suggest removing `de` from the `BI_LANGUAGES` list and moving it over to the `MULTI_LANGUAGES` list instead in `iwslt2017.py` to account for all the 6 missing language pairs (the same `de-en` dataset is present in both `data/2017-01-trnmted/texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.zip` and `data/2017-01-trnted/texts/de/en/de-en.zip` but the `de-ro`, `de-nl`, `it-de`, `nl-de`, and `ro-de` datasets are only present in `data/2017-01-trnmted/texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.zip`: so, its unclear why the following comment: _`# XXX: Artificially removed DE from here, as it also exists within bilingual data`_ has been added as `L71` in `iwslt2017.py`). The `README.md` file in `IWSLT/iwslt2017`must then be re-created using `datasets-cli test path/to/iwslt2017.py --save_info --all_configs` to pass all split size verification checks for the 6 new language pairs which were previously non-existent.
### Environment info
- `datasets` version: 3.5.0
- Platform: Linux-6.8.0-56-generic-x86_64-with-glibc2.39
- Python version: 3.12.3
- `huggingface_hub` version: 0.30.1
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.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/7574/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7574/timeline
| null | null | null | null | 2025-05-21T09:53:17Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7572
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7572/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7572/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7572/events
|
https://github.com/huggingface/datasets/pull/7572
| 3,074,529,251
|
PR_kwDODunzps6WwsZB
| 7,572
|
Fixed typos
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq, mentioning in case you haven't seen this PR. The contribution is very small and easy to check :)",
"created_at": "2025-05-22T18:10:24Z",
"html_url": "https://github.com/huggingface/datasets/pull/7572#issuecomment-2902125880",
"id": 2902125880,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7572",
"node_id": "IC_kwDODunzps6s-u04",
"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/2902125880/reactions"
},
"updated_at": "2025-05-22T18:10:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2902125880",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
}
] | 2025-05-19T17:16:59Z
| 2025-06-05T12:25:42Z
| 2025-06-05T12:25:41Z
|
CONTRIBUTOR
| null | null | null |
More info: [comment](https://github.com/huggingface/datasets/pull/7564#issuecomment-2863391781).
|
{
"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/7572/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7572/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7572.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7572",
"merged_at": "2025-06-05T12:25:41Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7572.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7572"
}
| 2025-05-19T17:16:59Z
| 2025-06-05T12:25:41Z
| 16 days, 19:08:42
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7571
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7571/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7571/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7571/events
|
https://github.com/huggingface/datasets/pull/7571
| 3,074,116,942
|
PR_kwDODunzps6WvRqi
| 7,571
|
fix string_to_dict test
|
{
"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_7571). 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-05-19T14:52:23Z",
"html_url": "https://github.com/huggingface/datasets/pull/7571#issuecomment-2891331756",
"id": 2891331756,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7571",
"node_id": "IC_kwDODunzps6sVjis",
"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/2891331756/reactions"
},
"updated_at": "2025-05-19T14:52:23Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2891331756",
"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-05-19T14:49:23Z
| 2025-05-19T14:52:24Z
| 2025-05-19T14:49:28Z
|
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/7571/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7571/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7571.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7571",
"merged_at": "2025-05-19T14:49:28Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7571.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7571"
}
| 2025-05-19T14:49:23Z
| 2025-05-19T14:49:28Z
| 0:00:05
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7573
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7573/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7573/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7573/events
|
https://github.com/huggingface/datasets/issues/7573
| 3,076,415,382
|
I_kwDODunzps63Xl-W
| 7,573
|
No Samsum dataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17688220?v=4",
"events_url": "https://api.github.com/users/IgorKasianenko/events{/privacy}",
"followers_url": "https://api.github.com/users/IgorKasianenko/followers",
"following_url": "https://api.github.com/users/IgorKasianenko/following{/other_user}",
"gists_url": "https://api.github.com/users/IgorKasianenko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IgorKasianenko",
"id": 17688220,
"login": "IgorKasianenko",
"node_id": "MDQ6VXNlcjE3Njg4MjIw",
"organizations_url": "https://api.github.com/users/IgorKasianenko/orgs",
"received_events_url": "https://api.github.com/users/IgorKasianenko/received_events",
"repos_url": "https://api.github.com/users/IgorKasianenko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IgorKasianenko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IgorKasianenko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IgorKasianenko",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "According to the following https://huggingface.co/posts/seawolf2357/424129432408590, as of now the dataset seems to be inaccessible.\n\n@IgorKasianenko, would https://huggingface.co/datasets/knkarthick/samsum suffice for your purpose?\n",
"created_at": "2025-06-09T07:46:53Z",
"html_url": "https://github.com/huggingface/datasets/issues/7573#issuecomment-2954970335",
"id": 2954970335,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7573",
"node_id": "IC_kwDODunzps6wIUTf",
"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/2954970335/reactions"
},
"updated_at": "2025-06-09T07:48:18Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2954970335",
"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": "Thanks @SP1029 for the update!\nThat will work for now, using it as replacement. Is there a officially recommended way to maintain the CC licensed dataset under the organization account? \nFeel free to close this issue",
"created_at": "2025-06-09T08:58:23Z",
"html_url": "https://github.com/huggingface/datasets/issues/7573#issuecomment-2955136470",
"id": 2955136470,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7573",
"node_id": "IC_kwDODunzps6wI83W",
"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/2955136470/reactions"
},
"updated_at": "2025-06-09T08:58:23Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2955136470",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/17688220?v=4",
"events_url": "https://api.github.com/users/IgorKasianenko/events{/privacy}",
"followers_url": "https://api.github.com/users/IgorKasianenko/followers",
"following_url": "https://api.github.com/users/IgorKasianenko/following{/other_user}",
"gists_url": "https://api.github.com/users/IgorKasianenko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IgorKasianenko",
"id": 17688220,
"login": "IgorKasianenko",
"node_id": "MDQ6VXNlcjE3Njg4MjIw",
"organizations_url": "https://api.github.com/users/IgorKasianenko/orgs",
"received_events_url": "https://api.github.com/users/IgorKasianenko/received_events",
"repos_url": "https://api.github.com/users/IgorKasianenko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IgorKasianenko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IgorKasianenko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IgorKasianenko",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "> Is there an officially recommended way to maintain a CC-licensed dataset under an organizational account?\n\n@IgorKasianenko, apologies, this is not my area of expertise.\n\n> Please feel free to close this issue.\n\nI have limited access and may not be able to do that. Since you opened it, you would be able to close it.",
"created_at": "2025-06-18T11:04:11Z",
"html_url": "https://github.com/huggingface/datasets/issues/7573#issuecomment-2983741144",
"id": 2983741144,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7573",
"node_id": "IC_kwDODunzps6x2EbY",
"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/2983741144/reactions"
},
"updated_at": "2025-06-18T11:04:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2983741144",
"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": "dataset_samsum = load_dataset(\"knkarthick/samsum\")\n\nis working",
"created_at": "2025-07-21T18:34:34Z",
"html_url": "https://github.com/huggingface/datasets/issues/7573#issuecomment-3097951980",
"id": 3097951980,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7573",
"node_id": "IC_kwDODunzps64pv7s",
"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/3097951980/reactions"
},
"updated_at": "2025-07-21T18:34:34Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3097951980",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/204709624?v=4",
"events_url": "https://api.github.com/users/ynaghibi/events{/privacy}",
"followers_url": "https://api.github.com/users/ynaghibi/followers",
"following_url": "https://api.github.com/users/ynaghibi/following{/other_user}",
"gists_url": "https://api.github.com/users/ynaghibi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ynaghibi",
"id": 204709624,
"login": "ynaghibi",
"node_id": "U_kgDODDOe-A",
"organizations_url": "https://api.github.com/users/ynaghibi/orgs",
"received_events_url": "https://api.github.com/users/ynaghibi/received_events",
"repos_url": "https://api.github.com/users/ynaghibi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ynaghibi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ynaghibi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ynaghibi",
"user_view_type": "public"
}
}
] | 2025-05-20T09:54:35Z
| 2025-07-21T18:34:34Z
| 2025-06-18T12:52:23Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
https://huggingface.co/datasets/Samsung/samsum dataset not found error 404
Originated from https://github.com/meta-llama/llama-cookbook/issues/948
### Steps to reproduce the bug
go to website https://huggingface.co/datasets/Samsung/samsum
see the error
also downloading it with python throws
```
Couldn't find 'Samsung/samsum' on the Hugging Face Hub either: FileNotFoundError: Samsung/samsum@f00baf5a7d4abfec6820415493bcb52c587788e6/samsum.py (repository not found)
```
### Expected behavior
Dataset exists
### Environment info
```
- `datasets` version: 3.2.0
- Platform: macOS-15.4.1-arm64-arm-64bit
- Python version: 3.12.2
- `huggingface_hub` version: 0.26.5
- PyArrow version: 16.1.0
- Pandas version: 2.2.3
- `fsspec` version: 2024.9.0
```
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17688220?v=4",
"events_url": "https://api.github.com/users/IgorKasianenko/events{/privacy}",
"followers_url": "https://api.github.com/users/IgorKasianenko/followers",
"following_url": "https://api.github.com/users/IgorKasianenko/following{/other_user}",
"gists_url": "https://api.github.com/users/IgorKasianenko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IgorKasianenko",
"id": 17688220,
"login": "IgorKasianenko",
"node_id": "MDQ6VXNlcjE3Njg4MjIw",
"organizations_url": "https://api.github.com/users/IgorKasianenko/orgs",
"received_events_url": "https://api.github.com/users/IgorKasianenko/received_events",
"repos_url": "https://api.github.com/users/IgorKasianenko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IgorKasianenko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IgorKasianenko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IgorKasianenko",
"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/7573/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7573/timeline
| null |
completed
| null | null | 2025-05-20T09:54:35Z
| 2025-06-18T12:52:23Z
| 29 days, 2:57:48
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7570
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7570/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7570/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7570/events
|
https://github.com/huggingface/datasets/issues/7570
| 3,065,966,529
|
I_kwDODunzps62vu_B
| 7,570
|
Dataset lib seems to broke after fssec lib update
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/81933585?v=4",
"events_url": "https://api.github.com/users/sleepingcat4/events{/privacy}",
"followers_url": "https://api.github.com/users/sleepingcat4/followers",
"following_url": "https://api.github.com/users/sleepingcat4/following{/other_user}",
"gists_url": "https://api.github.com/users/sleepingcat4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sleepingcat4",
"id": 81933585,
"login": "sleepingcat4",
"node_id": "MDQ6VXNlcjgxOTMzNTg1",
"organizations_url": "https://api.github.com/users/sleepingcat4/orgs",
"received_events_url": "https://api.github.com/users/sleepingcat4/received_events",
"repos_url": "https://api.github.com/users/sleepingcat4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sleepingcat4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sleepingcat4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sleepingcat4",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi, can you try updating `datasets` ? Colab still installs `datasets` 2.x by default, instead of 3.x\n\nIt would be cool to also report this to google colab, they have a GitHub repo for this IIRC",
"created_at": "2025-06-02T10:09:20Z",
"html_url": "https://github.com/huggingface/datasets/issues/7570#issuecomment-2929824955",
"id": 2929824955,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7570",
"node_id": "IC_kwDODunzps6uoZS7",
"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/2929824955/reactions"
},
"updated_at": "2025-06-02T10:10:02Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2929824955",
"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 I have updated it to `datasets==3.6.0` and now there's an entirely different issue on colab while locally its fine. \n\n```\n/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning: \nThe secret `HF_TOKEN` does not exist in your Colab secrets.\nTo authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\nYou will be able to reuse this secret in all of your notebooks.\nPlease note that authentication is recommended but still optional to access public models or datasets.\n warnings.warn(\nREADME.md: 100%\n 2.88k/2.88k [00:00<00:00, 166kB/s]\nsuno.jsonl.zst: 100%\n 221M/221M [00:05<00:00, 48.6MB/s]\nGenerating train split: \n 18633/0 [00:01<00:00, 13018.92 examples/s]\n---------------------------------------------------------------------------\nTypeError Traceback (most recent call last)\n[/usr/local/lib/python3.11/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\n 1870 try:\n-> 1871 writer.write_table(table)\n 1872 except CastError as cast_error:\n\n17 frames\nTypeError: Couldn't cast array of type\nstruct<id: string, type: string, infill: bool, source: string, continue_at: double, infill_dur_s: double, infill_end_s: double, infill_start_s: double, include_future_s: double, include_history_s: double, infill_context_end_s: double, infill_context_start_s: int64>\nto\n{'id': Value(dtype='string', id=None), 'type': Value(dtype='string', id=None), 'infill': Value(dtype='bool', id=None), 'source': Value(dtype='string', id=None), 'continue_at': Value(dtype='float64', id=None), 'include_history_s': Value(dtype='float64', id=None)}\n\nThe above exception was the direct cause of the following exception:\n\nDatasetGenerationError Traceback (most recent call last)\n[/usr/local/lib/python3.11/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\n 1896 if isinstance(e, DatasetGenerationError):\n 1897 raise\n-> 1898 raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\n 1899 \n 1900 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)\n\nDatasetGenerationError: An error occurred while generating the dataset\n```",
"created_at": "2025-06-13T00:36:36Z",
"html_url": "https://github.com/huggingface/datasets/issues/7570#issuecomment-2968628070",
"id": 2968628070,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7570",
"node_id": "IC_kwDODunzps6w8atm",
"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/2968628070/reactions"
},
"updated_at": "2025-06-13T00:36:36Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2968628070",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/81933585?v=4",
"events_url": "https://api.github.com/users/sleepingcat4/events{/privacy}",
"followers_url": "https://api.github.com/users/sleepingcat4/followers",
"following_url": "https://api.github.com/users/sleepingcat4/following{/other_user}",
"gists_url": "https://api.github.com/users/sleepingcat4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sleepingcat4",
"id": 81933585,
"login": "sleepingcat4",
"node_id": "MDQ6VXNlcjgxOTMzNTg1",
"organizations_url": "https://api.github.com/users/sleepingcat4/orgs",
"received_events_url": "https://api.github.com/users/sleepingcat4/received_events",
"repos_url": "https://api.github.com/users/sleepingcat4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sleepingcat4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sleepingcat4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sleepingcat4",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "@lhoestq opps sorry the dataset was in .zst which was causing this error rather than being a datasets library fault. After upgrading dataset version Colab is working fine. ",
"created_at": "2025-06-13T00:44:27Z",
"html_url": "https://github.com/huggingface/datasets/issues/7570#issuecomment-2968647781",
"id": 2968647781,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7570",
"node_id": "IC_kwDODunzps6w8fhl",
"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/2968647781/reactions"
},
"updated_at": "2025-06-13T00:44:27Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2968647781",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/81933585?v=4",
"events_url": "https://api.github.com/users/sleepingcat4/events{/privacy}",
"followers_url": "https://api.github.com/users/sleepingcat4/followers",
"following_url": "https://api.github.com/users/sleepingcat4/following{/other_user}",
"gists_url": "https://api.github.com/users/sleepingcat4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sleepingcat4",
"id": 81933585,
"login": "sleepingcat4",
"node_id": "MDQ6VXNlcjgxOTMzNTg1",
"organizations_url": "https://api.github.com/users/sleepingcat4/orgs",
"received_events_url": "https://api.github.com/users/sleepingcat4/received_events",
"repos_url": "https://api.github.com/users/sleepingcat4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sleepingcat4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sleepingcat4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sleepingcat4",
"user_view_type": "public"
}
}
] | 2025-05-15T11:45:06Z
| 2025-06-13T00:44:27Z
| 2025-06-13T00:44:27Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
I am facing an issue since today where HF's dataset is acting weird and in some instances failure to recognise a valid dataset entirely, I think it is happening due to recent change in `fsspec` lib as using this command fixed it for me in one-time: `!pip install -U datasets huggingface_hub fsspec`
### Steps to reproduce the bug
from datasets import load_dataset
def download_hf():
dataset_name = input("Enter the dataset name: ")
subset_name = input("Enter subset name: ")
ds = load_dataset(dataset_name, name=subset_name)
for split in ds:
ds[split].to_pandas().to_csv(f"{subset_name}.csv", index=False)
download_hf()
### Expected behavior
```
Downloading readme: 100%
1.55k/1.55k [00:00<00:00, 121kB/s]
Downloading data files: 100%
1/1 [00:00<00:00, 2.06it/s]
Downloading data: 0%| | 0.00/54.2k [00:00<?, ?B/s]
Downloading data: 100%|██████████| 54.2k/54.2k [00:00<00:00, 121kB/s]
Extracting data files: 100%
1/1 [00:00<00:00, 35.17it/s]
Generating test split:
140/0 [00:00<00:00, 2628.62 examples/s]
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
[<ipython-input-2-12ab305b0e77>](https://localhost:8080/#) in <cell line: 0>()
8 ds[split].to_pandas().to_csv(f"{subset_name}.csv", index=False)
9
---> 10 download_hf()
2 frames
[/usr/local/lib/python3.11/dist-packages/datasets/builder.py](https://localhost:8080/#) in as_dataset(self, split, run_post_process, verification_mode, ignore_verifications, in_memory)
1171 is_local = not is_remote_filesystem(self._fs)
1172 if not is_local:
-> 1173 raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
1174 if not os.path.exists(self._output_dir):
1175 raise FileNotFoundError(
NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.
```
OR
```
Traceback (most recent call last):
File "e:\Fuck\download-data\mcq_dataset.py", line 10, in <module>
download_hf()
File "e:\Fuck\download-data\mcq_dataset.py", line 6, in download_hf
ds = load_dataset(dataset_name, name=subset_name)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\datasets\load.py", line 2606, in load_dataset
builder_instance = load_dataset_builder(
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\datasets\load.py", line 2277, in load_dataset_builder
dataset_module = dataset_module_factory(
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\datasets\load.py", line 1917, in dataset_module_factory
raise e1 from None
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\datasets\load.py", line 1867, in dataset_module_factory
raise DatasetNotFoundError(f"Dataset '{path}' doesn't exist on the Hub or cannot be accessed.") from e
datasets.exceptions.DatasetNotFoundError: Dataset 'dataset repo_id' doesn't exist on the Hub or cannot be accessed.
```
### Environment info
colab and 3.10 local system
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/81933585?v=4",
"events_url": "https://api.github.com/users/sleepingcat4/events{/privacy}",
"followers_url": "https://api.github.com/users/sleepingcat4/followers",
"following_url": "https://api.github.com/users/sleepingcat4/following{/other_user}",
"gists_url": "https://api.github.com/users/sleepingcat4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sleepingcat4",
"id": 81933585,
"login": "sleepingcat4",
"node_id": "MDQ6VXNlcjgxOTMzNTg1",
"organizations_url": "https://api.github.com/users/sleepingcat4/orgs",
"received_events_url": "https://api.github.com/users/sleepingcat4/received_events",
"repos_url": "https://api.github.com/users/sleepingcat4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sleepingcat4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sleepingcat4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sleepingcat4",
"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/7570/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7570/timeline
| null |
completed
| null | null | 2025-05-15T11:45:06Z
| 2025-06-13T00:44:27Z
| 28 days, 12:59:21
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7569
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7569/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7569/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7569/events
|
https://github.com/huggingface/datasets/issues/7569
| 3,061,234,054
|
I_kwDODunzps62drmG
| 7,569
|
Dataset creation is broken if nesting a dict inside a dict inside a list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/25732590?v=4",
"events_url": "https://api.github.com/users/TimSchneider42/events{/privacy}",
"followers_url": "https://api.github.com/users/TimSchneider42/followers",
"following_url": "https://api.github.com/users/TimSchneider42/following{/other_user}",
"gists_url": "https://api.github.com/users/TimSchneider42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TimSchneider42",
"id": 25732590,
"login": "TimSchneider42",
"node_id": "MDQ6VXNlcjI1NzMyNTkw",
"organizations_url": "https://api.github.com/users/TimSchneider42/orgs",
"received_events_url": "https://api.github.com/users/TimSchneider42/received_events",
"repos_url": "https://api.github.com/users/TimSchneider42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TimSchneider42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TimSchneider42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TimSchneider42",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! That's because Séquence is a type that comes from tensorflow datasets and inverts lists and focus when doing Séquence(dict).\n\nInstead you should use a list. In your case\n```python\nfeatures = Features({\n \"a\": [{\"b\": {\"c\": Value(\"string\")}}]\n})\n```",
"created_at": "2025-05-14T23:02:52Z",
"html_url": "https://github.com/huggingface/datasets/issues/7569#issuecomment-2881784979",
"id": 2881784979,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7569",
"node_id": "IC_kwDODunzps6rxIyT",
"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/2881784979/reactions"
},
"updated_at": "2025-05-14T23:02:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881784979",
"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,\n\nThanks for the swift reply! Could you quickly clarify a couple of points?\n\n1. Is there any benefit in using Sequence over normal lists? Especially for longer lists (in my case, up to 256 entries)\n2. When exactly can I use Sequence? If there is a maximum of one level of dictionaries inside, then it's always fine?\n3. When creating the data in the generator, do I need to swap lists and dicts manually, or does that happen automatically?\n\nAlso, the documentation does not seem to mention this limitation of the Sequence type anywhere and encourages users to use it [here](https://huggingface.co/docs/datasets/en/about_dataset_features). In fact, I did not even know that just using a Python list was an option. Maybe the documentation can be improved to mention the limitations of Sequence and highlight that lists can be used instead.\n\nThanks a lot in advance!\n\nBest,\nTim",
"created_at": "2025-05-20T19:25:15Z",
"html_url": "https://github.com/huggingface/datasets/issues/7569#issuecomment-2895588034",
"id": 2895588034,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7569",
"node_id": "IC_kwDODunzps6slyrC",
"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/2895588034/reactions"
},
"updated_at": "2025-05-20T19:25:15Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2895588034",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/25732590?v=4",
"events_url": "https://api.github.com/users/TimSchneider42/events{/privacy}",
"followers_url": "https://api.github.com/users/TimSchneider42/followers",
"following_url": "https://api.github.com/users/TimSchneider42/following{/other_user}",
"gists_url": "https://api.github.com/users/TimSchneider42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TimSchneider42",
"id": 25732590,
"login": "TimSchneider42",
"node_id": "MDQ6VXNlcjI1NzMyNTkw",
"organizations_url": "https://api.github.com/users/TimSchneider42/orgs",
"received_events_url": "https://api.github.com/users/TimSchneider42/received_events",
"repos_url": "https://api.github.com/users/TimSchneider42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TimSchneider42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TimSchneider42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TimSchneider42",
"user_view_type": "public"
}
}
] | 2025-05-13T21:06:45Z
| 2025-05-20T19:25:15Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hey,
I noticed that the creation of datasets with `Dataset.from_generator` is broken if dicts and lists are nested in a certain way and a schema is being passed. See below for details.
Best,
Tim
### Steps to reproduce the bug
Runing this code:
```python
from datasets import Dataset, Features, Sequence, Value
def generator():
yield {
"a": [{"b": {"c": 0}}],
}
features = Features(
{
"a": Sequence(
feature={
"b": {
"c": Value("int32"),
},
},
length=1,
)
}
)
dataset = Dataset.from_generator(generator, features=features)
```
leads to
```
Generating train split: 1 examples [00:00, 540.85 examples/s]
Traceback (most recent call last):
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 1635, in _prepare_split_single
num_examples, num_bytes = writer.finalize()
^^^^^^^^^^^^^^^^^
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/arrow_writer.py", line 657, in finalize
self.write_examples_on_file()
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/arrow_writer.py", line 510, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/arrow_writer.py", line 629, in write_batch
pa_table = pa.Table.from_arrays(arrays, schema=schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/table.pxi", line 4851, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 1608, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 399, in pyarrow.lib.asarray
File "pyarrow/array.pxi", line 1004, in pyarrow.lib.Array.cast
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/pyarrow/compute.py", line 405, in cast
return call_function("cast", [arr], options, memory_pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_compute.pyx", line 598, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 393, in pyarrow._compute.Function.call
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.ArrowNotImplementedError: Unsupported cast from fixed_size_list<item: struct<c: int32>>[1] to struct using function cast_struct
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/test/tools/hf_test2.py", line 23, in <module>
dataset = Dataset.from_generator(generator, features=features)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/arrow_dataset.py", line 1114, in from_generator
).read()
^^^^^^
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/io/generator.py", line 49, in read
self.builder.download_and_prepare(
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 925, in download_and_prepare
self._download_and_prepare(
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 1649, in _download_and_prepare
super()._download_and_prepare(
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 1487, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/home/user/miniconda3/envs/test/lib/python3.11/site-packages/datasets/builder.py", line 1644, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
Process finished with exit code 1
```
### Expected behavior
I expected this code not to lead to an error.
I have done some digging and figured out that the problem seems to be the `get_nested_type` function in `features.py`, which, for whatever reason, flips Sequences and dicts whenever it encounters a dict inside of a sequence. This seems to be necessary, as disabling that flip leads to another error. However, by keeping that flip enabled for the highest level and disabling it for all subsequent levels, I was able to work around this problem. Specifically, by patching `get_nested_type` as follows, it works on the given example (emphasis on the `level` parameter I added):
```python
def get_nested_type(schema: FeatureType, level=0) -> pa.DataType:
"""
get_nested_type() converts a datasets.FeatureType into a pyarrow.DataType, and acts as the inverse of
generate_from_arrow_type().
It performs double-duty as the implementation of Features.type and handles the conversion of
datasets.Feature->pa.struct
"""
# Nested structures: we allow dict, list/tuples, sequences
if isinstance(schema, Features):
return pa.struct(
{key: get_nested_type(schema[key], level = level + 1) for key in schema}
) # Features is subclass of dict, and dict order is deterministic since Python 3.6
elif isinstance(schema, dict):
return pa.struct(
{key: get_nested_type(schema[key], level = level + 1) for key in schema}
) # however don't sort on struct types since the order matters
elif isinstance(schema, (list, tuple)):
if len(schema) != 1:
raise ValueError("When defining list feature, you should just provide one example of the inner type")
value_type = get_nested_type(schema[0], level = level + 1)
return pa.list_(value_type)
elif isinstance(schema, LargeList):
value_type = get_nested_type(schema.feature, level = level + 1)
return pa.large_list(value_type)
elif isinstance(schema, Sequence):
value_type = get_nested_type(schema.feature, level = level + 1)
# We allow to reverse list of dict => dict of list for compatibility with tfds
if isinstance(schema.feature, dict) and level == 1:
data_type = pa.struct({f.name: pa.list_(f.type, schema.length) for f in value_type})
else:
data_type = pa.list_(value_type, schema.length)
return data_type
# Other objects are callable which returns their data type (ClassLabel, Array2D, Translation, Arrow datatype creation methods)
return schema()
```
I have honestly no idea what I am doing here, so this might produce other issues for different inputs.
### Environment info
- `datasets` version: 3.6.0
- Platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.35
- Python version: 3.11.11
- `huggingface_hub` version: 0.30.2
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.0
Also tested it with 3.5.0, same result.
| 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/7569/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7569/timeline
| null | null | null | null | 2025-05-13T21:06:45Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7568
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7568/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7568/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7568/events
|
https://github.com/huggingface/datasets/issues/7568
| 3,060,515,257
|
I_kwDODunzps62a8G5
| 7,568
|
`IterableDatasetDict.map()` call removes `column_names` (in fact info.features)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7893763?v=4",
"events_url": "https://api.github.com/users/mombip/events{/privacy}",
"followers_url": "https://api.github.com/users/mombip/followers",
"following_url": "https://api.github.com/users/mombip/following{/other_user}",
"gists_url": "https://api.github.com/users/mombip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mombip",
"id": 7893763,
"login": "mombip",
"node_id": "MDQ6VXNlcjc4OTM3NjM=",
"organizations_url": "https://api.github.com/users/mombip/orgs",
"received_events_url": "https://api.github.com/users/mombip/received_events",
"repos_url": "https://api.github.com/users/mombip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mombip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mombip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mombip",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! IterableDataset doesn't know what's the output of the function you pass to map(), so it's not possible to know in advance the features of the output dataset.\n\nThere is a workaround though: either do `ds = ds.map(..., features=features)`, or you can do `ds = ds._resolve_features()` which iterates on the first rows to infer the dataset features.",
"created_at": "2025-05-14T22:55:48Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-2881776366",
"id": 2881776366,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6rxGru",
"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/2881776366/reactions"
},
"updated_at": "2025-05-14T22:57:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881776366",
"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. I understand that “IterableDataset doesn't know what's the output of the function”—that’s true, but:\n\nUnfortunately, the workaround you proposed **doesn’t solve** the problem. `ds.map()` is called multiple times by third-party code (i.e. `SFTTrainer`). To apply your approach, I would have to modify external library code. That’s why I decided to patch the _class_ rather than update `dataset` _objects_ (in fact, updating the object after `map()` was my initial approach, but then I realized I’m not the only one mapping an already-mapped dataset.)\n\nAs a user, I expected that after mapping I would get a new dataset with the correct column names. If, for some reason, that can’t be the default behavior, I would expect an argument—i.e. `auto_resolve_features: bool = False` — to control how my dataset is mapped if following mapping operation are called.\n\nIt’s also problematic that `column_names` are tied to `features`, which is even more confusing and forces you to inspect the source code to understand what’s going on.\n\n**New version of workaround:**\n```python\ndef patch_iterable_dataset_map():\n _orig_map = IterableDataset.map\n\n def _patched_map(self, *args, **kwargs):\n ds = _orig_map(self, *args, **kwargs)\n return ds._resolve_features()\n\n IterableDataset.map = _patched_map\n```",
"created_at": "2025-05-16T12:22:46Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-2886571588",
"id": 2886571588,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6sDZZE",
"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/2886571588/reactions"
},
"updated_at": "2025-05-16T12:30:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2886571588",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/7893763?v=4",
"events_url": "https://api.github.com/users/mombip/events{/privacy}",
"followers_url": "https://api.github.com/users/mombip/followers",
"following_url": "https://api.github.com/users/mombip/following{/other_user}",
"gists_url": "https://api.github.com/users/mombip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mombip",
"id": 7893763,
"login": "mombip",
"node_id": "MDQ6VXNlcjc4OTM3NjM=",
"organizations_url": "https://api.github.com/users/mombip/orgs",
"received_events_url": "https://api.github.com/users/mombip/received_events",
"repos_url": "https://api.github.com/users/mombip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mombip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mombip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mombip",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "I see, maybe `.resolve_features()` should be called by default in this case in the SFTTrainer ? (or pass `features=` if the data processing always output the same features)\n\nWe can even support a new parameter `features=\"infer\"` if it would be comfortable to not use internal methods in SFTTrainer",
"created_at": "2025-05-16T13:16:59Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-2886701030",
"id": 2886701030,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6sD4_m",
"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/2886701030/reactions"
},
"updated_at": "2025-05-16T13:16:59Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2886701030",
"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 think most straightforward solution would be to reinitialize `features` from data after mapping if `feature` argument is not passed. I hink it is more intuitive behavior than just cleaning features. There is also problem in usage `.resolve_features()` in this context. I observed that it leads to `_head()` method execution and it then causes that 5 batches from dataset are iterated (`_head()` defaults to 5 batches). \nI'm not sure how it influences whole process. Are those 5 batches (in my case it's 5000 rows) used only to find `features`. Does final training/eval process \"see\" this items? How it affects IterableDataset state (current position)?",
"created_at": "2025-05-16T15:28:33Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-2887051915",
"id": 2887051915,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6sFOqL",
"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/2887051915/reactions"
},
"updated_at": "2025-05-16T15:54:18Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2887051915",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/7893763?v=4",
"events_url": "https://api.github.com/users/mombip/events{/privacy}",
"followers_url": "https://api.github.com/users/mombip/followers",
"following_url": "https://api.github.com/users/mombip/following{/other_user}",
"gists_url": "https://api.github.com/users/mombip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mombip",
"id": 7893763,
"login": "mombip",
"node_id": "MDQ6VXNlcjc4OTM3NjM=",
"organizations_url": "https://api.github.com/users/mombip/orgs",
"received_events_url": "https://api.github.com/users/mombip/received_events",
"repos_url": "https://api.github.com/users/mombip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mombip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mombip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mombip",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "I checked the source code and while it indeed iterates on the first 5 rows. As a normal iteration, it does record the state in case you call `.state_dict()`, but it doesn't change the starting state. The starting state is always the beginning of the dataset, unless it is explicitly set with `.load_state_dict()`. To be clear, if you iterate on the dataset after `._resolve_features()`, it will start from the beginning of the dataset (or from a state you manually pass using `.load_state_dict()`)",
"created_at": "2025-05-19T12:09:47Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-2890776561",
"id": 2890776561,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6sTb_x",
"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/2890776561/reactions"
},
"updated_at": "2025-05-19T12:09:47Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2890776561",
"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!\nI’ve opened a PR #7658 to address this issue.\n\nThe fix ensures that info.features is only updated if features is not None, preventing accidental loss of schema and column_names.\nPlease let me know if you see any edge cases or have additional concerns!\nAlso, if a test is needed for this case, happy to discuss—the fix is small, but I can add one if the maintainers prefer.\n\nThanks everyone for the clear diagnosis and suggestions in this thread!",
"created_at": "2025-06-30T09:33:47Z",
"html_url": "https://github.com/huggingface/datasets/issues/7568#issuecomment-3018460464",
"id": 3018460464,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7568",
"node_id": "IC_kwDODunzps6z6g0w",
"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/3018460464/reactions"
},
"updated_at": "2025-06-30T09:33:47Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3018460464",
"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-05-13T15:45:42Z
| 2025-06-30T09:33:47Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
When calling `IterableDatasetDict.map()`, each split’s `IterableDataset.map()` is invoked without a `features` argument. While omitting the argument isn’t itself incorrect, the implementation then sets `info.features = features`, which destroys the original `features` content. Since `IterableDataset.column_names` relies on `info.features`, it ends up broken (`None`).
**Reproduction**
1. Define an IterableDatasetDict with a non-None features schema.
2. my_iterable_dataset_dict contains "text" column.
3. Call:
```Python
new_dict = my_iterable_dataset_dict.map(
function=my_fn,
with_indices=False,
batched=True,
batch_size=16,
)
```
4. Observe
```Python
new_dict["train"].info.features # {'text': Value(dtype='string', id=None)}
new_dict["train"].column_names # ['text']
```
5. Call:
```Python
new_dict = my_iterable_dataset_dict.map(
function=my_fn,
with_indices=False,
batched=True,
batch_size=16,
remove_columns=["foo"]
)
```
6. Observe:
```Python
new_dict["train"].info.features # → None
new_dict["train"].column_names # → None
```
5. Internally, in dataset_dict.py this loop omits features ([code](https://github.com/huggingface/datasets/blob/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31/src/datasets/dataset_dict.py#L2047C5-L2056C14)):
```Python
for split, dataset in self.items():
dataset_dict[split] = dataset.map(
function=function,
with_indices=with_indices,
input_columns=input_columns,
batched=batched,
batch_size=batch_size,
drop_last_batch=drop_last_batch,
remove_columns=remove_columns,
fn_kwargs=fn_kwargs,
# features omitted → defaults to None
)
```
7. Then inside IterableDataset.map() ([code](https://github.com/huggingface/datasets/blob/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31/src/datasets/iterable_dataset.py#L2619C1-L2622C37)) correct `info.features` is replaced by features which is None:
```Python
info = self.info.copy()
info.features = features # features is None here
return IterableDataset(..., info=info, ...)
```
**Suggestion**
It looks like this replacement was added intentionally but maybe should be done only if `features` is `not None`.
**Workarround:**
`SFTTrainer` calls `dataset.map()` several times and then fails on `NoneType` when iterating `dataset.column_names`.
I decided to write this patch - works form me.
```python
def patch_iterable_dataset_map():
_orig_map = IterableDataset.map
def _patched_map(self, *args, **kwargs):
if "features" not in kwargs or kwargs["features"] is None:
kwargs["features"] = self.info.features
return _orig_map(self, *args, **kwargs)
IterableDataset.map = _patched_map
```
| 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/7568/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7568/timeline
| null | null | null | null | 2025-05-13T15:45:42Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7567
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7567/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7567/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7567/events
|
https://github.com/huggingface/datasets/issues/7567
| 3,058,308,538
|
I_kwDODunzps62ShW6
| 7,567
|
interleave_datasets seed with multiple workers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4",
"events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanasdf/followers",
"following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanasdf",
"id": 511073,
"login": "jonathanasdf",
"node_id": "MDQ6VXNlcjUxMTA3Mw==",
"organizations_url": "https://api.github.com/users/jonathanasdf/orgs",
"received_events_url": "https://api.github.com/users/jonathanasdf/received_events",
"repos_url": "https://api.github.com/users/jonathanasdf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanasdf",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! It's already the case IIRC: the effective seed looks like `seed + worker_id`. Do you have a reproducible example ?",
"created_at": "2025-05-14T22:59:05Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2881780324",
"id": 2881780324,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6rxHpk",
"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/2881780324/reactions"
},
"updated_at": "2025-05-14T22:59:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881780324",
"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": "here is an example with shuffle\n\n```\nimport itertools\nimport datasets\nimport multiprocessing\nimport torch.utils.data\n\n\ndef gen(shard):\n worker_info = torch.utils.data.get_worker_info()\n for i in range(10):\n yield {'value': i, 'worker_id': worker_info.id}\n\n\ndef main():\n ds = datasets.IterableDataset.from_generator(gen, gen_kwargs={'shard': list(range(8))})\n ds = ds.shuffle(buffer_size=100, seed=1234)\n dataloader = torch.utils.data.DataLoader(ds, batch_size=None, num_workers=8)\n for i, ex in enumerate(itertools.islice(dataloader, 50)):\n print(i, ex)\n\n\nif __name__ == '__main__':\n multiprocessing.set_start_method('spawn')\n main()\n```\n\n```\npython test.py\n0 {'value': 8, 'worker_id': 0}\n1 {'value': 8, 'worker_id': 1}\n2 {'value': 8, 'worker_id': 2}\n3 {'value': 8, 'worker_id': 3}\n4 {'value': 8, 'worker_id': 4}\n5 {'value': 8, 'worker_id': 5}\n6 {'value': 8, 'worker_id': 6}\n7 {'value': 8, 'worker_id': 7}\n8 {'value': 9, 'worker_id': 0}\n9 {'value': 9, 'worker_id': 1}\n10 {'value': 9, 'worker_id': 2}\n11 {'value': 9, 'worker_id': 3}\n12 {'value': 9, 'worker_id': 4}\n13 {'value': 9, 'worker_id': 5}\n14 {'value': 9, 'worker_id': 6}\n15 {'value': 9, 'worker_id': 7}\n16 {'value': 5, 'worker_id': 0}\n17 {'value': 5, 'worker_id': 1}\n18 {'value': 5, 'worker_id': 2}\n19 {'value': 5, 'worker_id': 3}\n```",
"created_at": "2025-05-15T00:57:37Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2881922022",
"id": 2881922022,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6rxqPm",
"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/2881922022/reactions"
},
"updated_at": "2025-05-15T01:01:26Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881922022",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4",
"events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanasdf/followers",
"following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanasdf",
"id": 511073,
"login": "jonathanasdf",
"node_id": "MDQ6VXNlcjUxMTA3Mw==",
"organizations_url": "https://api.github.com/users/jonathanasdf/orgs",
"received_events_url": "https://api.github.com/users/jonathanasdf/received_events",
"repos_url": "https://api.github.com/users/jonathanasdf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanasdf",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "With `interleave_datasets`\n\n```\nimport itertools\nimport datasets\nimport multiprocessing\nimport torch.utils.data\n\n\ndef gen(shard, value):\n while True:\n yield {'value': value}\n\n\ndef main():\n ds = [\n datasets.IterableDataset.from_generator(gen, gen_kwargs={'shard': list(range(8)), 'value': i})\n for i in range(10)\n ]\n ds = datasets.interleave_datasets(ds, probabilities=[1 / len(ds)] * len(ds), seed=1234)\n dataloader = torch.utils.data.DataLoader(ds, batch_size=None, num_workers=8)\n for i, ex in enumerate(itertools.islice(dataloader, 50)):\n print(i, ex)\n\n\nif __name__ == '__main__':\n multiprocessing.set_start_method('spawn')\n main()\n```\n\n```\npython test.py\n0 {'value': 9}\n1 {'value': 9}\n2 {'value': 9}\n3 {'value': 9}\n4 {'value': 9}\n5 {'value': 9}\n6 {'value': 9}\n7 {'value': 9}\n8 {'value': 3}\n9 {'value': 3}\n10 {'value': 3}\n11 {'value': 3}\n12 {'value': 3}\n13 {'value': 3}\n14 {'value': 3}\n15 {'value': 3}\n16 {'value': 9}\n17 {'value': 9}\n18 {'value': 9}\n19 {'value': 9}\n20 {'value': 9}\n21 {'value': 9}\n22 {'value': 9}\n23 {'value': 9}\n```",
"created_at": "2025-05-15T01:02:13Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2881927739",
"id": 2881927739,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6rxro7",
"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/2881927739/reactions"
},
"updated_at": "2025-05-15T01:02:13Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881927739",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4",
"events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanasdf/followers",
"following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanasdf",
"id": 511073,
"login": "jonathanasdf",
"node_id": "MDQ6VXNlcjUxMTA3Mw==",
"organizations_url": "https://api.github.com/users/jonathanasdf/orgs",
"received_events_url": "https://api.github.com/users/jonathanasdf/received_events",
"repos_url": "https://api.github.com/users/jonathanasdf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanasdf",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Same results after updating to datasets 3.6.0.",
"created_at": "2025-05-15T01:03:23Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2881929240",
"id": 2881929240,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6rxsAY",
"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/2881929240/reactions"
},
"updated_at": "2025-05-15T01:03:23Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2881929240",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4",
"events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanasdf/followers",
"following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanasdf",
"id": 511073,
"login": "jonathanasdf",
"node_id": "MDQ6VXNlcjUxMTA3Mw==",
"organizations_url": "https://api.github.com/users/jonathanasdf/orgs",
"received_events_url": "https://api.github.com/users/jonathanasdf/received_events",
"repos_url": "https://api.github.com/users/jonathanasdf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanasdf",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Ah my bad, `shuffle()` uses a global effective seed which is something like `seed + epoch`, which is used to do the same shards shuffle in each worker so that each worker have a non-overlapping set of shards:\n\nhttps://github.com/huggingface/datasets/blob/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31/src/datasets/iterable_dataset.py#L2102-L2111\n\nI think we should take into account the `worker_id` in a local seed for the buffer right after this line:\n\nhttps://github.com/huggingface/datasets/blob/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31/src/datasets/iterable_dataset.py#L2151-L2153\n\nlike adding a new step that would propagate in the examples iterables or something like that:\n\n```python\nex_iterable = ex_iterable.shift_rngs(value=worker_id)\n```\n\nis this something you'd like to explore ? contributions on this subject are very welcome",
"created_at": "2025-05-15T13:52:12Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2883896577",
"id": 2883896577,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6r5MUB",
"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/2883896577/reactions"
},
"updated_at": "2025-05-15T13:52:12Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2883896577",
"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": "Potentially, but busy. If anyone wants to take this up please feel free to, otherwise I may or may not revisit when I have free time.\n\nFor what it's worth I got around this with\n\n```\n\nclass SeedGeneratorWithWorkerIterable(iterable_dataset._BaseExamplesIterable):\n \"\"\"ExamplesIterable that seeds the rng with worker id.\"\"\"\n\n def __init__(\n self,\n ex_iterable: iterable_dataset._BaseExamplesIterable,\n generator: np.random.Generator,\n rank: int = 0,\n ):\n \"\"\"Constructor.\"\"\"\n super().__init__()\n self.ex_iterable = ex_iterable\n self.generator = generator\n self.rank = rank\n\n def _init_state_dict(self) -> dict:\n self._state_dict = self.ex_iterable._init_state_dict()\n return self._state_dict\n\n def __iter__(self):\n \"\"\"Data iterator.\"\"\"\n effective_seed = copy.deepcopy(self.generator).integers(0, 1 << 63) - self.rank\n effective_seed = (1 << 63) + effective_seed if effective_seed < 0 else effective_seed\n generator = np.random.default_rng(effective_seed)\n self.ex_iterable = self.ex_iterable.shuffle_data_sources(generator)\n if self._state_dict:\n self._state_dict = self.ex_iterable._init_state_dict()\n yield from iter(self.ex_iterable)\n\n def shuffle_data_sources(self, generator):\n \"\"\"Shuffle data sources.\"\"\"\n ex_iterable = self.ex_iterable.shuffle_data_sources(generator)\n return SeedGeneratorWithWorkerIterable(ex_iterable, generator=generator, rank=self.rank)\n\n def shard_data_sources(self, num_shards: int, index: int, contiguous=True): # noqa: FBT002\n \"\"\"Shard data sources.\"\"\"\n ex_iterable = self.ex_iterable.shard_data_sources(num_shards, index, contiguous=contiguous)\n return SeedGeneratorWithWorkerIterable(ex_iterable, generator=self.generator, rank=index)\n\n @property\n def is_typed(self):\n return self.ex_iterable.is_typed\n\n @property\n def features(self):\n return self.ex_iterable.features\n\n @property\n def num_shards(self) -> int:\n \"\"\"Number of shards.\"\"\"\n return self.ex_iterable.num_shards\n```",
"created_at": "2025-05-15T20:39:35Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-2885003197",
"id": 2885003197,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6r9ae9",
"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/2885003197/reactions"
},
"updated_at": "2025-05-15T20:39:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2885003197",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4",
"events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanasdf/followers",
"following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanasdf",
"id": 511073,
"login": "jonathanasdf",
"node_id": "MDQ6VXNlcjUxMTA3Mw==",
"organizations_url": "https://api.github.com/users/jonathanasdf/orgs",
"received_events_url": "https://api.github.com/users/jonathanasdf/received_events",
"repos_url": "https://api.github.com/users/jonathanasdf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanasdf",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "Thanks for the detailed insights!\n\nAfter reviewing the issue and the current implementation in `iterable_dataset.py`, I can confirm the cause:\n\nWhen using `interleave_datasets(..., seed=...)` with `num_workers > 1` (e.g. via `DataLoader`), the same RNG state is shared across workers — which leads to each worker producing identical sample sequences. This is because the seed is not modulated by `worker_id`, unlike the usual approach in `shuffle()` where seed is adjusted using the `epoch`.\n\nAs @lhoestq suggested, a proper fix would involve introducing something like:\n\n```python\nex_iterable = ex_iterable.shift_rngs(worker_id)\n```\n\n@jonathanasdf Also really appreciate the workaround implementation shared above — that was helpful to validate the behavior and will help shape the general solution.",
"created_at": "2025-06-29T06:53:59Z",
"html_url": "https://github.com/huggingface/datasets/issues/7567#issuecomment-3016355178",
"id": 3016355178,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7567",
"node_id": "IC_kwDODunzps6zye1q",
"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/3016355178/reactions"
},
"updated_at": "2025-06-29T06:53:59Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016355178",
"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-05-12T22:38:27Z
| 2025-06-29T06:53:59Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Using interleave_datasets with multiple dataloader workers and a seed set causes the same dataset sampling order across all workers.
Should the seed be modulated with the worker id?
### Steps to reproduce the bug
See above
### Expected behavior
See above
### Environment info
- `datasets` version: 3.5.1
- Platform: macOS-15.4.1-arm64-arm-64bit
- Python version: 3.12.9
- `huggingface_hub` version: 0.30.2
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.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/7567/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7567/timeline
| null | null | null | null | 2025-05-12T22:38:27Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7566
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7566/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7566/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7566/events
|
https://github.com/huggingface/datasets/issues/7566
| 3,055,279,344
|
I_kwDODunzps62G9zw
| 7,566
|
terminate called without an active exception; Aborted (core dumped)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18581488?v=4",
"events_url": "https://api.github.com/users/alexey-milovidov/events{/privacy}",
"followers_url": "https://api.github.com/users/alexey-milovidov/followers",
"following_url": "https://api.github.com/users/alexey-milovidov/following{/other_user}",
"gists_url": "https://api.github.com/users/alexey-milovidov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexey-milovidov",
"id": 18581488,
"login": "alexey-milovidov",
"node_id": "MDQ6VXNlcjE4NTgxNDg4",
"organizations_url": "https://api.github.com/users/alexey-milovidov/orgs",
"received_events_url": "https://api.github.com/users/alexey-milovidov/received_events",
"repos_url": "https://api.github.com/users/alexey-milovidov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexey-milovidov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexey-milovidov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexey-milovidov",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "@alexey-milovidov I followed the code snippet, but am able to successfully execute without any error. Could you please verify if the error persists or there is any additional details.",
"created_at": "2025-06-20T10:11:11Z",
"html_url": "https://github.com/huggingface/datasets/issues/7566#issuecomment-2990721740",
"id": 2990721740,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7566",
"node_id": "IC_kwDODunzps6yQsrM",
"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/2990721740/reactions"
},
"updated_at": "2025-06-20T10:12:27Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2990721740",
"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": "@alexey-milovidov else if the problem does not exist please feel free to close this issue.",
"created_at": "2025-06-23T10:35:22Z",
"html_url": "https://github.com/huggingface/datasets/issues/7566#issuecomment-2995890025",
"id": 2995890025,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7566",
"node_id": "IC_kwDODunzps6ykadp",
"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/2995890025/reactions"
},
"updated_at": "2025-06-23T10:35:22Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2995890025",
"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": "```\nmilovidov@milovidov-pc:~/work/datasets$ \n./main.py \nResolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25868/25868 [00:05<00:00, 4753.90it/s]\nResolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25868/25868 [00:00<00:00, 238798.85it/s]\n{'text': \"How AP reported in all formats from tornado-stricken regionsMarch 8, 2012\\nWhen the first serious bout of tornadoes of 2012 blew through middle America in the middle of the night, they touched down in places hours from any AP bureau. Our closest video journalist was Chicago-based Robert Ray, who dropped his plans to travel to Georgia for Super Tuesday, booked several flights to the cities closest to the strikes and headed for the airport. He’d decide once there which flight to take.\\nHe never got on board a plane. Instead, he ended up driving toward Harrisburg, Ill., where initial reports suggested a town was destroyed. That decision turned out to be a lucky break for the AP. Twice.\\nRay was among the first journalists to arrive and he confirmed those reports -- in all formats. He shot powerful video, put victims on the phone with AP Radio and played back sound to an editor who transcribed the interviews and put the material on text wires. He then walked around the devastation with the Central Regional Desk on the line, talking to victims with the phone held so close that editors could transcribe his interviews in real time.\\nRay also made a dramatic image of a young girl who found a man’s prosthetic leg in the rubble, propped it up next to her destroyed home and spray-painted an impromptu sign: “Found leg. Seriously.”\\nThe following day, he was back on the road and headed for Georgia and a Super Tuesday date with Newt Gingrich’s campaign. The drive would take him through a stretch of the South that forecasters expected would suffer another wave of tornadoes.\\nTo prevent running into THAT storm, Ray used his iPhone to monitor Doppler radar, zooming in on extreme cells and using Google maps to direct himself to safe routes. And then the journalist took over again.\\n“When weather like that occurs, a reporter must seize the opportunity to get the news out and allow people to see, hear and read the power of nature so that they can take proper shelter,” Ray says.\\nSo Ray now started to use his phone to follow the storms. He attached a small GoPro camera to his steering wheel in case a tornado dropped down in front of the car somewhere, and took video of heavy rain and hail with his iPhone. Soon, he spotted a tornado and the chase was on. He followed an unmarked emergency vehicle to Cleveland, Tenn., where he was first on the scene of the storm's aftermath.\\nAgain, the tornadoes had struck in locations that were hours from the nearest AP bureau. Damage and debris, as well as a wickedly violent storm that made travel dangerous, slowed our efforts to get to the news. That wasn’t a problem in Tennessee, where our customers were well served by an all-formats report that included this text story.\\n“CLEVELAND, Tenn. (AP) _ Fierce wind, hail and rain lashed Tennessee for the second time in three days, and at least 15 people were hospitalized Friday in the Chattanooga area.”\\nThe byline? Robert Ray.\\nFor being adept with technology, chasing after news as it literally dropped from the sky and setting a standard for all-formats reporting that put the AP ahead on the most competitive news story of the day, Ray wins this week’s $300 Best of the States prize.\\n© 2013 The Associated Press. All rights reserved. Terms and conditions apply. See AP.org for details.\", 'id': '<urn:uuid:d66bc6fe-8477-4adf-b430-f6a558ccc8ff>', 'dump': 'CC-MAIN-2013-20', 'url': 'http://%[email protected]/Content/Press-Release/2012/How-AP-reported-in-all-formats-from-tornado-stricken-regions', 'date': '2013-05-18T05:48:54Z', 'file_path': 's3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz', 'language': 'en', 'language_score': 0.9721424579620361, 'token_count': 717}\nterminate called without an active exception\nAborted (core dumped)\nmilovidov@milovidov-pc:~/work/datasets$ \npython3 --version\nPython 3.10.12\n```",
"created_at": "2025-06-23T13:18:38Z",
"html_url": "https://github.com/huggingface/datasets/issues/7566#issuecomment-2996475218",
"id": 2996475218,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7566",
"node_id": "IC_kwDODunzps6ympVS",
"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/2996475218/reactions"
},
"updated_at": "2025-06-23T13:18:38Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2996475218",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/18581488?v=4",
"events_url": "https://api.github.com/users/alexey-milovidov/events{/privacy}",
"followers_url": "https://api.github.com/users/alexey-milovidov/followers",
"following_url": "https://api.github.com/users/alexey-milovidov/following{/other_user}",
"gists_url": "https://api.github.com/users/alexey-milovidov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexey-milovidov",
"id": 18581488,
"login": "alexey-milovidov",
"node_id": "MDQ6VXNlcjE4NTgxNDg4",
"organizations_url": "https://api.github.com/users/alexey-milovidov/orgs",
"received_events_url": "https://api.github.com/users/alexey-milovidov/received_events",
"repos_url": "https://api.github.com/users/alexey-milovidov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexey-milovidov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexey-milovidov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexey-milovidov",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Thank you @alexey-milovidov for the details, was able to reproduce the issue.\n\nFollowing is a preliminary analysis which would help to further isolate the issue:\nOn local: \n- For alternate datasets e.g. `speed/english_quotes_paraphrase` instead of `HuggingFaceFW/fineweb` the code works\n- Multiple calls of `print(next(iter(dataset)))` can be performed successfully before the `terminate` is raised, indicating possibility of issue when connection is closed\n\nOn colab:\n- The above code works properly",
"created_at": "2025-06-23T17:53:16Z",
"html_url": "https://github.com/huggingface/datasets/issues/7566#issuecomment-2997361706",
"id": 2997361706,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7566",
"node_id": "IC_kwDODunzps6yqBwq",
"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/2997361706/reactions"
},
"updated_at": "2025-06-23T17:56:02Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2997361706",
"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"
}
}
] | 2025-05-11T23:05:54Z
| 2025-06-23T17:56:02Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', split='train', streaming=True)
print(next(iter(dataset)))
```
3. `chmod +x main.py`
```
$ ./main.py
README.md: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 43.1k/43.1k [00:00<00:00, 7.04MB/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25868/25868 [00:05<00:00, 4859.26it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25868/25868 [00:00<00:00, 54773.56it/s]
{'text': "How AP reported in all formats from tornado-stricken regionsMarch 8, 2012\nWhen the first serious bout of tornadoes of 2012 blew through middle America in the middle of the night, they touched down in places hours from any AP bureau. Our closest video journalist was Chicago-based Robert Ray, who dropped his plans to travel to Georgia for Super Tuesday, booked several flights to the cities closest to the strikes and headed for the airport. He’d decide once there which flight to take.\nHe never got on board a plane. Instead, he ended up driving toward Harrisburg, Ill., where initial reports suggested a town was destroyed. That decision turned out to be a lucky break for the AP. Twice.\nRay was among the first journalists to arrive and he confirmed those reports -- in all formats. He shot powerful video, put victims on the phone with AP Radio and played back sound to an editor who transcribed the interviews and put the material on text wires. He then walked around the devastation with the Central Regional Desk on the line, talking to victims with the phone held so close that editors could transcribe his interviews in real time.\nRay also made a dramatic image of a young girl who found a man’s prosthetic leg in the rubble, propped it up next to her destroyed home and spray-painted an impromptu sign: “Found leg. Seriously.”\nThe following day, he was back on the road and headed for Georgia and a Super Tuesday date with Newt Gingrich’s campaign. The drive would take him through a stretch of the South that forecasters expected would suffer another wave of tornadoes.\nTo prevent running into THAT storm, Ray used his iPhone to monitor Doppler radar, zooming in on extreme cells and using Google maps to direct himself to safe routes. And then the journalist took over again.\n“When weather like that occurs, a reporter must seize the opportunity to get the news out and allow people to see, hear and read the power of nature so that they can take proper shelter,” Ray says.\nSo Ray now started to use his phone to follow the storms. He attached a small GoPro camera to his steering wheel in case a tornado dropped down in front of the car somewhere, and took video of heavy rain and hail with his iPhone. Soon, he spotted a tornado and the chase was on. He followed an unmarked emergency vehicle to Cleveland, Tenn., where he was first on the scene of the storm's aftermath.\nAgain, the tornadoes had struck in locations that were hours from the nearest AP bureau. Damage and debris, as well as a wickedly violent storm that made travel dangerous, slowed our efforts to get to the news. That wasn’t a problem in Tennessee, where our customers were well served by an all-formats report that included this text story.\n“CLEVELAND, Tenn. (AP) _ Fierce wind, hail and rain lashed Tennessee for the second time in three days, and at least 15 people were hospitalized Friday in the Chattanooga area.”\nThe byline? Robert Ray.\nFor being adept with technology, chasing after news as it literally dropped from the sky and setting a standard for all-formats reporting that put the AP ahead on the most competitive news story of the day, Ray wins this week’s $300 Best of the States prize.\n© 2013 The Associated Press. All rights reserved. Terms and conditions apply. See AP.org for details.", 'id': '<urn:uuid:d66bc6fe-8477-4adf-b430-f6a558ccc8ff>', 'dump': 'CC-MAIN-2013-20', 'url': 'http://%[email protected]/Content/Press-Release/2012/How-AP-reported-in-all-formats-from-tornado-stricken-regions', 'date': '2013-05-18T05:48:54Z', 'file_path': 's3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz', 'language': 'en', 'language_score': 0.9721424579620361, 'token_count': 717}
terminate called without an active exception
Aborted (core dumped)
```
### Expected behavior
I'm not a proficient Python user, so it might be my own error, but even in that case, the error message should be better.
### Environment info
`Successfully installed datasets-3.6.0 dill-0.3.8 hf-xet-1.1.0 huggingface-hub-0.31.1 multiprocess-0.70.16 requests-2.32.3 xxhash-3.5.0`
```
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
```
| 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/7566/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7566/timeline
| null | null | null | null | 2025-05-11T23:05:54Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7565
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7565/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7565/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7565/events
|
https://github.com/huggingface/datasets/pull/7565
| 3,051,731,207
|
PR_kwDODunzps6VkFBm
| 7,565
|
add check if repo exists for dataset uploading
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36135455?v=4",
"events_url": "https://api.github.com/users/Samoed/events{/privacy}",
"followers_url": "https://api.github.com/users/Samoed/followers",
"following_url": "https://api.github.com/users/Samoed/following{/other_user}",
"gists_url": "https://api.github.com/users/Samoed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Samoed",
"id": 36135455,
"login": "Samoed",
"node_id": "MDQ6VXNlcjM2MTM1NDU1",
"organizations_url": "https://api.github.com/users/Samoed/orgs",
"received_events_url": "https://api.github.com/users/Samoed/received_events",
"repos_url": "https://api.github.com/users/Samoed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Samoed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Samoed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Samoed",
"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_7565). 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-05-19T14:53:04Z",
"html_url": "https://github.com/huggingface/datasets/pull/7565#issuecomment-2891333833",
"id": 2891333833,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7565",
"node_id": "IC_kwDODunzps6sVkDJ",
"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/2891333833/reactions"
},
"updated_at": "2025-05-19T14:53:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2891333833",
"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": "NONE",
"body": "@lhoestq Can you review, please? I don't think that errors in CI are related to my changes",
"created_at": "2025-06-09T14:39:22Z",
"html_url": "https://github.com/huggingface/datasets/pull/7565#issuecomment-2955998665",
"id": 2955998665,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7565",
"node_id": "IC_kwDODunzps6wMPXJ",
"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/2955998665/reactions"
},
"updated_at": "2025-06-09T14:39:22Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2955998665",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36135455?v=4",
"events_url": "https://api.github.com/users/Samoed/events{/privacy}",
"followers_url": "https://api.github.com/users/Samoed/followers",
"following_url": "https://api.github.com/users/Samoed/following{/other_user}",
"gists_url": "https://api.github.com/users/Samoed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Samoed",
"id": 36135455,
"login": "Samoed",
"node_id": "MDQ6VXNlcjM2MTM1NDU1",
"organizations_url": "https://api.github.com/users/Samoed/orgs",
"received_events_url": "https://api.github.com/users/Samoed/received_events",
"repos_url": "https://api.github.com/users/Samoed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Samoed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Samoed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Samoed",
"user_view_type": "public"
}
}
] | 2025-05-09T10:27:00Z
| 2025-06-09T14:39:23Z
| null |
NONE
| null | null | null |
Currently, I'm reuploading datasets for [`MTEB`](https://github.com/embeddings-benchmark/mteb/). Some of them have many splits (more than 20), and I'm encountering the error:
`Too many requests for https://huggingface.co/datasets/repo/create`.
It seems that this issue occurs because the dataset tries to recreate itself every time a split is uploaded. To resolve this, I've added a check to ensure that if the dataset already exists, it won't attempt to recreate it.
| 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/7565/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7565/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7565.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7565",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7565.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7565"
}
| 2025-05-09T10:27:00Z
| null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7564
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7564/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7564/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7564/events
|
https://github.com/huggingface/datasets/pull/7564
| 3,049,275,226
|
PR_kwDODunzps6VczLS
| 7,564
|
Implementation of iteration over values of a column in an IterableDataset object
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "CONTRIBUTOR",
"body": "A couple of questions:\r\n1. I've noticed two strange things: 1) \"Around 80% of the final dataset is made of the `en_dataset`\" in https://huggingface.co/docs/datasets/stream, 2) \"Click on \"Pull request\" to send your to the project maintainers\" in https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md Are `en_dataset` and \"your [???]\" typos? If so, I can fix them in this PR.\r\n2. Should I update https://huggingface.co/docs/datasets/stream or https://huggingface.co/docs/datasets/access#iterabledataset to include the new feature?",
"created_at": "2025-05-08T15:04:40Z",
"html_url": "https://github.com/huggingface/datasets/pull/7564#issuecomment-2863391781",
"id": 2863391781,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7564",
"node_id": "IC_kwDODunzps6qq-Ql",
"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/2863391781/reactions"
},
"updated_at": "2025-05-08T15:04:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2863391781",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Great ! and chained indexing was easy indeed, thanks :)\r\n\r\nregarding your questions:\r\n\r\n> I've noticed two strange things: 1) \"Around 80% of the final dataset is made of the en_dataset\" in https://huggingface.co/docs/datasets/stream, 2) \"Click on \"Pull request\" to send your to the project maintainers\" in https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md Are en_dataset and \"your [???]\" typos? If so, I can fix them in this PR.\r\n\r\nOh good catch, both should be fixed indeed. Feel free to open a new PR for those docs fixes\r\n\r\n> Should I update https://huggingface.co/docs/datasets/stream or https://huggingface.co/docs/datasets/access#iterabledataset to include the new feature?\r\n\r\nYep good idea, I think in both places, since /stream is supposed to be exhaustive, and /access already mentions accessing a specific column for `Dataset`",
"created_at": "2025-05-14T10:16:17Z",
"html_url": "https://github.com/huggingface/datasets/pull/7564#issuecomment-2879633544",
"id": 2879633544,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7564",
"node_id": "IC_kwDODunzps6ro7iI",
"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/2879633544/reactions"
},
"updated_at": "2025-05-14T10:16:17Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2879633544",
"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, thank you for the answers!\r\n\r\n> Yep good idea, I think in both places, since /stream is supposed to be exhaustive, and /access already mentions accessing a specific column for Dataset\r\n\r\n👍, I'll try to add something.\r\n\r\nBy the way, do you have any ideas about why the CI pipelines have failed? Essentially, I've already encountered these problems [here](https://github.com/huggingface/datasets/issues/7381#issuecomment-2863421974).\r\nI think `check_code_quality` has failed due to the usage of `pre-commit`. The problem seems to be the old version of the ruff hook. I've tried `v0.11.8` (the one that was installed with `pip install -e \".[quality]\"`) and `pre-commit` seems to work like `make style` now. However, I don't have any ideas about `pyav` since I don't know what it is...",
"created_at": "2025-05-16T18:57:40Z",
"html_url": "https://github.com/huggingface/datasets/pull/7564#issuecomment-2887465925",
"id": 2887465925,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7564",
"node_id": "IC_kwDODunzps6sGzvF",
"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/2887465925/reactions"
},
"updated_at": "2025-05-16T18:57:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2887465925",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "I've updated /stream and /access, please check the style and clarity. By the way, I would like to add `IterableDataset.skip` near `IterableDataset.take` to mimic [slicing](https://huggingface.co/docs/datasets/access/#slicing). What do you think?",
"created_at": "2025-05-18T19:59:46Z",
"html_url": "https://github.com/huggingface/datasets/pull/7564#issuecomment-2889181645",
"id": 2889181645,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7564",
"node_id": "IC_kwDODunzps6sNWnN",
"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/2889181645/reactions"
},
"updated_at": "2025-05-18T19:59:46Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2889181645",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4",
"events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}",
"followers_url": "https://api.github.com/users/TopCoder2K/followers",
"following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}",
"gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TopCoder2K",
"id": 47208659,
"login": "TopCoder2K",
"node_id": "MDQ6VXNlcjQ3MjA4NjU5",
"organizations_url": "https://api.github.com/users/TopCoder2K/orgs",
"received_events_url": "https://api.github.com/users/TopCoder2K/received_events",
"repos_url": "https://api.github.com/users/TopCoder2K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TopCoder2K",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7564). 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-05-19T11:57:41Z",
"html_url": "https://github.com/huggingface/datasets/pull/7564#issuecomment-2890741168",
"id": 2890741168,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7564",
"node_id": "IC_kwDODunzps6sTTWw",
"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/2890741168/reactions"
},
"updated_at": "2025-05-19T11:57:41Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2890741168",
"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-05-08T14:59:22Z
| 2025-05-19T12:15:02Z
| 2025-05-19T12:15:02Z
|
CONTRIBUTOR
| null | null | null |
Refers to [this issue](https://github.com/huggingface/datasets/issues/7381).
|
{
"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/7564/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7564/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7564.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7564",
"merged_at": "2025-05-19T12:15:02Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7564.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7564"
}
| 2025-05-08T14:59:22Z
| 2025-05-19T12:15:02Z
| 10 days, 21:15:40
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7563
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7563/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7563/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7563/events
|
https://github.com/huggingface/datasets/pull/7563
| 3,046,351,253
|
PR_kwDODunzps6VS0QL
| 7,563
|
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_7563). 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-05-07T15:21:03Z",
"html_url": "https://github.com/huggingface/datasets/pull/7563#issuecomment-2859025542",
"id": 2859025542,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7563",
"node_id": "IC_kwDODunzps6qaUSG",
"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/2859025542/reactions"
},
"updated_at": "2025-05-07T15:21:03Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2859025542",
"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-05-07T15:18:29Z
| 2025-05-07T15:21:05Z
| 2025-05-07T15:18:36Z
|
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/7563/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7563/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7563.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7563",
"merged_at": "2025-05-07T15:18:36Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7563.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7563"
}
| 2025-05-07T15:18:29Z
| 2025-05-07T15:18:36Z
| 0:00:07
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7561
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7561/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7561/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7561/events
|
https://github.com/huggingface/datasets/issues/7561
| 3,046,302,653
|
I_kwDODunzps61kuO9
| 7,561
|
NotImplementedError: <class 'datasets.iterable_dataset.RepeatExamplesIterable'> doesn't implement num_shards yet
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32219669?v=4",
"events_url": "https://api.github.com/users/cyanic-selkie/events{/privacy}",
"followers_url": "https://api.github.com/users/cyanic-selkie/followers",
"following_url": "https://api.github.com/users/cyanic-selkie/following{/other_user}",
"gists_url": "https://api.github.com/users/cyanic-selkie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cyanic-selkie",
"id": 32219669,
"login": "cyanic-selkie",
"node_id": "MDQ6VXNlcjMyMjE5NjY5",
"organizations_url": "https://api.github.com/users/cyanic-selkie/orgs",
"received_events_url": "https://api.github.com/users/cyanic-selkie/received_events",
"repos_url": "https://api.github.com/users/cyanic-selkie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cyanic-selkie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyanic-selkie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cyanic-selkie",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-05-07T15:05:42Z
| 2025-06-05T12:41:30Z
| 2025-06-05T12:41:30Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When using `.repeat()` on an `IterableDataset`, this error gets thrown. There is [this thread](https://discuss.huggingface.co/t/making-an-infinite-iterabledataset/146192/5) that seems to imply the fix is trivial, but I don't know anything about this codebase, so I'm opening this issue rather than attempting to open a PR.
### Steps to reproduce the bug
1. Create an `IterableDataset`.
2. Call `.repeat(None)` on it.
3. Wrap it in a pytorch `DataLoader`
4. Iterate over it.
### Expected behavior
This should work normally.
### Environment info
datasets: 3.5.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/7561/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7561/timeline
| null |
completed
| null | null | 2025-05-07T15:05:42Z
| 2025-06-05T12:41:30Z
| 28 days, 21:35:48
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7562
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7562/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7562/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7562/events
|
https://github.com/huggingface/datasets/pull/7562
| 3,046,339,430
|
PR_kwDODunzps6VSxmx
| 7,562
|
release: 3.6.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_7562). 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-05-07T15:17:45Z",
"html_url": "https://github.com/huggingface/datasets/pull/7562#issuecomment-2859012627",
"id": 2859012627,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7562",
"node_id": "IC_kwDODunzps6qaRIT",
"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/2859012627/reactions"
},
"updated_at": "2025-05-07T15:17:45Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2859012627",
"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-05-07T15:15:13Z
| 2025-05-07T15:17:46Z
| 2025-05-07T15:15:21Z
|
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": 1,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7562/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7562/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7562.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7562",
"merged_at": "2025-05-07T15:15:20Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7562.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7562"
}
| 2025-05-07T15:15:13Z
| 2025-05-07T15:15:21Z
| 0:00:08
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7560
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7560/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7560/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7560/events
|
https://github.com/huggingface/datasets/pull/7560
| 3,046,265,500
|
PR_kwDODunzps6VShIc
| 7,560
|
fix decoding tests
|
{
"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_7560). 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-05-07T14:59:01Z",
"html_url": "https://github.com/huggingface/datasets/pull/7560#issuecomment-2858936129",
"id": 2858936129,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7560",
"node_id": "IC_kwDODunzps6qZ-dB",
"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/2858936129/reactions"
},
"updated_at": "2025-05-07T14:59:01Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858936129",
"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-05-07T14:56:14Z
| 2025-05-07T14:59:02Z
| 2025-05-07T14:56:20Z
|
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/7560/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7560/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7560.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7560",
"merged_at": "2025-05-07T14:56:20Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7560.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7560"
}
| 2025-05-07T14:56:14Z
| 2025-05-07T14:56:20Z
| 0:00:06
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7559
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7559/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7559/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7559/events
|
https://github.com/huggingface/datasets/pull/7559
| 3,046,177,078
|
PR_kwDODunzps6VSNiX
| 7,559
|
fix aiohttp import
|
{
"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_7559). 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-05-07T14:34:32Z",
"html_url": "https://github.com/huggingface/datasets/pull/7559#issuecomment-2858834576",
"id": 2858834576,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7559",
"node_id": "IC_kwDODunzps6qZlqQ",
"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/2858834576/reactions"
},
"updated_at": "2025-05-07T14:34:32Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858834576",
"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-05-07T14:31:32Z
| 2025-05-07T14:34:34Z
| 2025-05-07T14:31:38Z
|
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/7559/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7559/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7559.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7559",
"merged_at": "2025-05-07T14:31:38Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7559.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7559"
}
| 2025-05-07T14:31:32Z
| 2025-05-07T14:31:38Z
| 0:00:06
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7557
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7557/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7557/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7557/events
|
https://github.com/huggingface/datasets/pull/7557
| 3,045,962,076
|
PR_kwDODunzps6VRenr
| 7,557
|
check for empty _formatting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/381258?v=4",
"events_url": "https://api.github.com/users/winglian/events{/privacy}",
"followers_url": "https://api.github.com/users/winglian/followers",
"following_url": "https://api.github.com/users/winglian/following{/other_user}",
"gists_url": "https://api.github.com/users/winglian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/winglian",
"id": 381258,
"login": "winglian",
"node_id": "MDQ6VXNlcjM4MTI1OA==",
"organizations_url": "https://api.github.com/users/winglian/orgs",
"received_events_url": "https://api.github.com/users/winglian/received_events",
"repos_url": "https://api.github.com/users/winglian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/winglian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/winglian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/winglian",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Thanks for reporting and for the fix ! I tried to reorganize the condition in your PR but didn't get the right permission so. I ended up merging https://github.com/huggingface/datasets/pull/7558 directly so I can make a release today - I hope you don't mind",
"created_at": "2025-05-07T13:57:12Z",
"html_url": "https://github.com/huggingface/datasets/pull/7557#issuecomment-2858708721",
"id": 2858708721,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7557",
"node_id": "IC_kwDODunzps6qZG7x",
"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/2858708721/reactions"
},
"updated_at": "2025-05-07T13:57:12Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858708721",
"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-05-07T13:22:37Z
| 2025-05-07T13:57:12Z
| 2025-05-07T13:57:12Z
|
CONTRIBUTOR
| null | null | null |
Fixes a regression from #7553 breaking shuffling of iterable datasets
<img width="884" alt="Screenshot 2025-05-07 at 9 16 52 AM" src="https://github.com/user-attachments/assets/d2f43c5f-4092-4efe-ac31-a32cbd025fe3" />
|
{
"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/7557/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7557/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7557.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7557",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7557.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7557"
}
| 2025-05-07T13:22:37Z
| 2025-05-07T13:57:12Z
| 0:34:35
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7558
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7558/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7558/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7558/events
|
https://github.com/huggingface/datasets/pull/7558
| 3,046,066,628
|
PR_kwDODunzps6VR1gN
| 7,558
|
fix regression
|
{
"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_7558). 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-05-07T13:58:51Z",
"html_url": "https://github.com/huggingface/datasets/pull/7558#issuecomment-2858713920",
"id": 2858713920,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7558",
"node_id": "IC_kwDODunzps6qZINA",
"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/2858713920/reactions"
},
"updated_at": "2025-05-07T13:58:51Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858713920",
"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-05-07T13:56:03Z
| 2025-05-07T13:58:52Z
| 2025-05-07T13:56:18Z
|
MEMBER
| null | null | null |
reported in https://github.com/huggingface/datasets/pull/7557 (I just reorganized the condition)
wanted to apply this change to the original PR but github didn't let me apply it directly - merging this one instead
|
{
"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/7558/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7558/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7558.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7558",
"merged_at": "2025-05-07T13:56:18Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7558.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7558"
}
| 2025-05-07T13:56:03Z
| 2025-05-07T13:56:18Z
| 0:00:15
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7554
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7554/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7554/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7554/events
|
https://github.com/huggingface/datasets/issues/7554
| 3,043,089,844
|
I_kwDODunzps61Yd20
| 7,554
|
datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50171988?v=4",
"events_url": "https://api.github.com/users/sei-eschwartz/events{/privacy}",
"followers_url": "https://api.github.com/users/sei-eschwartz/followers",
"following_url": "https://api.github.com/users/sei-eschwartz/following{/other_user}",
"gists_url": "https://api.github.com/users/sei-eschwartz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sei-eschwartz",
"id": 50171988,
"login": "sei-eschwartz",
"node_id": "MDQ6VXNlcjUwMTcxOTg4",
"organizations_url": "https://api.github.com/users/sei-eschwartz/orgs",
"received_events_url": "https://api.github.com/users/sei-eschwartz/received_events",
"repos_url": "https://api.github.com/users/sei-eschwartz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sei-eschwartz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sei-eschwartz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sei-eschwartz",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! there has been some effort on allowing to download only a subset of splits in https://github.com/huggingface/datasets/pull/6832 but no one has been continuing this work so far. This would be a welcomed contribution though\n\nAlso note that loading script are often unoptimized, and we recommend using datasets in standard formats like Parquet instead.\n\nBtw there is a CLI tool to convert a loading script to parquet:\n\n```\ndatasets-cli convert_to_parquet <dataset-name> --trust_remote_code\n```",
"created_at": "2025-05-07T14:38:35Z",
"html_url": "https://github.com/huggingface/datasets/issues/7554#issuecomment-2858854052",
"id": 2858854052,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7554",
"node_id": "IC_kwDODunzps6qZqak",
"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/2858854052/reactions"
},
"updated_at": "2025-05-07T14:38:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858854052",
"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": "Closing in favor of #6832 ",
"created_at": "2025-05-07T14:53:44Z",
"html_url": "https://github.com/huggingface/datasets/issues/7554#issuecomment-2858912834",
"id": 2858912834,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7554",
"node_id": "IC_kwDODunzps6qZ4xC",
"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/2858912834/reactions"
},
"updated_at": "2025-05-07T14:53:44Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858912834",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/50171988?v=4",
"events_url": "https://api.github.com/users/sei-eschwartz/events{/privacy}",
"followers_url": "https://api.github.com/users/sei-eschwartz/followers",
"following_url": "https://api.github.com/users/sei-eschwartz/following{/other_user}",
"gists_url": "https://api.github.com/users/sei-eschwartz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sei-eschwartz",
"id": 50171988,
"login": "sei-eschwartz",
"node_id": "MDQ6VXNlcjUwMTcxOTg4",
"organizations_url": "https://api.github.com/users/sei-eschwartz/orgs",
"received_events_url": "https://api.github.com/users/sei-eschwartz/received_events",
"repos_url": "https://api.github.com/users/sei-eschwartz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sei-eschwartz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sei-eschwartz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sei-eschwartz",
"user_view_type": "public"
}
}
] | 2025-05-06T14:43:38Z
| 2025-05-07T14:53:45Z
| 2025-05-07T14:53:44Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
`datasets` downloads and generates all splits, even though a single split is requested. [This](https://huggingface.co/datasets/jordiae/exebench) is the dataset in question. It uses a loading script. I am not 100% sure that this is a bug, because maybe with loading scripts `datasets` must actually process all the splits? But I thought loading scripts were designed to avoid this.
### Steps to reproduce the bug
See [this notebook](https://colab.research.google.com/drive/14kcXp_hgcdj-kIzK0bCG6taE-CLZPVvq?usp=sharing)
Or:
```python
from datasets import load_dataset
dataset = load_dataset('jordiae/exebench', split='test_synth', trust_remote_code=True)
```
### Expected behavior
I expected only the `test_synth` split to be downloaded and processed.
### Environment info
- `datasets` version: 3.5.1
- Platform: Linux-6.1.123+-x86_64-with-glibc2.35
- Python version: 3.11.12
- `huggingface_hub` version: 0.30.2
- PyArrow version: 18.1.0
- Pandas version: 2.2.2
- `fsspec` version: 2025.3.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50171988?v=4",
"events_url": "https://api.github.com/users/sei-eschwartz/events{/privacy}",
"followers_url": "https://api.github.com/users/sei-eschwartz/followers",
"following_url": "https://api.github.com/users/sei-eschwartz/following{/other_user}",
"gists_url": "https://api.github.com/users/sei-eschwartz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sei-eschwartz",
"id": 50171988,
"login": "sei-eschwartz",
"node_id": "MDQ6VXNlcjUwMTcxOTg4",
"organizations_url": "https://api.github.com/users/sei-eschwartz/orgs",
"received_events_url": "https://api.github.com/users/sei-eschwartz/received_events",
"repos_url": "https://api.github.com/users/sei-eschwartz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sei-eschwartz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sei-eschwartz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sei-eschwartz",
"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/7554/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7554/timeline
| null |
duplicate
| null | null | 2025-05-06T14:43:38Z
| 2025-05-07T14:53:44Z
| 1 day, 0:10:06
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7556
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7556/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7556/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7556/events
|
https://github.com/huggingface/datasets/pull/7556
| 3,043,615,210
|
PR_kwDODunzps6VJlTR
| 7,556
|
Add `--merge-pull-request` option for `convert_to_parquet`
|
{
"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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "This is ready for a review, happy to make any changes. The main question for maintainers is how this should interact with #7555. If my suggestion there is accepted, this PR can be kept as is. If not, more changes are required to merge all the PR parts.",
"created_at": "2025-05-07T17:38:07Z",
"html_url": "https://github.com/huggingface/datasets/pull/7556#issuecomment-2859529766",
"id": 2859529766,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7556",
"node_id": "IC_kwDODunzps6qcPYm",
"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/2859529766/reactions"
},
"updated_at": "2025-05-07T17:41:15Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2859529766",
"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": "Closing since convert to parquet has been removed... https://github.com/huggingface/datasets/pull/7592#issuecomment-3073053138",
"created_at": "2025-07-18T19:09:10Z",
"html_url": "https://github.com/huggingface/datasets/pull/7556#issuecomment-3090443544",
"id": 3090443544,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7556",
"node_id": "IC_kwDODunzps64NG0Y",
"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/3090443544/reactions"
},
"updated_at": "2025-07-18T19:09:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3090443544",
"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-05-06T18:05:05Z
| 2025-07-18T19:09:10Z
| 2025-07-18T19:09:10Z
|
NONE
| null | null | null |
Closes #7527
Note that this implementation **will only merge the last PR in the case that they get split up by `push_to_hub`**. See https://github.com/huggingface/datasets/discussions/7555 for more details.
|
{
"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"
}
|
{
"+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/7556/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7556/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7556.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7556",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7556.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7556"
}
| 2025-05-06T18:05:05Z
| 2025-07-18T19:09:10Z
| 73 days, 1:04:05
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7553
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7553/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7553/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7553/events
|
https://github.com/huggingface/datasets/pull/7553
| 3,042,953,907
|
PR_kwDODunzps6VHUNW
| 7,553
|
Rebatch arrow iterables before formatted iterable
|
{
"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_7553). 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-05-06T14:02:49Z",
"html_url": "https://github.com/huggingface/datasets/pull/7553#issuecomment-2854699822",
"id": 2854699822,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7553",
"node_id": "IC_kwDODunzps6qJ0Mu",
"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/2854699822/reactions"
},
"updated_at": "2025-05-06T14:02:49Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854699822",
"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": "@lhoestq Our CI found an issue with this changeset causing a regression with shuffling iterable datasets \r\n<img width=\"884\" alt=\"Screenshot 2025-05-07 at 9 16 52 AM\" src=\"https://github.com/user-attachments/assets/bf7d9c7e-cc14-47da-8da6-d1a345992d7c\" />\r\n",
"created_at": "2025-05-07T13:17:40Z",
"html_url": "https://github.com/huggingface/datasets/pull/7553#issuecomment-2858566975",
"id": 2858566975,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7553",
"node_id": "IC_kwDODunzps6qYkU_",
"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/2858566975/reactions"
},
"updated_at": "2025-05-07T13:17:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858566975",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/381258?v=4",
"events_url": "https://api.github.com/users/winglian/events{/privacy}",
"followers_url": "https://api.github.com/users/winglian/followers",
"following_url": "https://api.github.com/users/winglian/following{/other_user}",
"gists_url": "https://api.github.com/users/winglian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/winglian",
"id": 381258,
"login": "winglian",
"node_id": "MDQ6VXNlcjM4MTI1OA==",
"organizations_url": "https://api.github.com/users/winglian/orgs",
"received_events_url": "https://api.github.com/users/winglian/received_events",
"repos_url": "https://api.github.com/users/winglian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/winglian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/winglian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/winglian",
"user_view_type": "public"
}
}
] | 2025-05-06T13:59:58Z
| 2025-05-07T13:17:41Z
| 2025-05-06T14:03:42Z
|
MEMBER
| null | null | null |
close https://github.com/huggingface/datasets/issues/7538 and https://github.com/huggingface/datasets/issues/7475
|
{
"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/7553/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7553/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7553.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7553",
"merged_at": "2025-05-06T14:03:41Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7553.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7553"
}
| 2025-05-06T13:59:58Z
| 2025-05-06T14:03:42Z
| 0:03:44
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7551
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7551/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7551/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7551/events
|
https://github.com/huggingface/datasets/issues/7551
| 3,038,114,928
|
I_kwDODunzps61FfRw
| 7,551
|
Issue with offline mode and partial dataset cached
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/353245?v=4",
"events_url": "https://api.github.com/users/nrv/events{/privacy}",
"followers_url": "https://api.github.com/users/nrv/followers",
"following_url": "https://api.github.com/users/nrv/following{/other_user}",
"gists_url": "https://api.github.com/users/nrv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrv",
"id": 353245,
"login": "nrv",
"node_id": "MDQ6VXNlcjM1MzI0NQ==",
"organizations_url": "https://api.github.com/users/nrv/orgs",
"received_events_url": "https://api.github.com/users/nrv/received_events",
"repos_url": "https://api.github.com/users/nrv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrv",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "It seems the problem comes from builder.py / create_config_id()\n\nOn the first call, when the cache is empty we have\n```\nconfig_kwargs = {'data_files': {'train': ['hf://datasets/uonlp/CulturaX@6a8734bc69fefcbb7735f4f9250f43e4cd7a442e/fr/fr_part_00038.parquet']}}\n```\nleading to config_id beeing 'default-2935e8cdcc21c613'\n\nthen, on the second call, \n```\nconfig_kwargs = {'data_files': 'fr/fr_part_00038.parquet'}\n```\nthus explaining why the hash is not the same, despite having the same parameter when calling load_dataset : data_files=\"fr/fr_part_00038.parquet\"",
"created_at": "2025-05-04T17:15:01Z",
"html_url": "https://github.com/huggingface/datasets/issues/7551#issuecomment-2849321470",
"id": 2849321470,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7551",
"node_id": "IC_kwDODunzps6p1TH-",
"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/2849321470/reactions"
},
"updated_at": "2025-05-04T17:15:01Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2849321470",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/353245?v=4",
"events_url": "https://api.github.com/users/nrv/events{/privacy}",
"followers_url": "https://api.github.com/users/nrv/followers",
"following_url": "https://api.github.com/users/nrv/following{/other_user}",
"gists_url": "https://api.github.com/users/nrv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrv",
"id": 353245,
"login": "nrv",
"node_id": "MDQ6VXNlcjM1MzI0NQ==",
"organizations_url": "https://api.github.com/users/nrv/orgs",
"received_events_url": "https://api.github.com/users/nrv/received_events",
"repos_url": "https://api.github.com/users/nrv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrv",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Same behavior with version 3.5.1",
"created_at": "2025-05-04T17:20:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7551#issuecomment-2849324596",
"id": 2849324596,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7551",
"node_id": "IC_kwDODunzps6p1T40",
"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/2849324596/reactions"
},
"updated_at": "2025-05-04T17:20:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2849324596",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/353245?v=4",
"events_url": "https://api.github.com/users/nrv/events{/privacy}",
"followers_url": "https://api.github.com/users/nrv/followers",
"following_url": "https://api.github.com/users/nrv/following{/other_user}",
"gists_url": "https://api.github.com/users/nrv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrv",
"id": 353245,
"login": "nrv",
"node_id": "MDQ6VXNlcjM1MzI0NQ==",
"organizations_url": "https://api.github.com/users/nrv/orgs",
"received_events_url": "https://api.github.com/users/nrv/received_events",
"repos_url": "https://api.github.com/users/nrv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrv",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Same issue when loading `google/IndicGenBench_flores_in` with `dataset==2.21.0` and `dataset==3.6.0` .",
"created_at": "2025-05-12T11:57:54Z",
"html_url": "https://github.com/huggingface/datasets/issues/7551#issuecomment-2872275519",
"id": 2872275519,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7551",
"node_id": "IC_kwDODunzps6rM3I_",
"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/2872275519/reactions"
},
"updated_at": "2025-05-12T11:57:54Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2872275519",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/56986935?v=4",
"events_url": "https://api.github.com/users/YanshekWoo/events{/privacy}",
"followers_url": "https://api.github.com/users/YanshekWoo/followers",
"following_url": "https://api.github.com/users/YanshekWoo/following{/other_user}",
"gists_url": "https://api.github.com/users/YanshekWoo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/YanshekWoo",
"id": 56986935,
"login": "YanshekWoo",
"node_id": "MDQ6VXNlcjU2OTg2OTM1",
"organizations_url": "https://api.github.com/users/YanshekWoo/orgs",
"received_events_url": "https://api.github.com/users/YanshekWoo/received_events",
"repos_url": "https://api.github.com/users/YanshekWoo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/YanshekWoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YanshekWoo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/YanshekWoo",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "\n\n\n> It seems the problem comes from builder.py / create_config_id()\n> \n> On the first call, when the cache is empty we have\n> \n> ```\n> config_kwargs = {'data_files': {'train': ['hf://datasets/uonlp/CulturaX@6a8734bc69fefcbb7735f4f9250f43e4cd7a442e/fr/fr_part_00038.parquet']}}\n> ```\n> \n> leading to config_id beeing 'default-2935e8cdcc21c613'\n> \n> then, on the second call,\n> \n> ```\n> config_kwargs = {'data_files': 'fr/fr_part_00038.parquet'}\n> ```\n> \n> thus explaining why the hash is not the same, despite having the same parameter when calling load_dataset : data_files=\"fr/fr_part_00038.parquet\"\n\n\nI have identified that the issue indeed lies in the `data_files` within `config_kwargs`. \nThe format and prefix of `data_files` differ depending on whether `HF_HUB_OFFLINE` is set, leading to different final `config_id` values. \nWhen I use other datasets without passing the `data_files` parameter, this issue does not occur.\n\nA possible solution might be to standardize the formatting of `data_files` within the `create_config_id` function.",
"created_at": "2025-05-13T03:18:41Z",
"html_url": "https://github.com/huggingface/datasets/issues/7551#issuecomment-2874943260",
"id": 2874943260,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7551",
"node_id": "IC_kwDODunzps6rXCcc",
"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/2874943260/reactions"
},
"updated_at": "2025-05-13T03:18:41Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2874943260",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/56986935?v=4",
"events_url": "https://api.github.com/users/YanshekWoo/events{/privacy}",
"followers_url": "https://api.github.com/users/YanshekWoo/followers",
"following_url": "https://api.github.com/users/YanshekWoo/following{/other_user}",
"gists_url": "https://api.github.com/users/YanshekWoo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/YanshekWoo",
"id": 56986935,
"login": "YanshekWoo",
"node_id": "MDQ6VXNlcjU2OTg2OTM1",
"organizations_url": "https://api.github.com/users/YanshekWoo/orgs",
"received_events_url": "https://api.github.com/users/YanshekWoo/received_events",
"repos_url": "https://api.github.com/users/YanshekWoo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/YanshekWoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YanshekWoo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/YanshekWoo",
"user_view_type": "public"
}
}
] | 2025-05-04T16:49:37Z
| 2025-05-13T03:18:43Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hi,
a issue related to #4760 here when loading a single file from a dataset, unable to access it in offline mode afterwards
### Steps to reproduce the bug
```python
import os
# os.environ["HF_HUB_OFFLINE"] = "1"
os.environ["HF_TOKEN"] = "xxxxxxxxxxxxxx"
import datasets
dataset_name = "uonlp/CulturaX"
data_files = "fr/fr_part_00038.parquet"
ds = datasets.load_dataset(dataset_name, split='train', data_files=data_files)
print(f"Dataset loaded : {ds}")
```
Once the file has been cached, I rerun with the HF_HUB_OFFLINE activated an get this error :
```
ValueError: Couldn't find cache for uonlp/CulturaX for config 'default-1e725f978350254e'
Available configs in the cache: ['default-2935e8cdcc21c613']
```
### Expected behavior
Should be able to access the previously cached files
### Environment info
- `datasets` version: 3.2.0
- Platform: Linux-5.4.0-215-generic-x86_64-with-glibc2.31
- Python version: 3.12.0
- `huggingface_hub` version: 0.27.0
- PyArrow version: 19.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.3.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/7551/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7551/timeline
| null | null | null | null | 2025-05-04T16:49:37Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7552
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7552/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7552/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7552/events
|
https://github.com/huggingface/datasets/pull/7552
| 3,040,258,084
|
PR_kwDODunzps6U-BUv
| 7,552
|
Enable xet in 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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7552). 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-05-05T17:04:39Z",
"html_url": "https://github.com/huggingface/datasets/pull/7552#issuecomment-2851662110",
"id": 2851662110,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7552",
"node_id": "IC_kwDODunzps6p-Oke",
"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/2851662110/reactions"
},
"updated_at": "2025-05-05T17:04:39Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2851662110",
"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-05-05T17:02:09Z
| 2025-05-06T12:42:51Z
| 2025-05-06T12:42:48Z
|
MEMBER
| null | null | null |
follows https://github.com/huggingface/huggingface_hub/pull/3035
related to https://github.com/huggingface/datasets/issues/7526
|
{
"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/7552/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7552/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7552.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7552",
"merged_at": "2025-05-06T12:42:48Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7552.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7552"
}
| 2025-05-05T17:02:09Z
| 2025-05-06T12:42:48Z
| 19:40:39
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7549
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7549/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7549/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7549/events
|
https://github.com/huggingface/datasets/issues/7549
| 3,036,272,015
|
I_kwDODunzps60-dWP
| 7,549
|
TypeError: Couldn't cast array of type string to null on webdataset format dataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/117186571?v=4",
"events_url": "https://api.github.com/users/narugo1992/events{/privacy}",
"followers_url": "https://api.github.com/users/narugo1992/followers",
"following_url": "https://api.github.com/users/narugo1992/following{/other_user}",
"gists_url": "https://api.github.com/users/narugo1992/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/narugo1992",
"id": 117186571,
"login": "narugo1992",
"node_id": "U_kgDOBvwgCw",
"organizations_url": "https://api.github.com/users/narugo1992/orgs",
"received_events_url": "https://api.github.com/users/narugo1992/received_events",
"repos_url": "https://api.github.com/users/narugo1992/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/narugo1992/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/narugo1992/subscriptions",
"type": "User",
"url": "https://api.github.com/users/narugo1992",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "seems to get fixed by explicitly adding `dataset_infos.json` like this\n\n```json\n{\n \"default\": {\n \"description\": \"Image dataset with tags and ratings\",\n \"citation\": \"\",\n \"homepage\": \"\",\n \"license\": \"\",\n \"features\": {\n \"image\": {\n \"dtype\": \"image\",\n \"_type\": \"Image\"\n },\n \"json\": {\n \"id\": {\n \"dtype\": \"int32\",\n \"_type\": \"Value\"\n },\n \"width\": {\n \"dtype\": \"int32\",\n \"_type\": \"Value\"\n },\n \"height\": {\n \"dtype\": \"int32\",\n \"_type\": \"Value\"\n },\n \"rating\": {\n \"feature\": {\n \"dtype\": \"string\",\n \"_type\": \"Value\"\n },\n \"_type\": \"Sequence\"\n },\n \"general_tags\": {\n \"feature\": {\n \"dtype\": \"string\",\n \"_type\": \"Value\"\n },\n \"_type\": \"Sequence\"\n },\n \"character_tags\": {\n \"feature\": {\n \"dtype\": \"string\",\n \"_type\": \"Value\"\n },\n \"_type\": \"Sequence\"\n }\n }\n },\n \"builder_name\": \"webdataset\",\n \"config_name\": \"default\",\n \"version\": {\n \"version_str\": \"1.0.0\",\n \"description\": null,\n \"major\": 1,\n \"minor\": 0,\n \"patch\": 0\n }\n }\n}\n\n```\n\nwill close this issue if no further issues found",
"created_at": "2025-05-02T15:37:04Z",
"html_url": "https://github.com/huggingface/datasets/issues/7549#issuecomment-2847517712",
"id": 2847517712,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7549",
"node_id": "IC_kwDODunzps6puawQ",
"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/2847517712/reactions"
},
"updated_at": "2025-05-02T15:37:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2847517712",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/117186571?v=4",
"events_url": "https://api.github.com/users/narugo1992/events{/privacy}",
"followers_url": "https://api.github.com/users/narugo1992/followers",
"following_url": "https://api.github.com/users/narugo1992/following{/other_user}",
"gists_url": "https://api.github.com/users/narugo1992/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/narugo1992",
"id": 117186571,
"login": "narugo1992",
"node_id": "U_kgDOBvwgCw",
"organizations_url": "https://api.github.com/users/narugo1992/orgs",
"received_events_url": "https://api.github.com/users/narugo1992/received_events",
"repos_url": "https://api.github.com/users/narugo1992/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/narugo1992/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/narugo1992/subscriptions",
"type": "User",
"url": "https://api.github.com/users/narugo1992",
"user_view_type": "public"
}
}
] | 2025-05-02T15:18:07Z
| 2025-05-02T15:37:05Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
```python
from datasets import load_dataset
dataset = load_dataset("animetimm/danbooru-wdtagger-v4-w640-ws-30k")
```
got
```
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/arrow_writer.py", line 626, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 255, in pyarrow.lib.array
File "pyarrow/array.pxi", line 117, in pyarrow.lib._handle_arrow_array_protocol
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/arrow_writer.py", line 258, in __arrow_array__
out = cast_array_to_feature(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 1798, in wrapper
return func(array, *args, **kwargs)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 2006, in cast_array_to_feature
arrays = [
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 2007, in <listcomp>
_c(array.field(name) if name in array_fields else null_array, subfeature)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 1798, in wrapper
return func(array, *args, **kwargs)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 2066, in cast_array_to_feature
casted_array_values = _c(array.values, feature.feature)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 1798, in wrapper
return func(array, *args, **kwargs)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 2103, in cast_array_to_feature
return array_cast(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 1798, in wrapper
return func(array, *args, **kwargs)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/table.py", line 1949, in array_cast
raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
TypeError: Couldn't cast array of type string to null
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/load.py", line 2084, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/builder.py", line 925, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare
super()._download_and_prepare(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/builder.py", line 1487, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
```
`datasets==3.5.1` whats wrong
its inner json structure is like
```yaml
features:
- name: "image"
dtype: "image"
- name: "json.id"
dtype: "string"
- name: "json.width"
dtype: "int32"
- name: "json.height"
dtype: "int32"
- name: "json.rating"
sequence:
dtype: "string"
- name: "json.general_tags"
sequence:
dtype: "string"
- name: "json.character_tags"
sequence:
dtype: "string"
```
i'm 100% sure all the jsons satisfies the abovementioned format.
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("animetimm/danbooru-wdtagger-v4-w640-ws-30k")
```
### Expected behavior
load the dataset successfully, with the abovementioned json format and webp images
### Environment info
Copy-and-paste the text below in your GitHub issue.
- `datasets` version: 3.5.1
- Platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.35
- Python version: 3.10.16
- `huggingface_hub` version: 0.30.2
- PyArrow version: 20.0.0
- 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/7549/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7549/timeline
| null | null | null | null | 2025-05-02T15:18:07Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7550
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7550/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7550/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7550/events
|
https://github.com/huggingface/datasets/pull/7550
| 3,037,017,367
|
PR_kwDODunzps6UzksN
| 7,550
|
disable aiohttp depend for python 3.13t free-threading compat
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/417764?v=4",
"events_url": "https://api.github.com/users/Qubitium/events{/privacy}",
"followers_url": "https://api.github.com/users/Qubitium/followers",
"following_url": "https://api.github.com/users/Qubitium/following{/other_user}",
"gists_url": "https://api.github.com/users/Qubitium/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Qubitium",
"id": 417764,
"login": "Qubitium",
"node_id": "MDQ6VXNlcjQxNzc2NA==",
"organizations_url": "https://api.github.com/users/Qubitium/orgs",
"received_events_url": "https://api.github.com/users/Qubitium/received_events",
"repos_url": "https://api.github.com/users/Qubitium/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Qubitium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qubitium/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Qubitium",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-05-03T00:28:18Z
| 2025-05-03T00:28:24Z
| 2025-05-03T00:28:24Z
|
NONE
| null | null | null | null |
{
"avatar_url": "https://avatars.githubusercontent.com/u/417764?v=4",
"events_url": "https://api.github.com/users/Qubitium/events{/privacy}",
"followers_url": "https://api.github.com/users/Qubitium/followers",
"following_url": "https://api.github.com/users/Qubitium/following{/other_user}",
"gists_url": "https://api.github.com/users/Qubitium/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Qubitium",
"id": 417764,
"login": "Qubitium",
"node_id": "MDQ6VXNlcjQxNzc2NA==",
"organizations_url": "https://api.github.com/users/Qubitium/orgs",
"received_events_url": "https://api.github.com/users/Qubitium/received_events",
"repos_url": "https://api.github.com/users/Qubitium/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Qubitium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qubitium/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Qubitium",
"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/7550/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7550/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7550.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7550",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7550.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7550"
}
| 2025-05-03T00:28:18Z
| 2025-05-03T00:28:24Z
| 0:00:06
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7548
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7548/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7548/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7548/events
|
https://github.com/huggingface/datasets/issues/7548
| 3,035,568,851
|
I_kwDODunzps607xrT
| 7,548
|
Python 3.13t (free threads) Compat
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/417764?v=4",
"events_url": "https://api.github.com/users/Qubitium/events{/privacy}",
"followers_url": "https://api.github.com/users/Qubitium/followers",
"following_url": "https://api.github.com/users/Qubitium/following{/other_user}",
"gists_url": "https://api.github.com/users/Qubitium/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Qubitium",
"id": 417764,
"login": "Qubitium",
"node_id": "MDQ6VXNlcjQxNzc2NA==",
"organizations_url": "https://api.github.com/users/Qubitium/orgs",
"received_events_url": "https://api.github.com/users/Qubitium/received_events",
"repos_url": "https://api.github.com/users/Qubitium/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Qubitium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qubitium/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Qubitium",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "Update: `datasets` use `aiohttp` for data streaming and from what I understand data streaming is useful for large datasets that do not fit in memory and/or multi-modal datasets like image/audio where you only what the actual binary bits to fed in as needed. \n\nHowever, there are also many cases where aiohttp will never be used. Text datasets that are not huge, relative to machine spec, and non-multi-modal datasets. \n\nGetting `aiohttp` fixed for `free threading` appeals to be a large task that is not going to be get done in a quick manner. It may be faster to make `aiohttp` optional and not forced build. Otherwise, testing python 3.13t is going to be a painful install. \n\nI have created a fork/branch that temp disables aiohttp import so non-streaming usage of datasets can be tested under python 3.13.t:\n\nhttps://github.com/Qubitium/datasets/tree/disable-aiohttp-depend",
"created_at": "2025-05-03T00:25:14Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2848311862",
"id": 2848311862,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6pxco2",
"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/2848311862/reactions"
},
"updated_at": "2025-05-03T00:30:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2848311862",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/417764?v=4",
"events_url": "https://api.github.com/users/Qubitium/events{/privacy}",
"followers_url": "https://api.github.com/users/Qubitium/followers",
"following_url": "https://api.github.com/users/Qubitium/following{/other_user}",
"gists_url": "https://api.github.com/users/Qubitium/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Qubitium",
"id": 417764,
"login": "Qubitium",
"node_id": "MDQ6VXNlcjQxNzc2NA==",
"organizations_url": "https://api.github.com/users/Qubitium/orgs",
"received_events_url": "https://api.github.com/users/Qubitium/received_events",
"repos_url": "https://api.github.com/users/Qubitium/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Qubitium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qubitium/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Qubitium",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "We are mostly relying on `huggingface_hub` which uses `requests` to stream files from Hugging Face, so maybe we can move aiohttp to optional dependencies now. Would it solve your issue ? Btw what do you think of `datasets` in the free-threading setting ?",
"created_at": "2025-05-05T17:06:29Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2851669211",
"id": 2851669211,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6p-QTb",
"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/2851669211/reactions"
},
"updated_at": "2025-05-05T17:06:29Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2851669211",
"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": "> We are mostly relying on `huggingface_hub` which uses `requests` to stream files from Hugging Face, so maybe we can move aiohttp to optional dependencies now. Would it solve your issue ? Btw what do you think of `datasets` in the free-threading setting ?\n\nI am testing transformers + dataset (simple text dataset usage) + GPTQModel for quantization and there were no issues encountered with python 3.13t but my test-case is the base-bare minimal test-case since dataset is not sharded, fully in-memory, text-only, small, not used for training. \n\nOn the technical side, dataset is almost always 100% read-only so there should be zero locking issues but I have not checked the dataset internals so there may be cases where streaming, sharding, and/or cases where datset memory/states are updated needs a per dataset `threading.lock`. \n\nSo yes, making `aiohttp` optional will definitely solve my issue. There is also a companion (datasets and tokenizers usually go hand-in-hand) issue with `Tokenizers` as well but that's simple enough with package version update: https://github.com/huggingface/tokenizers/pull/1774\n",
"created_at": "2025-05-06T01:48:46Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2853005260",
"id": 2853005260,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6qDWfM",
"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/2853005260/reactions"
},
"updated_at": "2025-05-06T02:16:19Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2853005260",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/417764?v=4",
"events_url": "https://api.github.com/users/Qubitium/events{/privacy}",
"followers_url": "https://api.github.com/users/Qubitium/followers",
"following_url": "https://api.github.com/users/Qubitium/following{/other_user}",
"gists_url": "https://api.github.com/users/Qubitium/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Qubitium",
"id": 417764,
"login": "Qubitium",
"node_id": "MDQ6VXNlcjQxNzc2NA==",
"organizations_url": "https://api.github.com/users/Qubitium/orgs",
"received_events_url": "https://api.github.com/users/Qubitium/received_events",
"repos_url": "https://api.github.com/users/Qubitium/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Qubitium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qubitium/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Qubitium",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Ok I see ! Anyway feel free to edit the setup.py to move aiohttp to optional (tests) dependencies and open a PR, we can run the CI to see if it's ok as a change",
"created_at": "2025-05-06T12:32:50Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2854405923",
"id": 2854405923,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6qIscj",
"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/2854405923/reactions"
},
"updated_at": "2025-05-06T12:32:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854405923",
"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": "actually there is https://github.com/huggingface/datasets/pull/7294/ already, let's see if we can merge it",
"created_at": "2025-05-07T14:25:40Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2858800004",
"id": 2858800004,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6qZdOE",
"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/2858800004/reactions"
},
"updated_at": "2025-05-07T14:25:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858800004",
"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": "wouldn't it be the good reason to switch to `httpx`? 😄 (would require slightly more work, short term agree with https://github.com/huggingface/datasets/issues/7548#issuecomment-2854405923)",
"created_at": "2025-05-07T14:47:08Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2858885957",
"id": 2858885957,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6qZyNF",
"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/2858885957/reactions"
},
"updated_at": "2025-05-07T14:47:08Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858885957",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/11801849?v=4",
"events_url": "https://api.github.com/users/Wauplin/events{/privacy}",
"followers_url": "https://api.github.com/users/Wauplin/followers",
"following_url": "https://api.github.com/users/Wauplin/following{/other_user}",
"gists_url": "https://api.github.com/users/Wauplin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Wauplin",
"id": 11801849,
"login": "Wauplin",
"node_id": "MDQ6VXNlcjExODAxODQ5",
"organizations_url": "https://api.github.com/users/Wauplin/orgs",
"received_events_url": "https://api.github.com/users/Wauplin/received_events",
"repos_url": "https://api.github.com/users/Wauplin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Wauplin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Wauplin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Wauplin",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "I made `aiohttp` optional in `datasets` 3.6.0 :)\n\n`datasets` doesn't use it directly anyway, it's only used when someone wants to download files from HTTP URLs outside of HF",
"created_at": "2025-05-12T15:11:31Z",
"html_url": "https://github.com/huggingface/datasets/issues/7548#issuecomment-2872971523",
"id": 2872971523,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7548",
"node_id": "IC_kwDODunzps6rPhED",
"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/2872971523/reactions"
},
"updated_at": "2025-05-12T15:11:31Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2872971523",
"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-05-02T09:20:09Z
| 2025-05-12T15:11:32Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python.
The `free threading` support issue in `aiothttp` is active since August 2024! Ouch.
https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784
`pip install dataset`
```bash
(vm313t) root@gpu-base:~/GPTQModel# pip install datasets
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/datasets/
Collecting datasets
Using cached datasets-3.5.1-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: filelock in /root/vm313t/lib/python3.13t/site-packages (from datasets) (3.18.0)
Requirement already satisfied: numpy>=1.17 in /root/vm313t/lib/python3.13t/site-packages (from datasets) (2.2.5)
Collecting pyarrow>=15.0.0 (from datasets)
Using cached pyarrow-20.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl.metadata (3.3 kB)
Collecting dill<0.3.9,>=0.3.0 (from datasets)
Using cached dill-0.3.8-py3-none-any.whl.metadata (10 kB)
Collecting pandas (from datasets)
Using cached pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)
Requirement already satisfied: requests>=2.32.2 in /root/vm313t/lib/python3.13t/site-packages (from datasets) (2.32.3)
Requirement already satisfied: tqdm>=4.66.3 in /root/vm313t/lib/python3.13t/site-packages (from datasets) (4.67.1)
Collecting xxhash (from datasets)
Using cached xxhash-3.5.0-cp313-cp313t-linux_x86_64.whl
Collecting multiprocess<0.70.17 (from datasets)
Using cached multiprocess-0.70.16-py312-none-any.whl.metadata (7.2 kB)
Collecting fsspec<=2025.3.0,>=2023.1.0 (from fsspec[http]<=2025.3.0,>=2023.1.0->datasets)
Using cached fsspec-2025.3.0-py3-none-any.whl.metadata (11 kB)
Collecting aiohttp (from datasets)
Using cached aiohttp-3.11.18.tar.gz (7.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: huggingface-hub>=0.24.0 in /root/vm313t/lib/python3.13t/site-packages (from datasets) (0.30.2)
Requirement already satisfied: packaging in /root/vm313t/lib/python3.13t/site-packages (from datasets) (25.0)
Requirement already satisfied: pyyaml>=5.1 in /root/vm313t/lib/python3.13t/site-packages (from datasets) (6.0.2)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp->datasets)
Using cached aiohappyeyeballs-2.6.1-py3-none-any.whl.metadata (5.9 kB)
Collecting aiosignal>=1.1.2 (from aiohttp->datasets)
Using cached aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting attrs>=17.3.0 (from aiohttp->datasets)
Using cached attrs-25.3.0-py3-none-any.whl.metadata (10 kB)
Collecting frozenlist>=1.1.1 (from aiohttp->datasets)
Using cached frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (16 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp->datasets)
Using cached multidict-6.4.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.3 kB)
Collecting propcache>=0.2.0 (from aiohttp->datasets)
Using cached propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp->datasets)
Using cached yarl-1.20.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (72 kB)
Requirement already satisfied: idna>=2.0 in /root/vm313t/lib/python3.13t/site-packages (from yarl<2.0,>=1.17.0->aiohttp->datasets) (3.10)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /root/vm313t/lib/python3.13t/site-packages (from huggingface-hub>=0.24.0->datasets) (4.13.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /root/vm313t/lib/python3.13t/site-packages (from requests>=2.32.2->datasets) (3.4.1)
Requirement already satisfied: urllib3<3,>=1.21.1 in /root/vm313t/lib/python3.13t/site-packages (from requests>=2.32.2->datasets) (2.4.0)
Requirement already satisfied: certifi>=2017.4.17 in /root/vm313t/lib/python3.13t/site-packages (from requests>=2.32.2->datasets) (2025.4.26)
Collecting python-dateutil>=2.8.2 (from pandas->datasets)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas->datasets)
Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas->datasets)
Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->datasets)
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached datasets-3.5.1-py3-none-any.whl (491 kB)
Using cached dill-0.3.8-py3-none-any.whl (116 kB)
Using cached fsspec-2025.3.0-py3-none-any.whl (193 kB)
Using cached multiprocess-0.70.16-py312-none-any.whl (146 kB)
Using cached multidict-6.4.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (220 kB)
Using cached yarl-1.20.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (404 kB)
Using cached aiohappyeyeballs-2.6.1-py3-none-any.whl (15 kB)
Using cached aiosignal-1.3.2-py2.py3-none-any.whl (7.6 kB)
Using cached attrs-25.3.0-py3-none-any.whl (63 kB)
Using cached frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 kB)
Using cached propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)
Using cached pyarrow-20.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl (42.2 MB)
Using cached pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached pytz-2025.2-py2.py3-none-any.whl (509 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Using cached tzdata-2025.2-py2.py3-none-any.whl (347 kB)
Building wheels for collected packages: aiohttp
Building wheel for aiohttp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for aiohttp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [156 lines of output]
*********************
* Accelerated build *
*********************
/tmp/pip-build-env-wjqi8_7w/overlay/lib/python3.13t/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: Apache Software License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/typedefs.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/http_parser.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/client_reqrep.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/client_ws.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_app.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/http_websocket.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/resolver.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/tracing.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/http_writer.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/http_exceptions.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/log.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/__init__.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_runner.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/worker.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/connector.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/client_exceptions.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_middlewares.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/tcp_helpers.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_response.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_server.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_request.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_urldispatcher.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_exceptions.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/formdata.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/streams.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/multipart.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_routedef.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_ws.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/payload.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/client_proto.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_log.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/base_protocol.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/payload_streamer.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/http.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_fileresponse.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/test_utils.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/client.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/cookiejar.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/compression_utils.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/hdrs.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/helpers.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/pytest_plugin.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/web_protocol.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/abc.py -> build/lib.linux-x86_64-cpython-313t/aiohttp
creating build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/__init__.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/writer.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/models.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/reader.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/reader_c.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/helpers.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/reader_py.py -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
running egg_info
writing aiohttp.egg-info/PKG-INFO
writing dependency_links to aiohttp.egg-info/dependency_links.txt
writing requirements to aiohttp.egg-info/requires.txt
writing top-level names to aiohttp.egg-info/top_level.txt
reading manifest file 'aiohttp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no files found matching '*.pyi' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/*.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE.txt'
writing manifest file 'aiohttp.egg-info/SOURCES.txt'
copying aiohttp/_cparser.pxd -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/_find_header.pxd -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/_headers.pxi -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/_http_parser.pyx -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/_http_writer.pyx -> build/lib.linux-x86_64-cpython-313t/aiohttp
copying aiohttp/py.typed -> build/lib.linux-x86_64-cpython-313t/aiohttp
creating build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/.hash/hdrs.py.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/.hash
copying aiohttp/_websocket/mask.pxd -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/mask.pyx -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
copying aiohttp/_websocket/reader_c.pxd -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket
creating build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket/.hash
copying aiohttp/_websocket/.hash/mask.pxd.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket/.hash
copying aiohttp/_websocket/.hash/mask.pyx.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket/.hash
copying aiohttp/_websocket/.hash/reader_c.pxd.hash -> build/lib.linux-x86_64-cpython-313t/aiohttp/_websocket/.hash
running build_ext
building 'aiohttp._websocket.mask' extension
creating build/temp.linux-x86_64-cpython-313t/aiohttp/_websocket
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I/root/vm313t/include -I/usr/include/python3.13t -c aiohttp/_websocket/mask.c -o build/temp.linux-x86_64-cpython-313t/aiohttp/_websocket/mask.o
aiohttp/_websocket/mask.c:1864:80: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
1864 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
| ^~~~~~~~~~~~~~~~~~~~
| vectorcallfunc
aiohttp/_websocket/mask.c: In function ‘__pyx_f_7aiohttp_10_websocket_4mask__websocket_mask_cython’:
aiohttp/_websocket/mask.c:2905:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
2905 | if (unlikely(__pyx_assertions_enabled())) {
| ^~
In file included from /usr/include/python3.13t/Python.h:76,
from aiohttp/_websocket/mask.c:16:
/usr/include/python3.13t/cpython/pydebug.h:13:37: note: declared here
13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
| ^~~~~~~~~~~~~~~
aiohttp/_websocket/mask.c: At top level:
aiohttp/_websocket/mask.c:4846:69: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
4846 | static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
| ^~~~~~~~~~~~~~~~~~~~
| vectorcallfunc
aiohttp/_websocket/mask.c:4891:80: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
4891 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
| ^~~~~~~~~~~~~~~~~~~~
| vectorcallfunc
aiohttp/_websocket/mask.c: In function ‘__Pyx_CyFunction_CallAsMethod’:
aiohttp/_websocket/mask.c:5580:6: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
5580 | __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
| ^~~~~~~~~~~~~~~~~~~~
| vectorcallfunc
aiohttp/_websocket/mask.c:1954:45: warning: initialization of ‘int’ from ‘vectorcallfunc’ {aka ‘struct _object * (*)(struct _object *, struct _object * const*, long unsigned int, struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
1954 | #define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
| ^
aiohttp/_websocket/mask.c:5580:32: note: in expansion of macro ‘__Pyx_CyFunction_func_vectorcall’
5580 | __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aiohttp/_websocket/mask.c:5583:16: warning: implicit declaration of function ‘__Pyx_PyVectorcall_FastCallDict’ [-Wimplicit-function-declaration]
5583 | return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aiohttp/_websocket/mask.c:5583:16: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
5583 | return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Failed to build installable wheels for some pyproject.toml based projects (aiohttp)
```
### Steps to reproduce the bug
See above
### Expected behavior
Install
### Environment info
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/7548/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7548/timeline
| null | null | null | null | 2025-05-02T09:20:09Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7546
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7546/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7546/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7546/events
|
https://github.com/huggingface/datasets/issues/7546
| 3,034,018,298
|
I_kwDODunzps6013H6
| 7,546
|
Large memory use when loading large datasets to a ZFS pool
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6875946?v=4",
"events_url": "https://api.github.com/users/FredHaa/events{/privacy}",
"followers_url": "https://api.github.com/users/FredHaa/followers",
"following_url": "https://api.github.com/users/FredHaa/following{/other_user}",
"gists_url": "https://api.github.com/users/FredHaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FredHaa",
"id": 6875946,
"login": "FredHaa",
"node_id": "MDQ6VXNlcjY4NzU5NDY=",
"organizations_url": "https://api.github.com/users/FredHaa/orgs",
"received_events_url": "https://api.github.com/users/FredHaa/received_events",
"repos_url": "https://api.github.com/users/FredHaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FredHaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FredHaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FredHaa",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! datasets are memory mapped from disk, so they don't fill out your RAM. Not sure what's the source of your memory issue.\n\nWhat kind of system are you using ? and what kind of disk ?",
"created_at": "2025-05-07T14:41:14Z",
"html_url": "https://github.com/huggingface/datasets/issues/7546#issuecomment-2858864190",
"id": 2858864190,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7546",
"node_id": "IC_kwDODunzps6qZs4-",
"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/2858864190/reactions"
},
"updated_at": "2025-05-07T14:41:14Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858864190",
"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": "Well, the fact of the matter is that my RAM is getting filled out by running the given example, as shown in [this video](https://streamable.com/usb0ql).\n\nMy system is a GPU server running Ubuntu. The disk is a SATA SSD attached to the server using a backplane. It is formatted with ZFS, mounted in /cache, and my HF_HOME is set to /cache/hf\n\nI really need this fixed, so I am more than willing to test out various suggestions you might have, or write a PR if we can figure out what is going on.",
"created_at": "2025-05-08T14:05:27Z",
"html_url": "https://github.com/huggingface/datasets/issues/7546#issuecomment-2863196529",
"id": 2863196529,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7546",
"node_id": "IC_kwDODunzps6qqOlx",
"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/2863196529/reactions"
},
"updated_at": "2025-05-08T14:05:27Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2863196529",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/6875946?v=4",
"events_url": "https://api.github.com/users/FredHaa/events{/privacy}",
"followers_url": "https://api.github.com/users/FredHaa/followers",
"following_url": "https://api.github.com/users/FredHaa/following{/other_user}",
"gists_url": "https://api.github.com/users/FredHaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FredHaa",
"id": 6875946,
"login": "FredHaa",
"node_id": "MDQ6VXNlcjY4NzU5NDY=",
"organizations_url": "https://api.github.com/users/FredHaa/orgs",
"received_events_url": "https://api.github.com/users/FredHaa/received_events",
"repos_url": "https://api.github.com/users/FredHaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FredHaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FredHaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FredHaa",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "I'm not super familiar with ZFS, but it looks like it loads the data in memory when the files are memory mapped, which is an issue.\n\nMaybe it's a caching mechanism ? Since `datasets` accesses every memory mapped file to read a small part (the metadata of the arrow record batches), maybe ZFS brings the whole files in memory for quicker subsequent reads. This is an antipattern when it comes to lazy loading datasets of that size though",
"created_at": "2025-05-12T14:59:32Z",
"html_url": "https://github.com/huggingface/datasets/issues/7546#issuecomment-2872924643",
"id": 2872924643,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7546",
"node_id": "IC_kwDODunzps6rPVnj",
"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/2872924643/reactions"
},
"updated_at": "2025-05-12T14:59:32Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2872924643",
"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": "This is the answer.\n\nI tried changing my HF_HOME to an NFS share, and no RAM is then consumed loading the dataset.\n\nI will try to see if I can find a way to configure the ZFS pool to not cache the files (disabling the ARC/primary cache didn't work), and if I do write the solution in this issue. If I can't I guess I have to reformat my cache drive.",
"created_at": "2025-05-13T13:29:53Z",
"html_url": "https://github.com/huggingface/datasets/issues/7546#issuecomment-2876535316",
"id": 2876535316,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7546",
"node_id": "IC_kwDODunzps6rdHIU",
"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/2876535316/reactions"
},
"updated_at": "2025-05-13T13:29:53Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2876535316",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/6875946?v=4",
"events_url": "https://api.github.com/users/FredHaa/events{/privacy}",
"followers_url": "https://api.github.com/users/FredHaa/followers",
"following_url": "https://api.github.com/users/FredHaa/following{/other_user}",
"gists_url": "https://api.github.com/users/FredHaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FredHaa",
"id": 6875946,
"login": "FredHaa",
"node_id": "MDQ6VXNlcjY4NzU5NDY=",
"organizations_url": "https://api.github.com/users/FredHaa/orgs",
"received_events_url": "https://api.github.com/users/FredHaa/received_events",
"repos_url": "https://api.github.com/users/FredHaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FredHaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FredHaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FredHaa",
"user_view_type": "public"
}
}
] | 2025-05-01T14:43:47Z
| 2025-05-13T13:30:09Z
| 2025-05-13T13:29:53Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When I load large parquet based datasets from the hub like `MLCommons/peoples_speech` using `load_dataset`, all my memory (500GB) is used and isn't released after loading, meaning that the process is terminated by the kernel if I try to load an additional dataset. This makes it impossible to train models using multiple large datasets.
### Steps to reproduce the bug
`uv run --with datasets==3.5.1 python`
```python
from datasets import load_dataset
load_dataset('MLCommons/peoples_speech', 'clean')
load_dataset('mozilla-foundation/common_voice_17_0', 'en')
```
### Expected behavior
I would expect that a lot less than 500GB of RAM would be required to load the dataset, or at least that the RAM usage would be cleared as soon as the dataset is loaded (and thus reside as a memory mapped file) such that other datasets can be loaded.
### Environment info
I am currently using the latest datasets==3.5.1 but I have had the same problem with multiple other versions.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6875946?v=4",
"events_url": "https://api.github.com/users/FredHaa/events{/privacy}",
"followers_url": "https://api.github.com/users/FredHaa/followers",
"following_url": "https://api.github.com/users/FredHaa/following{/other_user}",
"gists_url": "https://api.github.com/users/FredHaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FredHaa",
"id": 6875946,
"login": "FredHaa",
"node_id": "MDQ6VXNlcjY4NzU5NDY=",
"organizations_url": "https://api.github.com/users/FredHaa/orgs",
"received_events_url": "https://api.github.com/users/FredHaa/received_events",
"repos_url": "https://api.github.com/users/FredHaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FredHaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FredHaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FredHaa",
"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/7546/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7546/timeline
| null |
completed
| null | null | 2025-05-01T14:43:47Z
| 2025-05-13T13:29:53Z
| 11 days, 22:46:06
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7545
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7545/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7545/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7545/events
|
https://github.com/huggingface/datasets/issues/7545
| 3,031,617,547
|
I_kwDODunzps60stAL
| 7,545
|
Networked Pull Through Cache
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8764173?v=4",
"events_url": "https://api.github.com/users/wrmedford/events{/privacy}",
"followers_url": "https://api.github.com/users/wrmedford/followers",
"following_url": "https://api.github.com/users/wrmedford/following{/other_user}",
"gists_url": "https://api.github.com/users/wrmedford/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wrmedford",
"id": 8764173,
"login": "wrmedford",
"node_id": "MDQ6VXNlcjg3NjQxNzM=",
"organizations_url": "https://api.github.com/users/wrmedford/orgs",
"received_events_url": "https://api.github.com/users/wrmedford/received_events",
"repos_url": "https://api.github.com/users/wrmedford/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wrmedford/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wrmedford/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wrmedford",
"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 |
[] | 2025-04-30T15:16:33Z
| 2025-04-30T15:16:33Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Introduce a HF_DATASET_CACHE_NETWORK_LOCATION configuration (e.g. an environment variable) together with a companion network cache service.
Enable a three-tier cache lookup for datasets:
1. Local on-disk cache
2. Configurable network cache proxy
3. Official Hugging Face Hub
### Motivation
- Distributed training & ephemeral jobs: In high-performance or containerized clusters, relying solely on a local disk cache either becomes a streaming bottleneck or incurs a heavy cold-start penalty as each job must re-download datasets.
- Traffic & cost reduction: A pull-through network cache lets multiple consumers share a common cache layer, reducing duplicate downloads from the Hub and lowering egress costs.
- Better streaming adoption: By offloading repeat dataset pulls to a locally managed cache proxy, streaming workloads can achieve higher throughput and more predictable latency.
- Proven pattern: Similar proxy-cache solutions (e.g. Harbor’s Proxy Cache for Docker images) have demonstrated reliability and performance at scale: https://goharbor.io/docs/2.1.0/administration/configure-proxy-cache/
### Your contribution
I’m happy to draft the initial PR for adding HF_DATASET_CACHE_NETWORK_LOCATION support in datasets and sketch out a minimal cache-service prototype.
I have limited bandwidth so I would be looking for collaborators if anyone else is interested.
| 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/7545/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7545/timeline
| null | null | null | null | 2025-04-30T15:16:33Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7547
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7547/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7547/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7547/events
|
https://github.com/huggingface/datasets/pull/7547
| 3,034,830,291
|
PR_kwDODunzps6UsTuF
| 7,547
|
Avoid global umask for setting file mode.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1282383?v=4",
"events_url": "https://api.github.com/users/ryan-clancy/events{/privacy}",
"followers_url": "https://api.github.com/users/ryan-clancy/followers",
"following_url": "https://api.github.com/users/ryan-clancy/following{/other_user}",
"gists_url": "https://api.github.com/users/ryan-clancy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryan-clancy",
"id": 1282383,
"login": "ryan-clancy",
"node_id": "MDQ6VXNlcjEyODIzODM=",
"organizations_url": "https://api.github.com/users/ryan-clancy/orgs",
"received_events_url": "https://api.github.com/users/ryan-clancy/received_events",
"repos_url": "https://api.github.com/users/ryan-clancy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryan-clancy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryan-clancy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryan-clancy",
"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_7547). 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-05-06T12:42:41Z",
"html_url": "https://github.com/huggingface/datasets/pull/7547#issuecomment-2854432954",
"id": 2854432954,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7547",
"node_id": "IC_kwDODunzps6qIzC6",
"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/2854432954/reactions"
},
"updated_at": "2025-05-06T12:42:41Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854432954",
"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-05-01T22:24:24Z
| 2025-05-06T13:05:00Z
| 2025-05-06T13:05:00Z
|
CONTRIBUTOR
| null | null | null |
This PR updates the method for setting the permissions on `cache_path` after calling `shutil.move`. The call to `shutil.move` may not preserve permissions if the source and destination are on different filesystems. Reading and resetting umask can cause race conditions, so directly read what permissions were set for the `temp_file` instead.
This fixes https://github.com/huggingface/datasets/issues/7536.
|
{
"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/7547/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7547/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7547.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7547",
"merged_at": "2025-05-06T13:05:00Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7547.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7547"
}
| 2025-05-01T22:24:24Z
| 2025-05-06T13:05:00Z
| 4 days, 14:40:36
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7544
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7544/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7544/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7544/events
|
https://github.com/huggingface/datasets/pull/7544
| 3,027,024,285
|
PR_kwDODunzps6UR4Nn
| 7,544
|
Add try_original_type to DatasetDict.map
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11156001?v=4",
"events_url": "https://api.github.com/users/yoshitomo-matsubara/events{/privacy}",
"followers_url": "https://api.github.com/users/yoshitomo-matsubara/followers",
"following_url": "https://api.github.com/users/yoshitomo-matsubara/following{/other_user}",
"gists_url": "https://api.github.com/users/yoshitomo-matsubara/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yoshitomo-matsubara",
"id": 11156001,
"login": "yoshitomo-matsubara",
"node_id": "MDQ6VXNlcjExMTU2MDAx",
"organizations_url": "https://api.github.com/users/yoshitomo-matsubara/orgs",
"received_events_url": "https://api.github.com/users/yoshitomo-matsubara/received_events",
"repos_url": "https://api.github.com/users/yoshitomo-matsubara/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yoshitomo-matsubara/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoshitomo-matsubara/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yoshitomo-matsubara",
"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_7544). 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-04-29T09:50:05Z",
"html_url": "https://github.com/huggingface/datasets/pull/7544#issuecomment-2838155700",
"id": 2838155700,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7544",
"node_id": "IC_kwDODunzps6pKtG0",
"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/2838155700/reactions"
},
"updated_at": "2025-04-29T09:50:05Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2838155700",
"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": "Sure! I just committed the changes",
"created_at": "2025-04-29T15:41:50Z",
"html_url": "https://github.com/huggingface/datasets/pull/7544#issuecomment-2839387497",
"id": 2839387497,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7544",
"node_id": "IC_kwDODunzps6pPZ1p",
"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/2839387497/reactions"
},
"updated_at": "2025-04-29T15:41:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2839387497",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/11156001?v=4",
"events_url": "https://api.github.com/users/yoshitomo-matsubara/events{/privacy}",
"followers_url": "https://api.github.com/users/yoshitomo-matsubara/followers",
"following_url": "https://api.github.com/users/yoshitomo-matsubara/following{/other_user}",
"gists_url": "https://api.github.com/users/yoshitomo-matsubara/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yoshitomo-matsubara",
"id": 11156001,
"login": "yoshitomo-matsubara",
"node_id": "MDQ6VXNlcjExMTU2MDAx",
"organizations_url": "https://api.github.com/users/yoshitomo-matsubara/orgs",
"received_events_url": "https://api.github.com/users/yoshitomo-matsubara/received_events",
"repos_url": "https://api.github.com/users/yoshitomo-matsubara/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yoshitomo-matsubara/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoshitomo-matsubara/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yoshitomo-matsubara",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq \r\nLet me know if there are other things to do before merge or other places to add `try_original_type` argument ",
"created_at": "2025-05-05T05:35:10Z",
"html_url": "https://github.com/huggingface/datasets/pull/7544#issuecomment-2849956547",
"id": 2849956547,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7544",
"node_id": "IC_kwDODunzps6p3uLD",
"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/2849956547/reactions"
},
"updated_at": "2025-05-05T05:35:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2849956547",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/11156001?v=4",
"events_url": "https://api.github.com/users/yoshitomo-matsubara/events{/privacy}",
"followers_url": "https://api.github.com/users/yoshitomo-matsubara/followers",
"following_url": "https://api.github.com/users/yoshitomo-matsubara/following{/other_user}",
"gists_url": "https://api.github.com/users/yoshitomo-matsubara/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yoshitomo-matsubara",
"id": 11156001,
"login": "yoshitomo-matsubara",
"node_id": "MDQ6VXNlcjExMTU2MDAx",
"organizations_url": "https://api.github.com/users/yoshitomo-matsubara/orgs",
"received_events_url": "https://api.github.com/users/yoshitomo-matsubara/received_events",
"repos_url": "https://api.github.com/users/yoshitomo-matsubara/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yoshitomo-matsubara/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoshitomo-matsubara/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yoshitomo-matsubara",
"user_view_type": "public"
}
}
] | 2025-04-29T04:39:44Z
| 2025-05-05T14:42:49Z
| 2025-05-05T14:42:49Z
|
CONTRIBUTOR
| null | null | null |
This PR resolves #7472 for DatasetDict
The previously merged PR #7483 added `try_original_type` to ArrowDataset, but DatasetDict misses `try_original_type`
Cc: @lhoestq
|
{
"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/7544/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7544/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7544.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7544",
"merged_at": "2025-05-05T14:42:49Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7544.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7544"
}
| 2025-04-29T04:39:44Z
| 2025-05-05T14:42:49Z
| 6 days, 10:03:05
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7543
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7543/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7543/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7543/events
|
https://github.com/huggingface/datasets/issues/7543
| 3,026,867,706
|
I_kwDODunzps60alX6
| 7,543
|
The memory-disk mapping failure issue of the map function(resolved, but there are some suggestions.)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/76415358?v=4",
"events_url": "https://api.github.com/users/jxma20/events{/privacy}",
"followers_url": "https://api.github.com/users/jxma20/followers",
"following_url": "https://api.github.com/users/jxma20/following{/other_user}",
"gists_url": "https://api.github.com/users/jxma20/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jxma20",
"id": 76415358,
"login": "jxma20",
"node_id": "MDQ6VXNlcjc2NDE1MzU4",
"organizations_url": "https://api.github.com/users/jxma20/orgs",
"received_events_url": "https://api.github.com/users/jxma20/received_events",
"repos_url": "https://api.github.com/users/jxma20/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jxma20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxma20/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jxma20",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-04-29T03:04:59Z
| 2025-04-30T02:22:17Z
| 2025-04-30T02:22:17Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
## bug
When the map function processes a large dataset, it temporarily stores the data in a cache file on the disk. After the data is stored, the memory occupied by it is released. Therefore, when using the map function to process a large-scale dataset, only a dataset space of the size of `writer_batch_size` will be occupied in memory.
However, I found that the map function does not actually reduce memory usage when I used it. At first, I thought there was a bug in the program, causing a memory leak—meaning the memory was not released after the data was stored in the cache. But later, I used a Linux command to check for recently modified files during program execution and found that no new files were created or modified. This indicates that the program did not store the dataset in the disk cache.
## bug solved
After modifying the parameters of the map function multiple times, I discovered the `cache_file_name` parameter. By changing it, the cache file can be stored in the specified directory. After making this change, I noticed that the cache file appeared. Initially, I found this quite incredible, but then I wondered if the cache file might have failed to be stored in a certain folder. This could be related to the fact that I don't have root privileges.
So, I delved into the source code of the map function to find out where the cache file would be stored by default. Eventually, I found the function `def _get_cache_file_path(self, fingerprint):`, which automatically generates the storage path for the cache file. The output was as follows: `/tmp/hf_datasets-j5qco9ug/cache-f2830487643b9cc2.arrow`. My hypothesis was confirmed: the lack of root privileges indeed prevented the cache file from being stored, which in turn prevented the release of memory. Therefore, changing the storage location to a folder where I have write access resolved the issue.
### Steps to reproduce the bug
my code
`train_data = train_data.map(process_fun, remove_columns=['image_name', 'question_type', 'concern', 'question', 'candidate_answers', 'answer'])`
### Expected behavior
Although my bug has been resolved, it still took me nearly a week to search for relevant information and debug the program. However, if a warning or error message about insufficient cache file write permissions could be provided during program execution, I might have been able to identify the cause more quickly. Therefore, I hope this aspect can be improved. I am documenting this bug here so that friends who encounter similar issues can solve their problems in a timely manner.
### Environment info
python: 3.10.15
datasets: 3.5.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/76415358?v=4",
"events_url": "https://api.github.com/users/jxma20/events{/privacy}",
"followers_url": "https://api.github.com/users/jxma20/followers",
"following_url": "https://api.github.com/users/jxma20/following{/other_user}",
"gists_url": "https://api.github.com/users/jxma20/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jxma20",
"id": 76415358,
"login": "jxma20",
"node_id": "MDQ6VXNlcjc2NDE1MzU4",
"organizations_url": "https://api.github.com/users/jxma20/orgs",
"received_events_url": "https://api.github.com/users/jxma20/received_events",
"repos_url": "https://api.github.com/users/jxma20/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jxma20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxma20/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jxma20",
"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/7543/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7543/timeline
| null |
completed
| null | null | 2025-04-29T03:04:59Z
| 2025-04-30T02:22:17Z
| 23:17:18
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7542
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7542/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7542/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7542/events
|
https://github.com/huggingface/datasets/pull/7542
| 3,025,054,630
|
PR_kwDODunzps6ULHxo
| 7,542
|
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_7542). 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-04-28T14:08:36Z",
"html_url": "https://github.com/huggingface/datasets/pull/7542#issuecomment-2835378779",
"id": 2835378779,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7542",
"node_id": "IC_kwDODunzps6pAHJb",
"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/2835378779/reactions"
},
"updated_at": "2025-04-28T14:08:36Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835378779",
"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-04-28T14:03:48Z
| 2025-04-28T14:08:37Z
| 2025-04-28T14:04:00Z
|
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/7542/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7542/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7542.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7542",
"merged_at": "2025-04-28T14:04:00Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7542.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7542"
}
| 2025-04-28T14:03:48Z
| 2025-04-28T14:04:00Z
| 0:00:12
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7541
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7541/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7541/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7541/events
|
https://github.com/huggingface/datasets/pull/7541
| 3,025,045,919
|
PR_kwDODunzps6ULF7F
| 7,541
|
release: 3.5.1
|
{
"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_7541). 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-04-28T14:03:37Z",
"html_url": "https://github.com/huggingface/datasets/pull/7541#issuecomment-2835362054",
"id": 2835362054,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7541",
"node_id": "IC_kwDODunzps6pADEG",
"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/2835362054/reactions"
},
"updated_at": "2025-04-28T14:03:37Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835362054",
"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-04-28T14:00:59Z
| 2025-04-28T14:03:38Z
| 2025-04-28T14:01:54Z
|
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/7541/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7541/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7541.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7541",
"merged_at": "2025-04-28T14:01:54Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7541.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7541"
}
| 2025-04-28T14:00:59Z
| 2025-04-28T14:01:54Z
| 0:00:55
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7540
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7540/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7540/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7540/events
|
https://github.com/huggingface/datasets/pull/7540
| 3,024,862,966
|
PR_kwDODunzps6UKe6T
| 7,540
|
support pyarrow 20
|
{
"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_7540). 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-04-28T13:04:09Z",
"html_url": "https://github.com/huggingface/datasets/pull/7540#issuecomment-2835176552",
"id": 2835176552,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7540",
"node_id": "IC_kwDODunzps6o_Vxo",
"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/2835176552/reactions"
},
"updated_at": "2025-04-28T13:04:09Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835176552",
"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-04-28T13:01:11Z
| 2025-04-28T13:23:53Z
| 2025-04-28T13:23:52Z
|
MEMBER
| null | null | null |
fix
```
TypeError: ArrayExtensionArray.to_pylist() got an unexpected keyword argument 'maps_as_pydicts'
```
|
{
"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/7540/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7540/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7540.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7540",
"merged_at": "2025-04-28T13:23:52Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7540.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7540"
}
| 2025-04-28T13:01:11Z
| 2025-04-28T13:23:52Z
| 0:22:41
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7539
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7539/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7539/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7539/events
|
https://github.com/huggingface/datasets/pull/7539
| 3,023,311,163
|
PR_kwDODunzps6UFQ0W
| 7,539
|
Fix IterableDataset state_dict shard_example_idx counting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/129883215?v=4",
"events_url": "https://api.github.com/users/Harry-Yang0518/events{/privacy}",
"followers_url": "https://api.github.com/users/Harry-Yang0518/followers",
"following_url": "https://api.github.com/users/Harry-Yang0518/following{/other_user}",
"gists_url": "https://api.github.com/users/Harry-Yang0518/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Harry-Yang0518",
"id": 129883215,
"login": "Harry-Yang0518",
"node_id": "U_kgDOB73cTw",
"organizations_url": "https://api.github.com/users/Harry-Yang0518/orgs",
"received_events_url": "https://api.github.com/users/Harry-Yang0518/received_events",
"repos_url": "https://api.github.com/users/Harry-Yang0518/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Harry-Yang0518/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Harry-Yang0518/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Harry-Yang0518",
"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_7539). 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-04-28T11:32:10Z",
"html_url": "https://github.com/huggingface/datasets/pull/7539#issuecomment-2834949690",
"id": 2834949690,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7539",
"node_id": "IC_kwDODunzps6o-eY6",
"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/2834949690/reactions"
},
"updated_at": "2025-04-28T11:32:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2834949690",
"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": "Hi ! FYI I made a PR to fix https://github.com/huggingface/datasets/issues/7538 and it also fixed https://github.com/huggingface/datasets/issues/7475, so if I'm not mistaken this PR is not needed anymore",
"created_at": "2025-05-06T14:06:31Z",
"html_url": "https://github.com/huggingface/datasets/pull/7539#issuecomment-2854712220",
"id": 2854712220,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7539",
"node_id": "IC_kwDODunzps6qJ3Oc",
"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/2854712220/reactions"
},
"updated_at": "2025-05-06T14:06:31Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854712220",
"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-04-27T20:41:18Z
| 2025-05-06T14:24:25Z
| 2025-05-06T14:24:24Z
|
CONTRIBUTOR
| null | null | null |
# Fix IterableDataset's state_dict shard_example_idx reporting
## Description
This PR fixes issue #7475 where the `shard_example_idx` value in `IterableDataset`'s `state_dict()` always equals the number of samples in a shard, even if only a few examples have been consumed.
The issue is in the `_iter_arrow` method of the `ArrowExamplesIterable` class where it updates the `shard_example_idx` state by the full length of the batch (`len(pa_table)`) even when we're only partway through processing the examples.
## Changes
Modified the `_iter_arrow` method of `ArrowExamplesIterable` to:
1. Track the actual number of examples processed
2. Only increment the `shard_example_idx` by the number of examples actually yielded
3. Handle partial batches correctly
## How to Test
I've included a simple test case that demonstrates the fix:
```python
from datasets import Dataset
# Create a test dataset
ds = Dataset.from_dict({"a": range(6)}).to_iterable_dataset(num_shards=1)
# Iterate through part of the dataset
for idx, example in enumerate(ds):
print(example)
if idx == 2: # Stop after 3 examples (0, 1, 2)
state_dict = ds.state_dict()
print("Checkpoint state_dict:", state_dict)
break
# Before the fix, the output would show shard_example_idx: 6
# After the fix, it shows shard_example_idx: 3, correctly reflecting the 3 processed examples
```
## Implementation Details
1. Added logic to track the number of examples actually seen in the current shard
2. Modified the state update to only count examples actually yielded
3. Improved handling of partial batches and skipped examples
This fix ensures that checkpointing and resuming works correctly with exactly the expected number of examples, rather than skipping ahead to the end of the batch.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/129883215?v=4",
"events_url": "https://api.github.com/users/Harry-Yang0518/events{/privacy}",
"followers_url": "https://api.github.com/users/Harry-Yang0518/followers",
"following_url": "https://api.github.com/users/Harry-Yang0518/following{/other_user}",
"gists_url": "https://api.github.com/users/Harry-Yang0518/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Harry-Yang0518",
"id": 129883215,
"login": "Harry-Yang0518",
"node_id": "U_kgDOB73cTw",
"organizations_url": "https://api.github.com/users/Harry-Yang0518/orgs",
"received_events_url": "https://api.github.com/users/Harry-Yang0518/received_events",
"repos_url": "https://api.github.com/users/Harry-Yang0518/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Harry-Yang0518/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Harry-Yang0518/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Harry-Yang0518",
"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/7539/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7539/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7539.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7539",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7539.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7539"
}
| 2025-04-27T20:41:18Z
| 2025-05-06T14:24:24Z
| 8 days, 17:43:06
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7538
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7538/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7538/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7538/events
|
https://github.com/huggingface/datasets/issues/7538
| 3,023,280,056
|
I_kwDODunzps60M5e4
| 7,538
|
`IterableDataset` drops samples when resuming from a checkpoint
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47462742?v=4",
"events_url": "https://api.github.com/users/mariosasko/events{/privacy}",
"followers_url": "https://api.github.com/users/mariosasko/followers",
"following_url": "https://api.github.com/users/mariosasko/following{/other_user}",
"gists_url": "https://api.github.com/users/mariosasko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mariosasko",
"id": 47462742,
"login": "mariosasko",
"node_id": "MDQ6VXNlcjQ3NDYyNzQy",
"organizations_url": "https://api.github.com/users/mariosasko/orgs",
"received_events_url": "https://api.github.com/users/mariosasko/received_events",
"repos_url": "https://api.github.com/users/mariosasko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mariosasko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mariosasko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mariosasko",
"user_view_type": "public"
}
|
[
{
"color": "d73a4a",
"default": true,
"description": "Something isn't working",
"id": 1935892857,
"name": "bug",
"node_id": "MDU6TGFiZWwxOTM1ODkyODU3",
"url": "https://api.github.com/repos/huggingface/datasets/labels/bug"
}
] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Thanks for reporting ! I fixed the issue using RebatchedArrowExamplesIterable before the formatted iterable",
"created_at": "2025-05-06T14:04:04Z",
"html_url": "https://github.com/huggingface/datasets/issues/7538#issuecomment-2854703906",
"id": 2854703906,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7538",
"node_id": "IC_kwDODunzps6qJ1Mi",
"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/2854703906/reactions"
},
"updated_at": "2025-05-06T14:04:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854703906",
"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-04-27T19:34:49Z
| 2025-05-06T14:04:05Z
| 2025-05-06T14:03:42Z
|
COLLABORATOR
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
When resuming from a checkpoint, `IterableDataset` will drop samples if `num_shards % world_size == 0` and the underlying example supports `iter_arrow` and needs to be formatted.
In that case, the `FormattedExamplesIterable` fetches a batch of samples from the child iterable's `iter_arrow` and yields them one by one (after formatting). However, the child increments the `shard_example_idx` counter (in its `iter_arrow`) before returning the batch for the whole batch size, which leads to a portion of samples being skipped if the iteration (of the parent iterable) is stopped mid-batch.
Perhaps one way to avoid this would be by signalling the child iterable which samples (within the chunk) are processed by the parent and which are not, so that it can adjust the `shard_example_idx` counter accordingly. This would also mean the chunk needs to be sliced when resuming, but this is straightforward to implement.
The following is a minimal reproducer of the bug:
```python
from datasets import Dataset
from datasets.distributed import split_dataset_by_node
ds = Dataset.from_dict({"n": list(range(24))})
ds = ds.to_iterable_dataset(num_shards=4)
world_size = 4
rank = 0
ds_rank = split_dataset_by_node(ds, rank, world_size)
it = iter(ds_rank)
examples = []
for idx, example in enumerate(it):
examples.append(example)
if idx == 2:
state_dict = ds_rank.state_dict()
break
ds_rank.load_state_dict(state_dict)
it_resumed = iter(ds_rank)
examples_resumed = examples[:]
for example in it:
examples.append(example)
for example in it_resumed:
examples_resumed.append(example)
print("ORIGINAL ITER EXAMPLES:", examples)
print("RESUMED ITER EXAMPLES:", examples_resumed)
```
|
{
"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/7538/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7538/timeline
| null |
completed
| null | null | 2025-04-27T19:34:49Z
| 2025-05-06T14:03:42Z
| 8 days, 18:28:53
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7536
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7536/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7536/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7536/events
|
https://github.com/huggingface/datasets/issues/7536
| 3,018,425,549
|
I_kwDODunzps6z6YTN
| 7,536
|
[Errno 13] Permission denied: on `.incomplete` file
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1282383?v=4",
"events_url": "https://api.github.com/users/ryan-clancy/events{/privacy}",
"followers_url": "https://api.github.com/users/ryan-clancy/followers",
"following_url": "https://api.github.com/users/ryan-clancy/following{/other_user}",
"gists_url": "https://api.github.com/users/ryan-clancy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryan-clancy",
"id": 1282383,
"login": "ryan-clancy",
"node_id": "MDQ6VXNlcjEyODIzODM=",
"organizations_url": "https://api.github.com/users/ryan-clancy/orgs",
"received_events_url": "https://api.github.com/users/ryan-clancy/received_events",
"repos_url": "https://api.github.com/users/ryan-clancy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryan-clancy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryan-clancy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryan-clancy",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "It must be an issue with umask being used by multiple threads indeed. Maybe we can try to make a thread safe function to apply the umask (using filelock for example)",
"created_at": "2025-04-26T12:40:24Z",
"html_url": "https://github.com/huggingface/datasets/issues/7536#issuecomment-2832125606",
"id": 2832125606,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7536",
"node_id": "IC_kwDODunzps6ozs6m",
"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/2832125606/reactions"
},
"updated_at": "2025-04-26T12:40:24Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2832125606",
"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": "> It must be an issue with umask being used by multiple threads indeed. Maybe we can try to make a thread safe function to apply the umask (using filelock for example)\n\n@lhoestq is this something which can go in a 3.5.1 release?",
"created_at": "2025-04-28T04:45:20Z",
"html_url": "https://github.com/huggingface/datasets/issues/7536#issuecomment-2833969382",
"id": 2833969382,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7536",
"node_id": "IC_kwDODunzps6o6vDm",
"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/2833969382/reactions"
},
"updated_at": "2025-04-28T04:45:20Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2833969382",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/1282383?v=4",
"events_url": "https://api.github.com/users/ryan-clancy/events{/privacy}",
"followers_url": "https://api.github.com/users/ryan-clancy/followers",
"following_url": "https://api.github.com/users/ryan-clancy/following{/other_user}",
"gists_url": "https://api.github.com/users/ryan-clancy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryan-clancy",
"id": 1282383,
"login": "ryan-clancy",
"node_id": "MDQ6VXNlcjEyODIzODM=",
"organizations_url": "https://api.github.com/users/ryan-clancy/orgs",
"received_events_url": "https://api.github.com/users/ryan-clancy/received_events",
"repos_url": "https://api.github.com/users/ryan-clancy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryan-clancy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryan-clancy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryan-clancy",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Yes for sure",
"created_at": "2025-04-28T09:15:40Z",
"html_url": "https://github.com/huggingface/datasets/issues/7536#issuecomment-2834560213",
"id": 2834560213,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7536",
"node_id": "IC_kwDODunzps6o8_TV",
"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/2834560213/reactions"
},
"updated_at": "2025-04-28T09:15:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2834560213",
"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 - can you take a look at https://github.com/huggingface/datasets/pull/7547/?",
"created_at": "2025-05-01T22:25:10Z",
"html_url": "https://github.com/huggingface/datasets/issues/7536#issuecomment-2845910860",
"id": 2845910860,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7536",
"node_id": "IC_kwDODunzps6poSdM",
"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/2845910860/reactions"
},
"updated_at": "2025-05-01T22:25:10Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2845910860",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/1282383?v=4",
"events_url": "https://api.github.com/users/ryan-clancy/events{/privacy}",
"followers_url": "https://api.github.com/users/ryan-clancy/followers",
"following_url": "https://api.github.com/users/ryan-clancy/following{/other_user}",
"gists_url": "https://api.github.com/users/ryan-clancy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryan-clancy",
"id": 1282383,
"login": "ryan-clancy",
"node_id": "MDQ6VXNlcjEyODIzODM=",
"organizations_url": "https://api.github.com/users/ryan-clancy/orgs",
"received_events_url": "https://api.github.com/users/ryan-clancy/received_events",
"repos_url": "https://api.github.com/users/ryan-clancy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryan-clancy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryan-clancy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryan-clancy",
"user_view_type": "public"
}
}
] | 2025-04-24T20:52:45Z
| 2025-05-06T13:05:01Z
| 2025-05-06T13:05:01Z
|
CONTRIBUTOR
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When downloading a dataset, we frequently hit the below Permission Denied error. This looks to happen (at least) across datasets in HF, S3, and GCS.
It looks like the `temp_file` being passed [here](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/file_utils.py#L412) can sometimes be created with `000` permissions leading to the permission denied error (the user running the code is still the owner of the file). Deleting that particular file and re-running the code with 0 changes will usually succeed.
Is there some race condition happening with the [umask](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/file_utils.py#L416), which is process global, and the [file creation](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/file_utils.py#L404)?
```
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.12/site-packages/datasets/load.py:2084: in load_dataset
builder_instance.download_and_prepare(
.venv/lib/python3.12/site-packages/datasets/builder.py:925: in download_and_prepare
self._download_and_prepare(
.venv/lib/python3.12/site-packages/datasets/builder.py:1649: in _download_and_prepare
super()._download_and_prepare(
.venv/lib/python3.12/site-packages/datasets/builder.py:979: in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
.venv/lib/python3.12/site-packages/datasets/packaged_modules/folder_based_builder/folder_based_builder.py:120: in _split_generators
downloaded_files = dl_manager.download(files)
.venv/lib/python3.12/site-packages/datasets/download/download_manager.py:159: in download
downloaded_path_or_paths = map_nested(
.venv/lib/python3.12/site-packages/datasets/utils/py_utils.py:514: in map_nested
_single_map_nested((function, obj, batched, batch_size, types, None, True, None))
.venv/lib/python3.12/site-packages/datasets/utils/py_utils.py:382: in _single_map_nested
return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]
.venv/lib/python3.12/site-packages/datasets/download/download_manager.py:206: in _download_batched
return thread_map(
.venv/lib/python3.12/site-packages/tqdm/contrib/concurrent.py:69: in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
.venv/lib/python3.12/site-packages/tqdm/contrib/concurrent.py:51: in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))
.venv/lib/python3.12/site-packages/tqdm/std.py:1181: in __iter__
for obj in iterable:
../../../_tool/Python/3.12.10/x64/lib/python3.12/concurrent/futures/_base.py:619: in result_iterator
yield _result_or_cancel(fs.pop())
../../../_tool/Python/3.12.10/x64/lib/python3.12/concurrent/futures/_base.py:317: in _result_or_cancel
return fut.result(timeout)
../../../_tool/Python/3.12.10/x64/lib/python3.12/concurrent/futures/_base.py:449: in result
return self.__get_result()
../../../_tool/Python/3.12.10/x64/lib/python3.12/concurrent/futures/_base.py:401: in __get_result
raise self._exception
../../../_tool/Python/3.12.10/x64/lib/python3.12/concurrent/futures/thread.py:59: in run
result = self.fn(*self.args, **self.kwargs)
.venv/lib/python3.12/site-packages/datasets/download/download_manager.py:229: in _download_single
out = cached_path(url_or_filename, download_config=download_config)
.venv/lib/python3.12/site-packages/datasets/utils/file_utils.py:206: in cached_path
output_path = get_from_cache(
.venv/lib/python3.12/site-packages/datasets/utils/file_utils.py:412: in get_from_cache
fsspec_get(url, temp_file, storage_options=storage_options, desc=download_desc, disable_tqdm=disable_tqdm)
.venv/lib/python3.12/site-packages/datasets/utils/file_utils.py:331: in fsspec_get
fs.get_file(path, temp_file.name, callback=callback)
.venv/lib/python3.12/site-packages/fsspec/asyn.py:118: in wrapper
return sync(self.loop, func, *args, **kwargs)
.venv/lib/python3.12/site-packages/fsspec/asyn.py:103: in sync
raise return_result
.venv/lib/python3.12/site-packages/fsspec/asyn.py:56: in _runner
result[0] = await coro
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <s3fs.core.S3FileSystem object at 0x7f27c18b2e70>
rpath = '<my-bucket>/<my-prefix>/img_1.jpg'
lpath = '/home/runner/_work/_temp/hf_cache/downloads/6c97983efa4e24e534557724655df8247a0bd04326cdfc4a95b638c11e78222d.incomplete'
callback = <datasets.utils.file_utils.TqdmCallback object at 0x7f27c00cdbe0>
version_id = None, kwargs = {}
_open_file = <function S3FileSystem._get_file.<locals>._open_file at 0x7f27628d1120>
body = <StreamingBody at 0x7f276344fa80 for ClientResponse at 0x7f27c015fce0>
content_length = 521923, failed_reads = 0, bytes_read = 0
async def _get_file(
self, rpath, lpath, callback=_DEFAULT_CALLBACK, version_id=None, **kwargs
):
if os.path.isdir(lpath):
return
bucket, key, vers = self.split_path(rpath)
async def _open_file(range: int):
kw = self.req_kw.copy()
if range:
kw["Range"] = f"bytes={range}-"
resp = await self._call_s3(
"get_object",
Bucket=bucket,
Key=key,
**version_id_kw(version_id or vers),
**kw,
)
return resp["Body"], resp.get("ContentLength", None)
body, content_length = await _open_file(range=0)
callback.set_size(content_length)
failed_reads = 0
bytes_read = 0
try:
> with open(lpath, "wb") as f0:
E PermissionError: [Errno 13] Permission denied: '/home/runner/_work/_temp/hf_cache/downloads/6c97983efa4e24e534557724655df8247a0bd04326cdfc4a95b638c11e78222d.incomplete'
.venv/lib/python3.12/site-packages/s3fs/core.py:1355: PermissionError
```
### Steps to reproduce the bug
I believe this is a race condition and cannot reliably re-produce it, but it happens fairly frequently in our GitHub Actions tests and can also be re-produced (with lesser frequency) on cloud VMs.
### Expected behavior
The dataset loads properly with no permission denied error.
### Environment info
- `datasets` version: 3.5.0
- Platform: Linux-5.10.0-34-cloud-amd64-x86_64-with-glibc2.31
- Python version: 3.12.10
- `huggingface_hub` version: 0.30.2
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.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/7536/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7536/timeline
| null |
completed
| null | null | 2025-04-24T20:52:45Z
| 2025-05-06T13:05:01Z
| 11 days, 16:12:16
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7537
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7537/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7537/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7537/events
|
https://github.com/huggingface/datasets/issues/7537
| 3,018,792,966
|
I_kwDODunzps6z7yAG
| 7,537
|
`datasets.map(..., num_proc=4)` multi-processing fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24477841?v=4",
"events_url": "https://api.github.com/users/faaany/events{/privacy}",
"followers_url": "https://api.github.com/users/faaany/followers",
"following_url": "https://api.github.com/users/faaany/following{/other_user}",
"gists_url": "https://api.github.com/users/faaany/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/faaany",
"id": 24477841,
"login": "faaany",
"node_id": "MDQ6VXNlcjI0NDc3ODQx",
"organizations_url": "https://api.github.com/users/faaany/orgs",
"received_events_url": "https://api.github.com/users/faaany/received_events",
"repos_url": "https://api.github.com/users/faaany/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/faaany/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/faaany/subscriptions",
"type": "User",
"url": "https://api.github.com/users/faaany",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "related: https://github.com/huggingface/datasets/issues/7510\n\nwe need to do more tests to see if latest `dill` is deterministic",
"created_at": "2025-05-06T13:12:07Z",
"html_url": "https://github.com/huggingface/datasets/issues/7537#issuecomment-2854534074",
"id": 2854534074,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7537",
"node_id": "IC_kwDODunzps6qJLu6",
"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/2854534074/reactions"
},
"updated_at": "2025-05-06T13:12:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854534074",
"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-04-25T01:53:47Z
| 2025-05-06T13:12:08Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
The following code fails in python 3.11+
```python
tokenized_datasets = datasets.map(tokenize_function, batched=True, num_proc=4, remove_columns=["text"])
```
Error log:
```bash
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/multiprocess/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/lib/python3.12/dist-packages/multiprocess/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.12/dist-packages/multiprocess/pool.py", line 114, in worker
task = get()
^^^^^
File "/usr/local/lib/python3.12/dist-packages/multiprocess/queues.py", line 371, in get
return _ForkingPickler.loads(res)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/dill/_dill.py", line 327, in loads
return load(file, ignore, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/dill/_dill.py", line 313, in load
return Unpickler(file, ignore=ignore, **kwds).load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/dill/_dill.py", line 525, in load
obj = StockUnpickler.load(self)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/dill/_dill.py", line 659, in _create_code
if len(args) == 16: return CodeType(*args)
^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
```
After upgrading dill to the latest 0.4.0 with "pip install --upgrade dill", it can pass. So it seems that there is a compatibility issue between dill 0.3.4 and python 3.11+, because python 3.10 works fine.
Is the dill deterministic issue mentioned in https://github.com/huggingface/datasets/blob/main/setup.py#L117) still valid? Any plan to unpin?
| 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/7537/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7537/timeline
| null | null | null | null | 2025-04-25T01:53:47Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7534
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7534/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7534/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7534/events
|
https://github.com/huggingface/datasets/issues/7534
| 3,017,259,407
|
I_kwDODunzps6z17mP
| 7,534
|
TensorFlow RaggedTensor Support (batch-level)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7490199?v=4",
"events_url": "https://api.github.com/users/Lundez/events{/privacy}",
"followers_url": "https://api.github.com/users/Lundez/followers",
"following_url": "https://api.github.com/users/Lundez/following{/other_user}",
"gists_url": "https://api.github.com/users/Lundez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Lundez",
"id": 7490199,
"login": "Lundez",
"node_id": "MDQ6VXNlcjc0OTAxOTk=",
"organizations_url": "https://api.github.com/users/Lundez/orgs",
"received_events_url": "https://api.github.com/users/Lundez/received_events",
"repos_url": "https://api.github.com/users/Lundez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Lundez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lundez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Lundez",
"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": "Keras doesn't support other inputs other than tf.data.Dataset objects ? it's a bit painful to have to support and maintain this kind of integration\n\nIs there a way to use a `datasets.Dataset` with outputs formatted as tensors / ragged tensors instead ? like in https://huggingface.co/docs/datasets/use_with_tensorflow#dataset-format",
"created_at": "2025-05-06T13:25:08Z",
"html_url": "https://github.com/huggingface/datasets/issues/7534#issuecomment-2854577148",
"id": 2854577148,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7534",
"node_id": "IC_kwDODunzps6qJWP8",
"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/2854577148/reactions"
},
"updated_at": "2025-05-06T13:25:08Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854577148",
"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'll give it a try when I get the time. But quite sure I already tested the `with_format` approach.\n\nKeras when using TF as backend converts the datasets into `tf.data.Dataset`, much like you do.",
"created_at": "2025-05-08T14:12:32Z",
"html_url": "https://github.com/huggingface/datasets/issues/7534#issuecomment-2863223791",
"id": 2863223791,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7534",
"node_id": "IC_kwDODunzps6qqVPv",
"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/2863223791/reactions"
},
"updated_at": "2025-05-08T14:13:47Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2863223791",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/7490199?v=4",
"events_url": "https://api.github.com/users/Lundez/events{/privacy}",
"followers_url": "https://api.github.com/users/Lundez/followers",
"following_url": "https://api.github.com/users/Lundez/following{/other_user}",
"gists_url": "https://api.github.com/users/Lundez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Lundez",
"id": 7490199,
"login": "Lundez",
"node_id": "MDQ6VXNlcjc0OTAxOTk=",
"organizations_url": "https://api.github.com/users/Lundez/orgs",
"received_events_url": "https://api.github.com/users/Lundez/received_events",
"repos_url": "https://api.github.com/users/Lundez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Lundez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lundez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Lundez",
"user_view_type": "public"
}
},
{
"author_association": "CONTRIBUTOR",
"body": "Hi @Lundez! Thanks for raising this — very valid point, especially for Object Detection use-cases.\n\nYou're right that np_get_batch currently enforces numpy batching, which breaks RaggedTensor support due to its inability to handle nested structures. This likely needs a redesign to allow TensorFlow-native batching in specific formats.\n\nBefore diving into a code change though, could you confirm:\n\nDoes `.with_format(\"tensorflow\")` (without batching) return a `tf.data.Dataset` that works if batching is deferred to `model.fit()`?\n\nHave you tried something like:\n\n```python\ntf_dataset = dataset.with_format(\"tensorflow\").to_tf_dataset(\n columns=[\"image\", \"labels\"],\n label_cols=None,\n batch_size=None # No batching here\n)\nmodel.fit(tf_dataset.batch(BATCH_SIZE)) # Use RaggedTensor batching here\n```\n\nIf this works, it might be worth updating the documentation rather than changing batching logic inside datasets itself.\n\nThat said, happy to explore changes if batching needs to be supported natively for RaggedTensor. Just flagging that it’d require some careful design due to existing numpy assumptions.",
"created_at": "2025-06-29T06:24:53Z",
"html_url": "https://github.com/huggingface/datasets/issues/7534#issuecomment-3016344345",
"id": 3016344345,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7534",
"node_id": "IC_kwDODunzps6zycMZ",
"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/3016344345/reactions"
},
"updated_at": "2025-06-29T06:24:53Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016344345",
"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": "Hi, we've had to move on for now. \n\nWe have actually also moved to dense tensors to make it possible to xla complie the training. \n\nBut I'll check when I'm back from vacation which is far into the future. \n\nThanks",
"created_at": "2025-06-30T17:03:39Z",
"html_url": "https://github.com/huggingface/datasets/issues/7534#issuecomment-3020032573",
"id": 3020032573,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7534",
"node_id": "IC_kwDODunzps60Ago9",
"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/3020032573/reactions"
},
"updated_at": "2025-06-30T17:03:39Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3020032573",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/7490199?v=4",
"events_url": "https://api.github.com/users/Lundez/events{/privacy}",
"followers_url": "https://api.github.com/users/Lundez/followers",
"following_url": "https://api.github.com/users/Lundez/following{/other_user}",
"gists_url": "https://api.github.com/users/Lundez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Lundez",
"id": 7490199,
"login": "Lundez",
"node_id": "MDQ6VXNlcjc0OTAxOTk=",
"organizations_url": "https://api.github.com/users/Lundez/orgs",
"received_events_url": "https://api.github.com/users/Lundez/received_events",
"repos_url": "https://api.github.com/users/Lundez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Lundez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lundez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Lundez",
"user_view_type": "public"
}
}
] | 2025-04-24T13:14:52Z
| 2025-06-30T17:03:39Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Hi,
Currently datasets does not support RaggedTensor output on batch-level.
When building a Object Detection Dataset (with TensorFlow) I need to enable RaggedTensors as that's how BBoxes & classes are expected from the Keras Model POV.
Currently there's a error thrown saying that "Nested Data is not supported".
It'd be very helpful if this was fixed! :)
### Motivation
Enabling Object Detection pipelines for TensorFlow.
### Your contribution
With guidance I'd happily help making the PR.
The current implementation with DataCollator and later enforcing `np.array` is the problematic part (at the end of `np_get_batch` in `tf_utils.py`). As `numpy` don't support "Raggednes"
| 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/7534/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7534/timeline
| null | null | null | null | 2025-04-24T13:14:52Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7535
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7535/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7535/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7535/events
|
https://github.com/huggingface/datasets/pull/7535
| 3,018,289,872
|
PR_kwDODunzps6T0lm3
| 7,535
|
Change dill version in requirements
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/98061329?v=4",
"events_url": "https://api.github.com/users/JGrel/events{/privacy}",
"followers_url": "https://api.github.com/users/JGrel/followers",
"following_url": "https://api.github.com/users/JGrel/following{/other_user}",
"gists_url": "https://api.github.com/users/JGrel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JGrel",
"id": 98061329,
"login": "JGrel",
"node_id": "U_kgDOBdhMEQ",
"organizations_url": "https://api.github.com/users/JGrel/orgs",
"received_events_url": "https://api.github.com/users/JGrel/received_events",
"repos_url": "https://api.github.com/users/JGrel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JGrel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JGrel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JGrel",
"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_7535). 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-04-25T09:31:43Z",
"html_url": "https://github.com/huggingface/datasets/pull/7535#issuecomment-2829887292",
"id": 2829887292,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7535",
"node_id": "IC_kwDODunzps6orKc8",
"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/2829887292/reactions"
},
"updated_at": "2025-04-25T09:31:43Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2829887292",
"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-04-24T19:44:28Z
| 2025-05-19T14:51:29Z
| null |
NONE
| null | null | null |
Change dill version to >=0.3.9,<0.4.5 and check for errors
| 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/7535/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7535/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7535.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7535",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7535.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7535"
}
| 2025-04-24T19:44:28Z
| null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7533
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7533/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7533/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7533/events
|
https://github.com/huggingface/datasets/pull/7533
| 3,015,075,086
|
PR_kwDODunzps6TpraJ
| 7,533
|
Add custom fingerprint support to `from_generator`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "This is great !\r\n\r\nWhat do you think of passing `config_id=` directly to the builder instead of just the suffix ? This would be a power user argument though, or for internal use. And in from_generator the new argument can be `fingerprint=` as in `Dataset.__init__()`\r\n\r\nThe `config_id` can be defined using something like `config_id = \"default-fingerprint=\" + fingerprint`\r\n\r\nI feel ike this could make the Dataset API more coherent if we avoid introducing a new argument while we can juste use `fingerprint=`",
"created_at": "2025-04-24T10:22:52Z",
"html_url": "https://github.com/huggingface/datasets/pull/7533#issuecomment-2827103167",
"id": 2827103167,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7533",
"node_id": "IC_kwDODunzps6ogiu_",
"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/2827103167/reactions"
},
"updated_at": "2025-04-24T10:22:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2827103167",
"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 looked into this issue and the original cause makes total sense — hashing a large generator is clearly inefficient and fragile for big datasets.\r\n\r\nPR #7533 looks like a robust and flexible solution! It cleanly separates the fingerprinting responsibility by letting users pass `fingerprint=` (now `config_id=`), which avoids hashing heavy objects like generators but still preserves caching logic.\r\n",
"created_at": "2025-06-29T06:17:17Z",
"html_url": "https://github.com/huggingface/datasets/pull/7533#issuecomment-3016341731",
"id": 3016341731,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7533",
"node_id": "IC_kwDODunzps6zybjj",
"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/3016341731/reactions"
},
"updated_at": "2025-06-29T06:17:17Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016341731",
"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": "@lhoestq could you please re-review the changes I made?",
"created_at": "2025-07-10T09:29:35Z",
"html_url": "https://github.com/huggingface/datasets/pull/7533#issuecomment-3056550033",
"id": 3056550033,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7533",
"node_id": "IC_kwDODunzps62L0CR",
"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/3056550033/reactions"
},
"updated_at": "2025-07-10T09:29:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3056550033",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
}
] | 2025-04-23T19:31:35Z
| 2025-07-10T09:29:35Z
| null |
NONE
| null | null | null |
This PR adds `dataset_id_suffix` parameter to 'Dataset.from_generator' function.
`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including generator function itself. `BuilderConfig.create_config_id` function tries to hash all the args, which can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.
This PR allows user to pass a custom fingerprint (`dataset_id_suffix`) to be used as a suffix in a dataset name instead of the one generated by hashing the args.
This PR is a possible solution of #7513
| 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/7533/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7533/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7533.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7533",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7533.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7533"
}
| 2025-04-23T19:31:35Z
| null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7531
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7531/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7531/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7531/events
|
https://github.com/huggingface/datasets/issues/7531
| 3,008,914,887
|
I_kwDODunzps6zWGXH
| 7,531
|
Deepspeed reward training hangs at end of training with Dataset.from_list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60710414?v=4",
"events_url": "https://api.github.com/users/Matt00n/events{/privacy}",
"followers_url": "https://api.github.com/users/Matt00n/followers",
"following_url": "https://api.github.com/users/Matt00n/following{/other_user}",
"gists_url": "https://api.github.com/users/Matt00n/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Matt00n",
"id": 60710414,
"login": "Matt00n",
"node_id": "MDQ6VXNlcjYwNzEwNDE0",
"organizations_url": "https://api.github.com/users/Matt00n/orgs",
"received_events_url": "https://api.github.com/users/Matt00n/received_events",
"repos_url": "https://api.github.com/users/Matt00n/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Matt00n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Matt00n/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Matt00n",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! How big is the dataset ? if you load it using `from_list`, the dataset lives in memory and has to be copied to every gpu process, which can be slow.\n\nIt's fasted if you load it from JSON files from disk, because in that case the dataset in converted to Arrow and loaded from disk using memory mapping. Memory mapping allows to quickly reload the dataset in other processes.\n\nMaybe we can change `from_list` and other methods to always use the disk though, instead of loading in memory, WDYT ?",
"created_at": "2025-05-06T13:30:39Z",
"html_url": "https://github.com/huggingface/datasets/issues/7531#issuecomment-2854593744",
"id": 2854593744,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7531",
"node_id": "IC_kwDODunzps6qJaTQ",
"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/2854593744/reactions"
},
"updated_at": "2025-05-06T13:30:39Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854593744",
"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 for raising this! As lhoestq mentioned, the root cause seems to be that `Dataset.from_list()` creates an in-memory dataset, which causes issues with DeepSpeed across multiple GPUs due to the cost of copying that memory to all processes.\n\nUsing `load_dataset(\"json\", ...)` works because Hugging Face datasets then convert the data to Apache Arrow and use **memory mapping**, which avoids this copying overhead.\n\nPossible improvement could be to add an option like `use_disk=True` to `Dataset.from_list()` to allow users to write to Arrow + memory-map the dataset, enabling compatibility with multi-process settings like DeepSpeed, while keeping the current fast behavior by default.\n\nWould love to hear if this direction sounds acceptable before attempting a PR.\n",
"created_at": "2025-06-29T06:20:45Z",
"html_url": "https://github.com/huggingface/datasets/issues/7531#issuecomment-3016342921",
"id": 3016342921,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7531",
"node_id": "IC_kwDODunzps6zyb2J",
"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/3016342921/reactions"
},
"updated_at": "2025-06-29T06:20:45Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016342921",
"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-04-21T17:29:20Z
| 2025-06-29T06:20:45Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine until the end of training and running the same script with Deepspeed on a single GPU works without hangig. The issue persisted across a wide range of Deepspeed configs and training arguments. The issue went away when storing the exact same dataset as a JSON and using `dataset = load_dataset("json", ...)`. Here is my training script:
```python
import pickle
import os
import random
import warnings
import torch
from datasets import load_dataset, Dataset
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from trl import RewardConfig, RewardTrainer, ModelConfig
####################################### Reward model #################################################
# Explicitly set arguments
model_name_or_path = "Qwen/Qwen2.5-1.5B"
output_dir = "Qwen2-0.5B-Reward-LoRA"
per_device_train_batch_size = 2
num_train_epochs = 5
gradient_checkpointing = True
learning_rate = 1.0e-4
logging_steps = 25
eval_strategy = "steps"
eval_steps = 50
max_length = 2048
torch_dtype = "auto"
trust_remote_code = False
model_args = ModelConfig(
model_name_or_path=model_name_or_path,
model_revision=None,
trust_remote_code=trust_remote_code,
torch_dtype=torch_dtype,
lora_task_type="SEQ_CLS", # Make sure task type is seq_cls
)
training_args = RewardConfig(
output_dir=output_dir,
per_device_train_batch_size=per_device_train_batch_size,
num_train_epochs=num_train_epochs,
gradient_checkpointing=gradient_checkpointing,
learning_rate=learning_rate,
logging_steps=logging_steps,
eval_strategy=eval_strategy,
eval_steps=eval_steps,
max_length=max_length,
gradient_checkpointing_kwargs=dict(use_reentrant=False),
center_rewards_coefficient = 0.01,
fp16=False,
bf16=True,
save_strategy="no",
dataloader_num_workers=0,
# deepspeed="./configs/deepspeed_config.json",
)
################
# Model & Tokenizer
################
model_kwargs = dict(
revision=model_args.model_revision,
use_cache=False if training_args.gradient_checkpointing else True,
torch_dtype=model_args.torch_dtype,
)
tokenizer = AutoTokenizer.from_pretrained(
model_args.model_name_or_path, use_fast=True
)
model = AutoModelForSequenceClassification.from_pretrained(
model_args.model_name_or_path, num_labels=1, trust_remote_code=model_args.trust_remote_code, **model_kwargs
)
# Align padding tokens between tokenizer and model
model.config.pad_token_id = tokenizer.pad_token_id
# If post-training a base model, use ChatML as the default template
if tokenizer.chat_template is None:
model, tokenizer = setup_chat_format(model, tokenizer)
if model_args.use_peft and model_args.lora_task_type != "SEQ_CLS":
warnings.warn(
"You are using a `task_type` that is different than `SEQ_CLS` for PEFT. This will lead to silent bugs"
" Make sure to pass --lora_task_type SEQ_CLS when using this script with PEFT.",
UserWarning,
)
##############
# Load dataset
##############
with open('./prefs.pkl', 'rb') as fh:
loaded_data = pickle.load(fh)
random.shuffle(loaded_data)
dataset = []
for a_wins, a, b in loaded_data:
if a_wins == 0:
a, b = b, a
dataset.append({'chosen': a, 'rejected': b})
dataset = Dataset.from_list(dataset)
# Split the dataset into training and evaluation sets
train_eval_split = dataset.train_test_split(test_size=0.15, shuffle=True, seed=42)
# Access the training and evaluation datasets
train_dataset = train_eval_split['train']
eval_dataset = train_eval_split['test']
##########
# Training
##########
trainer = RewardTrainer(
model=model,
processing_class=tokenizer,
args=training_args,
train_dataset=train_dataset,
eval_dataset=eval_dataset,
)
trainer.train()
```
Replacing `dataset = Dataset.from_list(dataset)` with
```python
with open('./prefs.json', 'w') as fh:
json.dump(dataset, fh)
dataset = load_dataset("json", data_files="./prefs.json", split='train')
```
resolves the issue.
| 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/7531/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7531/timeline
| null | null | null | null | 2025-04-21T17:29:20Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7530
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7530/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7530/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7530/events
|
https://github.com/huggingface/datasets/issues/7530
| 3,007,452,499
|
I_kwDODunzps6zQhVT
| 7,530
|
How to solve "Spaces stuck in Building" problems
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "I'm facing the same issue—Space stuck in \"Building\" even after restart and Factory rebuild. Any fix?\n",
"created_at": "2025-04-21T10:11:57Z",
"html_url": "https://github.com/huggingface/datasets/issues/7530#issuecomment-2818100290",
"id": 2818100290,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7530",
"node_id": "IC_kwDODunzps6n-MxC",
"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/2818100290/reactions"
},
"updated_at": "2025-04-21T10:11:57Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2818100290",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/92701198?v=4",
"events_url": "https://api.github.com/users/TheCuongt65/events{/privacy}",
"followers_url": "https://api.github.com/users/TheCuongt65/followers",
"following_url": "https://api.github.com/users/TheCuongt65/following{/other_user}",
"gists_url": "https://api.github.com/users/TheCuongt65/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TheCuongt65",
"id": 92701198,
"login": "TheCuongt65",
"node_id": "U_kgDOBYaCDg",
"organizations_url": "https://api.github.com/users/TheCuongt65/orgs",
"received_events_url": "https://api.github.com/users/TheCuongt65/received_events",
"repos_url": "https://api.github.com/users/TheCuongt65/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TheCuongt65/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TheCuongt65/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TheCuongt65",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "> I'm facing the same issue—Space stuck in \"Building\" even after restart and Factory rebuild. Any fix?\n\nAlso see https://github.com/huggingface/huggingface_hub/issues/3019",
"created_at": "2025-04-21T13:18:34Z",
"html_url": "https://github.com/huggingface/datasets/issues/7530#issuecomment-2818394201",
"id": 2818394201,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7530",
"node_id": "IC_kwDODunzps6n_UhZ",
"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/2818394201/reactions"
},
"updated_at": "2025-04-21T13:18:34Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2818394201",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "I'm facing the same issue. The build fails with the same error, and restarting won't help. Is there a fix or ETA? ",
"created_at": "2025-04-21T16:02:40Z",
"html_url": "https://github.com/huggingface/datasets/issues/7530#issuecomment-2818896082",
"id": 2818896082,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7530",
"node_id": "IC_kwDODunzps6oBPDS",
"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/2818896082/reactions"
},
"updated_at": "2025-04-21T16:02:40Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2818896082",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/55587872?v=4",
"events_url": "https://api.github.com/users/Iaroslav856/events{/privacy}",
"followers_url": "https://api.github.com/users/Iaroslav856/followers",
"following_url": "https://api.github.com/users/Iaroslav856/following{/other_user}",
"gists_url": "https://api.github.com/users/Iaroslav856/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Iaroslav856",
"id": 55587872,
"login": "Iaroslav856",
"node_id": "MDQ6VXNlcjU1NTg3ODcy",
"organizations_url": "https://api.github.com/users/Iaroslav856/orgs",
"received_events_url": "https://api.github.com/users/Iaroslav856/received_events",
"repos_url": "https://api.github.com/users/Iaroslav856/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Iaroslav856/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Iaroslav856/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Iaroslav856",
"user_view_type": "public"
}
}
] | 2025-04-21T03:08:38Z
| 2025-04-22T07:49:52Z
| 2025-04-22T07:49:52Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Public spaces may stuck in Building after restarting, error log as follows:
build error
Unexpected job error
ERROR: failed to push spaces-registry.huggingface.tech/spaces/*:cpu-*-*: unexpected status from HEAD request to https://spaces-registry.huggingface.tech/v2/spaces/*/manifests/cpu-*-*: 401 Unauthorized
### Steps to reproduce the bug
Restart space / Factory rebuild cannot avoid it
### Expected behavior
Fix this problem
### Environment info
no requirements.txt can still happen
python gradio spaces
| 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/7530/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7530/timeline
| null |
completed
| null | null | 2025-04-21T03:08:38Z
| 2025-04-22T07:49:52Z
| 1 day, 4:41:14
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7532
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7532/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7532/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7532/events
|
https://github.com/huggingface/datasets/pull/7532
| 3,009,546,204
|
PR_kwDODunzps6TW8Ss
| 7,532
|
Document the HF_DATASETS_CACHE environment variable in the datasets cache documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/129883215?v=4",
"events_url": "https://api.github.com/users/Harry-Yang0518/events{/privacy}",
"followers_url": "https://api.github.com/users/Harry-Yang0518/followers",
"following_url": "https://api.github.com/users/Harry-Yang0518/following{/other_user}",
"gists_url": "https://api.github.com/users/Harry-Yang0518/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Harry-Yang0518",
"id": 129883215,
"login": "Harry-Yang0518",
"node_id": "U_kgDOB73cTw",
"organizations_url": "https://api.github.com/users/Harry-Yang0518/orgs",
"received_events_url": "https://api.github.com/users/Harry-Yang0518/received_events",
"repos_url": "https://api.github.com/users/Harry-Yang0518/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Harry-Yang0518/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Harry-Yang0518/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Harry-Yang0518",
"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_7532). 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-04-28T11:33:11Z",
"html_url": "https://github.com/huggingface/datasets/pull/7532#issuecomment-2834951866",
"id": 2834951866,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7532",
"node_id": "IC_kwDODunzps6o-e66",
"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/2834951866/reactions"
},
"updated_at": "2025-04-28T11:33:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2834951866",
"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": "Your clarification in your comment at https://github.com/huggingface/datasets/issues/7480#issuecomment-2833640084 sounds great, would you like to update this PR to include it ?",
"created_at": "2025-04-28T13:04:49Z",
"html_url": "https://github.com/huggingface/datasets/pull/7532#issuecomment-2835178188",
"id": 2835178188,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7532",
"node_id": "IC_kwDODunzps6o_WLM",
"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/2835178188/reactions"
},
"updated_at": "2025-04-28T13:04:49Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835178188",
"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, I’ve updated the documentation to reflect the clarifications discussed in #7480. Let me know if anything else is needed!\r\n",
"created_at": "2025-05-06T14:46:14Z",
"html_url": "https://github.com/huggingface/datasets/pull/7532#issuecomment-2854849053",
"id": 2854849053,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7532",
"node_id": "IC_kwDODunzps6qKYod",
"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/2854849053/reactions"
},
"updated_at": "2025-05-06T14:46:14Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854849053",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/129883215?v=4",
"events_url": "https://api.github.com/users/Harry-Yang0518/events{/privacy}",
"followers_url": "https://api.github.com/users/Harry-Yang0518/followers",
"following_url": "https://api.github.com/users/Harry-Yang0518/following{/other_user}",
"gists_url": "https://api.github.com/users/Harry-Yang0518/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Harry-Yang0518",
"id": 129883215,
"login": "Harry-Yang0518",
"node_id": "U_kgDOB73cTw",
"organizations_url": "https://api.github.com/users/Harry-Yang0518/orgs",
"received_events_url": "https://api.github.com/users/Harry-Yang0518/received_events",
"repos_url": "https://api.github.com/users/Harry-Yang0518/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Harry-Yang0518/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Harry-Yang0518/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Harry-Yang0518",
"user_view_type": "public"
}
}
] | 2025-04-22T00:23:13Z
| 2025-05-06T15:54:38Z
| 2025-05-06T15:54:38Z
|
CONTRIBUTOR
| null | null | null |
This pull request updates the Datasets documentation to include the `HF_DATASETS_CACHE` environment variable. While the current documentation only mentions `HF_HOME` for overriding the default cache directory, `HF_DATASETS_CACHE` is also a supported and useful option for specifying a custom cache location for datasets stored in Arrow format.
This addition is based on the discussion in (https://github.com/huggingface/datasets/issues/7457), where users noted the absence of this variable in the documentation despite its functionality. The update adds a new section to `cache.mdx` that explains how to use `HF_DATASETS_CACHE` with an example.
This change aims to improve clarity and help users better manage their cache directories when working in shared environments or with limited local storage.
Closes #7457.
|
{
"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/7532/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7532/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7532.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7532",
"merged_at": "2025-05-06T15:54:38Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7532.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7532"
}
| 2025-04-22T00:23:13Z
| 2025-05-06T15:54:38Z
| 14 days, 15:31:25
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7529
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7529/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7529/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7529/events
|
https://github.com/huggingface/datasets/issues/7529
| 3,007,118,969
|
I_kwDODunzps6zPP55
| 7,529
|
audio folder builder cannot detect custom split name
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37548991?v=4",
"events_url": "https://api.github.com/users/phineas-pta/events{/privacy}",
"followers_url": "https://api.github.com/users/phineas-pta/followers",
"following_url": "https://api.github.com/users/phineas-pta/following{/other_user}",
"gists_url": "https://api.github.com/users/phineas-pta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phineas-pta",
"id": 37548991,
"login": "phineas-pta",
"node_id": "MDQ6VXNlcjM3NTQ4OTkx",
"organizations_url": "https://api.github.com/users/phineas-pta/orgs",
"received_events_url": "https://api.github.com/users/phineas-pta/received_events",
"repos_url": "https://api.github.com/users/phineas-pta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phineas-pta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phineas-pta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phineas-pta",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[] | 2025-04-20T16:53:21Z
| 2025-04-20T16:53:21Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
when using audio folder builder (`load_dataset("audiofolder", data_dir="/path/to/folder")`), it cannot detect custom split name other than train/validation/test
### Steps to reproduce the bug
i have the following folder structure
```
my_dataset/
├── train/
│ ├── lorem.wav
│ ├── …
│ └── metadata.csv
├── test/
│ ├── ipsum.wav
│ ├── …
│ └── metadata.csv
├── validation/
│ ├── dolor.wav
│ ├── …
│ └── metadata.csv
└── custom/
├── sit.wav
├── …
└── metadata.csv
```
using `ds = load_dataset("audiofolder", data_dir="/path/to/my_dataset")`
### Expected behavior
i got `ds` with only 3 splits train/validation/test, whenever i rename train/validation/test folder it also disappear if i re-create `ds`
### Environment info
- `datasets` version: 3.5.0
- Platform: Windows-11-10.0.26100-SP0
- Python version: 3.12.8
- `huggingface_hub` version: 0.30.2
- PyArrow version: 18.1.0
- Pandas version: 2.2.3
- `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/7529/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7529/timeline
| null | null | null | null | 2025-04-20T16:53:21Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7528
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7528/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7528/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7528/events
|
https://github.com/huggingface/datasets/issues/7528
| 3,006,433,485
|
I_kwDODunzps6zMojN
| 7,528
|
Data Studio Error: Convert JSONL incorrectly
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/144962041?v=4",
"events_url": "https://api.github.com/users/zxccade/events{/privacy}",
"followers_url": "https://api.github.com/users/zxccade/followers",
"following_url": "https://api.github.com/users/zxccade/following{/other_user}",
"gists_url": "https://api.github.com/users/zxccade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zxccade",
"id": 144962041,
"login": "zxccade",
"node_id": "U_kgDOCKPx-Q",
"organizations_url": "https://api.github.com/users/zxccade/orgs",
"received_events_url": "https://api.github.com/users/zxccade/received_events",
"repos_url": "https://api.github.com/users/zxccade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zxccade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zxccade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zxccade",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! Your JSONL file is incompatible with Arrow / Parquet. Indeed in Arrow / Parquet every dict should have the same keys, while in your dataset the bboxes have varying keys.\n\nThis causes the Data Studio to treat the bboxes as if each row was missing the keys from other rows.\n\nFeel free to take a look at the docs on object segmentation to see how to format a dataset with bboxes: https://huggingface.co/docs/datasets/object_detection",
"created_at": "2025-05-06T13:18:37Z",
"html_url": "https://github.com/huggingface/datasets/issues/7528#issuecomment-2854555225",
"id": 2854555225,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7528",
"node_id": "IC_kwDODunzps6qJQ5Z",
"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/2854555225/reactions"
},
"updated_at": "2025-05-06T13:18:37Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854555225",
"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-04-19T13:21:44Z
| 2025-05-06T13:18:38Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hi there,
I uploaded a dataset here https://huggingface.co/datasets/V-STaR-Bench/V-STaR, but I found that Data Studio incorrectly convert the "bboxes" value for the whole dataset. Therefore, anyone who downloaded the dataset via the API would get the wrong "bboxes" value in the data file.
Could you help me address the issue?
Many thanks,
### Steps to reproduce the bug
The JSONL file of [V_STaR_test_release.jsonl](https://huggingface.co/datasets/V-STaR-Bench/V-STaR/blob/main/V_STaR_test_release.jsonl) has the correct values of every "bboxes" for each sample.
But in the Data Studio, we can see that the values of "bboxes" have changed, and load the dataset via API will also get the wrong values.
### Expected behavior
Fix the bug to correctly download my dataset.
### Environment info
- `datasets` version: 2.16.1
- Platform: Linux-5.14.0-427.22.1.el9_4.x86_64-x86_64-with-glibc2.34
- Python version: 3.10.16
- `huggingface_hub` version: 0.29.3
- PyArrow version: 19.0.0
- Pandas version: 2.2.3
- `fsspec` version: 2023.10.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/7528/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7528/timeline
| null | null | null | null | 2025-04-19T13:21:44Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7527
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7527/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7527/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7527/events
|
https://github.com/huggingface/datasets/issues/7527
| 3,005,242,422
|
I_kwDODunzps6zIFw2
| 7,527
|
Auto-merge option for `convert-to-parquet`
|
{
"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"
}
|
[
{
"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"
}
] |
closed
| false
|
{
"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"
}
|
[
{
"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"
}
] | null |
[
{
"author_association": "NONE",
"body": "Alternatively, there could be an option to switch from submitting PRs to just committing changes directly to `main`.",
"created_at": "2025-04-18T16:04:47Z",
"html_url": "https://github.com/huggingface/datasets/issues/7527#issuecomment-2815703918",
"id": 2815703918,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7527",
"node_id": "IC_kwDODunzps6n1Dtu",
"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/2815703918/reactions"
},
"updated_at": "2025-04-18T16:04:58Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2815703918",
"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": "MEMBER",
"body": "Why not, I'd be in favor of `--merge-pull-request` to call `HfApi().merge_pull_request()` at the end of the conversion :) feel free to open a PR if you'd like",
"created_at": "2025-05-06T13:27:19Z",
"html_url": "https://github.com/huggingface/datasets/issues/7527#issuecomment-2854583864",
"id": 2854583864,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7527",
"node_id": "IC_kwDODunzps6qJX44",
"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/2854583864/reactions"
},
"updated_at": "2025-05-06T13:27:45Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2854583864",
"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": "#self-assign",
"created_at": "2025-05-06T17:56:59Z",
"html_url": "https://github.com/huggingface/datasets/issues/7527#issuecomment-2855450629",
"id": 2855450629,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7527",
"node_id": "IC_kwDODunzps6qMrgF",
"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/2855450629/reactions"
},
"updated_at": "2025-05-06T17:56:59Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2855450629",
"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": "Closing since convert to parquet has been removed... https://github.com/huggingface/datasets/pull/7592#issuecomment-3073053138",
"created_at": "2025-07-18T19:09:03Z",
"html_url": "https://github.com/huggingface/datasets/issues/7527#issuecomment-3090443314",
"id": 3090443314,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7527",
"node_id": "IC_kwDODunzps64NGwy",
"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/3090443314/reactions"
},
"updated_at": "2025-07-18T19:09:03Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3090443314",
"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-04-18T16:03:22Z
| 2025-07-18T19:09:03Z
| 2025-07-18T19:09:03Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
Add a command-line option, e.g. `--auto-merge-pull-request` that enables automatic merging of the commits created by the `convert-to-parquet` tool.
### Motivation
Large datasets may result in dozens of PRs due to the splitting mechanism. Each of these has to be manually accepted via the website.
### Your contribution
Happy to look into submitting a PR if this is of interest to maintainers.
|
{
"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"
}
|
{
"+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/7527/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7527/timeline
| null |
completed
| null | null | 2025-04-18T16:03:22Z
| 2025-07-18T19:09:03Z
| 91 days, 3:05:41
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7526
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7526/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7526/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7526/events
|
https://github.com/huggingface/datasets/issues/7526
| 3,005,107,536
|
I_kwDODunzps6zHk1Q
| 7,526
|
Faster downloads/uploads with Xet storage
|
{
"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 |
[] | 2025-04-18T14:46:42Z
| 2025-05-12T12:09:09Z
| null |
MEMBER
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|

## Xet is out !
Over the past few weeks, Hugging Face’s [Xet Team](https://huggingface.co/xet-team) took a major step forward by [migrating the first Model and Dataset repositories off LFS and to Xet storage](https://huggingface.co/posts/jsulz/911431940353906).
See more information on the HF blog: https://huggingface.co/blog/xet-on-the-hub
You can already enable Xet on Hugging Face account to benefit from faster downloads and uploads :)
We finalized an official integration with the `huggingface_hub` library that means you get the benefits of Xet without any significant changes to your current workflow.
## Previous versions of `datasets`
For older versions of `datasets` you might see this warning in `push_to_hub()`:
```
Uploading files as bytes or binary IO objects is not supported by Xet Storage.
```
This means the `huggingface_hub` + Xet integration isn't enabled for your version of `datasets`.
You can fix this by updating to `datasets>=3.6.0` and `huggingface_hub>=0.31.0`
```
pip install -U datasets huggingface_hub
```
## The future
Stay tuned for more Xet optimizations, especially on [Xet-optimized Parquet](https://huggingface.co/blog/improve_parquet_dedupe)
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 5,
"total_count": 5,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7526/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7526/timeline
| null | null | null | null | 2025-04-18T14:46:42Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7525
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7525/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7525/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7525/events
|
https://github.com/huggingface/datasets/pull/7525
| 3,003,032,248
|
PR_kwDODunzps6TBOH1
| 7,525
|
Fix indexing in split commit messages
|
{
"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"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! this is expected and is coherent with other naming conventions in `datasets` such as parquet shards naming",
"created_at": "2025-04-28T13:50:57Z",
"html_url": "https://github.com/huggingface/datasets/pull/7525#issuecomment-2835318434",
"id": 2835318434,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7525",
"node_id": "IC_kwDODunzps6o_4ai",
"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/2835318434/reactions"
},
"updated_at": "2025-04-28T13:50:57Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835318434",
"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-04-17T17:06:26Z
| 2025-04-28T14:26:27Z
| 2025-04-28T14:26:27Z
|
NONE
| null | null | null |
When a large commit is split up, it seems the commit index in the message is zero-based while the total number is one-based. I came across this running `convert-to-parquet` and was wondering why there was no `6-of-6` commit. This PR fixes that by adding one to the commit index, so both are one-based.
Current behavior:
<img width="463" alt="Screenshot 2025-04-17 at 1 00 17 PM" src="https://github.com/user-attachments/assets/7f3d389e-cb92-405d-a3c2-f2b1cdf0cb79" />
|
{
"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"
}
|
{
"+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/7525/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7525/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7525.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7525",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7525.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7525"
}
| 2025-04-17T17:06:26Z
| 2025-04-28T14:26:27Z
| 10 days, 21:20:01
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7524
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7524/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7524/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7524/events
|
https://github.com/huggingface/datasets/pull/7524
| 3,002,067,826
|
PR_kwDODunzps6S99KB
| 7,524
|
correct use with polars example
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43832476?v=4",
"events_url": "https://api.github.com/users/SiQube/events{/privacy}",
"followers_url": "https://api.github.com/users/SiQube/followers",
"following_url": "https://api.github.com/users/SiQube/following{/other_user}",
"gists_url": "https://api.github.com/users/SiQube/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SiQube",
"id": 43832476,
"login": "SiQube",
"node_id": "MDQ6VXNlcjQzODMyNDc2",
"organizations_url": "https://api.github.com/users/SiQube/orgs",
"received_events_url": "https://api.github.com/users/SiQube/received_events",
"repos_url": "https://api.github.com/users/SiQube/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SiQube/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiQube/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SiQube",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-04-17T10:19:19Z
| 2025-04-28T13:48:34Z
| 2025-04-28T13:48:33Z
|
CONTRIBUTOR
| 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/7524/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7524/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7524.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7524",
"merged_at": "2025-04-28T13:48:33Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7524.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7524"
}
| 2025-04-17T10:19:19Z
| 2025-04-28T13:48:33Z
| 11 days, 3:29:14
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7523
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7523/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7523/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7523/events
|
https://github.com/huggingface/datasets/pull/7523
| 2,999,616,692
|
PR_kwDODunzps6S1r8w
| 7,523
|
mention av in video 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_7523). 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-04-16T13:13:44Z",
"html_url": "https://github.com/huggingface/datasets/pull/7523#issuecomment-2809553326",
"id": 2809553326,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7523",
"node_id": "IC_kwDODunzps6ndmGu",
"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/2809553326/reactions"
},
"updated_at": "2025-04-16T13:13:44Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2809553326",
"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-04-16T13:11:12Z
| 2025-04-16T13:13:45Z
| 2025-04-16T13:11:42Z
|
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": 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/7523/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7523/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7523.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7523",
"merged_at": "2025-04-16T13:11:42Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7523.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7523"
}
| 2025-04-16T13:11:12Z
| 2025-04-16T13:11:42Z
| 0:00:30
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7521
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7521/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7521/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7521/events
|
https://github.com/huggingface/datasets/pull/7521
| 2,997,666,366
|
PR_kwDODunzps6SvEZp
| 7,521
|
fix: Image Feature in Datasets Library Fails to Handle bytearray Objects from Spark DataFrames (#7517)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "CONTRIBUTOR",
"body": "@lhoestq let me know if you prefer to change the spark iterator so it outputs `bytes`",
"created_at": "2025-04-16T06:57:21Z",
"html_url": "https://github.com/huggingface/datasets/pull/7521#issuecomment-2808580329",
"id": 2808580329,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7521",
"node_id": "IC_kwDODunzps6nZ4jp",
"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/2808580329/reactions"
},
"updated_at": "2025-04-16T06:57:21Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2808580329",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7521). 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-05-07T14:13:01Z",
"html_url": "https://github.com/huggingface/datasets/pull/7521#issuecomment-2858758474",
"id": 2858758474,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7521",
"node_id": "IC_kwDODunzps6qZTFK",
"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/2858758474/reactions"
},
"updated_at": "2025-05-07T14:13:01Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2858758474",
"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-04-15T21:23:58Z
| 2025-05-07T14:17:29Z
| 2025-05-07T14:17:29Z
|
CONTRIBUTOR
| null | null | null |
## Task
Support bytes-like objects (bytes and bytearray) in Features classes
### Description
The `Features` classes only accept `bytes` objects for binary data, but not `bytearray`. This leads to errors when using `IterableDataset.from_spark()` with Spark DataFrames as they contain `bytearray` objects, even though both `bytes` and `bytearray` are valid [*bytes-like objects* in Python](https://docs.python.org/3/glossary.html#term-bytes-like-object).
### Changes
- Updated `Features` classes to accept both `bytes` and `bytearray` types for binary data fields.
### Reasoning
- `bytes` and `bytearray` serve the same purpose for binary data, with the only difference being mutability.
- Modifying the Spark iterator to convert `bytearray` to `bytes` would be a workaround, not a true fix. I think the correct solution is to accept all bytes-like objects as input.
- This approach is more robust and future-proof since Python 3.12+ provides a [standard way to check for buffer protocol](https://docs.python.org/3/c-api/buffer.html#bufferobjects).
### Testing
- Added tests to cover `bytearray` inputs for image features.
### Related Issues
- Fixes: #7517
|
{
"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/7521/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7521/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7521.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7521",
"merged_at": "2025-05-07T14:17:29Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7521.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7521"
}
| 2025-04-15T21:23:58Z
| 2025-05-07T14:17:29Z
| 21 days, 16:53:31
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7522
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7522/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7522/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7522/events
|
https://github.com/huggingface/datasets/pull/7522
| 2,998,169,017
|
PR_kwDODunzps6SwwXW
| 7,522
|
Preserve formatting in concatenated IterableDataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5140987?v=4",
"events_url": "https://api.github.com/users/francescorubbo/events{/privacy}",
"followers_url": "https://api.github.com/users/francescorubbo/followers",
"following_url": "https://api.github.com/users/francescorubbo/following{/other_user}",
"gists_url": "https://api.github.com/users/francescorubbo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/francescorubbo",
"id": 5140987,
"login": "francescorubbo",
"node_id": "MDQ6VXNlcjUxNDA5ODc=",
"organizations_url": "https://api.github.com/users/francescorubbo/orgs",
"received_events_url": "https://api.github.com/users/francescorubbo/received_events",
"repos_url": "https://api.github.com/users/francescorubbo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/francescorubbo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/francescorubbo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/francescorubbo",
"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_7522). 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-04-28T13:41:50Z",
"html_url": "https://github.com/huggingface/datasets/pull/7522#issuecomment-2835289818",
"id": 2835289818,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7522",
"node_id": "IC_kwDODunzps6o_xba",
"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/2835289818/reactions"
},
"updated_at": "2025-04-28T13:41:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835289818",
"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-04-16T02:37:33Z
| 2025-05-19T15:07:38Z
| 2025-05-19T15:07:37Z
|
CONTRIBUTOR
| null | null | null |
Fixes #7515
|
{
"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/7522/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7522/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7522.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7522",
"merged_at": "2025-05-19T15:07:37Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7522.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7522"
}
| 2025-04-16T02:37:33Z
| 2025-05-19T15:07:37Z
| 33 days, 12:30:04
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7520
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7520/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7520/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7520/events
|
https://github.com/huggingface/datasets/issues/7520
| 2,997,422,044
|
I_kwDODunzps6yqQfc
| 7,520
|
Update items in the dataset without `map`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/122402293?v=4",
"events_url": "https://api.github.com/users/mashdragon/events{/privacy}",
"followers_url": "https://api.github.com/users/mashdragon/followers",
"following_url": "https://api.github.com/users/mashdragon/following{/other_user}",
"gists_url": "https://api.github.com/users/mashdragon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mashdragon",
"id": 122402293,
"login": "mashdragon",
"node_id": "U_kgDOB0u19Q",
"organizations_url": "https://api.github.com/users/mashdragon/orgs",
"received_events_url": "https://api.github.com/users/mashdragon/received_events",
"repos_url": "https://api.github.com/users/mashdragon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mashdragon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mashdragon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mashdragon",
"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": "Hello!\n\nHave you looked at `Dataset.shard`? [Docs](https://huggingface.co/docs/datasets/en/process#shard)\n\nUsing this method you could break your dataset in N shards. Apply `map` on each shard and concatenate them back.",
"created_at": "2025-04-19T18:47:43Z",
"html_url": "https://github.com/huggingface/datasets/issues/7520#issuecomment-2816822961",
"id": 2816822961,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7520",
"node_id": "IC_kwDODunzps6n5U6x",
"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/2816822961/reactions"
},
"updated_at": "2025-04-19T18:47:43Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2816822961",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/8976546?v=4",
"events_url": "https://api.github.com/users/Dref360/events{/privacy}",
"followers_url": "https://api.github.com/users/Dref360/followers",
"following_url": "https://api.github.com/users/Dref360/following{/other_user}",
"gists_url": "https://api.github.com/users/Dref360/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dref360",
"id": 8976546,
"login": "Dref360",
"node_id": "MDQ6VXNlcjg5NzY1NDY=",
"organizations_url": "https://api.github.com/users/Dref360/orgs",
"received_events_url": "https://api.github.com/users/Dref360/received_events",
"repos_url": "https://api.github.com/users/Dref360/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dref360/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dref360/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dref360",
"user_view_type": "public"
}
}
] | 2025-04-15T19:39:01Z
| 2025-04-19T18:47:46Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Feature request
I would like to be able to update items in my dataset without affecting all rows. At least if there was a range option, I would be able to process those items, save the dataset, and then continue.
If I am supposed to split the dataset first, that is not clear, since the docs suggest that any of those functions returns a new object, so I don't think I can do that.
### Motivation
I am applying an extremely time-consuming function to each item in my `Dataset`. Unfortunately, datasets only supports updating values via `map`, so if my computer dies in the middle of this long-running process, I lose all progress. This is far from ideal. I would like to use `datasets` throughout this processing, but this limitation is now forcing me to write my own dataset format just to do this intermediary operation.
It would be less intuitive but I suppose I could split and then concatenate the dataset before saving? But this feels very inefficient.
### Your contribution
I can test the feature.
| 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/7520/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7520/timeline
| null | null | null | null | 2025-04-15T19:39:01Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7519
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7519/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7519/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7519/events
|
https://github.com/huggingface/datasets/pull/7519
| 2,996,458,961
|
PR_kwDODunzps6Sq76Z
| 7,519
|
pdf docs fixes
|
{
"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_7519). 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-04-15T13:38:30Z",
"html_url": "https://github.com/huggingface/datasets/pull/7519#issuecomment-2805091962",
"id": 2805091962,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7519",
"node_id": "IC_kwDODunzps6nMk56",
"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/2805091962/reactions"
},
"updated_at": "2025-04-15T13:38:30Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2805091962",
"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-04-15T13:35:56Z
| 2025-04-15T13:38:31Z
| 2025-04-15T13:36:03Z
|
MEMBER
| null | null | null |
close https://github.com/huggingface/datasets/issues/7494
|
{
"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/7519/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7519/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7519.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7519",
"merged_at": "2025-04-15T13:36:03Z",
"patch_url": "https://github.com/huggingface/datasets/pull/7519.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7519"
}
| 2025-04-15T13:35:56Z
| 2025-04-15T13:36:03Z
| 0:00:07
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7518
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7518/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7518/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7518/events
|
https://github.com/huggingface/datasets/issues/7518
| 2,996,141,825
|
I_kwDODunzps6ylX8B
| 7,518
|
num_proc parallelization works only for first ~10s.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33901783?v=4",
"events_url": "https://api.github.com/users/pshishodiaa/events{/privacy}",
"followers_url": "https://api.github.com/users/pshishodiaa/followers",
"following_url": "https://api.github.com/users/pshishodiaa/following{/other_user}",
"gists_url": "https://api.github.com/users/pshishodiaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pshishodiaa",
"id": 33901783,
"login": "pshishodiaa",
"node_id": "MDQ6VXNlcjMzOTAxNzgz",
"organizations_url": "https://api.github.com/users/pshishodiaa/orgs",
"received_events_url": "https://api.github.com/users/pshishodiaa/received_events",
"repos_url": "https://api.github.com/users/pshishodiaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pshishodiaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pshishodiaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pshishodiaa",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi, can you check if the processes are still alive ? It's a bit weird because `datasets` does check if processes crash and return an error in that case",
"created_at": "2025-04-15T12:47:28Z",
"html_url": "https://github.com/huggingface/datasets/issues/7518#issuecomment-2804939077",
"id": 2804939077,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7518",
"node_id": "IC_kwDODunzps6nL_lF",
"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/2804939077/reactions"
},
"updated_at": "2025-04-15T12:47:28Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804939077",
"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 for reverting quickly. I digged a bit, and realized my disk's IOPS is also limited - which is causing this. will check further and report if it's an issue of hf datasets' side or mine. ",
"created_at": "2025-04-15T13:11:55Z",
"html_url": "https://github.com/huggingface/datasets/issues/7518#issuecomment-2805012922",
"id": 2805012922,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7518",
"node_id": "IC_kwDODunzps6nMRm6",
"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/2805012922/reactions"
},
"updated_at": "2025-04-15T13:12:12Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2805012922",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/33901783?v=4",
"events_url": "https://api.github.com/users/pshishodiaa/events{/privacy}",
"followers_url": "https://api.github.com/users/pshishodiaa/followers",
"following_url": "https://api.github.com/users/pshishodiaa/following{/other_user}",
"gists_url": "https://api.github.com/users/pshishodiaa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pshishodiaa",
"id": 33901783,
"login": "pshishodiaa",
"node_id": "MDQ6VXNlcjMzOTAxNzgz",
"organizations_url": "https://api.github.com/users/pshishodiaa/orgs",
"received_events_url": "https://api.github.com/users/pshishodiaa/received_events",
"repos_url": "https://api.github.com/users/pshishodiaa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pshishodiaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pshishodiaa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pshishodiaa",
"user_view_type": "public"
}
}
] | 2025-04-15T11:44:03Z
| 2025-04-15T13:12:13Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When I try to load an already downloaded dataset with num_proc=64, the speed is very high for the first 10-20 seconds acheiving 30-40K samples / s, and 100% utilization for all cores but it soon drops to <= 1000 with almost 0% utilization for most cores.
### Steps to reproduce the bug
```
// download dataset with cli
!huggingface-cli download --repo-type dataset timm/imagenet-1k-wds --max-workers 32
from datasets import load_dataset
ds = load_dataset("timm/imagenet-1k-wds", num_proc=64)
```
### Expected behavior
100% core utilization throughout.
### Environment info
Azure A100-80GB, 16 cores VM

| 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/7518/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7518/timeline
| null | null | null | null | 2025-04-15T11:44:03Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7517
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7517/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7517/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7517/events
|
https://github.com/huggingface/datasets/issues/7517
| 2,996,106,077
|
I_kwDODunzps6ylPNd
| 7,517
|
Image Feature in Datasets Library Fails to Handle bytearray Objects from Spark DataFrames
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
|
[] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! The `Image()` type accepts either\n- a `bytes` object containing the image bytes\n- a `str` object containing the image path\n- a `PIL.Image` object\n\nbut it doesn't support `bytearray`, maybe you can convert to `bytes` beforehand ?",
"created_at": "2025-04-15T12:49:47Z",
"html_url": "https://github.com/huggingface/datasets/issues/7517#issuecomment-2804945078",
"id": 2804945078,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7517",
"node_id": "IC_kwDODunzps6nMBC2",
"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/2804945078/reactions"
},
"updated_at": "2025-04-15T12:49:47Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804945078",
"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, \nconverting to bytes is certainly possible and would work around the error. However, the core issue is that `Dataset` and `IterableDataset` behave differently with the features.\n\nI’d be happy to work on a fix for this issue.",
"created_at": "2025-04-15T14:10:51Z",
"html_url": "https://github.com/huggingface/datasets/issues/7517#issuecomment-2805280000",
"id": 2805280000,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7517",
"node_id": "IC_kwDODunzps6nNS0A",
"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/2805280000/reactions"
},
"updated_at": "2025-04-15T14:10:51Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2805280000",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "I see, that's an issue indeed. Feel free to ping me if I can help with reviews or any guidance\n\nIf it can help, the code that takes a Spark DataFrame and iterates on the rows for `IterableDataset` is here: \n\nhttps://github.com/huggingface/datasets/blob/6a96bf313085d7538a999b929a550e14e1d406c9/src/datasets/packaged_modules/spark/spark.py#L49-L53",
"created_at": "2025-04-15T15:46:44Z",
"html_url": "https://github.com/huggingface/datasets/issues/7517#issuecomment-2806455626",
"id": 2806455626,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7517",
"node_id": "IC_kwDODunzps6nRx1K",
"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/2806455626/reactions"
},
"updated_at": "2025-04-15T15:46:44Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806455626",
"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": "#self-assign",
"created_at": "2025-04-15T15:50:54Z",
"html_url": "https://github.com/huggingface/datasets/issues/7517#issuecomment-2806504239",
"id": 2806504239,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7517",
"node_id": "IC_kwDODunzps6nR9sv",
"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/2806504239/reactions"
},
"updated_at": "2025-04-15T15:50:54Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806504239",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/73196164?v=4",
"events_url": "https://api.github.com/users/giraffacarp/events{/privacy}",
"followers_url": "https://api.github.com/users/giraffacarp/followers",
"following_url": "https://api.github.com/users/giraffacarp/following{/other_user}",
"gists_url": "https://api.github.com/users/giraffacarp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giraffacarp",
"id": 73196164,
"login": "giraffacarp",
"node_id": "MDQ6VXNlcjczMTk2MTY0",
"organizations_url": "https://api.github.com/users/giraffacarp/orgs",
"received_events_url": "https://api.github.com/users/giraffacarp/received_events",
"repos_url": "https://api.github.com/users/giraffacarp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giraffacarp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giraffacarp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giraffacarp",
"user_view_type": "public"
}
}
] | 2025-04-15T11:29:17Z
| 2025-05-07T14:17:30Z
| 2025-05-07T14:17:30Z
|
CONTRIBUTOR
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When using `IterableDataset.from_spark()` with a Spark DataFrame containing image data, the `Image` feature class fails to properly process this data type, causing an `AttributeError: 'bytearray' object has no attribute 'get'`
### Steps to reproduce the bug
1. Create a Spark DataFrame with a column containing image data as bytearray objects
2. Define a Feature schema with an Image feature
3. Create an IterableDataset using `IterableDataset.from_spark()`
4. Attempt to iterate through the dataset
```
from pyspark.sql import SparkSession
from datasets import Dataset, IterableDataset, Features, Image, Value
# initialize spark
spark = SparkSession.builder.appName("MinimalRepro").getOrCreate()
# create spark dataframe
data = [(0, open("image.png", "rb").read())]
df = spark.createDataFrame(data, "idx: int, image: binary")
# convert to dataset
features = Features({"idx": Value("int64"), "image": Image()})
ds = Dataset.from_spark(df, features=features)
ds_iter = IterableDataset.from_spark(df, features=features)
# iterate
print(next(iter(ds)))
print(next(iter(ds_iter)))
```
### Expected behavior
The features should work on `IterableDataset` the same way they work on `Dataset`
### Environment info
- `datasets` version: 3.5.0
- Platform: macOS-15.3.2-arm64-arm-64bit
- Python version: 3.12.7
- `huggingface_hub` version: 0.30.2
- PyArrow version: 18.1.0
- Pandas version: 2.2.3
- `fsspec` version: 2024.12.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/7517/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7517/timeline
| null |
completed
| null | null | 2025-04-15T11:29:17Z
| 2025-05-07T14:17:30Z
| 22 days, 2:48:13
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7516
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7516/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7516/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7516/events
|
https://github.com/huggingface/datasets/issues/7516
| 2,995,780,283
|
I_kwDODunzps6yj_q7
| 7,516
|
unsloth/DeepSeek-R1-Distill-Qwen-32B server error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/164353862?v=4",
"events_url": "https://api.github.com/users/Editor-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Editor-1/followers",
"following_url": "https://api.github.com/users/Editor-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Editor-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Editor-1",
"id": 164353862,
"login": "Editor-1",
"node_id": "U_kgDOCcvXRg",
"organizations_url": "https://api.github.com/users/Editor-1/orgs",
"received_events_url": "https://api.github.com/users/Editor-1/received_events",
"repos_url": "https://api.github.com/users/Editor-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Editor-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Editor-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Editor-1",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-04-15T09:26:53Z
| 2025-04-15T09:57:26Z
| 2025-04-15T09:57:26Z
|
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
hfhubhttperror: 500 server error: internal server error for url: https://huggingface.co/api/models/unsloth/deepseek-r1-distill-qwen-32b-bnb-4bit/commits/main (request id: root=1-67fe23fa-3a2150eb444c2a823c388579;de3aed68-c397-4da5-94d4-6565efd3b919) internal error - we're working hard to fix this as soon as possible!
### Steps to reproduce the bug
unsloth/DeepSeek-R1-Distill-Qwen-32B server error
### Expected behavior
Network repair
### Environment info
The web side is also unavailable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/164353862?v=4",
"events_url": "https://api.github.com/users/Editor-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Editor-1/followers",
"following_url": "https://api.github.com/users/Editor-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Editor-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Editor-1",
"id": 164353862,
"login": "Editor-1",
"node_id": "U_kgDOCcvXRg",
"organizations_url": "https://api.github.com/users/Editor-1/orgs",
"received_events_url": "https://api.github.com/users/Editor-1/received_events",
"repos_url": "https://api.github.com/users/Editor-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Editor-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Editor-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Editor-1",
"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/7516/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7516/timeline
| null |
completed
| null | null | 2025-04-15T09:26:53Z
| 2025-04-15T09:57:26Z
| 0:30:33
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7515
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7515/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7515/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7515/events
|
https://github.com/huggingface/datasets/issues/7515
| 2,995,082,418
|
I_kwDODunzps6yhVSy
| 7,515
|
`concatenate_datasets` does not preserve Pytorch format for IterableDataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5140987?v=4",
"events_url": "https://api.github.com/users/francescorubbo/events{/privacy}",
"followers_url": "https://api.github.com/users/francescorubbo/followers",
"following_url": "https://api.github.com/users/francescorubbo/following{/other_user}",
"gists_url": "https://api.github.com/users/francescorubbo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/francescorubbo",
"id": 5140987,
"login": "francescorubbo",
"node_id": "MDQ6VXNlcjUxNDA5ODc=",
"organizations_url": "https://api.github.com/users/francescorubbo/orgs",
"received_events_url": "https://api.github.com/users/francescorubbo/received_events",
"repos_url": "https://api.github.com/users/francescorubbo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/francescorubbo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/francescorubbo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/francescorubbo",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! Oh indeed it would be cool to return the same format in that case. Would you like to submit a PR ? The function that does the concatenation is here:\n\nhttps://github.com/huggingface/datasets/blob/90e5bf8a8599b625d6103ee5ac83b98269991141/src/datasets/iterable_dataset.py#L3375-L3380",
"created_at": "2025-04-15T12:45:25Z",
"html_url": "https://github.com/huggingface/datasets/issues/7515#issuecomment-2804933786",
"id": 2804933786,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7515",
"node_id": "IC_kwDODunzps6nL-Sa",
"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/2804933786/reactions"
},
"updated_at": "2025-04-15T12:45:25Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804933786",
"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": "Thank you for the pointer, @lhoestq ! See #7522 ",
"created_at": "2025-04-16T02:39:14Z",
"html_url": "https://github.com/huggingface/datasets/issues/7515#issuecomment-2808068875",
"id": 2808068875,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7515",
"node_id": "IC_kwDODunzps6nX7sL",
"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/2808068875/reactions"
},
"updated_at": "2025-04-16T02:39:14Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2808068875",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/5140987?v=4",
"events_url": "https://api.github.com/users/francescorubbo/events{/privacy}",
"followers_url": "https://api.github.com/users/francescorubbo/followers",
"following_url": "https://api.github.com/users/francescorubbo/following{/other_user}",
"gists_url": "https://api.github.com/users/francescorubbo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/francescorubbo",
"id": 5140987,
"login": "francescorubbo",
"node_id": "MDQ6VXNlcjUxNDA5ODc=",
"organizations_url": "https://api.github.com/users/francescorubbo/orgs",
"received_events_url": "https://api.github.com/users/francescorubbo/received_events",
"repos_url": "https://api.github.com/users/francescorubbo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/francescorubbo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/francescorubbo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/francescorubbo",
"user_view_type": "public"
}
}
] | 2025-04-15T04:36:34Z
| 2025-05-19T15:07:38Z
| 2025-05-19T15:07:38Z
|
CONTRIBUTOR
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
When concatenating datasets with `concatenate_datasets`, I would expect the resulting combined dataset to be in the same format as the inputs (assuming it's consistent). This is indeed the behavior when combining `Dataset`, but not when combining `IterableDataset`. Specifically, when applying `concatenate_datasets` to a list of `IterableDataset` in Pytorch format (i.e. using `.with_format(Pytorch)`), the output `IterableDataset` is not in Pytorch format.
### Steps to reproduce the bug
```
import datasets
ds = datasets.Dataset.from_dict({"a": [1,2,3]})
iterable_ds = ds.to_iterable_dataset()
datasets.concatenate_datasets([ds.with_format("torch")]) # <- this preserves Pytorch format
datasets.concatenate_datasets([iterable_ds.with_format("torch")]) # <- this does NOT preserves Pytorch format
```
### Expected behavior
Pytorch format should be preserved when combining IterableDataset in Pytorch format.
### Environment info
datasets==3.5.0, Python 3.11.11, torch==2.2.2
|
{
"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/7515/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7515/timeline
| null |
completed
| null | null | 2025-04-15T04:36:34Z
| 2025-05-19T15:07:38Z
| 34 days, 10:31:04
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7514
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7514/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7514/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7514/events
|
https://github.com/huggingface/datasets/pull/7514
| 2,994,714,923
|
PR_kwDODunzps6Sk7Et
| 7,514
|
Do not hash `generator` in `BuilderConfig.create_config_id`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-04-15T01:26:43Z
| 2025-04-23T11:55:55Z
| 2025-04-15T16:27:51Z
|
NONE
| null | null | null |
`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including generator function itself. `BuilderConfig.create_config_id` function tries to hash all the args, and hashing a `generator` can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.
Maybe we should pop generator from `config_kwargs_to_add_to_suffix` before hashing to avoid it.
There is a more detailed description of the problem this PR solves in #7513
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"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/7514/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7514/timeline
| null | null | 0
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7514.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7514",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7514.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7514"
}
| 2025-04-15T01:26:43Z
| 2025-04-15T16:27:51Z
| 15:01:08
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7513
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7513/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7513/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7513/events
|
https://github.com/huggingface/datasets/issues/7513
| 2,994,678,437
|
I_kwDODunzps6yfyql
| 7,513
|
MemoryError while creating dataset from generator
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "Upd: created a PR that can probably solve the problem: #7514",
"created_at": "2025-04-15T01:27:47Z",
"html_url": "https://github.com/huggingface/datasets/issues/7513#issuecomment-2803484689",
"id": 2803484689,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7513",
"node_id": "IC_kwDODunzps6nGcgR",
"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/2803484689/reactions"
},
"updated_at": "2025-04-15T01:27:47Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2803484689",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Hi ! We need to take the generator into account for the cache. The generator is hashed to make the dataset fingerprint used by the cache. This way you can reload the Dataset from the cache without regenerating in subsequent `from_generator` calls.\n\nMaybe instead of removing generator from the hasher input, we can let users pass their own Dataset fingerprint to `from_generator`, and if it's specified we don't need to hash anything",
"created_at": "2025-04-15T12:24:48Z",
"html_url": "https://github.com/huggingface/datasets/issues/7513#issuecomment-2804877072",
"id": 2804877072,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7513",
"node_id": "IC_kwDODunzps6nLwcQ",
"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/2804877072/reactions"
},
"updated_at": "2025-04-15T12:24:48Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804877072",
"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": "Upd: I successfully generated a dataset from my large geospatial data with `generator` excluded from hashing and saved it to disk without running into memory errors. So, it looks like there are no other bottlenecks in dataset generation in my case\n\nMaybe letting users pass their own fingerprint to skip hashing can be a great solution to that issue!",
"created_at": "2025-04-15T17:49:38Z",
"html_url": "https://github.com/huggingface/datasets/issues/7513#issuecomment-2807019073",
"id": 2807019073,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7513",
"node_id": "IC_kwDODunzps6nT7ZB",
"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/2807019073/reactions"
},
"updated_at": "2025-04-15T17:49:38Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2807019073",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "@lhoestq I tried to implement user-defined dataset fingerprint in #7533 . Am I doing it right?",
"created_at": "2025-04-23T19:37:07Z",
"html_url": "https://github.com/huggingface/datasets/issues/7513#issuecomment-2825335799",
"id": 2825335799,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7513",
"node_id": "IC_kwDODunzps6oZzP3",
"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/2825335799/reactions"
},
"updated_at": "2025-04-23T19:37:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2825335799",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43753582?v=4",
"events_url": "https://api.github.com/users/simonreise/events{/privacy}",
"followers_url": "https://api.github.com/users/simonreise/followers",
"following_url": "https://api.github.com/users/simonreise/following{/other_user}",
"gists_url": "https://api.github.com/users/simonreise/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonreise",
"id": 43753582,
"login": "simonreise",
"node_id": "MDQ6VXNlcjQzNzUzNTgy",
"organizations_url": "https://api.github.com/users/simonreise/orgs",
"received_events_url": "https://api.github.com/users/simonreise/received_events",
"repos_url": "https://api.github.com/users/simonreise/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonreise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonreise/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonreise",
"user_view_type": "public"
}
}
] | 2025-04-15T01:02:02Z
| 2025-04-23T19:37:08Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
# TL:DR
`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including `generator` function itself. `BuilderConfig.create_config_id` function tries to hash all the args, which can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.
Maybe we should pop `generator` from `config_kwargs_to_add_to_suffix` before hashing to avoid it.
# Full description
I have a pretty large spatial imagery dataset that is generated from two xbatcher.BatchGenerators via custom `dataset_generator` function that looks like this if simplified:
```
def dataset_generator():
for index in samples:
data_dict = {
"key": index,
"x": x_batches[index].data,
"y": y_batches[index].data,
}
yield data_dict
```
Then I use `datasets.Dataset.from_generator` to generate the dataset itself.
```
# Create dataset
ds = datasets.Dataset.from_generator(
dataset_generator,
features=feat,
cache_dir=(output / ".cache"),
)
```
It works nicely with pretty small data, but if the dataset is huge and barely fits in memory, it crashes with memory error:
<details>
<summary>Full stack trace</summary>
```
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\remote_sensing_processor\segmentation\semantic\tiles.py:248](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/remote_sensing_processor/segmentation/semantic/tiles.py#line=247), in generate_tiles(x, y, output, tile_size, shuffle, split, x_dtype, y_dtype, x_nodata, y_nodata)
245 yield data_dict
247 # Create dataset
--> 248 ds = datasets.Dataset.from_generator(
249 dataset_generator,
250 features=feat,
251 cache_dir=(output / ".cache"),
252 )
254 # Save dataset
255 ds.save_to_disk(output / name)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\arrow_dataset.py:1105](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/arrow_dataset.py#line=1104), in Dataset.from_generator(generator, features, cache_dir, keep_in_memory, gen_kwargs, num_proc, split, **kwargs)
1052 """Create a Dataset from a generator.
1053
1054 Args:
(...) 1101 ```
1102 """
1103 from .io.generator import GeneratorDatasetInputStream
-> 1105 return GeneratorDatasetInputStream(
1106 generator=generator,
1107 features=features,
1108 cache_dir=cache_dir,
1109 keep_in_memory=keep_in_memory,
1110 gen_kwargs=gen_kwargs,
1111 num_proc=num_proc,
1112 split=split,
1113 **kwargs,
1114 ).read()
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\io\generator.py:29](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/io/generator.py#line=28), in GeneratorDatasetInputStream.__init__(self, generator, features, cache_dir, keep_in_memory, streaming, gen_kwargs, num_proc, split, **kwargs)
9 def __init__(
10 self,
11 generator: Callable,
(...) 19 **kwargs,
20 ):
21 super().__init__(
22 features=features,
23 cache_dir=cache_dir,
(...) 27 **kwargs,
28 )
---> 29 self.builder = Generator(
30 cache_dir=cache_dir,
31 features=features,
32 generator=generator,
33 gen_kwargs=gen_kwargs,
34 split=split,
35 **kwargs,
36 )
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\builder.py:343](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/builder.py#line=342), in DatasetBuilder.__init__(self, cache_dir, dataset_name, config_name, hash, base_path, info, features, token, repo_id, data_files, data_dir, storage_options, writer_batch_size, **config_kwargs)
341 config_kwargs["data_dir"] = data_dir
342 self.config_kwargs = config_kwargs
--> 343 self.config, self.config_id = self._create_builder_config(
344 config_name=config_name,
345 custom_features=features,
346 **config_kwargs,
347 )
349 # prepare info: DatasetInfo are a standardized dataclass across all datasets
350 # Prefill datasetinfo
351 if info is None:
352 # TODO FOR PACKAGED MODULES IT IMPORTS DATA FROM src/packaged_modules which doesn't make sense
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\builder.py:604](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/builder.py#line=603), in DatasetBuilder._create_builder_config(self, config_name, custom_features, **config_kwargs)
598 builder_config._resolve_data_files(
599 base_path=self.base_path,
600 download_config=DownloadConfig(token=self.token, storage_options=self.storage_options),
601 )
603 # compute the config id that is going to be used for caching
--> 604 config_id = builder_config.create_config_id(
605 config_kwargs,
606 custom_features=custom_features,
607 )
608 is_custom = (config_id not in self.builder_configs) and config_id != "default"
609 if is_custom:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\builder.py:187](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/builder.py#line=186), in BuilderConfig.create_config_id(self, config_kwargs, custom_features)
185 suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
186 else:
--> 187 suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
189 if custom_features is not None:
190 m = Hasher()
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\fingerprint.py:188](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/fingerprint.py#line=187), in Hasher.hash(cls, value)
186 @classmethod
187 def hash(cls, value: Any) -> str:
--> 188 return cls.hash_bytes(dumps(value))
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:109](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=108), in dumps(obj)
107 """Pickle an object to a string."""
108 file = BytesIO()
--> 109 dump(obj, file)
110 return file.getvalue()
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:103](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=102), in dump(obj, file)
101 def dump(obj, file):
102 """Pickle an object to a file."""
--> 103 Pickler(file, recurse=True).dump(obj)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:420](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=419), in Pickler.dump(self, obj)
418 def dump(self, obj): #NOTE: if settings change, need to update attributes
419 logger.trace_setup(self)
--> 420 StockPickler.dump(self, obj)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:484](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=483), in _Pickler.dump(self, obj)
482 if self.proto >= 4:
483 self.framer.start_framing()
--> 484 self.save(obj)
485 self.write(STOP)
486 self.framer.end_framing()
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1985](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1984), in save_function(pickler, obj)
1982 if state_dict:
1983 state = state, state_dict
-> 1985 _save_with_postproc(pickler, (_create_function, (
1986 obj.__code__, globs, obj.__name__, obj.__defaults__,
1987 closure
1988 ), state), obj=obj, postproc_list=postproc_list)
1990 # Lift closure cell update to earliest function (#458)
1991 if _postproc:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1117](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1116), in _save_with_postproc(pickler, reduction, is_pickler_dill, obj, postproc_list)
1115 continue
1116 else:
-> 1117 pickler.save_reduce(*reduction)
1118 # pop None created by calling preprocessing step off stack
1119 pickler.write(POP)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:690](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=689), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
688 else:
689 save(func)
--> 690 save(args)
691 write(REDUCE)
693 if obj is not None:
694 # If the object is already in the memo, this means it is
695 # recursive. In this case, throw away everything we put on the
696 # stack, and fetch the object back from the memo.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:905](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=904), in _Pickler.save_tuple(self, obj)
903 if n <= 3 and self.proto >= 2:
904 for element in obj:
--> 905 save(element)
906 # Subtle. Same as in the big comment below.
907 if id(obj) in memo:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
[... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:905](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=904), in _Pickler.save_tuple(self, obj)
903 if n <= 3 and self.proto >= 2:
904 for element in obj:
--> 905 save(element)
906 # Subtle. Same as in the big comment below.
907 if id(obj) in memo:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:905](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=904), in _Pickler.save_tuple(self, obj)
903 if n <= 3 and self.proto >= 2:
904 for element in obj:
--> 905 save(element)
906 # Subtle. Same as in the big comment below.
907 if id(obj) in memo:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:690](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=689), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
688 else:
689 save(func)
--> 690 save(args)
691 write(REDUCE)
693 if obj is not None:
694 # If the object is already in the memo, this means it is
695 # recursive. In this case, throw away everything we put on the
696 # stack, and fetch the object back from the memo.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:920](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=919), in _Pickler.save_tuple(self, obj)
918 write(MARK)
919 for element in obj:
--> 920 save(element)
922 if id(obj) in memo:
923 # Subtle. d was not in memo when we entered save_tuple(), so
924 # the process of saving the tuple's elements must have saved
(...) 928 # could have been done in the "for element" loop instead, but
929 # recursive tuples are a rare thing.
930 get = self.get(memo[id(obj)][0])
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1019](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1018), in _Pickler._batch_setitems(self, items)
1017 k, v = tmp[0]
1018 save(k)
-> 1019 save(v)
1020 write(SETITEM)
1021 # else tmp is empty, and we're done
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
[... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:1217](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=1216), in save_module_dict(pickler, obj)
1214 if is_dill(pickler, child=False) and pickler._session:
1215 # we only care about session the first pass thru
1216 pickler._first_pass = False
-> 1217 StockPickler.save_dict(pickler, obj)
1218 logger.trace(pickler, "# D2")
1219 return
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:990](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=989), in _Pickler.save_dict(self, obj)
987 self.write(MARK + DICT)
989 self.memoize(obj)
--> 990 self._batch_setitems(obj.items())
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:83](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=82), in Pickler._batch_setitems(self, items)
80 from datasets.fingerprint import Hasher
82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))
---> 83 dill.Pickler._batch_setitems(self, items)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:1014](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)
1012 for k, v in tmp:
1013 save(k)
-> 1014 save(v)
1015 write(SETITEMS)
1016 elif n:
[... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:601](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)
597 raise PicklingError("Tuple returned by %s must have "
598 "two to six elements" % reduce)
600 # Save the reduce() output and finally memoize the object
--> 601 self.save_reduce(obj=obj, *rv)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:715](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)
713 if state is not None:
714 if state_setter is None:
--> 715 save(state)
716 write(BUILD)
717 else:
718 # If a state_setter is specified, call it instead of load_build
719 # to update obj's with its previous state.
720 # First, push state_setter and its tuple of expected arguments
721 # (obj, state) onto the stack.
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:920](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=919), in _Pickler.save_tuple(self, obj)
918 write(MARK)
919 for element in obj:
--> 920 save(element)
922 if id(obj) in memo:
923 # Subtle. d was not in memo when we entered save_tuple(), so
924 # the process of saving the tuple's elements must have saved
(...) 928 # could have been done in the "for element" loop instead, but
929 # recursive tuples are a rare thing.
930 get = self.get(memo[id(obj)][0])
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\datasets\utils\_dill.py:70](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/datasets/utils/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)
68 if obj_type is FunctionType:
69 obj = getattr(obj, "_torchdynamo_orig_callable", obj)
---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\site-packages\dill\_dill.py:414](file:///C:/ProgramData/miniforge3/envs/geo/Lib/site-packages/dill/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)
412 msg = "Can't pickle %s: attribute lookup builtins.generator failed" % GeneratorType
413 raise PicklingError(msg)
--> 414 StockPickler.save(self, obj, save_persistent_id)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:558](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)
556 f = self.dispatch.get(t)
557 if f is not None:
--> 558 f(self, obj) # Call unbound method with explicit self
559 return
561 # Check private dispatch table if any, or else
562 # copyreg.dispatch_table
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:809](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=808), in _Pickler.save_bytes(self, obj)
806 self.save_reduce(codecs.encode,
807 (str(obj, 'latin1'), 'latin1'), obj=obj)
808 return
--> 809 self._save_bytes_no_memo(obj)
810 self.memoize(obj)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:797](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=796), in _Pickler._save_bytes_no_memo(self, obj)
795 self._write_large_bytes(BINBYTES8 + pack("<Q", n), obj)
796 elif n >= self.framer._FRAME_SIZE_TARGET:
--> 797 self._write_large_bytes(BINBYTES + pack("<I", n), obj)
798 else:
799 self.write(BINBYTES + pack("<I", n) + obj)
File [C:\ProgramData\miniforge3\envs\geo\Lib\pickle.py:254](file:///C:/ProgramData/miniforge3/envs/geo/Lib/pickle.py#line=253), in _Framer.write_large_bytes(self, header, payload)
247 # Perform direct write of the header and payload of the large binary
248 # object. Be careful not to concatenate the header and the payload
249 # prior to calling 'write' as we do not want to allocate a large
250 # temporary bytes object.
251 # We intentionally do not insert a protocol 4 frame opcode to make
252 # it possible to optimize file.read calls in the loader.
253 write(header)
--> 254 write(payload)
MemoryError:
```
</details>
Memory error is an expected type of error in such case, but when I started digging down, I found out that it occurs in a kinda unexpected place - in `create_config_id` function. It tries to hash `config_kwargs_to_add_to_suffix`, including generator function itself.
I modified the `BuilderConfig.create_config_id` code like this to check which values are hashed and how much time it takes to hash them and ran it on a toy dataset:
```
print(config_kwargs_to_add_to_suffix)
start_time = time.time()
if all(isinstance(v, (str, bool, int, float)) for v in config_kwargs_to_add_to_suffix.values()):
suffix = ",".join(
str(k) + "=" + urllib.parse.quote_plus(str(v)) for k, v in config_kwargs_to_add_to_suffix.items()
)
if len(suffix) > 32: # hash if too long
suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
else:
suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
end_time = time.time()
print(f"Execution time: {end_time - start_time:.4f} seconds")
print(suffix)
```
In my case the content of `config_kwargs_to_add_to_suffix` was like this:
```
{'features': {'key': Value(dtype='int64', id=None), 'x': Array3D(shape=(44, 128, 128), dtype='float32', id=None), 'y_class': Array2D(shape=(128, 128), dtype='int32', id=None)}, 'gen_kwargs': None, 'generator': <function generate_tiles.<locals>.dataset_generator at 0x00000139D10D7920>, 'split': NamedSplit('train')}
```
Also I noticed that hashing took a significant amount of time - 43.1482 seconds, while the overall function execution (with data loading, batching and saving dataset) took 2min 45s. The output of `create_config_id` is just a dataset id, so, it is inappropirately large amount of time.
But when I added `config_kwargs_to_add_to_suffix.pop("generator", None)`, the hashing took only 0.0060 seconds.
Maybe we shouldn't hash the generator function, as it can be really computationally and memory expensive.
### Steps to reproduce the bug
This is a simplified example of a workflow I used to generate dataset. But I think that you can use almost any workflow to reproduce that bug.
```
import pystac
import pystac_client
import planetary_computer
import numpy as np
import xarray as xr
import rioxarray as rxr
import dask
import xbatcher
import datasets
# Loading a dataset, in our case - single Landsat image
catalog = pystac_client.Client.open(
"https://planetarycomputer.microsoft.com/api/stac/v1",
modifier=planetary_computer.sign_inplace,
)
brazil = [-60.2, -3.31]
time_of_interest = "2021-06-01/2021-08-31"
search = catalog.search(collections=["landsat-c2-l2"], intersects={"type": "Point", "coordinates": brazil}, datetime=time_of_interest)
items = search.item_collection()
item = min(items, key=lambda item: pystac.extensions.eo.EOExtension.ext(item).cloud_cover)
# Getting x data
bands = []
for band in ["red", "green", "blue", "nir08", "coastal", "swir16", "swir22", "lwir11"]:
with rxr.open_rasterio(item.assets[band].href, chunks=True, lock=True) as raster:
raster = raster.to_dataset('band')
#print(raster)
raster = raster.rename({1: band})
bands.append(raster)
x = xr.merge(bands).squeeze().to_array("band").persist()
# Getting y data
with rxr.open_rasterio(item.assets['qa_pixel'].href, chunks=True, lock=True) as raster:
y = raster.squeeze().persist()
# Setting up batches generators
x_batches = xbatcher.BatchGenerator(ds=x, input_dims={"x": 256, "y": 256})
y_batches = xbatcher.BatchGenerator(ds=y, input_dims={"x": 256, "y": 256})
# Filtering samples that contain only nodata
samples = list(range(len(x_batches)))
samples_filtered = []
for i in samples:
if not np.array_equal(np.unique(x_batches[i]), np.array([0.])) and not np.array_equal(np.unique(y_batches[i]), np.array([0])):
samples_filtered.append(i)
samples = samples_filtered
np.random.shuffle(samples)
# Setting up features
feat = {
"key": datasets.Value(dtype="int64"),
"x": datasets.Array3D(dtype="float32", shape=(4, 256, 256)),
"y": datasets.Array2D(dtype="int32", shape=(256, 256))
}
feat = datasets.Features(feat)
# Setting up a generator
def dataset_generator():
for index in samples:
data_dict = {
"key": index,
"x": x_batches[index].data,
"y": y_batches[index].data,
}
yield data_dict
# Create dataset
ds = datasets.Dataset.from_generator(
dataset_generator,
features=feat,
cache_dir="temp/cache",
)
```
Please, try adding `config_kwargs_to_add_to_suffix.pop("generator", None)` to `BuilderConfig.create_config_id` and then measuring how much time it takes to run
```
if all(isinstance(v, (str, bool, int, float)) for v in config_kwargs_to_add_to_suffix.values()):
suffix = ",".join(
str(k) + "=" + urllib.parse.quote_plus(str(v)) for k, v in config_kwargs_to_add_to_suffix.items()
)
if len(suffix) > 32: # hash if too long
suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
else:
suffix = Hasher.hash(config_kwargs_to_add_to_suffix)
```
code block with and without `config_kwargs_to_add_to_suffix.pop("generator", None)`
In my case the difference was 3.3828 seconds without popping generator function and 0.0010 seconds with popping.
### Expected behavior
Much faster hashing and no MemoryErrors
### Environment info
- `datasets` version: 3.5.0
- Platform: Windows-11-10.0.26100-SP0
- Python version: 3.12.9
- `huggingface_hub` version: 0.30.1
- PyArrow version: 17.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.12.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/7513/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7513/timeline
| null | null | null | null | 2025-04-15T01:02:02Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7510
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7510/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7510/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7510/events
|
https://github.com/huggingface/datasets/issues/7510
| 2,992,131,117
|
I_kwDODunzps6yWEwt
| 7,510
|
Incompatibile dill version (0.3.9) in datasets 2.18.0 - 3.5.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/98061329?v=4",
"events_url": "https://api.github.com/users/JGrel/events{/privacy}",
"followers_url": "https://api.github.com/users/JGrel/followers",
"following_url": "https://api.github.com/users/JGrel/following{/other_user}",
"gists_url": "https://api.github.com/users/JGrel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JGrel",
"id": 98061329,
"login": "JGrel",
"node_id": "U_kgDOBdhMEQ",
"organizations_url": "https://api.github.com/users/JGrel/orgs",
"received_events_url": "https://api.github.com/users/JGrel/received_events",
"repos_url": "https://api.github.com/users/JGrel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JGrel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JGrel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JGrel",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! We can bump `dill` to 0.3.9 if we make sure it's deterministic and doesn't break the caching mechanism in `datasets`.\n\nWould you be interested in opening a PR ? Then we can run the CI to see if it works",
"created_at": "2025-04-15T12:43:33Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2804928953",
"id": 2804928953,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6nL9G5",
"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/2804928953/reactions"
},
"updated_at": "2025-04-15T12:43:33Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804928953",
"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!. Yeah I can do it. Should I make any changes besides dill versions?",
"created_at": "2025-04-16T06:05:00Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2808470854",
"id": 2808470854,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6nZd1G",
"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/2808470854/reactions"
},
"updated_at": "2025-04-16T06:05:00Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2808470854",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/98061329?v=4",
"events_url": "https://api.github.com/users/JGrel/events{/privacy}",
"followers_url": "https://api.github.com/users/JGrel/followers",
"following_url": "https://api.github.com/users/JGrel/following{/other_user}",
"gists_url": "https://api.github.com/users/JGrel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JGrel",
"id": 98061329,
"login": "JGrel",
"node_id": "U_kgDOBdhMEQ",
"organizations_url": "https://api.github.com/users/JGrel/orgs",
"received_events_url": "https://api.github.com/users/JGrel/received_events",
"repos_url": "https://api.github.com/users/JGrel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JGrel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JGrel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JGrel",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "There are probably some usage of internal functions from `dill` that we'll need to update in `datasets`\n\nIf you run `pytest tests/test_fingerprint.py` you should already have a good idea of what works and what doesn't.\nBut feel free to open a PR anyway, this way we can run the full CI and see the results\n",
"created_at": "2025-04-16T09:30:16Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2808970142",
"id": 2808970142,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6nbXue",
"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/2808970142/reactions"
},
"updated_at": "2025-04-16T09:30:16Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2808970142",
"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, sorry for no response from my side. I will try to do it today.",
"created_at": "2025-04-23T07:04:31Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2823275462",
"id": 2823275462,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6oR8PG",
"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/2823275462/reactions"
},
"updated_at": "2025-04-23T07:04:31Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2823275462",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/98061329?v=4",
"events_url": "https://api.github.com/users/JGrel/events{/privacy}",
"followers_url": "https://api.github.com/users/JGrel/followers",
"following_url": "https://api.github.com/users/JGrel/following{/other_user}",
"gists_url": "https://api.github.com/users/JGrel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JGrel",
"id": 98061329,
"login": "JGrel",
"node_id": "U_kgDOBdhMEQ",
"organizations_url": "https://api.github.com/users/JGrel/orgs",
"received_events_url": "https://api.github.com/users/JGrel/received_events",
"repos_url": "https://api.github.com/users/JGrel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JGrel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JGrel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JGrel",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "Created pull request: [LINK](https://github.com/huggingface/datasets/pull/7535)\nTried to run tests by using command you have send and got few errors:\n\n",
"created_at": "2025-04-24T19:49:29Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2828697827",
"id": 2828697827,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6omoDj",
"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/2828697827/reactions"
},
"updated_at": "2025-04-24T19:49:29Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2828697827",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/98061329?v=4",
"events_url": "https://api.github.com/users/JGrel/events{/privacy}",
"followers_url": "https://api.github.com/users/JGrel/followers",
"following_url": "https://api.github.com/users/JGrel/following{/other_user}",
"gists_url": "https://api.github.com/users/JGrel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JGrel",
"id": 98061329,
"login": "JGrel",
"node_id": "U_kgDOBdhMEQ",
"organizations_url": "https://api.github.com/users/JGrel/orgs",
"received_events_url": "https://api.github.com/users/JGrel/received_events",
"repos_url": "https://api.github.com/users/JGrel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JGrel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JGrel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JGrel",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Thanks for running the test ! So it appears we have two issues to fix:\n1. 'log' is not defined: it seems an internal `dill` function has disappeared, so we should adapt the `datasets` code that was using it\n2. there are some hashes mismatches, which means `dill` doesn't seem to output the same dump when passed the same ipython function twice, or the same function but located at a different line in a python file",
"created_at": "2025-05-19T14:54:03Z",
"html_url": "https://github.com/huggingface/datasets/issues/7510#issuecomment-2891336903",
"id": 2891336903,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7510",
"node_id": "IC_kwDODunzps6sVkzH",
"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/2891336903/reactions"
},
"updated_at": "2025-05-19T14:54:03Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2891336903",
"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-04-14T07:22:44Z
| 2025-05-19T14:54:04Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Datasets 2.18.0 - 3.5.0 has a dependency on dill < 0.3.9. This causes errors with dill >= 0.3.9.
Could you please take a look into it and make it compatible?
### Steps to reproduce the bug
1. Install setuptools >= 2.18.0
2. Install dill >=0.3.9
3. Run pip check
4. Output:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 2.18.0 requires dill<0.3.9,>=0.3.0, but you have dill 0.3.9 which is incompatible.
### Expected behavior
Pip install both libraries without any errors
### Environment info
Datasets version: 2.18 - 3.5
Python: 3.11
| 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/7510/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7510/timeline
| null | null | null | null | 2025-04-14T07:22:44Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7512
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7512/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7512/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7512/events
|
https://github.com/huggingface/datasets/issues/7512
| 2,994,043,544
|
I_kwDODunzps6ydXqY
| 7,512
|
.map() fails if function uses pyvista
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11832922?v=4",
"events_url": "https://api.github.com/users/el-hult/events{/privacy}",
"followers_url": "https://api.github.com/users/el-hult/followers",
"following_url": "https://api.github.com/users/el-hult/following{/other_user}",
"gists_url": "https://api.github.com/users/el-hult/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/el-hult",
"id": 11832922,
"login": "el-hult",
"node_id": "MDQ6VXNlcjExODMyOTIy",
"organizations_url": "https://api.github.com/users/el-hult/orgs",
"received_events_url": "https://api.github.com/users/el-hult/received_events",
"repos_url": "https://api.github.com/users/el-hult/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/el-hult/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/el-hult/subscriptions",
"type": "User",
"url": "https://api.github.com/users/el-hult",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "I found a similar (?) issue in https://github.com/huggingface/datasets/issues/6435, where someone had issues with forks and CUDA. According to https://huggingface.co/docs/datasets/main/en/process#multiprocessing we should do \n\n```\nfrom multiprocess import set_start_method\nset_start_method(\"spawn\")\n```\n\nto avoid the fork. The updated code\n\n```python\nimport numpy as np\nimport pyvista as pv\nimport datasets\nimport multiprocess\n\ndata = [{\"coords\": np.random.rand(5, 3)} for _ in range(3)]\n\ndef render_point(example):\n plotter = pv.Plotter(off_screen=True)\n cloud = pv.PolyData(example[\"coords\"])\n plotter.add_mesh(cloud)\n img = plotter.screenshot(return_img=True)\n return {\"image\": img}\n\n\n# breaks if num_proc>1\nmultiprocess.set_start_method(\"spawn\")\nds = datasets.Dataset.from_list(data).map(render_point, num_proc=2)\n```\n\ninstead fails with `TypeError: fork_exec() takes exactly 23 arguments (21 given)` which also seems like a bug to me.",
"created_at": "2025-04-14T20:01:52Z",
"html_url": "https://github.com/huggingface/datasets/issues/7512#issuecomment-2802854908",
"id": 2802854908,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7512",
"node_id": "IC_kwDODunzps6nECv8",
"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/2802854908/reactions"
},
"updated_at": "2025-04-14T20:01:52Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2802854908",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/11832922?v=4",
"events_url": "https://api.github.com/users/el-hult/events{/privacy}",
"followers_url": "https://api.github.com/users/el-hult/followers",
"following_url": "https://api.github.com/users/el-hult/following{/other_user}",
"gists_url": "https://api.github.com/users/el-hult/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/el-hult",
"id": 11832922,
"login": "el-hult",
"node_id": "MDQ6VXNlcjExODMyOTIy",
"organizations_url": "https://api.github.com/users/el-hult/orgs",
"received_events_url": "https://api.github.com/users/el-hult/received_events",
"repos_url": "https://api.github.com/users/el-hult/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/el-hult/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/el-hult/subscriptions",
"type": "User",
"url": "https://api.github.com/users/el-hult",
"user_view_type": "public"
}
}
] | 2025-04-14T19:43:02Z
| 2025-04-14T20:01:53Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Using PyVista inside a .map() produces a crash with `objc[78796]: +[NSResponder initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.`
### Steps to reproduce the bug
Run
```python
import numpy as np
import pyvista as pv
import datasets
data = [{"coords": np.random.rand(5, 3)} for _ in range(3)]
def render_point(example):
plotter = pv.Plotter(off_screen=True)
cloud = pv.PolyData(example["coords"])
plotter.add_mesh(cloud)
img = plotter.screenshot(return_img=True)
return {"image": img}
# breaks if num_proc>1
ds = datasets.Dataset.from_list(data).map(render_point, num_proc=2)
```
### Expected behavior
It should work. Just like when I use a process pool to make it work.
```python
import numpy as np
import pyvista as pv
import multiprocessing
data = [{"coords": np.random.rand(5, 3)} for _ in range(3)]
def render_point(example):
plotter = pv.Plotter(off_screen=True)
cloud = pv.PolyData(example["coords"])
plotter.add_mesh(cloud)
img = plotter.screenshot(return_img=True)
return {"image": img}
if __name__ == "__main__":
with multiprocessing.Pool(processes=2) as pool:
results = pool.map(render_point, data)
print(results[0]["image"].shape)
```
### Environment info
- `datasets` version: 3.3.2
- Platform: macOS-15.3.2-arm64-arm-64bit
- Python version: 3.11.10
- `huggingface_hub` version: 0.28.1
- PyArrow version: 18.1.0
- Pandas version: 2.2.3
- `fsspec` version: 2024.10.0
And then I suppose pyvista info is good to have.
```python
import pyvista as pv
print(pv.Report())
```
gives
--------------------------------------------------------------------------------
Date: Mon Apr 14 21:42:08 2025 CEST
OS : Darwin (macOS 15.3.2)
CPU(s) : 10
Machine : arm64
Architecture : 64bit
RAM : 32.0 GiB
Environment : IPython
File system : apfs
GPU Vendor : Apple
GPU Renderer : Apple M1 Max
GPU Version : 4.1 Metal - 89.3
MathText Support : True
Python 3.11.10 (main, Oct 7 2024, 23:25:27) [Clang 18.1.8 ]
pyvista : 0.44.2
vtk : 9.4.0
numpy : 2.2.2
matplotlib : 3.10.0
scooby : 0.10.0
pooch : 1.8.2
pillow : 11.1.0
imageio : 2.36.1
PyQt5 : 5.15.11
IPython : 8.30.0
scipy : 1.14.1
tqdm : 4.67.1
jupyterlab : 4.3.5
nest_asyncio : 1.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/7512/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7512/timeline
| null | null | null | null | 2025-04-14T19:43:02Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7509
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7509/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7509/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7509/events
|
https://github.com/huggingface/datasets/issues/7509
| 2,991,484,542
|
I_kwDODunzps6yTm5-
| 7,509
|
Dataset uses excessive memory when loading files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "NONE",
"body": "small update: I converted the jsons to parquet and it now works well with 32 proc and the same node. \nI still think this needs to be understood, since json is a very popular and easy-to-use format. ",
"created_at": "2025-04-14T10:54:49Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2801316293",
"id": 2801316293,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6m-LHF",
"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/2801316293/reactions"
},
"updated_at": "2025-04-14T10:54:49Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2801316293",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Hi ! The JSON loader loads full files in memory, unless they are JSON Lines. In this case it iterates on the JSON Lines in a memory efficient manner.\n\nI know there is an `ijson` package that works similarly but for general JSON files, maybe it can help and remove the need to load full JSON files in memory",
"created_at": "2025-04-15T12:42:04Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2804925017",
"id": 2804925017,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nL8JZ",
"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/2804925017/reactions"
},
"updated_at": "2025-04-15T12:42:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804925017",
"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, i understand that json files are probably loaded into memory to read them but aren't they released when we write all the file content into arrow or something? ",
"created_at": "2025-04-15T15:01:07Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2805861515",
"id": 2805861515,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nPgyL",
"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/2805861515/reactions"
},
"updated_at": "2025-04-15T15:01:33Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2805861515",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Yes correct, the JSON data is only in memory during the conversion to Arrow. Then, the data is memory mapped from you disk",
"created_at": "2025-04-15T15:42:53Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2806408959",
"id": 2806408959,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nRmb_",
"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/2806408959/reactions"
},
"updated_at": "2025-04-15T15:42:53Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806408959",
"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": "so the json files are all loaded into memory before converting to arrow? or do they convert 1 json at a time and then they are realeased?\nI don't understand how 200GB worth of jsons fill a 378GB node's memory.",
"created_at": "2025-04-15T15:55:05Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2806551742",
"id": 2806551742,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nSJS-",
"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/2806551742/reactions"
},
"updated_at": "2025-04-15T15:56:55Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806551742",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Each process converts one JSON file at at time, So the total memory usage is num_proc * json_file_size * overhead, where overhead can be around 2 or 3 for the conversion.\n\nSo it's indeed surprising that you run out of memory. Is the dataset available somewhere ? or a subset maybe ?",
"created_at": "2025-04-15T16:03:35Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2806627100",
"id": 2806627100,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nSbsc",
"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/2806627100/reactions"
},
"updated_at": "2025-04-15T16:03:35Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806627100",
"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": "This is a tokenized dataset I created for training a speech-language model with a few features (so it is not private but not easily available). I can send/upload a shard or two and you can copy them however many times you want so you can debug. this should give you something comparable to what I have, but will be easier than creating it yourself. so if you want that, let me know :)",
"created_at": "2025-04-15T16:20:27Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2806725393",
"id": 2806725393,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nSzsR",
"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/2806725393/reactions"
},
"updated_at": "2025-04-15T16:20:27Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806725393",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "MEMBER",
"body": "Maybe you can measure the memory usage when loading 1 file with num_proc=1 ? This should already be helpful.\n\nMemory usage for tokenized data can be bigger than just text, for example the tokens type can be inferred as int64 and the lists offsets are int32",
"created_at": "2025-04-15T16:42:04Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2806813392",
"id": 2806813392,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nTJLQ",
"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/2806813392/reactions"
},
"updated_at": "2025-04-15T16:42:04Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2806813392",
"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": "OK, I will try to do this in the near future. I am a little swamped at the moment. do you have a preferred tool?\n\nalso My data is just list of ints, there is no offsets",
"created_at": "2025-04-16T16:49:09Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2810157398",
"id": 2810157398,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6nf5lW",
"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/2810157398/reactions"
},
"updated_at": "2025-04-16T16:49:09Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2810157398",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "> so the json files are all loaded into memory before converting to arrow? or do they convert 1 json at a time and then they are realeased? I don't understand how 200GB worth of jsons fill a 378GB node's memory.\n\nHello! Is your query solved? I have the same confusion and would like to ask you for advice",
"created_at": "2025-04-26T14:42:23Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2832274198",
"id": 2832274198,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6o0RMW",
"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/2832274198/reactions"
},
"updated_at": "2025-04-26T14:42:23Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2832274198",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/76415358?v=4",
"events_url": "https://api.github.com/users/jxma20/events{/privacy}",
"followers_url": "https://api.github.com/users/jxma20/followers",
"following_url": "https://api.github.com/users/jxma20/following{/other_user}",
"gists_url": "https://api.github.com/users/jxma20/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jxma20",
"id": 76415358,
"login": "jxma20",
"node_id": "MDQ6VXNlcjc2NDE1MzU4",
"organizations_url": "https://api.github.com/users/jxma20/orgs",
"received_events_url": "https://api.github.com/users/jxma20/received_events",
"repos_url": "https://api.github.com/users/jxma20/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jxma20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxma20/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jxma20",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "no, the issue is still present. I converted the json files to parquet, but json seems to have a problem.\n\nUnfortunately i didn't have the time to try and profile the memory usage for 1 file. So if you want to do that, it will be great! ",
"created_at": "2025-04-26T15:33:11Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2832321162",
"id": 2832321162,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6o0cqK",
"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/2832321162/reactions"
},
"updated_at": "2025-04-26T15:33:11Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2832321162",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/36810152?v=4",
"events_url": "https://api.github.com/users/avishaiElmakies/events{/privacy}",
"followers_url": "https://api.github.com/users/avishaiElmakies/followers",
"following_url": "https://api.github.com/users/avishaiElmakies/following{/other_user}",
"gists_url": "https://api.github.com/users/avishaiElmakies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avishaiElmakies",
"id": 36810152,
"login": "avishaiElmakies",
"node_id": "MDQ6VXNlcjM2ODEwMTUy",
"organizations_url": "https://api.github.com/users/avishaiElmakies/orgs",
"received_events_url": "https://api.github.com/users/avishaiElmakies/received_events",
"repos_url": "https://api.github.com/users/avishaiElmakies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avishaiElmakies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avishaiElmakies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avishaiElmakies",
"user_view_type": "public"
}
},
{
"author_association": "NONE",
"body": "My dataset is about image descriptions, stored as a 20MB JSON file on disk. However, I need to use the map function to preprocess the images, and after computation, the preprocessed dataset amounts to 70GB. My server has 122GB of RAM, but it still runs out of memory (OOM). This issue is very similar to yours.\n\nAfter some research during this period, I found that the map function does not perform disk mapping in memory while working. Using the command find /DataB/mjx -type f -mmin -10, I discovered that no temporary cache files were modified or created during program execution, meaning the data was continuously loaded into memory. After several attempts, I found that adding the parameter cache_file_name=\"your/path\" to the map function can enable memory-disk mapping. This is a strange setting, but after adding this parameter, the memory usage dropped to only 7GB, indicating that once the writer_batch_size worth of data is read into the disk cache, the corresponding data in memory is released. However, I don't think this is the intended behavior by the author, as memory-disk caching should have been enabled without needing this additional parameter.\n\nFinally, here is my map function call. I hope it helps you.\ntrain_data = train_data.map(process_fun, cache_file_name='./cache_file', remove_columns=['image_name', 'question_type', 'concern', 'question', 'candidate_answers', 'answer'])",
"created_at": "2025-04-28T15:18:54Z",
"html_url": "https://github.com/huggingface/datasets/issues/7509#issuecomment-2835610828",
"id": 2835610828,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7509",
"node_id": "IC_kwDODunzps6pA_zM",
"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/2835610828/reactions"
},
"updated_at": "2025-04-28T15:18:54Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2835610828",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/76415358?v=4",
"events_url": "https://api.github.com/users/jxma20/events{/privacy}",
"followers_url": "https://api.github.com/users/jxma20/followers",
"following_url": "https://api.github.com/users/jxma20/following{/other_user}",
"gists_url": "https://api.github.com/users/jxma20/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jxma20",
"id": 76415358,
"login": "jxma20",
"node_id": "MDQ6VXNlcjc2NDE1MzU4",
"organizations_url": "https://api.github.com/users/jxma20/orgs",
"received_events_url": "https://api.github.com/users/jxma20/received_events",
"repos_url": "https://api.github.com/users/jxma20/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jxma20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxma20/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jxma20",
"user_view_type": "public"
}
}
] | 2025-04-13T21:09:49Z
| 2025-04-28T15:18:55Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
Hi
I am having an issue when loading a dataset.
I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints.
I am trying to load the dataset using `load_dataset`.
The dataset is about 1.5M samples
I use `num_proc=32` and a node with 378GB of memory.
About a third of the way there I get an OOM.
I also saw an old bug with a similar issue, which says to set `writer_batch_size`. I tried to lower it to 10, but it still crashed.
I also tried to lower the `num_proc` to 16 and even 8, but still the same issue.
### Steps to reproduce the bug
`dataset = load_dataset("json", data_dir=data_config.train_path, num_proc=data_config.num_proc, writer_batch_size=50)["train"]`
### Expected behavior
Loading a dataset with more than 100GB to spare should not cause an OOM error.
maybe i am missing something but I would love some help.
### Environment info
- `datasets` version: 3.5.0
- Platform: Linux-6.6.20-aufs-1-x86_64-with-glibc2.36
- Python version: 3.11.2
- `huggingface_hub` version: 0.29.1
- PyArrow version: 19.0.1
- Pandas version: 2.2.3
- `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/7509/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7509/timeline
| null | null | null | null | 2025-04-13T21:09:49Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7508
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7508/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7508/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7508/events
|
https://github.com/huggingface/datasets/issues/7508
| 2,986,612,934
|
I_kwDODunzps6yBBjG
| 7,508
|
Iterating over Image feature columns is extremely slow
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11831521?v=4",
"events_url": "https://api.github.com/users/sohamparikh/events{/privacy}",
"followers_url": "https://api.github.com/users/sohamparikh/followers",
"following_url": "https://api.github.com/users/sohamparikh/following{/other_user}",
"gists_url": "https://api.github.com/users/sohamparikh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sohamparikh",
"id": 11831521,
"login": "sohamparikh",
"node_id": "MDQ6VXNlcjExODMxNTIx",
"organizations_url": "https://api.github.com/users/sohamparikh/orgs",
"received_events_url": "https://api.github.com/users/sohamparikh/received_events",
"repos_url": "https://api.github.com/users/sohamparikh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sohamparikh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sohamparikh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sohamparikh",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! Could it be because the `Image()` type in dataset does `image = Image.open(image_path)` and also `image.load()` which actually loads the image data in memory ? This is needed to avoid too many open files issues, see https://github.com/huggingface/datasets/issues/3985",
"created_at": "2025-04-15T12:52:50Z",
"html_url": "https://github.com/huggingface/datasets/issues/7508#issuecomment-2804953861",
"id": 2804953861,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7508",
"node_id": "IC_kwDODunzps6nMDMF",
"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/2804953861/reactions"
},
"updated_at": "2025-04-15T12:52:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804953861",
"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": "Yes, that seems to be it. For my purposes, I've cast the column to `Image(decode=False)`, and only load the images when necessary, which is much much faster",
"created_at": "2025-04-15T17:56:49Z",
"html_url": "https://github.com/huggingface/datasets/issues/7508#issuecomment-2807036949",
"id": 2807036949,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7508",
"node_id": "IC_kwDODunzps6nT_wV",
"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/2807036949/reactions"
},
"updated_at": "2025-04-15T17:57:07Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2807036949",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/11831521?v=4",
"events_url": "https://api.github.com/users/sohamparikh/events{/privacy}",
"followers_url": "https://api.github.com/users/sohamparikh/followers",
"following_url": "https://api.github.com/users/sohamparikh/following{/other_user}",
"gists_url": "https://api.github.com/users/sohamparikh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sohamparikh",
"id": 11831521,
"login": "sohamparikh",
"node_id": "MDQ6VXNlcjExODMxNTIx",
"organizations_url": "https://api.github.com/users/sohamparikh/orgs",
"received_events_url": "https://api.github.com/users/sohamparikh/received_events",
"repos_url": "https://api.github.com/users/sohamparikh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sohamparikh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sohamparikh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sohamparikh",
"user_view_type": "public"
}
}
] | 2025-04-10T19:00:54Z
| 2025-04-15T17:57:08Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
We are trying to load datasets where the image column stores `PIL.PngImagePlugin.PngImageFile` images. However, iterating over these datasets is extremely slow.
What I have found:
1. It is the presence of the image column that causes the slowdown. Removing the column from the dataset results in blazingly fast (as expected) times
2. It is ~2x faster to iterate when the column contains a single image as opposed to a list of images i.e., the feature is a Sequence of Image objects. We often need multiple images per sample, so we need to work with a list of images
3. It is ~17x faster to store paths to PNG files and load them using `PIL.Image.open`, as opposed to iterating over a `Dataset` with an Image column, and ~30x faster compared to `Sequence` of `Image`s. See a simple script below with an openly available dataset.
It would be great to understand the standard practices for storing and loading multimodal datasets (image + text).
https://huggingface.co/docs/datasets/en/image_load seems a bit underdeveloped? (e.g., `dataset.decode` only works with `IterableDataset`, but it's not clear from the doc)
Thanks!
```python
from datasets import load_dataset, load_from_disk
from PIL import Image
from pathlib import Path
ds = load_dataset("getomni-ai/ocr-benchmark")
for idx, sample in enumerate(ds["test"]):
image = sample["image"]
image.save(f"/tmp/ds_files/images/image_{idx}.png")
ds.save_to_disk("/tmp/ds_columns")
# Remove the 'image' column
ds["test"] = ds["test"].remove_columns(["image"])
# Create image paths for each sample
image_paths = [f"images/image_{idx}.png" for idx in range(len(ds["test"]))]
# Add the 'image_path' column to the dataset
ds["test"] = ds["test"].add_column("image_path", image_paths)
# Save the updated dataset
ds.save_to_disk("/tmp/ds_files")
files_path = Path("/tmp/ds_files")
column_path = Path("/tmp/ds_columns")
# load and benchmark
ds_file = load_from_disk(files_path)
ds_column = load_from_disk(column_path)
import time
images_files = []
start = time.time()
for idx in range(len(ds_file["test"])):
image_path = files_path / ds_file["test"][idx]["image_path"]
image = Image.open(image_path)
images_files.append(image)
end = time.time()
print(f"Time taken to load images from files: {end - start} seconds")
# Time taken to load images from files: 1.2364635467529297 seconds
images_column = []
start = time.time()
for idx in range(len(ds_column["test"])):
images_column.append(ds_column["test"][idx]["image"])
end = time.time()
print(f"Time taken to load images from columns: {end - start} seconds")
# Time taken to load images from columns: 20.49347186088562 seconds
```
| 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/7508/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7508/timeline
| null | null | null | null | 2025-04-10T19:00:54Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7507
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7507/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7507/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7507/events
|
https://github.com/huggingface/datasets/issues/7507
| 2,984,309,806
|
I_kwDODunzps6x4PQu
| 7,507
|
Front-end statistical data quantity deviation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/88258534?v=4",
"events_url": "https://api.github.com/users/rangehow/events{/privacy}",
"followers_url": "https://api.github.com/users/rangehow/followers",
"following_url": "https://api.github.com/users/rangehow/following{/other_user}",
"gists_url": "https://api.github.com/users/rangehow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rangehow",
"id": 88258534,
"login": "rangehow",
"node_id": "MDQ6VXNlcjg4MjU4NTM0",
"organizations_url": "https://api.github.com/users/rangehow/orgs",
"received_events_url": "https://api.github.com/users/rangehow/received_events",
"repos_url": "https://api.github.com/users/rangehow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rangehow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rangehow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rangehow",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! the format of this dataset is not supported by the Dataset Viewer. It looks like this dataset was saved using `save_to_disk()` which is meant for local storage / easy reload without compression, not for sharing online.",
"created_at": "2025-04-15T12:54:50Z",
"html_url": "https://github.com/huggingface/datasets/issues/7507#issuecomment-2804960156",
"id": 2804960156,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7507",
"node_id": "IC_kwDODunzps6nMEuc",
"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/2804960156/reactions"
},
"updated_at": "2025-04-15T12:54:50Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804960156",
"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-04-10T02:51:38Z
| 2025-04-15T12:54:51Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
While browsing the dataset at https://huggingface.co/datasets/NeuML/wikipedia-20250123, I noticed that a dataset with nearly 7M entries was estimated to be only 4M in size—almost half the actual amount. According to the post-download loading and the dataset_info (https://huggingface.co/datasets/NeuML/wikipedia-20250123/blob/main/train/dataset_info.json), the true data volume is indeed close to 7M. This significant discrepancy could mislead users when sorting datasets by row count. Why not directly retrieve this information from dataset_info?
Not sure if this is the right place to report this bug, but leaving it here for the team's awareness.
| 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/7507/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7507/timeline
| null | null | null | null | 2025-04-10T02:51:38Z
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7506
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7506/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7506/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7506/events
|
https://github.com/huggingface/datasets/issues/7506
| 2,981,687,450
|
I_kwDODunzps6xuPCa
| 7,506
|
HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access Fineweb-10BT on 4A100 GPUs using SLURM
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/66202555?v=4",
"events_url": "https://api.github.com/users/calvintanama/events{/privacy}",
"followers_url": "https://api.github.com/users/calvintanama/followers",
"following_url": "https://api.github.com/users/calvintanama/following{/other_user}",
"gists_url": "https://api.github.com/users/calvintanama/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/calvintanama",
"id": 66202555,
"login": "calvintanama",
"node_id": "MDQ6VXNlcjY2MjAyNTU1",
"organizations_url": "https://api.github.com/users/calvintanama/orgs",
"received_events_url": "https://api.github.com/users/calvintanama/received_events",
"repos_url": "https://api.github.com/users/calvintanama/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/calvintanama/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/calvintanama/subscriptions",
"type": "User",
"url": "https://api.github.com/users/calvintanama",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
{
"author_association": "MEMBER",
"body": "Hi ! make sure to be logged in with your HF account (e.g. using `huggingface-cli login` or passing `token=` to `load_dataset()`), otherwise you'll get rate limited at one point",
"created_at": "2025-04-15T13:04:30Z",
"html_url": "https://github.com/huggingface/datasets/issues/7506#issuecomment-2804990318",
"id": 2804990318,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7506",
"node_id": "IC_kwDODunzps6nMMFu",
"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/2804990318/reactions"
},
"updated_at": "2025-04-15T13:04:30Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/2804990318",
"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": "Hey @calvintanama! Just building on what @lhoestq mentioned above — I ran into similar issues in multi-GPU SLURM setups and here’s what worked for me...\n\nThis 429 Client Error: Too Many Requests comes from the Hugging Face Hub’s rate limiting, which restricts unauthenticated or high-volume access (especially in multi-GPU/distributed setups like SLURM).\n\nAs @lhoestq mentioned, the solution is to make sure you are authenticated with the Hugging Face Hub in every process (especially on each GPU/worker node). You can do this by:\n\nRunning huggingface-cli login (interactive)\n\nOr passing your token explicitly:\n\n```python\nload_dataset(\"HuggingFaceFW/fineweb\", token=\"hf_your_token_here\")\n# If you’re using a SLURM cluster, ensure every node/process receives access to the token via env var:\n```\n\n```bash\nexport HF_TOKEN=hf_your_token_here\n```\n\nand then in Python:\n```python\nfrom datasets import load_dataset\nload_dataset(\"HuggingFaceFW/fineweb\", token=os.environ[\"HF_TOKEN\"])\n```\nAlso consider downloading the dataset beforehand with load_dataset(..., streaming=False) and storing it locally if you're repeatedly training with it.",
"created_at": "2025-06-29T06:04:59Z",
"html_url": "https://github.com/huggingface/datasets/issues/7506#issuecomment-3016337333",
"id": 3016337333,
"issue_url": "https://api.github.com/repos/huggingface/datasets/issues/7506",
"node_id": "IC_kwDODunzps6zyae1",
"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/3016337333/reactions"
},
"updated_at": "2025-06-29T06:04:59Z",
"url": "https://api.github.com/repos/huggingface/datasets/issues/comments/3016337333",
"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-04-09T06:32:04Z
| 2025-06-29T06:04:59Z
| null |
NONE
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
### Describe the bug
I am trying to run some finetunings on 4 A100 GPUs using SLURM using axolotl training framework which in turn uses Huggingface's Trainer and Accelerate on [Fineweb-10BT](https://huggingface.co/datasets/HuggingFaceFW/fineweb), but I end up running into 429 Client Error: Too Many Requests for URL error when I call next(dataloader_iter). Funny is, that I can run some test fine tuning (for just 200 training steps) in 1 A100 GPU using SLURM. Is there any rate limiter set for querying dataset? I could run the fine tuning with the same settings (4 A100 GPUs in SLURM) last month.
### Steps to reproduce the bug
You would need a server installed with SLURM
1. Create conda environment
1.1 conda create -n example_env -c conda-forge gxx=11 python=3.10
1.2 conda activate example_env
1.3 pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124
1.4 conda install nvidia/label/cuda-12.4.0::cuda-toolkit
1.5 Download flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
1.6 pip3 install packaging
1.7 pip3 install ninja
1.8 pip3 install mlflow
1.9 Clone https://github.com/calvintanama/axolotl.git
1.10 `cd` to `axolotl`
1.11 pip3 install -e '.[deepspeed]'
2. Run the training
2.1. Create a folder called `config_run` in axolotl directory
2.2. Copy `config/phi3_pruned_extra_pretrain_22_29_bottleneck_residual_8_a100_4.yaml` to `config_run`
2.3. Change yaml file in the `config_run` accordingly
2.4. Change directory and conda environment name in `jobs/train_phi3_22_29_bottleneck_residual_8_a100_4_temp.sh`
2.5. `jobs/train_phi3_22_29_bottleneck_residual_8_a100_4_temp.sh`
### Expected behavior
This should not cause any error, but gotten
```
File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/accelerate/data_loader.py", line 552, in __iter__
[rank3]: current_batch = next(dataloader_iter)
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 701, in __next__
[rank3]: data = self._next_data()
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 757, in _next_data
[rank3]: data = self._dataset_fetcher.fetch(index) # may raise StopIteration
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 33, in fetch
[rank3]: data.append(next(self.dataset_iter))
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/accelerate/data_loader.py", line 338, in __iter__
[rank3]: for element in self.dataset:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 2266, in __iter__
[rank3]: for key, example in ex_iterable:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1866, in __iter__
[rank3]: for key, example in self.ex_iterable:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1084, in __iter__
[rank3]: yield from self._iter()
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1263, in _iter
[rank3]: for key, transformed_example in outputs:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1258, in <genexpr>
[rank3]: outputs = (
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1244, in iter_outputs
[rank3]: for i, key_example in inputs_iterator:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1106, in iter_batched_inputs
[rank3]: for key, example in iterator:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1866, in __iter__
[rank3]: for key, example in self.ex_iterable:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1535, in __iter__
[rank3]: for x in self.ex_iterable:
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 374, in __iter__
[rank3]: for key, pa_table in self.generate_tables_fn(**gen_kwags):
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/packaged_modules/parquet/parquet.py", line 90, in _generate_tables
[rank3]: if parquet_fragment.row_groups:
[rank3]: File "pyarrow/_dataset_parquet.pyx", line 386, in pyarrow._dataset_parquet.ParquetFileFragment.row_groups.__get__
[rank3]: File "pyarrow/_dataset_parquet.pyx", line 393, in pyarrow._dataset_parquet.ParquetFileFragment.metadata.__get__
[rank3]: File "pyarrow/_dataset_parquet.pyx", line 382, in pyarrow._dataset_parquet.ParquetFileFragment.ensure_complete_metadata
[rank3]: File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 827, in read_with_retries
[rank3]: out = read(*args, **kwargs)
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 1013, in read
[rank3]: return super().read(length)
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/fsspec/spec.py", line 1941, in read
[rank3]: out = self.cache._fetch(self.loc, self.loc + length)
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/fsspec/caching.py", line 234, in _fetch
[rank3]: self.cache = self.fetcher(start, end) # new block replaces old
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 976, in _fetch_range
[rank3]: hf_raise_for_status(r)
[rank3]: File "/home/hk-project-test-p0023745/cd7437/miniconda3/envs/llmpruning_train_temp/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
[rank3]: raise _format(HfHubHTTPError, str(e), response) from e
[rank3]: huggingface_hub.errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/datasets/HuggingFaceFW/fineweb/resolve/0f039043b23fe1d4eed300b504aa4b4a68f1c7ba/sample/10BT/006_00000.parquet
```
### Environment info
- datasets 3.5.0
- torch 2.5.1
- transformers 4.46.2
| 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/7506/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7506/timeline
| null | null | null | null | 2025-04-09T06:32:04Z
| null | null | false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.