url
stringlengths
61
61
repository_url
stringclasses
1 value
labels_url
stringlengths
75
75
comments_url
stringlengths
70
70
events_url
stringlengths
68
68
html_url
stringlengths
49
51
id
int64
986M
2.87B
node_id
stringlengths
18
32
number
int64
2.87k
7.42k
title
stringlengths
1
290
user
dict
labels
listlengths
0
4
state
stringclasses
2 values
locked
bool
1 class
assignee
dict
assignees
listlengths
0
4
milestone
dict
comments
sequencelengths
0
30
created_at
timestamp[s]
updated_at
timestamp[s]
closed_at
timestamp[s]
author_association
stringclasses
4 values
sub_issues_summary
dict
active_lock_reason
null
body
stringlengths
1
47.9k
closed_by
dict
reactions
dict
timeline_url
stringlengths
70
70
performed_via_github_app
null
state_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
is_pull_request
bool
2 classes
https://api.github.com/repos/huggingface/datasets/issues/7418
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7418/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7418/comments
https://api.github.com/repos/huggingface/datasets/issues/7418/events
https://github.com/huggingface/datasets/issues/7418
2,868,701,471
I_kwDODunzps6q_Okf
7,418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
{ "login": "alexxchen", "id": 15705569, "node_id": "MDQ6VXNlcjE1NzA1NTY5", "avatar_url": "https://avatars.githubusercontent.com/u/15705569?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alexxchen", "html_url": "https://github.com/alexxchen", "followers_url": "https://api.github.com/users/alexxchen/followers", "following_url": "https://api.github.com/users/alexxchen/following{/other_user}", "gists_url": "https://api.github.com/users/alexxchen/gists{/gist_id}", "starred_url": "https://api.github.com/users/alexxchen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexxchen/subscriptions", "organizations_url": "https://api.github.com/users/alexxchen/orgs", "repos_url": "https://api.github.com/users/alexxchen/repos", "events_url": "https://api.github.com/users/alexxchen/events{/privacy}", "received_events_url": "https://api.github.com/users/alexxchen/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "@lhoestq " ]
2025-02-21T10:58:06
2025-02-21T11:02:22
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful AI Assistant" def make_conversation(example): prompt = [] prompt.append({"role": "system", "content": system_prompt}) prompt.append( { "role": "user", "content": [ {"type": "image"}, {"type": "text", "text": example["problem"]}, ] } ) return {"prompt": prompt} def check_data_types(example): for key, value in example.items(): if key == 'image': if not isinstance(value, PngImagePlugin.PngImageFile): print(value) if key == "problem" or key == "solution": if not isinstance(value, str): print(value) return example dataset = dataset.map(check_data_types) dataset = dataset.map(make_conversation) ``` ### Expected behavior Successfully process the dataset with map ### Environment info datasets==3.3.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7418/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7418/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7417
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7417/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7417/comments
https://api.github.com/repos/huggingface/datasets/issues/7417/events
https://github.com/huggingface/datasets/pull/7417
2,866,868,922
PR_kwDODunzps6L78k3
7,417
set dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7417). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-20T17:45:29
2025-02-20T17:47:50
2025-02-20T17:45:36
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7417/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7417/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7417", "html_url": "https://github.com/huggingface/datasets/pull/7417", "diff_url": "https://github.com/huggingface/datasets/pull/7417.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7417.patch", "merged_at": "2025-02-20T17:45:36" }
true
https://api.github.com/repos/huggingface/datasets/issues/7416
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7416/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7416/comments
https://api.github.com/repos/huggingface/datasets/issues/7416/events
https://github.com/huggingface/datasets/pull/7416
2,866,862,143
PR_kwDODunzps6L77G2
7,416
Release: 3.3.2
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7416). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-20T17:42:11
2025-02-20T17:44:35
2025-02-20T17:43:28
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7416/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7416/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7416", "html_url": "https://github.com/huggingface/datasets/pull/7416", "diff_url": "https://github.com/huggingface/datasets/pull/7416.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7416.patch", "merged_at": "2025-02-20T17:43:28" }
true
https://api.github.com/repos/huggingface/datasets/issues/7415
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7415/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7415/comments
https://api.github.com/repos/huggingface/datasets/issues/7415/events
https://github.com/huggingface/datasets/issues/7415
2,865,774,546
I_kwDODunzps6q0D_S
7,415
Shard Dataset at specific indices
{ "login": "nikonikolov", "id": 11044035, "node_id": "MDQ6VXNlcjExMDQ0MDM1", "avatar_url": "https://avatars.githubusercontent.com/u/11044035?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nikonikolov", "html_url": "https://github.com/nikonikolov", "followers_url": "https://api.github.com/users/nikonikolov/followers", "following_url": "https://api.github.com/users/nikonikolov/following{/other_user}", "gists_url": "https://api.github.com/users/nikonikolov/gists{/gist_id}", "starred_url": "https://api.github.com/users/nikonikolov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nikonikolov/subscriptions", "organizations_url": "https://api.github.com/users/nikonikolov/orgs", "repos_url": "https://api.github.com/users/nikonikolov/repos", "events_url": "https://api.github.com/users/nikonikolov/events{/privacy}", "received_events_url": "https://api.github.com/users/nikonikolov/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! if it's an option I'd suggest to have one sequence per row instead.\n\nOtherwise you'd have to make your own save/load mechanism", "Saving one sequence per row is very difficult and heavy and makes all the optimizations pointless. How would a custom save/load mechanism look like?" ]
2025-02-20T10:43:10
2025-02-20T15:24:53
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from_disk`, how can I load just a subset of the shards to save memory and time on different ranks? I guess an alternative to this would be, given a loaded `Dataset`, how can I run `Dataset.shard` such that sharding doesn't split any episode across shards?
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7415/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7415/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7414
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7414/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7414/comments
https://api.github.com/repos/huggingface/datasets/issues/7414/events
https://github.com/huggingface/datasets/pull/7414
2,863,798,756
PR_kwDODunzps6LxjsH
7,414
Gracefully cancel async tasks
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7414). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-19T16:10:58
2025-02-20T14:12:26
2025-02-20T14:12:23
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7414/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7414/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7414", "html_url": "https://github.com/huggingface/datasets/pull/7414", "diff_url": "https://github.com/huggingface/datasets/pull/7414.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7414.patch", "merged_at": "2025-02-20T14:12:23" }
true
https://api.github.com/repos/huggingface/datasets/issues/7413
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7413/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7413/comments
https://api.github.com/repos/huggingface/datasets/issues/7413/events
https://github.com/huggingface/datasets/issues/7413
2,860,947,582
I_kwDODunzps6qhph-
7,413
Documentation on multiple media files of the same type with WebDataset
{ "login": "DCNemesis", "id": 3616964, "node_id": "MDQ6VXNlcjM2MTY5NjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3616964?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DCNemesis", "html_url": "https://github.com/DCNemesis", "followers_url": "https://api.github.com/users/DCNemesis/followers", "following_url": "https://api.github.com/users/DCNemesis/following{/other_user}", "gists_url": "https://api.github.com/users/DCNemesis/gists{/gist_id}", "starred_url": "https://api.github.com/users/DCNemesis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DCNemesis/subscriptions", "organizations_url": "https://api.github.com/users/DCNemesis/orgs", "repos_url": "https://api.github.com/users/DCNemesis/repos", "events_url": "https://api.github.com/users/DCNemesis/events{/privacy}", "received_events_url": "https://api.github.com/users/DCNemesis/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Yes this is correct and it works with huggingface datasets as well ! Feel free to include an example here: https://github.com/huggingface/datasets/blob/main/docs/source/video_dataset.mdx" ]
2025-02-18T16:13:20
2025-02-20T14:17:54
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
The [current documentation](https://huggingface.co/docs/datasets/en/video_dataset) on a creating a video dataset includes only examples with one media file and one json. It would be useful to have examples where multiple files of the same type are included. For example, in a sign language dataset, you may have a base video and a video annotation of the extracted pose. According to the WebDataset documentation, this should be able to be done with period separated filenames. For example: ```e39871fd9fd74f55.base.mp4 e39871fd9fd74f55.pose.mp4 e39871fd9fd74f55.json f18b91585c4d3f3e.base.mp4 f18b91585c4d3f3e.pose.mp4 f18b91585c4d3f3e.json ... ``` If you can confirm that this method of including multiple media files works with huggingface datasets and include an example in the documentation, I'd appreciate it.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7413/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7413/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7412
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7412/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7412/comments
https://api.github.com/repos/huggingface/datasets/issues/7412/events
https://github.com/huggingface/datasets/issues/7412
2,859,433,710
I_kwDODunzps6qb37u
7,412
Index Error Invalid Ket is out of bounds for size 0 for code-search-net/code_search_net dataset
{ "login": "harshakhmk", "id": 56113657, "node_id": "MDQ6VXNlcjU2MTEzNjU3", "avatar_url": "https://avatars.githubusercontent.com/u/56113657?v=4", "gravatar_id": "", "url": "https://api.github.com/users/harshakhmk", "html_url": "https://github.com/harshakhmk", "followers_url": "https://api.github.com/users/harshakhmk/followers", "following_url": "https://api.github.com/users/harshakhmk/following{/other_user}", "gists_url": "https://api.github.com/users/harshakhmk/gists{/gist_id}", "starred_url": "https://api.github.com/users/harshakhmk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/harshakhmk/subscriptions", "organizations_url": "https://api.github.com/users/harshakhmk/orgs", "repos_url": "https://api.github.com/users/harshakhmk/repos", "events_url": "https://api.github.com/users/harshakhmk/events{/privacy}", "received_events_url": "https://api.github.com/users/harshakhmk/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-02-18T05:58:33
2025-02-18T06:42:07
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I am trying to do model pruning on sentence-transformers/all-mini-L6-v2 for the code-search-net/code_search_net dataset using INCTrainer class However I am getting below error ``` raise IndexError(f"Invalid Key: {key is our of bounds for size {size}") IndexError: Invalid key: 1840208 is out of bounds for size 0 ``` ### Steps to reproduce the bug Model pruning on the above dataset using the below guide https://huggingface.co/docs/optimum/en/intel/neural_compressor/optimization#pruning ### Expected behavior The modsl should be successfully pruned ### Environment info Torch version: 2.4.1 Python version: 3.8.10
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7412/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7412/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7411
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7411/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7411/comments
https://api.github.com/repos/huggingface/datasets/issues/7411/events
https://github.com/huggingface/datasets/pull/7411
2,858,993,390
PR_kwDODunzps6LhV0Z
7,411
Attempt to fix multiprocessing hang by closing and joining the pool before termination
{ "login": "dakinggg", "id": 43149077, "node_id": "MDQ6VXNlcjQzMTQ5MDc3", "avatar_url": "https://avatars.githubusercontent.com/u/43149077?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dakinggg", "html_url": "https://github.com/dakinggg", "followers_url": "https://api.github.com/users/dakinggg/followers", "following_url": "https://api.github.com/users/dakinggg/following{/other_user}", "gists_url": "https://api.github.com/users/dakinggg/gists{/gist_id}", "starred_url": "https://api.github.com/users/dakinggg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dakinggg/subscriptions", "organizations_url": "https://api.github.com/users/dakinggg/orgs", "repos_url": "https://api.github.com/users/dakinggg/repos", "events_url": "https://api.github.com/users/dakinggg/events{/privacy}", "received_events_url": "https://api.github.com/users/dakinggg/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7411). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Thanks for the fix! We have been affected by this a lot when we try to use LLM Foundry with larger multimodal ICL datasets. ", "@lorabit110 are you able to test it out for your case as well? Would be great to get a second validation that it actually fixes the issue. Thanks!" ]
2025-02-17T23:58:03
2025-02-19T21:11:24
2025-02-19T13:40:32
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
https://github.com/huggingface/datasets/issues/6393 has plagued me on and off for a very long time. I have had various workarounds (one time combining two filter calls into one filter call removed the issue, another time making rank 0 go first resolved a cache race condition, one time i think upgrading the version of something resolved it). I don't know hf datasets well enough to fully understand the root cause, but I _think_ this PR fixes it. Evidence: I have an LLM Foundry training yaml/script (datasets version 3.2.0) that results in a hang ~1/10 times (for a baseline for this testing, it was 2/36 runs that hung). I also reran with the latest datasets version (3.3.1) and got 4/36 hung. Installing datasets from this PR, I was able to successful run the script 144 times without a hang occurring. Assuming the base probability is 1/10, this should be more than enough times to have confidence it works. After adding some logging, I could see that the code hung during the __exit__ of the mp pool context manager, after all shards had been processed, and the tqdm context manager had exited. My best explanation: When multiprocessing pool __exit__ is called, it calls pool.terminate, which forcefully exits all the processes (and calls code related to this that I haven't looked at closely). I'm guessing this forceful termination has a bad interaction with some multithreading/multiprocessing that hf datasets does. If we instead call pool.close and pool.join before the pool.terminate happens, perhaps whatever that bad interaction is is able to complete gracefully, and then terminate call proceeds without issue. If this PR seems good to you, I'd be very appreciative if you were able to do a patch release including it. Thank you! @lhoestq
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7411/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7411/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7411", "html_url": "https://github.com/huggingface/datasets/pull/7411", "diff_url": "https://github.com/huggingface/datasets/pull/7411.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7411.patch", "merged_at": "2025-02-19T13:40:32" }
true
https://api.github.com/repos/huggingface/datasets/issues/7410
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7410/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7410/comments
https://api.github.com/repos/huggingface/datasets/issues/7410/events
https://github.com/huggingface/datasets/pull/7410
2,858,085,707
PR_kwDODunzps6LeQBF
7,410
Set dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7410). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:54:39
2025-02-17T14:56:58
2025-02-17T14:54:56
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7410/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7410/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7410", "html_url": "https://github.com/huggingface/datasets/pull/7410", "diff_url": "https://github.com/huggingface/datasets/pull/7410.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7410.patch", "merged_at": "2025-02-17T14:54:56" }
true
https://api.github.com/repos/huggingface/datasets/issues/7409
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7409/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7409/comments
https://api.github.com/repos/huggingface/datasets/issues/7409/events
https://github.com/huggingface/datasets/pull/7409
2,858,079,508
PR_kwDODunzps6LeOpY
7,409
Release: 3.3.1
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7409). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:52:12
2025-02-17T14:54:32
2025-02-17T14:53:13
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7409/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7409/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7409", "html_url": "https://github.com/huggingface/datasets/pull/7409", "diff_url": "https://github.com/huggingface/datasets/pull/7409.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7409.patch", "merged_at": "2025-02-17T14:53:13" }
true
https://api.github.com/repos/huggingface/datasets/issues/7408
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7408/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7408/comments
https://api.github.com/repos/huggingface/datasets/issues/7408/events
https://github.com/huggingface/datasets/pull/7408
2,858,012,313
PR_kwDODunzps6Ld_-m
7,408
Fix filter speed regression
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7408). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:25:32
2025-02-17T14:28:48
2025-02-17T14:28:46
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
close https://github.com/huggingface/datasets/issues/7404
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7408/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7408/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7408", "html_url": "https://github.com/huggingface/datasets/pull/7408", "diff_url": "https://github.com/huggingface/datasets/pull/7408.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7408.patch", "merged_at": "2025-02-17T14:28:46" }
true
https://api.github.com/repos/huggingface/datasets/issues/7407
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7407/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7407/comments
https://api.github.com/repos/huggingface/datasets/issues/7407/events
https://github.com/huggingface/datasets/pull/7407
2,856,517,442
PR_kwDODunzps6LY7y5
7,407
Update use_with_pandas.mdx: to_pandas() correction in last section
{ "login": "ibarrien", "id": 7552335, "node_id": "MDQ6VXNlcjc1NTIzMzU=", "avatar_url": "https://avatars.githubusercontent.com/u/7552335?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ibarrien", "html_url": "https://github.com/ibarrien", "followers_url": "https://api.github.com/users/ibarrien/followers", "following_url": "https://api.github.com/users/ibarrien/following{/other_user}", "gists_url": "https://api.github.com/users/ibarrien/gists{/gist_id}", "starred_url": "https://api.github.com/users/ibarrien/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ibarrien/subscriptions", "organizations_url": "https://api.github.com/users/ibarrien/orgs", "repos_url": "https://api.github.com/users/ibarrien/repos", "events_url": "https://api.github.com/users/ibarrien/events{/privacy}", "received_events_url": "https://api.github.com/users/ibarrien/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-02-17T01:53:31
2025-02-20T17:28:04
2025-02-20T17:28:04
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
last section ``to_pandas()"
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7407/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7407/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7407", "html_url": "https://github.com/huggingface/datasets/pull/7407", "diff_url": "https://github.com/huggingface/datasets/pull/7407.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7407.patch", "merged_at": "2025-02-20T17:28:04" }
true
https://api.github.com/repos/huggingface/datasets/issues/7406
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7406/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7406/comments
https://api.github.com/repos/huggingface/datasets/issues/7406/events
https://github.com/huggingface/datasets/issues/7406
2,856,441,206
I_kwDODunzps6qQdV2
7,406
Adding Core Maintainer List to CONTRIBUTING.md
{ "login": "jp1924", "id": 93233241, "node_id": "U_kgDOBY6gWQ", "avatar_url": "https://avatars.githubusercontent.com/u/93233241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jp1924", "html_url": "https://github.com/jp1924", "followers_url": "https://api.github.com/users/jp1924/followers", "following_url": "https://api.github.com/users/jp1924/following{/other_user}", "gists_url": "https://api.github.com/users/jp1924/gists{/gist_id}", "starred_url": "https://api.github.com/users/jp1924/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jp1924/subscriptions", "organizations_url": "https://api.github.com/users/jp1924/orgs", "repos_url": "https://api.github.com/users/jp1924/repos", "events_url": "https://api.github.com/users/jp1924/events{/privacy}", "received_events_url": "https://api.github.com/users/jp1924/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "@lhoestq", "there is no per-module maintainer and the list is me alone nowadays ^^'", "@lhoestq \nOh... I feel for you. \nWhat are your criteria for choosing a core maintainer? \nIt seems like it's too much work for you to manage all this code by yourself.\n\nAlso, if you don't mind, can you check this PR for me?\n#7368 I'd like this to be added as soon as possible because I need it." ]
2025-02-17T00:32:40
2025-02-19T01:28:38
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request I propose adding a core maintainer list to the `CONTRIBUTING.md` file. ### Motivation The Transformers and Liger-Kernel projects maintain lists of core maintainers for each module. However, the Datasets project doesn't have such a list. ### Your contribution I have nothing to add here.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7406/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7406/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7405
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7405/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7405/comments
https://api.github.com/repos/huggingface/datasets/issues/7405/events
https://github.com/huggingface/datasets/issues/7405
2,856,372,814
I_kwDODunzps6qQMpO
7,405
Lazy loading of environment variables
{ "login": "nikvaessen", "id": 7225987, "node_id": "MDQ6VXNlcjcyMjU5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/7225987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nikvaessen", "html_url": "https://github.com/nikvaessen", "followers_url": "https://api.github.com/users/nikvaessen/followers", "following_url": "https://api.github.com/users/nikvaessen/following{/other_user}", "gists_url": "https://api.github.com/users/nikvaessen/gists{/gist_id}", "starred_url": "https://api.github.com/users/nikvaessen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nikvaessen/subscriptions", "organizations_url": "https://api.github.com/users/nikvaessen/orgs", "repos_url": "https://api.github.com/users/nikvaessen/repos", "events_url": "https://api.github.com/users/nikvaessen/events{/privacy}", "received_events_url": "https://api.github.com/users/nikvaessen/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Many python packages out there, including `huggingface_hub`, do load the environment variables on import.\nYou should `load_dotenv()` before importing the libraries.\n\nFor example you can move all you imports inside your `main()` function" ]
2025-02-16T22:31:41
2025-02-17T15:17:18
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Loading a `.env` file after an `import datasets` call does not correctly use the environment variables. This is due the fact that environment variables are read at import time: https://github.com/huggingface/datasets/blob/de062f0552a810c52077543c1169c38c1f0c53fc/src/datasets/config.py#L155C1-L155C80 ### Steps to reproduce the bug ```bash # make tmp dir mkdir -p /tmp/debug-env # make .env file echo HF_HOME=/tmp/debug-env/data > /tmp/debug-env/.env # first load dotenv, downloads to /tmp/debug-env/data uv run --with datasets,python-dotenv python3 -c \ 'import dotenv; dotenv.load_dotenv("/tmp/debug-env/.env"); import datasets; datasets.load_dataset("Anthropic/hh-rlhf")' # first import datasets, downloads to `~/.cache/huggingface` uv run --with datasets,python-dotenv python3 -c \ 'import datasets; import dotenv; dotenv.load_dotenv("/tmp/debug-env/.env"); datasets.load_dataset("Anthropic/hh-rlhf")' ``` ### Expected behavior I expect that setting environment variables with something like this: ```python3 if __name__ == "__main__": load_dotenv() main() ``` works correctly. ### Environment info "datasets>=3.3.0",
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7405/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7405/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7404
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7404/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7404/comments
https://api.github.com/repos/huggingface/datasets/issues/7404/events
https://github.com/huggingface/datasets/issues/7404
2,856,366,207
I_kwDODunzps6qQLB_
7,404
Performance regression in `dataset.filter`
{ "login": "ttim", "id": 82200, "node_id": "MDQ6VXNlcjgyMjAw", "avatar_url": "https://avatars.githubusercontent.com/u/82200?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ttim", "html_url": "https://github.com/ttim", "followers_url": "https://api.github.com/users/ttim/followers", "following_url": "https://api.github.com/users/ttim/following{/other_user}", "gists_url": "https://api.github.com/users/ttim/gists{/gist_id}", "starred_url": "https://api.github.com/users/ttim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ttim/subscriptions", "organizations_url": "https://api.github.com/users/ttim/orgs", "repos_url": "https://api.github.com/users/ttim/repos", "events_url": "https://api.github.com/users/ttim/events{/privacy}", "received_events_url": "https://api.github.com/users/ttim/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false } ]
null
[ "Thanks for reporting, I'll fix the regression today", "I just released `datasets` 3.3.1 with a fix, let me know if it's good now :)", "@lhoestq it fixed the issue.\n\nThis was (very) fast, thank you very much!" ]
2025-02-16T22:19:14
2025-02-17T17:46:06
2025-02-17T14:28:48
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug We're filtering dataset of ~1M (small-ish) records. At some point in the code we do `dataset.filter`, before (including 3.2.0) it was taking couple of seconds, and now it takes 4 hours. We use 16 threads/workers, and stack trace at them look as follows: ``` Traceback (most recent call last): File "/python/lib/python3.12/site-packages/multiprocess/process.py", line 314, in _bootstrap self.run() File "/python/lib/python3.12/site-packages/multiprocess/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/python/lib/python3.12/site-packages/multiprocess/pool.py", line 125, in worker result = (True, func(*args, **kwds)) ^^^^^^^^^^^^^^^^^^^ File "/python/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 "/python/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3511, in _map_single for i, batch in iter_outputs(shard_iterable): File "/python/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3461, in iter_outputs yield i, apply_function(example, i, offset=offset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/python/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3390, in apply_function processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/python/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 6416, in get_indices_from_mask_function indices_array = indices_mapping.column(0).take(indices_array) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/table.pxi", line 1079, in pyarrow.lib.ChunkedArray.take File "/python/lib/python3.12/site-packages/pyarrow/compute.py", line 458, in take def take(data, indices, *, boundscheck=True, memory_pool=None): ``` ### Steps to reproduce the bug 1. Save dataset of 1M records in arrow 2. Filter it with 16 threads 3. Watch it take too long ### Expected behavior Filtering done fast ### Environment info datasets 3.3.0, python 3.12
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7404/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7404/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7402
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7402/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7402/comments
https://api.github.com/repos/huggingface/datasets/issues/7402/events
https://github.com/huggingface/datasets/pull/7402
2,855,880,858
PR_kwDODunzps6LW8G3
7,402
Fix a typo in arrow_dataset.py
{ "login": "jingedawang", "id": 7996256, "node_id": "MDQ6VXNlcjc5OTYyNTY=", "avatar_url": "https://avatars.githubusercontent.com/u/7996256?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jingedawang", "html_url": "https://github.com/jingedawang", "followers_url": "https://api.github.com/users/jingedawang/followers", "following_url": "https://api.github.com/users/jingedawang/following{/other_user}", "gists_url": "https://api.github.com/users/jingedawang/gists{/gist_id}", "starred_url": "https://api.github.com/users/jingedawang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jingedawang/subscriptions", "organizations_url": "https://api.github.com/users/jingedawang/orgs", "repos_url": "https://api.github.com/users/jingedawang/repos", "events_url": "https://api.github.com/users/jingedawang/events{/privacy}", "received_events_url": "https://api.github.com/users/jingedawang/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-02-16T04:52:02
2025-02-20T17:29:28
2025-02-20T17:29:28
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
"in the feature" should be "in the future"
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7402/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7402/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7402", "html_url": "https://github.com/huggingface/datasets/pull/7402", "diff_url": "https://github.com/huggingface/datasets/pull/7402.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7402.patch", "merged_at": "2025-02-20T17:29:28" }
true
https://api.github.com/repos/huggingface/datasets/issues/7401
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7401/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7401/comments
https://api.github.com/repos/huggingface/datasets/issues/7401/events
https://github.com/huggingface/datasets/pull/7401
2,853,260,869
PR_kwDODunzps6LOMSo
7,401
set dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7401). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-14T10:17:03
2025-02-14T10:19:20
2025-02-14T10:17:13
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7401/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7401/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7401", "html_url": "https://github.com/huggingface/datasets/pull/7401", "diff_url": "https://github.com/huggingface/datasets/pull/7401.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7401.patch", "merged_at": "2025-02-14T10:17:13" }
true
https://api.github.com/repos/huggingface/datasets/issues/7399
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7399/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7399/comments
https://api.github.com/repos/huggingface/datasets/issues/7399/events
https://github.com/huggingface/datasets/issues/7399
2,853,098,442
I_kwDODunzps6qDtPK
7,399
Synchronize parameters for various datasets
{ "login": "grofte", "id": 7976840, "node_id": "MDQ6VXNlcjc5NzY4NDA=", "avatar_url": "https://avatars.githubusercontent.com/u/7976840?v=4", "gravatar_id": "", "url": "https://api.github.com/users/grofte", "html_url": "https://github.com/grofte", "followers_url": "https://api.github.com/users/grofte/followers", "following_url": "https://api.github.com/users/grofte/following{/other_user}", "gists_url": "https://api.github.com/users/grofte/gists{/gist_id}", "starred_url": "https://api.github.com/users/grofte/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/grofte/subscriptions", "organizations_url": "https://api.github.com/users/grofte/orgs", "repos_url": "https://api.github.com/users/grofte/repos", "events_url": "https://api.github.com/users/grofte/events{/privacy}", "received_events_url": "https://api.github.com/users/grofte/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! the `desc` parameter is only available for Dataset / DatasetDict for the progress bar of `map()``\n\nSince IterableDataset only runs the map functions when you iterate over the dataset, there is no progress bar and `desc` is useless. We could still add the argument for parity but it wouldn't be used for anything", "I think you should add it. It doesn't hurt. The reason I ran into it was because I re-wrote a pipeline to use either a stream or a fully loaded dataset. Of course I can simply remove it but it is nice to have on the memory loaded dataset. " ]
2025-02-14T09:15:11
2025-02-19T11:50:29
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug [IterableDatasetDict](https://huggingface.co/docs/datasets/v3.2.0/en/package_reference/main_classes#datasets.IterableDatasetDict.map) map function is missing the `desc` parameter. You can see the equivalent map function for [Dataset here](https://huggingface.co/docs/datasets/v3.2.0/en/package_reference/main_classes#datasets.Dataset.map). There might be other parameters missing - I haven't checked. ### Steps to reproduce the bug from datasets import Dataset, IterableDataset, IterableDatasetDict ds = IterableDatasetDict({"train": Dataset.from_dict({"a": range(6)}).to_iterable_dataset(num_shards=3), "validate": Dataset.from_dict({"a": range(6)}).to_iterable_dataset(num_shards=3)}) for d in ds["train"]: print(d) ds = ds.map(lambda x: {k: v+1 for k, v in x.items()}, desc="increment") for d in ds["train"]: print(d) ### Expected behavior The description parameter should be available for all datasets (or none). ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-6.1.85+-x86_64-with-glibc2.35 - Python version: 3.11.11 - `huggingface_hub` version: 0.28.1 - PyArrow version: 17.0.0 - Pandas version: 2.2.2 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7399/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7399/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7398
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7398/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7398/comments
https://api.github.com/repos/huggingface/datasets/issues/7398/events
https://github.com/huggingface/datasets/pull/7398
2,853,097,869
PR_kwDODunzps6LNoDk
7,398
Release: 3.3.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7398). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-14T09:15:03
2025-02-14T09:57:39
2025-02-14T09:57:37
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7398/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7398/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7398", "html_url": "https://github.com/huggingface/datasets/pull/7398", "diff_url": "https://github.com/huggingface/datasets/pull/7398.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7398.patch", "merged_at": "2025-02-14T09:57:37" }
true
https://api.github.com/repos/huggingface/datasets/issues/7397
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7397/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7397/comments
https://api.github.com/repos/huggingface/datasets/issues/7397/events
https://github.com/huggingface/datasets/pull/7397
2,852,829,763
PR_kwDODunzps6LMuQD
7,397
Kannada dataset(Conversations, Wikipedia etc)
{ "login": "Likhith2612", "id": 146451281, "node_id": "U_kgDOCLqrUQ", "avatar_url": "https://avatars.githubusercontent.com/u/146451281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Likhith2612", "html_url": "https://github.com/Likhith2612", "followers_url": "https://api.github.com/users/Likhith2612/followers", "following_url": "https://api.github.com/users/Likhith2612/following{/other_user}", "gists_url": "https://api.github.com/users/Likhith2612/gists{/gist_id}", "starred_url": "https://api.github.com/users/Likhith2612/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Likhith2612/subscriptions", "organizations_url": "https://api.github.com/users/Likhith2612/orgs", "repos_url": "https://api.github.com/users/Likhith2612/repos", "events_url": "https://api.github.com/users/Likhith2612/events{/privacy}", "received_events_url": "https://api.github.com/users/Likhith2612/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hi ! feel free to uplad the CSV on https://huggingface.co/datasets :)\r\n\r\nwe don't store the datasets' data in this github repository" ]
2025-02-14T06:53:03
2025-02-20T17:28:54
2025-02-20T17:28:53
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7397/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7397/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7397", "html_url": "https://github.com/huggingface/datasets/pull/7397", "diff_url": "https://github.com/huggingface/datasets/pull/7397.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7397.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7400
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7400/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7400/comments
https://api.github.com/repos/huggingface/datasets/issues/7400/events
https://github.com/huggingface/datasets/issues/7400
2,853,201,277
I_kwDODunzps6qEGV9
7,400
504 Gateway Timeout when uploading large dataset to Hugging Face Hub
{ "login": "hotchpotch", "id": 3500, "node_id": "MDQ6VXNlcjM1MDA=", "avatar_url": "https://avatars.githubusercontent.com/u/3500?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hotchpotch", "html_url": "https://github.com/hotchpotch", "followers_url": "https://api.github.com/users/hotchpotch/followers", "following_url": "https://api.github.com/users/hotchpotch/following{/other_user}", "gists_url": "https://api.github.com/users/hotchpotch/gists{/gist_id}", "starred_url": "https://api.github.com/users/hotchpotch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hotchpotch/subscriptions", "organizations_url": "https://api.github.com/users/hotchpotch/orgs", "repos_url": "https://api.github.com/users/hotchpotch/repos", "events_url": "https://api.github.com/users/hotchpotch/events{/privacy}", "received_events_url": "https://api.github.com/users/hotchpotch/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "I transferred to the `datasets` repository. Is there any retry mechanism in `datasets` @lhoestq ?\n\nAnother solution @hotchpotch if you want to get your dataset pushed to the Hub in a robust way is to save it to a local folder first and then use `huggingface-cli upload-large-folder` (see https://huggingface.co/docs/huggingface_hub/guides/upload#upload-a-large-folder). It has better retry mechanism in case of failure.", "There is no retry mechanism for `api.preupload_lfs_files` in `push_to_hub()` but we can definitely add one here\n\nhttps://github.com/huggingface/datasets/blob/de062f0552a810c52077543c1169c38c1f0c53fc/src/datasets/arrow_dataset.py#L5372", "@Wauplin \n\nThank you! I believe that to use load_dataset() to read data from Hugging Face, we need to first save the markdown metadata and parquet files in our local filesystem, then upload them using upload-large-folder. If you know how to do this, could you please let me know?\n\n", "@lhoestq \n\nI see, so adding a retry mechanism there would solve it. If I continue to have issues, I'll consider implementing that kind of solution." ]
2025-02-14T02:18:35
2025-02-14T23:48:36
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Description I encountered consistent 504 Gateway Timeout errors while attempting to upload a large dataset (approximately 500GB) to the Hugging Face Hub. The upload fails during the process with a Gateway Timeout error. I will continue trying to upload. While it might succeed in future attempts, I wanted to report this issue in the meantime. ### Reproduction - I attempted the upload 3 times - Each attempt resulted in the same 504 error during the upload process (not at the start, but in the middle of the upload) - Using `dataset.push_to_hub()` method ### Environment Information ``` - huggingface_hub version: 0.28.0 - Platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.39 - Python version: 3.11.10 - Running in iPython ?: No - Running in notebook ?: No - Running in Google Colab ?: No - Running in Google Colab Enterprise ?: No - Token path ?: /home/hotchpotch/.cache/huggingface/token - Has saved token ?: True - Who am I ?: hotchpotch - Configured git credential helpers: store - FastAI: N/A - Tensorflow: N/A - Torch: 2.5.1 - Jinja2: 3.1.5 - Graphviz: N/A - keras: N/A - Pydot: N/A - Pillow: 10.4.0 - hf_transfer: N/A - gradio: N/A - tensorboard: N/A - numpy: 1.26.4 - pydantic: 2.10.6 - aiohttp: 3.11.11 - ENDPOINT: https://huggingface.co - HF_HUB_CACHE: /home/hotchpotch/.cache/huggingface/hub - HF_ASSETS_CACHE: /home/hotchpotch/.cache/huggingface/assets - HF_TOKEN_PATH: /home/hotchpotch/.cache/huggingface/token - HF_STORED_TOKENS_PATH: /home/hotchpotch/.cache/huggingface/stored_tokens - HF_HUB_OFFLINE: False - HF_HUB_DISABLE_TELEMETRY: False - HF_HUB_DISABLE_PROGRESS_BARS: None - HF_HUB_DISABLE_SYMLINKS_WARNING: False - HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False - HF_HUB_DISABLE_IMPLICIT_TOKEN: False - HF_HUB_ENABLE_HF_TRANSFER: False - HF_HUB_ETAG_TIMEOUT: 10 - HF_HUB_DOWNLOAD_TIMEOUT: 10 ``` ### Full Error Traceback ```python Traceback (most recent call last): File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status response.raise_for_status() File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/datasets/hotchpotch/fineweb-2-edu-japanese.git/info/lfs/objects/batch The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/create_edu_japanese_ds/upload_edu_japanese_ds.py", line 12, in <module> ds.push_to_hub("hotchpotch/fineweb-2-edu-japanese", private=True) File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/datasets/dataset_dict.py", line 1665, in push_to_hub split_additions, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/datasets/arrow_dataset.py", line 5301, in _push_parquet_shards_to_hub api.preupload_lfs_files( File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 4215, in preupload_lfs_files _upload_lfs_files( File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/_commit_api.py", line 395, in _upload_lfs_files batch_actions_chunk, batch_errors_chunk = post_lfs_batch_info( ^^^^^^^^^^^^^^^^^^^^ File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/lfs.py", line 168, in post_lfs_batch_info hf_raise_for_status(resp) File "/home/hotchpotch/src/github.com/hotchpotch/fineweb-2-edu-classifier-japanese/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 477, in hf_raise_for_status raise _format(HfHubHTTPError, str(e), response) from e huggingface_hub.errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/datasets/hotchpotch/fineweb-2-edu-japanese.git/info/lfs/objects/batch ```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7400/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7400/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7396
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7396/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7396/comments
https://api.github.com/repos/huggingface/datasets/issues/7396/events
https://github.com/huggingface/datasets/pull/7396
2,851,716,755
PR_kwDODunzps6LJBmT
7,396
Update README.md
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7396). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-13T17:44:36
2025-02-13T17:46:57
2025-02-13T17:44:51
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7396/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7396/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7396", "html_url": "https://github.com/huggingface/datasets/pull/7396", "diff_url": "https://github.com/huggingface/datasets/pull/7396.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7396.patch", "merged_at": "2025-02-13T17:44:51" }
true
https://api.github.com/repos/huggingface/datasets/issues/7395
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7395/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7395/comments
https://api.github.com/repos/huggingface/datasets/issues/7395/events
https://github.com/huggingface/datasets/pull/7395
2,851,575,160
PR_kwDODunzps6LIivQ
7,395
Update docs
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7395). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-13T16:43:15
2025-02-13T17:20:32
2025-02-13T17:20:30
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
- update min python version - replace canonical dataset names with new names - avoid examples with trust_remote_code
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7395/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7395/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7395", "html_url": "https://github.com/huggingface/datasets/pull/7395", "diff_url": "https://github.com/huggingface/datasets/pull/7395.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7395.patch", "merged_at": "2025-02-13T17:20:29" }
true
https://api.github.com/repos/huggingface/datasets/issues/7394
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7394/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7394/comments
https://api.github.com/repos/huggingface/datasets/issues/7394/events
https://github.com/huggingface/datasets/issues/7394
2,847,172,115
I_kwDODunzps6ptGYT
7,394
Using load_dataset with data_files and split arguments yields an error
{ "login": "devon-research", "id": 61103399, "node_id": "MDQ6VXNlcjYxMTAzMzk5", "avatar_url": "https://avatars.githubusercontent.com/u/61103399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/devon-research", "html_url": "https://github.com/devon-research", "followers_url": "https://api.github.com/users/devon-research/followers", "following_url": "https://api.github.com/users/devon-research/following{/other_user}", "gists_url": "https://api.github.com/users/devon-research/gists{/gist_id}", "starred_url": "https://api.github.com/users/devon-research/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devon-research/subscriptions", "organizations_url": "https://api.github.com/users/devon-research/orgs", "repos_url": "https://api.github.com/users/devon-research/repos", "events_url": "https://api.github.com/users/devon-research/events{/privacy}", "received_events_url": "https://api.github.com/users/devon-research/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-02-12T04:50:11
2025-02-12T04:50:11
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug It seems the list of valid splits recorded by the package becomes incorrectly overwritten when using the `data_files` argument. If I run ```python from datasets import load_dataset load_dataset("allenai/super", split="all_examples", data_files="tasks/expert.jsonl") ``` then I get the error ``` ValueError: Unknown split "all_examples". Should be one of ['train']. ``` However, if I run ```python from datasets import load_dataset load_dataset("allenai/super", split="train", name="Expert") ``` then I get ``` ValueError: Unknown split "train". Should be one of ['all_examples']. ``` ### Steps to reproduce the bug Run ```python from datasets import load_dataset load_dataset("allenai/super", split="all_examples", data_files="tasks/expert.jsonl") ``` ### Expected behavior No error. ### Environment info Python = 3.12 datasets = 3.2.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7394/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7394/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7393
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7393/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7393/comments
https://api.github.com/repos/huggingface/datasets/issues/7393/events
https://github.com/huggingface/datasets/pull/7393
2,846,446,674
PR_kwDODunzps6K3DiZ
7,393
Optimized sequence encoding for scalars
{ "login": "lukasgd", "id": 38319063, "node_id": "MDQ6VXNlcjM4MzE5MDYz", "avatar_url": "https://avatars.githubusercontent.com/u/38319063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lukasgd", "html_url": "https://github.com/lukasgd", "followers_url": "https://api.github.com/users/lukasgd/followers", "following_url": "https://api.github.com/users/lukasgd/following{/other_user}", "gists_url": "https://api.github.com/users/lukasgd/gists{/gist_id}", "starred_url": "https://api.github.com/users/lukasgd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lukasgd/subscriptions", "organizations_url": "https://api.github.com/users/lukasgd/orgs", "repos_url": "https://api.github.com/users/lukasgd/repos", "events_url": "https://api.github.com/users/lukasgd/events{/privacy}", "received_events_url": "https://api.github.com/users/lukasgd/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7393). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-11T20:30:44
2025-02-13T17:11:33
2025-02-13T17:11:32
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
The change in https://github.com/huggingface/datasets/pull/3197 introduced redundant list-comprehensions when `obj` is a long sequence of scalars. This becomes a noticeable overhead when loading data from an `IterableDataset` in the function `_apply_feature_types_on_example` and can be eliminated by adding a check for scalars in `encode_nested_example` proposed here. In the following code example ``` import time from datasets.features import Sequence, Value from datasets.features.features import encode_nested_example schema = Sequence(Value("int32")) obj = list(range(100000)) start = time.perf_counter() result = encode_nested_example(schema, obj) stop = time.perf_counter() print(f"Time spent is {stop-start} sec") ``` `encode_nested_example` becomes 492x faster (from 0.0769 to 0.0002 sec), respectively 322x (from 0.00814 to 0.00003 sec) for a list of length 10000, on a GH200 system, making it unnoticeable when loading data with tokenization. Another change is made to avoid creating arrays from scalars and afterwards re-extracting them during casting to python (`obj == obj.__array__()[()]` in that case), which avoids a regression in the array write benchmarks.
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7393/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7393/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7393", "html_url": "https://github.com/huggingface/datasets/pull/7393", "diff_url": "https://github.com/huggingface/datasets/pull/7393.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7393.patch", "merged_at": "2025-02-13T17:11:32" }
true
https://api.github.com/repos/huggingface/datasets/issues/7392
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7392/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7392/comments
https://api.github.com/repos/huggingface/datasets/issues/7392/events
https://github.com/huggingface/datasets/issues/7392
2,846,095,043
I_kwDODunzps6po_bD
7,392
push_to_hub payload too large error when using large ClassLabel feature
{ "login": "DavidRConnell", "id": 35470740, "node_id": "MDQ6VXNlcjM1NDcwNzQw", "avatar_url": "https://avatars.githubusercontent.com/u/35470740?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidRConnell", "html_url": "https://github.com/DavidRConnell", "followers_url": "https://api.github.com/users/DavidRConnell/followers", "following_url": "https://api.github.com/users/DavidRConnell/following{/other_user}", "gists_url": "https://api.github.com/users/DavidRConnell/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidRConnell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidRConnell/subscriptions", "organizations_url": "https://api.github.com/users/DavidRConnell/orgs", "repos_url": "https://api.github.com/users/DavidRConnell/repos", "events_url": "https://api.github.com/users/DavidRConnell/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidRConnell/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "See also <https://discuss.huggingface.co/t/datasetdict-push-to-hub-failing-with-payload-to-large/140083/8>\n" ]
2025-02-11T17:51:34
2025-02-11T18:01:31
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug When using `datasets.DatasetDict.push_to_hub` an `HfHubHTTPError: 413 Client Error: Payload Too Large for url` is raised if the dataset contains a large `ClassLabel` feature. Even if the total size of the dataset is small. ### Steps to reproduce the bug ``` python import random import sys import datasets random.seed(42) def random_str(sz): return "".join(chr(random.randint(ord("a"), ord("z"))) for _ in range(sz)) data = datasets.DatasetDict( { str(i): datasets.Dataset.from_dict( { "label": [list(range(3)) for _ in range(10)], "abstract": [random_str(10_000) for _ in range(10)], }, ) for i in range(3) } ) features = data["1"].features.copy() features["label"] = datasets.Sequence( datasets.ClassLabel(names=[str(i) for i in range(50_000)]) ) data = data.map(lambda examples: {}, features=features) feat_size = sys.getsizeof(data["1"].features["label"].feature.names) print(f"Size of ClassLabel names: {feat_size}") # Size of ClassLabel names: 444376 data.push_to_hub("dconnell/pubtator3_test") ``` Note that this succeeds if `ClassLabel` has fewer names or if `ClassLabel` is replaced with `Value("int64")` ### Expected behavior Should push the dataset to hub. ### Environment info Copy-and-paste the text below in your GitHub issue. - `datasets` version: 3.2.0 - Platform: Linux-5.15.0-126-generic-x86_64-with-glibc2.35 - Python version: 3.12.8 - `huggingface_hub` version: 0.28.1 - PyArrow version: 19.0.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7392/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7392/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7391
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7391/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7391/comments
https://api.github.com/repos/huggingface/datasets/issues/7391/events
https://github.com/huggingface/datasets/issues/7391
2,845,184,764
I_kwDODunzps6plhL8
7,391
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
{ "login": "LinXin04", "id": 25193686, "node_id": "MDQ6VXNlcjI1MTkzNjg2", "avatar_url": "https://avatars.githubusercontent.com/u/25193686?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LinXin04", "html_url": "https://github.com/LinXin04", "followers_url": "https://api.github.com/users/LinXin04/followers", "following_url": "https://api.github.com/users/LinXin04/following{/other_user}", "gists_url": "https://api.github.com/users/LinXin04/gists{/gist_id}", "starred_url": "https://api.github.com/users/LinXin04/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LinXin04/subscriptions", "organizations_url": "https://api.github.com/users/LinXin04/orgs", "repos_url": "https://api.github.com/users/LinXin04/repos", "events_url": "https://api.github.com/users/LinXin04/events{/privacy}", "received_events_url": "https://api.github.com/users/LinXin04/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-02-11T12:02:26
2025-02-11T12:02:26
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
pyarrow 尝试了若干个版本都不可以
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7391/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7391/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7390
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7390/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7390/comments
https://api.github.com/repos/huggingface/datasets/issues/7390/events
https://github.com/huggingface/datasets/issues/7390
2,843,813,365
I_kwDODunzps6pgSX1
7,390
Re-add py.typed
{ "login": "NeilGirdhar", "id": 730137, "node_id": "MDQ6VXNlcjczMDEzNw==", "avatar_url": "https://avatars.githubusercontent.com/u/730137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/NeilGirdhar", "html_url": "https://github.com/NeilGirdhar", "followers_url": "https://api.github.com/users/NeilGirdhar/followers", "following_url": "https://api.github.com/users/NeilGirdhar/following{/other_user}", "gists_url": "https://api.github.com/users/NeilGirdhar/gists{/gist_id}", "starred_url": "https://api.github.com/users/NeilGirdhar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NeilGirdhar/subscriptions", "organizations_url": "https://api.github.com/users/NeilGirdhar/orgs", "repos_url": "https://api.github.com/users/NeilGirdhar/repos", "events_url": "https://api.github.com/users/NeilGirdhar/events{/privacy}", "received_events_url": "https://api.github.com/users/NeilGirdhar/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[]
2025-02-10T22:12:52
2025-02-10T22:12:52
null
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request The motivation for removing py.typed no longer seems to apply. Would a solution like [this one](https://github.com/huggingface/huggingface_hub/pull/2752) work here? ### Motivation MyPy support is broken. As more type checkers come out, such as RedKnot, these may also be broken. It would be good to be PEP 561 compliant as long as it's not too onerous. ### Your contribution I can re-add py.typed, but I don't know how to make sur all of the `__all__` files are provided (although you may not need to with modern PyRight).
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7390/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7390/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7389
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7389/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7389/comments
https://api.github.com/repos/huggingface/datasets/issues/7389/events
https://github.com/huggingface/datasets/issues/7389
2,843,592,606
I_kwDODunzps6pfcee
7,389
Getting statistics about filtered examples
{ "login": "jonathanasdf", "id": 511073, "node_id": "MDQ6VXNlcjUxMTA3Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathanasdf", "html_url": "https://github.com/jonathanasdf", "followers_url": "https://api.github.com/users/jonathanasdf/followers", "following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions", "organizations_url": "https://api.github.com/users/jonathanasdf/orgs", "repos_url": "https://api.github.com/users/jonathanasdf/repos", "events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathanasdf/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "You can actually track a running sum in map() or filter() :)\n\n```python\nnum_filtered = 0\n\ndef f(x):\n global num_filtered\n condition = len(x[\"text\"]) < 1000\n if not condition:\n num_filtered += 1\n return condition\n\nds = ds.filter(f)\nprint(num_filtered)\n```\n\nand if you want to use multiprocessing, make sure to use a variable that is shared across processes\n\n\n```python\nfrom multiprocess import Manager\n\nmanager = Manager()\nnum_filtered = manager.Value('i', 0)\n\ndef f(x):\n global num_filtered\n condition = len(x[\"text\"]) < 1000\n if not condition:\n num_filtered.value += 1\n return condition\n\nds = ds.filter(f, num_proc=4)\nprint(num_filtered.value)\n```\n\nPS: `datasets` uses `multiprocess` instead of the `multiprocessing` package to support lambda functions in map() and filter()", "Oh that's great to know!\n\nI guess this value would not be exactly synced with the batch in cases of pre-fetch and shuffle buffers and so on, but that's probably fine. Thanks!" ]
2025-02-10T20:48:29
2025-02-11T20:44:15
2025-02-11T20:44:13
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
@lhoestq wondering if the team has thought about this and if there are any recommendations? Currently when processing datasets some examples are bound to get filtered out, whether it's due to bad format, or length is too long, or any other custom filters that might be getting applied. Let's just focus on the filter by length for now, since that would be something that gets applied dynamically for each training run. Say we want to show a graph in W&B with the running total of the number of filtered examples so far. What would be a good way to go about hooking this up? Because the map/filter operations happen before the DataLoader batches are created, at training time if we're just grabbing batches from the DataLoader then we won't know how many things have been filtered already. But there's not really a good way to include a 'num_filtered' key into the dataset itself either because dataset map/filter process examples independently and don't have a way to track a running sum. The only approach I can kind of think of is having a 'is_filtered' key in the dataset, and then creating a custom batcher/collator that reads that and tracks the metric?
{ "login": "jonathanasdf", "id": 511073, "node_id": "MDQ6VXNlcjUxMTA3Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/511073?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathanasdf", "html_url": "https://github.com/jonathanasdf", "followers_url": "https://api.github.com/users/jonathanasdf/followers", "following_url": "https://api.github.com/users/jonathanasdf/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanasdf/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathanasdf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanasdf/subscriptions", "organizations_url": "https://api.github.com/users/jonathanasdf/orgs", "repos_url": "https://api.github.com/users/jonathanasdf/repos", "events_url": "https://api.github.com/users/jonathanasdf/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathanasdf/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7389/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7389/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7388
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7388/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7388/comments
https://api.github.com/repos/huggingface/datasets/issues/7388/events
https://github.com/huggingface/datasets/issues/7388
2,843,188,499
I_kwDODunzps6pd50T
7,388
OSError: [Errno 22] Invalid argument forbidden character
{ "login": "langflogit", "id": 124634542, "node_id": "U_kgDOB23Frg", "avatar_url": "https://avatars.githubusercontent.com/u/124634542?v=4", "gravatar_id": "", "url": "https://api.github.com/users/langflogit", "html_url": "https://github.com/langflogit", "followers_url": "https://api.github.com/users/langflogit/followers", "following_url": "https://api.github.com/users/langflogit/following{/other_user}", "gists_url": "https://api.github.com/users/langflogit/gists{/gist_id}", "starred_url": "https://api.github.com/users/langflogit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/langflogit/subscriptions", "organizations_url": "https://api.github.com/users/langflogit/orgs", "repos_url": "https://api.github.com/users/langflogit/repos", "events_url": "https://api.github.com/users/langflogit/events{/privacy}", "received_events_url": "https://api.github.com/users/langflogit/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "You can probably copy the dataset in your HF account and rename the files (without having to download them to your disk). Or alternatively feel free to open a Pull Request to this dataset with the renamed file", "Thank you, that will help me work around this problem" ]
2025-02-10T17:46:31
2025-02-11T13:42:32
2025-02-11T13:42:30
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I'm on Windows and i'm trying to load a datasets but i'm having title error because files in the repository are named with charactere like < >which can't be in a name file. Could it be possible to load this datasets but removing those charactere ? ### Steps to reproduce the bug load_dataset("CATMuS/medieval") on Windows ### Expected behavior Making the function to erase the forbidden character to allow loading the datasets who have those characters. ### Environment info - `datasets` version: 3.2.0 - Platform: Windows-10-10.0.19045-SP0 - Python version: 3.12.2 - `huggingface_hub` version: 0.28.1 - PyArrow version: 19.0.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
{ "login": "langflogit", "id": 124634542, "node_id": "U_kgDOB23Frg", "avatar_url": "https://avatars.githubusercontent.com/u/124634542?v=4", "gravatar_id": "", "url": "https://api.github.com/users/langflogit", "html_url": "https://github.com/langflogit", "followers_url": "https://api.github.com/users/langflogit/followers", "following_url": "https://api.github.com/users/langflogit/following{/other_user}", "gists_url": "https://api.github.com/users/langflogit/gists{/gist_id}", "starred_url": "https://api.github.com/users/langflogit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/langflogit/subscriptions", "organizations_url": "https://api.github.com/users/langflogit/orgs", "repos_url": "https://api.github.com/users/langflogit/repos", "events_url": "https://api.github.com/users/langflogit/events{/privacy}", "received_events_url": "https://api.github.com/users/langflogit/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7388/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7388/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7387
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7387/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7387/comments
https://api.github.com/repos/huggingface/datasets/issues/7387/events
https://github.com/huggingface/datasets/issues/7387
2,841,228,048
I_kwDODunzps6pWbMQ
7,387
Dynamic adjusting dataloader sampling weight
{ "login": "whc688", "id": 72799643, "node_id": "MDQ6VXNlcjcyNzk5NjQz", "avatar_url": "https://avatars.githubusercontent.com/u/72799643?v=4", "gravatar_id": "", "url": "https://api.github.com/users/whc688", "html_url": "https://github.com/whc688", "followers_url": "https://api.github.com/users/whc688/followers", "following_url": "https://api.github.com/users/whc688/following{/other_user}", "gists_url": "https://api.github.com/users/whc688/gists{/gist_id}", "starred_url": "https://api.github.com/users/whc688/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/whc688/subscriptions", "organizations_url": "https://api.github.com/users/whc688/orgs", "repos_url": "https://api.github.com/users/whc688/repos", "events_url": "https://api.github.com/users/whc688/events{/privacy}", "received_events_url": "https://api.github.com/users/whc688/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "You mean based on a condition that has to be checked on-the-fly during training ? Otherwise if you know in advance after how many samples you need to change the sampling you can simply concatenate the two mixes", "Yes, like during training, if one data sample's prediction is consistently wrong, its sampling weight gets higher and higher, and if one data sample's prediction is already correct, then we rarely sample it", "it's not possible to use `interleave_datasets()` and modify the probabilities while iterating on the dataset at the moment, so you'd have to implement your own `IterableDataset` to implement this logic" ]
2025-02-10T03:18:47
2025-02-11T13:24:05
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Hi, Thanks for your wonderful work! I'm wondering is there a way to dynamically adjust the sampling weight of each data in the dataset during training? Looking forward to your reply, thanks again.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7387/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7387/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7386
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7386/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7386/comments
https://api.github.com/repos/huggingface/datasets/issues/7386/events
https://github.com/huggingface/datasets/issues/7386
2,840,032,524
I_kwDODunzps6pR3UM
7,386
Add bookfolder Dataset Builder for Digital Book Formats
{ "login": "shikanime", "id": 22115108, "node_id": "MDQ6VXNlcjIyMTE1MTA4", "avatar_url": "https://avatars.githubusercontent.com/u/22115108?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shikanime", "html_url": "https://github.com/shikanime", "followers_url": "https://api.github.com/users/shikanime/followers", "following_url": "https://api.github.com/users/shikanime/following{/other_user}", "gists_url": "https://api.github.com/users/shikanime/gists{/gist_id}", "starred_url": "https://api.github.com/users/shikanime/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shikanime/subscriptions", "organizations_url": "https://api.github.com/users/shikanime/orgs", "repos_url": "https://api.github.com/users/shikanime/repos", "events_url": "https://api.github.com/users/shikanime/events{/privacy}", "received_events_url": "https://api.github.com/users/shikanime/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
[ "On second thought, probably not a good idea." ]
2025-02-08T14:27:55
2025-02-08T14:30:10
2025-02-08T14:30:09
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request This feature proposes adding a new dataset builder called bookfolder to the datasets library. This builder would allow users to easily load datasets consisting of various digital book formats, including: AZW, AZW3, CB7, CBR, CBT, CBZ, EPUB, MOBI, and PDF. ### Motivation Currently, loading datasets of these digital book files requires manual effort. This would also lower the barrier to entry for working with these formats, enabling more diverse and interesting datasets to be used within the Hugging Face ecosystem. ### Your contribution This feature is rather simple as it will be based on the folder-based builder, similar to imagefolder. I'm willing to contribute to this feature by submitting a PR
{ "login": "shikanime", "id": 22115108, "node_id": "MDQ6VXNlcjIyMTE1MTA4", "avatar_url": "https://avatars.githubusercontent.com/u/22115108?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shikanime", "html_url": "https://github.com/shikanime", "followers_url": "https://api.github.com/users/shikanime/followers", "following_url": "https://api.github.com/users/shikanime/following{/other_user}", "gists_url": "https://api.github.com/users/shikanime/gists{/gist_id}", "starred_url": "https://api.github.com/users/shikanime/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shikanime/subscriptions", "organizations_url": "https://api.github.com/users/shikanime/orgs", "repos_url": "https://api.github.com/users/shikanime/repos", "events_url": "https://api.github.com/users/shikanime/events{/privacy}", "received_events_url": "https://api.github.com/users/shikanime/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7386/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7386/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7385
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7385/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7385/comments
https://api.github.com/repos/huggingface/datasets/issues/7385/events
https://github.com/huggingface/datasets/pull/7385
2,830,664,522
PR_kwDODunzps6KBO6i
7,385
Make IterableDataset (optionally) resumable
{ "login": "yzhangcs", "id": 18402347, "node_id": "MDQ6VXNlcjE4NDAyMzQ3", "avatar_url": "https://avatars.githubusercontent.com/u/18402347?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yzhangcs", "html_url": "https://github.com/yzhangcs", "followers_url": "https://api.github.com/users/yzhangcs/followers", "following_url": "https://api.github.com/users/yzhangcs/following{/other_user}", "gists_url": "https://api.github.com/users/yzhangcs/gists{/gist_id}", "starred_url": "https://api.github.com/users/yzhangcs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yzhangcs/subscriptions", "organizations_url": "https://api.github.com/users/yzhangcs/orgs", "repos_url": "https://api.github.com/users/yzhangcs/repos", "events_url": "https://api.github.com/users/yzhangcs/events{/privacy}", "received_events_url": "https://api.github.com/users/yzhangcs/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "@lhoestq Hi again~ Just circling back on this\r\nWondering if there’s anything I can do to help move this forward. 🤗 \r\nThanks!" ]
2025-02-04T15:55:33
2025-02-06T07:40:19
null
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### What does this PR do? This PR introduces a new `stateful` option to the `dataset.shuffle` method, which defaults to `False`. When enabled, this option allows for resumable shuffling of `IterableDataset` instances, albeit with some additional memory overhead. Key points: * All tests have passed * Docstrings have been updated to reflect the new functionality I'm very looking forward to receiving feedback on this implementation! @lhoestq
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7385/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7385/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7385", "html_url": "https://github.com/huggingface/datasets/pull/7385", "diff_url": "https://github.com/huggingface/datasets/pull/7385.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7385.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7384
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7384/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7384/comments
https://api.github.com/repos/huggingface/datasets/issues/7384/events
https://github.com/huggingface/datasets/pull/7384
2,828,208,828
PR_kwDODunzps6J4wVi
7,384
Support async functions in map()
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7384). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "example of what you can do with it:\r\n\r\n```python\r\nimport aiohttp\r\nfrom huggingface_hub import get_token\r\n\r\nfrom datasets import Dataset\r\n\r\n\r\nAPI_URL = \"https://api-inference.huggingface.co/models/microsoft/Phi-3-mini-4k-instruct/v1/chat/completions\"\r\nPROMPT = \"What is this text mainly about ? Here is the text:\\n\\n```\\n{Problem}\\n```\\n\\nReply in one or two words.\"\r\n\r\nasync def query(example):\r\n headers = {\"Authorization\": f\"Bearer {get_token()}\", \"Content-Type\": \"application/json\"}\r\n json = {\"messages\": [{\"role\": \"user\", \"content\": PROMPT.format(Problem=example[\"Problem\"])}], \"max_tokens\": 20, \"seed\": 42}\r\n async with aiohttp.ClientSession() as session, session.post(API_URL, headers=headers, json=json) as response:\r\n output = await response.json()\r\n return {\"output\": output[\"choices\"][0][\"message\"][\"content\"]}\r\n\r\nds = Dataset.from_dict({\"Problem\": [\"1 + 1\"] * 10})\r\nds = ds.map(query)\r\nprint(ds[0])\r\n# {'Problem': '1 + 1', 'output': 'Arithmetic'}\r\n```" ]
2025-02-03T18:18:40
2025-02-13T14:01:13
2025-02-13T14:00:06
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
e.g. to download images or call an inference API like HF or vLLM ```python import asyncio import random from datasets import Dataset async def f(x): await asyncio.sleep(random.random()) ds = Dataset.from_dict({"data": range(100)}) ds.map(f) # Map: 100%|█████████████████████████████| 100/100 [00:01<00:00, 99.81 examples/s] ``` TODO - [x] clean code (right now it's a big copy paste) - [x] batched - [x] Dataset.map() - [x] IterableDataset.map() - [x] Dataset.filter() - [x] IterableDataset.filter() - [x] test - [x] docs
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7384/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 3, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7384/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7384", "html_url": "https://github.com/huggingface/datasets/pull/7384", "diff_url": "https://github.com/huggingface/datasets/pull/7384.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7384.patch", "merged_at": "2025-02-13T14:00:06" }
true
https://api.github.com/repos/huggingface/datasets/issues/7382
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7382/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7382/comments
https://api.github.com/repos/huggingface/datasets/issues/7382/events
https://github.com/huggingface/datasets/pull/7382
2,823,480,924
PR_kwDODunzps6Jo69f
7,382
Add Pandas, PyArrow and Polars docs
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7382). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-31T13:22:59
2025-01-31T16:30:59
2025-01-31T16:30:57
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
(also added the missing numpy docs and fixed a small bug in pyarrow formatting)
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7382/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7382/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7382", "html_url": "https://github.com/huggingface/datasets/pull/7382", "diff_url": "https://github.com/huggingface/datasets/pull/7382.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7382.patch", "merged_at": "2025-01-31T16:30:57" }
true
https://api.github.com/repos/huggingface/datasets/issues/7381
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7381/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7381/comments
https://api.github.com/repos/huggingface/datasets/issues/7381/events
https://github.com/huggingface/datasets/issues/7381
2,815,649,092
I_kwDODunzps6n02VE
7,381
Iterating over values of a column in the IterableDataset
{ "login": "TopCoder2K", "id": 47208659, "node_id": "MDQ6VXNlcjQ3MjA4NjU5", "avatar_url": "https://avatars.githubusercontent.com/u/47208659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TopCoder2K", "html_url": "https://github.com/TopCoder2K", "followers_url": "https://api.github.com/users/TopCoder2K/followers", "following_url": "https://api.github.com/users/TopCoder2K/following{/other_user}", "gists_url": "https://api.github.com/users/TopCoder2K/gists{/gist_id}", "starred_url": "https://api.github.com/users/TopCoder2K/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TopCoder2K/subscriptions", "organizations_url": "https://api.github.com/users/TopCoder2K/orgs", "repos_url": "https://api.github.com/users/TopCoder2K/repos", "events_url": "https://api.github.com/users/TopCoder2K/events{/privacy}", "received_events_url": "https://api.github.com/users/TopCoder2K/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "I'd be in favor of that ! I saw many people implementing their own iterables that wrap a dataset just to iterate on a single column, that would make things more practical.\n\nKinda related: https://github.com/huggingface/datasets/issues/5847", "(For anyone's information, I'm going on vacation for the next 3 weeks, so the work is postponed. If anyone can implement this feature within the next 4 weeks, go ahead :) )" ]
2025-01-28T13:17:36
2025-02-18T17:15:51
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request I would like to be able to iterate (and re-iterate if needed) over a column of an `IterableDataset` instance. The following example shows the supposed API: ``` def gen(): yield {"text": "Good", "label": 0} yield {"text": "Bad", "label": 1} ds = IterableDataset.from_generator(gen) texts = ds["text"] for v in texts: print(v) # Prints "Good" and "Bad" for v in texts: print(v) # Prints "Good" and "Bad" again ``` ### Motivation In the real world problems, huge NNs like Transformer are not always the best option, so there is a need to conduct experiments with different methods. While 🤗Datasets is perfectly adapted to 🤗Transformers, it may be inconvenient when being used with other libraries. The ability to retrieve a particular column is the case (e.g., gensim's FastText [requires](https://radimrehurek.com/gensim/models/fasttext.html#gensim.models.fasttext.FastText.train) only lists of strings, not dictionaries). While there are ways to achieve the desired functionality, they are not good ([forum](https://discuss.huggingface.co/t/how-to-iterate-over-values-of-a-column-in-the-iterabledataset/135649)). It would be great if there was a built-in solution. ### Your contribution Theoretically, I can submit a PR, but I have very little knowledge of the internal structure of 🤗Datasets, so some help may be needed. Moreover, I can only work on weekends, since I have a full-time job. However, the feature does not seem to be popular, so there is no need to implement it as fast as possible.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7381/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7381/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7380
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7380/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7380/comments
https://api.github.com/repos/huggingface/datasets/issues/7380/events
https://github.com/huggingface/datasets/pull/7380
2,811,566,116
PR_kwDODunzps6JAkj5
7,380
fix: dill default for version bigger 0.3.8
{ "login": "sam-hey", "id": 40773225, "node_id": "MDQ6VXNlcjQwNzczMjI1", "avatar_url": "https://avatars.githubusercontent.com/u/40773225?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sam-hey", "html_url": "https://github.com/sam-hey", "followers_url": "https://api.github.com/users/sam-hey/followers", "following_url": "https://api.github.com/users/sam-hey/following{/other_user}", "gists_url": "https://api.github.com/users/sam-hey/gists{/gist_id}", "starred_url": "https://api.github.com/users/sam-hey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sam-hey/subscriptions", "organizations_url": "https://api.github.com/users/sam-hey/orgs", "repos_url": "https://api.github.com/users/sam-hey/repos", "events_url": "https://api.github.com/users/sam-hey/events{/privacy}", "received_events_url": "https://api.github.com/users/sam-hey/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-26T13:37:16
2025-01-26T13:37:16
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Fixes def log for dill version >= 0.3.9
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7380/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7380/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7380", "html_url": "https://github.com/huggingface/datasets/pull/7380", "diff_url": "https://github.com/huggingface/datasets/pull/7380.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7380.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7378
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7378/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7378/comments
https://api.github.com/repos/huggingface/datasets/issues/7378/events
https://github.com/huggingface/datasets/issues/7378
2,802,957,388
I_kwDODunzps6nEbxM
7,378
Allow pushing config version to hub
{ "login": "momeara", "id": 129072, "node_id": "MDQ6VXNlcjEyOTA3Mg==", "avatar_url": "https://avatars.githubusercontent.com/u/129072?v=4", "gravatar_id": "", "url": "https://api.github.com/users/momeara", "html_url": "https://github.com/momeara", "followers_url": "https://api.github.com/users/momeara/followers", "following_url": "https://api.github.com/users/momeara/following{/other_user}", "gists_url": "https://api.github.com/users/momeara/gists{/gist_id}", "starred_url": "https://api.github.com/users/momeara/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/momeara/subscriptions", "organizations_url": "https://api.github.com/users/momeara/orgs", "repos_url": "https://api.github.com/users/momeara/repos", "events_url": "https://api.github.com/users/momeara/events{/privacy}", "received_events_url": "https://api.github.com/users/momeara/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "Hi ! This sounds reasonable to me, feel free to open a PR :)" ]
2025-01-21T22:35:07
2025-01-30T13:56:56
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request Currently, when datasets are created, they can be versioned by passing the `version` argument to `load_dataset(...)`. For example creating `outcomes.csv` on the command line ``` echo "id,value\n1,0\n2,0\n3,1\n4,1\n" > outcomes.csv ``` and creating it ``` import datasets dataset = datasets.load_dataset( "csv", data_files ="outcomes.csv", keep_in_memory = True, version = '1.0.0') ``` The version info is stored in the `info` and can be accessed e.g. by `next(iter(dataset.values())).info.version` This dataset can be uploaded to the hub with `dataset.push_to_hub(repo_id = "maomlab/example_dataset")`. This will create a dataset on the hub with the following in the `README.md`, but it doesn't upload the version information: ``` --- dataset_info: features: - name: id dtype: int64 - name: value dtype: int64 splits: - name: train num_bytes: 64 num_examples: 4 download_size: 1332 dataset_size: 64 configs: - config_name: default data_files: - split: train path: data/train-* --- ``` However, when I download from the hub, the version information is missing: ``` dataset_from_hub_no_version = datasets.load_dataset("maomlab/example_dataset") next(iter(dataset.values())).info.version ``` I can add the version information manually to the hub, by appending it to the end of config section: ``` ... configs: - config_name: default data_files: - split: train path: data/train-* version: 1.0.0 --- ``` And then when I download it, the version information is correct. ### Motivation ### Why adding version information for each config makes sense 1. The version information is already recorded in the dataset config info data structure and is able to parse it correctly, so it makes sense to sync it with `push_to_hub`. 2. Keeping the version info in at the config level is different from version info at the branch level. As the former relates to the version of the specific dataset the config refers to rather than the version of the dataset curation itself. ## A explanation for the current behavior: In [datasets/src/datasets/info.py:159](https://github.com/huggingface/datasets/blob/fb91fd3c9ea91a818681a777faf8d0c46f14c680/src/datasets/info.py#L159C1-L160C1 ), the `_INCLUDED_INFO_IN_YAML` variable doesn't include `"version"`. If my reading of the code is right, adding `"version"` to `_INCLUDED_INFO_IN_YAML`, would allow the version information to be uploaded to the hub. ### Your contribution Request: add `"version"` to `_INCLUDE_INFO_IN_YAML` in [datasets/src/datasets/info.py:159](https://github.com/huggingface/datasets/blob/fb91fd3c9ea91a818681a777faf8d0c46f14c680/src/datasets/info.py#L159C1-L160C1 )
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7378/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7378/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7377
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7377/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7377/comments
https://api.github.com/repos/huggingface/datasets/issues/7377/events
https://github.com/huggingface/datasets/issues/7377
2,802,723,285
I_kwDODunzps6nDinV
7,377
Support for sparse arrays with the Arrow Sparse Tensor format?
{ "login": "JulesGM", "id": 3231217, "node_id": "MDQ6VXNlcjMyMzEyMTc=", "avatar_url": "https://avatars.githubusercontent.com/u/3231217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JulesGM", "html_url": "https://github.com/JulesGM", "followers_url": "https://api.github.com/users/JulesGM/followers", "following_url": "https://api.github.com/users/JulesGM/following{/other_user}", "gists_url": "https://api.github.com/users/JulesGM/gists{/gist_id}", "starred_url": "https://api.github.com/users/JulesGM/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JulesGM/subscriptions", "organizations_url": "https://api.github.com/users/JulesGM/orgs", "repos_url": "https://api.github.com/users/JulesGM/repos", "events_url": "https://api.github.com/users/JulesGM/events{/privacy}", "received_events_url": "https://api.github.com/users/JulesGM/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "Hi ! Unfortunately the Sparse Tensor structure in Arrow is not part of the Arrow format (yes it's confusing...), so it's not possible to use it in `datasets`. It's a separate structure that doesn't correspond to any type or extension type in Arrow.\n\nThe Arrow community recently added an extension type for fixed shape tensors at https://arrow.apache.org/docs/format/CanonicalExtensions.html#fixed-shape-tensor, it should be possible to contribute an extension type for sparse tensors as well." ]
2025-01-21T20:14:35
2025-01-30T14:06:45
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request AI in biology is becoming a big thing. One thing that would be a huge benefit to the field that Huggingface Datasets doesn't currently have is native support for **sparse arrays**. Arrow has support for sparse tensors. https://arrow.apache.org/docs/format/Other.html#sparse-tensor It would be a big deal if Hugging Face Datasets supported sparse tensors as a feature type, natively. ### Motivation This is important for example in the field of transcriptomics (modeling and understanding gene expression), because a large fraction of the genes are not expressed (zero). More generally, in science, sparse arrays are very common, so adding support for them would be very benefitial, it would make just using Hugging Face Dataset objects a lot more straightforward and clean. ### Your contribution We can discuss this further once the team comments of what they think about the feature, and if there were previous attempts at making it work, and understanding their evaluation of how hard it would be. My intuition is that it should be fairly straightforward, as the Arrow backend already supports it.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7377/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7377/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7376
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7376/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7376/comments
https://api.github.com/repos/huggingface/datasets/issues/7376/events
https://github.com/huggingface/datasets/pull/7376
2,802,621,104
PR_kwDODunzps6IiO9j
7,376
[docs] uv install
{ "login": "stevhliu", "id": 59462357, "node_id": "MDQ6VXNlcjU5NDYyMzU3", "avatar_url": "https://avatars.githubusercontent.com/u/59462357?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stevhliu", "html_url": "https://github.com/stevhliu", "followers_url": "https://api.github.com/users/stevhliu/followers", "following_url": "https://api.github.com/users/stevhliu/following{/other_user}", "gists_url": "https://api.github.com/users/stevhliu/gists{/gist_id}", "starred_url": "https://api.github.com/users/stevhliu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stevhliu/subscriptions", "organizations_url": "https://api.github.com/users/stevhliu/orgs", "repos_url": "https://api.github.com/users/stevhliu/repos", "events_url": "https://api.github.com/users/stevhliu/events{/privacy}", "received_events_url": "https://api.github.com/users/stevhliu/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-21T19:15:48
2025-01-21T19:39:29
null
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Proposes adding uv to installation docs (see Slack thread [here](https://huggingface.slack.com/archives/C01N44FJDHT/p1737377177709279) for more context) if you're interested!
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7376/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7376/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7376", "html_url": "https://github.com/huggingface/datasets/pull/7376", "diff_url": "https://github.com/huggingface/datasets/pull/7376.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7376.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7375
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7375/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7375/comments
https://api.github.com/repos/huggingface/datasets/issues/7375/events
https://github.com/huggingface/datasets/issues/7375
2,800,609,218
I_kwDODunzps6m7efC
7,375
vllm批量推理报错
{ "login": "YuShengzuishuai", "id": 51228154, "node_id": "MDQ6VXNlcjUxMjI4MTU0", "avatar_url": "https://avatars.githubusercontent.com/u/51228154?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YuShengzuishuai", "html_url": "https://github.com/YuShengzuishuai", "followers_url": "https://api.github.com/users/YuShengzuishuai/followers", "following_url": "https://api.github.com/users/YuShengzuishuai/following{/other_user}", "gists_url": "https://api.github.com/users/YuShengzuishuai/gists{/gist_id}", "starred_url": "https://api.github.com/users/YuShengzuishuai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YuShengzuishuai/subscriptions", "organizations_url": "https://api.github.com/users/YuShengzuishuai/orgs", "repos_url": "https://api.github.com/users/YuShengzuishuai/repos", "events_url": "https://api.github.com/users/YuShengzuishuai/events{/privacy}", "received_events_url": "https://api.github.com/users/YuShengzuishuai/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Make sure you have installed a recent version of `soundfile`" ]
2025-01-21T03:22:23
2025-01-30T14:02:40
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug ![Image](https://github.com/user-attachments/assets/3d958e43-28dc-4467-9333-5990c7af3b3f) ### Steps to reproduce the bug ![Image](https://github.com/user-attachments/assets/3067eeca-a54d-4956-b0fd-3fc5ea93dabb) ### Expected behavior ![Image](https://github.com/user-attachments/assets/77d32936-488f-4572-9365-bfb4170e555b) ### Environment info ![Image](https://github.com/user-attachments/assets/230335c4-825f-4db1-b07d-4776ef63ead8)
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7375/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7375/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7374
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7374/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7374/comments
https://api.github.com/repos/huggingface/datasets/issues/7374/events
https://github.com/huggingface/datasets/pull/7374
2,793,442,320
PR_kwDODunzps6IC66n
7,374
Remove .h5 from imagefolder extensions
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-01-16T18:17:24
2025-01-16T18:26:40
2025-01-16T18:26:38
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
the format is not relevant for imagefolder, and makes the viewer fail to process datasets on HF (so many that the viewer takes more time to process new datasets)
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7374/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7374/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7374", "html_url": "https://github.com/huggingface/datasets/pull/7374", "diff_url": "https://github.com/huggingface/datasets/pull/7374.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7374.patch", "merged_at": "2025-01-16T18:26:38" }
true
https://api.github.com/repos/huggingface/datasets/issues/7373
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7373/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7373/comments
https://api.github.com/repos/huggingface/datasets/issues/7373/events
https://github.com/huggingface/datasets/issues/7373
2,793,237,139
I_kwDODunzps6mfWqT
7,373
Excessive RAM Usage After Dataset Concatenation concatenate_datasets
{ "login": "sam-hey", "id": 40773225, "node_id": "MDQ6VXNlcjQwNzczMjI1", "avatar_url": "https://avatars.githubusercontent.com/u/40773225?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sam-hey", "html_url": "https://github.com/sam-hey", "followers_url": "https://api.github.com/users/sam-hey/followers", "following_url": "https://api.github.com/users/sam-hey/following{/other_user}", "gists_url": "https://api.github.com/users/sam-hey/gists{/gist_id}", "starred_url": "https://api.github.com/users/sam-hey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sam-hey/subscriptions", "organizations_url": "https://api.github.com/users/sam-hey/orgs", "repos_url": "https://api.github.com/users/sam-hey/repos", "events_url": "https://api.github.com/users/sam-hey/events{/privacy}", "received_events_url": "https://api.github.com/users/sam-hey/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "![Image](https://github.com/user-attachments/assets/b6f8bcbd-44af-413e-bc06-65380eb0f746)\n\n![Image](https://github.com/user-attachments/assets/a241fcd8-4b62-495c-926c-685f82015dfb)\n\nAdding a img from memray\nhttps://gist.github.com/sam-hey/00c958f13fb0f7b54d17197fe353002f" ]
2025-01-16T16:33:10
2025-01-17T08:05:22
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug When loading a dataset from disk, concatenating it, and starting the training process, the RAM usage progressively increases until the kernel terminates the process due to excessive memory consumption. https://github.com/huggingface/datasets/issues/2276 ### Steps to reproduce the bug ``` rom datasets import DatasetDict, concatenate_datasets dataset = DatasetDict.load_from_disk("data") ... ... combined_dataset = concatenate_datasets( [dataset[split] for split in dataset] ) #start SentenceTransformer training ``` ### Expected behavior I would not expect RAM utilization to increase after concatenation. Removing the concatenation step resolves the issue ### Environment info sentence-transformers==3.1.1 datasets==3.2.0 python3.10
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7373/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7373/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7372
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7372/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7372/comments
https://api.github.com/repos/huggingface/datasets/issues/7372/events
https://github.com/huggingface/datasets/issues/7372
2,791,760,968
I_kwDODunzps6mZuRI
7,372
Inconsistent Behavior Between `load_dataset` and `load_from_disk` When Loading Sharded Datasets
{ "login": "gaohongkui", "id": 38203359, "node_id": "MDQ6VXNlcjM4MjAzMzU5", "avatar_url": "https://avatars.githubusercontent.com/u/38203359?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaohongkui", "html_url": "https://github.com/gaohongkui", "followers_url": "https://api.github.com/users/gaohongkui/followers", "following_url": "https://api.github.com/users/gaohongkui/following{/other_user}", "gists_url": "https://api.github.com/users/gaohongkui/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaohongkui/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaohongkui/subscriptions", "organizations_url": "https://api.github.com/users/gaohongkui/orgs", "repos_url": "https://api.github.com/users/gaohongkui/repos", "events_url": "https://api.github.com/users/gaohongkui/events{/privacy}", "received_events_url": "https://api.github.com/users/gaohongkui/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-16T05:47:20
2025-01-16T05:47:20
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Description I encountered an inconsistency in behavior between `load_dataset` and `load_from_disk` when loading sharded datasets. Here is a minimal example to reproduce the issue: #### Code 1: Using `load_dataset` ```python from datasets import Dataset, load_dataset # First save with max_shard_size=10 Dataset.from_dict({"id": range(1000)}).train_test_split(test_size=0.1).save_to_disk("my_sharded_datasetdict", max_shard_size=10) # Second save with max_shard_size=10 Dataset.from_dict({"id": range(500)}).train_test_split(test_size=0.1).save_to_disk("my_sharded_datasetdict", max_shard_size=10) # Load the DatasetDict loaded_datasetdict = load_dataset("my_sharded_datasetdict") print(loaded_datasetdict) ``` **Output**: - `train` has 1350 samples. - `test` has 150 samples. #### Code 2: Using `load_from_disk` ```python from datasets import Dataset, load_from_disk # First save with max_shard_size=10 Dataset.from_dict({"id": range(1000)}).train_test_split(test_size=0.1).save_to_disk("my_sharded_datasetdict", max_shard_size=10) # Second save with max_shard_size=10 Dataset.from_dict({"id": range(500)}).train_test_split(test_size=0.1).save_to_disk("my_sharded_datasetdict", max_shard_size=10) # Load the DatasetDict loaded_datasetdict = load_from_disk("my_sharded_datasetdict") print(loaded_datasetdict) ``` **Output**: - `train` has 450 samples. - `test` has 50 samples. ### Expected Behavior I expected both `load_dataset` and `load_from_disk` to load the same dataset, as they are pointing to the same directory. However, the results differ significantly: - `load_dataset` seems to merge all shards, resulting in a combined dataset. - `load_from_disk` only loads the last saved dataset, ignoring previous shards. ### Questions 1. Is this behavior intentional? If so, could you clarify the difference between `load_dataset` and `load_from_disk` in the documentation? 2. If this is not intentional, could this be considered a bug? 3. What is the recommended way to handle cases where multiple datasets are saved to the same directory? Thank you for your time and effort in maintaining this great library! I look forward to your feedback.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7372/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7372/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7371
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7371/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7371/comments
https://api.github.com/repos/huggingface/datasets/issues/7371/events
https://github.com/huggingface/datasets/issues/7371
2,790,549,889
I_kwDODunzps6mVGmB
7,371
500 Server error with pushing a dataset
{ "login": "martinmatak", "id": 7677814, "node_id": "MDQ6VXNlcjc2Nzc4MTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/7677814?v=4", "gravatar_id": "", "url": "https://api.github.com/users/martinmatak", "html_url": "https://github.com/martinmatak", "followers_url": "https://api.github.com/users/martinmatak/followers", "following_url": "https://api.github.com/users/martinmatak/following{/other_user}", "gists_url": "https://api.github.com/users/martinmatak/gists{/gist_id}", "starred_url": "https://api.github.com/users/martinmatak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/martinmatak/subscriptions", "organizations_url": "https://api.github.com/users/martinmatak/orgs", "repos_url": "https://api.github.com/users/martinmatak/repos", "events_url": "https://api.github.com/users/martinmatak/events{/privacy}", "received_events_url": "https://api.github.com/users/martinmatak/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "EDIT: seems to be all good now. I'll add a comment if the error happens again within the next 48 hours. If it doesn't, I'll just close the topic." ]
2025-01-15T18:23:02
2025-01-15T20:06:05
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Suddenly, I started getting this error message saying it was an internal error. `Error creating/pushing dataset: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/ll4ma-lab/grasp-dataset/commit/main (Request ID: Root=1-6787f0b7-66d5bd45413e481c4c2fb22d;670d04ff-65f5-4741-a353-2eacc47a3928) Internal Error - We're working hard to fix this as soon as possible! Traceback (most recent call last): File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status response.raise_for_status() File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/ll4ma-lab/grasp-dataset/commit/main The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/uufs/chpc.utah.edu/common/home/u1295595/grasp_dataset_converter/src/grasp_dataset_converter/main.py", line 142, in main subset_train.push_to_hub(dataset_name, split='train') File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 5624, in push_to_hub commit_info = api.create_commit( File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 1518, in _inner return fn(self, *args, **kwargs) File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 4087, in create_commit hf_raise_for_status(commit_resp, endpoint_name="commit") File "/uufs/chpc.utah.edu/common/home/hermans-group1/martin/software/pkg/miniforge3/envs/myenv2/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 477, in hf_raise_for_status raise _format(HfHubHTTPError, str(e), response) from e huggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/ll4ma-lab/grasp-dataset/commit/main (Request ID: Root=1-6787f0b7-66d5bd45413e481c4c2fb22d;670d04ff-65f5-4741-a353-2eacc47a3928) Internal Error - We're working hard to fix this as soon as possible!` ### Steps to reproduce the bug I am pushing a Dataset in a loop via push_to_hub API ### Expected behavior It worked fine until it stopped working suddenly. Expected behavior: It should start working again ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-4.18.0-477.15.1.el8_8.x86_64-x86_64-with-glibc2.28 - Python version: 3.10.0 - `huggingface_hub` version: 0.27.1 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7371/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7371/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7370
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7370/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7370/comments
https://api.github.com/repos/huggingface/datasets/issues/7370/events
https://github.com/huggingface/datasets/pull/7370
2,787,972,786
PR_kwDODunzps6HwAu7
7,370
Support faster processing using pandas or polars functions in `IterableDataset.map()`
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7370). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "merging this and will make some docs and communications around using polars for optimizing data processing :)" ]
2025-01-14T18:14:13
2025-01-31T11:08:15
2025-01-30T13:30:57
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Following the polars integration :) Allow super fast processing using pandas or polars functions in `IterableDataset.map()` by adding support to pandas and polars formatting in `IterableDataset` ```python import polars as pl from datasets import Dataset ds = Dataset.from_dict({"i": range(10)}).to_iterable_dataset() ds = ds.with_format("polars") ds = ds.map(lambda df: df.with_columns(pl.col("i").add(1).alias("i+1")), batched=True) ds = ds.with_format(None) print(next(iter(ds))) # {'i': 0, 'i+1': 1} ``` It leverages arrow's zero-copy features from/to pandas and polars. related to https://github.com/huggingface/datasets/issues/3444 #6762
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7370/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7370/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7370", "html_url": "https://github.com/huggingface/datasets/pull/7370", "diff_url": "https://github.com/huggingface/datasets/pull/7370.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7370.patch", "merged_at": "2025-01-30T13:30:57" }
true
https://api.github.com/repos/huggingface/datasets/issues/7369
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7369/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7369/comments
https://api.github.com/repos/huggingface/datasets/issues/7369/events
https://github.com/huggingface/datasets/issues/7369
2,787,193,238
I_kwDODunzps6mITGW
7,369
Importing dataset gives unhelpful error message when filenames in metadata.csv are not found in the directory
{ "login": "svencornetsdegroot", "id": 38278139, "node_id": "MDQ6VXNlcjM4Mjc4MTM5", "avatar_url": "https://avatars.githubusercontent.com/u/38278139?v=4", "gravatar_id": "", "url": "https://api.github.com/users/svencornetsdegroot", "html_url": "https://github.com/svencornetsdegroot", "followers_url": "https://api.github.com/users/svencornetsdegroot/followers", "following_url": "https://api.github.com/users/svencornetsdegroot/following{/other_user}", "gists_url": "https://api.github.com/users/svencornetsdegroot/gists{/gist_id}", "starred_url": "https://api.github.com/users/svencornetsdegroot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/svencornetsdegroot/subscriptions", "organizations_url": "https://api.github.com/users/svencornetsdegroot/orgs", "repos_url": "https://api.github.com/users/svencornetsdegroot/repos", "events_url": "https://api.github.com/users/svencornetsdegroot/events{/privacy}", "received_events_url": "https://api.github.com/users/svencornetsdegroot/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "I'd prefer even more verbose errors; like `\"file123.mp3\" is referenced in metadata.csv, but not found in the data directory '/path/to/audiofolder' ! (and 100+ more missing files)` Or something along those lines." ]
2025-01-14T13:53:21
2025-01-14T15:05:51
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug While importing an audiofolder dataset, where the names of the audiofiles don't correspond to the filenames in the metadata.csv, we get an unclear error message that is not helpful for the debugging, i.e. ``` ValueError: Instruction "train" corresponds to no data! ``` ### Steps to reproduce the bug Assume an audiofolder with audiofiles, filename1.mp3, filename2.mp3 etc and a file metadata.csv which contains the columns file_name and sentence. The file_names are formatted like filename1.mp3, filename2.mp3 etc. Load the audio ``` from datasets import load_dataset load_dataset("audiofolder", data_dir='/path/to/audiofolder') ``` When the file_names in the csv are not in sync with the filenames in the audiofolder, then we get an Error message: ``` File /opt/conda/lib/python3.12/site-packages/datasets/arrow_reader.py:251, in BaseReader.read(self, name, instructions, split_infos, in_memory) 249 if not files: 250 msg = f'Instruction "{instructions}" corresponds to no data!' --> 251 raise ValueError(msg) 252 return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) ValueError: Instruction "train" corresponds to no data! ``` load_dataset has a default value for the argument split = 'train'. ### Expected behavior It would be better to get an error report something like: ``` The metadata.csv file has different filenames than the files in the datadirectory. ``` It would have saved me 4 hours of debugging. ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-5.14.0-427.40.1.el9_4.x86_64-x86_64-with-glibc2.39 - Python version: 3.12.8 - `huggingface_hub` version: 0.27.0 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7369/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7369/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7368
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7368/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7368/comments
https://api.github.com/repos/huggingface/datasets/issues/7368/events
https://github.com/huggingface/datasets/pull/7368
2,784,272,477
PR_kwDODunzps6HjE97
7,368
Add with_split to DatasetDict.map
{ "login": "jp1924", "id": 93233241, "node_id": "U_kgDOBY6gWQ", "avatar_url": "https://avatars.githubusercontent.com/u/93233241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jp1924", "html_url": "https://github.com/jp1924", "followers_url": "https://api.github.com/users/jp1924/followers", "following_url": "https://api.github.com/users/jp1924/following{/other_user}", "gists_url": "https://api.github.com/users/jp1924/gists{/gist_id}", "starred_url": "https://api.github.com/users/jp1924/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jp1924/subscriptions", "organizations_url": "https://api.github.com/users/jp1924/orgs", "repos_url": "https://api.github.com/users/jp1924/repos", "events_url": "https://api.github.com/users/jp1924/events{/privacy}", "received_events_url": "https://api.github.com/users/jp1924/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Can you check this out, @lhoestq?", "cc @lhoestq @albertvillanova ", "@lhoestq\r\n", "@lhoestq\r\n", "@lhoestq" ]
2025-01-13T15:09:56
2025-02-21T07:50:27
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
#7356
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7368/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7368/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7368", "html_url": "https://github.com/huggingface/datasets/pull/7368", "diff_url": "https://github.com/huggingface/datasets/pull/7368.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7368.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7366
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7366/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7366/comments
https://api.github.com/repos/huggingface/datasets/issues/7366/events
https://github.com/huggingface/datasets/issues/7366
2,781,522,894
I_kwDODunzps6lyqvO
7,366
Dataset.from_dict() can't handle large dict
{ "login": "CSU-OSS", "id": 164967134, "node_id": "U_kgDOCdUy3g", "avatar_url": "https://avatars.githubusercontent.com/u/164967134?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CSU-OSS", "html_url": "https://github.com/CSU-OSS", "followers_url": "https://api.github.com/users/CSU-OSS/followers", "following_url": "https://api.github.com/users/CSU-OSS/following{/other_user}", "gists_url": "https://api.github.com/users/CSU-OSS/gists{/gist_id}", "starred_url": "https://api.github.com/users/CSU-OSS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CSU-OSS/subscriptions", "organizations_url": "https://api.github.com/users/CSU-OSS/orgs", "repos_url": "https://api.github.com/users/CSU-OSS/repos", "events_url": "https://api.github.com/users/CSU-OSS/events{/privacy}", "received_events_url": "https://api.github.com/users/CSU-OSS/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-11T02:05:21
2025-01-11T02:05:21
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I have 26,000,000 3-tuples. When I use Dataset.from_dict() to load, neither. py nor Jupiter notebook can run successfully. This is my code: ``` # len(example_data) is 26,000,000, 'diff' is a text diff1_list = [example_data[i].texts[0] for i in range(len(example_data))] diff2_list = [example_data[i].texts[1] for i in range(len(example_data))] label_list = [example_data[i].label for i in range(len(example_data))] embedding_dataset = Dataset.from_dict({ "diff1": diff1_list, "diff2": diff2_list, "label": label_list }) ``` ### Steps to reproduce the bug 1. Initialize a large 3-tuple, e.g. 26,000,000 2. Use Dataset.from_dict() to load ### Expected behavior Dataset.from_dict() run successfully ### Environment info sentence-transformers 3.3.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7366/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7366/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7365
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7365/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7365/comments
https://api.github.com/repos/huggingface/datasets/issues/7365/events
https://github.com/huggingface/datasets/issues/7365
2,780,216,199
I_kwDODunzps6ltruH
7,365
A parameter is specified but not used in datasets.arrow_dataset.Dataset.from_pandas()
{ "login": "NourOM02", "id": 69003192, "node_id": "MDQ6VXNlcjY5MDAzMTky", "avatar_url": "https://avatars.githubusercontent.com/u/69003192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/NourOM02", "html_url": "https://github.com/NourOM02", "followers_url": "https://api.github.com/users/NourOM02/followers", "following_url": "https://api.github.com/users/NourOM02/following{/other_user}", "gists_url": "https://api.github.com/users/NourOM02/gists{/gist_id}", "starred_url": "https://api.github.com/users/NourOM02/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NourOM02/subscriptions", "organizations_url": "https://api.github.com/users/NourOM02/orgs", "repos_url": "https://api.github.com/users/NourOM02/repos", "events_url": "https://api.github.com/users/NourOM02/events{/privacy}", "received_events_url": "https://api.github.com/users/NourOM02/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-10T13:39:33
2025-01-10T13:39:33
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I am interested in creating train, test and eval splits from a pandas Dataframe, therefore I was looking at the possibilities I can follow. I noticed the split parameter and was hopeful to use it in order to generate the 3 at once, however, while trying to understand the code, i noticed that it has no added value (correct me if I am wrong or misunderstood the code). from_pandas function code : ```python if info is not None and features is not None and info.features != features: raise ValueError( f"Features specified in `features` and `info.features` can't be different:\n{features}\n{info.features}" ) features = features if features is not None else info.features if info is not None else None if info is None: info = DatasetInfo() info.features = features table = InMemoryTable.from_pandas( df=df, preserve_index=preserve_index, ) if features is not None: # more expensive cast than InMemoryTable.from_pandas(..., schema=features.arrow_schema) # needed to support the str to Audio conversion for instance table = table.cast(features.arrow_schema) return cls(table, info=info, split=split) ``` ### Steps to reproduce the bug ```python from datasets import Dataset # Filling the split parameter with whatever causes no harm at all data = Dataset.from_pandas(self.raw_data, split='egiojegoierjgoiejgrefiergiuorenvuirgurthgi') ``` ### Expected behavior Would be great if there is no split parameter (if it isn't working), or to add a concrete example of how it can be used. ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-5.15.0-127-generic-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.27.1 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7365/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7365/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7364
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7364/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7364/comments
https://api.github.com/repos/huggingface/datasets/issues/7364/events
https://github.com/huggingface/datasets/issues/7364
2,776,929,268
I_kwDODunzps6lhJP0
7,364
API endpoints for gated dataset access requests
{ "login": "jerome-white", "id": 6140840, "node_id": "MDQ6VXNlcjYxNDA4NDA=", "avatar_url": "https://avatars.githubusercontent.com/u/6140840?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jerome-white", "html_url": "https://github.com/jerome-white", "followers_url": "https://api.github.com/users/jerome-white/followers", "following_url": "https://api.github.com/users/jerome-white/following{/other_user}", "gists_url": "https://api.github.com/users/jerome-white/gists{/gist_id}", "starred_url": "https://api.github.com/users/jerome-white/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jerome-white/subscriptions", "organizations_url": "https://api.github.com/users/jerome-white/orgs", "repos_url": "https://api.github.com/users/jerome-white/repos", "events_url": "https://api.github.com/users/jerome-white/events{/privacy}", "received_events_url": "https://api.github.com/users/jerome-white/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
[ "Looks like a [similar feature request](https://github.com/huggingface/huggingface_hub/issues/1198) was made to the HF Hub team. Is handling this at the Hub level more appropriate?\r\n\r\n(As an aside, I've gotten the [HTTP-based solution](https://github.com/huggingface/huggingface_hub/issues/1198#issuecomment-1905774983) proposed in that forum to work for simple cases.)", "yes it's more for https://github.com/huggingface/huggingface_hub cc @hanouticelina ", "yes i think @Wauplin's comment on that thread is still what we recommend" ]
2025-01-09T06:21:20
2025-01-09T11:17:40
2025-01-09T11:17:20
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request I would like a programatic way of requesting access to gated datasets. The current solution to gain access forces me to visit a website and physically click an "agreement" button (as per the [documentation](https://huggingface.co/docs/hub/en/datasets-gated#access-gated-datasets-as-a-user)). An ideal approach would be HF API download methods that negotiate access on my behalf based on information from my CLI login and/or token. I realise that may be naive given the various types of access semantics available to dataset authors (automatic versus manual approval, for example) and complexities it might add to existing methods, but something along those lines would be nice. Perhaps using the `*_access_request` methods available to dataset authors can be a precedent; see [`reject_access_request`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.reject_access_request) for example. ### Motivation When trying to download files from a gated dataset, I'm met with a `GatedRepoError` and instructed to visit the repository's website to gain access: ``` Cannot access gated repo for url https://huggingface.co/datasets/open-llm-leaderboard/meta-llama__Meta-Llama-3.1-70B-Instruct-details/resolve/main/meta-llama__Meta-Llama-3.1-70B-Instruct/samples_leaderboard_math_precalculus_hard_2024-07-19T18-47-29.522341.jsonl. Access to dataset open-llm-leaderboard/meta-llama__Meta-Llama-3.1-70B-Instruct-details is restricted and you are not in the authorized list. Visit https://huggingface.co/datasets/open-llm-leaderboard/meta-llama__Meta-Llama-3.1-70B-Instruct-details to ask for access. ``` This makes task automation extremely difficult. For example, I'm interested in studying sample-level responses of models on the LLM leaderboard -- how they answered particular questions on a given evaluation framework. As I come across more and more participants that gate their data, it's becoming unwieldy to continue my work (there over 2,000 participants, so in the worst case that's the number of website visits I'd need to manually undertake). One approach is use Selenium to react to the `GatedRepoError`, but that seems like overkill; and a potential violation HF terms of service (?). As mentioned in the previous section, there seems to be an [API for gated dataset owners](https://huggingface.co/docs/hub/en/datasets-gated#via-the-api) to managed access requests, and thus some appetite for allowing automated management of gating. This feature request is to extend that to dataset users. ### Your contribution Whether I can help depends on a few things; one being the complexity of the underlying gated access design. If this feature request is accepted I am open to being involved in discussions and testing, and even development under the right time-outcome tradeoff.
{ "login": "jerome-white", "id": 6140840, "node_id": "MDQ6VXNlcjYxNDA4NDA=", "avatar_url": "https://avatars.githubusercontent.com/u/6140840?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jerome-white", "html_url": "https://github.com/jerome-white", "followers_url": "https://api.github.com/users/jerome-white/followers", "following_url": "https://api.github.com/users/jerome-white/following{/other_user}", "gists_url": "https://api.github.com/users/jerome-white/gists{/gist_id}", "starred_url": "https://api.github.com/users/jerome-white/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jerome-white/subscriptions", "organizations_url": "https://api.github.com/users/jerome-white/orgs", "repos_url": "https://api.github.com/users/jerome-white/repos", "events_url": "https://api.github.com/users/jerome-white/events{/privacy}", "received_events_url": "https://api.github.com/users/jerome-white/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7364/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7364/timeline
null
not_planned
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7363
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7363/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7363/comments
https://api.github.com/repos/huggingface/datasets/issues/7363/events
https://github.com/huggingface/datasets/issues/7363
2,774,090,012
I_kwDODunzps6lWUEc
7,363
ImportError: To support decoding images, please install 'Pillow'.
{ "login": "jamessdixon", "id": 1394644, "node_id": "MDQ6VXNlcjEzOTQ2NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1394644?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamessdixon", "html_url": "https://github.com/jamessdixon", "followers_url": "https://api.github.com/users/jamessdixon/followers", "following_url": "https://api.github.com/users/jamessdixon/following{/other_user}", "gists_url": "https://api.github.com/users/jamessdixon/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamessdixon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamessdixon/subscriptions", "organizations_url": "https://api.github.com/users/jamessdixon/orgs", "repos_url": "https://api.github.com/users/jamessdixon/repos", "events_url": "https://api.github.com/users/jamessdixon/events{/privacy}", "received_events_url": "https://api.github.com/users/jamessdixon/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "what's your `pip show Pillow` output", "same issue.. my pip show Pillow output as below:\n\n```\nName: pillow\nVersion: 11.1.0\nSummary: Python Imaging Library (Fork)\nHome-page: https://python-pillow.github.io/\nAuthor: \nAuthor-email: \"Jeffrey A. Clark\" <[email protected]>\nLicense: MIT-CMU\nLocation: [/opt/homebrew/lib/python3.10/site-packages](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/lib/python3.10/site-packages)\nRequires: \nRequired-by:\n```", "I encountered the same problem on Ubuntu system, my pip show Pillow output as below:\n\n```\nName: pillow\nVersion: 10.4.0\nSummary: Python Imaging Library (Fork)\nHome-page: https://python-pillow.org/\nAuthor: \nAuthor-email: \"Jeffrey A. Clark\" <[[email protected]](mailto:[email protected])>\nLicense: HPND\nLocation: /home/shunying/.local/lib/python3.8/site-packages\nRequires: \nRequired-by: \n```\n\nWell, solved this by specifying the pip version to my conda virtual environment :)" ]
2025-01-08T02:22:57
2025-02-07T07:30:33
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Following this tutorial locally using a macboko and VSCode: https://huggingface.co/docs/diffusers/en/tutorials/basic_training This line of code: for i, image in enumerate(dataset[:4]["image"]): throws: ImportError: To support decoding images, please install 'Pillow'. Pillow is installed. ### Steps to reproduce the bug Run the tutorial ### Expected behavior Images should be rendered ### Environment info MacBook, VSCode
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7363/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7363/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7362
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7362/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7362/comments
https://api.github.com/repos/huggingface/datasets/issues/7362/events
https://github.com/huggingface/datasets/issues/7362
2,773,731,829
I_kwDODunzps6lU8n1
7,362
HuggingFace CLI dataset download raises error
{ "login": "ajayvohra2005", "id": 3870355, "node_id": "MDQ6VXNlcjM4NzAzNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/3870355?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ajayvohra2005", "html_url": "https://github.com/ajayvohra2005", "followers_url": "https://api.github.com/users/ajayvohra2005/followers", "following_url": "https://api.github.com/users/ajayvohra2005/following{/other_user}", "gists_url": "https://api.github.com/users/ajayvohra2005/gists{/gist_id}", "starred_url": "https://api.github.com/users/ajayvohra2005/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ajayvohra2005/subscriptions", "organizations_url": "https://api.github.com/users/ajayvohra2005/orgs", "repos_url": "https://api.github.com/users/ajayvohra2005/repos", "events_url": "https://api.github.com/users/ajayvohra2005/events{/privacy}", "received_events_url": "https://api.github.com/users/ajayvohra2005/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.", "> I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.\r\n\r\nWhat is needed is upgrading `huggingface-hub==0.27.1`. `datasets` does not appear to have anything to do with the error. The upgrade is a workaround, if the workaround works for your use case. Otherwise, this issue breaks all existing Python clients not using some minimum version of `huggingface-hub`. ", "Correct, this has to do with `huggingface_hub`, not `datasets`. Some old versions of `huggingface_hub` are unfortunately not robust to recent changes on HF. Updating `huggingface_hub` fixes the issue :)\r\n\r\nClosing this issue since it's not directly related to `datasets`" ]
2025-01-07T21:03:30
2025-01-08T15:00:37
2025-01-08T14:35:52
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Trying to download Hugging Face datasets using Hugging Face CLI raises error. This error only started after December 27th, 2024. For example: ``` huggingface-cli download --repo-type dataset gboleda/wikicorpus Traceback (most recent call last): File "/home/ubuntu/test_venv/bin/huggingface-cli", line 8, in <module> sys.exit(main()) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/huggingface_cli.py", line 51, in main service.run() File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/download.py", line 146, in run print(self._download()) # Print path to downloaded files File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/download.py", line 180, in _download return snapshot_download( File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 164, in snapshot_download repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2491, in repo_info return method( File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2366, in dataset_info return DatasetInfo(**data) File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 799, in __init__ self.tags = kwargs.pop("tags") KeyError: 'tags' ``` ### Steps to reproduce the bug ``` 1. huggingface-cli download --repo-type dataset gboleda/wikicorpus ``` ### Expected behavior There should be no error. ### Environment info - `datasets` version: 2.19.1 - Platform: Linux-6.8.0-1015-aws-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.23.5 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.3.1
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7362/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7362/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7361
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7361/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7361/comments
https://api.github.com/repos/huggingface/datasets/issues/7361/events
https://github.com/huggingface/datasets/pull/7361
2,771,859,244
PR_kwDODunzps6G4t2p
7,361
Fix lock permission
{ "login": "cih9088", "id": 11530592, "node_id": "MDQ6VXNlcjExNTMwNTky", "avatar_url": "https://avatars.githubusercontent.com/u/11530592?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cih9088", "html_url": "https://github.com/cih9088", "followers_url": "https://api.github.com/users/cih9088/followers", "following_url": "https://api.github.com/users/cih9088/following{/other_user}", "gists_url": "https://api.github.com/users/cih9088/gists{/gist_id}", "starred_url": "https://api.github.com/users/cih9088/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cih9088/subscriptions", "organizations_url": "https://api.github.com/users/cih9088/orgs", "repos_url": "https://api.github.com/users/cih9088/repos", "events_url": "https://api.github.com/users/cih9088/events{/privacy}", "received_events_url": "https://api.github.com/users/cih9088/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-01-07T04:15:53
2025-01-07T04:49:46
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
All files except lock file have proper permission obeying `ACL` property if it is set. If the cache directory has `ACL` property, it should be respected instead of just using `umask` for permission. To fix it, just create a lock file and pass the created `mode`. By creating a lock file with `touch()` before `FileLock` create it with `mode`, - if `ACL` is not set, same as before - if `ACL` is set, `ACL` is respected If it is acceptable, it should be also applied to [`huggingface_hub`](https://github.com/huggingface/huggingface_hub/blob/2702ec2a2bd0124cc1fddfd72ccb1297b2478148/src/huggingface_hub/utils/_fixes.py#L95) I guess.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7361/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7361/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7361", "html_url": "https://github.com/huggingface/datasets/pull/7361", "diff_url": "https://github.com/huggingface/datasets/pull/7361.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7361.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7360
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7360/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7360/comments
https://api.github.com/repos/huggingface/datasets/issues/7360/events
https://github.com/huggingface/datasets/issues/7360
2,771,751,406
I_kwDODunzps6lNZHu
7,360
error when loading dataset in Hugging Face: NoneType error is not callable
{ "login": "nanu23333", "id": 189343338, "node_id": "U_kgDOC0kmag", "avatar_url": "https://avatars.githubusercontent.com/u/189343338?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nanu23333", "html_url": "https://github.com/nanu23333", "followers_url": "https://api.github.com/users/nanu23333/followers", "following_url": "https://api.github.com/users/nanu23333/following{/other_user}", "gists_url": "https://api.github.com/users/nanu23333/gists{/gist_id}", "starred_url": "https://api.github.com/users/nanu23333/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nanu23333/subscriptions", "organizations_url": "https://api.github.com/users/nanu23333/orgs", "repos_url": "https://api.github.com/users/nanu23333/repos", "events_url": "https://api.github.com/users/nanu23333/events{/privacy}", "received_events_url": "https://api.github.com/users/nanu23333/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! I couldn't reproduce on my side, can you try deleting your cache at `~/.cache/huggingface/modules/datasets_modules/datasets/InstaDeepAI--nucleotide_transformer_downstream_tasks_revised` and try again ? For some reason `datasets` wasn't able to find the DatasetBuilder class in the python script of this dataset", "I've met the same problem when importing [LongBench-v1](https://github.com/THUDM/LongBench/blob/main/LongBench/README.md). the debugger reports `dataset_module.builder_configs_parameters.builder_configs` as `None` so that no `builder_cls` gets created:\n\n<img width=\"711\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b62bdea7-442b-47dc-b892-87f4d235e324\" />\n\ndoes this mean that I need to downgrade `datasets`?", "I tried downgrading `datasets` to v2.20.0 and it works fine now...\n\nI think there might be some compatibility issues during code updates between `v2.20.0` and `v3.0.0` 🤔 \n\nalso I suggest @nanu23333 to see if downgrading works.", "Found the same problem. When I tried to downgrade the datasets to version below v3.0.0, another problem was raised: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 1: invalid start byte`" ]
2025-01-07T02:11:36
2025-02-20T07:10:47
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I met an error when running a notebook provide by Hugging Face, and met the error. ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[2], line 5 3 # Load the enhancers dataset from the InstaDeep Hugging Face ressources 4 dataset_name = "enhancers_types" ----> 5 train_dataset_enhancers = load_dataset( 6 "InstaDeepAI/nucleotide_transformer_downstream_tasks_revised", 7 dataset_name, 8 split="train", 9 streaming= False, 10 ) 11 test_dataset_enhancers = load_dataset( 12 "InstaDeepAI/nucleotide_transformer_downstream_tasks_revised", 13 dataset_name, 14 split="test", 15 streaming= False, 16 ) File /public/home/hhl/miniconda3/envs/transformer/lib/python3.9/site-packages/datasets/load.py:2129, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2124 verification_mode = VerificationMode( 2125 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2126 ) 2128 # Create a dataset builder -> 2129 builder_instance = load_dataset_builder( 2130 path=path, 2131 name=name, 2132 data_dir=data_dir, 2133 data_files=data_files, 2134 cache_dir=cache_dir, 2135 features=features, 2136 download_config=download_config, 2137 download_mode=download_mode, 2138 revision=revision, 2139 token=token, 2140 storage_options=storage_options, 2141 trust_remote_code=trust_remote_code, 2142 _require_default_config_name=name is None, 2143 **config_kwargs, 2144 ) 2146 # Return iterable dataset in case of streaming 2147 if streaming: File /public/home/hhl/miniconda3/envs/transformer/lib/python3.9/site-packages/datasets/load.py:1886, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 1884 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name) 1885 # Instantiate the dataset builder -> 1886 builder_instance: DatasetBuilder = builder_cls( 1887 cache_dir=cache_dir, 1888 dataset_name=dataset_name, 1889 config_name=config_name, 1890 data_dir=data_dir, 1891 data_files=data_files, 1892 hash=dataset_module.hash, 1893 info=info, 1894 features=features, 1895 token=token, 1896 storage_options=storage_options, 1897 **builder_kwargs, 1898 **config_kwargs, 1899 ) 1900 builder_instance._use_legacy_cache_dir_if_possible(dataset_module) 1902 return builder_instance TypeError: 'NoneType' object is not callable ``` I have checked my internet, it worked well. And the dataset name was just copied from the Hugging Face. Totally no idea what is wrong! ### Steps to reproduce the bug To reproduce the bug you may run ``` from datasets import load_dataset, Dataset # Load the enhancers dataset from the InstaDeep Hugging Face ressources dataset_name = "enhancers_types" train_dataset_enhancers = load_dataset( "InstaDeepAI/nucleotide_transformer_downstream_tasks_revised", dataset_name, split="train", streaming= False, ) test_dataset_enhancers = load_dataset( "InstaDeepAI/nucleotide_transformer_downstream_tasks_revised", dataset_name, split="test", streaming= False, ) ``` ### Expected behavior 1. what may be the reasons of the error 2. how can I fine which reason lead to the error 3. how can I save the problem ### Environment info ``` - `datasets` version: 3.2.0 - Platform: Linux-5.15.0-117-generic-x86_64-with-glibc2.31 - Python version: 3.9.21 - `huggingface_hub` version: 0.27.0 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0 ```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7360/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7360/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7359
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7359/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7359/comments
https://api.github.com/repos/huggingface/datasets/issues/7359/events
https://github.com/huggingface/datasets/issues/7359
2,771,137,842
I_kwDODunzps6lLDUy
7,359
There are multiple 'mteb/arguana' configurations in the cache: default, corpus, queries with HF_HUB_OFFLINE=1
{ "login": "Bhavya6187", "id": 723146, "node_id": "MDQ6VXNlcjcyMzE0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/723146?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bhavya6187", "html_url": "https://github.com/Bhavya6187", "followers_url": "https://api.github.com/users/Bhavya6187/followers", "following_url": "https://api.github.com/users/Bhavya6187/following{/other_user}", "gists_url": "https://api.github.com/users/Bhavya6187/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bhavya6187/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bhavya6187/subscriptions", "organizations_url": "https://api.github.com/users/Bhavya6187/orgs", "repos_url": "https://api.github.com/users/Bhavya6187/repos", "events_url": "https://api.github.com/users/Bhavya6187/events{/privacy}", "received_events_url": "https://api.github.com/users/Bhavya6187/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Related to https://github.com/embeddings-benchmark/mteb/issues/1714" ]
2025-01-06T17:42:49
2025-01-06T17:43:31
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Hey folks, I am trying to run this code - ```python from datasets import load_dataset, get_dataset_config_names ds = load_dataset("mteb/arguana") ``` with HF_HUB_OFFLINE=1 But I get the following error - ```python Using the latest cached version of the dataset since mteb/arguana couldn't be found on the Hugging Face Hub (offline mode is enabled). --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[2], line 1 ----> 1 ds = load_dataset("mteb/arguana") File ~/env/lib/python3.10/site-packages/datasets/load.py:2129, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2124 verification_mode = VerificationMode( 2125 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2126 ) 2128 # Create a dataset builder -> 2129 builder_instance = load_dataset_builder( 2130 path=path, 2131 name=name, 2132 data_dir=data_dir, 2133 data_files=data_files, 2134 cache_dir=cache_dir, 2135 features=features, 2136 download_config=download_config, 2137 download_mode=download_mode, 2138 revision=revision, 2139 token=token, 2140 storage_options=storage_options, 2141 trust_remote_code=trust_remote_code, 2142 _require_default_config_name=name is None, 2143 **config_kwargs, 2144 ) 2146 # Return iterable dataset in case of streaming 2147 if streaming: File ~/env/lib/python3.10/site-packages/datasets/load.py:1886, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 1884 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name) 1885 # Instantiate the dataset builder -> 1886 builder_instance: DatasetBuilder = builder_cls( 1887 cache_dir=cache_dir, 1888 dataset_name=dataset_name, 1889 config_name=config_name, 1890 data_dir=data_dir, 1891 data_files=data_files, 1892 hash=dataset_module.hash, 1893 info=info, 1894 features=features, 1895 token=token, 1896 storage_options=storage_options, 1897 **builder_kwargs, 1898 **config_kwargs, 1899 ) 1900 builder_instance._use_legacy_cache_dir_if_possible(dataset_module) 1902 return builder_instance File ~/env/lib/python3.10/site-packages/datasets/packaged_modules/cache/cache.py:124, in Cache.__init__(self, cache_dir, dataset_name, config_name, version, hash, base_path, info, features, token, repo_id, data_files, data_dir, storage_options, writer_batch_size, **config_kwargs) 122 config_kwargs["data_dir"] = data_dir 123 if hash == "auto" and version == "auto": --> 124 config_name, version, hash = _find_hash_in_cache( 125 dataset_name=repo_id or dataset_name, 126 config_name=config_name, 127 cache_dir=cache_dir, 128 config_kwargs=config_kwargs, 129 custom_features=features, 130 ) 131 elif hash == "auto" or version == "auto": 132 raise NotImplementedError("Pass both hash='auto' and version='auto' instead") File ~/env/lib/python3.10/site-packages/datasets/packaged_modules/cache/cache.py:84, in _find_hash_in_cache(dataset_name, config_name, cache_dir, config_kwargs, custom_features) 72 other_configs = [ 73 Path(_cached_directory_path).parts[-3] 74 for _cached_directory_path in glob.glob(os.path.join(cached_datasets_directory_path_root, "*", version, hash)) (...) 81 ) 82 ] 83 if not config_id and len(other_configs) > 1: ---> 84 raise ValueError( 85 f"There are multiple '{dataset_name}' configurations in the cache: {', '.join(other_configs)}" 86 f"\nPlease specify which configuration to reload from the cache, e.g." 87 f"\n\tload_dataset('{dataset_name}', '{other_configs[0]}')" 88 ) 89 config_name = cached_directory_path.parts[-3] 90 warning_msg = ( 91 f"Found the latest cached dataset configuration '{config_name}' at {cached_directory_path} " 92 f"(last modified on {time.ctime(_get_modification_time(cached_directory_path))})." 93 ) ValueError: There are multiple 'mteb/arguana' configurations in the cache: queries, corpus, default Please specify which configuration to reload from the cache, e.g. load_dataset('mteb/arguana', 'queries') ``` It works when I run the same code with HF_HUB_OFFLINE=0, but after the data is downloaded, I turn off the HF hub cache with HF_HUB_OFFLINE=1, and then this error appears. Are there some files I am missing with hub disabled? ### Steps to reproduce the bug from datasets import load_dataset, get_dataset_config_names ds = load_dataset("mteb/arguana") with HF_HUB_OFFLINE=1 (after already running it with HF_HUB_OFFLINE=0 and populating the datasets cache) ### Expected behavior Dataset loaded successfully as it does with HF_HUB_OFFLINE=1 ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-5.15.148.2-2.cm2-x86_64-with-glibc2.35 - Python version: 3.10.14 - `huggingface_hub` version: 0.27.0 - PyArrow version: 17.0.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.6.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7359/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7359/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7358
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7358/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7358/comments
https://api.github.com/repos/huggingface/datasets/issues/7358/events
https://github.com/huggingface/datasets/pull/7358
2,770,927,769
PR_kwDODunzps6G1kka
7,358
Fix remove_columns in the formatted case
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7358). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-06T15:44:23
2025-01-06T15:46:46
null
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
`remove_columns` had no effect when running a function in `.map()` on dataset that is formatted This aligns the logic of `map()` with the non formatted case and also with with https://github.com/huggingface/datasets/pull/7353
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7358/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7358/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7358", "html_url": "https://github.com/huggingface/datasets/pull/7358", "diff_url": "https://github.com/huggingface/datasets/pull/7358.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7358.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7357
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7357/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7357/comments
https://api.github.com/repos/huggingface/datasets/issues/7357/events
https://github.com/huggingface/datasets/issues/7357
2,770,456,127
I_kwDODunzps6lIc4_
7,357
Python process aborded with GIL issue when using image dataset
{ "login": "AlexKoff88", "id": 25342812, "node_id": "MDQ6VXNlcjI1MzQyODEy", "avatar_url": "https://avatars.githubusercontent.com/u/25342812?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AlexKoff88", "html_url": "https://github.com/AlexKoff88", "followers_url": "https://api.github.com/users/AlexKoff88/followers", "following_url": "https://api.github.com/users/AlexKoff88/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKoff88/gists{/gist_id}", "starred_url": "https://api.github.com/users/AlexKoff88/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKoff88/subscriptions", "organizations_url": "https://api.github.com/users/AlexKoff88/orgs", "repos_url": "https://api.github.com/users/AlexKoff88/repos", "events_url": "https://api.github.com/users/AlexKoff88/events{/privacy}", "received_events_url": "https://api.github.com/users/AlexKoff88/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The issue seems to come from `pyarrow`, I opened an issue on their side at https://github.com/apache/arrow/issues/45214" ]
2025-01-06T11:29:30
2025-01-09T14:00:46
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug The issue is visible only with the latest `datasets==3.2.0`. When using image dataset the Python process gets aborted right before the exit with the following error: ``` Fatal Python error: PyGILState_Release: thread state 0x7fa1f409ade0 must be current when releasing Python runtime state: finalizing (tstate=0x0000000000ad2958) Thread 0x00007fa33d157740 (most recent call first): <no Python frame> Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._boun ded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pyarrow.lib, pandas._libs.tslibs.ccalendar, pandas._libs.ts libs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.t slibs.tzconversion, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.strptime, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._l ibs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.lib, pyarrow._compute, pan das._libs.ops, pandas._libs.hashing, pandas._libs.arrays, pandas._libs.tslib, pandas._libs.sparse, pandas._libs.internals, pandas._libs.indexing, pandas._libs.index, pandas._libs.writers, pandas._libs.join, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.groupby, pandas._libs.json, pandas._libs.parsers, pandas._libs.testing, charset_normalizer.md, requests.pa ckages.charset_normalizer.md, requests.packages.chardet.md, yaml._yaml, markupsafe._speedups, PIL._imaging, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards , torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, sentencepiece._sentencepiece, sklearn.__check_build._check_build, psutil._psut il_linux, psutil._psutil_posix, scipy._lib._ccallback_c, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.l inalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_up date, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.linalg._propack._spropack, scipy.sparse.linalg._propack._dpropack, scipy.sparse.linalg._propack._cpropack, scipy.sparse.linalg._propack._zpropack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flo w, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial ._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.spatial.transform._rotation, scipy.optimize._group_columns, s cipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._cobyla, scipy.optimize._slsqp, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, sc ipy.optimize._zeros, scipy.optimize._highs.cython.src._highs_wrapper, scipy.optimize._highs._highs_wrapper, scipy.optimize._highs.cython.src._highs_constants, scipy.optimize._highs._highs_constants, scipy.l inalg._interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.optimize._direct, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate._vode, scipy.integrate._dop, scipy.integr ate._lsoda, scipy.interpolate._fitpack, scipy.interpolate._dfitpack, scipy.interpolate._bspl, scipy.interpolate._ppoly, scipy.interpolate.interpnd, scipy.interpolate._rbfinterp_pythran, scipy.interpolate._r gi_cython, scipy.special.cython_special, scipy.stats._stats, scipy.stats._biasedurn, scipy.stats._levy_stable.levyst, scipy.stats._stats_pythran, scipy._lib._uarray._uarray, scipy.stats._ansari_swilk_statis tics, scipy.stats._sobol, scipy.stats._qmc_cy, scipy.stats._mvn, scipy.stats._rcont.rcont, scipy.stats._unuran.unuran_wrapper, scipy.ndimage._nd_image, _ni_label, scipy.ndimage._ni_label, sklearn.utils._isf inite, sklearn.utils.sparsefuncs_fast, sklearn.utils.murmurhash, sklearn.utils._openmp_helpers, sklearn.metrics.cluster._expected_mutual_info_fast, sklearn.preprocessing._csr_polynomial_expansion, sklearn.p reprocessing._target_encoder_fast, sklearn.metrics._dist_metrics, sklearn.metrics._pairwise_distances_reduction._datasets_pair, sklearn.utils._cython_blas, sklearn.metrics._pairwise_distances_reduction._bas e, sklearn.metrics._pairwise_distances_reduction._middle_term_computer, sklearn.utils._heap, sklearn.utils._sorting, sklearn.metrics._pairwise_distances_reduction._argkmin, sklearn.metrics._pairwise_distanc es_reduction._argkmin_classmode, sklearn.utils._vector_sentinel, sklearn.metrics._pairwise_distances_reduction._radius_neighbors, sklearn.metrics._pairwise_distances_reduction._radius_neighbors_classmode, s klearn.metrics._pairwise_fast, PIL._imagingft, google._upb._message, h5py._errors, h5py.defs, h5py._objects, h5py.h5, h5py.utils, h5py.h5t, h5py.h5s, h5py.h5ac, h5py.h5p, h5py.h5r, h5py._proxy, h5py._conv, h5py.h5z, h5py.h5a, h5py.h5d, h5py.h5ds, h5py.h5g, h5py.h5i, h5py.h5o, h5py.h5f, h5py.h5fd, h5py.h5pl, h5py.h5l, h5py._selector, _cffi_backend, pyarrow._parquet, pyarrow._fs, pyarrow._azurefs, pyarrow._hdfs , pyarrow._gcsfs, pyarrow._s3fs, multidict._multidict, propcache._helpers_c, yarl._quoting_c, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, frozenlist._frozenlist, xxhash ._xxhash, pyarrow._json, pyarrow._acero, pyarrow._csv, pyarrow._dataset, pyarrow._dataset_orc, pyarrow._parquet_encryption, pyarrow._dataset_parquet_encryption, pyarrow._dataset_parquet, regex._regex, scipy .io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, PIL._imagingmath, PIL._webp (total: 236) Aborted (core dumped) ```an ### Steps to reproduce the bug Install `datasets==3.2.0` Run the following script: ```python import datasets DATASET_NAME = "phiyodr/InpaintCOCO" NUM_SAMPLES = 10 def preprocess_fn(example): return { "prompts": example["inpaint_caption"], "images": example["coco_image"], "masks": example["mask"], } default_dataset = datasets.load_dataset( DATASET_NAME, split="test", streaming=True ).filter(lambda example: example["inpaint_caption"] != "").take(NUM_SAMPLES) test_data = default_dataset.map( lambda x: preprocess_fn(x), remove_columns=default_dataset.column_names ) for data in test_data: print(data["prompts"]) `` ### Expected behavior The script should not hang or crash. ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-5.15.0-50-generic-x86_64-with-glibc2.31 - Python version: 3.11.0 - `huggingface_hub` version: 0.25.1 - PyArrow version: 17.0.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.2.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7357/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7357/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7356
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7356/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7356/comments
https://api.github.com/repos/huggingface/datasets/issues/7356/events
https://github.com/huggingface/datasets/issues/7356
2,770,095,103
I_kwDODunzps6lHEv_
7,356
How about adding a feature to pass the key when performing map on DatasetDict?
{ "login": "jp1924", "id": 93233241, "node_id": "U_kgDOBY6gWQ", "avatar_url": "https://avatars.githubusercontent.com/u/93233241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jp1924", "html_url": "https://github.com/jp1924", "followers_url": "https://api.github.com/users/jp1924/followers", "following_url": "https://api.github.com/users/jp1924/following{/other_user}", "gists_url": "https://api.github.com/users/jp1924/gists{/gist_id}", "starred_url": "https://api.github.com/users/jp1924/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jp1924/subscriptions", "organizations_url": "https://api.github.com/users/jp1924/orgs", "repos_url": "https://api.github.com/users/jp1924/repos", "events_url": "https://api.github.com/users/jp1924/events{/privacy}", "received_events_url": "https://api.github.com/users/jp1924/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "@lhoestq \r\nIf it's okay with you, can I work on this?", "Hi ! Can you give an example of what it would look like to use this new feature ?\r\n\r\nNote that currently you can already do\r\n\r\n```python\r\nds[\"train\"] = ds[\"train\"].map(process_train)\r\nds[\"test\"] = ds[\"test\"].map(process_test)\r\n```", "@lhoestq \nThanks for the response! \nLet me clarify what I'm looking for with an example:\n\nCurrently, we need to write separate processing functions or call .map() separately:\n```python\n# Current approach\ndef process_train(example):\n # Training-specific processing\n return example\n\ndef process_valid(example):\n # Validation-specific processing\n return example\n\nds[\"train\"] = ds[\"train\"].map(process_train)\nds[\"valid\"] = ds[\"valid\"].map(process_valid)\n```\n\nWhat I'm proposing is to have a single processing function that knows which split it's processing:\n\n```python\n# Proposed feature\ndef process(example, split_key):\n if split_key == \"train\":\n # Training-specific processing\n elif split_key == \"valid\":\n # Validation-specific processing\n return example\n\n# Using with_key=True to pass the split information\nds = ds.map(process, with_key=True)\n```\n\nThis becomes particularly useful when:\n1. The processing logic is heavily shared between splits but needs minor adjustments\n2. You want to maintain the processing logic in one place for better maintainability\n3. The processing function is complex and you want to avoid duplicating code\n\nSo I wanted to request this feature to achieve this kind of functionality. \nI've created a draft PR implementing this: https://github.com/huggingface/datasets/pull/7240/files\n", "I see ! I think it makes sense, and it's more readable than doing something like this:\r\n```python\r\nfrom functools import partial\r\nds = DatasetDict({key: ds[key].map(partial(process, split_key=key)) for key in ds})\r\n```\r\n\r\nPS: you named the argument `with_key` in your example, but it might be even clearer with it's named `with_split` maybe no ?", "@lhoestq I agree. \nIt seems better to use `with_split`.\nSo can I open a PR with this change?", "Sure !" ]
2025-01-06T08:13:52
2025-01-13T14:30:48
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when performing map on DatasetDict. What do you think? ### Your contribution I can submit a pull request to add the feature to pass the key of the DatasetDict when performing map.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7356/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7356/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7355
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7355/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7355/comments
https://api.github.com/repos/huggingface/datasets/issues/7355/events
https://github.com/huggingface/datasets/issues/7355
2,768,958,211
I_kwDODunzps6lCvMD
7,355
Not available datasets[audio] on python 3.13
{ "login": "sergiosinlimites", "id": 70306948, "node_id": "MDQ6VXNlcjcwMzA2OTQ4", "avatar_url": "https://avatars.githubusercontent.com/u/70306948?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sergiosinlimites", "html_url": "https://github.com/sergiosinlimites", "followers_url": "https://api.github.com/users/sergiosinlimites/followers", "following_url": "https://api.github.com/users/sergiosinlimites/following{/other_user}", "gists_url": "https://api.github.com/users/sergiosinlimites/gists{/gist_id}", "starred_url": "https://api.github.com/users/sergiosinlimites/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sergiosinlimites/subscriptions", "organizations_url": "https://api.github.com/users/sergiosinlimites/orgs", "repos_url": "https://api.github.com/users/sergiosinlimites/repos", "events_url": "https://api.github.com/users/sergiosinlimites/events{/privacy}", "received_events_url": "https://api.github.com/users/sergiosinlimites/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "It looks like an issue with `numba` which can't be installed on 3.13 ? `numba` is a dependency of `librosa`, used to decode audio files" ]
2025-01-04T18:37:08
2025-01-10T10:46:00
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug This is the error I got, it seems numba package does not support python 3.13 PS C:\Users\sergi\Documents> pip install datasets[audio] Defaulting to user installation because normal site-packages is not writeable Collecting datasets[audio] Using cached datasets-3.2.0-py3-none-any.whl.metadata (20 kB) ... (OTHER PACKAGES) Collecting numba>=0.51.0 (from librosa->datasets[audio]) Downloading numba-0.60.0.tar.gz (2.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 44.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() ~~~~^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\sergi\AppData\Local\Temp\pip-build-env-yauns_qh\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\sergi\AppData\Local\Temp\pip-build-env-yauns_qh\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ RuntimeError: Cannot install on Python version 3.13.1; only versions >=3.9,<3.13 are supported. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. ### Steps to reproduce the bug 1. install python >=3.13 2. !pip install datasets[audio] ### Expected behavior I needed datasets[audio] in the python 3.13 ### Environment info python 3.13.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7355/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7355/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7354
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7354/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7354/comments
https://api.github.com/repos/huggingface/datasets/issues/7354/events
https://github.com/huggingface/datasets/issues/7354
2,768,955,917
I_kwDODunzps6lCuoN
7,354
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
{ "login": "jamessdixon", "id": 1394644, "node_id": "MDQ6VXNlcjEzOTQ2NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1394644?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamessdixon", "html_url": "https://github.com/jamessdixon", "followers_url": "https://api.github.com/users/jamessdixon/followers", "following_url": "https://api.github.com/users/jamessdixon/following{/other_user}", "gists_url": "https://api.github.com/users/jamessdixon/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamessdixon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamessdixon/subscriptions", "organizations_url": "https://api.github.com/users/jamessdixon/orgs", "repos_url": "https://api.github.com/users/jamessdixon/repos", "events_url": "https://api.github.com/users/jamessdixon/events{/privacy}", "received_events_url": "https://api.github.com/users/jamessdixon/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "recreated .venv and run this: pip install diffusers[training]==0.11.1" ]
2025-01-04T18:30:17
2025-01-08T02:20:58
2025-01-08T02:20:58
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Following this tutorial: https://huggingface.co/docs/diffusers/en/tutorials/basic_training and running it locally using VSCode on my MacBook. The first line in the tutorial fails: from datasets import load_dataset dataset = load_dataset('huggan/smithsonian_butterflies_subset', split="train"). with this error: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. and ImportError: numpy.core.multiarray failed to import. Does from datasets import load_dataset really use NumPy 1.x? ### Steps to reproduce the bug Open VSCode. create a new venv. Create a new ipynb file. Import pip install diffusers[training] try to run this line of code: from datasets import load_dataset ### Expected behavior data is loaded ### Environment info ran this: datasets-cli env and got A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.
{ "login": "jamessdixon", "id": 1394644, "node_id": "MDQ6VXNlcjEzOTQ2NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1394644?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamessdixon", "html_url": "https://github.com/jamessdixon", "followers_url": "https://api.github.com/users/jamessdixon/followers", "following_url": "https://api.github.com/users/jamessdixon/following{/other_user}", "gists_url": "https://api.github.com/users/jamessdixon/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamessdixon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamessdixon/subscriptions", "organizations_url": "https://api.github.com/users/jamessdixon/orgs", "repos_url": "https://api.github.com/users/jamessdixon/repos", "events_url": "https://api.github.com/users/jamessdixon/events{/privacy}", "received_events_url": "https://api.github.com/users/jamessdixon/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7354/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7354/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7353
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7353/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7353/comments
https://api.github.com/repos/huggingface/datasets/issues/7353/events
https://github.com/huggingface/datasets/pull/7353
2,768,484,726
PR_kwDODunzps6Gtd6K
7,353
changes to MappedExamplesIterable to resolve #7345
{ "login": "vttrifonov", "id": 12157034, "node_id": "MDQ6VXNlcjEyMTU3MDM0", "avatar_url": "https://avatars.githubusercontent.com/u/12157034?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vttrifonov", "html_url": "https://github.com/vttrifonov", "followers_url": "https://api.github.com/users/vttrifonov/followers", "following_url": "https://api.github.com/users/vttrifonov/following{/other_user}", "gists_url": "https://api.github.com/users/vttrifonov/gists{/gist_id}", "starred_url": "https://api.github.com/users/vttrifonov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vttrifonov/subscriptions", "organizations_url": "https://api.github.com/users/vttrifonov/orgs", "repos_url": "https://api.github.com/users/vttrifonov/repos", "events_url": "https://api.github.com/users/vttrifonov/events{/privacy}", "received_events_url": "https://api.github.com/users/vttrifonov/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "I noticed that `Dataset.map` has a more complex output depending on `remove_columns`. In particular [this](https://github.com/huggingface/datasets/blob/6457be66e2ef88411281eddc4e7698866a3977f1/src/datasets/arrow_dataset.py#L3371) line removes columns from output if the input is being modified in place (i.e. `input_columns = None`). I tried to mimic this behaviour in `MappedExamplesIterable` by checking if the input and output point to the same dictionary object.", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7353). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-04T06:01:15
2025-01-07T11:56:41
2025-01-07T11:56:41
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
modified `MappedExamplesIterable` and `test_iterable_dataset.py::test_mapped_examples_iterable_with_indices` fix #7345 @lhoestq
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7353/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7353/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7353", "html_url": "https://github.com/huggingface/datasets/pull/7353", "diff_url": "https://github.com/huggingface/datasets/pull/7353.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7353.patch", "merged_at": "2025-01-07T11:56:41" }
true
https://api.github.com/repos/huggingface/datasets/issues/7352
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7352/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7352/comments
https://api.github.com/repos/huggingface/datasets/issues/7352/events
https://github.com/huggingface/datasets/pull/7352
2,767,763,850
PR_kwDODunzps6GrBB5
7,352
fsspec 2024.12.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7352). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-03T15:32:25
2025-01-03T15:34:54
2025-01-03T15:34:11
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7352/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7352/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7352", "html_url": "https://github.com/huggingface/datasets/pull/7352", "diff_url": "https://github.com/huggingface/datasets/pull/7352.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7352.patch", "merged_at": "2025-01-03T15:34:11" }
true
https://api.github.com/repos/huggingface/datasets/issues/7350
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7350/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7350/comments
https://api.github.com/repos/huggingface/datasets/issues/7350/events
https://github.com/huggingface/datasets/pull/7350
2,767,731,707
PR_kwDODunzps6Gq6Bf
7,350
Bump hfh to 0.24 to fix ci
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7350). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-03T15:09:40
2025-01-03T15:12:17
2025-01-03T15:10:27
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7350/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7350/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7350", "html_url": "https://github.com/huggingface/datasets/pull/7350", "diff_url": "https://github.com/huggingface/datasets/pull/7350.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7350.patch", "merged_at": "2025-01-03T15:10:27" }
true
https://api.github.com/repos/huggingface/datasets/issues/7349
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7349/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7349/comments
https://api.github.com/repos/huggingface/datasets/issues/7349/events
https://github.com/huggingface/datasets/pull/7349
2,767,670,454
PR_kwDODunzps6GqseO
7,349
Webdataset special columns in last position
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7349). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-03T14:32:15
2025-01-03T14:34:39
2025-01-03T14:32:30
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Place columns "__key__" and "__url__" in last position in the Dataset Viewer since they are not the main content before: <img width="1012" alt="image" src="https://github.com/user-attachments/assets/b556c1fe-2674-4ba0-9643-c074aa9716fd" />
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7349/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7349/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7349", "html_url": "https://github.com/huggingface/datasets/pull/7349", "diff_url": "https://github.com/huggingface/datasets/pull/7349.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7349.patch", "merged_at": "2025-01-03T14:32:30" }
true
https://api.github.com/repos/huggingface/datasets/issues/7348
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7348/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7348/comments
https://api.github.com/repos/huggingface/datasets/issues/7348/events
https://github.com/huggingface/datasets/pull/7348
2,766,128,230
PR_kwDODunzps6Gldcy
7,348
Catch OSError for arrow
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7348). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-01-02T14:30:00
2025-01-09T14:25:06
2025-01-09T14:25:04
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
fixes https://github.com/huggingface/datasets/issues/7346 (also updated `ruff` and appleid style changes)
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7348/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7348/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7348", "html_url": "https://github.com/huggingface/datasets/pull/7348", "diff_url": "https://github.com/huggingface/datasets/pull/7348.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7348.patch", "merged_at": "2025-01-09T14:25:04" }
true
https://api.github.com/repos/huggingface/datasets/issues/7347
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7347/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7347/comments
https://api.github.com/repos/huggingface/datasets/issues/7347/events
https://github.com/huggingface/datasets/issues/7347
2,760,282,339
I_kwDODunzps6khpDj
7,347
Converting Arrow to WebDataset TAR Format for Offline Use
{ "login": "katie312", "id": 91370128, "node_id": "MDQ6VXNlcjkxMzcwMTI4", "avatar_url": "https://avatars.githubusercontent.com/u/91370128?v=4", "gravatar_id": "", "url": "https://api.github.com/users/katie312", "html_url": "https://github.com/katie312", "followers_url": "https://api.github.com/users/katie312/followers", "following_url": "https://api.github.com/users/katie312/following{/other_user}", "gists_url": "https://api.github.com/users/katie312/gists{/gist_id}", "starred_url": "https://api.github.com/users/katie312/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/katie312/subscriptions", "organizations_url": "https://api.github.com/users/katie312/orgs", "repos_url": "https://api.github.com/users/katie312/repos", "events_url": "https://api.github.com/users/katie312/events{/privacy}", "received_events_url": "https://api.github.com/users/katie312/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
[ "Hi,\r\n\r\nI've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by:\r\n\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"pixparse/cc3m-wds\")\r\ndataset.save_to_disk(\"./cc3m_1\")\r\n\r\n\r\nnow I need to convert it to WebDataset's TAR format for offline data ingestion.\r\nIs there a straightforward method to achieve this conversion without an internet connection? Can I simply convert it by\r\n\r\ntar -cvf\r\n\r\n\r\nbtw, when I tried:\r\n\r\nimport webdataset as wds\r\nfrom huggingface_hub import get_token\r\nfrom torch.utils.data import DataLoader\r\n\r\nhf_token = get_token()\r\nurl = \"https://huggingface.co/datasets/timm/imagenet-12k-wds/resolve/main/imagenet12k-train-{{0000..1023}}.tar\"\r\nurl = f\"pipe:curl -s -L {url} -H 'Authorization:Bearer {hf_token}'\"\r\ndataset = wds.WebDataset(url).decode()\r\ndataset.save_to_disk(\"./cc3m_webdataset\")\r\n\r\n\r\nerror occured:\r\n\r\nAttributeError: 'WebDataset' object has no attribute 'save_to_disk'\r\n\r\n\r\nThanks a lot!\r\n\r\nMotivation\r\n\r\nConverting Arrow to WebDataset TAR Format\r\n\r\nYour contribution\r\n\r\nNo clue yet\r\n\r\n\r\nاحصل على Outlook لـ iOS<https://aka.ms/o0ukef>\r\n________________________________\r\nمن: katie312 ***@***.***>\r\n‏‏تم الإرسال: Friday, December 27, 2024 4:41:21 AM\r\nإلى: huggingface/datasets ***@***.***>\r\nنسخة: Subscribed ***@***.***>\r\n‏‏الموضوع: [huggingface/datasets] Converting Arrow to WebDataset TAR Format for Offline Use (Issue #7347)\r\n\r\n\r\nFeature request\r\n\r\nHi,\r\n\r\nI've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by:\r\n\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"pixparse/cc3m-wds\")\r\ndataset.save_to_disk(\"./cc3m_1\")\r\n\r\n\r\nnow I need to convert it to WebDataset's TAR format for offline data ingestion.\r\nIs there a straightforward method to achieve this conversion without an internet connection? Can I simply convert it by\r\n\r\ntar -cvf\r\n\r\n\r\nbtw, when I tried:\r\n\r\nimport webdataset as wds\r\nfrom huggingface_hub import get_token\r\nfrom torch.utils.data import DataLoader\r\n\r\nhf_token = get_token()\r\nurl = \"https://huggingface.co/datasets/timm/imagenet-12k-wds/resolve/main/imagenet12k-train-{{0000..1023}}.tar\"\r\nurl = f\"pipe:curl -s -L {url} -H 'Authorization:Bearer {hf_token}'\"\r\ndataset = wds.WebDataset(url).decode()\r\ndataset.save_to_disk(\"./cc3m_webdataset\")\r\n\r\n\r\nerror occured:\r\n\r\nAttributeError: 'WebDataset' object has no attribute 'save_to_disk'\r\n\r\n\r\nThanks a lot!\r\n\r\nMotivation\r\n\r\nConverting Arrow to WebDataset TAR Format\r\n\r\nYour contribution\r\n\r\nNo clue yet\r\n\r\n—\r\nReply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/7347>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQJDZ2X2RUIIULBJEF5R2HL2HSV4DAVCNFSM6AAAAABUH5QSLCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DAMRYGIZTGOI>.\r\nYou are receiving this because you are subscribed to this thread.Message ID: ***@***.***>\r\n", "> now I need to convert it to WebDataset's TAR format for offline data ingestion.\r\n\r\nyou can directly download the .TAR files from HF using e.g. `huggingface-cli download` and load them in webdataset :)", "الفله سنه والطبقه يوم\r\n\r\nاحصل على Outlook لـ iOS<https://aka.ms/o0ukef>\r\n________________________________\r\nمن: Quentin Lhoest ***@***.***>\r\n‏‏تم الإرسال: Friday, December 27, 2024 4:14:43 PM\r\nإلى: huggingface/datasets ***@***.***>\r\nنسخة: hamad350 ***@***.***>; Comment ***@***.***>\r\n‏‏الموضوع: Re: [huggingface/datasets] Converting Arrow to WebDataset TAR Format for Offline Use (Issue #7347)\r\n\r\n\r\nnow I need to convert it to WebDataset's TAR format for offline data ingestion.\r\n\r\nyou can directly download the .TAR files from HF using e.g. huggingface-cli download and load them in webdataset :)\r\n\r\n—\r\nReply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/7347#issuecomment-2563691570>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQJDZ2R5M3Z7L2MZZYARYID2HVHEHAVCNFSM6AAAAABUH5QSLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTGY4TCNJXGA>.\r\nYou are receiving this because you commented.Message ID: ***@***.***>\r\n", "> > now I need to convert it to WebDataset's TAR format for offline data ingestion.\r\n> \r\n> you can directly download the .TAR files from HF using e.g. `huggingface-cli download` and load them in webdataset :)\r\n\r\nThanks a lot! I completely forgot to use Hugging Face-CLI download. Thanks for the reminding!" ]
2024-12-27T01:40:44
2024-12-31T17:38:00
2024-12-28T15:38:03
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request Hi, I've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by: ``` import json from datasets import load_dataset dataset = load_dataset("pixparse/cc3m-wds") dataset.save_to_disk("./cc3m_1") ``` now I need to convert it to WebDataset's TAR format for offline data ingestion. Is there a straightforward method to achieve this conversion without an internet connection? Can I simply convert it by ``` tar -cvf ``` btw, when I tried: ``` import webdataset as wds from huggingface_hub import get_token from torch.utils.data import DataLoader hf_token = get_token() url = "https://huggingface.co/datasets/timm/imagenet-12k-wds/resolve/main/imagenet12k-train-{{0000..1023}}.tar" url = f"pipe:curl -s -L {url} -H 'Authorization:Bearer {hf_token}'" dataset = wds.WebDataset(url).decode() dataset.save_to_disk("./cc3m_webdataset") ``` error occured: ``` AttributeError: 'WebDataset' object has no attribute 'save_to_disk' ``` Thanks a lot! ### Motivation Converting Arrow to WebDataset TAR Format ### Your contribution No clue yet
{ "login": "katie312", "id": 91370128, "node_id": "MDQ6VXNlcjkxMzcwMTI4", "avatar_url": "https://avatars.githubusercontent.com/u/91370128?v=4", "gravatar_id": "", "url": "https://api.github.com/users/katie312", "html_url": "https://github.com/katie312", "followers_url": "https://api.github.com/users/katie312/followers", "following_url": "https://api.github.com/users/katie312/following{/other_user}", "gists_url": "https://api.github.com/users/katie312/gists{/gist_id}", "starred_url": "https://api.github.com/users/katie312/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/katie312/subscriptions", "organizations_url": "https://api.github.com/users/katie312/orgs", "repos_url": "https://api.github.com/users/katie312/repos", "events_url": "https://api.github.com/users/katie312/events{/privacy}", "received_events_url": "https://api.github.com/users/katie312/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7347/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7347/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7346
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7346/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7346/comments
https://api.github.com/repos/huggingface/datasets/issues/7346/events
https://github.com/huggingface/datasets/issues/7346
2,758,752,118
I_kwDODunzps6kbzd2
7,346
OSError: Invalid flatbuffers message.
{ "login": "antecede", "id": 46232487, "node_id": "MDQ6VXNlcjQ2MjMyNDg3", "avatar_url": "https://avatars.githubusercontent.com/u/46232487?v=4", "gravatar_id": "", "url": "https://api.github.com/users/antecede", "html_url": "https://github.com/antecede", "followers_url": "https://api.github.com/users/antecede/followers", "following_url": "https://api.github.com/users/antecede/following{/other_user}", "gists_url": "https://api.github.com/users/antecede/gists{/gist_id}", "starred_url": "https://api.github.com/users/antecede/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/antecede/subscriptions", "organizations_url": "https://api.github.com/users/antecede/orgs", "repos_url": "https://api.github.com/users/antecede/repos", "events_url": "https://api.github.com/users/antecede/events{/privacy}", "received_events_url": "https://api.github.com/users/antecede/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Thanks for reporting, it looks like an issue with `pyarrow.ipc.open_stream`\r\n\r\nCan you try installing `datasets` from this pull request and see if it helps ? https://github.com/huggingface/datasets/pull/7348", "> Thanks for reporting, it looks like an issue with `pyarrow.ipc.open_stream`\r\n> \r\n> Can you try installing `datasets` from this pull request and see if it helps ? #7348\r\n\r\nThank you very much. Here, it also needed to be changed to `except (OSError, pa.lib.ArrowInvalid):`. And then the bug was fixed.\r\nhttps://github.com/huggingface/datasets/blob/2826a040a05e19fca894253b78a932d4fcb4a584/src/datasets/packaged_modules/arrow/arrow.py#L48", "Cool ! we will do a new release soon :) in the meantime you can use `datasets` from `main`" ]
2024-12-25T11:38:52
2025-01-09T14:25:29
2025-01-09T14:25:05
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug When loading a large 2D data (1000 × 1152) with a large number of (2,000 data in this case) in `load_dataset`, the error message `OSError: Invalid flatbuffers message` is reported. When only 300 pieces of data of this size (1000 × 1152) are stored, they can be loaded correctly. When 2,000 2D arrays are stored in each file, about 100 files are generated, each with a file size of about 5-6GB. But when 300 2D arrays are stored in each file, **about 600 files are generated, which is too many files**. ### Steps to reproduce the bug error: ```python --------------------------------------------------------------------------- OSError Traceback (most recent call last) Cell In[2], line 4 1 from datasets import Dataset 2 from datasets import load_dataset ----> 4 real_dataset = load_dataset("arrow", data_files='tensorData/real_ResidueTensor/*', split="train")#.with_format("torch") # , split="train" 5 # sim_dataset = load_dataset("arrow", data_files='tensorData/sim_ResidueTensor/*', split="train").with_format("torch") 6 real_dataset File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/load.py:2151](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/load.py#line=2150), in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2148 return builder_instance.as_streaming_dataset(split=split) 2150 # Download and prepare data -> 2151 builder_instance.download_and_prepare( 2152 download_config=download_config, 2153 download_mode=download_mode, 2154 verification_mode=verification_mode, 2155 num_proc=num_proc, 2156 storage_options=storage_options, 2157 ) 2159 # Build dataset for splits 2160 keep_in_memory = ( 2161 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size) 2162 ) File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/builder.py:924](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/builder.py#line=923), in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, dl_manager, base_path, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs) 922 if num_proc is not None: 923 prepare_split_kwargs["num_proc"] = num_proc --> 924 self._download_and_prepare( 925 dl_manager=dl_manager, 926 verification_mode=verification_mode, 927 **prepare_split_kwargs, 928 **download_and_prepare_kwargs, 929 ) 930 # Sync info 931 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values()) File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/builder.py:978](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/builder.py#line=977), in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs) 976 split_dict = SplitDict(dataset_name=self.dataset_name) 977 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 978 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 980 # Checksums verification 981 if verification_mode == VerificationMode.ALL_CHECKS and dl_manager.record_checksums: File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/packaged_modules/arrow/arrow.py:47](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/datasets/packaged_modules/arrow/arrow.py#line=46), in Arrow._split_generators(self, dl_manager) 45 with open(file, "rb") as f: 46 try: ---> 47 reader = pa.ipc.open_stream(f) 48 except pa.lib.ArrowInvalid: 49 reader = pa.ipc.open_file(f) File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.py:190](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.py#line=189), in open_stream(source, options, memory_pool) 171 def open_stream(source, *, options=None, memory_pool=None): 172 """ 173 Create reader for Arrow streaming format. 174 (...) 188 A reader for the given source 189 """ --> 190 return RecordBatchStreamReader(source, options=options, 191 memory_pool=memory_pool) File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.py:52](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.py#line=51), in RecordBatchStreamReader.__init__(self, source, options, memory_pool) 50 def __init__(self, source, *, options=None, memory_pool=None): 51 options = _ensure_default_ipc_read_options(options) ---> 52 self._open(source, options=options, memory_pool=memory_pool) File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.pxi:1006](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/ipc.pxi#line=1005), in pyarrow.lib._RecordBatchStreamReader._open() File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/error.pxi:155](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/error.pxi#line=154), in pyarrow.lib.pyarrow_internal_check_status() File [~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/error.pxi:92](http://localhost:8899/lab/tree/RTC%3Anew_world/esm3/~/miniforge3/envs/esmIne3/lib/python3.12/site-packages/pyarrow/error.pxi#line=91), in pyarrow.lib.check_status() OSError: Invalid flatbuffers message. ``` reproduce:Here is just an example result, the real 2D matrix is the output of the ESM large model, and the matrix size is approximate ```python import numpy as np import pyarrow as pa random_arrays_list = [np.random.rand(1000, 1152) for _ in range(2000)] table = pa.Table.from_pydict({ 'tensor': [tensor.tolist() for tensor in random_arrays_list] }) import pyarrow.feather as feather feather.write_feather(table, 'test.arrow') from datasets import load_dataset dataset = load_dataset("arrow", data_files='test.arrow', split="train") ``` ### Expected behavior `load_dataset` load the dataset as normal as `feather.read_feather` ```python import pyarrow.feather as feather feather.read_feather('tensorData/real_ResidueTensor/real_tensor_1.arrow') ``` Plus `load_dataset("parquet", data_files='test.arrow', split="train")` works fine ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.39 - Python version: 3.12.3 - `huggingface_hub` version: 0.26.5 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7346/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7346/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7345
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7345/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7345/comments
https://api.github.com/repos/huggingface/datasets/issues/7345/events
https://github.com/huggingface/datasets/issues/7345
2,758,585,709
I_kwDODunzps6kbK1t
7,345
Different behaviour of IterableDataset.map vs Dataset.map with remove_columns
{ "login": "vttrifonov", "id": 12157034, "node_id": "MDQ6VXNlcjEyMTU3MDM0", "avatar_url": "https://avatars.githubusercontent.com/u/12157034?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vttrifonov", "html_url": "https://github.com/vttrifonov", "followers_url": "https://api.github.com/users/vttrifonov/followers", "following_url": "https://api.github.com/users/vttrifonov/following{/other_user}", "gists_url": "https://api.github.com/users/vttrifonov/gists{/gist_id}", "starred_url": "https://api.github.com/users/vttrifonov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vttrifonov/subscriptions", "organizations_url": "https://api.github.com/users/vttrifonov/orgs", "repos_url": "https://api.github.com/users/vttrifonov/repos", "events_url": "https://api.github.com/users/vttrifonov/events{/privacy}", "received_events_url": "https://api.github.com/users/vttrifonov/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Good catch ! Do you think you can open a PR to fix this issue ?" ]
2024-12-25T07:36:48
2025-01-07T11:56:42
2025-01-07T11:56:42
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug The following code ```python import datasets as hf ds1 = hf.Dataset.from_list([{'i': i} for i in [0,1]]) #ds1 = ds1.to_iterable_dataset() ds2 = ds1.map( lambda i: {'i': i+1}, input_columns = ['i'], remove_columns = ['i'] ) list(ds2) ``` produces ```python [{'i': 1}, {'i': 2}] ``` as expected. If the line that converts `ds1` to iterable is uncommented so that the `ds2` is a map of an `IterableDataset`, the result is ```python [{},{}] ``` I expected the output to be the same as before. It seems that in the second case the removed column is not added back into the output. The issue seems to be [here](https://github.com/huggingface/datasets/blob/6c6a82a573f946c4a81069f56446caed15cee9c2/src/datasets/iterable_dataset.py#L1093): the columns are removed after the mapping which is not what we want (or what the [documentation says](https://github.com/huggingface/datasets/blob/6c6a82a573f946c4a81069f56446caed15cee9c2/src/datasets/iterable_dataset.py#L2370)) because we want the columns removed from the transformed example but then added if the map produced them. This is `datasets==3.2.0` and `python==3.10` ### Steps to reproduce the bug see above ### Expected behavior see above ### Environment info see above
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7345/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7345/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7344
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7344/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7344/comments
https://api.github.com/repos/huggingface/datasets/issues/7344/events
https://github.com/huggingface/datasets/issues/7344
2,754,735,951
I_kwDODunzps6kMe9P
7,344
HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access SlimPajama-627B or c4 on TPUs
{ "login": "clankur", "id": 9397233, "node_id": "MDQ6VXNlcjkzOTcyMzM=", "avatar_url": "https://avatars.githubusercontent.com/u/9397233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/clankur", "html_url": "https://github.com/clankur", "followers_url": "https://api.github.com/users/clankur/followers", "following_url": "https://api.github.com/users/clankur/following{/other_user}", "gists_url": "https://api.github.com/users/clankur/gists{/gist_id}", "starred_url": "https://api.github.com/users/clankur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/clankur/subscriptions", "organizations_url": "https://api.github.com/users/clankur/orgs", "repos_url": "https://api.github.com/users/clankur/repos", "events_url": "https://api.github.com/users/clankur/events{/privacy}", "received_events_url": "https://api.github.com/users/clankur/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hi ! This is due to your old version of `datasets` which calls HF with `expand=True`, an option that is strongly rate limited.\r\n\r\nRecent versions of `datasets` don't rely on this anymore, you can fix your issue by upgrading `datasets` :)\r\n\r\n```\r\npip install -U datasets\r\n```\r\n\r\nYou can also get maximum HF availability on your compute nodes with HF Enterprise (see [network security features](https://huggingface.co/docs/hub/enterprise-hub-network-security))", "Upgrading fixed the issue for me. Thanks! " ]
2024-12-22T16:30:07
2025-01-15T05:32:00
2025-01-15T05:31:58
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I am trying to run some trainings on Google's TPUs using Huggingface's DataLoader on [SlimPajama-627B](https://huggingface.co/datasets/cerebras/SlimPajama-627B) and [c4](https://huggingface.co/datasets/allenai/c4), but I end up running into `429 Client Error: Too Many Requests for URL` error when I call `load_dataset`. The even odder part is that I am able to sucessfully run trainings with the [wikitext dataset](https://huggingface.co/datasets/Salesforce/wikitext). Is there something I need to setup to specifically train with SlimPajama or C4 with TPUs because I am not clear why I am getting these errors. ### Steps to reproduce the bug These are the commands you could run to produce the error below but you will require a ClearML account (you can create one [here](https://app.clear.ml/login?redirect=%2Fdashboard)) with a queue setup to run on Google TPUs ```bash git clone https://github.com/clankur/muGPT.git cd muGPT python -m train --config-name=slim_v4-32_84m.yaml +training.queue={NAME_OF_CLEARML_QUEUE} ``` The error I see: ``` Traceback (most recent call last): File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/clearml/binding/hydra_bind.py", line 230, in _patched_task_function return task_function(a_config, *a_args, **a_kwargs) File "/home/clankur/.clearml/venvs-builds/3.10/task_repository/muGPT.git/train.py", line 1037, in main main_contained(config, logger) File "/home/clankur/.clearml/venvs-builds/3.10/task_repository/muGPT.git/train.py", line 840, in main_contained loader = get_loader("train", config.training_data, config.training.tokens) File "/home/clankur/.clearml/venvs-builds/3.10/task_repository/muGPT.git/input_loader.py", line 549, in get_loader return HuggingFaceDataLoader(split, config, token_batch_params) File "/home/clankur/.clearml/venvs-builds/3.10/task_repository/muGPT.git/input_loader.py", line 395, in __init__ self.dataset = load_dataset( File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/load.py", line 2112, in load_dataset builder_instance = load_dataset_builder( File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/load.py", line 1798, in load_dataset_builder dataset_module = dataset_module_factory( File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/load.py", line 1495, in dataset_module_factory raise e1 from None File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/load.py", line 1479, in dataset_module_factory ).get_module() File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/load.py", line 1034, in get_module else get_data_patterns(base_path, download_config=self.download_config) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/data_files.py", line 457, in get_data_patterns return _get_data_files_patterns(resolver) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/data_files.py", line 248, in _get_data_files_patterns data_files = pattern_resolver(pattern) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/datasets/data_files.py", line 340, in resolve_pattern for filepath, info in fs.glob(pattern, detail=True).items() File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 409, in glob return super().glob(path, **kwargs) File "/home/clankur/.clearml/venvs-builds/3.10/lib/python3.10/site-packages/fsspec/spec.py", line 602, in glob allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 429, in find out = self._ls_tree(path, recursive=True, refresh=refresh, revision=resolved_path.revision, **kwargs) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 358, in _ls_tree self._ls_tree( File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/hf_file_system.py", line 375, in _ls_tree for path_info in tree: File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 3080, in list_repo_tree for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}): File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/utils/_pagination.py", line 46, in paginate hf_raise_for_status(r) File "/home/clankur/conda/envs/jax/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 477, in hf_raise_for_status raise _format(HfHubHTTPError, str(e), response) from e huggingface_hub.errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/api/datasets/cerebras/SlimPajama-627B/tree/2d0accdd58c5d5511943ca1f5ff0e3eb5e293543?recursive=True&expand=True&cursor=ZXlKbWFXeGxYMjVoYldVaU9pSjBaWE4wTDJOb2RXNXJNUzlsZUdGdGNHeGxYMmh2YkdSdmRYUmZPVFEzTG1wemIyNXNMbnB6ZENKOTo2MjUw (Request ID: Root=1-67673de9-1413900606ede7712b08ef2c;1304c09c-3e69-4222-be14-f10ee709d49c) maximum queue size reached Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. ``` ### Expected behavior I'd expect the DataLoader to load from the SlimPajama-627B and c4 dataset without issue. ### Environment info - `datasets` version: 2.14.4 - Platform: Linux-5.8.0-1035-gcp-x86_64-with-glibc2.31 - Python version: 3.10.16 - Huggingface_hub version: 0.26.5 - PyArrow version: 18.1.0 - Pandas version: 2.2.3
{ "login": "clankur", "id": 9397233, "node_id": "MDQ6VXNlcjkzOTcyMzM=", "avatar_url": "https://avatars.githubusercontent.com/u/9397233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/clankur", "html_url": "https://github.com/clankur", "followers_url": "https://api.github.com/users/clankur/followers", "following_url": "https://api.github.com/users/clankur/following{/other_user}", "gists_url": "https://api.github.com/users/clankur/gists{/gist_id}", "starred_url": "https://api.github.com/users/clankur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/clankur/subscriptions", "organizations_url": "https://api.github.com/users/clankur/orgs", "repos_url": "https://api.github.com/users/clankur/repos", "events_url": "https://api.github.com/users/clankur/events{/privacy}", "received_events_url": "https://api.github.com/users/clankur/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7344/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7344/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7343
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7343/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7343/comments
https://api.github.com/repos/huggingface/datasets/issues/7343/events
https://github.com/huggingface/datasets/issues/7343
2,750,525,823
I_kwDODunzps6j8bF_
7,343
[Bug] Inconsistent behavior of data_files and data_dir in load_dataset method.
{ "login": "JasonCZH4", "id": 74161960, "node_id": "MDQ6VXNlcjc0MTYxOTYw", "avatar_url": "https://avatars.githubusercontent.com/u/74161960?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JasonCZH4", "html_url": "https://github.com/JasonCZH4", "followers_url": "https://api.github.com/users/JasonCZH4/followers", "following_url": "https://api.github.com/users/JasonCZH4/following{/other_user}", "gists_url": "https://api.github.com/users/JasonCZH4/gists{/gist_id}", "starred_url": "https://api.github.com/users/JasonCZH4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JasonCZH4/subscriptions", "organizations_url": "https://api.github.com/users/JasonCZH4/orgs", "repos_url": "https://api.github.com/users/JasonCZH4/repos", "events_url": "https://api.github.com/users/JasonCZH4/events{/privacy}", "received_events_url": "https://api.github.com/users/JasonCZH4/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hi ! `data_files` with a list is equivalent to `data_files={\"train\": data_files}` with a train test only.\r\n\r\nWhen no split are specified, they are inferred based on file names, and files with no apparent split are ignored", "Thanks for your reply!\r\n`files with no apparent split are ignored`. Is there a option that I can choose to ignored it or not as I mention aboved? Thanks!", "To include all the files, the best way is to pass `data_files` yourself. There is no option to disable split detection at the moment", "Thanks! I hope you guys can consider adding this option in the future. :)" ]
2024-12-19T14:31:27
2025-01-03T15:54:09
2025-01-03T15:54:09
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Inconsistent operation of data_files and data_dir in load_dataset method. ### Steps to reproduce the bug # First I have three files, named 'train.json', 'val.json', 'test.json'. Each one has a simple dict `{text:'aaa'}`. Their path are `/data/train.json`, `/data/val.json`, `/data/test.json` I load dataset with `data_files` argument: ```py files = [os.path.join('./data',file) for file in os.listdir('./data')] ds = load_dataset( path='json', data_files=files,) ``` And I get: ```py DatasetDict({ train: Dataset({ features: ['text'], num_rows: 3 }) }) ``` However, If I load dataset with `data_dir` argument: ```py ds = load_dataset( path='json', data_dir='./data',) ``` And I get: ```py DatasetDict({ train: Dataset({ features: ['text'], num_rows: 1 }) validation: Dataset({ features: ['text'], num_rows: 1 }) test: Dataset({ features: ['text'], num_rows: 1 }) }) ``` Two results are not the same. Their behaviors are not equal, even if the statement [here](https://github.com/huggingface/datasets/blob/d0c152a979d91cc34b605c0298aebc650ab7dd27/src/datasets/load.py#L1790) said that their behaviors are equal. # Second If some filename include 'test' while others do not, `load_dataset` only return `test` dataset and others files are **abandoned**. Given two files named `test.json` and `1.json` Each one has a simple dict `{text:'aaa'}`. I load the dataset using: ```py ds = load_dataset( path='json', data_dir='./data',) ``` Only `test` is returned, `1.json` is missing: ```py DatasetDict({ test: Dataset({ features: ['text'], num_rows: 1 }) }) ``` Things do not change even I manually set `split='train'` ### Expected behavior 1. Fix the above bugs. 2. Although the document says that load_dataset method will `Find which file goes into which split (e.g. train/test) based on file and directory names or on the YAML configuration`, I hope I can manually decide whether to do so. Sometimes users may accidentally put a `test` string in the filename but they just want a single `train` dataset. If the number of files in `data_dir` is huge, it's not easy to find out what cause the second situation metioned above. ### Environment info datasets==3.2.0 Ubuntu18.84
{ "login": "JasonCZH4", "id": 74161960, "node_id": "MDQ6VXNlcjc0MTYxOTYw", "avatar_url": "https://avatars.githubusercontent.com/u/74161960?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JasonCZH4", "html_url": "https://github.com/JasonCZH4", "followers_url": "https://api.github.com/users/JasonCZH4/followers", "following_url": "https://api.github.com/users/JasonCZH4/following{/other_user}", "gists_url": "https://api.github.com/users/JasonCZH4/gists{/gist_id}", "starred_url": "https://api.github.com/users/JasonCZH4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JasonCZH4/subscriptions", "organizations_url": "https://api.github.com/users/JasonCZH4/orgs", "repos_url": "https://api.github.com/users/JasonCZH4/repos", "events_url": "https://api.github.com/users/JasonCZH4/events{/privacy}", "received_events_url": "https://api.github.com/users/JasonCZH4/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7343/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7343/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7342
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7342/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7342/comments
https://api.github.com/repos/huggingface/datasets/issues/7342/events
https://github.com/huggingface/datasets/pull/7342
2,749,572,310
PR_kwDODunzps6FvgcK
7,342
Update LICENSE
{ "login": "eliebak", "id": 97572401, "node_id": "U_kgDOBdDWMQ", "avatar_url": "https://avatars.githubusercontent.com/u/97572401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eliebak", "html_url": "https://github.com/eliebak", "followers_url": "https://api.github.com/users/eliebak/followers", "following_url": "https://api.github.com/users/eliebak/following{/other_user}", "gists_url": "https://api.github.com/users/eliebak/gists{/gist_id}", "starred_url": "https://api.github.com/users/eliebak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eliebak/subscriptions", "organizations_url": "https://api.github.com/users/eliebak/orgs", "repos_url": "https://api.github.com/users/eliebak/repos", "events_url": "https://api.github.com/users/eliebak/events{/privacy}", "received_events_url": "https://api.github.com/users/eliebak/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7342). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-19T08:17:50
2024-12-19T08:44:08
2024-12-19T08:44:08
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "eliebak", "id": 97572401, "node_id": "U_kgDOBdDWMQ", "avatar_url": "https://avatars.githubusercontent.com/u/97572401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eliebak", "html_url": "https://github.com/eliebak", "followers_url": "https://api.github.com/users/eliebak/followers", "following_url": "https://api.github.com/users/eliebak/following{/other_user}", "gists_url": "https://api.github.com/users/eliebak/gists{/gist_id}", "starred_url": "https://api.github.com/users/eliebak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eliebak/subscriptions", "organizations_url": "https://api.github.com/users/eliebak/orgs", "repos_url": "https://api.github.com/users/eliebak/repos", "events_url": "https://api.github.com/users/eliebak/events{/privacy}", "received_events_url": "https://api.github.com/users/eliebak/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7342/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7342/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7342", "html_url": "https://github.com/huggingface/datasets/pull/7342", "diff_url": "https://github.com/huggingface/datasets/pull/7342.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7342.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7341
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7341/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7341/comments
https://api.github.com/repos/huggingface/datasets/issues/7341/events
https://github.com/huggingface/datasets/pull/7341
2,745,658,561
PR_kwDODunzps6FiGlt
7,341
minor video docs on how to install
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7341). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-17T18:06:17
2024-12-17T18:11:17
2024-12-17T18:11:15
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7341/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7341/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7341", "html_url": "https://github.com/huggingface/datasets/pull/7341", "diff_url": "https://github.com/huggingface/datasets/pull/7341.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7341.patch", "merged_at": "2024-12-17T18:11:14" }
true
https://api.github.com/repos/huggingface/datasets/issues/7340
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7340/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7340/comments
https://api.github.com/repos/huggingface/datasets/issues/7340/events
https://github.com/huggingface/datasets/pull/7340
2,745,473,274
PR_kwDODunzps6FhdR2
7,340
don't import soundfile in tests
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7340). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-17T16:49:55
2024-12-17T16:54:04
2024-12-17T16:50:24
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7340/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7340/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7340", "html_url": "https://github.com/huggingface/datasets/pull/7340", "diff_url": "https://github.com/huggingface/datasets/pull/7340.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7340.patch", "merged_at": "2024-12-17T16:50:24" }
true
https://api.github.com/repos/huggingface/datasets/issues/7339
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7339/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7339/comments
https://api.github.com/repos/huggingface/datasets/issues/7339/events
https://github.com/huggingface/datasets/pull/7339
2,745,460,060
PR_kwDODunzps6FhaTl
7,339
Update CONTRIBUTING.md
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7339). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-17T16:45:25
2024-12-17T16:51:36
2024-12-17T16:46:30
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7339/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7339/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7339", "html_url": "https://github.com/huggingface/datasets/pull/7339", "diff_url": "https://github.com/huggingface/datasets/pull/7339.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7339.patch", "merged_at": "2024-12-17T16:46:30" }
true
https://api.github.com/repos/huggingface/datasets/issues/7337
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7337/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7337/comments
https://api.github.com/repos/huggingface/datasets/issues/7337/events
https://github.com/huggingface/datasets/issues/7337
2,744,877,569
I_kwDODunzps6jm4IB
7,337
One or several metadata.jsonl were found, but not in the same directory or in a parent directory of
{ "login": "mst272", "id": 67250532, "node_id": "MDQ6VXNlcjY3MjUwNTMy", "avatar_url": "https://avatars.githubusercontent.com/u/67250532?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mst272", "html_url": "https://github.com/mst272", "followers_url": "https://api.github.com/users/mst272/followers", "following_url": "https://api.github.com/users/mst272/following{/other_user}", "gists_url": "https://api.github.com/users/mst272/gists{/gist_id}", "starred_url": "https://api.github.com/users/mst272/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mst272/subscriptions", "organizations_url": "https://api.github.com/users/mst272/orgs", "repos_url": "https://api.github.com/users/mst272/repos", "events_url": "https://api.github.com/users/mst272/events{/privacy}", "received_events_url": "https://api.github.com/users/mst272/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hmmm I double checked in the source code and I found a contradiction: in the current implementation the metadata file is ignored if it's not in the same archive as the zip image somehow:\r\n\r\nhttps://github.com/huggingface/datasets/blob/caa705e8bf4bedf1a956f48b545283b2ca14170a/src/datasets/packaged_modules/folder_based_builder/folder_based_builder.py#L352-L353\r\n\r\nin the tests suite the metadata file is placed inside the archive:\r\n\r\nhttps://github.com/huggingface/datasets/blob/caa705e8bf4bedf1a956f48b545283b2ca14170a/tests/packaged_modules/test_imagefolder.py#L223-L223\r\n\r\nThanks for reporting this issue, it seems the documentation is wrong and we never implemented the support for zip + metadata outside zip. We might rewrite part of this code soon though to make it more flexible, it can be a good occasion to fix this. In the meantime feel free to open a PR to fix the documentation if you'd like" ]
2024-12-17T12:58:43
2025-01-03T15:28:13
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug ImageFolder with metadata.jsonl error. I downloaded liuhaotian/LLaVA-CC3M-Pretrain-595K locally from Hugging Face. According to the tutorial in https://huggingface.co/docs/datasets/image_dataset#image-captioning, only put images.zip and metadata.jsonl containing information in the same folder. However, after loading, an error was reported: One or several metadata.jsonl were found, but not in the same directory or in a parent directory of. The data in my jsonl file is as follows: > {"id": "GCC_train_002448550", "file_name": "GCC_train_002448550.jpg", "conversations": [{"from": "human", "value": "<image>\nProvide a brief description of the given image."}, {"from": "gpt", "value": "a view of a city , where the flyover was proposed to reduce the increasing traffic on thursday ."}]} ### Steps to reproduce the bug from datasets import load_dataset image = load_dataset("imagefolder",data_dir='data/opensource_data') ### Expected behavior success ### Environment info datasets==3.2.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7337/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7337/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7336
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7336/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7336/comments
https://api.github.com/repos/huggingface/datasets/issues/7336/events
https://github.com/huggingface/datasets/issues/7336
2,744,746,456
I_kwDODunzps6jmYHY
7,336
Clarify documentation or Create DatasetCard
{ "login": "August-murr", "id": 145011209, "node_id": "U_kgDOCKSyCQ", "avatar_url": "https://avatars.githubusercontent.com/u/145011209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/August-murr", "html_url": "https://github.com/August-murr", "followers_url": "https://api.github.com/users/August-murr/followers", "following_url": "https://api.github.com/users/August-murr/following{/other_user}", "gists_url": "https://api.github.com/users/August-murr/gists{/gist_id}", "starred_url": "https://api.github.com/users/August-murr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/August-murr/subscriptions", "organizations_url": "https://api.github.com/users/August-murr/orgs", "repos_url": "https://api.github.com/users/August-murr/repos", "events_url": "https://api.github.com/users/August-murr/events{/privacy}", "received_events_url": "https://api.github.com/users/August-murr/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[]
2024-12-17T12:01:00
2024-12-17T12:01:00
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request I noticed that you can use a Model Card instead of a Dataset Card when pushing a dataset to the Hub, but this isn’t clearly mentioned in [the docs.](https://huggingface.co/docs/datasets/dataset_card) - Update the docs to clarify that a Model Card can work for datasets too. - It might be worth creating a dedicated DatasetCard module, similar to the ModelCard module, for consistency and better support. Not sure if this belongs here or on the [Hub repo](https://github.com/huggingface/huggingface_hub), but thought I’d bring it up! ### Motivation I just spent an hour like on [this issue](https://github.com/huggingface/trl/pull/2491) trying to create a `DatasetCard` for a script. ### Your contribution might later
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7336/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7336/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7335
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7335/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7335/comments
https://api.github.com/repos/huggingface/datasets/issues/7335/events
https://github.com/huggingface/datasets/issues/7335
2,743,437,260
I_kwDODunzps6jhYfM
7,335
Too many open files: '/root/.cache/huggingface/token'
{ "login": "kopyl", "id": 17604849, "node_id": "MDQ6VXNlcjE3NjA0ODQ5", "avatar_url": "https://avatars.githubusercontent.com/u/17604849?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kopyl", "html_url": "https://github.com/kopyl", "followers_url": "https://api.github.com/users/kopyl/followers", "following_url": "https://api.github.com/users/kopyl/following{/other_user}", "gists_url": "https://api.github.com/users/kopyl/gists{/gist_id}", "starred_url": "https://api.github.com/users/kopyl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kopyl/subscriptions", "organizations_url": "https://api.github.com/users/kopyl/orgs", "repos_url": "https://api.github.com/users/kopyl/repos", "events_url": "https://api.github.com/users/kopyl/events{/privacy}", "received_events_url": "https://api.github.com/users/kopyl/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2024-12-16T21:30:24
2024-12-16T21:30:24
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I ran this code: ``` from datasets import load_dataset dataset = load_dataset("common-canvas/commoncatalog-cc-by", cache_dir="/datadrive/datasets/cc", num_proc=1000) ``` And got this error. Before it was some other file though (lie something...incomplete) runnting ``` ulimit -n 8192 ``` did not help at all. ### Steps to reproduce the bug Run the code i sent ### Expected behavior Should be no errors ### Environment info linux, jupyter lab.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7335/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7335/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7334
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7334/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7334/comments
https://api.github.com/repos/huggingface/datasets/issues/7334/events
https://github.com/huggingface/datasets/issues/7334
2,740,266,503
I_kwDODunzps6jVSYH
7,334
TypeError: Value.__init__() missing 1 required positional argument: 'dtype'
{ "login": "kakamond", "id": 185799756, "node_id": "U_kgDOCxMUTA", "avatar_url": "https://avatars.githubusercontent.com/u/185799756?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kakamond", "html_url": "https://github.com/kakamond", "followers_url": "https://api.github.com/users/kakamond/followers", "following_url": "https://api.github.com/users/kakamond/following{/other_user}", "gists_url": "https://api.github.com/users/kakamond/gists{/gist_id}", "starred_url": "https://api.github.com/users/kakamond/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kakamond/subscriptions", "organizations_url": "https://api.github.com/users/kakamond/orgs", "repos_url": "https://api.github.com/users/kakamond/repos", "events_url": "https://api.github.com/users/kakamond/events{/privacy}", "received_events_url": "https://api.github.com/users/kakamond/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2024-12-15T04:08:46
2024-12-15T04:08:46
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug ds = load_dataset( "./xxx.py", name="default", split="train", ) The datasets does not support debugging locally anymore... ### Steps to reproduce the bug ``` from datasets import load_dataset ds = load_dataset( "./repo.py", name="default", split="train", ) for item in ds: print(item) ``` It works fine for "username/repo", but it does not work for "./repo.py" when debugging locally... Running above code template will report TypeError: Value.__init__() missing 1 required positional argument: 'dtype' ### Expected behavior fix this bug ### Environment info python 3.10 datasets==2.21
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7334/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7334/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7328
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7328/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7328/comments
https://api.github.com/repos/huggingface/datasets/issues/7328/events
https://github.com/huggingface/datasets/pull/7328
2,738,626,593
PR_kwDODunzps6FKK13
7,328
Fix typo in arrow_dataset
{ "login": "AndreaFrancis", "id": 5564745, "node_id": "MDQ6VXNlcjU1NjQ3NDU=", "avatar_url": "https://avatars.githubusercontent.com/u/5564745?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndreaFrancis", "html_url": "https://github.com/AndreaFrancis", "followers_url": "https://api.github.com/users/AndreaFrancis/followers", "following_url": "https://api.github.com/users/AndreaFrancis/following{/other_user}", "gists_url": "https://api.github.com/users/AndreaFrancis/gists{/gist_id}", "starred_url": "https://api.github.com/users/AndreaFrancis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AndreaFrancis/subscriptions", "organizations_url": "https://api.github.com/users/AndreaFrancis/orgs", "repos_url": "https://api.github.com/users/AndreaFrancis/repos", "events_url": "https://api.github.com/users/AndreaFrancis/events{/privacy}", "received_events_url": "https://api.github.com/users/AndreaFrancis/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7328). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-13T15:17:09
2024-12-19T17:10:27
2024-12-19T17:10:25
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "AndreaFrancis", "id": 5564745, "node_id": "MDQ6VXNlcjU1NjQ3NDU=", "avatar_url": "https://avatars.githubusercontent.com/u/5564745?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndreaFrancis", "html_url": "https://github.com/AndreaFrancis", "followers_url": "https://api.github.com/users/AndreaFrancis/followers", "following_url": "https://api.github.com/users/AndreaFrancis/following{/other_user}", "gists_url": "https://api.github.com/users/AndreaFrancis/gists{/gist_id}", "starred_url": "https://api.github.com/users/AndreaFrancis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AndreaFrancis/subscriptions", "organizations_url": "https://api.github.com/users/AndreaFrancis/orgs", "repos_url": "https://api.github.com/users/AndreaFrancis/repos", "events_url": "https://api.github.com/users/AndreaFrancis/events{/privacy}", "received_events_url": "https://api.github.com/users/AndreaFrancis/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7328/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7328/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7328", "html_url": "https://github.com/huggingface/datasets/pull/7328", "diff_url": "https://github.com/huggingface/datasets/pull/7328.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7328.patch", "merged_at": "2024-12-19T17:10:25" }
true
https://api.github.com/repos/huggingface/datasets/issues/7327
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7327/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7327/comments
https://api.github.com/repos/huggingface/datasets/issues/7327/events
https://github.com/huggingface/datasets/issues/7327
2,738,514,909
I_kwDODunzps6jOmvd
7,327
.map() is not caching and ram goes OOM
{ "login": "simeneide", "id": 7136076, "node_id": "MDQ6VXNlcjcxMzYwNzY=", "avatar_url": "https://avatars.githubusercontent.com/u/7136076?v=4", "gravatar_id": "", "url": "https://api.github.com/users/simeneide", "html_url": "https://github.com/simeneide", "followers_url": "https://api.github.com/users/simeneide/followers", "following_url": "https://api.github.com/users/simeneide/following{/other_user}", "gists_url": "https://api.github.com/users/simeneide/gists{/gist_id}", "starred_url": "https://api.github.com/users/simeneide/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simeneide/subscriptions", "organizations_url": "https://api.github.com/users/simeneide/orgs", "repos_url": "https://api.github.com/users/simeneide/repos", "events_url": "https://api.github.com/users/simeneide/events{/privacy}", "received_events_url": "https://api.github.com/users/simeneide/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "I have the same issue - any update on this?" ]
2024-12-13T14:22:56
2025-02-10T10:42:38
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Im trying to run a fairly simple map that is converting a dataset into numpy arrays. however, it just piles up on memory and doesnt write to disk. Ive tried multiple cache techniques such as specifying the cache dir, setting max mem, +++ but none seem to work. What am I missing here? ### Steps to reproduce the bug ``` from pydub import AudioSegment import io import base64 import numpy as np import os CACHE_PATH = "/mnt/extdisk/cache" # "/root/.cache/huggingface/"# os.environ["HF_HOME"] = CACHE_PATH import datasets import logging logger = logging.getLogger() logger.setLevel(logging.INFO) # Create a handler for Jupyter notebook handler = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) logger.addHandler(handler) #datasets.config.IN_MEMORY_MAX_SIZE= 1000#*(2**30) #50 gb print(datasets.config.HF_CACHE_HOME) print(datasets.config.HF_DATASETS_CACHE) # Decode the base64 string into bytes def convert_mp3_to_audio_segment(example): """ example = ds['train'][0] """ try: audio_data_bytes = base64.b64decode(example['audio']) # Use pydub to load the MP3 audio from the decoded bytes audio_segment = AudioSegment.from_file(io.BytesIO(audio_data_bytes), format="mp3") # Resample to 24_000 audio_segment = audio_segment.set_frame_rate(24_000) audio = {'sampling_rate' : audio_segment.frame_rate, 'array' : np.array(audio_segment.get_array_of_samples(), dtype="float")} del audio_segment duration = len(audio['array']) / audio['sampling_rate'] except Exception as e: logger.warning(f"Failed to convert audio for {example['id']}. Error: {e}") audio = {'sampling_rate' : 0, 'array' : np.array([]), duration : 0} return {'audio' : audio, 'duration' : duration} ds = datasets.load_dataset("NbAiLab/nb_distil_speech_noconcat_stortinget", cache_dir=CACHE_PATH, keep_in_memory=False) #%% num_proc=32 ds_processed = ( ds #.select(range(10)) .map(convert_mp3_to_audio_segment, num_proc=num_proc, desc="Converting mp3 to audio segment") #, cache_file_name=f"{CACHE_PATH}/stortinget_audio" # , cache_file_name="test" ) ``` ### Expected behavior the map should write to disk ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-6.8.0-45-generic-x86_64-with-glibc2.39 - Python version: 3.12.7 - `huggingface_hub` version: 0.26.3 - PyArrow version: 18.1.0 - Pandas version: 2.2.3 - `fsspec` version: 2024.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7327/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7327/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7326
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7326/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7326/comments
https://api.github.com/repos/huggingface/datasets/issues/7326/events
https://github.com/huggingface/datasets/issues/7326
2,738,188,902
I_kwDODunzps6jNXJm
7,326
Remove upper bound for fsspec
{ "login": "fellhorn", "id": 26092524, "node_id": "MDQ6VXNlcjI2MDkyNTI0", "avatar_url": "https://avatars.githubusercontent.com/u/26092524?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fellhorn", "html_url": "https://github.com/fellhorn", "followers_url": "https://api.github.com/users/fellhorn/followers", "following_url": "https://api.github.com/users/fellhorn/following{/other_user}", "gists_url": "https://api.github.com/users/fellhorn/gists{/gist_id}", "starred_url": "https://api.github.com/users/fellhorn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fellhorn/subscriptions", "organizations_url": "https://api.github.com/users/fellhorn/orgs", "repos_url": "https://api.github.com/users/fellhorn/repos", "events_url": "https://api.github.com/users/fellhorn/events{/privacy}", "received_events_url": "https://api.github.com/users/fellhorn/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Unfortunately `fsspec` versioning allows breaking changes across version and there is no way we can keep it without constrains at the moment. It already broke `datasets` once in the past. Maybe one day once `fsspec` decides on a stable and future proof API but I don't think this will happen anytime soon\r\n\r\nedit: bumped to 2024.10.0 in https://github.com/huggingface/datasets/pull/7352" ]
2024-12-13T11:35:12
2025-01-03T15:34:37
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug As also raised by @cyyever in https://github.com/huggingface/datasets/pull/7296 and @NeilGirdhar in https://github.com/huggingface/datasets/commit/d5468836fe94e8be1ae093397dd43d4a2503b926#commitcomment-140952162 , `datasets` has a problematic version constraint on `fsspec`. In our case this causes (unnecessary?) troubles due to a race condition bug in that version of the corresponding `gcsfs` plugin, that causes deadlocks: https://github.com/fsspec/gcsfs/pull/643 We just use a version override to ignore the constraint from `datasets`, but imho the version constraint could just be removed in the first place? The last few PRs bumping the upper bound were basically uneventful: * https://github.com/huggingface/datasets/pull/7219 * https://github.com/huggingface/datasets/pull/6921 * https://github.com/huggingface/datasets/pull/6747 ### Steps to reproduce the bug - ### Expected behavior Installing `fsspec>=2024.10.0` along `datasets` should be possible without overwriting constraints. ### Environment info All recent datasets versions
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7326/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 3, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7326/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7325
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7325/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7325/comments
https://api.github.com/repos/huggingface/datasets/issues/7325/events
https://github.com/huggingface/datasets/pull/7325
2,736,618,054
PR_kwDODunzps6FDpMp
7,325
Introduce pdf support (#7318)
{ "login": "yabramuvdi", "id": 4812761, "node_id": "MDQ6VXNlcjQ4MTI3NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/4812761?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yabramuvdi", "html_url": "https://github.com/yabramuvdi", "followers_url": "https://api.github.com/users/yabramuvdi/followers", "following_url": "https://api.github.com/users/yabramuvdi/following{/other_user}", "gists_url": "https://api.github.com/users/yabramuvdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/yabramuvdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yabramuvdi/subscriptions", "organizations_url": "https://api.github.com/users/yabramuvdi/orgs", "repos_url": "https://api.github.com/users/yabramuvdi/repos", "events_url": "https://api.github.com/users/yabramuvdi/events{/privacy}", "received_events_url": "https://api.github.com/users/yabramuvdi/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7325). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Hi @AndreaFrancis and @lhoestq ! Thanks for looking at the code and for all the changes and suggestions. I have worked on all your suggestions. I need to work a bit more on the tests, but I created a first version and uploaded a simple pdf to use for testing. The pdf has a couple of pages some of which have images, figures, and tables (this is exactly the pdfs for which I think keeping the pdf format is very interesting because they have multiple types of content). Will try to finish the tests as soon as possible.", "(I updated the CI a bit, I took the liberty to update your branch and re-run it on your PR @yabramuvdi)" ]
2024-12-12T18:31:18
2025-01-03T15:36:06
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
First implementation of the Pdf feature to support pdfs (#7318) . Using [pdfplumber](https://github.com/jsvine/pdfplumber?tab=readme-ov-file#python-library) as the default library to work with pdfs. @lhoestq and @AndreaFrancis
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7325/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7325/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7325", "html_url": "https://github.com/huggingface/datasets/pull/7325", "diff_url": "https://github.com/huggingface/datasets/pull/7325.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7325.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7323
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7323/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7323/comments
https://api.github.com/repos/huggingface/datasets/issues/7323/events
https://github.com/huggingface/datasets/issues/7323
2,736,008,698
I_kwDODunzps6jFC36
7,323
Unexpected cache behaviour using load_dataset
{ "login": "Moritz-Wirth", "id": 74349080, "node_id": "MDQ6VXNlcjc0MzQ5MDgw", "avatar_url": "https://avatars.githubusercontent.com/u/74349080?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Moritz-Wirth", "html_url": "https://github.com/Moritz-Wirth", "followers_url": "https://api.github.com/users/Moritz-Wirth/followers", "following_url": "https://api.github.com/users/Moritz-Wirth/following{/other_user}", "gists_url": "https://api.github.com/users/Moritz-Wirth/gists{/gist_id}", "starred_url": "https://api.github.com/users/Moritz-Wirth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Moritz-Wirth/subscriptions", "organizations_url": "https://api.github.com/users/Moritz-Wirth/orgs", "repos_url": "https://api.github.com/users/Moritz-Wirth/repos", "events_url": "https://api.github.com/users/Moritz-Wirth/events{/privacy}", "received_events_url": "https://api.github.com/users/Moritz-Wirth/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hi ! Since `datasets` 3.x, the `datasets` specific files are in `cache_dir=` and the HF files are cached using `huggingface_hub` and you can set its cache directory using the `HF_HOME` environment variable.\r\n\r\nThey are independent, for example you can delete the Hub cache (containing downloaded files) but still reload your cached datasets from the `datasets` cache (containing prepared datasets in Arrow format)" ]
2024-12-12T14:03:00
2025-01-31T11:34:24
2025-01-31T11:34:24
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Following the (Cache management)[https://huggingface.co/docs/datasets/en/cache] docu and previous behaviour from datasets version 2.18.0, one is able to change the cache directory. Previously, all downloaded/extracted/etc files were found in this folder. As i have recently update to the latest version this is not the case anymore. Downloaded files are stored in `~/.cache/huggingface/hub`. Providing the `cache_dir` argument in `load_dataset` the cache directory is created and there are some files but the bulk is still in `~/.cache/huggingface/hub`. I believe this could be solved by adding the cache_dir argument [here](https://github.com/huggingface/datasets/blob/fdda5585ab18ea1292547f36c969d12c408ab842/src/datasets/utils/file_utils.py#L188) ### Steps to reproduce the bug For example using https://huggingface.co/datasets/ashraq/esc50: ```python from datasets import load_dataset ds = load_dataset("ashraq/esc50", "default", cache_dir="~/custom/cache/path/esc50") ``` ### Expected behavior I would expect the bulk of files related to the dataset to be stored somewhere in `~/custom/cache/path/esc50`, but it seems they are in `~/.cache/huggingface/hub/datasets--ashraq--esc50`. ### Environment info - `datasets` version: 3.2.0 - Platform: Linux-5.14.0-503.15.1.el9_5.x86_64-x86_64-with-glibc2.34 - Python version: 3.10.14 - `huggingface_hub` version: 0.26.5 - PyArrow version: 17.0.0 - Pandas version: 2.2.2 - `fsspec` version: 2024.6.1
{ "login": "Moritz-Wirth", "id": 74349080, "node_id": "MDQ6VXNlcjc0MzQ5MDgw", "avatar_url": "https://avatars.githubusercontent.com/u/74349080?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Moritz-Wirth", "html_url": "https://github.com/Moritz-Wirth", "followers_url": "https://api.github.com/users/Moritz-Wirth/followers", "following_url": "https://api.github.com/users/Moritz-Wirth/following{/other_user}", "gists_url": "https://api.github.com/users/Moritz-Wirth/gists{/gist_id}", "starred_url": "https://api.github.com/users/Moritz-Wirth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Moritz-Wirth/subscriptions", "organizations_url": "https://api.github.com/users/Moritz-Wirth/orgs", "repos_url": "https://api.github.com/users/Moritz-Wirth/repos", "events_url": "https://api.github.com/users/Moritz-Wirth/events{/privacy}", "received_events_url": "https://api.github.com/users/Moritz-Wirth/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7323/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7323/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7322
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7322/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7322/comments
https://api.github.com/repos/huggingface/datasets/issues/7322/events
https://github.com/huggingface/datasets/issues/7322
2,732,254,868
I_kwDODunzps6i2uaU
7,322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
{ "login": "CLL112", "id": 41767521, "node_id": "MDQ6VXNlcjQxNzY3NTIx", "avatar_url": "https://avatars.githubusercontent.com/u/41767521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CLL112", "html_url": "https://github.com/CLL112", "followers_url": "https://api.github.com/users/CLL112/followers", "following_url": "https://api.github.com/users/CLL112/following{/other_user}", "gists_url": "https://api.github.com/users/CLL112/gists{/gist_id}", "starred_url": "https://api.github.com/users/CLL112/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CLL112/subscriptions", "organizations_url": "https://api.github.com/users/CLL112/orgs", "repos_url": "https://api.github.com/users/CLL112/repos", "events_url": "https://api.github.com/users/CLL112/events{/privacy}", "received_events_url": "https://api.github.com/users/CLL112/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! `datasets` uses Arrow under the hood which expects each column and array to have fixed types that don't change across rows of a dataset, which is why we get this error. This dataset in particular doesn't have a format compatible with Arrow unfortunately. Don't hesitate to open a discussion or PR on HF to fix the dataset" ]
2024-12-11T08:41:39
2025-01-03T15:48:55
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recent call last) [/usr/local/lib/python3.10/dist-packages/datasets/packaged_modules/json/json.py](https://localhost:8080/#) in _generate_tables(self, files) 136 try: --> 137 pa_table = paj.read_json( 138 io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size) 20 frames ArrowInvalid: JSON parse error: Column() changed from object to array in row 0 During handling of the above exception, another exception occurred: ArrowTypeError Traceback (most recent call last) ArrowTypeError: ("Expected bytes, got a 'int' object", 'Conversion failed for column id with type object') The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) [/usr/local/lib/python3.10/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1895 if isinstance(e, DatasetGenerationError): 1896 raise -> 1897 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1898 1899 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ``` ### Expected behavior I have tried loading the dataset both on my own server and on Colab, and encountered errors in both instances. ### Environment info ``` - `datasets` version: 3.2.0 - Platform: Linux-6.1.85+-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.26.3 - PyArrow version: 17.0.0 - Pandas version: 2.2.2 - `fsspec` version: 2024.9.0 ```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7322/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7322/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7321
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7321/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7321/comments
https://api.github.com/repos/huggingface/datasets/issues/7321/events
https://github.com/huggingface/datasets/issues/7321
2,731,626,760
I_kwDODunzps6i0VEI
7,321
ImportError: cannot import name 'set_caching_enabled' from 'datasets'
{ "login": "sankexin", "id": 33318353, "node_id": "MDQ6VXNlcjMzMzE4MzUz", "avatar_url": "https://avatars.githubusercontent.com/u/33318353?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sankexin", "html_url": "https://github.com/sankexin", "followers_url": "https://api.github.com/users/sankexin/followers", "following_url": "https://api.github.com/users/sankexin/following{/other_user}", "gists_url": "https://api.github.com/users/sankexin/gists{/gist_id}", "starred_url": "https://api.github.com/users/sankexin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sankexin/subscriptions", "organizations_url": "https://api.github.com/users/sankexin/orgs", "repos_url": "https://api.github.com/users/sankexin/repos", "events_url": "https://api.github.com/users/sankexin/events{/privacy}", "received_events_url": "https://api.github.com/users/sankexin/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "pip install datasets==2.18.0", "Hi ! I think you need to update axolotl" ]
2024-12-11T01:58:46
2024-12-11T13:32:15
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/local/lib/python3.10/runpy.py", line 110, in _get_module_details __import__(pkg_name) File "/home/Medusa/axolotl/src/axolotl/cli/__init__.py", line 23, in <module> from axolotl.train import TrainDatasetMeta File "/home/Medusa/axolotl/src/axolotl/train.py", line 23, in <module> from axolotl.utils.trainer import setup_trainer File "/home/Medusa/axolotl/src/axolotl/utils/trainer.py", line 13, in <module> from datasets import set_caching_enabled ImportError: cannot import name 'set_caching_enabled' from 'datasets' (/usr/local/lib/python3.10/site-packages/datasets/__init__.py) ### Steps to reproduce the bug 1、axolotl 2、accelerate launch -m axolotl.cli.train examples/medusa/qwen_lora_stage1.yml ### Expected behavior enable datasets ### Environment info python3.10
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7321/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7321/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7320
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7320/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7320/comments
https://api.github.com/repos/huggingface/datasets/issues/7320/events
https://github.com/huggingface/datasets/issues/7320
2,731,112,100
I_kwDODunzps6iyXak
7,320
ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label']
{ "login": "atrompeterog", "id": 38381084, "node_id": "MDQ6VXNlcjM4MzgxMDg0", "avatar_url": "https://avatars.githubusercontent.com/u/38381084?v=4", "gravatar_id": "", "url": "https://api.github.com/users/atrompeterog", "html_url": "https://github.com/atrompeterog", "followers_url": "https://api.github.com/users/atrompeterog/followers", "following_url": "https://api.github.com/users/atrompeterog/following{/other_user}", "gists_url": "https://api.github.com/users/atrompeterog/gists{/gist_id}", "starred_url": "https://api.github.com/users/atrompeterog/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/atrompeterog/subscriptions", "organizations_url": "https://api.github.com/users/atrompeterog/orgs", "repos_url": "https://api.github.com/users/atrompeterog/repos", "events_url": "https://api.github.com/users/atrompeterog/events{/privacy}", "received_events_url": "https://api.github.com/users/atrompeterog/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Now i have other error" ]
2024-12-10T20:23:11
2024-12-10T23:22:23
2024-12-10T23:22:23
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug I am trying to create a PEFT model from DISTILBERT model, and run a training loop. However, the trainer.train() is giving me this error: ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label'] Here is my code: ### Steps to reproduce the bug #Creating a PEFT Config from peft import LoraConfig from transformers import AutoTokenizer, AutoModelForSequenceClassification from peft import get_peft_model lora_config = LoraConfig( task_type="SEQ_CLASS", r=8, lora_alpha=32, target_modules=["q_lin", "k_lin", "v_lin"], lora_dropout=0.01, ) #Converting a Transformers Model into a PEFT Model model = AutoModelForSequenceClassification.from_pretrained( "distilbert-base-uncased", num_labels=2, #Binary classification, 1 = positive, 0 = negative ) lora_model = get_peft_model(model, lora_config) print(lora_model) Tokenize data set from datasets import load_dataset from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased") # Load the train and test splits dataset dataset = load_dataset("fancyzhx/amazon_polarity") #create a smaller subset for train and test subset_size = 5000 small_train_dataset = dataset["train"].shuffle(seed=42).select(range(subset_size)) small_test_dataset = dataset["test"].shuffle(seed=42).select(range(subset_size)) #Tokenize data def tokenize_function(example): return tokenizer(example["content"], padding="max_length", truncation=True) tokenized_train_dataset = small_train_dataset.map(tokenize_function, batched=True) tokenized_test_dataset = small_test_dataset.map(tokenize_function, batched=True) train_lora = tokenized_train_dataset.rename_column('label', 'labels') test_lora = tokenized_test_dataset.rename_column('label', 'labels') print(tokenized_train_dataset.column_names) print(tokenized_test_dataset.column_names) #Train the PEFT model import numpy as np from transformers import Trainer, TrainingArguments, default_data_collator, DataCollatorWithPadding from datasets import load_dataset from transformers import AutoTokenizer, AutoModelForSequenceClassification def compute_metrics(eval_pred): predictions, labels = eval_pred predictions = np.argmax(predictions, axis=1) return {"accuracy": (predictions == labels).mean()} trainer = Trainer( model=lora_model, args=TrainingArguments( output_dir=".", learning_rate=2e-3, # Reduce the batch size if you don't have enough memory per_device_train_batch_size=1, per_device_eval_batch_size=1, num_train_epochs=3, weight_decay=0.01, evaluation_strategy="epoch", save_strategy="epoch", load_best_model_at_end=True, ), train_dataset=tokenized_train_dataset, eval_dataset=tokenized_test_dataset, tokenizer=tokenizer, data_collator=DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="pt"), compute_metrics=compute_metrics, ) trainer.train() ### Expected behavior Example of output: [558/558 01:04, Epoch XX] Epoch | Training Loss | Validation Loss | Accuracy -- | -- | -- | -- 1 | No log | 0.046478 | 0.988341 2 | 0.052800 | 0.048840 | 0.988341 ### Environment info Using python and jupyter notbook
{ "login": "atrompeterog", "id": 38381084, "node_id": "MDQ6VXNlcjM4MzgxMDg0", "avatar_url": "https://avatars.githubusercontent.com/u/38381084?v=4", "gravatar_id": "", "url": "https://api.github.com/users/atrompeterog", "html_url": "https://github.com/atrompeterog", "followers_url": "https://api.github.com/users/atrompeterog/followers", "following_url": "https://api.github.com/users/atrompeterog/following{/other_user}", "gists_url": "https://api.github.com/users/atrompeterog/gists{/gist_id}", "starred_url": "https://api.github.com/users/atrompeterog/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/atrompeterog/subscriptions", "organizations_url": "https://api.github.com/users/atrompeterog/orgs", "repos_url": "https://api.github.com/users/atrompeterog/repos", "events_url": "https://api.github.com/users/atrompeterog/events{/privacy}", "received_events_url": "https://api.github.com/users/atrompeterog/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7320/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7320/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7319
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7319/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7319/comments
https://api.github.com/repos/huggingface/datasets/issues/7319/events
https://github.com/huggingface/datasets/pull/7319
2,730,679,980
PR_kwDODunzps6EvHBp
7,319
set dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7319). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-10T17:01:34
2024-12-10T17:04:04
2024-12-10T17:01:45
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7319/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7319/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7319", "html_url": "https://github.com/huggingface/datasets/pull/7319", "diff_url": "https://github.com/huggingface/datasets/pull/7319.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7319.patch", "merged_at": "2024-12-10T17:01:45" }
true
https://api.github.com/repos/huggingface/datasets/issues/7318
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7318/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7318/comments
https://api.github.com/repos/huggingface/datasets/issues/7318/events
https://github.com/huggingface/datasets/issues/7318
2,730,676,278
I_kwDODunzps6iwtA2
7,318
Introduce support for PDFs
{ "login": "yabramuvdi", "id": 4812761, "node_id": "MDQ6VXNlcjQ4MTI3NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/4812761?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yabramuvdi", "html_url": "https://github.com/yabramuvdi", "followers_url": "https://api.github.com/users/yabramuvdi/followers", "following_url": "https://api.github.com/users/yabramuvdi/following{/other_user}", "gists_url": "https://api.github.com/users/yabramuvdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/yabramuvdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yabramuvdi/subscriptions", "organizations_url": "https://api.github.com/users/yabramuvdi/orgs", "repos_url": "https://api.github.com/users/yabramuvdi/repos", "events_url": "https://api.github.com/users/yabramuvdi/events{/privacy}", "received_events_url": "https://api.github.com/users/yabramuvdi/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "#self-assign", "Awesome ! Let me know if you have any question or if I can help :)\r\n\r\ncc @AndreaFrancis as well for viz", "Other candidates libraries for the Pdf type: PyMuPDF pypdf and pdfplumber\r\n\r\nEDIT: Pymupdf looks like a good choice when it comes to maturity + performance + versatility BUT the license is maybe an issue, and pypdf, pypdfium2 or pdfplumber are good options imo", "Related to https://github.com/huggingface/datasets/issues/7058", "PyMuPDF is AGPL licensed, so we can't use it. I will move forward with [pdfplumber](https://github.com/jsvine/pdfplumber?tab=readme-ov-file#python-library).", "Hi both! I have made a pull request with a first basic implementation of the Pdf feature. I followed closely what I saw on the Video and Image features. It is my first time contributing so any comments are very welcomed. I think it would be useful to outline together what additional things we can implement (e.g. enabling parsing of the pdf). Thanks :) " ]
2024-12-10T16:59:48
2024-12-12T18:38:13
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {"path": ..., "bytes": ...} as a VideoReader using decord. We want to do the same with pdf and get a [pypdfium2.PdfDocument](https://pypdfium2.readthedocs.io/en/stable/_modules/pypdfium2/_helpers/document.html#PdfDocument). ### Motivation In many cases PDFs contain very valuable information beyond text (e.g. images, figures). Support for PDFs would help create datasets where all the information is preserved. ### Your contribution I can start the implementation of the Pdf type :)
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7318/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7318/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7317
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7317/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7317/comments
https://api.github.com/repos/huggingface/datasets/issues/7317/events
https://github.com/huggingface/datasets/pull/7317
2,730,661,237
PR_kwDODunzps6EvC5Q
7,317
Release: 3.2.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7317). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-10T16:53:20
2024-12-10T16:56:58
2024-12-10T16:56:56
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7317/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7317/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7317", "html_url": "https://github.com/huggingface/datasets/pull/7317", "diff_url": "https://github.com/huggingface/datasets/pull/7317.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7317.patch", "merged_at": "2024-12-10T16:56:56" }
true
https://api.github.com/repos/huggingface/datasets/issues/7316
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7316/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7316/comments
https://api.github.com/repos/huggingface/datasets/issues/7316/events
https://github.com/huggingface/datasets/pull/7316
2,730,196,085
PR_kwDODunzps6Etc0U
7,316
More docs to from_dict to mention that the result lives in RAM
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7316). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-10T13:56:01
2024-12-10T13:58:32
2024-12-10T13:57:02
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
following discussions at https://discuss.huggingface.co/t/how-to-load-this-simple-audio-data-set-and-use-dataset-map-without-memory-issues/17722/14
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7316/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7316/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7316", "html_url": "https://github.com/huggingface/datasets/pull/7316", "diff_url": "https://github.com/huggingface/datasets/pull/7316.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7316.patch", "merged_at": "2024-12-10T13:57:02" }
true
https://api.github.com/repos/huggingface/datasets/issues/7314
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7314/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7314/comments
https://api.github.com/repos/huggingface/datasets/issues/7314/events
https://github.com/huggingface/datasets/pull/7314
2,727,502,630
PR_kwDODunzps6EkCi5
7,314
Resolved for empty datafiles
{ "login": "sahillihas", "id": 20582290, "node_id": "MDQ6VXNlcjIwNTgyMjkw", "avatar_url": "https://avatars.githubusercontent.com/u/20582290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sahillihas", "html_url": "https://github.com/sahillihas", "followers_url": "https://api.github.com/users/sahillihas/followers", "following_url": "https://api.github.com/users/sahillihas/following{/other_user}", "gists_url": "https://api.github.com/users/sahillihas/gists{/gist_id}", "starred_url": "https://api.github.com/users/sahillihas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sahillihas/subscriptions", "organizations_url": "https://api.github.com/users/sahillihas/orgs", "repos_url": "https://api.github.com/users/sahillihas/repos", "events_url": "https://api.github.com/users/sahillihas/events{/privacy}", "received_events_url": "https://api.github.com/users/sahillihas/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Closes #6152 ", "@mariosasko I hope this resolves #6152 " ]
2024-12-09T15:47:22
2024-12-27T18:20:21
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
Resolved for Issue#6152
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7314/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7314/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7314", "html_url": "https://github.com/huggingface/datasets/pull/7314", "diff_url": "https://github.com/huggingface/datasets/pull/7314.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7314.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7313
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7313/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7313/comments
https://api.github.com/repos/huggingface/datasets/issues/7313/events
https://github.com/huggingface/datasets/issues/7313
2,726,240,634
I_kwDODunzps6ifyF6
7,313
Cannot create a dataset with relative audio path
{ "login": "sedol1339", "id": 5188731, "node_id": "MDQ6VXNlcjUxODg3MzE=", "avatar_url": "https://avatars.githubusercontent.com/u/5188731?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sedol1339", "html_url": "https://github.com/sedol1339", "followers_url": "https://api.github.com/users/sedol1339/followers", "following_url": "https://api.github.com/users/sedol1339/following{/other_user}", "gists_url": "https://api.github.com/users/sedol1339/gists{/gist_id}", "starred_url": "https://api.github.com/users/sedol1339/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sedol1339/subscriptions", "organizations_url": "https://api.github.com/users/sedol1339/orgs", "repos_url": "https://api.github.com/users/sedol1339/repos", "events_url": "https://api.github.com/users/sedol1339/events{/privacy}", "received_events_url": "https://api.github.com/users/sedol1339/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hello ! when you `cast_column` you need the paths to be absolute paths or relative paths to your working directory, not the original dataset directory.\r\n\r\nThough I'd recommend structuring your dataset as an AudioFolder which automatically links a metadata.jsonl or csv to the audio files via relative paths **within** the dataset repository: https://huggingface.co/docs/datasets/v3.2.0/en/audio_load#audiofolder", "@lhoestq thank you, but there are two problems with using AudioFolder:\r\n1. It is said that AudioFolder requires metadata.csv. However, my datset is too large and contains nested and np.ndarray fields, so I can't use csv.\r\n2. It is said that I need to load the dataset with `load_dataset(\"audiofolder\", ...)`. However, if possible, I want my dataset to be loaded as usual with `load_dataset(dataset_name)` after I upload if to HF.", "You can use metadata.jsonl if you have nested data :)\r\n\r\nAnd actually if you have a dataset structured as an AudioFolder then `load_dataset(dataset_name)` does work after uploading to HF" ]
2024-12-09T07:34:20
2024-12-12T13:46:38
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug Hello! I want to create a dataset of parquet files, with audios stored as separate .mp3 files. However, it says "No such file or directory" (see the reproducing code). ### Steps to reproduce the bug Creating a dataset ``` from pathlib import Path from datasets import Dataset, load_dataset, Audio Path('my_dataset/audio').mkdir(parents=True, exist_ok=True) Path('my_dataset/audio/file.mp3').touch(exist_ok=True) Dataset.from_list( [{'audio': {'path': 'audio/file.mp3'}}] ).to_parquet('my_dataset/data.parquet') ``` Result: ``` # my_dataset # ├── audio # │ └── file.mp3 # └── data.parquet ``` Trying to load the dataset ``` dataset = ( load_dataset('my_dataset', split='train') .cast_column('audio', Audio(sampling_rate=16_000)) ) dataset[0] >>> FileNotFoundError: [Errno 2] No such file or directory: 'audio/file.mp3' ``` ### Expected behavior I expect the dataset to load correctly. I've found 2 workarounds, but they are not very good: 1. I can specify an absolute path to the audio, however, when I move the folder or upload to HF it will stop working. 2. I can set `'path': 'file.mp3'`, and load with `load_dataset('my_dataset', data_dir='audio')` - it seems to work, but does this mean that anyone from Hugging Face who wants to use this dataset should also pass the `data_dir` argument, otherwise it won't work? ### Environment info datasets 3.1.0, Ubuntu 24.04.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7313/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7313/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7312
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7312/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7312/comments
https://api.github.com/repos/huggingface/datasets/issues/7312/events
https://github.com/huggingface/datasets/pull/7312
2,725,103,094
PR_kwDODunzps6EbwNN
7,312
[Audio Features - DO NOT MERGE] PoC for adding an offset+sliced reading to audio file.
{ "login": "TParcollet", "id": 11910731, "node_id": "MDQ6VXNlcjExOTEwNzMx", "avatar_url": "https://avatars.githubusercontent.com/u/11910731?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TParcollet", "html_url": "https://github.com/TParcollet", "followers_url": "https://api.github.com/users/TParcollet/followers", "following_url": "https://api.github.com/users/TParcollet/following{/other_user}", "gists_url": "https://api.github.com/users/TParcollet/gists{/gist_id}", "starred_url": "https://api.github.com/users/TParcollet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TParcollet/subscriptions", "organizations_url": "https://api.github.com/users/TParcollet/orgs", "repos_url": "https://api.github.com/users/TParcollet/repos", "events_url": "https://api.github.com/users/TParcollet/events{/privacy}", "received_events_url": "https://api.github.com/users/TParcollet/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2024-12-08T10:27:31
2024-12-08T10:27:31
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
This is a proof of concept for #7310 . The idea is to enable the access to others column of the dataset row when loading an audio file into a table. This is to allow sliced reading. As stated in the issue, many people have very long audio files and use start and stop slicing in this audio file. Right now, this code work as a PoC on my dataset. However, this is **just to illustrate** the idea. Many things are messed up, the first being that the shards have wildly varying sizes. Could be of interest to @lhoestq and @sanchit-gandhi ? Happy to test better ideas locally.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7312/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7312/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7312", "html_url": "https://github.com/huggingface/datasets/pull/7312", "diff_url": "https://github.com/huggingface/datasets/pull/7312.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7312.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7311
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7311/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7311/comments
https://api.github.com/repos/huggingface/datasets/issues/7311/events
https://github.com/huggingface/datasets/issues/7311
2,725,002,630
I_kwDODunzps6ibD2G
7,311
How to get the original dataset name with username?
{ "login": "npuichigo", "id": 11533479, "node_id": "MDQ6VXNlcjExNTMzNDc5", "avatar_url": "https://avatars.githubusercontent.com/u/11533479?v=4", "gravatar_id": "", "url": "https://api.github.com/users/npuichigo", "html_url": "https://github.com/npuichigo", "followers_url": "https://api.github.com/users/npuichigo/followers", "following_url": "https://api.github.com/users/npuichigo/following{/other_user}", "gists_url": "https://api.github.com/users/npuichigo/gists{/gist_id}", "starred_url": "https://api.github.com/users/npuichigo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/npuichigo/subscriptions", "organizations_url": "https://api.github.com/users/npuichigo/orgs", "repos_url": "https://api.github.com/users/npuichigo/repos", "events_url": "https://api.github.com/users/npuichigo/events{/privacy}", "received_events_url": "https://api.github.com/users/npuichigo/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "Hi ! why not pass the dataset id to Ray and let it check the parquet files ? Or pass the parquet files lists directly ?", "I'm not sure why ray design an API like this to accept a `Dataset` object, so they need to verify the `Dataset` is the original one and use the `DatasetInfo` to query the huggingface hub. I'll advise the ray data team to use dataset id instead of dataset for the `HuggingFaceDatasource` API." ]
2024-12-08T07:18:14
2025-01-09T10:48:02
null
CONTRIBUTOR
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request The issue is related to ray data https://github.com/ray-project/ray/issues/49008 which it requires to check if the dataset is the original one just after `load_dataset` and parquet files are already available on hf hub. The solution used now is to get the dataset name, config and split, then `load_dataset` again and check the fingerprint. But it's unable to get the correct dataset name if it contains username. So how to get the dataset name with username prefix, or is there another way to query if a dataset is the original one with parquet available? @lhoestq ### Motivation https://github.com/ray-project/ray/issues/49008 ### Your contribution Would like to fix that.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7311/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7311/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7310
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7310/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7310/comments
https://api.github.com/repos/huggingface/datasets/issues/7310/events
https://github.com/huggingface/datasets/issues/7310
2,724,830,603
I_kwDODunzps6iaZ2L
7,310
Enable the Audio Feature to decode / read with an offset + duration
{ "login": "TParcollet", "id": 11910731, "node_id": "MDQ6VXNlcjExOTEwNzMx", "avatar_url": "https://avatars.githubusercontent.com/u/11910731?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TParcollet", "html_url": "https://github.com/TParcollet", "followers_url": "https://api.github.com/users/TParcollet/followers", "following_url": "https://api.github.com/users/TParcollet/following{/other_user}", "gists_url": "https://api.github.com/users/TParcollet/gists{/gist_id}", "starred_url": "https://api.github.com/users/TParcollet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TParcollet/subscriptions", "organizations_url": "https://api.github.com/users/TParcollet/orgs", "repos_url": "https://api.github.com/users/TParcollet/repos", "events_url": "https://api.github.com/users/TParcollet/events{/privacy}", "received_events_url": "https://api.github.com/users/TParcollet/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
open
false
null
[]
null
[ "Hi ! What about having audio + start + duration columns and enable something like this ?\r\n\r\n```python\r\nfor example in ds:\r\n array = example[\"audio\"].read(start=example[\"start\"], frames=example[\"duration\"])\r\n```", "Hi @lhoestq, this would work with a file-based dataset but would be terrible for a sharded one as it would duplicate the large audio file many times. Also, very long audio files are not embedded very well in the parquet file, even with large_binary(). It crashed a few times for me until I switched to one sample == one file :-( " ]
2024-12-07T22:01:44
2024-12-09T21:09:46
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Feature request For most large speech dataset, we do not wish to generate hundreds of millions of small audio samples. Instead, it is quite common to provide larger audio files with frame offset (soundfile start and stop arguments). We should be able to pass these arguments to Audio() (column ID corresponding in the dataset row). ### Motivation I am currently generating a fairly big dataset to .parquet(). Unfortunately, it does not work because all existing functions load the whole .wav file corresponding to the row. All my attempts at bypassing this failed. We should be able to put in the Table only the bytes corresponding to what soundfile reads with an offset (and subset of the audio file). ### Your contribution I can totally test whatever code on my large dataset creation script.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7310/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7310/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7315
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7315/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7315/comments
https://api.github.com/repos/huggingface/datasets/issues/7315/events
https://github.com/huggingface/datasets/issues/7315
2,729,738,963
I_kwDODunzps6itILT
7,315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
{ "login": "diarray-hub", "id": 114512099, "node_id": "U_kgDOBtNQ4w", "avatar_url": "https://avatars.githubusercontent.com/u/114512099?v=4", "gravatar_id": "", "url": "https://api.github.com/users/diarray-hub", "html_url": "https://github.com/diarray-hub", "followers_url": "https://api.github.com/users/diarray-hub/followers", "following_url": "https://api.github.com/users/diarray-hub/following{/other_user}", "gists_url": "https://api.github.com/users/diarray-hub/gists{/gist_id}", "starred_url": "https://api.github.com/users/diarray-hub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/diarray-hub/subscriptions", "organizations_url": "https://api.github.com/users/diarray-hub/orgs", "repos_url": "https://api.github.com/users/diarray-hub/repos", "events_url": "https://api.github.com/users/diarray-hub/events{/privacy}", "received_events_url": "https://api.github.com/users/diarray-hub/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi @diarray-hub , thanks for opening the issue :) Let me ping @lhoestq and @severo from the dataset viewer team :hugs: ", "amazing :)", "Hi ! why not modify the manifest.json file directly ? this way users see in the viewer the dataset as is instead which makes it easier to use using e.g. the `datasets` library", "Can I create and push the dataset with the dataset library while also pushing the dataset directory, mainting its structure and all the files as with git? ", "(I transferred to the issue to the `datasets` repo as it's not related to `huggingface_hub`)", "> Can I create and push the dataset with the dataset library while also pushing the dataset directory, mainting its structure and all the files as with git?\r\n\r\nyes push_to_hub simply uploads Parquet files in a directory named \"data\" in the git repository\r\n", "That's the problem actually, I need that the data stays in the same format and the directory they are in keep the same structure in order to go quick with Nemo training so users of Nvidia's Nemo framework don't need to write any preprocessing code before starting training. That's why I used git instead of push_to_hub so me and other users working with Nemo can just:\r\n1. git clone\r\n2. asr_model.setup_training_data(train_data_config={'manifest_filepath': training_manifest_filepath})\r\n\r\nAnd start training already. It may be not very kind of me to prioritize users of a specific framework but I noticed that it take much more code to convert an huggingFace dataset with the parquet file to Nemo manifest format than the inverse :haha: ", "Happy to help if you think the Nemo dataset format should be supported in `datasets` (and therefore in the HF Viewer that is based on `datasets`). Maybe the Nemo team could help as well\r\n\r\nThough I'm not sure if there is only one but actually many formats/structure in Nemo depending on the task ?", "Yeah, you're right Quentin, it depends of the task. This one is for ASR. And, yes maybe they can help. I noticed that they already share their models through HF. Maybe someone in your teams already have a contact point there. Anyway it's not really a big issues since people can easily understand the dataset and its format with the dataset card but it's a little annoying for those who wanna visually explore each features with the viewer as for regular HF datasets", "In that case I'd recommend you to upload the dataset in Nemo format and \r\n1) add the \"nemo\" tag\r\n2) add how to use the dataset in Nemo in the dataset README.md\r\n\r\nThe viewer is likely to show the audio content by default but without the transcriptions. You can also configure the viewer to show the transcriptions instead (without the audio).", "I already did, it's just a little bit \"dommage\" (Hope you'll understand, you speak french right? Cause I don't know any english word for this) that I have to choose which one the viewer displays. But it's no problem for the usability of the dataset. Thanks Quentin :+1: ", "It's \"dommage\" for now, but feel free to ping the Nemo people if you think there is room for making this better together :)\r\n\r\nKinda related, but the `datasets` AudioFolder structure looks similar and simply asks for a `metadata.jsonl` with a field named \"file_name\" to link the transcriptions to the audio files - you could also add this file to your repository to make the viewer show audio + transcripts.\r\n\r\nAlternatively maybe we can expand the AudioFolder configuration to allow you to set the metadata file to be the \"manifest.json\" and the linking field to be \"audio_file_name\" (we just need to agree on something general - not just for Nemo)", "Right, actually that was my idea when I opened this issues. That's what I suggested, taking my case as an exemple but you should think of a more general approach like adding a field to configure the viewer as you wish in the metadata (in the dataset card) or a config.yaml or json file. With a level of abstraction like the solution I proposed ot even higher abstraction, it would allow for more customizability :)" ]
2024-12-07T16:37:12
2024-12-11T11:05:22
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provided. - Does not allow dataset creators to configure field mappings or suppress default fields unless the dataset is recreated and pushed using the `datasets` library. This creates a limitation for creators who: - Use custom workflows to prepare datasets (e.g., manifest files with audio-transcription mappings). - Push large datasets directly via `git` and cannot easily restructure them to conform to the `datasets` library format. #### **Proposed Solution** Introduce a feature that allows dataset creators to manually configure the Dataset Viewer behavior for datasets not created with the `datasets` library. This could be achieved by: 1. **Using the YAML Metadata in `README.md`:** - Add support for defining the dataset's field mappings directly in the `README.md` YAML section. - Example: ```yaml viewer: fields: - name: "audio" type: "audio_path" / "text" source: "manifest['audio']" - name: "bambara_transcription" type: "text" source: "manifest['bambara']" - name: "french_translation" type: "text" source: "manifest['french']" ``` With manifest being a csv or json like format file in the repository so that the viewer understands that it should look for the values of each field in that file. #### **Benefits** - Improves flexibility for dataset creators who push datasets via `git`. - Enhances dataset discoverability and usability on the Hugging Face Hub by allowing creators to present meaningful field mappings without restructuring their data. - Reduces overhead for creators of large or complex datasets. #### **Examples of Use Case** - An audio dataset with transcriptions in multiple languages stored in a `manifest.json` file, where the user wants the Viewer to: - Display the `audio` column and Explicitly map features that he defined such as `bambara_transcription` and `french_translation` from the manifest.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7315/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7315/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7309
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7309/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7309/comments
https://api.github.com/repos/huggingface/datasets/issues/7309/events
https://github.com/huggingface/datasets/pull/7309
2,723,636,931
PR_kwDODunzps6EW77b
7,309
Faster parquet streaming + filters with predicate pushdown
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7309). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2024-12-06T18:01:54
2024-12-07T23:32:30
2024-12-07T23:32:28
MEMBER
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
ParquetFragment.to_batches uses a buffered stream to read parquet data, which makes streaming faster (x2 on my laptop). I also added the `filters` config parameter to support filtering with predicate pushdown, e.g. ```python from datasets import load_dataset filters = [('problem_source', '==', 'math')] ds = load_dataset("nvidia/OpenMathInstruct-2", streaming=True, filters=filters) first_example = next(iter(ds["train"])) print(first_example["problem_source"]) # 'math' ``` cc @allisonwang-db this is a nice plus for usage in spark
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7309/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7309/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7309", "html_url": "https://github.com/huggingface/datasets/pull/7309", "diff_url": "https://github.com/huggingface/datasets/pull/7309.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7309.patch", "merged_at": "2024-12-07T23:32:28" }
true
https://api.github.com/repos/huggingface/datasets/issues/7307
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7307/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7307/comments
https://api.github.com/repos/huggingface/datasets/issues/7307/events
https://github.com/huggingface/datasets/pull/7307
2,720,244,889
PR_kwDODunzps6ELKcR
7,307
refactor: remove unnecessary else
{ "login": "HarikrishnanBalagopal", "id": 20921177, "node_id": "MDQ6VXNlcjIwOTIxMTc3", "avatar_url": "https://avatars.githubusercontent.com/u/20921177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HarikrishnanBalagopal", "html_url": "https://github.com/HarikrishnanBalagopal", "followers_url": "https://api.github.com/users/HarikrishnanBalagopal/followers", "following_url": "https://api.github.com/users/HarikrishnanBalagopal/following{/other_user}", "gists_url": "https://api.github.com/users/HarikrishnanBalagopal/gists{/gist_id}", "starred_url": "https://api.github.com/users/HarikrishnanBalagopal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HarikrishnanBalagopal/subscriptions", "organizations_url": "https://api.github.com/users/HarikrishnanBalagopal/orgs", "repos_url": "https://api.github.com/users/HarikrishnanBalagopal/repos", "events_url": "https://api.github.com/users/HarikrishnanBalagopal/events{/privacy}", "received_events_url": "https://api.github.com/users/HarikrishnanBalagopal/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2024-12-05T12:11:09
2024-12-06T15:11:33
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
null
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7307/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7307/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7307", "html_url": "https://github.com/huggingface/datasets/pull/7307", "diff_url": "https://github.com/huggingface/datasets/pull/7307.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7307.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7306
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7306/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7306/comments
https://api.github.com/repos/huggingface/datasets/issues/7306/events
https://github.com/huggingface/datasets/issues/7306
2,719,807,464
I_kwDODunzps6iHPfo
7,306
Creating new dataset from list loses information. (Audio Information Lost - either Datatype or Values).
{ "login": "ai-nikolai", "id": 9797804, "node_id": "MDQ6VXNlcjk3OTc4MDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/9797804?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ai-nikolai", "html_url": "https://github.com/ai-nikolai", "followers_url": "https://api.github.com/users/ai-nikolai/followers", "following_url": "https://api.github.com/users/ai-nikolai/following{/other_user}", "gists_url": "https://api.github.com/users/ai-nikolai/gists{/gist_id}", "starred_url": "https://api.github.com/users/ai-nikolai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ai-nikolai/subscriptions", "organizations_url": "https://api.github.com/users/ai-nikolai/orgs", "repos_url": "https://api.github.com/users/ai-nikolai/repos", "events_url": "https://api.github.com/users/ai-nikolai/events{/privacy}", "received_events_url": "https://api.github.com/users/ai-nikolai/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2024-12-05T09:07:53
2024-12-05T09:09:38
null
NONE
{ "total": 0, "completed": 0, "percent_completed": 0 }
null
### Describe the bug When creating a dataset from a list of datapoints, information is lost of the individual items. Specifically, when creating a dataset from a list of datapoints (from another dataset). Either the datatype is lost or the values are lost. See examples below. -> What is the best way to create a dataset from a list of datapoints? --- e.g.: **When running this code:** ```python from datasets import load_dataset, Dataset commonvoice_data = load_dataset("mozilla-foundation/common_voice_17_0", "it", split="test", streaming=True) datapoint = next(iter(commonvoice_data)) out = [datapoint] new_data = Dataset.from_list(out) #this loses datatype information new_data2= Dataset.from_list(out,features=commonvoice_data.features) #this loses value information ``` **We get the following**: --- 1. `datapoint`: (the original datapoint) ``` 'audio': {'path': 'it_test_0/common_voice_it_23606167.mp3', 'array': array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ..., 2.21619011e-05, 2.72628222e-05, 0.00000000e+00]), 'sampling_rate': 48000} ``` Original Dataset Features: ``` >>> commonvoice_data.features 'audio': Audio(sampling_rate=48000, mono=True, decode=True, id=None) ``` - Here we see column "audio", has the proper values (both `path` & and `array`) and has the correct datatype (Audio). ---- 2. new_data[0]: ``` # Cannot be printed (as it prints the entire array). ``` New Dataset 1 Features: ``` >>> new_data.features 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} ``` - Here we see that the column "audio", has the correct values, but is not the Audio datatype anymore. --- 3. new_data2[0]: ``` 'audio': {'path': None, 'array': array([0., 0., 0., ..., 0., 0., 0.]), 'sampling_rate': 48000}, ``` New Dataset 2 Features: ``` >>> new_data2.features 'audio': Audio(sampling_rate=48000, mono=True, decode=True, id=None), ``` - Here we see that the column "audio", has the correct datatype, but all the array & path values were lost! ### Steps to reproduce the bug ## Run: ```python from datasets import load_dataset, Dataset commonvoice_data = load_dataset("mozilla-foundation/common_voice_17_0", "it", split="test", streaming=True) datapoint = next(iter(commonvoice_data)) out = [datapoint] new_data = Dataset.from_list(out) #this loses datatype information new_data2= Dataset.from_list(out,features=commonvoice_data.features) #this loses value information ``` ### Expected behavior ## Expected: ```datapoint == new_data[0]``` AND ```datapoint == new_data2[0]``` ### Environment info - `datasets` version: 3.1.0 - Platform: Linux-6.2.0-37-generic-x86_64-with-glibc2.35 - Python version: 3.10.12 - `huggingface_hub` version: 0.26.2 - PyArrow version: 15.0.2 - Pandas version: 2.2.2 - `fsspec` version: 2024.3.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7306/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7306/timeline
null
null
null
null
false