url
string | repository_url
string | labels_url
string | comments_url
string | events_url
string | html_url
string | id
int64 | node_id
string | number
int64 | title
string | user
dict | labels
list | state
string | locked
bool | assignee
dict | assignees
list | milestone
dict | comments
list | created_at
timestamp[ms] | updated_at
timestamp[ms] | closed_at
timestamp[ms] | author_association
string | type
null | active_lock_reason
null | draft
bool | pull_request
dict | body
string | closed_by
dict | reactions
dict | timeline_url
string | performed_via_github_app
null | state_reason
string | sub_issues_summary
dict | issue_dependencies_summary
dict | is_pull_request
bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/huggingface/datasets/issues/7847
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7847/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7847/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7847/events
|
https://github.com/huggingface/datasets/pull/7847
| 3,586,135,727
|
PR_kwDODunzps6xZZb9
| 7,847
|
Better streaming retries (504 and 429)
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7847). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-04T11:23:58
| 2025-11-04T13:52:25
| 2025-11-04T13:52:22
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7847.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7847",
"merged_at": "2025-11-04T13:52:22",
"patch_url": "https://github.com/huggingface/datasets/pull/7847.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7847"
}
| 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/7847/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7847/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7846
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7846/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7846/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7846/events
|
https://github.com/huggingface/datasets/pull/7846
| 3,585,966,335
|
PR_kwDODunzps6xYzny
| 7,846
|
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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7846). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-04T10:44:27
| 2025-11-04T10:49:24
| 2025-11-04T10:44:37
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7846.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7846",
"merged_at": "2025-11-04T10:44:37",
"patch_url": "https://github.com/huggingface/datasets/pull/7846.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7846"
}
| 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/7846/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7846/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7845
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7845/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7845/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7845/events
|
https://github.com/huggingface/datasets/pull/7845
| 3,585,926,647
|
PR_kwDODunzps6xYq2r
| 7,845
|
Release: 4.4.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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7845). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-04T10:35:33
| 2025-11-04T10:39:47
| 2025-11-04T10:36:37
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7845.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7845",
"merged_at": "2025-11-04T10:36:37",
"patch_url": "https://github.com/huggingface/datasets/pull/7845.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7845"
}
| 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/7845/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7845/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7844
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7844/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7844/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7844/events
|
https://github.com/huggingface/datasets/pull/7844
| 3,582,354,507
|
PR_kwDODunzps6xM9hd
| 7,844
|
support fsspec 2025.10.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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7844). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-03T14:34:29
| 2025-11-03T14:51:33
| 2025-11-03T14:51:32
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7844.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7844",
"merged_at": "2025-11-03T14:51:32",
"patch_url": "https://github.com/huggingface/datasets/pull/7844.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7844"
}
| 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/7844/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7844/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7843
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7843/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7843/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7843/events
|
https://github.com/huggingface/datasets/pull/7843
| 3,582,311,403
|
PR_kwDODunzps6xM0sq
| 7,843
|
fix column with transform
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7843). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-03T14:23:01
| 2025-11-03T14:34:15
| 2025-11-03T14:34:12
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7843.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7843",
"merged_at": "2025-11-03T14:34:12",
"patch_url": "https://github.com/huggingface/datasets/pull/7843.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7843"
}
|
fix https://github.com/huggingface/datasets/issues/7842
|
{
"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/7843/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7843/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7842
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7842/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7842/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7842/events
|
https://github.com/huggingface/datasets/issues/7842
| 3,582,182,995
|
I_kwDODunzps7Vg8ZT
| 7,842
|
Transform with columns parameter triggers on non-specified column access
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18426892?v=4",
"events_url": "https://api.github.com/users/mr-brobot/events{/privacy}",
"followers_url": "https://api.github.com/users/mr-brobot/followers",
"following_url": "https://api.github.com/users/mr-brobot/following{/other_user}",
"gists_url": "https://api.github.com/users/mr-brobot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mr-brobot",
"id": 18426892,
"login": "mr-brobot",
"node_id": "MDQ6VXNlcjE4NDI2ODky",
"organizations_url": "https://api.github.com/users/mr-brobot/orgs",
"received_events_url": "https://api.github.com/users/mr-brobot/received_events",
"repos_url": "https://api.github.com/users/mr-brobot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mr-brobot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mr-brobot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mr-brobot",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-11-03T13:55:27
| 2025-11-03T14:34:13
| 2025-11-03T14:34:13
|
NONE
| null | null | null | null |
### Describe the bug
Iterating over a [`Column`](https://github.com/huggingface/datasets/blob/8b1bd4ec1cc9e9ce022f749abb6485ef984ae7c0/src/datasets/arrow_dataset.py#L633-L692) iterates through the parent [`Dataset`](https://github.com/huggingface/datasets/blob/8b1bd4ec1cc9e9ce022f749abb6485ef984ae7c0/src/datasets/arrow_dataset.py#L695) and applies all formatting/transforms on each row, regardless of which column is being accessed. This causes an error when transforms depend on columns not present in the projection.
### Steps to reproduce the bug
### Load a dataset with multiple columns
```python
ds = load_dataset("mrbrobot/isic-2024", split="train")
```
### Define a transform that specifies an input column
```python
def image_transform(batch):
batch["image"] = batch["image"] # KeyError when batch doesn't contain "image"
return batch
# apply transform only to image column
ds = ds.with_format("torch")
ds = ds.with_transform(image_transform, columns=["image"], output_all_columns=True)
```
### Iterate over non-specified column
```python
# iterate over a different column, triggers the transform on each row, but batch doesn't contain "image"
for t in ds["target"]: # KeyError: 'image'
print(t)
```
### Expected behavior
If a user iterates over `ds["target"]` and the transform specifies `columns=["image"]`, the transform should be skipped.
### Environment info
`datasets`: 4.2.0
Python: 3.12.12
Linux: Debian 11.11
|
{
"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/7842/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7842/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7841
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7841/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7841/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7841/events
|
https://github.com/huggingface/datasets/issues/7841
| 3,579,506,747
|
I_kwDODunzps7VWvA7
| 7,841
|
DOC: `mode` parameter on pdf and video features unused
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"They seem to be artefacts from a copy-paste of the Image feature ^^' we should remove them"
] | 2025-11-02T12:37:47
| 2025-11-03T10:36:28
| null |
CONTRIBUTOR
| null | null | null | null |
Following up on https://github.com/huggingface/datasets/pull/7840 I asked claude code to check for undocumented parameters for other features and it found:
- mode parameter on video is documented but unused: https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py#L48-L49
- the same goes for the mode parameter on the pdf feature: https://github.com/huggingface/datasets/blob/main/src/datasets/features/pdf.py#L47-L48
I assume checking if these modes can be supported and otherwise removing them is the way to go here.
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7841/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7841/timeline
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7840
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7840/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7840/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7840/events
|
https://github.com/huggingface/datasets/pull/7840
| 3,579,486,348
|
PR_kwDODunzps6xDsbG
| 7,840
|
Add num channels to audio
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7840). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-11-02T12:10:24
| 2025-11-03T17:37:48
| 2025-11-03T14:24:11
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7840.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7840",
"merged_at": "2025-11-03T14:24:11",
"patch_url": "https://github.com/huggingface/datasets/pull/7840.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7840"
}
|
Fixes #7837
We currently have the [mono attribute for Audio documented](https://github.com/huggingface/datasets/blob/41c05299348a499807432ab476e1cdc4143c8772/src/datasets/features/audio.py#L52C1-L54C22) but not used anywhere resulting in confusion for users. Since torchcodec does not know this attribute I suggest using `num_channels` (currently supported `None` (leave unchanged), mono: `1`, stereo: `2`).
I could also add a mono attribute but found that to be more confusing for developers and would restrict us if at any point in the future more than 2 channels are supported.
|
{
"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/7840/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7840/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7839
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7839/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7839/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7839/events
|
https://github.com/huggingface/datasets/issues/7839
| 3,579,121,843
|
I_kwDODunzps7VVRCz
| 7,839
|
datasets doesn't work with python 3.14
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4789087?v=4",
"events_url": "https://api.github.com/users/zachmoshe/events{/privacy}",
"followers_url": "https://api.github.com/users/zachmoshe/followers",
"following_url": "https://api.github.com/users/zachmoshe/following{/other_user}",
"gists_url": "https://api.github.com/users/zachmoshe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zachmoshe",
"id": 4789087,
"login": "zachmoshe",
"node_id": "MDQ6VXNlcjQ3ODkwODc=",
"organizations_url": "https://api.github.com/users/zachmoshe/orgs",
"received_events_url": "https://api.github.com/users/zachmoshe/received_events",
"repos_url": "https://api.github.com/users/zachmoshe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zachmoshe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zachmoshe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zachmoshe",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"Thanks for the report.\nHave you tried on main? This should work, there was recently a PR merged to address this problem, see #7817",
"Works on main 👍 \nWhat's the release schedule for `datasets`? Seems like a cadence of ~2weeks so I assume a real version is due pretty soon?",
"let's say we do a new release later today ? :)",
"Premium service! \n😂 👑 \nJust checked 4.4.0 - works as expected!"
] | 2025-11-02T09:09:06
| 2025-11-04T14:02:25
| 2025-11-04T14:02:25
|
NONE
| null | null | null | null |
### Describe the bug
Seems that `dataset` doesn't work with python==3.14. The root cause seems to be something with a `deel` API that was changed.
```
TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given
```
### Steps to reproduce the bug
(on a new folder)
uv init
uv python pin 3.14
uv add datasets
uv run python
(in REPL)
import datasets
datasets.load_dataset("cais/mmlu", "all") # will fail on any dataset
```
>>> datasets.load_dataset("cais/mmlu", "all")
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
datasets.load_dataset("cais/mmlu", "all")
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/load.py", line 1397, in load_dataset
builder_instance = load_dataset_builder(
path=path,
...<10 lines>...
**config_kwargs,
)
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/load.py", line 1185, in load_dataset_builder
builder_instance._use_legacy_cache_dir_if_possible(dataset_module)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/builder.py", line 615, in _use_legacy_cache_dir_if_possible
self._check_legacy_cache2(dataset_module) or self._check_legacy_cache() or None
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/builder.py", line 487, in _check_legacy_cache2
config_id = self.config.name + "-" + Hasher.hash({"data_files": self.config.data_files})
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/fingerprint.py", line 188, in hash
return cls.hash_bytes(dumps(value))
~~~~~^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 120, in dumps
dump(obj, file)
~~~~^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 114, in dump
Pickler(file, recurse=True).dump(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 428, in dump
StockPickler.dump(self, obj)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 498, in dump
self.save(obj)
~~~~~~~~~^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 70, in save
dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 422, in save
StockPickler.save(self, obj, save_persistent_id)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 572, in save
f(self, obj) # Call unbound method with explicit self
~^^^^^^^^^^^
File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 1262, in save_module_dict
StockPickler.save_dict(pickler, obj)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 1064, in save_dict
self._batch_setitems(obj.items(), obj)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given
```
### Expected behavior
should work.
### Environment info
datasets==v4.3.0
python==3.14
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4789087?v=4",
"events_url": "https://api.github.com/users/zachmoshe/events{/privacy}",
"followers_url": "https://api.github.com/users/zachmoshe/followers",
"following_url": "https://api.github.com/users/zachmoshe/following{/other_user}",
"gists_url": "https://api.github.com/users/zachmoshe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zachmoshe",
"id": 4789087,
"login": "zachmoshe",
"node_id": "MDQ6VXNlcjQ3ODkwODc=",
"organizations_url": "https://api.github.com/users/zachmoshe/orgs",
"received_events_url": "https://api.github.com/users/zachmoshe/received_events",
"repos_url": "https://api.github.com/users/zachmoshe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zachmoshe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zachmoshe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zachmoshe",
"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/7839/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7839/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7837
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7837/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7837/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7837/events
|
https://github.com/huggingface/datasets/issues/7837
| 3,575,454,726
|
I_kwDODunzps7VHRwG
| 7,837
|
mono parameter to the Audio feature is missing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1250234?v=4",
"events_url": "https://api.github.com/users/ernestum/events{/privacy}",
"followers_url": "https://api.github.com/users/ernestum/followers",
"following_url": "https://api.github.com/users/ernestum/following{/other_user}",
"gists_url": "https://api.github.com/users/ernestum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ernestum",
"id": 1250234,
"login": "ernestum",
"node_id": "MDQ6VXNlcjEyNTAyMzQ=",
"organizations_url": "https://api.github.com/users/ernestum/orgs",
"received_events_url": "https://api.github.com/users/ernestum/received_events",
"repos_url": "https://api.github.com/users/ernestum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ernestum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ernestum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ernestum",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"Hey, we removed the misleading passage in the docstring and enabled support for `num_channels` as torchcodec does",
"thanks!"
] | 2025-10-31T15:41:39
| 2025-11-03T15:59:18
| 2025-11-03T14:24:12
|
NONE
| null | null | null | null |
According to the docs, there is a "mono" parameter to the Audio feature, which turns any stereo into mono. In practice the signal is not touched and the mono parameter, even though documented, does not exist.
https://github.com/huggingface/datasets/blob/41c05299348a499807432ab476e1cdc4143c8772/src/datasets/features/audio.py#L52C1-L54C22
|
{
"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/7837/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7837/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7836
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7836/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7836/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7836/events
|
https://github.com/huggingface/datasets/pull/7836
| 3,562,316,362
|
PR_kwDODunzps6wLuh9
| 7,836
|
Python 3.14
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7836). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-28T16:11:13
| 2025-10-31T17:27:17
| 2025-10-31T17:27:15
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7836.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7836",
"merged_at": "2025-10-31T17:27:15",
"patch_url": "https://github.com/huggingface/datasets/pull/7836.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7836"
}
| 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/7836/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7836/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7835
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7835/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7835/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7835/events
|
https://github.com/huggingface/datasets/pull/7835
| 3,560,909,796
|
PR_kwDODunzps6wHK9e
| 7,835
|
Add DICOM support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[] | 2025-10-28T10:41:05
| 2025-11-04T12:18:13
| null |
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7835.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7835",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7835.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7835"
}
|
supports #7804
Add support for the dicom file format.
This PR follows PR #7815 and PR #7325 closely.
Remarkable differences:
I made sure that we can load all of pydicom's test data, and encountered the `force=True` parameter that we explicitly support here. This allows to trying to load corrupted dicom files, we explicitly test this!
There is one dataset with all of dicom's test data on huggingface which can be loaded using this branch with the following script:
```python
from datasets import load_dataset
from datasets import Features, ClassLabel
from datasets.features import Dicom
features = Features({
"dicom": Dicom(force=True), # necessary to be able to load one corrupted file
"label": ClassLabel(num_classes=2)
})
ds = load_dataset("TobiasPitters/dicom-sample-dataset",
features=features)
error_count = 0
for idx, item in enumerate(ds["test"]):
dicom = item["dicom"]
try:
print(f"Type: {type(dicom)}")
if hasattr(dicom, 'PatientID'):
print(f"PatientID: {dicom.PatientID}")
if hasattr(dicom, 'StudyInstanceUID'):
print(f"StudyInstanceUID: {dicom.StudyInstanceUID}")
if hasattr(dicom, 'Modality'):
print(f"Modality: {dicom.Modality}")
except Exception as e:
error_count += 1
print(e)
print(f"Finished processing with {error_count} errors.")
```
todo:
- [ ] add docs (will do so soon)
| 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/7835/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7835/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7834
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7834/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7834/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7834/events
|
https://github.com/huggingface/datasets/issues/7834
| 3,558,802,959
|
I_kwDODunzps7UHwYP
| 7,834
|
Audio.cast_column() or Audio.decode_example() causes Colab kernel crash (std::bad_alloc)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2559570?v=4",
"events_url": "https://api.github.com/users/rachidio/events{/privacy}",
"followers_url": "https://api.github.com/users/rachidio/followers",
"following_url": "https://api.github.com/users/rachidio/following{/other_user}",
"gists_url": "https://api.github.com/users/rachidio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rachidio",
"id": 2559570,
"login": "rachidio",
"node_id": "MDQ6VXNlcjI1NTk1NzA=",
"organizations_url": "https://api.github.com/users/rachidio/orgs",
"received_events_url": "https://api.github.com/users/rachidio/received_events",
"repos_url": "https://api.github.com/users/rachidio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rachidio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rachidio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rachidio",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"Hi ! `datasets` v4 uses `torchcodec` for audio decoding (previous versions were using `soundfile`). What is your `torchcodec` version ? Can you try other versions of `torchcodec` and see if it works ?",
"When I install `datasets` with `pip install datasets[audio]` it install this version of `torchcodec`:\n```\nName: torchcodec\nVersion: 0.8.1\n```\nCan you please point to a working version of `torchcodec`?\n\nThanks for your help",
"I believe you simply need to make sure the torchcodec and torch versions work together. Here is how to fix it:\n\n```python\n!pip install -U torchcodec torch\n```",
"I am also encountering this same issue when i run `print(ug_court[\"train\"][0])` to view the features of the first row of my audio data",
"the problem still goes on to when i force training with seeing these features",
"Thank you @lhoestq I've reinstalled the packages an the error is gone.\nMy new versions are:\n```\nName: torch\nVersion: 2.8.0\n---\nName: torchaudio\nVersion: 2.8.0\n---\nName: torchcodec\nVersion: 0.8.1\n```\n\nRegards",
"mine too has worked "
] | 2025-10-27T22:02:00
| 2025-10-30T22:32:54
| null |
NONE
| null | null | null | null |
### Describe the bug
When using the huggingface datasets.Audio feature to decode a local or remote (public HF dataset) audio file inside Google Colab, the notebook kernel crashes with std::bad_alloc (C++ memory allocation failure).
The crash happens even with a minimal code example and valid .wav file that can be read successfully using soundfile.
Here is a sample Collab notebook to reproduce the problem.
https://colab.research.google.com/drive/1nnb-GC5748Tux3xcYRussCGp2x-zM9Id?usp=sharing
code sample:
```
...
audio_dataset = audio_dataset.cast_column("audio", Audio(sampling_rate=16000))
# Accessing the first element crashes the Colab kernel
print(audio_dataset[0]["audio"])
```
Error log
```
WARNING what(): std::bad_alloc
terminate called after throwing an instance of 'std::bad_alloc'
```
Environment
Platform: Google Colab (Python 3.12.12)
datasets Version: 4.3.0
soundfile Version: 0.13.1
torchaudio Version: 2.8.0+cu126
Thanks in advance to help me on this error I get approx two weeks now after it was working before.
Regards
### Steps to reproduce the bug
https://colab.research.google.com/drive/1nnb-GC5748Tux3xcYRussCGp2x-zM9Id?usp=sharing
### Expected behavior
Loading the audio and decode it.
It should safely return:
{
"path": "path/filaname.wav",
"array": np.ndarray([...]),
"sampling_rate": 16000
}
### Environment info
Environment
Platform: Google Colab (Python 3.12.12)
datasets Version: 4.3.0
soundfile Version: 0.13.1
torchaudio Version: 2.8.0+cu126
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 1,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7834/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7834/timeline
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7833
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7833/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7833/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7833/events
|
https://github.com/huggingface/datasets/pull/7833
| 3,556,014,911
|
PR_kwDODunzps6v2gAI
| 7,833
|
Fix: Properly render [!TIP] block in stream.shuffle documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4",
"events_url": "https://api.github.com/users/art-test-stack/events{/privacy}",
"followers_url": "https://api.github.com/users/art-test-stack/followers",
"following_url": "https://api.github.com/users/art-test-stack/following{/other_user}",
"gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/art-test-stack",
"id": 110672812,
"login": "art-test-stack",
"node_id": "U_kgDOBpi7rA",
"organizations_url": "https://api.github.com/users/art-test-stack/orgs",
"received_events_url": "https://api.github.com/users/art-test-stack/received_events",
"repos_url": "https://api.github.com/users/art-test-stack/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions",
"type": "User",
"url": "https://api.github.com/users/art-test-stack",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-10-27T10:09:31
| 2025-10-28T15:57:33
| 2025-10-28T15:57:33
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7833.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7833",
"merged_at": "2025-10-28T15:57:33",
"patch_url": "https://github.com/huggingface/datasets/pull/7833.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7833"
}
|
The second line starting with the bracket doesn't properly render on huggingface/docs. Added "> " to address it.
In the client documentation, the markdown 'TIP' paragraph in docs/stream#shuffle is not well executed, not as the other in the same page / while markdown is correctly considering it.
Documentation:
https://huggingface.co/docs/datasets/v4.3.0/en/stream#shuffle:~:text=%5B!TIP%5D%5BIterableDataset.shuffle()%5D(/docs/datasets/v4.3.0/en/package_reference/main_classes%23datasets.IterableDataset.shuffle)%20will%20also%20shuffle%20the%20order%20of%20the%20shards%20if%20the%20dataset%20is%20sharded%20into%20multiple%20files.
Github source:
https://github.com/huggingface/datasets/blob/main/docs/source/stream.mdx#:~:text=Casting%20only%20works%20if%20the%20original%20feature%20type%20and%20new%20feature%20type%20are%20compatible.%20For%20example%2C%20you%20can%20cast%20a%20column%20with%20the%20feature%20type%20Value(%27int32%27)%20to%20Value(%27bool%27)%20if%20the%20original%20column%20only%20contains%20ones%20and%20zeros.
|
{
"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/7833/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7833/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7832
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7832/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7832/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7832/events
|
https://github.com/huggingface/datasets/issues/7832
| 3,555,991,552
|
I_kwDODunzps7T9CAA
| 7,832
|
[DOCS][minor] TIPS paragraph not compiled in docs/stream
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4",
"events_url": "https://api.github.com/users/art-test-stack/events{/privacy}",
"followers_url": "https://api.github.com/users/art-test-stack/followers",
"following_url": "https://api.github.com/users/art-test-stack/following{/other_user}",
"gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/art-test-stack",
"id": 110672812,
"login": "art-test-stack",
"node_id": "U_kgDOBpi7rA",
"organizations_url": "https://api.github.com/users/art-test-stack/orgs",
"received_events_url": "https://api.github.com/users/art-test-stack/received_events",
"repos_url": "https://api.github.com/users/art-test-stack/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions",
"type": "User",
"url": "https://api.github.com/users/art-test-stack",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-10-27T10:03:22
| 2025-10-27T10:10:54
| 2025-10-27T10:10:54
|
CONTRIBUTOR
| null | null | null | null |
In the client documentation, the markdown 'TIP' paragraph for paragraph in docs/stream#shuffle is not well executed — not as the other in the same page / while markdown is correctly considering it.
Documentation:
https://huggingface.co/docs/datasets/v4.3.0/en/stream#shuffle:~:text=%5B!TIP%5D%5BIterableDataset.shuffle()%5D(/docs/datasets/v4.3.0/en/package_reference/main_classes%23datasets.IterableDataset.shuffle)%20will%20also%20shuffle%20the%20order%20of%20the%20shards%20if%20the%20dataset%20is%20sharded%20into%20multiple%20files.
Github source:
https://github.com/huggingface/datasets/blob/main/docs/source/stream.mdx#:~:text=Casting%20only%20works%20if%20the%20original%20feature%20type%20and%20new%20feature%20type%20are%20compatible.%20For%20example%2C%20you%20can%20cast%20a%20column%20with%20the%20feature%20type%20Value(%27int32%27)%20to%20Value(%27bool%27)%20if%20the%20original%20column%20only%20contains%20ones%20and%20zeros.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4",
"events_url": "https://api.github.com/users/art-test-stack/events{/privacy}",
"followers_url": "https://api.github.com/users/art-test-stack/followers",
"following_url": "https://api.github.com/users/art-test-stack/following{/other_user}",
"gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/art-test-stack",
"id": 110672812,
"login": "art-test-stack",
"node_id": "U_kgDOBpi7rA",
"organizations_url": "https://api.github.com/users/art-test-stack/orgs",
"received_events_url": "https://api.github.com/users/art-test-stack/received_events",
"repos_url": "https://api.github.com/users/art-test-stack/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions",
"type": "User",
"url": "https://api.github.com/users/art-test-stack",
"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/7832/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7832/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7831
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7831/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7831/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7831/events
|
https://github.com/huggingface/datasets/pull/7831
| 3,552,081,727
|
PR_kwDODunzps6vp0pz
| 7,831
|
resolves the ValueError: Unable to avoid copy while creating an array
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4",
"events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}",
"followers_url": "https://api.github.com/users/ArjunJagdale/followers",
"following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}",
"gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ArjunJagdale",
"id": 142811259,
"login": "ArjunJagdale",
"node_id": "U_kgDOCIMgew",
"organizations_url": "https://api.github.com/users/ArjunJagdale/orgs",
"received_events_url": "https://api.github.com/users/ArjunJagdale/received_events",
"repos_url": "https://api.github.com/users/ArjunJagdale/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ArjunJagdale",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"## Also i have done some tests on real dataset\r\n\r\n### Tested with real datasets:\r\n- ✅ IMDB dataset with NumPy 1.26.4 and 2.3.4\r\n- ✅ Rotten Tomatoes dataset with NumPy 1.26.4 and 2.3.4\r\n- ✅ Artificial datasets with ClassLabel features\r\n\r\n### Results:\r\n- Stratified splits work correctly in both NumPy versions\r\n- Class balance is perfectly maintained (e.g., Rotten Tomatoes: 426:426 train, 107:107 test)\r\n- Non-stratified splits continue to work as expected\r\n- Backward compatibility with NumPy 1.x confirmed\r\n\r\nBelow are the RAW logs of testing - \r\n\r\n```\r\n(venv) F:\\Python\\Machine learning\\datasets>pip install \"numpy<2.0\"\r\nCollecting numpy<2.0\r\n Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata (61 kB)\r\nUsing cached numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)\r\nInstalling collected packages: numpy\r\n Attempting uninstall: numpy\r\n Found existing installation: numpy 2.3.4\r\n Uninstalling numpy-2.3.4:\r\n Successfully uninstalled numpy-2.3.4\r\nSuccessfully installed numpy-1.26.4\r\n\r\n[notice] A new release of pip is available: 24.0 -> 25.3\r\n[notice] To update, run: python.exe -m pip install --upgrade pip\r\n\r\n(venv) F:\\Python\\Machine learning\\datasets>python test_fix.py\r\nNumPy version: 1.26.4\r\n============================================================\r\n\r\n[Test 1] Testing with IMDB dataset...\r\nREADME.md: 7.81kB [00:00, 7.78MB/s]\r\nF:\\Python\\Machine learning\\datasets\\venv\\Lib\\site-packages\\huggingface_hub\\file_download.py:143: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\\Users\\arjun\\.cache\\huggingface\\hub\\datasets--imdb. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.\r\nTo support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development\r\n warnings.warn(message)\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\ntrain-00000-of-00001.parquet: 100%|███████████████████████████████████████████████████████████████████████████████████| 21.0M/21.0M [00:06<00:00, 3.08MB/s]\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\ntest-00000-of-00001.parquet: 100%|████████████████████████████████████████████████████████████████████████████████████| 20.5M/20.5M [00:07<00:00, 2.56MB/s]\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\nunsupervised-00000-of-00001.parquet: 100%|████████████████████████████████████████████████████████████████████████████| 42.0M/42.0M [00:14<00:00, 2.84MB/s]\r\nGenerating train split: 100%|█████████████████████████████████████████████████████████████████████████████| 25000/25000 [00:00<00:00, 267643.40 examples/s]\r\nGenerating test split: 100%|██████████████████████████████████████████████████████████████████████████████| 25000/25000 [00:00<00:00, 324697.85 examples/s]\r\nGenerating unsupervised split: 100%|██████████████████████████████████████████████████████████████████████| 50000/50000 [00:00<00:00, 289202.11 examples/s]\r\nLoaded 1000 samples\r\n✅ IMDB SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 800\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 200\r\n })\r\n})\r\nTrain class distribution: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\nTest class distribution: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\n\r\n============================================================\r\n\r\n[Test 2] Testing with Rotten Tomatoes dataset...\r\nREADME.md: 7.46kB [00:00, ?B/s]\r\nF:\\Python\\Machine learning\\datasets\\venv\\Lib\\site-packages\\huggingface_hub\\file_download.py:143: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\\Users\\arjun\\.cache\\huggingface\\hub\\datasets--rotten_tomatoes. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.\r\nTo support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development\r\n warnings.warn(message)\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\ntrain.parquet: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 699k/699k [00:00<00:00, 3.46MB/s]\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\nvalidation.parquet: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 90.0k/90.0k [00:00<00:00, 6.80MB/s]\r\nXet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\r\ntest.parquet: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 92.2k/92.2k [00:00<00:00, 5.85MB/s]\r\nGenerating train split: 100%|███████████████████████████████████████████████████████████████████████████████| 8530/8530 [00:00<00:00, 856082.82 examples/s]\r\nGenerating validation split: 100%|██████████████████████████████████████████████████████████████████████████| 1066/1066 [00:00<00:00, 531075.91 examples/s]\r\nGenerating test split: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 1066/1066 [00:00<?, ? examples/s]\r\nLoaded 1066 samples\r\n✅ Rotten Tomatoes SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 852\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 214\r\n })\r\n})\r\n\r\nTrain: class_0=426, class_1=426\r\nTest: class_0=107, class_1=107\r\n\r\n============================================================\r\n\r\n[Test 3] Testing without stratification (sanity check)...\r\n✅ Non-stratified split SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 80\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 20\r\n })\r\n})\r\n\r\n============================================================\r\nAll tests completed!\r\n\r\n```\r\n\r\n### Upgrading numpy for >= 2\r\n\r\n```\r\n(venv) F:\\Python\\Machine learning\\datasets>pip install \"numpy>=2.0\"\r\nCollecting numpy>=2.0\r\n Using cached numpy-2.3.4-cp311-cp311-win_amd64.whl.metadata (60 kB)\r\nUsing cached numpy-2.3.4-cp311-cp311-win_amd64.whl (13.1 MB)\r\nInstalling collected packages: numpy\r\n Attempting uninstall: numpy\r\n Found existing installation: numpy 1.26.4\r\n Uninstalling numpy-1.26.4:\r\n Successfully uninstalled numpy-1.26.4\r\nSuccessfully installed numpy-2.3.4\r\n\r\n[notice] A new release of pip is available: 24.0 -> 25.3\r\n[notice] To update, run: python.exe -m pip install --upgrade pip\r\n\r\n(venv) F:\\Python\\Machine learning\\datasets>python test_fix.py\r\nNumPy version: 2.3.4\r\n============================================================\r\n\r\n[Test 1] Testing with IMDB dataset...\r\nLoaded 1000 samples\r\n✅ IMDB SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 800\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 200\r\n })\r\n})\r\nTrain class distribution: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\nTest class distribution: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\n\r\n============================================================\r\n\r\n[Test 2] Testing with Rotten Tomatoes dataset...\r\nLoaded 1066 samples\r\n✅ Rotten Tomatoes SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 852\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 214\r\n })\r\n})\r\n\r\nTrain: class_0=426, class_1=426\r\nTest: class_0=107, class_1=107\r\n\r\n============================================================\r\n\r\n[Test 3] Testing without stratification (sanity check)...\r\n✅ Non-stratified split SUCCESS!\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 80\r\n })\r\n test: Dataset({\r\n features: ['text', 'label'],\r\n num_rows: 20\r\n })\r\n})\r\n\r\n============================================================\r\nAll tests completed!\r\n",
"[test_fix.py](https://github.com/user-attachments/files/23140682/test_fix.py)\r\n\r\nhere is the file I used for testing @lhoestq ",
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7831). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-25T08:13:54
| 2025-10-29T06:35:32
| 2025-10-28T16:10:43
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7831.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7831",
"merged_at": "2025-10-28T16:10:43",
"patch_url": "https://github.com/huggingface/datasets/pull/7831.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7831"
}
|
## Summary
Fixes #7818
This PR resolves the `ValueError: Unable to avoid copy while creating an array` error that occurs when using `train_test_split` with `stratify_by_column` parameter in NumPy 2.0+.
## Changes
- Wrapped the stratify column array access with `np.asarray()` in `arrow_dataset.py`
- This allows NumPy 2.0 to make a copy when the Arrow array is non-contiguous in memory
## Testing
- ✅ Tested with NumPy 2.3.4 - stratified splits work correctly
- ✅ Tested with NumPy 1.26.4 - backward compatibility maintained
- ✅ Verified class balance is preserved in stratified splits
- ✅ Non-stratified splits continue to work as expected
|
{
"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/7831/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7831/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7830
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7830/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7830/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7830/events
|
https://github.com/huggingface/datasets/pull/7830
| 3,549,769,999
|
PR_kwDODunzps6viIQf
| 7,830
|
fix ci compressionfs
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7830). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-24T14:29:00
| 2025-10-24T14:46:34
| 2025-10-24T14:46:29
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7830.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7830",
"merged_at": "2025-10-24T14:46:29",
"patch_url": "https://github.com/huggingface/datasets/pull/7830.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7830"
}
| 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/7830/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7830/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7829
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7829/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7829/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7829/events
|
https://github.com/huggingface/datasets/issues/7829
| 3,548,584,085
|
I_kwDODunzps7TgxiV
| 7,829
|
Memory leak / Large memory usage with num_workers = 0 and numerous dataset within DatasetDict
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24591024?v=4",
"events_url": "https://api.github.com/users/raphaelsty/events{/privacy}",
"followers_url": "https://api.github.com/users/raphaelsty/followers",
"following_url": "https://api.github.com/users/raphaelsty/following{/other_user}",
"gists_url": "https://api.github.com/users/raphaelsty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/raphaelsty",
"id": 24591024,
"login": "raphaelsty",
"node_id": "MDQ6VXNlcjI0NTkxMDI0",
"organizations_url": "https://api.github.com/users/raphaelsty/orgs",
"received_events_url": "https://api.github.com/users/raphaelsty/received_events",
"repos_url": "https://api.github.com/users/raphaelsty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/raphaelsty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raphaelsty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/raphaelsty",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"Thanks for the report, this is possibly related #7722 and #7694.\n\nCould you pls provide steps to reproduce this?",
"To overcome this issue right now I did simply reduce the size of the dataset and ended up running a for loop (my training has now a constant learning rate schedule). From what I understood, and I don't know if it's possible, the solution would be to tell the backend of `datasets` to leave x% of the memory free (including memory mapping). Can't release the data right now but I will and then allow to reproduce this issue. But it will involve to have some free TB of disk",
"@raphaelsty thanks for coming back to this. I assume you are running in streaming mode? That should prevent these errors but it looks like more people than just you have this problem, so a clearly reproducing example (including data + code) is highly appreciated."
] | 2025-10-24T09:51:38
| 2025-10-27T19:37:21
| null |
NONE
| null | null | null | null |
### Describe the bug
Hi team, first off, I love the datasets library! 🥰
I'm encountering a potential memory leak / increasing memory usage when training a model on a very large DatasetDict.
Setup: I have a DatasetDict containing 362 distinct datasets, which sum up to ~2.8 billion rows.
Training Task: I'm performing contrastive learning with SentenceTransformer and Accelerate on a single node with 4 H100, which requires me to sample from only one dataset at a time.
Training Loop: At each training step, I sample ~16,000 examples from a single dataset, and then switch to a different dataset for the next step. I iterate through all 362 datasets this way.
Problem: The process's memory usage continuously increases over time, eventually causing a stale status where GPUs would stop working. It seems memory from previously sampled datasets isn't being released. I've set num_workers=0 for all experiments.
Chart 1: Standard DatasetDict The memory usage grows steadily until it make the training stale (RSS memory) <img width="773" height="719" alt="Image" src="https://github.com/user-attachments/assets/6606bef5-1153-4f2d-bf08-82da249d6e8d" />
Chart 2: IterableDatasetDict I also tried to use IterableDatasetDict and IterableDataset. The memory curve is "smoother," but the result is the same: it grows indefinitely and the training become stale. <img width="339" height="705" alt="Image" src="https://github.com/user-attachments/assets/ee90c1a1-6c3b-4135-9edc-90955cb1695a" />
Any feedback or guidance on how to manage this memory would be greatly appreciated!
### Steps to reproduce the bug
WIP, I'll add some code that manage to reproduce this error, but not straightforward.
### Expected behavior
The memory usage should remain relatively constant or plateau after a few steps. Memory used for sampling one dataset should be released before or during the sampling of the next dataset.
### Environment info
Python: 3.12
Datasets: 4.3.0
SentenceTransformers: 5.1.1
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 1,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7829/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7829/timeline
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7828
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7828/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7828/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7828/events
|
https://github.com/huggingface/datasets/pull/7828
| 3,545,562,802
|
PR_kwDODunzps6vT3rI
| 7,828
|
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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7828). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-23T16:34:44
| 2025-10-23T16:37:32
| 2025-10-23T16:34:50
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7828.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7828",
"merged_at": "2025-10-23T16:34:50",
"patch_url": "https://github.com/huggingface/datasets/pull/7828.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7828"
}
| 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/7828/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7828/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7827
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7827/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7827/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7827/events
|
https://github.com/huggingface/datasets/pull/7827
| 3,545,543,117
|
PR_kwDODunzps6vTz7T
| 7,827
|
release: 4.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"
}
|
[] |
closed
| false
| null |
[] | null |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7827). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-23T16:30:48
| 2025-10-23T16:33:38
| 2025-10-23T16:31:57
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7827.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7827",
"merged_at": "2025-10-23T16:31:56",
"patch_url": "https://github.com/huggingface/datasets/pull/7827.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7827"
}
| 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/7827/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7827/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7826
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7826/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7826/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7826/events
|
https://github.com/huggingface/datasets/pull/7826
| 3,545,534,210
|
PR_kwDODunzps6vTyKR
| 7,826
|
picklable batch_fn
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7826). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-23T16:28:52
| 2025-10-23T16:31:59
| 2025-10-23T16:29:06
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7826.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7826",
"merged_at": "2025-10-23T16:29:06",
"patch_url": "https://github.com/huggingface/datasets/pull/7826.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7826"
}
| 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/7826/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7826/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7825
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7825/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7825/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7825/events
|
https://github.com/huggingface/datasets/pull/7825
| 3,541,176,759
|
PR_kwDODunzps6vFc3H
| 7,825
|
Fix ArrowInvalid for large variables
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"@lhoestq : from what I see in the CI logs ( tests/test_arrow_dataset.py::test_map_int32_overflow \r\n/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/multiprocess/resource_tracker.py:219: UserWarning: resource_tracker: There appear to be 24 leaked shared_memory objects to clean up at shutdown\r\n warnings.warn('resource_tracker: There appear to be %d '), see [here](https://github.com/huggingface/datasets/actions/runs/18720027796/job/53591652242#step:13:6530), the test crashes probably since it consumes too much memory, it works locally for me though. \r\n \r\n Shall we keep the test, remove ti, or skip it, or is there a specific pytest flag you have for slow/memory-consuming tests I can add, so that it gets skipped automatically on the CI but might be run locally?\r\n \r\n EDIT: I added the `high_memory` marker (see [here](https://github.com/huggingface/datasets/pull/7825/files#diff-c480dc36aca482db963c43ee66ba21705111f62f826352c96558ef5ed1619791R4789)), so this will not be run in the CI, which is not ideal but I guess the way if we want to keep the test"
] | 2025-10-22T14:42:47
| 2025-11-03T16:00:01
| null |
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7825.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7825",
"merged_at": null,
"patch_url": "https://github.com/huggingface/datasets/pull/7825.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7825"
}
|
Fixes #7821
In addition to the solution proposed in the issue, I encountered we also need to support 64bit types when writing using the `RecordBatchStreamWriter`.
Not sure if we want to create such large objects in the CI, but this is the only way to test that the issue is fixed, therefore I added the unit test.
| 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/7825/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7825/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7824
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7824/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7824/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7824/events
|
https://github.com/huggingface/datasets/pull/7824
| 3,531,240,254
|
PR_kwDODunzps6ukXe9
| 7,824
|
Fix batch_size default description in to_polars docstrings
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7824). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-20T06:38:19
| 2025-10-20T13:49:25
| 2025-10-20T13:49:24
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7824.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7824",
"merged_at": "2025-10-20T13:49:24",
"patch_url": "https://github.com/huggingface/datasets/pull/7824.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7824"
}
|
Fix batch_size default description in `to_polars` docstrings.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4",
"events_url": "https://api.github.com/users/lhoestq/events{/privacy}",
"followers_url": "https://api.github.com/users/lhoestq/followers",
"following_url": "https://api.github.com/users/lhoestq/following{/other_user}",
"gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lhoestq",
"id": 42851186,
"login": "lhoestq",
"node_id": "MDQ6VXNlcjQyODUxMTg2",
"organizations_url": "https://api.github.com/users/lhoestq/orgs",
"received_events_url": "https://api.github.com/users/lhoestq/received_events",
"repos_url": "https://api.github.com/users/lhoestq/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lhoestq",
"user_view_type": "public"
}
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7824/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7824/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7823
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7823/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7823/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7823/events
|
https://github.com/huggingface/datasets/pull/7823
| 3,525,440,347
|
PR_kwDODunzps6uRkGa
| 7,823
|
Fix random seed on shuffle and interleave_datasets
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7823). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Cool ! To avoid unwanted side effects it could be implemented for every class instead of using `hasattr`, and also return a new instance instead of modifying it in place. Some other functions work like that already like `shuffle_data_sources` and `shard_data_sources`.\r\n\r\nReturning a new object is actually quite important otherwise iterating on the dataset multiple times would shift the RNGs every time",
"> Cool ! To avoid unwanted side effects it could be implemented for every class instead of using `hasattr`, and also return a new instance instead of modifying it in place. Some other functions work like that already like `shuffle_data_sources` and `shard_data_sources`.\r\n> \r\n> Returning a new object is actually quite important otherwise iterating on the dataset multiple times would shift the RNGs every time\r\n\r\nThanks for the review. \r\n\r\nI managed to return instances of `_BaseExamplesIterable` instead of modifying inplace and this shifts the seed correctly even in the case of multiple iterations (see additional test). But I kept the `hasattr` for the reason that we have chained ex_iterables (so an ex_iterable can have other ex_iterables) and for the child ex_iterable it is not clear if they do have a generator attribute (e.g. `ArrowExamplesIterable`, `RebatchedArrowExamplesIterable`, `SelectColumnsIterable`, `StepExamplesIterable`, `SkipExamplesIterable`, `RepeatExamplesIterable` all don't have that). We could implement a generic method `shift_rngs` on the baseclass and then just return the ex_iterable and get rid of `hasattr` but I'd prefer the `hasattr` solution here. Let me now what you think about that.\r\n "
] | 2025-10-17T10:21:47
| 2025-10-24T14:21:22
| 2025-10-24T14:04:36
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7823.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7823",
"merged_at": "2025-10-24T14:04:36",
"patch_url": "https://github.com/huggingface/datasets/pull/7823.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7823"
}
|
closes #7567
Add `shift_rngs` method to `ExamplesIterable` that is called directly after sharding. If a generator is available (not the case for all subclasses) we update the seed of the generator by shifting by the worker_id.
~This is just the fix for `shuffle`, in the corresponding issue `interleave_datasets` is mentioned as well, which won't be fixed with this approach.~
EDIT: This is a fix for `shuffle` and `interleave_datasets`. Adding recursivity to `shift_rngs` solved `interleave_datasets` as well. Not sure though if this is completely safe or if we could destroy something with that. I don't think so but could be wrong and appreciate some guidance from the maintainers. I also checked, on a single_worker we are always handing over `index=0` so that case preserves the seed the user specified.
|
{
"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/7823/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7823/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7822
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7822/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7822/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7822/events
|
https://github.com/huggingface/datasets/pull/7822
| 3,525,309,651
|
PR_kwDODunzps6uRKIJ
| 7,822
|
Retry open hf file
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7822). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-17T09:48:51
| 2025-10-17T09:52:05
| 2025-10-17T09:51:35
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7822.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7822",
"merged_at": "2025-10-17T09:51:35",
"patch_url": "https://github.com/huggingface/datasets/pull/7822.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7822"
}
|
Fix this error
```python
File "/workdir/.venv/lib/python3.13/site-packages/datasets/utils/file_utils.py", line 934, in xopen
file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open()
File "/workdir/.venv/lib/python3.13/site-packages/fsspec/core.py", line 147, in open
return self.__enter__()
~~~~~~~~~~~~~~^^
File "/workdir/.venv/lib/python3.13/site-packages/fsspec/core.py", line 105, in __enter__
f = self.fs.open(self.path, mode=mode)
File "/workdir/.venv/lib/python3.13/site-packages/fsspec/spec.py", line 1338, in open
f = self._open(
path,
...<4 lines>...
**kwargs,
)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 275, in _open
return HfFileSystemFile(self, path, mode=mode, revision=revision, block_size=block_size, **kwargs)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 950, in __init__
self.resolved_path = fs.resolve_path(path, revision=revision)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 198, in resolve_path
repo_and_revision_exist, err = self._repo_and_revision_exist(repo_type, repo_id, revision)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 125, in _repo_and_revision_exist
self._api.repo_info(
~~~~~~~~~~~~~~~~~~~^
repo_id, revision=revision, repo_type=repo_type, timeout=constants.HF_HUB_ETAG_TIMEOUT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2864, in repo_info
return method(
repo_id,
...<4 lines>...
files_metadata=files_metadata,
)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2721, in dataset_info
r = get_session().get(path, headers=headers, timeout=timeout, params=params)
File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 95, in send
return super().send(request, *args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workdir/.venv/lib/python3.13/site-packages/requests/adapters.py", line 690, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: e7e1ae72-54a0-4ce4-b011-144fb7a3fb06)')
```
which could also be related to
```python
File "/workdir/.venv/lib/python3.13/site-packages/datasets/utils/file_utils.py", line 1364, in _iter_from_urlpaths
raise FileNotFoundError(urlpath)
FileNotFoundError: hf://datasets/.../train-00013-of-00031.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"
}
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7822/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7822/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7821
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7821/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7821/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7821/events
|
https://github.com/huggingface/datasets/issues/7821
| 3,520,913,195
|
I_kwDODunzps7R3N8r
| 7,821
|
Building a dataset with large variable size arrays results in error ArrowInvalid: Value X too large to fit in C integer type
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51880718?v=4",
"events_url": "https://api.github.com/users/kkoutini/events{/privacy}",
"followers_url": "https://api.github.com/users/kkoutini/followers",
"following_url": "https://api.github.com/users/kkoutini/following{/other_user}",
"gists_url": "https://api.github.com/users/kkoutini/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kkoutini",
"id": 51880718,
"login": "kkoutini",
"node_id": "MDQ6VXNlcjUxODgwNzE4",
"organizations_url": "https://api.github.com/users/kkoutini/orgs",
"received_events_url": "https://api.github.com/users/kkoutini/received_events",
"repos_url": "https://api.github.com/users/kkoutini/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kkoutini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kkoutini/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kkoutini",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"Thanks for reporting ! You can fix this by specifying the output type explicitly and use `LargeList` which uses int64 for offsets:\n\n```python\nfeatures = Features({\"audio\": LargeList(Value(\"uint16\"))})\nds = ds.map(..., features=features)\n```\n\nIt would be cool to improve `list_of_pa_arrays_to_pyarrow_listarray()` to automatically use `LargeList` if the lists are longer than the int32 limit though. Contributions are welcome if you'd like to improve it"
] | 2025-10-16T08:45:17
| 2025-10-20T13:42:05
| null |
CONTRIBUTOR
| null | null | null | null |
### Describe the bug
I used map to store raw audio waveforms of variable lengths in a column of a dataset the `map` call fails with ArrowInvalid: Value X too large to fit in C integer type.
```
Traceback (most recent call last):
Traceback (most recent call last):
File "...lib/python3.12/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "...lib/python3.12/site-packages/datasets/utils/py_utils.py", line 678, in _write_generator_to_queue
for i, result in enumerate(func(**kwargs)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "...lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3526, in _map_single
writer.write_batch(batch)
File "...lib/python3.12/site-packages/datasets/arrow_writer.py", line 605, in write_batch
arrays.append(pa.array(typed_sequence))
^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/array.pxi", line 252, in pyarrow.lib.array
File "pyarrow/array.pxi", line 114, in pyarrow.lib._handle_arrow_array_protocol
File "...lib/python3.12/site-packages/datasets/arrow_writer.py", line 225, in __arrow_array__
out = list_of_np_array_to_pyarrow_listarray(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...lib/python3.12/site-packages/datasets/features/features.py", line 1538, in list_of_np_array_to_pyarrow_listarray
return list_of_pa_arrays_to_pyarrow_listarray(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...lib/python3.12/site-packages/datasets/features/features.py", line 1530, in list_of_pa_arrays_to_pyarrow_listarray
offsets = pa.array(offsets, type=pa.int32())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/array.pxi", line 362, in pyarrow.lib.array
File "pyarrow/array.pxi", line 87, in pyarrow.lib._ndarray_to_array
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Value 2148479376 too large to fit in C integer type
```
### Steps to reproduce the bug
Calling map on a dataset that returns a column with long 1d numpy arrays of variable length.
Example:
```python
# %%
import logging
import datasets
import pandas as pd
import numpy as np
# %%
def process_batch(batch, rank):
res = []
for _ in batch["id"]:
res.append(np.zeros((2**30)).astype(np.uint16))
return {"audio": res}
if __name__ == "__main__":
df = pd.DataFrame(
{
"id": list(range(400)),
}
)
ds = datasets.Dataset.from_pandas(df)
try:
from multiprocess import set_start_method
set_start_method("spawn")
except RuntimeError:
print("Spawn method already set, continuing...")
mapped_ds = ds.map(
process_batch,
batched=True,
batch_size=2,
with_rank=True,
num_proc=2,
cache_file_name="path_to_cache/tmp.arrow",
writer_batch_size=200,
remove_columns=ds.column_names,
# disable_nullable=True,
)
```
### Expected behavior
I think the offsets should be pa.int64() if needed and not forced to be `pa.int32()`
in https://github.com/huggingface/datasets/blob/3e13d30823f8ec498d56adbc18c6880a5463b313/src/datasets/features/features.py#L1535
### Environment info
- `datasets` version: 3.3.1
- Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.35
- Python version: 3.12.9
- `huggingface_hub` version: 0.29.0
- 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/7821/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7821/timeline
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7820
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7820/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7820/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7820/events
|
https://github.com/huggingface/datasets/pull/7820
| 3,518,633,577
|
PR_kwDODunzps6t6suZ
| 7,820
|
Keep hffs cache in workers when streaming
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7820). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-15T15:51:28
| 2025-10-17T09:59:17
| 2025-10-17T09:59:16
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7820.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7820",
"merged_at": "2025-10-17T09:59:16",
"patch_url": "https://github.com/huggingface/datasets/pull/7820.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7820"
}
|
(and also reorder the hffs args to improve caching)
When using `DataLoader(iterable_dataset, num_workers=...)` the dataset is pickled and passed to the worker. However previously the resulting dataset would be in a process with an empty hffs cache. By keeping the cache attached to `IterableDataset`, the cached hffs instances are pickled with the dataset and re-populates the cache in the DataLoader workers
this requires https://github.com/huggingface/huggingface_hub/pull/3443 to work effectively though, otherwise the unpickled hffs cache would start empty
cc @andimarafioti @ltmeyer
|
{
"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/7820/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7820/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7819
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7819/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7819/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7819/events
|
https://github.com/huggingface/datasets/issues/7819
| 3,517,086,110
|
I_kwDODunzps7Ronme
| 7,819
|
Cannot download opus dataset
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51946663?v=4",
"events_url": "https://api.github.com/users/liamsun2019/events{/privacy}",
"followers_url": "https://api.github.com/users/liamsun2019/followers",
"following_url": "https://api.github.com/users/liamsun2019/following{/other_user}",
"gists_url": "https://api.github.com/users/liamsun2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/liamsun2019",
"id": 51946663,
"login": "liamsun2019",
"node_id": "MDQ6VXNlcjUxOTQ2NjYz",
"organizations_url": "https://api.github.com/users/liamsun2019/orgs",
"received_events_url": "https://api.github.com/users/liamsun2019/received_events",
"repos_url": "https://api.github.com/users/liamsun2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/liamsun2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liamsun2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/liamsun2019",
"user_view_type": "public"
}
|
[] |
open
| false
| null |
[] | null |
[
"Hi ! it seems \"en-zh\" doesn't exist for this dataset\n\nYou can see the list of subsets here: https://huggingface.co/datasets/Helsinki-NLP/opus_books"
] | 2025-10-15T09:06:19
| 2025-10-20T13:45:16
| null |
NONE
| null | null | null | null |
When I tried to download opus_books using:
from datasets import load_dataset
dataset = load_dataset("Helsinki-NLP/opus_books")
I got the following errors:
FileNotFoundError: Couldn't find any data file at /workspace/Helsinki-NLP/opus_books. Couldn't find 'Helsinki-NLP/opus_books' on the Hugging Face Hub either: LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
I also tried:
dataset = load_dataset("opus_books", "en-zh")
and the errors remain the same. However, I can download "mlabonne/FineTome-100k" successfully.
My datasets is version 4.2.0
Any clues? Big thanks.
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7819/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7819/timeline
| null | null |
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7818
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7818/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7818/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7818/events
|
https://github.com/huggingface/datasets/issues/7818
| 3,515,887,618
|
I_kwDODunzps7RkDAC
| 7,818
|
train_test_split and stratify breaks with Numpy 2.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24845694?v=4",
"events_url": "https://api.github.com/users/davebulaval/events{/privacy}",
"followers_url": "https://api.github.com/users/davebulaval/followers",
"following_url": "https://api.github.com/users/davebulaval/following{/other_user}",
"gists_url": "https://api.github.com/users/davebulaval/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davebulaval",
"id": 24845694,
"login": "davebulaval",
"node_id": "MDQ6VXNlcjI0ODQ1Njk0",
"organizations_url": "https://api.github.com/users/davebulaval/orgs",
"received_events_url": "https://api.github.com/users/davebulaval/received_events",
"repos_url": "https://api.github.com/users/davebulaval/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davebulaval/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davebulaval/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davebulaval",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"I can't reproduce this. Could you pls provide an example with a public dataset/artificial dataset and show how you loaded that?\n\nThis works for me:\n\n```python\nimport numpy as np\nfrom datasets import Dataset, Features, ClassLabel, Value\n\ndata = {\"text\": [f\"sample_{i}\" for i in range(100)], \"label\": [i % 3 for i in range(100)]}\nfeatures = Features({\"text\": Value(\"string\"),\n \"label\": ClassLabel(names=[\"class_0\", \"class_1\", \"class_2\"])})\ndataset = Dataset.from_dict(data, features=features)\nsplits = dataset.train_test_split(test_size=0.2, stratify_by_column=\"label\")\nprint(f\"Success with numpy {np.__version__}\")\n```\nbut it also works for `numpy<2`",
"@davebulaval tried with numpy 2.3.4, and maybe i have successfully reproduced the bug!\n```\nValueError: Unable to avoid copy while creating an array as requested.\nIf using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).\nFor more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.\n```\n\nAlso i downgraded to numpy 1.26.4\n```\n(hf-reproduce) F:\\Python\\Machine learning\\reproducing>python repro.py\nDatasetDict({\n train: Dataset({\n features: ['text', 'label'],\n num_rows: 16\n })\n test: Dataset({\n features: ['text', 'label'],\n num_rows: 4\n })\n})\n```",
"Also @CloseChoice The bug only appears in cases where the Arrow array cannot be represented as a contiguous NumPy array without copying.\n\nSo closing the discussion loop here - \n\nThe error occurs because `train_test_split(..., stratify_by_column=...)` attempts to convert\nan Arrow column to a NumPy array using `np.array(..., copy=False)`.\n\nIn NumPy <2.0 this silently allowed a copy if needed.\nIn NumPy ≥2.0 this raises:\nValueError: Unable to avoid copy while creating an array as requested.\n\nThis only happens when the Arrow column is not contiguous in memory, which explains\nwhy some datasets reproduce it and others do not."
] | 2025-10-15T00:01:19
| 2025-10-28T16:10:44
| 2025-10-28T16:10:44
|
NONE
| null | null | null | null |
### Describe the bug
As stated in the title, since Numpy changed in version >2.0 with copy, the stratify parameters break.
e.g. `all_dataset.train_test_split(test_size=0.2,stratify_by_column="label")` returns a Numpy error.
It works if you downgrade Numpy to a version lower than 2.0.
### Steps to reproduce the bug
1. Numpy > 2.0
2. `all_dataset.train_test_split(test_size=0.2,stratify_by_column="label")`
### Expected behavior
It returns a stratified split as per the results of Numpy < 2.0
### Environment info
- `datasets` version: 2.14.4
- Platform: Linux-6.8.0-85-generic-x86_64-with-glibc2.35
- Python version: 3.13.7
- Huggingface_hub version: 0.34.4
- PyArrow version: 19.0.0
- Pandas version: 2.3.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/7818/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7818/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7817
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7817/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7817/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7817/events
|
https://github.com/huggingface/datasets/pull/7817
| 3,515,755,952
|
PR_kwDODunzps6tw-GG
| 7,817
|
fix: better args passthrough for `_batch_setitems()`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/58419736?v=4",
"events_url": "https://api.github.com/users/sghng/events{/privacy}",
"followers_url": "https://api.github.com/users/sghng/followers",
"following_url": "https://api.github.com/users/sghng/following{/other_user}",
"gists_url": "https://api.github.com/users/sghng/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sghng",
"id": 58419736,
"login": "sghng",
"node_id": "MDQ6VXNlcjU4NDE5NzM2",
"organizations_url": "https://api.github.com/users/sghng/orgs",
"received_events_url": "https://api.github.com/users/sghng/received_events",
"repos_url": "https://api.github.com/users/sghng/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sghng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sghng/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sghng",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"@sghng There is a regression with python 3.13.8 when lm-eval is calling datasets load\r\n\r\n```python\r\nself = <test_llama3_2.TestLlama3_2 testMethod=test_llama3_2>\r\n\r\n def test_llama3_2(self):\r\n> self.quant_lm_eval()\r\n\r\ntests/models/test_llama3_2.py:35: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\ntests/models/model_test.py:773: in quant_lm_eval\r\n self.model, _ = self.quantModel(self.NATIVE_MODEL_ID, batch_size=self.QUANT_BATCH_SIZE, trust_remote_code=self.TRUST_REMOTE_CODE, dtype=self.TORCH_DTYPE)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\ntests/models/model_test.py:588: in quantModel\r\n reuse_candidates = self.perform_post_quant_validation(path, trust_remote_code=trust_remote_code)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\ntests/models/model_test.py:250: in perform_post_quant_validation\r\n arc_records[backend] = self.run_arc_challenge_eval(model, backend, trust_remote_code=trust_remote_code)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\ntests/models/model_test.py:217: in run_arc_challenge_eval\r\n task_results = self.lm_eval(\r\ntests/models/model_test.py:753: in lm_eval\r\n raise e\r\ntests/models/model_test.py:699: in lm_eval\r\n results = GPTQModel.eval(\r\ngptqmodel/models/auto.py:474: in eval\r\n results = simple_evaluate(\r\n../lm-evaluation-harness/lm_eval/utils.py:456: in _wrapper\r\n return fn(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^\r\n../lm-evaluation-harness/lm_eval/evaluator.py:283: in simple_evaluate\r\n task_dict = get_task_dict(\r\n../lm-evaluation-harness/lm_eval/tasks/__init__.py:635: in get_task_dict\r\n task_name_from_string_dict = task_manager.load_task_or_group(\r\n../lm-evaluation-harness/lm_eval/tasks/__init__.py:426: in load_task_or_group\r\n collections.ChainMap(\r\n../lm-evaluation-harness/lm_eval/tasks/__init__.py:428: in <lambda>\r\n lambda task: self._load_individual_task_or_group(task),\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n../lm-evaluation-harness/lm_eval/tasks/__init__.py:326: in _load_individual_task_or_group\r\n return _load_task(task_config, task=name_or_config)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n../lm-evaluation-harness/lm_eval/tasks/__init__.py:286: in _load_task\r\n task_object = ConfigurableTask(config=config)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n../lm-evaluation-harness/lm_eval/api/task.py:865: in __init__\r\n self.download(self.config.dataset_kwargs)\r\n../lm-evaluation-harness/lm_eval/api/task.py:997: in download\r\n self.dataset = datasets.load_dataset(\r\n../datasets/src/datasets/load.py:1397: in load_dataset\r\n builder_instance = load_dataset_builder(\r\n../datasets/src/datasets/load.py:1185: in load_dataset_builder\r\n builder_instance._use_legacy_cache_dir_if_possible(dataset_module)\r\n../datasets/src/datasets/builder.py:612: in _use_legacy_cache_dir_if_possible\r\n self._check_legacy_cache2(dataset_module) or self._check_legacy_cache() or None\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n../datasets/src/datasets/builder.py:485: in _check_legacy_cache2\r\n config_id = self.config.name + \"-\" + Hasher.hash({\"data_files\": self.config.data_files})\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n../datasets/src/datasets/fingerprint.py:188: in hash\r\n return cls.hash_bytes(dumps(value))\r\n ^^^^^^^^^^^^\r\n../datasets/src/datasets/utils/_dill.py:120: in dumps\r\n dump(obj, file)\r\n../datasets/src/datasets/utils/_dill.py:114: in dump\r\n Pickler(file, recurse=True).dump(obj)\r\n../vm313t/lib/python3.13t/site-packages/dill/_dill.py:428: in dump\r\n StockPickler.dump(self, obj)\r\n/usr/lib/python3.13/pickle.py:484: in dump\r\n self.save(obj)\r\n../datasets/src/datasets/utils/_dill.py:70: in save\r\n dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\r\n../vm313t/lib/python3.13t/site-packages/dill/_dill.py:422: in save\r\n StockPickler.save(self, obj, save_persistent_id)\r\n/usr/lib/python3.13/pickle.py:558: in save\r\n f(self, obj) # Call unbound method with explicit self\r\n ^^^^^^^^^^^^\r\n../vm313t/lib/python3.13t/site-packages/dill/_dill.py:1262: in save_module_dict\r\n StockPickler.save_dict(pickler, obj)\r\n_ _ _ _ _ _ _ _ _`` _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nself = <datasets.utils._dill.Pickler object at 0x4eaf175e390>\r\nobj = {'data_files': {'train': ['hf://datasets/allenai/ai2_arc@210d026faf9955653af8916fad021475a3f00453/ARC-Challenge/train-...//datasets/allenai/ai2_arc@210d026faf9955653af8916fad021475a3f00453/ARC-Challenge/validation-00000-of-00001.parquet']}}\r\n\r\n def save_dict(self, obj):\r\n if self.bin:\r\n self.write(EMPTY_DICT)\r\n else: # proto 0 -- can't use EMPTY_DICT\r\n self.write(MARK + DICT)\r\n \r\n self.memoize(obj)\r\n> self._batch_setitems(obj.items())\r\nE TypeError: Pickler._batch_setitems() missing 1 required positional argument: 'obj'\r\n\r\n/usr/lib/python3.13/pickle.py:990: TypeError\r\n```\r\n\r\nPython 3.13.8\r\n```python\r\n(vm313t) root@gpu-base:~/datasets# pip show dill datasets transformers lm-eval\r\nName: dill\r\nVersion: 0.4.0\r\nSummary: serialize all of Python\r\nHome-page: https://github.com/uqfoundation/dill\r\nAuthor: Mike McKerns\r\nAuthor-email: [email protected]\r\nLicense: BSD-3-Clause\r\nLocation: /root/vm313t/lib/python3.13t/site-packages\r\nRequires: \r\nRequired-by: datasets, evaluate, GPTQModel, lm_eval, multiprocess\r\n---\r\nName: datasets\r\nVersion: 4.2.1.dev0 <-- this PR\r\nSummary: HuggingFace community-driven open-source library of datasets\r\nHome-page: https://github.com/huggingface/datasets\r\nAuthor: HuggingFace Inc.\r\nAuthor-email: [email protected]\r\nLicense: Apache 2.0\r\nLocation: /root/vm313t/lib/python3.13t/site-packages\r\nEditable project location: /root/datasets\r\nRequires: dill, filelock, fsspec, httpx, huggingface-hub, multiprocess, numpy, packaging, pandas, pyarrow, pyyaml, requests, tqdm, xxhash\r\nRequired-by: evaluate, GPTQModel, lm_eval\r\n---\r\nName: transformers\r\nVersion: 4.57.1\r\nSummary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow\r\nHome-page: https://github.com/huggingface/transformers\r\nAuthor: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)\r\nAuthor-email: [email protected]\r\nLicense: Apache 2.0 License\r\nLocation: /root/vm313t/lib/python3.13t/site-packages\r\nRequires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, safetensors, tokenizers, tqdm\r\nRequired-by: GPTQModel, lm_eval, peft, tokenicer\r\n---\r\nName: lm_eval\r\nVersion: 0.4.9.1\r\nSummary: A framework for evaluating language models\r\nHome-page: https://github.com/EleutherAI/lm-evaluation-harness\r\nAuthor: \r\nAuthor-email: EleutherAI <[email protected]>\r\nLicense: MIT\r\nLocation: /root/vm313t/lib/python3.13t/site-packages\r\nEditable project location: /root/lm-evaluation-harness\r\nRequires: accelerate, datasets, dill, evaluate, jsonlines, more_itertools, numexpr, peft, pybind11, pytablewriter, rouge-score, sacrebleu, scikit-learn, sqlitedict, torch, tqdm-multiprocess, transformers, word2number, zstandard\r\nRequired-by: \r\n```",
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7817). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"@lhoestq Using `*args` works well. In fact we might as well pass through `**kwargs` as well to make the intent clearer.\r\n\r\nIt also appears to me that there could some other changes.\r\n\r\n```python\r\ndef _batch_setitems(self, items, obj):\r\n if self._legacy_no_dict_keys_sorting:\r\n return super()._batch_setitems(items)\r\n```\r\n\r\nPython dictionaries are insertion ordered official since Python 3.7, which came to end-of-life in mid 2023 already. I tried installing `datasets` for Python 3.8 and it resolves to version `3.1`, so I think it's safe to drop this in latest version.\r\n\r\n```python\r\n dill.Pickler._batch_setitems(self, items)\r\n```\r\n\r\nThis line should simply be `return super()._batch_setitems(items)`, since we're already extending from `dill.Pickler`. (not having `return` in the original version is probably a bug)"
] | 2025-10-14T22:51:51
| 2025-10-28T17:32:12
| 2025-10-27T17:08:25
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7817.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7817",
"merged_at": "2025-10-27T17:08:25",
"patch_url": "https://github.com/huggingface/datasets/pull/7817.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7817"
}
|
In Python 3.14, there's a change in the signature of `_Pickler._batch_setitems`.
It's changed to:
```python
# pickle.py
def _batch_setitems(self, items, obj):
# Helper to batch up SETITEMS sequences; proto >= 1 only
save = self.save
write = self.write
```
To accomodate this, in `dill`, we have this compatibility code:
```python
if sys.hexversion < 0x30E00A1:
pickler._batch_setitems(iter(source.items()))
else:
pickler._batch_setitems(iter(source.items()), obj=obj)
```
Thus, the datasets package will emit this error
```
│ /Users/sghuang/mamba/envs/ds/lib/python3.14/site-packages/dill/_dill.py:1262 in save_module_dict │
│ │
│ 1259 │ │ if is_dill(pickler, child=False) and pickler._session: │
│ 1260 │ │ │ # we only care about session the first pass thru │
│ 1261 │ │ │ pickler._first_pass = False │
│ ❱ 1262 │ │ StockPickler.save_dict(pickler, obj) │
│ 1263 │ │ logger.trace(pickler, "# D2") │
│ 1264 │ return │
│ 1265 │
│ │
│ /Users/sghuang/mamba/envs/ds/lib/python3.14/pickle.py:1133 in save_dict │
│ │
│ 1130 │ │ print(f"Line number: {inspect.getsourcelines(method)[1]}") │
│ 1131 │ │ print(f"Full path: {inspect.getmodule(method)}") │
│ 1132 │ │ print(f"Class: {method.__qualname__}") │
│ ❱ 1133 │ │ self._batch_setitems(obj.items(), obj) │
│ 1134 │ │
│ 1135 │ dispatch[dict] = save_dict │
│ 1136 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given
[NOTE] when serializing datasets.table.InMemoryTable state
[NOTE] when serializing datasets.table.InMemoryTable object
```
To fix it, we update the signature of the `_batch_setitems` method defined in `utils/_dill.py`.
This fix should be backward compatible, since the compatibility is handled by `dill`.
This should close #7813.
Similar to https://github.com/joblib/joblib/issues/1658.
Related to https://github.com/uqfoundation/dill/pull/724.
|
{
"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": 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/7817/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7817/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7816
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7816/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7816/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7816/events
|
https://github.com/huggingface/datasets/issues/7816
| 3,512,210,206
|
I_kwDODunzps7RWBMe
| 7,816
|
disable_progress_bar() not working as expected
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5577741?v=4",
"events_url": "https://api.github.com/users/windmaple/events{/privacy}",
"followers_url": "https://api.github.com/users/windmaple/followers",
"following_url": "https://api.github.com/users/windmaple/following{/other_user}",
"gists_url": "https://api.github.com/users/windmaple/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/windmaple",
"id": 5577741,
"login": "windmaple",
"node_id": "MDQ6VXNlcjU1Nzc3NDE=",
"organizations_url": "https://api.github.com/users/windmaple/orgs",
"received_events_url": "https://api.github.com/users/windmaple/received_events",
"repos_url": "https://api.github.com/users/windmaple/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/windmaple/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/windmaple/subscriptions",
"type": "User",
"url": "https://api.github.com/users/windmaple",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"@xianbaoqian ",
"Closing this one since it's a Xet issue."
] | 2025-10-14T03:25:39
| 2025-10-14T23:49:26
| 2025-10-14T23:49:26
|
NONE
| null | null | null | null |
### Describe the bug
Hi,
I'm trying to load a dataset on Kaggle TPU image. There is some known compat issue with progress bar on Kaggle, so I'm trying to disable the progress bar globally. This does not work as you can see in [here](https://www.kaggle.com/code/windmaple/hf-datasets-issue).
In contract, disabling progress bar for snapshot_download() works as expected as in [here](https://www.kaggle.com/code/windmaple/snapshot-download-error).
### Steps to reproduce the bug
See this [notebook](https://www.kaggle.com/code/windmaple/hf-datasets-issue).
There is sth. wrong with `shell_paraent`.
### Expected behavior
The downloader should disable progress bar and move forward w/ no error.
### Environment info
The latest version as I did:
!pip install -U datasets ipywidgets ipykernel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5577741?v=4",
"events_url": "https://api.github.com/users/windmaple/events{/privacy}",
"followers_url": "https://api.github.com/users/windmaple/followers",
"following_url": "https://api.github.com/users/windmaple/following{/other_user}",
"gists_url": "https://api.github.com/users/windmaple/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/windmaple",
"id": 5577741,
"login": "windmaple",
"node_id": "MDQ6VXNlcjU1Nzc3NDE=",
"organizations_url": "https://api.github.com/users/windmaple/orgs",
"received_events_url": "https://api.github.com/users/windmaple/received_events",
"repos_url": "https://api.github.com/users/windmaple/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/windmaple/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/windmaple/subscriptions",
"type": "User",
"url": "https://api.github.com/users/windmaple",
"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/7816/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7816/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7815
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7815/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7815/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7815/events
|
https://github.com/huggingface/datasets/pull/7815
| 3,511,338,522
|
PR_kwDODunzps6tiDIT
| 7,815
|
Add nifti support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7815). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Btw I couldn't resist but share your PR with the community online on twitter already, I hope this is fine !",
"> Btw I couldn't resist but share your PR with the community online on twitter already, I hope this is fine !\r\n\r\nWow, that was quick! Thanks, already liked your comment, I appreciate it!",
"NIfTI support is out in `datasets==4.4.0` ! 🥳 \r\n\r\nBtw do you know a good NIfTI vizualizer in HTML/JS or using python ? We could add something like `.to_html()` (or equivalent) to view data in a notebook and enable the Dataset Viewer on HF if it can be useful\r\n\r\ncc @cfahlgren1 @georgiachanning for viz"
] | 2025-10-13T20:07:32
| 2025-11-04T11:45:31
| 2025-10-24T13:22:18
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7815.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7815",
"merged_at": "2025-10-24T13:22:18",
"patch_url": "https://github.com/huggingface/datasets/pull/7815.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7815"
}
|
Add support for NIfTI.
supports #7804
This PR follows https://github.com/huggingface/datasets/pull/7325 very closely
I am a bit unsure what we need to add to the `document_dataset.mdx` and `document_load.mdx`. I should probably create a dataset on the hub first to create this guide instead of copy+pasting from PDF.
Open todos:
- [x] create nifti dataset on the hub
- ~[ ] update `document_dataset.mdx` and `document_load.mdx`~
EDIT:
I tested with two datasets I created on the hub:
- https://huggingface.co/datasets/TobiasPitters/test-nifti-unzipped
- https://huggingface.co/datasets/TobiasPitters/test-nifti
for zipped (file extension `.nii.gz` and unzipped `.nii`) files and both seem to work fine. Also tested loading locally and that seems to work as well.
Here is the scriptsthat I ran against the hub:
```python
from pathlib import Path
from datasets import load_dataset
import nibabel as nib
dataset = load_dataset(
"TobiasPitters/test-nifti-unzipped",
split="test" # Load as single Dataset, not DatasetDict
)
print("length dataset unzipped:", len(dataset))
for item in dataset:
isinstance(item["nifti"], nib.nifti1.Nifti1Image)
dataset = load_dataset(
"TobiasPitters/test-nifti",
split="train" # Load as single Dataset, not DatasetDict
)
print("length dataset zipped:", len(dataset))
for item in dataset:
isinstance(item["nifti"], nib.nifti1.Nifti1Image)
```
|
{
"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/7815/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7815/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7814
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7814/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7814/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7814/events
|
https://github.com/huggingface/datasets/pull/7814
| 3,510,488,792
|
PR_kwDODunzps6tfJCm
| 7,814
|
Allow streaming hdf5 files
|
{
"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 |
[
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7814). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2025-10-13T15:25:44
| 2025-10-13T15:28:51
| 2025-10-13T15:28:49
|
MEMBER
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7814.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7814",
"merged_at": "2025-10-13T15:28:49",
"patch_url": "https://github.com/huggingface/datasets/pull/7814.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7814"
}
|
Add streaming support after https://github.com/huggingface/datasets/pull/7690, cc @klamike :)
## Details
in `datasets` loaders, `open()` is extended to work with files that are on disk but also on HF. Files on HF are streamed using HTTP range requests using the `HfFileSystem` implementation in the `huggingface_hub` library.
|
{
"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/7814/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7814/timeline
| null | null | null | null | true
|
https://api.github.com/repos/huggingface/datasets/issues/7813
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7813/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7813/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7813/events
|
https://github.com/huggingface/datasets/issues/7813
| 3,503,446,288
|
I_kwDODunzps7Q0lkQ
| 7,813
|
Caching does not work when using python3.14
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/142020129?v=4",
"events_url": "https://api.github.com/users/intexcor/events{/privacy}",
"followers_url": "https://api.github.com/users/intexcor/followers",
"following_url": "https://api.github.com/users/intexcor/following{/other_user}",
"gists_url": "https://api.github.com/users/intexcor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/intexcor",
"id": 142020129,
"login": "intexcor",
"node_id": "U_kgDOCHcOIQ",
"organizations_url": "https://api.github.com/users/intexcor/orgs",
"received_events_url": "https://api.github.com/users/intexcor/received_events",
"repos_url": "https://api.github.com/users/intexcor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/intexcor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/intexcor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/intexcor",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[
"https://github.com/uqfoundation/dill/issues/725",
"@intexcor does #7817 fix your problem?"
] | 2025-10-10T15:36:46
| 2025-10-27T17:08:26
| 2025-10-27T17:08:26
|
NONE
| null | null | null | null |
### Describe the bug
Traceback (most recent call last):
File "/workspace/ctn.py", line 8, in <module>
ds = load_dataset(f"naver-clova-ix/synthdog-{lang}") # или "synthdog-zh" для китайского
File "/workspace/.venv/lib/python3.14/site-packages/datasets/load.py", line 1397, in load_dataset
builder_instance = load_dataset_builder(
path=path,
...<10 lines>...
**config_kwargs,
)
File "/workspace/.venv/lib/python3.14/site-packages/datasets/load.py", line 1185, in load_dataset_builder
builder_instance._use_legacy_cache_dir_if_possible(dataset_module)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/builder.py", line 612, in _use_legacy_cache_dir_if_possible
self._check_legacy_cache2(dataset_module) or self._check_legacy_cache() or None
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/builder.py", line 485, in _check_legacy_cache2
config_id = self.config.name + "-" + Hasher.hash({"data_files": self.config.data_files})
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/fingerprint.py", line 188, in hash
return cls.hash_bytes(dumps(value))
~~~~~^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 120, in dumps
dump(obj, file)
~~~~^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 114, in dump
Pickler(file, recurse=True).dump(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 428, in dump
StockPickler.dump(self, obj)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/pickle.py", line 498, in dump
self.save(obj)
~~~~~~~~~^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 70, in save
dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 422, in save
StockPickler.save(self, obj, save_persistent_id)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/pickle.py", line 572, in save
f(self, obj) # Call unbound method with explicit self
~^^^^^^^^^^^
File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 1262, in save_module_dict
StockPickler.save_dict(pickler, obj)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/lib/python3.14/pickle.py", line 1064, in save_dict
self._batch_setitems(obj.items(), obj)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given
### Steps to reproduce the bug
ds_train = ds["train"].map(lambda x: {**x, "lang": lang})
### Expected behavior
Fixed bugs
### Environment info
- `datasets` version: 4.2.0
- Platform: Linux-6.8.0-85-generic-x86_64-with-glibc2.39
- Python version: 3.14.0
- `huggingface_hub` version: 0.35.3
- PyArrow version: 21.0.0
- Pandas version: 2.3.3
- `fsspec` version: 2025.9.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/7813/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7813/timeline
| null |
completed
|
{
"completed": 0,
"percent_completed": 0,
"total": 0
}
|
{
"blocked_by": 0,
"blocking": 0,
"total_blocked_by": 0,
"total_blocking": 0
}
| false
|
https://api.github.com/repos/huggingface/datasets/issues/7812
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7812/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7812/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7812/events
|
https://github.com/huggingface/datasets/pull/7812
| 3,500,901,422
|
PR_kwDODunzps6s_New
| 7,812
|
docs: document_dataset PDFs & OCR
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34215814?v=4",
"events_url": "https://api.github.com/users/ethanknights/events{/privacy}",
"followers_url": "https://api.github.com/users/ethanknights/followers",
"following_url": "https://api.github.com/users/ethanknights/following{/other_user}",
"gists_url": "https://api.github.com/users/ethanknights/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ethanknights",
"id": 34215814,
"login": "ethanknights",
"node_id": "MDQ6VXNlcjM0MjE1ODE0",
"organizations_url": "https://api.github.com/users/ethanknights/orgs",
"received_events_url": "https://api.github.com/users/ethanknights/received_events",
"repos_url": "https://api.github.com/users/ethanknights/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ethanknights/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ethanknights/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ethanknights",
"user_view_type": "public"
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2025-10-09T23:31:41
| 2025-10-20T14:03:53
| 2025-10-20T14:03:53
|
CONTRIBUTOR
| null | null | false
|
{
"diff_url": "https://github.com/huggingface/datasets/pull/7812.diff",
"html_url": "https://github.com/huggingface/datasets/pull/7812",
"merged_at": "2025-10-20T14:03:53",
"patch_url": "https://github.com/huggingface/datasets/pull/7812.patch",
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7812"
}
|
Use acronyms consistently across document_dataset 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"
}
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/huggingface/datasets/issues/7812/reactions"
}
|
https://api.github.com/repos/huggingface/datasets/issues/7812/timeline
| null | null | null | null | true
|
Multi-repo GitHub Issues — example dataset
Short description
This dataset contains GitHub issues collected from multiple large open-source repositories (sampled): huggingface/datasets, pytorch/pytorch, tensorflow/tensorflow. Each row is one GitHub Issue (pull requests excluded). The dataset includes derived fields (time_to_close_days, label_count, body lengths) suitable for analytics and demonstration of dataset publishing workflows.
Files
data/github_issues_datasets-Sulakshana.csv— CSV table.data/github_issues_datasets-Sulakshana.parquet— Parquet file.data/github_issues_datasets-Sulakshana.jsonl— JSON Lines.
Schema (columns): repo, 'issue_id', 'number', 'title', 'body', 'state', 'created_at', 'updated_at', 'closed_at', 'comments', 'html_url', 'user_login', 'user_id', 'label_names', 'has_parent_issue_url', 'title_word_count', 'body_char_count', 'labels_count', 'resolved_at', 'body_length_category'
How data was collected
Data were retrieved via the GitHub REST API v3 (https://api.github.com) by paging the issues endpoints for each repository listed above. Collection date: 2025-11-04. Some fields (e.g., sample_comments) may have been omitted to reduce sensitive content.
License, privacy & attribution
- This derived dataset is released under CC-BY-4.0.
- Source data are public GitHub issues; original issue authors retain their original contributions under GitHub's terms. Each record contains
html_urllinking to the original issue — please attribute as appropriate. - The dataset includes public usernames. If you will publish models or downstream artifacts, consider pseudonymizing or removing
user_loginandsample_comments. - Do not assume personal data minimization: if your use case requires removal of personal data or compliance with local laws (e.g., GDPR), perform appropriate redaction and document it here.
Intended uses and limitations
- For exploratory analysis, project analytics, and demonstration of dataset publishing. Not intended as a comprehensive snapshot of repository history; rate limits and pagination caps may have truncated older issues.
Contact / removal requests If an author requests removal of a specific record, please provide the issue URL and we will remove it from this dataset build. (Provide contact info or link to hub profile.)
- Downloads last month
- 52