Asymptotic characterisation of localised defect modes: Su-Schrieffer-Heeger and related models
Paper
β’
2202.07324
β’
Published
url
string | repository_url
string | labels_url
string | comments_url
string | events_url
string | html_url
string | id
int64 | node_id
string | number
int64 | title
string | user
dict | labels
list | state
string | locked
bool | assignee
dict | assignees
list | milestone
null | comments
list | created_at
timestamp[s] | updated_at
timestamp[s] | closed_at
timestamp[s] | author_association
string | type
null | active_lock_reason
null | sub_issues_summary
dict | issue_dependencies_summary
dict | body
string | closed_by
dict | reactions
dict | timeline_url
string | performed_via_github_app
null | state_reason
string | draft
bool | pull_request
dict | is_pull_request
bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/huggingface/datasets/issues/7999
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7999/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7999/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7999/events
|
https://github.com/huggingface/datasets/issues/7999
| 3,915,367,642
|
I_kwDODunzps7pX8Ta
| 7,999
|
Too many dataloader workers: 4 (max is dataset.num_shards=3). Stopping 1 dataloader workers.
|
{
"login": "D222097",
"id": 50061868,
"node_id": "MDQ6VXNlcjUwMDYxODY4",
"avatar_url": "https://avatars.githubusercontent.com/u/50061868?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/D222097",
"html_url": "https://github.com/D222097",
"followers_url": "https://api.github.com/users/D222097/followers",
"following_url": "https://api.github.com/users/D222097/following{/other_user}",
"gists_url": "https://api.github.com/users/D222097/gists{/gist_id}",
"starred_url": "https://api.github.com/users/D222097/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/D222097/subscriptions",
"organizations_url": "https://api.github.com/users/D222097/orgs",
"repos_url": "https://api.github.com/users/D222097/repos",
"events_url": "https://api.github.com/users/D222097/events{/privacy}",
"received_events_url": "https://api.github.com/users/D222097/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-09T09:26:37
| 2026-02-09T10:13:25
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
Hi !
Iβm working on training with a large-scale dataset (100+ Parquet files) using lazy loading, and Iβm struggling to understand/optimize the num_shards settingβ in the lerobot repo: streaming_datasets.py:
```
from datasets import load_dataset
self.hf_dataset: datasets.IterableDataset = load_dataset(
self.repo_id if not self.streaming_from_local else str(self.root),
split="train",
streaming=self.streaming,
data_files="data/*/*.parquet",
revision=self.revision,
)
self.num_shards = min(self.hf_dataset.num_shards, max_num_shards)
```
```
dataloader = torch.utils.data.DataLoader(
datasets[sub_idx],
num_workers=datasets[sub_idx].num_shards, #cfg.num_workers,
batch_size=cfg.batch_size,
shuffle=shuffle and not cfg.dataset.streaming,
sampler=sampler,
collate_fn=FlowerDataCollator(),
pin_memory=device.type == "cuda",
drop_last=True,
prefetch_factor=2 if cfg.num_workers > 0 else None,
)
```
What exactly does hf_dataset.**num_shards** represent? Is it safe to manually override/edit num_shards?
My batch loading is slower than expected (2-3s per batch) despite num_worker cannot be bigger with warning: Too many dataloader workers: 4 (max is dataset.num_shards=3). Stopping 1 dataloader workers.
Even use num_workers=datasets[sub_idx].num_shards, the waring is still exist! (my num_worker is 4 and hf_dataset.num_shards is 100+, so the datasets[sub_idx].num_shards=4)
Why does the "too many workers" warning persist even when num_workers equals dataset.num_shardsβand how do I fix this?
Thanks so much for any insights or help with this! Really appreciate your time and expertise π
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7999/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/7999/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7998
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7998/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7998/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7998/events
|
https://github.com/huggingface/datasets/issues/7998
| 3,912,624,238
|
I_kwDODunzps7pNehu
| 7,998
|
[doc] Inconsistant ENV VAR Name for Progress Bar Toggle
|
{
"login": "Moenupa",
"id": 49304833,
"node_id": "MDQ6VXNlcjQ5MzA0ODMz",
"avatar_url": "https://avatars.githubusercontent.com/u/49304833?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Moenupa",
"html_url": "https://github.com/Moenupa",
"followers_url": "https://api.github.com/users/Moenupa/followers",
"following_url": "https://api.github.com/users/Moenupa/following{/other_user}",
"gists_url": "https://api.github.com/users/Moenupa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Moenupa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Moenupa/subscriptions",
"organizations_url": "https://api.github.com/users/Moenupa/orgs",
"repos_url": "https://api.github.com/users/Moenupa/repos",
"events_url": "https://api.github.com/users/Moenupa/events{/privacy}",
"received_events_url": "https://api.github.com/users/Moenupa/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-08T12:16:44
| 2026-02-08T12:16:44
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
Code uses env var name `HF_DATASETS_DISABLE_PROGRESS_BARS`.
https://github.com/huggingface/datasets/blob/025593f2f0722f31fc136e0ae45da4ff44d4416a/src/datasets/config.py#L221-L226
Docstrings and warnings report env var name `HF_DATASETS_DISABLE_PROGRESS_BAR` without the ending `S`.
https://github.com/huggingface/datasets/blob/025593f2f0722f31fc136e0ae45da4ff44d4416a/src/datasets/utils/tqdm.py#L61-L73
https://github.com/huggingface/datasets/blob/025593f2f0722f31fc136e0ae45da4ff44d4416a/src/datasets/utils/tqdm.py#L78-L90
https://github.com/huggingface/datasets/blob/025593f2f0722f31fc136e0ae45da4ff44d4416a/src/datasets/utils/tqdm.py#L95-L100
This affects doc webpages as well, e.g., see https://huggingface.co/docs/datasets/en/package_reference/utilities#datasets.enable_progress_bars.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7998/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/7998/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7997
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7997/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7997/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7997/events
|
https://github.com/huggingface/datasets/pull/7997
| 3,912,160,109
|
PR_kwDODunzps7CRNIl
| 7,997
|
fix: Dataset.map writer initialization when first examples return None
|
{
"login": "veeceey",
"id": 34209028,
"node_id": "MDQ6VXNlcjM0MjA5MDI4",
"avatar_url": "https://avatars.githubusercontent.com/u/34209028?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/veeceey",
"html_url": "https://github.com/veeceey",
"followers_url": "https://api.github.com/users/veeceey/followers",
"following_url": "https://api.github.com/users/veeceey/following{/other_user}",
"gists_url": "https://api.github.com/users/veeceey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/veeceey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/veeceey/subscriptions",
"organizations_url": "https://api.github.com/users/veeceey/orgs",
"repos_url": "https://api.github.com/users/veeceey/repos",
"events_url": "https://api.github.com/users/veeceey/events{/privacy}",
"received_events_url": "https://api.github.com/users/veeceey/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-08T07:02:00
| 2026-02-08T07:02:00
| null |
NONE
| null | null | null | null |
Fixes #7990
## Summary
When Dataset.map is called and the first examples processed return None, the writer is never properly initialized, causing a ValueError.
## Changes
- Modified _map_single to initialize the writer early if the first batch returns empty results
- Ensures writer is set before the first call to writer.write_batch
## Test Plan
- Added test case that reproduces the bug
- Verified the fix resolves the issue
- Existing tests still pass
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7997/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/7997/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7997",
"html_url": "https://github.com/huggingface/datasets/pull/7997",
"diff_url": "https://github.com/huggingface/datasets/pull/7997.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7997.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7996
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7996/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7996/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7996/events
|
https://github.com/huggingface/datasets/pull/7996
| 3,912,066,322
|
PR_kwDODunzps7CQ6GC
| 7,996
|
Fix Dataset.map writer initialization when early examples return None
|
{
"login": "veeceey",
"id": 34209028,
"node_id": "MDQ6VXNlcjM0MjA5MDI4",
"avatar_url": "https://avatars.githubusercontent.com/u/34209028?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/veeceey",
"html_url": "https://github.com/veeceey",
"followers_url": "https://api.github.com/users/veeceey/followers",
"following_url": "https://api.github.com/users/veeceey/following{/other_user}",
"gists_url": "https://api.github.com/users/veeceey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/veeceey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/veeceey/subscriptions",
"organizations_url": "https://api.github.com/users/veeceey/orgs",
"repos_url": "https://api.github.com/users/veeceey/repos",
"events_url": "https://api.github.com/users/veeceey/events{/privacy}",
"received_events_url": "https://api.github.com/users/veeceey/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-08T05:52:45
| 2026-02-08T05:52:45
| null |
NONE
| null | null | null | null |
## Summary
Fixes #7990
This PR fixes a bug in `Dataset.map()` where the writer initialization was incorrectly tied to the index being 0, causing crashes when the map function returns `None` for the first few examples and later returns a dict.
### Changes
- **Non-batched mode** (line 3676): Changed from `if i == 0:` to `if writer is None:`
- **Batched mode** (line 3701): Changed from `if i and i[0] == 0:` to `if writer is None:`
### Why This Fix Works
The original code assumed that `update_data` would always be determined by the time the first example (i=0) was processed. However, `update_data` is set lazily after processing each example - it becomes `True` when the function first returns a non-None value.
If a function returns `None` for early examples and a dict for later ones:
1. At i=0, the function returns `None`, so `update_data` remains `None`
2. Writer is NOT initialized (because we're not updating data)
3. At i=2, the function returns a dict, so `update_data` becomes `True`
4. **Old code**: Tries to use `writer` (still None) because i != 0 β crash
5. **New code**: Checks `if writer is None` and initializes it β works correctly
### Test Plan
The fix can be verified with this minimal test case from the issue:
```python
from datasets import Dataset
ds = Dataset.from_dict({"x": [1, 2, 3]})
def fn(example, idx):
if idx < 2:
return None
return {"x": [example["x"] * 10]}
# Should work without errors
result = list(ds.map(fn, with_indices=True))
print(result) # [{'x': 1}, {'x': 2}, {'x': [30]}]
```
**Before this fix**: Crashes with `AttributeError: 'NoneType' object has no attribute 'write'`
**After this fix**: Works correctly
### Related
This fix ensures the writer is initialized the first time a non-None value is returned, regardless of which example index that occurs at. This makes the code more robust to different map function behaviors.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7996/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/7996/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7996",
"html_url": "https://github.com/huggingface/datasets/pull/7996",
"diff_url": "https://github.com/huggingface/datasets/pull/7996.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7996.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7995
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7995/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7995/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7995/events
|
https://github.com/huggingface/datasets/pull/7995
| 3,912,055,867
|
PR_kwDODunzps7CQ4C9
| 7,995
|
Bump fsspec upper bound to 2026.2.0 (fixes #7994)
|
{
"login": "jayzuccarelli",
"id": 11176606,
"node_id": "MDQ6VXNlcjExMTc2NjA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11176606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jayzuccarelli",
"html_url": "https://github.com/jayzuccarelli",
"followers_url": "https://api.github.com/users/jayzuccarelli/followers",
"following_url": "https://api.github.com/users/jayzuccarelli/following{/other_user}",
"gists_url": "https://api.github.com/users/jayzuccarelli/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jayzuccarelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jayzuccarelli/subscriptions",
"organizations_url": "https://api.github.com/users/jayzuccarelli/orgs",
"repos_url": "https://api.github.com/users/jayzuccarelli/repos",
"events_url": "https://api.github.com/users/jayzuccarelli/events{/privacy}",
"received_events_url": "https://api.github.com/users/jayzuccarelli/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-08T05:43:15
| 2026-02-08T05:43:15
| null |
NONE
| null | null | null | null |
Fixes #7994 and e.g. βBumps fsspec upper bound so the latest version can be used; CI will validate compatibility.β
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7995/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/7995/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7995",
"html_url": "https://github.com/huggingface/datasets/pull/7995",
"diff_url": "https://github.com/huggingface/datasets/pull/7995.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7995.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7994
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7994/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7994/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7994/events
|
https://github.com/huggingface/datasets/issues/7994
| 3,906,330,806
|
I_kwDODunzps7o1eC2
| 7,994
|
Bump fsspec upper bound constraint
|
{
"login": "hadim",
"id": 528003,
"node_id": "MDQ6VXNlcjUyODAwMw==",
"avatar_url": "https://avatars.githubusercontent.com/u/528003?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hadim",
"html_url": "https://github.com/hadim",
"followers_url": "https://api.github.com/users/hadim/followers",
"following_url": "https://api.github.com/users/hadim/following{/other_user}",
"gists_url": "https://api.github.com/users/hadim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hadim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hadim/subscriptions",
"organizations_url": "https://api.github.com/users/hadim/orgs",
"repos_url": "https://api.github.com/users/hadim/repos",
"events_url": "https://api.github.com/users/hadim/events{/privacy}",
"received_events_url": "https://api.github.com/users/hadim/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-06T11:37:54
| 2026-02-06T11:37:54
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
Would it be possible to bump fsspec upper bound to the latest (2026.2.0)?
I saw you had some API compat issues in the past (https://github.com/huggingface/datasets/issues/7326) and I understand the need for an upper bound.
But I wonder if you think your CI and tests are a good proxy to catch fsspec API breakage? If that's the case then triggering dataset CI with the latest version of fsspec should tell us whether it's all good right?
Happy to open a PR if needed.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7994/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/7994/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7993
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7993/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7993/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7993/events
|
https://github.com/huggingface/datasets/pull/7993
| 3,898,606,021
|
PR_kwDODunzps7Bkr3F
| 7,993
|
:sparkles: Add 'SparseCsv' builder and 'sparse_collate_fn' for efficient high-dimensional sparse data loading
|
{
"login": "Ebraheem1",
"id": 22107086,
"node_id": "MDQ6VXNlcjIyMTA3MDg2",
"avatar_url": "https://avatars.githubusercontent.com/u/22107086?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Ebraheem1",
"html_url": "https://github.com/Ebraheem1",
"followers_url": "https://api.github.com/users/Ebraheem1/followers",
"following_url": "https://api.github.com/users/Ebraheem1/following{/other_user}",
"gists_url": "https://api.github.com/users/Ebraheem1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Ebraheem1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ebraheem1/subscriptions",
"organizations_url": "https://api.github.com/users/Ebraheem1/orgs",
"repos_url": "https://api.github.com/users/Ebraheem1/repos",
"events_url": "https://api.github.com/users/Ebraheem1/events{/privacy}",
"received_events_url": "https://api.github.com/users/Ebraheem1/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-04T21:59:39
| 2026-02-04T22:00:48
| null |
NONE
| null | null | null | null |
This PR introduces a new dataset builder, SparseCsv, designed to handle "wide" tabular datasets (e.g., 100k+ columns common in transcriptomics, sparse NLP features, or recommender systems) that are typically too large to load into memory as dense Arrow tables.
It also adds a utility function, `sparse_collate_fn`, to seamlessly convert these sparse examples into `torch.sparse` or `scipy.sparse` matrices during training.
This PR should fix #7377
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7993/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/7993/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7993",
"html_url": "https://github.com/huggingface/datasets/pull/7993",
"diff_url": "https://github.com/huggingface/datasets/pull/7993.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7993.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7992
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7992/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7992/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7992/events
|
https://github.com/huggingface/datasets/pull/7992
| 3,897,848,157
|
PR_kwDODunzps7BiJps
| 7,992
|
Add `IterableDataset.reshard()`
|
{
"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_7992). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-04T18:24:41
| 2026-02-04T18:55:38
| 2026-02-04T18:55:35
|
MEMBER
| null | null | null | null |
To increase the number of shards of a dataset, you can use [`IterableDataset.reshard`]:
```py
>>> dataset
IterableDataset({
features: ['label', 'title', 'content'],
num_shards: 4
})
>>> dataset.reshard()
IterableDataset({
features: ['label', 'title', 'content'],
num_shards: 3600
})
```
The resharding mechanism depends on the dataset file format.
For example for Parquet, it reshards using row groups instead of having one file per shard.
We can implement other formats later (e.g. JSON Lines, CSV can be split by recovering line boundaries from arbitrary locations)
Other details:
* fixed concatenate after shuffling, now it correctly shuffles the shards: close https://github.com/huggingface/datasets/issues/7196
* fixed interleave after split_by_node: close https://github.com/huggingface/datasets/issues/7868
* changed a bit how the effective seed works in multi node/worker/epoch situations
related to https://github.com/huggingface/datasets/issues/7917
|
{
"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/7992/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/7992/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7992",
"html_url": "https://github.com/huggingface/datasets/pull/7992",
"diff_url": "https://github.com/huggingface/datasets/pull/7992.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7992.patch",
"merged_at": "2026-02-04T18:55:35"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7991
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7991/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7991/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7991/events
|
https://github.com/huggingface/datasets/issues/7991
| 3,896,884,513
|
I_kwDODunzps7oRb0h
| 7,991
|
list(api.list_datasets()) giving jsondecode error
|
{
"login": "Moll-j",
"id": 199609168,
"node_id": "U_kgDOC-XLUA",
"avatar_url": "https://avatars.githubusercontent.com/u/199609168?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Moll-j",
"html_url": "https://github.com/Moll-j",
"followers_url": "https://api.github.com/users/Moll-j/followers",
"following_url": "https://api.github.com/users/Moll-j/following{/other_user}",
"gists_url": "https://api.github.com/users/Moll-j/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Moll-j/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Moll-j/subscriptions",
"organizations_url": "https://api.github.com/users/Moll-j/orgs",
"repos_url": "https://api.github.com/users/Moll-j/repos",
"events_url": "https://api.github.com/users/Moll-j/events{/privacy}",
"received_events_url": "https://api.github.com/users/Moll-j/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2026-02-04T14:39:46
| 2026-02-05T10:30:09
| 2026-02-05T10:30:09
|
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
i am using the python api wrapper to list all datasets available on hugging face. This is for research, and i need all datasets to determine which % have language tags and other related questions requiring the total list. However, the following code that worked a few months ago:
```
from huggingface_hub import HfApi
api = HfApi(token=token)
datasets = list(api.list_datasets())
```
now gives a JSONDecodeError when reaching 2000 results. My understanding is that this is a pagination issue, as there is no cursor exposed to the API and so it doesnt know where to read from after the limit.
Is there any way to find all datasets available and combine them into a list?
|
{
"login": "Moll-j",
"id": 199609168,
"node_id": "U_kgDOC-XLUA",
"avatar_url": "https://avatars.githubusercontent.com/u/199609168?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Moll-j",
"html_url": "https://github.com/Moll-j",
"followers_url": "https://api.github.com/users/Moll-j/followers",
"following_url": "https://api.github.com/users/Moll-j/following{/other_user}",
"gists_url": "https://api.github.com/users/Moll-j/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Moll-j/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Moll-j/subscriptions",
"organizations_url": "https://api.github.com/users/Moll-j/orgs",
"repos_url": "https://api.github.com/users/Moll-j/repos",
"events_url": "https://api.github.com/users/Moll-j/events{/privacy}",
"received_events_url": "https://api.github.com/users/Moll-j/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7991/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/7991/timeline
| null |
completed
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7990
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7990/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7990/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7990/events
|
https://github.com/huggingface/datasets/issues/7990
| 3,895,870,826
|
I_kwDODunzps7oNkVq
| 7,990
|
Dataset.map crashes when first examples return None and later examples return dict β writer not initialized
|
{
"login": "meta-program",
"id": 30819640,
"node_id": "MDQ6VXNlcjMwODE5NjQw",
"avatar_url": "https://avatars.githubusercontent.com/u/30819640?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meta-program",
"html_url": "https://github.com/meta-program",
"followers_url": "https://api.github.com/users/meta-program/followers",
"following_url": "https://api.github.com/users/meta-program/following{/other_user}",
"gists_url": "https://api.github.com/users/meta-program/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meta-program/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meta-program/subscriptions",
"organizations_url": "https://api.github.com/users/meta-program/orgs",
"repos_url": "https://api.github.com/users/meta-program/repos",
"events_url": "https://api.github.com/users/meta-program/events{/privacy}",
"received_events_url": "https://api.github.com/users/meta-program/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-04T10:43:20
| 2026-02-04T10:43:20
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
I detected a serious [bug from datasets/arrow_dataset.py](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L3676)
---
**Description of the bug**
`Dataset.map` crashes with `writer is None` when the map function returns `None` for the first few examples and a dictionary (or `pa.Table` / DataFrame) for later examples. This happens because the internal writer is initialized only when `i == 0` (or `i[0] == 0` in batched mode), but `update_data` is determined lazily after processing the first example/batch.
**Steps to reproduce**
```python
from datasets import Dataset
ds = Dataset.from_dict({"x": [1, 2, 3]})
def fn(example, idx):
if idx < 2:
return None
return {"x": [example["x"] * 10]}
list(ds.map(fn, with_indices=True))
```
**Expected behavior**
* The function should work regardless of when `update_data` becomes `True`.
* Writer should be initialized the first time a non-`None` return occurs, not tied to the first index.
**Environment info**
* `datasets` version: <insert your version>
* Python version: 3.12
* OS: <insert your OS>
**Suggested fix**
Replace `if i == 0` / `if i[0] == 0` checks with `if writer is None` when initializing the writer.
---
### Steps to reproduce the bug
Here's a ready-to-use version you can paste into that section:
---
### Steps to reproduce the bug
```python
from datasets import Dataset
# Create a minimal dataset
ds = Dataset.from_dict({"x": [1, 2, 3]})
# Define a map function that returns None for first examples, dict later
def fn(example, idx):
if idx < 2:
return None
return {"x": [example["x"] * 10]}
# Apply map with indices
list(ds.map(fn, with_indices=True))
```
**Expected:** function executes without errors.
**Observed:** crashes with `AttributeError: 'NoneType' object has no attribute 'write'` because the internal writer is not initialized when the first non-None return happens after i > 0.
---
This is minimal and clearly demonstrates the exact failure condition (`None` early, `dict` later).
### Expected behavior
---
**Expected behavior**
The `Dataset.map` function should handle map functions that return `None` for some examples and a dictionary (or `pa.Table` / DataFrame) for later examples. In this case, the internal writer should be initialized when the first non-`None` value is returned, so that the dataset can be updated without crashing. The code should run successfully for all examples and return the updated dataset.
---
### Environment info
- python3.12
- datasets==3.6.0 [but the latest version still has this problem]
- transformers==4.55.2
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7990/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/7990/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7989
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7989/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7989/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7989/events
|
https://github.com/huggingface/datasets/pull/7989
| 3,895,613,949
|
PR_kwDODunzps7BaxDx
| 7,989
|
Remove pre-release workaround in CI for `transformers v5` and `huggingface_hub v1`
|
{
"login": "hanouticelina",
"id": 36770234,
"node_id": "MDQ6VXNlcjM2NzcwMjM0",
"avatar_url": "https://avatars.githubusercontent.com/u/36770234?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hanouticelina",
"html_url": "https://github.com/hanouticelina",
"followers_url": "https://api.github.com/users/hanouticelina/followers",
"following_url": "https://api.github.com/users/hanouticelina/following{/other_user}",
"gists_url": "https://api.github.com/users/hanouticelina/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hanouticelina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hanouticelina/subscriptions",
"organizations_url": "https://api.github.com/users/hanouticelina/orgs",
"repos_url": "https://api.github.com/users/hanouticelina/repos",
"events_url": "https://api.github.com/users/hanouticelina/events{/privacy}",
"received_events_url": "https://api.github.com/users/hanouticelina/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_7989). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-04T09:42:49
| 2026-02-04T15:20:04
| 2026-02-04T15:20:02
|
CONTRIBUTOR
| null | null | null | null |
This PR removes workaround for pre-release `transformers v5.*` / `huggingface_hub v1.*` in `test_py314_future` job since they are now officially released.
cc @Wauplin just for viz since you introduced this in https://github.com/huggingface/datasets/pull/7783.
|
{
"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/7989/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/7989/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7989",
"html_url": "https://github.com/huggingface/datasets/pull/7989",
"diff_url": "https://github.com/huggingface/datasets/pull/7989.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7989.patch",
"merged_at": "2026-02-04T15:20:02"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7988
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7988/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7988/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7988/events
|
https://github.com/huggingface/datasets/issues/7988
| 3,895,353,435
|
I_kwDODunzps7oLmBb
| 7,988
|
`Dataset.map()` breaks when `function` calls `import polars as pl` and `num_proc`>1: "UnboundLocalError: cannot access local variable 'pl' where it is not associated with a value"
|
{
"login": "ligz08",
"id": 7464471,
"node_id": "MDQ6VXNlcjc0NjQ0NzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/7464471?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ligz08",
"html_url": "https://github.com/ligz08",
"followers_url": "https://api.github.com/users/ligz08/followers",
"following_url": "https://api.github.com/users/ligz08/following{/other_user}",
"gists_url": "https://api.github.com/users/ligz08/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ligz08/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ligz08/subscriptions",
"organizations_url": "https://api.github.com/users/ligz08/orgs",
"repos_url": "https://api.github.com/users/ligz08/repos",
"events_url": "https://api.github.com/users/ligz08/events{/privacy}",
"received_events_url": "https://api.github.com/users/ligz08/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-04T08:42:23
| 2026-02-04T08:42:23
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
# Repro
These two conditions seem to consistently reproduce the issue:
- function passed to `Dataset.map()` explicitly or implicitly calls `import polars as pl`
- `num_proc` > 1
# Trace
```
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "c:\Users\{redacted}\.venv\Lib\site-packages\multiprocess\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "c:\Users\{redacted}\.venv\Lib\site-packages\datasets\utils\py_utils.py", line 586, in _write_generator_to_queue
for i, result in enumerate(func(**kwargs)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\{redacted}\.venv\Lib\site-packages\datasets\arrow_dataset.py", line 3687, in _map_single
and isinstance(example, pl.DataFrame)
^^
UnboundLocalError: cannot access local variable 'pl' where it is not associated with a value
"""
The above exception was the direct cause of the following exception:
UnboundLocalError Traceback (most recent call last)
Cell In[2], [line 9](vscode-notebook-cell:?execution_count=2&line=9)
6 import polars as pl
7 return {'squared': sample['n'] ** 2}
----> [9](vscode-notebook-cell:?execution_count=2&line=9) ds.map(square, num_proc=2)
File c:\Users\{redacted}\.venv\Lib\site-packages\datasets\arrow_dataset.py:562, in transmit_format.<locals>.wrapper(*args, **kwargs)
555 self_format = {
556 "type": self._format_type,
557 "format_kwargs": self._format_kwargs,
558 "columns": self._format_columns,
559 "output_all_columns": self._output_all_columns,
560 }
561 # apply actual function
--> [562](file:///C:/Users/{redacted}/.venv/Lib/site-packages/datasets/arrow_dataset.py:562) out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
563 datasets: list["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
564 # re-apply format to the output
File c:\Users\{redacted}\.venv\Lib\site-packages\datasets\arrow_dataset.py:3334, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc, try_original_type)
3331 os.environ = prev_env
3332 logger.info(f"Spawning {num_proc} processes")
-> [3334](file:///C:/Users/{redacted}/.venv/Lib/site-packages/datasets/arrow_dataset.py:3334) for rank, done, content in iflatmap_unordered(
3335 pool, Dataset._map_single, kwargs_iterable=unprocessed_kwargs_per_job
3336 ):
3337 check_if_shard_done(rank, done, content)
3339 pool.close()
File c:\Users\{redacted}\.venv\Lib\site-packages\datasets\utils\py_utils.py:626, in iflatmap_unordered(pool, func, kwargs_iterable)
623 finally:
624 if not pool_changed:
625 # we get the result in case there's an error to raise
--> [626](file:///C:/Users/{redacted}/.venv/Lib/site-packages/datasets/utils/py_utils.py:626) [async_result.get(timeout=0.05) for async_result in async_results]
File c:\Users\{redacted}\.venv\Lib\site-packages\multiprocess\pool.py:774, in ApplyResult.get(self, timeout)
772 return self._value
773 else:
--> [774](file:///C:/Users/{redacted}/.venv/Lib/site-packages/multiprocess/pool.py:774) raise self._value
UnboundLocalError: cannot access local variable 'pl' where it is not associated with a value
```
# Why `import polars` in a worker function?
To my knowledge `Dataset.map()` doesn't support a worker init function, and objects useful inside a function aren't always pickable, so I commonly use this pattern to essentially construct the unpickable object in a worker process:
```python
def func(example, **kwargs):
if 'my_unpickable_object' not in globals():
from my_module import MyClass
my_unpickable_object = MyClass(**kwargs)
return {'newcol': my_unpickable_object.calculate_something(example['n'])}
ds = Dataset.load_from_disk(...)
ds.map(func, num_proc=2, ...)
```
and here `from my_module import MyClass` may implicitly call `import polars as pl` e.g. when `my_module.py` has that line, or when it imports some other module containing `import polars as pl`.
# A workaround
Things seem to work ok if I don't do any import inside `func`, but instead pass a class already imported outside `func` as a contructor, like below. Although I'm unsure how many scenarios this workaround can cover.
```python
from my_module import MyClass
def func(example, constructor=MyClass, **kwargs):
if 'my_unpickable_object' not in globals():
my_unpickable_object = constructor(**kwargs)
return {'newcol': my_unpickable_object.calculate_something(example['n'])}
ds = Dataset.load_from_disk(...)
ds.map(func, num_proc=2, ...)
```
# My speculations
Before the crash point, on line 3656 of `arrow_dataset.py` it reads:
```python
if config.POLARS_AVAILABLE and "polars" in sys.modules:
import polars as pl
````
My guess is these conditions are somehow messed up in a worker process, and it ended up not entering the `if` block.
### Steps to reproduce the bug
```python
from datasets import Dataset
ds = Dataset.from_dict({'n': list(range(10_000))})
def square(sample):
import polars as pl
return {'squared': sample['n'] ** 2}
ds.map(square, num_proc=2)
```
### Expected behavior
```
Dataset({
features: ['n', 'squared'],
num_rows: 10000
})
```
### Environment info
- `datasets` version: 4.5.0
- Platform: Windows-11-10.0.26200-SP0
- Python version: 3.12.10
- `huggingface_hub` version: 0.31.2
- PyArrow version: 21.0.0
- Pandas version: 2.2.3
- `fsspec` version: 2025.3.0
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7988/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/7988/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7987
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7987/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7987/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7987/events
|
https://github.com/huggingface/datasets/pull/7987
| 3,894,713,494
|
PR_kwDODunzps7BX0pY
| 7,987
|
Fix index out of bound error with original_shard_lengths.
|
{
"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
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-04T05:20:43
| 2026-02-04T05:20:43
| null |
NONE
| null | null | null | null |
I have gotten the following error
```
original_shard_lengths[original_shard_id] += 1
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
```
Not sure what causes it, but this fixes the error. This may not be the proper fix for the root cause though.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7987/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/7987/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7987",
"html_url": "https://github.com/huggingface/datasets/pull/7987",
"diff_url": "https://github.com/huggingface/datasets/pull/7987.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7987.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7986
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7986/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7986/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7986/events
|
https://github.com/huggingface/datasets/issues/7986
| 3,892,776,651
|
I_kwDODunzps7oBw7L
| 7,986
|
`Dataset.map()` causes cache miss/fingerprint change when closure captures self containing non-deterministic state.
|
{
"login": "Cloud0310",
"id": 60375730,
"node_id": "MDQ6VXNlcjYwMzc1NzMw",
"avatar_url": "https://avatars.githubusercontent.com/u/60375730?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Cloud0310",
"html_url": "https://github.com/Cloud0310",
"followers_url": "https://api.github.com/users/Cloud0310/followers",
"following_url": "https://api.github.com/users/Cloud0310/following{/other_user}",
"gists_url": "https://api.github.com/users/Cloud0310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Cloud0310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Cloud0310/subscriptions",
"organizations_url": "https://api.github.com/users/Cloud0310/orgs",
"repos_url": "https://api.github.com/users/Cloud0310/repos",
"events_url": "https://api.github.com/users/Cloud0310/events{/privacy}",
"received_events_url": "https://api.github.com/users/Cloud0310/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[
"I suggest metion this in docs specifically for attention with use, tell users explicitly to pass arguments with `fn_kwargs` param or using `functools.partial` to create a pure funcion."
] | 2026-02-03T19:16:49
| 2026-02-06T08:38:13
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
When using `.map()` with a function defined inside a **class (of which has any non-deterministic states)** method (a closure), if that function captures `self` to access a configuration variable (e.g., self.foo), the fingerprint mechanism serializes the entire class instance state.
If the class instance contains any non-deterministic state (such as random seeds, loggers, or distinct object IDsβin my case, PyTorch Lightning's `LightningDataModule`), the fingerprint changes on every run, rendering the cache useless.
While this may be intended behavior for `dill`, it is a significant "gotcha" for users migrating code into classes, as unrelated state changes cause massive re-processing overhead.
Real world "cache explosion" screenshot caused by the fingerprint mismatch:
<img width="942" height="382" alt="Image" src="https://github.com/user-attachments/assets/2fb0acba-ac07-4f00-bf30-c1ac932c9072" />
### Steps to reproduce the bug
Minimal reproduction code block:
```python3
import datasets
import uuid
# Prevent logging spam
datasets.logging.set_verbosity_error()
class ReproduceIssue:
def __init__(self):
# This is the variable we actually care about in the map function
self.foo = 32
# This simulates "dirty" internal state often found in framework classes
# (e.g., unique IDs, pointers to loggers, thread locks, or random seeds)
self.hidden_state = uuid.uuid4()
self.dataset = datasets.Dataset.from_dict({"strokes": [1, 2, 3]})
def setup(self):
# Closure captures 'self' to access 'self.foo'
def preprocess(batch):
# Accessing self binds the function to the specific instance state
_ = self.foo
return {"foo": batch["bar"]}
return self.dataset.map(preprocess, batched=True)
print("--- Run 1 ---")
inst1 = ReproduceIssue()
ds1 = inst1.setup()
print(f"Fingerprint 1: {ds1._fingerprint}")
print("\n--- Run 2 (New Instance) ---")
inst2 = ReproduceIssue()
ds2 = inst2.setup()
print(f"Fingerprint 2: {ds2._fingerprint}")
if ds1._fingerprint != ds2._fingerprint:
print("\nβ ISSUE REPRODUCED: Fingerprints differ (Cache Miss).")
else:
print("\nβ
Fingerprints match.")
```
Result:
```
--- Run 1 ---
Mapping: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 2025.26 examples/s]
Fingerprint 1: 1ce6104f9e97912a
--- Run 2 (New Instance) ---
Mapping: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 2300.77 examples/s]
Fingerprint 2: c0fc011ff86ea571
--- Result ---
β CACHE MISS: Fingerprints are different!
```
### Expected behavior
The fingerprint should ideally depend **only on the bytecode of the function and the values of the variables actually accessed** (`self.foo`), rather than the state of the whole object self.
### Environment info
datasets version: 4.5.0, platform: any, python version: 3.13.
This was encountered while subclassing torch lightning's `LightningDataModule`. These objects inherently **contain internal state that differs per instance**.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7986/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/7986/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7985
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7985/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7985/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7985/events
|
https://github.com/huggingface/datasets/pull/7985
| 3,892,480,150
|
PR_kwDODunzps7BQaGn
| 7,985
|
Remove unused data files optims
|
{
"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_7985). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-03T17:58:30
| 2026-02-03T18:30:30
| 2026-02-03T18:30:28
|
MEMBER
| null | null | null | null |
this fixes module inference when there are many metadata files
e.g. the lance dataset at https://huggingface.co/datasets/davanstrien/encyclopaedia-britannica-lance has > 200 metadata files
those optims are not used anymore, they come from a time we were dealing with slow data files iterators instead of lists
|
{
"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/7985/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/7985/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7985",
"html_url": "https://github.com/huggingface/datasets/pull/7985",
"diff_url": "https://github.com/huggingface/datasets/pull/7985.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7985.patch",
"merged_at": "2026-02-03T18:30:28"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7984
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7984/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7984/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7984/events
|
https://github.com/huggingface/datasets/issues/7984
| 3,891,431,105
|
I_kwDODunzps7n8obB
| 7,984
|
Data
|
{
"login": "iLenceJhay",
"id": 228845628,
"node_id": "U_kgDODaPoPA",
"avatar_url": "https://avatars.githubusercontent.com/u/228845628?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iLenceJhay",
"html_url": "https://github.com/iLenceJhay",
"followers_url": "https://api.github.com/users/iLenceJhay/followers",
"following_url": "https://api.github.com/users/iLenceJhay/following{/other_user}",
"gists_url": "https://api.github.com/users/iLenceJhay/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iLenceJhay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iLenceJhay/subscriptions",
"organizations_url": "https://api.github.com/users/iLenceJhay/orgs",
"repos_url": "https://api.github.com/users/iLenceJhay/repos",
"events_url": "https://api.github.com/users/iLenceJhay/events{/privacy}",
"received_events_url": "https://api.github.com/users/iLenceJhay/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-03T14:01:48
| 2026-02-03T14:01:48
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
| null | null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7984/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/7984/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7983
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7983/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7983/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7983/events
|
https://github.com/huggingface/datasets/pull/7983
| 3,888,225,779
|
PR_kwDODunzps7BCJgV
| 7,983
|
Add Zarr streaming support (POC)
|
{
"login": "KOKOSde",
"id": 163377666,
"node_id": "U_kgDOCbzyAg",
"avatar_url": "https://avatars.githubusercontent.com/u/163377666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KOKOSde",
"html_url": "https://github.com/KOKOSde",
"followers_url": "https://api.github.com/users/KOKOSde/followers",
"following_url": "https://api.github.com/users/KOKOSde/following{/other_user}",
"gists_url": "https://api.github.com/users/KOKOSde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KOKOSde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KOKOSde/subscriptions",
"organizations_url": "https://api.github.com/users/KOKOSde/orgs",
"repos_url": "https://api.github.com/users/KOKOSde/repos",
"events_url": "https://api.github.com/users/KOKOSde/events{/privacy}",
"received_events_url": "https://api.github.com/users/KOKOSde/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-03T00:06:46
| 2026-02-04T00:09:20
| null |
NONE
| null | null | null | null |
Add initial Zarr streaming support (POC).
This introduces a `zarr` packaged module and docs/tests to validate basic loading.
Note: I pushed a follow-up commit to fix an accidental duplication in `benchmarks/benchmark_zarr_streaming.py` (file now contains a single benchmark script).
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7983/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/7983/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7983",
"html_url": "https://github.com/huggingface/datasets/pull/7983",
"diff_url": "https://github.com/huggingface/datasets/pull/7983.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7983.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7982
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7982/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7982/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7982/events
|
https://github.com/huggingface/datasets/pull/7982
| 3,888,131,856
|
PR_kwDODunzps7BB1zZ
| 7,982
|
Fix unstable tokenizer fingerprinting (enables map cache reuse)
|
{
"login": "KOKOSde",
"id": 163377666,
"node_id": "U_kgDOCbzyAg",
"avatar_url": "https://avatars.githubusercontent.com/u/163377666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KOKOSde",
"html_url": "https://github.com/KOKOSde",
"followers_url": "https://api.github.com/users/KOKOSde/followers",
"following_url": "https://api.github.com/users/KOKOSde/following{/other_user}",
"gists_url": "https://api.github.com/users/KOKOSde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KOKOSde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KOKOSde/subscriptions",
"organizations_url": "https://api.github.com/users/KOKOSde/orgs",
"repos_url": "https://api.github.com/users/KOKOSde/repos",
"events_url": "https://api.github.com/users/KOKOSde/events{/privacy}",
"received_events_url": "https://api.github.com/users/KOKOSde/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-02-02T23:34:51
| 2026-02-05T05:41:24
| null |
NONE
| null | null | null | null |
Fix unstable dataset fingerprinting when hashing `PreTrainedTokenizerFast`.
Some tokenizers backed by `tokenizers.Tokenizer` mutate runtime settings (padding/truncation) when called, which can change the serialized state and make dataset fingerprints unstable. That prevents `.map(load_from_cache_file=True)` from reusing cache files.
Fix: when hashing, temporarily disable backend padding/truncation so runtime settings donβt affect the fingerprint, then restore the original settings.
Includes a regression test showing `Hasher.hash(tokenizer)` stays stable after calling the tokenizer.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7982/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/7982/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7982",
"html_url": "https://github.com/huggingface/datasets/pull/7982",
"diff_url": "https://github.com/huggingface/datasets/pull/7982.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7982.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7981
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7981/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7981/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7981/events
|
https://github.com/huggingface/datasets/pull/7981
| 3,887,077,016
|
PR_kwDODunzps7A-V7J
| 7,981
|
Support pandas 3
|
{
"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_7981). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-02T17:16:37
| 2026-02-02T17:34:25
| 2026-02-02T17:34:22
|
MEMBER
| null | null | null | 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/7981/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/7981/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7981",
"html_url": "https://github.com/huggingface/datasets/pull/7981",
"diff_url": "https://github.com/huggingface/datasets/pull/7981.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7981.patch",
"merged_at": "2026-02-02T17:34:22"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7980
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7980/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7980/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7980/events
|
https://github.com/huggingface/datasets/pull/7980
| 3,886,785,042
|
PR_kwDODunzps7A9Wrj
| 7,980
|
Drop python 3.9
|
{
"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_7980). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-02T16:13:04
| 2026-02-02T16:26:31
| 2026-02-02T16:26:29
|
MEMBER
| null | null | null | null |
EOL was a few months ago, and transformers doesn't support 3.9 anymore
|
{
"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/7980/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/7980/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7980",
"html_url": "https://github.com/huggingface/datasets/pull/7980",
"diff_url": "https://github.com/huggingface/datasets/pull/7980.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7980.patch",
"merged_at": "2026-02-02T16:26:29"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7979
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7979/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7979/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7979/events
|
https://github.com/huggingface/datasets/pull/7979
| 3,886,772,007
|
PR_kwDODunzps7A9T06
| 7,979
|
Use temp files in push_to_hub to save memory
|
{
"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_7979). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-02-02T16:10:38
| 2026-02-02T16:26:16
| 2026-02-02T16:26:14
|
MEMBER
| null | null | null | null |
write parquet data to temp files on disk prior to upload to save memory
this is enabled for for datasets loaded using streaming=True/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
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7979/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/7979/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7979",
"html_url": "https://github.com/huggingface/datasets/pull/7979",
"diff_url": "https://github.com/huggingface/datasets/pull/7979.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7979.patch",
"merged_at": "2026-02-02T16:26:14"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7978
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7978/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7978/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7978/events
|
https://github.com/huggingface/datasets/pull/7978
| 3,879,787,436
|
PR_kwDODunzps7AmQfP
| 7,978
|
Fix 4910 kwargs
|
{
"login": "vedanta777",
"id": 218264809,
"node_id": "U_kgDODQJ06Q",
"avatar_url": "https://avatars.githubusercontent.com/u/218264809?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vedanta777",
"html_url": "https://github.com/vedanta777",
"followers_url": "https://api.github.com/users/vedanta777/followers",
"following_url": "https://api.github.com/users/vedanta777/following{/other_user}",
"gists_url": "https://api.github.com/users/vedanta777/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vedanta777/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vedanta777/subscriptions",
"organizations_url": "https://api.github.com/users/vedanta777/orgs",
"repos_url": "https://api.github.com/users/vedanta777/repos",
"events_url": "https://api.github.com/users/vedanta777/events{/privacy}",
"received_events_url": "https://api.github.com/users/vedanta777/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-31T18:36:32
| 2026-02-02T13:08:33
| null |
NONE
| null | null | null | null |
Fix #4910 : Merge duplicate kwargs in `load_dataset_builder()`
Problem: load_dataset("dataset", base_path="./data")` gives TypeError("multiple values for keyword 'base_path')
Fix: {**builder_kwargs, **config_kwargs} to user kwargs override dataset defaults
Repro : python
Before: TypeError
load_dataset("rotten_tomatoes", base_path="./sample_data")
After: Works
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7978/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/7978/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7978",
"html_url": "https://github.com/huggingface/datasets/pull/7978",
"diff_url": "https://github.com/huggingface/datasets/pull/7978.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7978.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7977
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7977/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7977/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7977/events
|
https://github.com/huggingface/datasets/pull/7977
| 3,879,142,697
|
PR_kwDODunzps7AkMoM
| 7,977
|
Updated get_dataset_config_names returning default in offline mode
|
{
"login": "abigailtech",
"id": 178829649,
"node_id": "U_kgDOCqi5UQ",
"avatar_url": "https://avatars.githubusercontent.com/u/178829649?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abigailtech",
"html_url": "https://github.com/abigailtech",
"followers_url": "https://api.github.com/users/abigailtech/followers",
"following_url": "https://api.github.com/users/abigailtech/following{/other_user}",
"gists_url": "https://api.github.com/users/abigailtech/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abigailtech/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abigailtech/subscriptions",
"organizations_url": "https://api.github.com/users/abigailtech/orgs",
"repos_url": "https://api.github.com/users/abigailtech/repos",
"events_url": "https://api.github.com/users/abigailtech/events{/privacy}",
"received_events_url": "https://api.github.com/users/abigailtech/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2026-01-31T12:56:21
| 2026-02-01T07:25:33
| 2026-02-01T07:25:33
|
NONE
| null | null | null | null |
When a dataset is cached and accessed in offline mode, get_dataset_config_names was returning default instead of the actual cached config names. This happened because CachedDatasetModuleFactory.get_module returned a DatasetModule without builder_configs_parameters, causing the fallback to default in get_dataset_config_names.
The fix reads config_name from each dataset_info file in the cache directory and includes them as builder_configs_parameters in the returned DatasetModule. Invalid or missing dataset_info.json files are handled.
**Testing:**
1. Download a dataset in online mode so it gets cached
2. Switch to offline mode and call get_dataset_config_names
3. Verify it returns the cached config names instead of ['default']
**Example:**
- HF_DATASETS_OFFLINE=0 HF_HOME="/tmp/hftemp" python -c "import datasets; datasets.load_dataset('cais/mmlu', 'all')"
- HF_DATASETS_OFFLINE=1 HF_HOME="/tmp/hftemp" python -c "import datasets; print(datasets.get_dataset_config_names('cais/mmlu'))"
- -> Expected output: ['all']
Fixes https://github.com/huggingface/datasets/issues/7947
|
{
"login": "abigailtech",
"id": 178829649,
"node_id": "U_kgDOCqi5UQ",
"avatar_url": "https://avatars.githubusercontent.com/u/178829649?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abigailtech",
"html_url": "https://github.com/abigailtech",
"followers_url": "https://api.github.com/users/abigailtech/followers",
"following_url": "https://api.github.com/users/abigailtech/following{/other_user}",
"gists_url": "https://api.github.com/users/abigailtech/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abigailtech/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abigailtech/subscriptions",
"organizations_url": "https://api.github.com/users/abigailtech/orgs",
"repos_url": "https://api.github.com/users/abigailtech/repos",
"events_url": "https://api.github.com/users/abigailtech/events{/privacy}",
"received_events_url": "https://api.github.com/users/abigailtech/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7977/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/7977/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7977",
"html_url": "https://github.com/huggingface/datasets/pull/7977",
"diff_url": "https://github.com/huggingface/datasets/pull/7977.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7977.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7976
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7976/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7976/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7976/events
|
https://github.com/huggingface/datasets/pull/7976
| 3,879,038,987
|
PR_kwDODunzps7Aj2hP
| 7,976
|
Write image/audio/video blobs as is in parquet (PLAIN)
|
{
"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_7976). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-31T11:49:39
| 2026-02-03T20:03:48
| 2026-01-31T11:50:33
|
MEMBER
| null | null | null | null |
following #7971
|
{
"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/7976/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/7976/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7976",
"html_url": "https://github.com/huggingface/datasets/pull/7976",
"diff_url": "https://github.com/huggingface/datasets/pull/7976.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7976.patch",
"merged_at": "2026-01-31T11:50:32"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7975
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7975/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7975/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7975/events
|
https://github.com/huggingface/datasets/pull/7975
| 3,878,625,407
|
PR_kwDODunzps7AikAO
| 7,975
|
Docs: add Dataset.from_dict example
|
{
"login": "KOKOSde",
"id": 163377666,
"node_id": "U_kgDOCbzyAg",
"avatar_url": "https://avatars.githubusercontent.com/u/163377666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KOKOSde",
"html_url": "https://github.com/KOKOSde",
"followers_url": "https://api.github.com/users/KOKOSde/followers",
"following_url": "https://api.github.com/users/KOKOSde/following{/other_user}",
"gists_url": "https://api.github.com/users/KOKOSde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KOKOSde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KOKOSde/subscriptions",
"organizations_url": "https://api.github.com/users/KOKOSde/orgs",
"repos_url": "https://api.github.com/users/KOKOSde/repos",
"events_url": "https://api.github.com/users/KOKOSde/events{/privacy}",
"received_events_url": "https://api.github.com/users/KOKOSde/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-31T07:00:43
| 2026-02-05T05:50:11
| null |
NONE
| null | null | null | null |
Docs: add a minimal `Dataset.from_dict` example.
This helps new users discover the most direct way to build a small dataset from in-memory Python data.
Docs-only change.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7975/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/7975/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7975",
"html_url": "https://github.com/huggingface/datasets/pull/7975",
"diff_url": "https://github.com/huggingface/datasets/pull/7975.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7975.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7974
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7974/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7974/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7974/events
|
https://github.com/huggingface/datasets/pull/7974
| 3,878,625,349
|
PR_kwDODunzps7Aij_g
| 7,974
|
Fix duplicate kwargs in load_dataset_builder
|
{
"login": "KOKOSde",
"id": 163377666,
"node_id": "U_kgDOCbzyAg",
"avatar_url": "https://avatars.githubusercontent.com/u/163377666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KOKOSde",
"html_url": "https://github.com/KOKOSde",
"followers_url": "https://api.github.com/users/KOKOSde/followers",
"following_url": "https://api.github.com/users/KOKOSde/following{/other_user}",
"gists_url": "https://api.github.com/users/KOKOSde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KOKOSde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KOKOSde/subscriptions",
"organizations_url": "https://api.github.com/users/KOKOSde/orgs",
"repos_url": "https://api.github.com/users/KOKOSde/repos",
"events_url": "https://api.github.com/users/KOKOSde/events{/privacy}",
"received_events_url": "https://api.github.com/users/KOKOSde/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-31T07:00:39
| 2026-02-05T05:49:31
| null |
NONE
| null | null | null | null |
Avoid passing duplicate keyword arguments to `load_dataset_builder`.
Some module factories provide values in `builder_kwargs` (e.g. `base_path`), and users can also pass the same keys via `config_kwargs`, which raises:
`TypeError: ... got multiple values for keyword argument ...`.
Fix: if `config_kwargs` is provided, drop overlapping keys from `builder_kwargs` (keep the user-provided values).
Includes a regression test.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7974/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/7974/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7974",
"html_url": "https://github.com/huggingface/datasets/pull/7974",
"diff_url": "https://github.com/huggingface/datasets/pull/7974.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7974.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7973
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7973/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7973/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7973/events
|
https://github.com/huggingface/datasets/pull/7973
| 3,878,514,101
|
PR_kwDODunzps7AiMd8
| 7,973
|
Fix resolve_pattern for local symlinked files
|
{
"login": "KOKOSde",
"id": 163377666,
"node_id": "U_kgDOCbzyAg",
"avatar_url": "https://avatars.githubusercontent.com/u/163377666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KOKOSde",
"html_url": "https://github.com/KOKOSde",
"followers_url": "https://api.github.com/users/KOKOSde/followers",
"following_url": "https://api.github.com/users/KOKOSde/following{/other_user}",
"gists_url": "https://api.github.com/users/KOKOSde/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KOKOSde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KOKOSde/subscriptions",
"organizations_url": "https://api.github.com/users/KOKOSde/orgs",
"repos_url": "https://api.github.com/users/KOKOSde/repos",
"events_url": "https://api.github.com/users/KOKOSde/events{/privacy}",
"received_events_url": "https://api.github.com/users/KOKOSde/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-31T06:04:51
| 2026-02-05T05:49:13
| null |
NONE
| null | null | null | null |
Fix `resolve_pattern` for *local symlinked files*.
Problem: on the local `file://` filesystem, `fsspec` can report symlinks as `type=="other"` and omit the `islink` flag, so symlinked files are skipped.
Fix: when `protocol=="file"`, treat `os.path.islink(filepath)` as a link candidate and include it if it resolves to a regular file.
Includes a regression test in `tests/test_data_files.py`.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7973/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/7973/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7973",
"html_url": "https://github.com/huggingface/datasets/pull/7973",
"diff_url": "https://github.com/huggingface/datasets/pull/7973.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7973.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7972
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7972/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7972/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7972/events
|
https://github.com/huggingface/datasets/pull/7972
| 3,874,083,781
|
PR_kwDODunzps7AT07I
| 7,972
|
feat: implement iter_arrow for skip, take and step iterables
|
{
"login": "Edge-Explorer",
"id": 192764477,
"node_id": "U_kgDOC31aPQ",
"avatar_url": "https://avatars.githubusercontent.com/u/192764477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Edge-Explorer",
"html_url": "https://github.com/Edge-Explorer",
"followers_url": "https://api.github.com/users/Edge-Explorer/followers",
"following_url": "https://api.github.com/users/Edge-Explorer/following{/other_user}",
"gists_url": "https://api.github.com/users/Edge-Explorer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Edge-Explorer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Edge-Explorer/subscriptions",
"organizations_url": "https://api.github.com/users/Edge-Explorer/orgs",
"repos_url": "https://api.github.com/users/Edge-Explorer/repos",
"events_url": "https://api.github.com/users/Edge-Explorer/events{/privacy}",
"received_events_url": "https://api.github.com/users/Edge-Explorer/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-30T05:47:13
| 2026-01-30T05:54:15
| null |
CONTRIBUTOR
| null | null | null | null |
This commit optimizes streaming operations by implementing [_iter_arrow](cci:1://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:377:4-391:57) for [SkipExamplesIterable](cci:2://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:1798:0-1892:42), [TakeExamplesIterable](cci:2://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:1944:0-2048:42), and [StepExamplesIterable](cci:2://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:667:0-743:42).
### Key Changes:
- **Fast Batch Processing**: Enabled batch-level slicing for `.skip(n)` and `.take(n)` on streaming datasets, bypassing slow row-by-row iteration.
- **Optimized Sharding**: Updated [StepExamplesIterable](cci:2://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:667:0-743:42) (used in distributed training) to use Arrow's `.take()` to extract multiple records from a batch simultaneously.
- **State Preservation**: Reinforced [_init_state_dict](cci:1://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:505:4-514:31) and [load_state_dict](cci:1://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:2382:4-2430:46) to support flawless checkpointing and resumption while using Arrow iteration.
### Performance Impact:
Users will experience significant performance gains when skipping or taking examples in streaming mode. By staying in the "Arrow path" and avoiding Python dictionary conversions, data loading overhead is drastically reduced, especially for large-scale training jobs.
### Testing:
Integrated 6 new unit tests into [tests/test_iterable_dataset.py](cci:7://file:///c:/Users/ASUS/Desktop/datasets/tests/test_iterable_dataset.py:0:0-0:0) to verify:
- Functional correctness for [skip](cci:1://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:3149:4-3191:9), [take](cci:1://file:///c:/Users/ASUS/Desktop/datasets/src/datasets/iterable_dataset.py:3236:4-3271:9), and `step` using Arrow iteration.
- Reliable state checkpointing and resumption after partial iteration.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7972/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/7972/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7972",
"html_url": "https://github.com/huggingface/datasets/pull/7972",
"diff_url": "https://github.com/huggingface/datasets/pull/7972.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7972.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7971
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7971/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7971/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7971/events
|
https://github.com/huggingface/datasets/pull/7971
| 3,871,984,311
|
PR_kwDODunzps7AMzLl
| 7,971
|
push_to_hub() for videos
|
{
"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_7971). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-29T18:16:58
| 2026-01-31T11:50:25
| 2026-01-29T18:56:04
|
MEMBER
| null | null | null | null |
possible now that row group sizes are auto-determined based on the content size after https://github.com/huggingface/datasets/pull/7589
Videos are uploaded as PLAIN in Parquet to make sure they can be seeked remotely and with random access to frames in https://github.com/huggingface/datasets/pull/7976
In the future it could be cool to have the same behavior as when videos are separate files, i.e. lazily load them instead of downloading them completely in streaming mode.
Right now there is this discrepency:
- `load_dataset("username/my-folder-of-videos", streaming=True)` -> videos are lazy loaded one by one when iterating, and only actually downloaded when accessing frames in `torchcodec`
- `load_dataset("username/my-video-dataset-in-parquet", streaming=True)` -> videos are downloaded one by one when iterating, even if no frame is accessed in `torchcodec`
close https://github.com/huggingface/datasets/issues/7493
|
{
"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/7971/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/7971/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7971",
"html_url": "https://github.com/huggingface/datasets/pull/7971",
"diff_url": "https://github.com/huggingface/datasets/pull/7971.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7971.patch",
"merged_at": "2026-01-29T18:56:04"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7970
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7970/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7970/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7970/events
|
https://github.com/huggingface/datasets/issues/7970
| 3,869,700,866
|
I_kwDODunzps7mpvMC
| 7,970
|
cast_column(..., Audio) fails with load_dataset("csv",)
|
{
"login": "jstangroome",
"id": 148754,
"node_id": "MDQ6VXNlcjE0ODc1NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/148754?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jstangroome",
"html_url": "https://github.com/jstangroome",
"followers_url": "https://api.github.com/users/jstangroome/followers",
"following_url": "https://api.github.com/users/jstangroome/following{/other_user}",
"gists_url": "https://api.github.com/users/jstangroome/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jstangroome/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jstangroome/subscriptions",
"organizations_url": "https://api.github.com/users/jstangroome/orgs",
"repos_url": "https://api.github.com/users/jstangroome/repos",
"events_url": "https://api.github.com/users/jstangroome/events{/privacy}",
"received_events_url": "https://api.github.com/users/jstangroome/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[
"The following code *does* work:\n```py\nfrom datasets import load_dataset,Audio,Features\n\ndataset = load_dataset(\"csv\",data_files=\"audio.csv\",features=Features({\"audio\": Audio()}))\nprint(dataset[\"train\"][0][\"audio\"])\n```",
"Thanks for reporing ! Are you using pandas v3 by any chance ? The CSV loader uses pandas and this release is brand new and might have caused a breaking change",
"pandas 3.0.0 was present but I've also reproduced the issue with pandas 2.3.3."
] | 2026-01-29T09:33:35
| 2026-01-29T22:24:14
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds.
### Steps to reproduce the bug
1. Have any valid audio file `audio.wav`
2. Have a csv file named `audio.csv` with the following content:
```csv
"audio"
"audio.wav"
```
3. Attempt to execute the following python code:
```py
from datasets import load_dataset,Audio,Dataset
dataset = Dataset.from_dict({"audio": ["audio.wav"]})
dataset = dataset.cast_column("audio", Audio())
print(dataset[0]["audio"])
# ^^ succeeds with output: <datasets.features._torchcodec.AudioDecoder object at 0x7a32b341a3c0>
dataset = load_dataset("csv", data_files="audio.csv")
dataset = dataset.cast_column("audio", Audio())
# ^^ errors and terminates
print(dataset[0]["audio"])
```
The error is:
```pytb
Traceback (most recent call last):
File "~/datasets-bug/explore.py", line 8, in <module>
dataset = dataset.cast_column("audio", Audio(sampling_rate=24000))
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/dataset_dict.py", line 337, in cast_column
return DatasetDict({k: dataset.cast_column(column=column, feature=feature) for k, dataset in self.items()})
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/fingerprint.py", line 468, in wrapper
out = func(dataset, *args, **kwargs)
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/arrow_dataset.py", line 2201, in cast_column
dataset._data = dataset._data.cast(dataset.features.arrow_schema)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 1124, in cast
return MemoryMappedTable(table_cast(self.table, *args, **kwargs), self.path, replays)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 2224, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 1795, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 1995, in cast_array_to_feature
return feature.cast_storage(array)
~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/features/audio.py", line 272, in cast_storage
return array_cast(storage, self.pa_type)
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 1797, in wrapper
return func(array, *args, **kwargs)
File "~/datasets-bug/.venv/lib/python3.14/site-packages/datasets/table.py", line 1949, in array_cast
return array.cast(pa_type)
~~~~~~~~~~^^^^^^^^^
File "pyarrow/array.pxi", line 1147, in pyarrow.lib.Array.cast
File "~/datasets-bug/.venv/lib/python3.14/site-packages/pyarrow/compute.py", line 412, in cast
return call_function("cast", [arr], options, memory_pool)
File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from large_string to struct using function cast_struct
```
### Expected behavior
The audio column with file paths loaded from a csv can be converted to AudioDecoder objects the same as an identical dataset created from a dict.
### Environment info
datasets 4.3.0 and 4.5.0, Ubuntu 24.04 amd64, python 3.13.11 and 3.14.2
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7970/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/7970/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7969
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7969/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7969/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7969/events
|
https://github.com/huggingface/datasets/pull/7969
| 3,865,100,307
|
PR_kwDODunzps6_1p9H
| 7,969
|
Count examples in lance
|
{
"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_7969). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-28T12:00:37
| 2026-01-28T13:00:26
| 2026-01-28T13:00:23
|
MEMBER
| null | null | null | null |
```python
In [1]: from datasets import load_dataset_builder, StreamingDownloadManager
In [2]: b = load_dataset_builder("lance-format/openvid-lance")
Resolving data files: 100%|β| 240/240 [00:00<00:00, 42675.64it/s
In [3]: b.count_examples(StreamingDownloadManager())
Out[3]: {'train': 937957}
```
|
{
"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/7969/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/7969/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7969",
"html_url": "https://github.com/huggingface/datasets/pull/7969",
"diff_url": "https://github.com/huggingface/datasets/pull/7969.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7969.patch",
"merged_at": "2026-01-28T13:00:23"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7968
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7968/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7968/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7968/events
|
https://github.com/huggingface/datasets/issues/7968
| 3,864,988,355
|
I_kwDODunzps7mXwrD
| 7,968
|
Potential conflicting type checks and dead code in `/src/datasets/table.py`
|
{
"login": "rc4typecheck",
"id": 243496043,
"node_id": "U_kgDODoN0aw",
"avatar_url": "https://avatars.githubusercontent.com/u/243496043?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rc4typecheck",
"html_url": "https://github.com/rc4typecheck",
"followers_url": "https://api.github.com/users/rc4typecheck/followers",
"following_url": "https://api.github.com/users/rc4typecheck/following{/other_user}",
"gists_url": "https://api.github.com/users/rc4typecheck/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rc4typecheck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rc4typecheck/subscriptions",
"organizations_url": "https://api.github.com/users/rc4typecheck/orgs",
"repos_url": "https://api.github.com/users/rc4typecheck/repos",
"events_url": "https://api.github.com/users/rc4typecheck/events{/privacy}",
"received_events_url": "https://api.github.com/users/rc4typecheck/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[
"ConcatenationTable is a subclass of datasets.table.Table but not pa.Table, so it should be fine"
] | 2026-01-28T11:34:53
| 2026-01-28T13:05:28
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
When statically analyzing and manually reviewing the code, I noticed a potential logic conflicting in `/src/datasets/table.py` as follows:
```
def to_blocks(table: Union[pa.Table, Table]) -> list[list[TableBlock]]:
if isinstance(table, pa.Table):
return [[InMemoryTable(table)]]
elif isinstance(table, ConcatenationTable): # dead code
return copy.deepcopy(table.blocks)
else:
return [[table]]
```
Within the function, the condition `isinstance(table, ConcatenationTable)` at line 4 will never be True because the previous condition `isinstance(table, pa.Table)` at line 2 would have already caught all instances of `ConcatenationTable` (since `ConcatenationTable` is a subtype of `pa.Table`). This creates a logical conflict in the type checking flow.
Please verify if this logic is intentional or it is an issue warranting a refactoring or fixing.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7968/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/7968/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7967
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7967/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7967/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7967/events
|
https://github.com/huggingface/datasets/pull/7967
| 3,863,579,646
|
PR_kwDODunzps6_wnm8
| 7,967
|
Issue 7756 Fix - multiprocessing hang issue with start method check
|
{
"login": "vedanta777",
"id": 218264809,
"node_id": "U_kgDODQJ06Q",
"avatar_url": "https://avatars.githubusercontent.com/u/218264809?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vedanta777",
"html_url": "https://github.com/vedanta777",
"followers_url": "https://api.github.com/users/vedanta777/followers",
"following_url": "https://api.github.com/users/vedanta777/following{/other_user}",
"gists_url": "https://api.github.com/users/vedanta777/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vedanta777/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vedanta777/subscriptions",
"organizations_url": "https://api.github.com/users/vedanta777/orgs",
"repos_url": "https://api.github.com/users/vedanta777/repos",
"events_url": "https://api.github.com/users/vedanta777/events{/privacy}",
"received_events_url": "https://api.github.com/users/vedanta777/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-28T05:02:20
| 2026-01-31T18:26:03
| null |
NONE
| null | null | null | null |
Added a fix to prevent multiprocessing hangs by checking the start method.
Detects bad multiprocessing start_method, fallback happens.
https://github.com/huggingface/datasets/issues/7756
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7967/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/7967/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7967",
"html_url": "https://github.com/huggingface/datasets/pull/7967",
"diff_url": "https://github.com/huggingface/datasets/pull/7967.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7967.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7966
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7966/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7966/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7966/events
|
https://github.com/huggingface/datasets/pull/7966
| 3,861,774,379
|
PR_kwDODunzps6_qp_e
| 7,966
|
Infer types from lance blobs
|
{
"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_7966). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-27T18:00:25
| 2026-01-28T13:02:25
| 2026-01-28T13:02:23
|
MEMBER
| null | null | null | null |
Ex: infer Video() type in https://huggingface.co/datasets/lance-format/openvid-lance and Image() type in https://huggingface.co/datasets/lance-format/laion-1m
```python
from datasets import load_dataset
ds = load_dataset("lance-format/laion-1m", streaming=True, split="train")
print(ds.feature["image"])
# Image()
ds = load_dataset("lance-format/openvid-lance", streaming=True, split="train")
print(ds.feature["video_blob"])
# Video()
```
|
{
"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/7966/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/7966/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7966",
"html_url": "https://github.com/huggingface/datasets/pull/7966",
"diff_url": "https://github.com/huggingface/datasets/pull/7966.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7966.patch",
"merged_at": "2026-01-28T13:02:22"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7965
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7965/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7965/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7965/events
|
https://github.com/huggingface/datasets/issues/7965
| 3,858,483,549
|
I_kwDODunzps7l-8ld
| 7,965
|
`huggingface_hub.errors.HfHubHTTPError: 404 Client Error: Not Found for url` when fetching a dataset with `datasets.load_dataset`
|
{
"login": "harupy",
"id": 17039389,
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harupy",
"html_url": "https://github.com/harupy",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"repos_url": "https://api.github.com/users/harupy/repos",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[
"Hi ! Yes you should use `cornell-movie-review-data/rotten_tomatoes` instead of `rotten_tomatoes`, which is the legacy name. Those datasets have been moved under their actual owners accounts some time ago (but we were keeping the old names as aliases)\n\nSome other impacted names are:\n- `imdb` -> `stanfordnlp/imdb`\n- `wikitext` -> `Salesforce/wikitext`\n- `gsm8k` -> `openai/gsm8k`\n- `winogrande` -> `allenai/winogrande`\n\nWe're working on re-enabling them as aliases for backward compatibility. I'll post updates here, sorry for the inconvenience.\n\n**Using the actual name instead of the old legacy name is more future proof though**",
"Thanks for the heads up @lhoestq ! fyi, this change is likely breaking a lot of repos that have legacy names hardcoded ([example](https://github.com/allenai/olmes/pull/40)) Would be helpful to many to share this update in a more visible way if it is likely to persist for a while.",
"[internal tracking link](https://github.com/huggingface-internal/moon-landing/pull/16539)",
"@lhoestq Thanks for clarifying!",
"The aliases are re-enabled :)",
"Thanks!",
"Can I close this issue?",
"Yep :)"
] | 2026-01-27T02:20:31
| 2026-01-28T15:14:50
| 2026-01-28T15:14:50
|
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
Not a bug but a question. We started getting the following error:
https://github.com/mlflow/mlflow/actions/runs/21368603305/job/61506951617
```
ests/data/test_huggingface_dataset_and_source.py::test_from_huggingface_dataset_constructs_expected_dataset_with_revision - huggingface_hub.errors.HfHubHTTPError: 404 Client Error: Not Found for url: https://huggingface.co/api/datasets/rotten_tomatoes/revision/aa13bc287fa6fcab6daf52f0dfb9994269ffea28 (Request ID: Root=1-6977aeca-35bc2b5b605884926a9224d0;aa2391f3-26e8-4975-b9bb-114b2fa40223)
```
Adding a user id fixed the issue (https://github.com/mlflow/mlflow/pull/20350). `https://huggingface.co/api/datasets` no longer accepts a name-only path like `rotten_tomatoes`? Just wondering what changed. Thanks!
|
{
"login": "harupy",
"id": 17039389,
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harupy",
"html_url": "https://github.com/harupy",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"repos_url": "https://api.github.com/users/harupy/repos",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7965/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/7965/timeline
| null |
completed
| null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7964
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7964/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7964/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7964/events
|
https://github.com/huggingface/datasets/pull/7964
| 3,858,025,706
|
PR_kwDODunzps6_eOZR
| 7,964
|
handle blob lance
|
{
"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_7964). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-26T22:56:24
| 2026-01-26T22:59:18
| 2026-01-26T22:56:38
|
MEMBER
| null | null | null | null |
following #7913
|
{
"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/7964/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/7964/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7964",
"html_url": "https://github.com/huggingface/datasets/pull/7964",
"diff_url": "https://github.com/huggingface/datasets/pull/7964.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7964.patch",
"merged_at": "2026-01-26T22:56:38"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7963
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7963/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7963/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7963/events
|
https://github.com/huggingface/datasets/pull/7963
| 3,856,921,322
|
PR_kwDODunzps6_ajTD
| 7,963
|
Support null in json string cols
|
{
"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_7963). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-26T17:31:55
| 2026-01-26T17:48:46
| 2026-01-26T17:48:44
|
MEMBER
| null | null | null | null |
fix for https://huggingface.co/datasets/arcprize/arc_agi_v2_public_eval
|
{
"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/7963/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/7963/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7963",
"html_url": "https://github.com/huggingface/datasets/pull/7963",
"diff_url": "https://github.com/huggingface/datasets/pull/7963.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7963.patch",
"merged_at": "2026-01-26T17:48:44"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7962
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7962/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7962/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7962/events
|
https://github.com/huggingface/datasets/pull/7962
| 3,856,811,005
|
PR_kwDODunzps6_aM71
| 7,962
|
Use Sequence instead of list in Dataset.from_parquet type hints
|
{
"login": "Mukundtimbadiya20",
"id": 142491113,
"node_id": "U_kgDOCH496Q",
"avatar_url": "https://avatars.githubusercontent.com/u/142491113?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mukundtimbadiya20",
"html_url": "https://github.com/Mukundtimbadiya20",
"followers_url": "https://api.github.com/users/Mukundtimbadiya20/followers",
"following_url": "https://api.github.com/users/Mukundtimbadiya20/following{/other_user}",
"gists_url": "https://api.github.com/users/Mukundtimbadiya20/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mukundtimbadiya20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mukundtimbadiya20/subscriptions",
"organizations_url": "https://api.github.com/users/Mukundtimbadiya20/orgs",
"repos_url": "https://api.github.com/users/Mukundtimbadiya20/repos",
"events_url": "https://api.github.com/users/Mukundtimbadiya20/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mukundtimbadiya20/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[
"Thank you for the review!\r\n\r\nIβve updated the implementation to:\r\n- Use Sequence from collections.abc as per project conventions\r\n- Restore backward compatibility with Union[PathLike, Sequence[PathLike]]\r\n- Keep the columns annotation as Optional[Sequence[str]]\r\n\r\nThe fixes are pushed. Please let me know if anything else is needed.\r\n\r\n"
] | 2026-01-26T17:01:47
| 2026-02-04T06:47:52
| null |
NONE
| null | null | null | null |
This PR updates type annotations in Dataset.from_parquet to use Sequence instead of list to avoid mypy invariant type issues, as discussed in issue #5354.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7962/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/7962/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7962",
"html_url": "https://github.com/huggingface/datasets/pull/7962",
"diff_url": "https://github.com/huggingface/datasets/pull/7962.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7962.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7961
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7961/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7961/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7961/events
|
https://github.com/huggingface/datasets/pull/7961
| 3,847,883,164
|
PR_kwDODunzps6-9GHz
| 7,961
|
Revert "feat: avoid some copies in torch formatter (#7787)"
|
{
"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_7961). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-23T15:13:01
| 2026-01-23T15:16:01
| 2026-01-23T15:15:33
|
MEMBER
| null | null | null | null |
This reverts commit c412a6f5a50955e141c5169bf7abe005d10228d2 (I assume it was ai generated which makes it hard for me to review and make sure it doesn't have bad edge cases, but lmk if it wasn't, anyways it didn't take into account the torch kwargs which are responsible for sending the data to the correct device)
|
{
"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/7961/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/7961/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7961",
"html_url": "https://github.com/huggingface/datasets/pull/7961",
"diff_url": "https://github.com/huggingface/datasets/pull/7961.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7961.patch",
"merged_at": "2026-01-23T15:15:33"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7960
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7960/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7960/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7960/events
|
https://github.com/huggingface/datasets/pull/7960
| 3,847,601,199
|
PR_kwDODunzps6-8Iak
| 7,960
|
docs: fix grammar and add type hints in splits.py
|
{
"login": "Edge-Explorer",
"id": 192764477,
"node_id": "U_kgDOC31aPQ",
"avatar_url": "https://avatars.githubusercontent.com/u/192764477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Edge-Explorer",
"html_url": "https://github.com/Edge-Explorer",
"followers_url": "https://api.github.com/users/Edge-Explorer/followers",
"following_url": "https://api.github.com/users/Edge-Explorer/following{/other_user}",
"gists_url": "https://api.github.com/users/Edge-Explorer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Edge-Explorer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Edge-Explorer/subscriptions",
"organizations_url": "https://api.github.com/users/Edge-Explorer/orgs",
"repos_url": "https://api.github.com/users/Edge-Explorer/repos",
"events_url": "https://api.github.com/users/Edge-Explorer/events{/privacy}",
"received_events_url": "https://api.github.com/users/Edge-Explorer/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2026-01-23T14:05:12
| 2026-01-30T05:14:00
| 2026-01-23T16:04:41
|
CONTRIBUTOR
| null | null | null | null |
This PR improves the documentation in
src/datasets/splits.py
by:
Fixing pluralization/grammar errors in docstrings (Lines 62, 73, 403).
Adding Python type hints to the
NamedSplit
constructor for better code quality.
Verified with ruff format and ruff check.
|
{
"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/7960/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/7960/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7960",
"html_url": "https://github.com/huggingface/datasets/pull/7960",
"diff_url": "https://github.com/huggingface/datasets/pull/7960.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7960.patch",
"merged_at": "2026-01-23T16:04:40"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7959
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7959/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7959/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7959/events
|
https://github.com/huggingface/datasets/pull/7959
| 3,847,579,785
|
PR_kwDODunzps6-8DsQ
| 7,959
|
docs: fix typo in arrow_dataset.py comment
|
{
"login": "Edge-Explorer",
"id": 192764477,
"node_id": "U_kgDOC31aPQ",
"avatar_url": "https://avatars.githubusercontent.com/u/192764477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Edge-Explorer",
"html_url": "https://github.com/Edge-Explorer",
"followers_url": "https://api.github.com/users/Edge-Explorer/followers",
"following_url": "https://api.github.com/users/Edge-Explorer/following{/other_user}",
"gists_url": "https://api.github.com/users/Edge-Explorer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Edge-Explorer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Edge-Explorer/subscriptions",
"organizations_url": "https://api.github.com/users/Edge-Explorer/orgs",
"repos_url": "https://api.github.com/users/Edge-Explorer/repos",
"events_url": "https://api.github.com/users/Edge-Explorer/events{/privacy}",
"received_events_url": "https://api.github.com/users/Edge-Explorer/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2026-01-23T14:00:08
| 2026-01-23T14:14:57
| 2026-01-23T14:14:57
|
CONTRIBUTOR
| null | null | null | null | null |
{
"login": "Edge-Explorer",
"id": 192764477,
"node_id": "U_kgDOC31aPQ",
"avatar_url": "https://avatars.githubusercontent.com/u/192764477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Edge-Explorer",
"html_url": "https://github.com/Edge-Explorer",
"followers_url": "https://api.github.com/users/Edge-Explorer/followers",
"following_url": "https://api.github.com/users/Edge-Explorer/following{/other_user}",
"gists_url": "https://api.github.com/users/Edge-Explorer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Edge-Explorer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Edge-Explorer/subscriptions",
"organizations_url": "https://api.github.com/users/Edge-Explorer/orgs",
"repos_url": "https://api.github.com/users/Edge-Explorer/repos",
"events_url": "https://api.github.com/users/Edge-Explorer/events{/privacy}",
"received_events_url": "https://api.github.com/users/Edge-Explorer/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7959/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/7959/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7959",
"html_url": "https://github.com/huggingface/datasets/pull/7959",
"diff_url": "https://github.com/huggingface/datasets/pull/7959.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7959.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7958
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7958/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7958/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7958/events
|
https://github.com/huggingface/datasets/issues/7958
| 3,847,184,392
|
I_kwDODunzps7lT2AI
| 7,958
|
[CUDA Tensors Not working in ~v4.5.0] set_format(type="torch", device="cuda") returns cpu
|
{
"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 |
[
"@lhoestq tagging you here as you were on the previous issue, hope that's fine. ",
"Thanks for reporting, let me take a look",
"I reverted this change which caused the issue #7961 , I'll do a new release soon but in the meantime feel free to install `datasets` from source",
"@lhoestq thanks a lot. I am actually checking older versions of datasets and it seems that it doesn't work with 4.2.0 as well.\n\n(hopefully that's relevant)."
] | 2026-01-23T12:06:48
| 2026-01-25T05:30:53
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
The problem is that when calling:
```ds.set_format(type="torch", columns = ["input", "labels"], device="cuda")```
The device type of the individual datapoints is now: `cpu` as opposed to `cuda:0`.
With `v4.0.0` it still works. With `v4.5.0` it doesn't work anymore.
Related Issue:
https://github.com/huggingface/datasets/issues/1762
### Steps to reproduce the bug
Steps to reproduce the bug:
```
ds.set_format(type="torch", columns = ["input", "labels"], device="cuda")
print(ds["train"][0]["input"].device) #outputs cpu
```
The above should be `cuda:0`.
### Expected behavior
`set_format` should be able to move data to GPU.
### Environment info
datasets==4.5.0
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7958/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/7958/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7957
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7957/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7957/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7957/events
|
https://github.com/huggingface/datasets/pull/7957
| 3,839,573,271
|
PR_kwDODunzps6-hVW5
| 7,957
|
Fix all exhausted without replacement
|
{
"login": "ashmi8",
"id": 105732253,
"node_id": "U_kgDOBk1YnQ",
"avatar_url": "https://avatars.githubusercontent.com/u/105732253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashmi8",
"html_url": "https://github.com/ashmi8",
"followers_url": "https://api.github.com/users/ashmi8/followers",
"following_url": "https://api.github.com/users/ashmi8/following{/other_user}",
"gists_url": "https://api.github.com/users/ashmi8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashmi8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashmi8/subscriptions",
"organizations_url": "https://api.github.com/users/ashmi8/orgs",
"repos_url": "https://api.github.com/users/ashmi8/repos",
"events_url": "https://api.github.com/users/ashmi8/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashmi8/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[
"Hi maintainers π \r\nThis PR fixes `all_exhausted_without_replacement` to ensure all samples are emitted exactly once, \r\nand adds a regression test reproducing the reported issue.\r\n\r\nHappy to adjust the implementation or split changes if youβd prefer.\r\nThanks!\r\n",
"We just merged https://github.com/huggingface/datasets/pull/7955 which also fix the issue, thanks for investigating !\r\n\r\nI'm closing this one if you don't mind"
] | 2026-01-21T18:47:32
| 2026-01-23T16:09:28
| 2026-01-23T16:09:28
|
NONE
| null | null | null | null |
Fix interleave_datasets "all_exhausted_without_replacement" stopping strategy
- Corrected logic to ensure each sample is picked exactly once when using
stopping_strategy="all_exhausted_without_replacement".
- Adjusted boolean stopping condition to properly track dataset exhaustion.
- Added test to verify the last element is included as expected.
|
{
"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/7957/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/7957/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7957",
"html_url": "https://github.com/huggingface/datasets/pull/7957",
"diff_url": "https://github.com/huggingface/datasets/pull/7957.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7957.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7956
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7956/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7956/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7956/events
|
https://github.com/huggingface/datasets/issues/7956
| 3,839,082,498
|
I_kwDODunzps7k08AC
| 7,956
|
Is the 10k files / folder limit a hard limit for a dataset repo?
|
{
"login": "pavanramkumar",
"id": 3664715,
"node_id": "MDQ6VXNlcjM2NjQ3MTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/3664715?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pavanramkumar",
"html_url": "https://github.com/pavanramkumar",
"followers_url": "https://api.github.com/users/pavanramkumar/followers",
"following_url": "https://api.github.com/users/pavanramkumar/following{/other_user}",
"gists_url": "https://api.github.com/users/pavanramkumar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pavanramkumar/subscriptions",
"organizations_url": "https://api.github.com/users/pavanramkumar/orgs",
"repos_url": "https://api.github.com/users/pavanramkumar/repos",
"events_url": "https://api.github.com/users/pavanramkumar/events{/privacy}",
"received_events_url": "https://api.github.com/users/pavanramkumar/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 |
[
"Yes, that's a hard limit. Can you split your files into different folders? Or we'll probably have a new repo type in the near to mid future that will relax this limit a bit. ",
"Thanks! Working around this with a different sharding parameter to have fewer overall fragments (and therefore fewer files in `*.lance/data/` and `*.lance/_transactions/`"
] | 2026-01-21T16:37:38
| 2026-01-22T09:38:38
| null |
NONE
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Feature request
Can the hard limit of 10k files per folder be extended with acceptable loss in performance?
### Motivation
I'm uploading a lance dataset to huggingface hub and have a folder inside lance internals (`data/*.lance/_transactions`) that has > 20k atomic transaction records and my commits are being rejected.
```
Bad request for commit endpoint:
Your push was rejected because it contains too many files per directory. Each directory in your git repo can only contain up to 10000 files. Offending reference: refs/heads/main Offending directories: /data/expression.lance/_transactions/
```
### Your contribution
Open to suggestions for how to make a PR
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7956/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/7956/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7955
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7955/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7955/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7955/events
|
https://github.com/huggingface/datasets/pull/7955
| 3,837,083,395
|
PR_kwDODunzps6-Y-EL
| 7,955
|
Fix interleave_datasets with all_exhausted_without_replacement strategy
|
{
"login": "prathamk-tw",
"id": 205576963,
"node_id": "U_kgDODEDbAw",
"avatar_url": "https://avatars.githubusercontent.com/u/205576963?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/prathamk-tw",
"html_url": "https://github.com/prathamk-tw",
"followers_url": "https://api.github.com/users/prathamk-tw/followers",
"following_url": "https://api.github.com/users/prathamk-tw/following{/other_user}",
"gists_url": "https://api.github.com/users/prathamk-tw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/prathamk-tw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prathamk-tw/subscriptions",
"organizations_url": "https://api.github.com/users/prathamk-tw/orgs",
"repos_url": "https://api.github.com/users/prathamk-tw/repos",
"events_url": "https://api.github.com/users/prathamk-tw/events{/privacy}",
"received_events_url": "https://api.github.com/users/prathamk-tw/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_7955). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] | 2026-01-21T08:10:45
| 2026-01-24T02:55:56
| 2026-01-23T16:08:39
|
CONTRIBUTOR
| null | null | null | null |
When using interleave_datasets with stopping_strategy="all_exhausted_without_replacement" and probabilities=None, the function was incorrectly falling into the undersampling branch, causing it to stop at min(lengths) instead of continuing until all datasets were exhausted.
This fix adds a specific branch to handle the all_exhausted_without_replacement case when probabilities=None. The new logic cycles through all datasets round by round, adding elements from each dataset until all are exhausted, ensuring each element appears exactly once.
Example fix:
- Input: d1=[0,1,2], d2=[10,11,12,13], d3=[20,21,22]
- Before: [0, 10, 20, 1, 11, 21, 2, 12, 22]
- After: [0, 10, 20, 1, 11, 21, 2, 12, 22, 13]
π€ Generated with [Claude Code](https://claude.com/claude-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/7955/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/7955/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7955",
"html_url": "https://github.com/huggingface/datasets/pull/7955",
"diff_url": "https://github.com/huggingface/datasets/pull/7955.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7955.patch",
"merged_at": "2026-01-23T16:08:39"
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7954
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7954/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7954/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7954/events
|
https://github.com/huggingface/datasets/issues/7954
| 3,837,020,089
|
I_kwDODunzps7ktEe5
| 7,954
|
all_exhausted_without_replacement working same as first_exhausted
|
{
"login": "prathamk-tw",
"id": 205576963,
"node_id": "U_kgDODEDbAw",
"avatar_url": "https://avatars.githubusercontent.com/u/205576963?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/prathamk-tw",
"html_url": "https://github.com/prathamk-tw",
"followers_url": "https://api.github.com/users/prathamk-tw/followers",
"following_url": "https://api.github.com/users/prathamk-tw/following{/other_user}",
"gists_url": "https://api.github.com/users/prathamk-tw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/prathamk-tw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prathamk-tw/subscriptions",
"organizations_url": "https://api.github.com/users/prathamk-tw/orgs",
"repos_url": "https://api.github.com/users/prathamk-tw/repos",
"events_url": "https://api.github.com/users/prathamk-tw/events{/privacy}",
"received_events_url": "https://api.github.com/users/prathamk-tw/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[
"https://github.com/huggingface/datasets/pull/7955"
] | 2026-01-21T07:50:31
| 2026-01-21T08:13:00
| null |
CONTRIBUTOR
| null | null |
{
"total": 0,
"completed": 0,
"percent_completed": 0
}
|
{
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
}
|
### Describe the bug
>>> from datasets import Dataset, interleave_datasets
>>> d1 = Dataset.from_dict({"a": [0, 1, 2]})
>>> d2 = Dataset.from_dict({"a": [10, 11, 12, 13]})
>>> d3 = Dataset.from_dict({"a": [20, 21, 22]})
>>> dataset = interleave_datasets([d1, d2, d3], stopping_strategy="all_exhausted_without_replacement")
>>> dataset["a"][:100]
[0, 10, 20, 1, 11, 21, 2, 12, 22]
expected output: [0, 10, 20, 1, 11, 21, 2, 12, 22,13]
datasets version 4.5.0
### Steps to reproduce the bug
>>> from datasets import Dataset, interleave_datasets
>>> d1 = Dataset.from_dict({"a": [0, 1, 2]})
>>> d2 = Dataset.from_dict({"a": [10, 11, 12, 13]})
>>> d3 = Dataset.from_dict({"a": [20, 21, 22]})
>>> dataset = interleave_datasets([d1, d2, d3], stopping_strategy="all_exhausted_without_replacement")
>>> dataset["a"][:100]
### Expected behavior
[0, 10, 20, 1, 11, 21, 2, 12, 22,13]
### Environment info
datasets version 4.5.0
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7954/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/7954/timeline
| null | null | null | null | false
|
https://api.github.com/repos/huggingface/datasets/issues/7953
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7953/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7953/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7953/events
|
https://github.com/huggingface/datasets/pull/7953
| 3,831,099,841
|
PR_kwDODunzps6-FI-G
| 7,953
|
#5354: replace list with Sequence in from_parquet type hints
|
{
"login": "ashmi8",
"id": 105732253,
"node_id": "U_kgDOBk1YnQ",
"avatar_url": "https://avatars.githubusercontent.com/u/105732253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashmi8",
"html_url": "https://github.com/ashmi8",
"followers_url": "https://api.github.com/users/ashmi8/followers",
"following_url": "https://api.github.com/users/ashmi8/following{/other_user}",
"gists_url": "https://api.github.com/users/ashmi8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashmi8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashmi8/subscriptions",
"organizations_url": "https://api.github.com/users/ashmi8/orgs",
"repos_url": "https://api.github.com/users/ashmi8/repos",
"events_url": "https://api.github.com/users/ashmi8/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashmi8/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
open
| false
| null |
[] | null |
[] | 2026-01-19T20:24:10
| 2026-01-20T10:20:33
| null |
NONE
| null | null | null | null |
\This PR replaces `list` type hints with `Sequence` in `from_parquet` to improve type checking.
Note: Local pytest errors on Python 3.13 due to removal of `distutils` are unrelated to this change.
| null |
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7953/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/7953/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7953",
"html_url": "https://github.com/huggingface/datasets/pull/7953",
"diff_url": "https://github.com/huggingface/datasets/pull/7953.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7953.patch",
"merged_at": null
}
| true
|
https://api.github.com/repos/huggingface/datasets/issues/7952
|
https://api.github.com/repos/huggingface/datasets
|
https://api.github.com/repos/huggingface/datasets/issues/7952/labels{/name}
|
https://api.github.com/repos/huggingface/datasets/issues/7952/comments
|
https://api.github.com/repos/huggingface/datasets/issues/7952/events
|
https://github.com/huggingface/datasets/pull/7952
| 3,831,024,005
|
PR_kwDODunzps6-E4dA
| 7,952
|
Fix #5354: replace list with Sequence in from_parquet type hints
|
{
"login": "ashmi8",
"id": 105732253,
"node_id": "U_kgDOBk1YnQ",
"avatar_url": "https://avatars.githubusercontent.com/u/105732253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashmi8",
"html_url": "https://github.com/ashmi8",
"followers_url": "https://api.github.com/users/ashmi8/followers",
"following_url": "https://api.github.com/users/ashmi8/following{/other_user}",
"gists_url": "https://api.github.com/users/ashmi8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashmi8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashmi8/subscriptions",
"organizations_url": "https://api.github.com/users/ashmi8/orgs",
"repos_url": "https://api.github.com/users/ashmi8/repos",
"events_url": "https://api.github.com/users/ashmi8/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashmi8/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
[] |
closed
| false
| null |
[] | null |
[] | 2026-01-19T19:57:55
| 2026-01-19T20:15:35
| 2026-01-19T20:15:35
|
NONE
| null | null | null | null |
This PR replaces `list` type hints with `Sequence` in `from_parquet` to improve type checking.
Note: Local pytest errors on Python 3.13 due to removal of `distutils` are unrelated to this change.
|
{
"login": "ashmi8",
"id": 105732253,
"node_id": "U_kgDOBk1YnQ",
"avatar_url": "https://avatars.githubusercontent.com/u/105732253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashmi8",
"html_url": "https://github.com/ashmi8",
"followers_url": "https://api.github.com/users/ashmi8/followers",
"following_url": "https://api.github.com/users/ashmi8/following{/other_user}",
"gists_url": "https://api.github.com/users/ashmi8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashmi8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashmi8/subscriptions",
"organizations_url": "https://api.github.com/users/ashmi8/orgs",
"repos_url": "https://api.github.com/users/ashmi8/repos",
"events_url": "https://api.github.com/users/ashmi8/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashmi8/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
|
{
"url": "https://api.github.com/repos/huggingface/datasets/issues/7952/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/7952/timeline
| null | null | false
|
{
"url": "https://api.github.com/repos/huggingface/datasets/pulls/7952",
"html_url": "https://github.com/huggingface/datasets/pull/7952",
"diff_url": "https://github.com/huggingface/datasets/pull/7952.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/7952.patch",
"merged_at": null
}
| true
|
A curated dataset of GitHub issues and pull requests with rich metadata including comments, labels, reactions, assignees, and timeline information. Ideal for training models on software engineering tasks, issue classification, triage automation, and developer behavior analysis.
| Property | Value |
|---|---|
| Examples | 1,000 issues/PRs |
| Source | GitHub API (v3) |
| Domains | Open-source software repositories |
| Languages | Primarily English |
| Date Range | Collected in 2024β2025 |
| Avg. Length | ~1,200 characters per issue body |
+1, -1, π, β€οΈ, etc.)is_pull_request flag)blocked_by / blocking relationships)| Field | Type | Description |
|---|---|---|
url |
string |
API URL of the issue |
html_url |
string |
GitHub web URL |
id / node_id |
int64 / string |
GitHub identifiers |
number |
int64 |
Issue number within repository |
title |
string |
Issue title |
body |
string |
Full issue description (Markdown) |
state |
string |
open | closed |
state_reason |
string |
Reason for closure (completed, not_planned, etc.) |
locked |
bool |
Whether conversation is locked |
draft |
bool |
Whether issue is a draft |
is_pull_request |
bool |
True if this is a PR (not a regular issue) |
created_at / updated_at / closed_at |
timestamp |
Lifecycle timestamps |
author_association |
string |
Author's relationship to repo (OWNER, MEMBER, CONTRIBUTOR, etc.) |
| Field | Structure | Key Subfields |
|---|---|---|
user |
struct |
login, id, type (User/Bot), site_admin |
assignee / assignees |
struct / list |
GitHub user profiles of assignees |
closed_by |
struct |
User who closed the issue |
labels |
list |
name, color, description, default |
comments |
list<string> |
Full comment texts in chronological order |
reactions |
struct |
total_count, +1, -1, heart, rocket, eyes, etc. |
pull_request |
struct |
PR-specific fields (merged_at, diff/patch URLs) |
sub_issues_summary |
struct |
total, completed, percent_completed |
issue_dependencies_summary |
struct |
blocked_by, blocking counts |
π‘ Note: Fields like
milestone,type, andperformed_via_github_appmay containnullvalues for issues where these features aren't used.
from datasets import load_dataset
# Load the full dataset
dataset = load_dataset("Ruslan10/github-issues")
# Access the training split
train_data = dataset["train"]
# Example: Get first issue's title and body
print(train_data[0]["title"])
print(train_data[0]["body"][:200] + "...") # Preview first 200 chars
# Separate PRs from regular issues
pull_requests = [ex for ex in train_data if ex["is_pull_request"]]
regular_issues = [ex for ex in train_data if not ex["is_pull_request"]]
print(f"PRs: {len(pull_requests)}, Issues: {len(regular_issues)}")
from collections import Counter
all_labels = []
for issue in train_data:
for label in issue["labels"]:
all_labels.append(label["name"])
label_counts = Counter(all_labels).most_common(10)
print("Top 10 labels:", label_counts)
# Get all comments for a specific issue
issue = train_data[42]
for i, comment in enumerate(issue["comments"]):
print(f"Comment {i+1}: {comment[:100]}...") # Preview
| Aspect | Note |
|---|---|
| Bias | Reflects patterns of active OSS projects; may underrepresent niche ecosystems |
| Privacy | All data is from public GitHub repositories (no private data included) |
| Language | Primarily English; limited multilingual support |
| Temporal Scope | Snapshot from collection period; doesn't reflect real-time GitHub state |
| Rate Limits | Original collection respected GitHub API rate limits |
βΉοΈ This dataset contains only publicly available information. All rights to original content remain with issue authors and repository owners.
If you use this dataset in your research, please cite:
@dataset{github_issues_2025,
author = {Ruslan Prashchurovich},
title = {GitHub Issues Dataset},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face Datasets},
url = {https://huggingface.co/datasets/your-username/github-issues}
}