url
string
repository_url
string
labels_url
string
comments_url
string
events_url
string
html_url
string
id
int64
node_id
string
number
int64
title
string
user
dict
labels
list
state
string
locked
bool
assignee
dict
assignees
list
milestone
dict
comments
list
created_at
timestamp[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/7905
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7905/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7905/comments
https://api.github.com/repos/huggingface/datasets/issues/7905/events
https://github.com/huggingface/datasets/issues/7905
3,734,233,245
I_kwDODunzps7ek-Cd
7,905
Unbounded network usage when opening Data Studio
{ "login": "alizaredornica-sys", "id": 225014457, "node_id": "U_kgDODWlyuQ", "avatar_url": "https://avatars.githubusercontent.com/u/225014457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alizaredornica-sys", "html_url": "https://github.com/alizaredornica-sys", "followers_url": "https://api.github.com/users/alizaredornica-sys/followers", "following_url": "https://api.github.com/users/alizaredornica-sys/following{/other_user}", "gists_url": "https://api.github.com/users/alizaredornica-sys/gists{/gist_id}", "starred_url": "https://api.github.com/users/alizaredornica-sys/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alizaredornica-sys/subscriptions", "organizations_url": "https://api.github.com/users/alizaredornica-sys/orgs", "repos_url": "https://api.github.com/users/alizaredornica-sys/repos", "events_url": "https://api.github.com/users/alizaredornica-sys/events{/privacy}", "received_events_url": "https://api.github.com/users/alizaredornica-sys/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-12-16T10:45:02
2025-12-16T10:45:02
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 Opening the Data Studio tab on a dataset page triggers continuous and unbounded network traffic. This issue occurs across multiple browsers and continues even without user interaction. ### Steps to reproduce the bug https://huggingface.co/datasets/slone/nllb-200-10M-sample/viewer ### Expected behavior Data Studio should load a limited, finite amount of data and stop further network activity unless explicitly requested by the user. ### Environment info - OS: Windows 10 - Browsers: Chrome, Firefox, Edge - Device: Desktop - Network: Standard broadband connection
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7905/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/7905/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7904
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7904/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7904/comments
https://api.github.com/repos/huggingface/datasets/issues/7904/events
https://github.com/huggingface/datasets/issues/7904
3,727,978,498
I_kwDODunzps7eNHAC
7,904
Request: Review pending neuroimaging PRs (#7886 BIDS loader, #7887 lazy loading)
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! sure I'll be happy to take a look, sorry for the delay :)" ]
2025-12-14T20:34:31
2025-12-15T11:25:29
null
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
## Summary I'm building production neuroimaging pipelines that depend on `datasets` and would benefit greatly from two pending PRs being reviewed/merged. ## Pending PRs | PR | Description | Status | Open Since | |----|-------------|--------|------------| | [#7886](https://github.com/huggingface/datasets/pull/7886) | BIDS dataset loader | Open | Nov 29 | | [#7887](https://github.com/huggingface/datasets/pull/7887) | Lazy loading for NIfTI | Open | Nov 29 | ## Use Case The neuroimaging community uses the BIDS (Brain Imaging Data Structure) standard for organizing MRI/fMRI data. These PRs would enable: 1. **#7886**: `load_dataset('bids', data_dir='/path/to/bids')` - Load local BIDS directories directly 2. **#7887**: Memory-efficient NIfTI handling (single 4D fMRI file can be 1-2GB) ## Current Workaround Without these, users must either: - Upload to Hub first, then consume (works but slow iteration) - Hand-roll BIDS parsing (duplicates effort) ## Request Could a maintainer review these PRs? Happy to address any feedback. The BIDS loader has tests passing and was end-to-end tested with real OpenNeuro data. Thank you for the great work on `Nifti()` support - these PRs build on that foundation. ## Related - Contributes to #7804 (Support scientific data formats) - Built on @TobiasPitters's Nifti feature work
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7904/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/7904/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7903
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7903/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7903/comments
https://api.github.com/repos/huggingface/datasets/issues/7903/events
https://github.com/huggingface/datasets/pull/7903
3,723,395,305
PR_kwDODunzps64kO0d
7,903
Docs: add minimal usage example to dataset card guidelines
{ "login": "an-enigma", "id": 44645629, "node_id": "MDQ6VXNlcjQ0NjQ1NjI5", "avatar_url": "https://avatars.githubusercontent.com/u/44645629?v=4", "gravatar_id": "", "url": "https://api.github.com/users/an-enigma", "html_url": "https://github.com/an-enigma", "followers_url": "https://api.github.com/users/an-enigma/followers", "following_url": "https://api.github.com/users/an-enigma/following{/other_user}", "gists_url": "https://api.github.com/users/an-enigma/gists{/gist_id}", "starred_url": "https://api.github.com/users/an-enigma/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/an-enigma/subscriptions", "organizations_url": "https://api.github.com/users/an-enigma/orgs", "repos_url": "https://api.github.com/users/an-enigma/repos", "events_url": "https://api.github.com/users/an-enigma/events{/privacy}", "received_events_url": "https://api.github.com/users/an-enigma/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-12-12T13:16:46
2025-12-12T13:16:46
null
NONE
null
null
null
null
Adds a short, minimal load_dataset example to the dataset card documentation to help first-time users quickly load and inspect datasets.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7903/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/7903/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7903", "html_url": "https://github.com/huggingface/datasets/pull/7903", "diff_url": "https://github.com/huggingface/datasets/pull/7903.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7903.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7902
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7902/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7902/comments
https://api.github.com/repos/huggingface/datasets/issues/7902/events
https://github.com/huggingface/datasets/issues/7902
3,723,281,150
I_kwDODunzps7d7ML-
7,902
The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`.
{ "login": "HQF2017", "id": 32055029, "node_id": "MDQ6VXNlcjMyMDU1MDI5", "avatar_url": "https://avatars.githubusercontent.com/u/32055029?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HQF2017", "html_url": "https://github.com/HQF2017", "followers_url": "https://api.github.com/users/HQF2017/followers", "following_url": "https://api.github.com/users/HQF2017/following{/other_user}", "gists_url": "https://api.github.com/users/HQF2017/gists{/gist_id}", "starred_url": "https://api.github.com/users/HQF2017/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HQF2017/subscriptions", "organizations_url": "https://api.github.com/users/HQF2017/orgs", "repos_url": "https://api.github.com/users/HQF2017/repos", "events_url": "https://api.github.com/users/HQF2017/events{/privacy}", "received_events_url": "https://api.github.com/users/HQF2017/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
[ "Memory mapping is actually the way for processes to share memory efficiently and without copy. It is efficient when on are using a local disk, and it's discouraged to use it on remote disk for the reasons you observed.\n\nWhat you can do instead is save the dataset as Parquet on your remote storage (or on Hugging ...
2025-12-12T12:37:44
2025-12-15T11:48:16
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 The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`. ### Motivation Because my local disk space is insufficient, I can only store a dataset on a remote Ceph server and process it using datasets. I used the data-juicer[https://github.com/datajuicer/data-juicer] framework as an outer layer which uses datasets, but it doesn't support streaming datasets. I then encountered a problem: for each load, map, and filter operation, I had to wait for a large number of child processes to execute `memory_mapped_arrow_table_from_file`. Since the actual file was on the remote Ceph server, this operation was limited by network I/O. I don't know if it's a problem with my usage or if this is how datasets are currently designed.However, I think that if the instances obtained after datasets.load_datasets are directly passed to the child process instead of re-executing `memory_mapped_arrow_table_from_file`, it might solve my problem.Or datasets already support this capability, but I just didn't know it? ### Your contribution 。。。
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7902/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/7902/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7901
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7901/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7901/comments
https://api.github.com/repos/huggingface/datasets/issues/7901/events
https://github.com/huggingface/datasets/issues/7901
3,722,243,543
I_kwDODunzps7d3O3X
7,901
ShuffledDataSourcesArrowExamplesIterable cannot properly resume from checkpoint
{ "login": "howitry", "id": 61858900, "node_id": "MDQ6VXNlcjYxODU4OTAw", "avatar_url": "https://avatars.githubusercontent.com/u/61858900?v=4", "gravatar_id": "", "url": "https://api.github.com/users/howitry", "html_url": "https://github.com/howitry", "followers_url": "https://api.github.com/users/howitry/followers", "following_url": "https://api.github.com/users/howitry/following{/other_user}", "gists_url": "https://api.github.com/users/howitry/gists{/gist_id}", "starred_url": "https://api.github.com/users/howitry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/howitry/subscriptions", "organizations_url": "https://api.github.com/users/howitry/orgs", "repos_url": "https://api.github.com/users/howitry/repos", "events_url": "https://api.github.com/users/howitry/events{/privacy}", "received_events_url": "https://api.github.com/users/howitry/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! As you can read in the logs, the shuffle buffer content is lost when resuming a shuffled dataset. The default size is 1000 examples, but you can tweak it\n\ne.g. if you run your code with this\n\n```diff\n- ds = Dataset.from_dict({\"a\": range(12)}).to_iterable_dataset(num_shards=1)\n- ds = ds.shuffle(seed=42...
2025-12-12T06:57:32
2025-12-16T19:34:46
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 ShuffledDataSourcesArrowExamplesIterable cannot properly resume from checkpoint ### Steps to reproduce the bug 1. The reproducible code is as follows: ``` from datasets import Dataset, concatenate_datasets, interleave_datasets ds = Dataset.from_dict({"a": range(12)}).to_iterable_dataset(num_shards=1) ds = ds.shuffle(seed=42) for idx, example in enumerate(ds): print(example) if idx == 2: #The checkpoint can be loaded correctly only when idx <= 1. state_dict = ds.state_dict() print("checkpoint") break print("state_dict: ",state_dict) ds.load_state_dict(state_dict) print(f"restart from checkpoint") for example in ds: print(example) ``` 2. The error message is as follows: ``` {'a': 0} {'a': 7} {'a': 6} checkpoint state_dict: {'examples_iterable': {'examples_iterable': {'examples_iterable': {'shard_idx': 1, 'shard_example_idx': 0, 'type': 'ShuffledDataSourcesArrowExamplesIterable'}, 'previous_state': {'shard_idx': 0, 'shard_example_idx': 0, 'type': 'ShuffledDataSourcesArrowExamplesIterable'}, 'batch_idx': 12, 'num_chunks_since_previous_state': 12, 'cropped_chunk_length': 0, 'type': 'RebatchedArrowExamplesIterable'}, 'previous_state': {'examples_iterable': {'shard_idx': 1, 'shard_example_idx': 0, 'type': 'ShuffledDataSourcesArrowExamplesIterable'}, 'previous_state': {'shard_idx': 0, 'shard_example_idx': 0, 'type': 'ShuffledDataSourcesArrowExamplesIterable'}, 'batch_idx': 12, 'num_chunks_since_previous_state': 12, 'cropped_chunk_length': 0, 'type': 'RebatchedArrowExamplesIterable'}, 'batch_idx': 3, 'num_chunks_since_previous_state': 2, 'cropped_chunk_length': 0, 'type': 'RebatchedArrowExamplesIterable'}, 'epoch': 0} restart from checkpoint Loading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples. ``` ### Expected behavior I want a correct resume from any checkpoint, but currently the checkpoint can only be loaded correctly when idx <= 1. ### Environment info datasets Version: 4.4.1 @lhoestq
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7901/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/7901/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7900
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7900/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7900/comments
https://api.github.com/repos/huggingface/datasets/issues/7900/events
https://github.com/huggingface/datasets/issues/7900
3,711,751,590
I_kwDODunzps7dPNWm
7,900
`Permission denied` when sharing cache between users
{ "login": "qthequartermasterman", "id": 19497738, "node_id": "MDQ6VXNlcjE5NDk3NzM4", "avatar_url": "https://avatars.githubusercontent.com/u/19497738?v=4", "gravatar_id": "", "url": "https://api.github.com/users/qthequartermasterman", "html_url": "https://github.com/qthequartermasterman", "followers_url": "https://api.github.com/users/qthequartermasterman/followers", "following_url": "https://api.github.com/users/qthequartermasterman/following{/other_user}", "gists_url": "https://api.github.com/users/qthequartermasterman/gists{/gist_id}", "starred_url": "https://api.github.com/users/qthequartermasterman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qthequartermasterman/subscriptions", "organizations_url": "https://api.github.com/users/qthequartermasterman/orgs", "repos_url": "https://api.github.com/users/qthequartermasterman/repos", "events_url": "https://api.github.com/users/qthequartermasterman/events{/privacy}", "received_events_url": "https://api.github.com/users/qthequartermasterman/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "I remember a fix from last year to usr the current umask for filelock 3.10.0, which filelock version are you using ? can you try another version ?", "I believe we we are using `filelock==3.19.1`. Do you have a recommended version to use?" ]
2025-12-09T16:41:47
2025-12-16T15:39:06
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 We want to use `datasets` and `transformers` on a shared machine. Right now, each user has a separate HF_HOME in their home directory. To reduce duplicates of the datasets, we want to share that cache. While experimenting, we are running into `Permission denied` errors. It looks like this was supported in the past (see #6589)? Is there a correct way to share caches across users? ### Steps to reproduce the bug 1. Create a directory `/models/hf_hub_shared_experiment` with read/write permissions for two different users 2. For each user run the script below ```python import os os.environ["HF_HOME"] = "/models/hf_hub_shared_experiment" os.environ["HF_DATASETS_CACHE"] = "/models/hf_hub_shared_experiment/data" import datasets import transformers DATASET = "tatsu-lab/alpaca" MODEL = "meta-llama/Llama-3.2-1B-Instruct" model = transformers.AutoModelForCausalLM.from_pretrained(MODEL) tokenizer = transformers.AutoTokenizer.from_pretrained(MODEL) dataset = datasets.load_dataset(DATASET) ``` The first user is able to download and use the model and dataset. The second user gets these errors: ``` $ python ./experiment_with_shared.py Could not cache non-existence of file. Will ignore error and continue. Error: [Errno 13] Permission denied: '/models/hf_hub_shared_experiment/hub/models--meta-llama--Llama-3.2-1B-Instruct/.no_exist/9213176726f574b556790deb65791e0c5aa438b6/custom_generate/generate.py' Could not cache non-existence of file. Will ignore error and continue. Error: [Errno 13] Permission denied: '/models/hf_hub_shared_experiment/hub/datasets--tatsu-lab--alpaca/.no_exist/dce01c9b08f87459cf36a430d809084718273017/alpaca.py' Could not cache non-existence of file. Will ignore error and continue. Error: [Errno 13] Permission denied: '/models/hf_hub_shared_experiment/hub/datasets--tatsu-lab--alpaca/.no_exist/dce01c9b08f87459cf36a430d809084718273017/.huggingface.yaml' Could not cache non-existence of file. Will ignore error and continue. Error: [Errno 13] Permission denied: '/models/hf_hub_shared_experiment/hub/datasets--tatsu-lab--alpaca/.no_exist/dce01c9b08f87459cf36a430d809084718273017/dataset_infos.json' Traceback (most recent call last): File "/home/user2/.venv/experiment_with_shared.py", line 17, in <module> dataset = datasets.load_dataset(DATASET) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user2/.venv/lib/python3.12/site-packages/datasets/load.py", line 1397, in load_dataset builder_instance = load_dataset_builder( ^^^^^^^^^^^^^^^^^^^^^ File "/home/user2/.venv/lib/python3.12/site-packages/datasets/load.py", line 1171, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( ^^^^^^^^^^^^ File "/home/user2/.venv/lib/python3.12/site-packages/datasets/builder.py", line 390, in __init__ with FileLock(lock_path): File "/home/user2/.venv/lib/python3.12/site-packages/filelock/_api.py", line 377, in __enter__ self.acquire() File "/home/user2/.venv/lib/python3.12/site-packages/filelock/_api.py", line 333, in acquire self._acquire() File "/home/user2/.venv/lib/python3.12/site-packages/filelock/_unix.py", line 45, in _acquire fd = os.open(self.lock_file, open_flags, self._context.mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/models/hf_hub_shared_experiment/data/_models_hf_hub_shared_experiment_data_tatsu-lab___alpaca_default_0.0.0_dce01c9b08f87459cf36a430d809084718273017.lock' ``` ### Expected behavior The second user should be able to read the shared cache files. ### Environment info $ datasets-cli env - `datasets` version: 4.4.1 - Platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 - Python version: 3.12.3 - `huggingface_hub` version: 0.36.0 - PyArrow version: 22.0.0 - Pandas version: 2.3.3 - `fsspec` version: 2025.10.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7900/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7900/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7899
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7899/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7899/comments
https://api.github.com/repos/huggingface/datasets/issues/7899/events
https://github.com/huggingface/datasets/pull/7899
3,707,063,236
PR_kwDODunzps63t1LS
7,899
Add inspect_ai eval logs support
{ "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_7899). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Very cool! \r\n\r\nAny reason not to directly use inspect for loading/converting from t...
2025-12-08T16:14:40
2025-12-09T14:45:15
2025-12-09T14:45:13
MEMBER
null
null
null
null
Support for .eval log files from inspect_ai They are actually ZIP files according to the source code at https://github.com/UKGovernmentBEIS/inspect_ai/blob/main/src/inspect_ai/log/_log.py Unfortunately their format can't be converted to Parquet, so I had to JSON-encode all the nested values ```python ds = load_dataset("dvilasuero/kimi-bfcl") ``` this will enable the Viewer for datasets like https://huggingface.co/datasets/dvilasuero/kimi-bfcl original tweet for context: https://x.com/dvilasuero/status/1996936988176343220?s=20 cc @dvsrepo @julien-c @davanstrien
{ "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/7899/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7899/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7899", "html_url": "https://github.com/huggingface/datasets/pull/7899", "diff_url": "https://github.com/huggingface/datasets/pull/7899.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7899.patch", "merged_at": "2025-12-09T14:45:13" }
true
https://api.github.com/repos/huggingface/datasets/issues/7898
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7898/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7898/comments
https://api.github.com/repos/huggingface/datasets/issues/7898/events
https://github.com/huggingface/datasets/pull/7898
3,698,376,429
PR_kwDODunzps63Q9BO
7,898
docs: making PyPi to PyPI ensuring no spelling errors
{ "login": "kapoor1309", "id": 152784163, "node_id": "U_kgDOCRtNIw", "avatar_url": "https://avatars.githubusercontent.com/u/152784163?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kapoor1309", "html_url": "https://github.com/kapoor1309", "followers_url": "https://api.github.com/users/kapoor1309/followers", "following_url": "https://api.github.com/users/kapoor1309/following{/other_user}", "gists_url": "https://api.github.com/users/kapoor1309/gists{/gist_id}", "starred_url": "https://api.github.com/users/kapoor1309/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kapoor1309/subscriptions", "organizations_url": "https://api.github.com/users/kapoor1309/orgs", "repos_url": "https://api.github.com/users/kapoor1309/repos", "events_url": "https://api.github.com/users/kapoor1309/events{/privacy}", "received_events_url": "https://api.github.com/users/kapoor1309/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hey pls review " ]
2025-12-05T10:20:48
2025-12-10T14:16:31
null
NONE
null
null
null
null
This PR adds a short clarification in the README section wherein PyPI the python package was mistakenly typed as PyPi which i have fixed
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7898/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/7898/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7898", "html_url": "https://github.com/huggingface/datasets/pull/7898", "diff_url": "https://github.com/huggingface/datasets/pull/7898.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7898.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7897
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7897/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7897/comments
https://api.github.com/repos/huggingface/datasets/issues/7897/events
https://github.com/huggingface/datasets/pull/7897
3,691,300,022
PR_kwDODunzps624-k2
7,897
Save input shard lengths
{ "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_7897). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-12-03T17:56:55
2025-12-05T16:21:06
2025-12-05T16:21:03
MEMBER
null
null
null
null
will be useful for the Viewer, to know what (original) shard each row belongs to cc @cfahlgren1 next step is use it in Dataset Viewer and expose an API that returns the file containing the row at rowId (took the opportunity to remove unusued 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/7897/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7897/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7897", "html_url": "https://github.com/huggingface/datasets/pull/7897", "diff_url": "https://github.com/huggingface/datasets/pull/7897.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7897.patch", "merged_at": "2025-12-05T16:21:03" }
true
https://api.github.com/repos/huggingface/datasets/issues/7896
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7896/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7896/comments
https://api.github.com/repos/huggingface/datasets/issues/7896/events
https://github.com/huggingface/datasets/pull/7896
3,688,480,675
PR_kwDODunzps62vZtn
7,896
fix: force contiguous copy for sliced list arrays in embed_array_storage
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7896). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-12-03T04:34:26
2025-12-09T15:37:49
null
NONE
null
null
null
null
## Summary Fixes SIGKILL crash in `embed_array_storage` when processing sliced/sharded datasets with nested types like `Sequence(Nifti())` or `Sequence(Image())`. **Root cause**: When `ds.shard()` or `ds.select()` creates a sliced view, `array.values` on a sliced `ListArray` returns values with internal offset references. For nested types, PyArrow's C++ layer can crash (SIGKILL, exit code 137) when materializing these sliced nested structs. **Fix**: Force a contiguous copy via `pa.concat_arrays([array])` when the array has a non-zero offset before processing list/large_list arrays. ## Changes - Add offset check in `embed_array_storage` for list/large_list arrays - Force contiguous copy when `array.offset > 0` to break internal references - Add regression tests for sliced arrays with Image, Nifti, and LargeList types ## Test plan - [x] Added `tests/features/test_embed_storage_sliced.py` with 3 tests: - `test_embed_array_storage_sliced_list_image` - `test_embed_array_storage_sliced_list_nifti` - `test_embed_array_storage_sliced_large_list` - [x] All tests verify `embedded.offset == 0` (contiguous result) - [x] All tests pass locally - [x] ruff check passes ## Context This was discovered while uploading a 270GB neuroimaging dataset (ARC) with `Sequence(Nifti())` columns. The process crashed with SIGKILL (no Python traceback) when `embed_table_storage` was called on sharded data. Workaround that confirmed the fix: pandas round-trip (`shard.to_pandas()` → `Dataset.from_pandas()`) which forces a contiguous copy. Fixes #7894 Related: #6686, #7852, #6790
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7896/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7896/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7896", "html_url": "https://github.com/huggingface/datasets/pull/7896", "diff_url": "https://github.com/huggingface/datasets/pull/7896.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7896.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7895
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7895/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7895/comments
https://api.github.com/repos/huggingface/datasets/issues/7895/events
https://github.com/huggingface/datasets/pull/7895
3,688,479,825
PR_kwDODunzps62vZik
7,895
fix: use temp files in push_to_hub to prevent OOM on large datasets
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Closing this PR.\n\nAfter further investigation (prompted by @lhoestq's feedback on #7893), I discovered that `free_memory=True` does work correctly - memory doesn't actually accumulate in the `additions` list as I originally thought.\n\nI tested standard `push_to_hub()` with 902 shards and it processed 625 shards...
2025-12-03T04:33:55
2025-12-06T13:58:44
2025-12-05T22:47:50
NONE
null
null
null
null
## Summary Fixes memory accumulation in `_push_parquet_shards_to_hub_single` that causes OOM when uploading large datasets with many shards. **Root cause**: The current implementation stores ALL parquet shard bytes in memory via `BytesIO`, accumulating in the `additions` list. For N shards of ~300MB each, this requires N × 300MB RAM. **Fix**: Write parquet to temp file instead of `BytesIO`, pass file path to `CommitOperationAdd`. Delete temp file after `preupload_lfs_files` completes (for LFS uploads only - regular uploads need the file until `create_commit`). ## Changes - Replace `BytesIO` with `tempfile.NamedTemporaryFile` in `_push_parquet_shards_to_hub_single` - Use file path in `CommitOperationAdd.path_or_fileobj` instead of bytes - Delete temp file after upload (only for LFS mode - regular uploads keep file for `create_commit`) - Add `try...finally` for safe cleanup even on errors - Remove unused `BytesIO` import ## Test plan - [x] Added `tests/test_push_to_hub_memory.py` with 4 tests: - `test_push_to_hub_uses_file_path_not_bytes_in_commit_operation` - `test_push_to_hub_cleans_up_temp_files_for_lfs_uploads` - `test_push_to_hub_keeps_temp_files_for_regular_uploads` - `test_push_to_hub_uploaded_size_still_calculated` - [x] All tests pass locally - [x] ruff check passes ## Context This was discovered while uploading a 270GB neuroimaging dataset (ARC) with 902 shards. The process was killed by OOM after accumulating ~270GB in the `additions` list. Fixes #7893 Related: #5990, #7400
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7895/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/7895/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7895", "html_url": "https://github.com/huggingface/datasets/pull/7895", "diff_url": "https://github.com/huggingface/datasets/pull/7895.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7895.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7894
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7894/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7894/comments
https://api.github.com/repos/huggingface/datasets/issues/7894/events
https://github.com/huggingface/datasets/issues/7894
3,688,455,006
I_kwDODunzps7b2Vte
7,894
embed_table_storage crashes (SIGKILL) on sharded datasets with Sequence() nested types
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "I wasn't able to reproduce the crash on my side (macos arm 54, pyarrow 22 and a nifti file I found [online](https://s3.amazonaws.com/openneuro.org/ds004884/sub-M2001/ses-1076/anat/sub-M2001_ses-1076_acq-tfl3_run-4_T1w.nii.gz?versionId=9aVGb3C.VcoBgxrhNzFnL6O0MvxQsXX7&AWSAccessKeyId=AKIARTA7OOV5WQ3DGSOB&Signature=L...
2025-12-03T04:20:06
2025-12-06T13:10:34
null
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
## Summary `embed_table_storage` crashes with SIGKILL (exit code 137) when processing sharded datasets containing `Sequence()` nested types like `Sequence(Nifti())`. Likely affects `Sequence(Image())` and `Sequence(Audio())` as well. The crash occurs at the C++ level with no Python traceback. ### Related Issues - #7852 - Problems with NifTI (closed, but related embedding issues) - #6790 - PyArrow 'Memory mapping file failed' (potentially related) - #7893 - OOM issue (separate bug, but discovered together) ### Context Discovered while uploading the [Aphasia Recovery Cohort (ARC)](https://openneuro.org/datasets/ds004884) neuroimaging dataset to HuggingFace Hub. Even after fixing the OOM issue (#7893), this crash blocked uploads. Working implementation with workaround: [arc-aphasia-bids](https://github.com/The-Obstacle-Is-The-Way/arc-aphasia-bids) ## Reproduction ```python from datasets import Dataset, Features, Sequence, Value from datasets.features import Nifti from datasets.table import embed_table_storage features = Features({ "id": Value("string"), "images": Sequence(Nifti()), }) ds = Dataset.from_dict({ "id": ["a", "b"], "images": [["/path/to/file.nii.gz"], []], }).cast(features) # This works fine: table = ds._data.table.combine_chunks() embedded = embed_table_storage(table) # OK # This crashes with SIGKILL: shard = ds.shard(num_shards=2, index=0) shard_table = shard._data.table.combine_chunks() embedded = embed_table_storage(shard_table) # CRASH - no Python traceback ``` ## Key Observations | Scenario | Result | |----------|--------| | Single `Nifti()` column | Works | | `Sequence(Nifti())` on full dataset | Works | | `Sequence(Nifti())` after `ds.shard()` | **CRASHES** | | `Sequence(Nifti())` after `ds.select([i])` | **CRASHES** | | Crash with empty Sequence `[]` | **YES** - not file-size related | ## Workaround Convert shard to pandas and recreate the Dataset to break internal Arrow references: ```python shard = ds.shard(num_shards=num_shards, index=i, contiguous=True) # CRITICAL: Pandas round-trip breaks problematic references shard_df = shard.to_pandas() fresh_shard = Dataset.from_pandas(shard_df, preserve_index=False) fresh_shard = fresh_shard.cast(ds.features) # Now embedding works table = fresh_shard._data.table.combine_chunks() embedded = embed_table_storage(table) # OK! ``` ## Disproven Hypotheses | Hypothesis | Test | Result | |------------|------|--------| | PyArrow 2GB binary limit | Monkey-patched `Nifti.pa_type` to `pa.large_binary()` | Still crashed | | Memory fragmentation | Called `table.combine_chunks()` | Still crashed | | File size issue | Tested with tiny NIfTI files | Still crashed | ## Root Cause Hypothesis When `ds.shard()` or `ds.select()` creates a subset, the resulting Arrow table retains internal references/views to the parent table. When `embed_table_storage` processes nested struct types like `Sequence(Nifti())`, these references cause a crash in the C++ layer. The pandas round-trip forces a full data copy, breaking these problematic references. ## Environment - datasets version: main branch (post-0.22.0) - Platform: macOS 14.x ARM64 (may be platform-specific) - Python: 3.13 - PyArrow: 18.1.0 ## Notes This may ultimately be a PyArrow issue surfacing through datasets. Happy to help debug further if maintainers can point to where to look in the embedding logic.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7894/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/7894/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7893
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7893/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7893/comments
https://api.github.com/repos/huggingface/datasets/issues/7893/events
https://github.com/huggingface/datasets/issues/7893
3,688,454,085
I_kwDODunzps7b2VfF
7,893
push_to_hub OOM: _push_parquet_shards_to_hub accumulates all shard bytes in memory
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "`preupload_lfs_files` removes the parquet bytes in `shard_addition` since the default is `free_memory=True`: it doesn't accumulate in memory. Can you check this is indeed the case, i.e. that `shard_addition.path_or_fileobj` is indeed empty ?", "@lhoestq Thank you for pushing back on this and helping me understan...
2025-12-03T04:19:34
2025-12-05T22:45:59
2025-12-05T22:44:16
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
## Summary Large dataset uploads crash or hang due to memory exhaustion. This appears to be the root cause of several long-standing issues. ### Related Issues This is the root cause of: - #5990 - Pushing a large dataset on the hub consistently hangs (46 comments, open since 2023) - #7400 - 504 Gateway Timeout when uploading large dataset - #6686 - Question: Is there any way for uploading a large image dataset? ### Context Discovered while uploading the [Aphasia Recovery Cohort (ARC)](https://openneuro.org/datasets/ds004884) neuroimaging dataset (~270GB, 902 sessions) to HuggingFace Hub using the `Nifti()` feature. Working implementation with workaround: [arc-aphasia-bids](https://github.com/The-Obstacle-Is-The-Way/arc-aphasia-bids) ## Root Cause In `_push_parquet_shards_to_hub` (arrow_dataset.py), the `additions` list accumulates every `CommitOperationAdd` with full Parquet bytes in memory: ```python additions = [] for shard in shards: parquet_content = shard.to_parquet_bytes() # ~300 MB per shard shard_addition = CommitOperationAdd(path_or_fileobj=parquet_content) api.preupload_lfs_files(additions=[shard_addition]) additions.append(shard_addition) # THE BUG: bytes stay in memory forever ``` For a 902-shard dataset: **902 × 300 MB = ~270 GB RAM requested → OOM/hang**. The bytes are held until the final `create_commit()` call, preventing garbage collection. ## Reproduction ```python from datasets import load_dataset # Any large dataset with embedded files (Image, Audio, Nifti, etc.) ds = load_dataset("imagefolder", data_dir="path/to/large/dataset") ds.push_to_hub("repo-id", num_shards=500) # Watch memory grow until crash ``` ## Workaround Process one shard at a time, upload via `HfApi.upload_file(path=...)`, delete before next iteration: ```python from huggingface_hub import HfApi import pyarrow.parquet as pq api = HfApi() for i in range(num_shards): shard = ds.shard(num_shards=num_shards, index=i, contiguous=True) # Write to disk, not memory shard.to_parquet(local_path) # Upload from file path (streams from disk) api.upload_file( path_or_fileobj=str(local_path), path_in_repo=f"data/train-{i:05d}-of-{num_shards:05d}.parquet", repo_id=repo_id, repo_type="dataset", ) # Clean up before next iteration local_path.unlink() del shard ``` Memory usage stays constant (~1-2 GB) instead of growing linearly. ## Suggested Fix After `preupload_lfs_files` succeeds for each shard, release the bytes: 1. Clear `path_or_fileobj` from the `CommitOperationAdd` after preupload 2. Or write to temp file and pass file path instead of bytes 3. Or commit incrementally instead of batching all additions ## Environment - datasets version: main branch (post-0.22.0) - Platform: macOS 14.x ARM64 - Python: 3.13 - PyArrow: 18.1.0 - Dataset: 902 shards, ~270 GB total embedded NIfTI files
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7893/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/7893/timeline
null
not_planned
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7892
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7892/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7892/comments
https://api.github.com/repos/huggingface/datasets/issues/7892/events
https://github.com/huggingface/datasets/pull/7892
3,681,848,709
PR_kwDODunzps62ZFzh
7,892
encode nifti correctly when uploading lazily
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-12-01T16:35:07
2025-12-10T10:24:59
null
CONTRIBUTOR
null
null
null
null
When trying to upload nifti datasets lazily I got the error: ```python from pathlib import Path from datasets import load_dataset nifti_dir = Path("<local_path>") dataset = load_dataset( "niftifolder", data_dir=str(nifti_dir.absolute()), streaming=True, ) dataset.push_to_hub(repo_id="TobiasPitters/test-nifti-papaya-testdata") ``` ```python pyarrow.lib.ArrowInvalid: Could not convert <datasets.features.nifti.Nifti1ImageWrapper object at 0x77633407af90> with type Nifti1ImageWrapper: did not recognize Python value type when inferring an Arrow data type ``` This PR fixes that by encoding the Nifti1ImageWrappers correctly to bytes.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7892/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/7892/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7892", "html_url": "https://github.com/huggingface/datasets/pull/7892", "diff_url": "https://github.com/huggingface/datasets/pull/7892.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7892.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7891
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7891/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7891/comments
https://api.github.com/repos/huggingface/datasets/issues/7891/events
https://github.com/huggingface/datasets/pull/7891
3,681,592,636
PR_kwDODunzps62YNeR
7,891
fix(fingerprint): treat TMPDIR as strict API and fail (Issue #7877)
{ "login": "ada-ggf25", "id": 133336746, "node_id": "U_kgDOB_KOqg", "avatar_url": "https://avatars.githubusercontent.com/u/133336746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ada-ggf25", "html_url": "https://github.com/ada-ggf25", "followers_url": "https://api.github.com/users/ada-ggf25/followers", "following_url": "https://api.github.com/users/ada-ggf25/following{/other_user}", "gists_url": "https://api.github.com/users/ada-ggf25/gists{/gist_id}", "starred_url": "https://api.github.com/users/ada-ggf25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ada-ggf25/subscriptions", "organizations_url": "https://api.github.com/users/ada-ggf25/orgs", "repos_url": "https://api.github.com/users/ada-ggf25/repos", "events_url": "https://api.github.com/users/ada-ggf25/events{/privacy}", "received_events_url": "https://api.github.com/users/ada-ggf25/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_7891). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "> lgtm !\r\n\r\nthanks for taking a look!" ]
2025-12-01T15:37:57
2025-12-16T14:24:11
2025-12-16T14:20:46
CONTRIBUTOR
null
null
null
null
Fixes #7877 and follows up on feedback from [`#7890`](https://github.com/huggingface/datasets/pull/7890). ## Context In [`#7890`](https://github.com/huggingface/datasets/pull/7890) it was introduced an automatic creation of the `TMPDIR` directory in `_TempCacheDir` so that `datasets` does not silently fall back to `/tmp` when `TMPDIR` points to a non‑existent path. This addressed the original “`tempfile` silently ignores TMPDIR” issue in [`#7877`](https://github.com/huggingface/datasets/issues/7877). During review, it was pointed out by @stas00 (see [review comment](https://github.com/huggingface/datasets/pull/7890#discussion_r...)) that if the code treats `TMPDIR` as part of the public API, then failures to use it should **fail loudly**, not just emit warnings, because warnings are easy to miss in complex multi‑GPU setups. This PR implements that stricter behaviour. ## What this PR changes ### `_TempCacheDir` behaviour In `src/datasets/fingerprint.py`: - Continue to: - Detect `TMPDIR` from the environment - Normalise the path - Auto‑create the directory when it does not exist - Pass the (validated) directory explicitly to `tempfile.mkdtemp(...)` so `TMPDIR` is honoured even if `tempfile.gettempdir()` was already cached - **New behaviour** (in response to review on [`#7890`](https://github.com/huggingface/datasets/pull/7890)): - If `TMPDIR` is set, but the directory cannot be created, we now **re‑raise an `OSError`** with a clear, actionable message: - “TMPDIR is set to '…' but the directory does not exist and could not be created: … Please create it manually or unset TMPDIR to fall back to the default temporary directory.” - If `TMPDIR` is set but points to something that is **not a directory**, we also **raise `OSError`** with guidance: - “TMPDIR is set to '…' but it is not a directory. Please point TMPDIR to a writable directory or unset it to fall back to the default temporary directory.” - When `TMPDIR` is **not** set, behaviour is unchanged: we pass `dir=None` and let `tempfile` use the system default temp directory. This aligns with the @stas00’s suggestion that TMPDIR should be treated as a strict API contract: if the user chooses a TMPDIR, we either use it or clearly fail, rather than silently falling back. ### Tests In `tests/test_fingerprint.py`: - Updated tests that previously expected warning‑and‑fallback to now expect **hard failures**: - `test_temp_cache_dir_tmpdir_creation_failure` - Uses `unittest.mock.patch` to force `os.makedirs` to raise `OSError("Permission denied")` - Asserts that constructing `_TempCacheDir()` raises `OSError` and that the message contains both “TMPDIR is set to” and “could not be created” - `test_temp_cache_dir_tmpdir_not_directory` - Points `TMPDIR` to a regular file and asserts that `_TempCacheDir()` raises `OSError` with a message mentioning “is not a directory” - Left the positive‑path tests in place: - `test_temp_cache_dir_with_tmpdir_nonexistent` – verifies that a non‑existent `TMPDIR` is created and used - `test_temp_cache_dir_with_tmpdir_existing` – verifies that an existing `TMPDIR` directory is used as the base for the temp cache dir - `test_temp_cache_dir_without_tmpdir` – verifies behaviour when `TMPDIR` is not set (default temp directory) - Kept the earlier fix to `test_fingerprint_in_multiprocessing`, which now uses `Pool.map` and asserts that fingerprints are stable across processes. ## Rationale - Treating `TMPDIR` as part of the API for cache placement means: - Users can rely on it to move large temporary Arrow files away from small `/tmp` partitions. - Misconfigured TMPDIR should be **immediately visible** as a hard error, not as a warning lost among many logs. - The stricter failure mode matches the concern on [`#7890`](https://github.com/huggingface/datasets/pull/7890) that “warnings are very easy to miss in complex applications where there are already dozens of warnings multiplied by multiple GPU processes”. ## Testing - `pytest tests/test_fingerprint.py` - `make style` - No new linter issues introduced.
{ "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/7891/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/7891/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7891", "html_url": "https://github.com/huggingface/datasets/pull/7891", "diff_url": "https://github.com/huggingface/datasets/pull/7891.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7891.patch", "merged_at": "2025-12-16T14:20:46" }
true
https://api.github.com/repos/huggingface/datasets/issues/7890
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7890/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7890/comments
https://api.github.com/repos/huggingface/datasets/issues/7890/events
https://github.com/huggingface/datasets/pull/7890
3,677,077,051
PR_kwDODunzps62JMyH
7,890
Fix: Auto-create TMPDIR directory when it doesn't exist (Issue #7877)
{ "login": "ada-ggf25", "id": 133336746, "node_id": "U_kgDOB_KOqg", "avatar_url": "https://avatars.githubusercontent.com/u/133336746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ada-ggf25", "html_url": "https://github.com/ada-ggf25", "followers_url": "https://api.github.com/users/ada-ggf25/followers", "following_url": "https://api.github.com/users/ada-ggf25/following{/other_user}", "gists_url": "https://api.github.com/users/ada-ggf25/gists{/gist_id}", "starred_url": "https://api.github.com/users/ada-ggf25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ada-ggf25/subscriptions", "organizations_url": "https://api.github.com/users/ada-ggf25/orgs", "repos_url": "https://api.github.com/users/ada-ggf25/repos", "events_url": "https://api.github.com/users/ada-ggf25/events{/privacy}", "received_events_url": "https://api.github.com/users/ada-ggf25/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "> Thank you for implementing this, @ada-ggf25\r\n> \r\n> I see there are a few more uses of `tempfile` in `datasets` besides the one treated here - should they be treated in the same way as well?\r\n\r\nI had a look through the other tempfile call sites:\r\n- In `arrow_dataset.py` the code always pass an explicit ...
2025-11-29T20:35:24
2025-12-02T12:24:17
2025-12-02T12:24:17
CONTRIBUTOR
null
null
null
null
# Fix: Auto-create TMPDIR directory when it doesn't exist Fixes #7877 ## Description This PR fixes issue #7877 by implementing automatic creation of the `TMPDIR` directory when it is set but doesn't exist. Previously, `tempfile.mkdtemp()` would silently ignore `TMPDIR` and fall back to `/tmp` if the specified directory didn't exist, causing confusion for users experiencing "No space left on device" errors. ## Problem When users set `TMPDIR` to a non-existent directory (e.g., `export TMPDIR=/some/big/storage`), Python's `tempfile` module silently ignores it and falls back to the default temporary directory (`/tmp`). This leads to: - Users unable to use their specified temporary directory - Silent failures that are difficult to debug - Continued "No space left on device" errors even after setting `TMPDIR` ## Solution The fix automatically creates the `TMPDIR` directory if it is set but doesn't exist, ensuring that: 1. Users' `TMPDIR` settings are respected 2. Clear logging is provided when the directory is created 3. Graceful fallback with warnings if directory creation fails 4. The fix works even if `tempfile.gettempdir()` was already called and cached ## Changes ### Implementation (`src/datasets/fingerprint.py`) - Modified `_TempCacheDir.__init__()` to check if `TMPDIR` environment variable is set - Added logic to auto-create the directory if it doesn't exist using `os.makedirs()` - Added informative logging when directory is created - Added warning logging when directory creation fails, with graceful fallback - Added path normalisation to handle path resolution issues - Explicitly pass `dir` parameter to `tempfile.mkdtemp()` to ensure TMPDIR is respected ### Tests (`tests/test_fingerprint.py`) Added comprehensive test coverage: - `test_temp_cache_dir_with_tmpdir_nonexistent`: Tests auto-creation of non-existent TMPDIR - `test_temp_cache_dir_with_tmpdir_existing`: Tests behaviour when TMPDIR already exists - `test_temp_cache_dir_without_tmpdir`: Tests default behaviour when TMPDIR is not set - `test_temp_cache_dir_tmpdir_creation_failure`: Tests error handling when directory creation fails Also fixed incomplete `test_fingerprint_in_multiprocessing` test that was missing implementation. ## Testing - All existing tests pass - New tests added for TMPDIR handling scenarios - Code formatted with `make style` - No linter errors - Manual testing confirms the fix works as expected ## Example Usage Before this fix: ```bash $ export TMPDIR='/tmp/username' # Directory doesn't exist $ python -c "import tempfile; print(tempfile.gettempdir())" /tmp # Silently falls back, ignoring TMPDIR ``` After this fix: ```bash $ export TMPDIR='/tmp/username' # Directory doesn't exist $ python -c "from datasets.fingerprint import get_temporary_cache_files_directory; print(get_temporary_cache_files_directory())" # Directory is automatically created and used # Log: "Created TMPDIR directory: /tmp/username" ``` ## Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update --- **Note**: This implementation follows the approach suggested in the issue, automatically creating the TMPDIR directory when it doesn't exist, which provides the best user experience whilst maintaining security (we only create directories explicitly specified by the user via environment variable).
{ "login": "ada-ggf25", "id": 133336746, "node_id": "U_kgDOB_KOqg", "avatar_url": "https://avatars.githubusercontent.com/u/133336746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ada-ggf25", "html_url": "https://github.com/ada-ggf25", "followers_url": "https://api.github.com/users/ada-ggf25/followers", "following_url": "https://api.github.com/users/ada-ggf25/following{/other_user}", "gists_url": "https://api.github.com/users/ada-ggf25/gists{/gist_id}", "starred_url": "https://api.github.com/users/ada-ggf25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ada-ggf25/subscriptions", "organizations_url": "https://api.github.com/users/ada-ggf25/orgs", "repos_url": "https://api.github.com/users/ada-ggf25/repos", "events_url": "https://api.github.com/users/ada-ggf25/events{/privacy}", "received_events_url": "https://api.github.com/users/ada-ggf25/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7890/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/7890/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7890", "html_url": "https://github.com/huggingface/datasets/pull/7890", "diff_url": "https://github.com/huggingface/datasets/pull/7890.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7890.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7889
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7889/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7889/comments
https://api.github.com/repos/huggingface/datasets/issues/7889/events
https://github.com/huggingface/datasets/pull/7889
3,676,933,025
PR_kwDODunzps62Iykj
7,889
fix(tests): stabilize flaky Hub LFS integration test
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-29T17:13:18
2025-12-09T15:37:49
null
NONE
null
null
null
null
## Problem `test_push_dataset_dict_to_hub_overwrite_files` intermittently fails with: ``` BadRequestError: LFS pointer pointed to a file that does not exist ``` This has been causing the `deps-latest` integration tests to fail on main (visible in recent CI runs). I ran into this while working on the BIDS loader PR and dug into the root cause. ## Root Cause Two race conditions in the test: 1. **LFS propagation timing** - Rapid successive `push_to_hub` calls don't wait for Hub to fully propagate LFS objects between pushes 2. **Repo name reuse** - The second test scenario reused the same repo name from scenario 1, creating a race between deletion and recreation ## Solution - Add `_wait_for_repo_ready()` helper that polls `list_repo_files` to ensure the repo is consistent before subsequent operations - Use a unique repo name (`ds_name_2`) for the second scenario, eliminating the delete/create race entirely ## Testing All 4 integration test variants now pass: - ✅ `ubuntu-latest, deps-latest` (was failing) - ✅ `ubuntu-latest, deps-minimum` - ✅ `windows-latest, deps-latest` (was failing) - ✅ `windows-latest, deps-minimum` Validated on fork: https://github.com/The-Obstacle-Is-The-Way/datasets/pull/4 ## Related - #7600 (push_to_hub concurrency) - #6392 (push_to_hub connection robustness) cc @lhoestq - small fix but should help CI reliability
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7889/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/7889/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7889", "html_url": "https://github.com/huggingface/datasets/pull/7889", "diff_url": "https://github.com/huggingface/datasets/pull/7889.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7889.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7888
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7888/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7888/comments
https://api.github.com/repos/huggingface/datasets/issues/7888/events
https://github.com/huggingface/datasets/pull/7888
3,676,407,260
PR_kwDODunzps62HOM4
7,888
Add type overloads to load_dataset for better static type inference
{ "login": "Aditya2755", "id": 157872593, "node_id": "U_kgDOCWjx0Q", "avatar_url": "https://avatars.githubusercontent.com/u/157872593?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aditya2755", "html_url": "https://github.com/Aditya2755", "followers_url": "https://api.github.com/users/Aditya2755/followers", "following_url": "https://api.github.com/users/Aditya2755/following{/other_user}", "gists_url": "https://api.github.com/users/Aditya2755/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aditya2755/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aditya2755/subscriptions", "organizations_url": "https://api.github.com/users/Aditya2755/orgs", "repos_url": "https://api.github.com/users/Aditya2755/repos", "events_url": "https://api.github.com/users/Aditya2755/events{/privacy}", "received_events_url": "https://api.github.com/users/Aditya2755/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_7888). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-29T06:19:30
2025-12-08T12:06:57
2025-12-08T12:06:57
CONTRIBUTOR
null
null
null
null
Fixes #7883 This PR adds @overload decorators to load_dataset() to help type checkers like Pylance and mypy correctly infer the return type based on the split and streaming parameters. Changes: - Added typing imports (Literal, overload) to load.py - Added 4 @overload signatures that map argument combinations to specific return types: * split=None, streaming=False -> DatasetDict * split specified, streaming=False -> Dataset * split=None, streaming=True -> IterableDatasetDict * split specified, streaming=True -> IterableDataset This resolves the Pylance error where to_csv() was not recognized on Dataset objects returned by load_dataset(..., split='train'), since the type checker previously saw the return type as a Union that included types without to_csv(). No runtime behavior changes - this is purely a static typing improvement.
{ "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/7888/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/7888/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7888", "html_url": "https://github.com/huggingface/datasets/pull/7888", "diff_url": "https://github.com/huggingface/datasets/pull/7888.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7888.patch", "merged_at": "2025-12-08T12:06:57" }
true
https://api.github.com/repos/huggingface/datasets/issues/7887
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7887/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7887/comments
https://api.github.com/repos/huggingface/datasets/issues/7887/events
https://github.com/huggingface/datasets/pull/7887
3,676,203,387
PR_kwDODunzps62GltX
7,887
fix(nifti): enable lazy loading for Nifti1ImageWrapper
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-29T01:40:27
2025-12-09T15:37:50
null
NONE
null
null
null
null
## Summary - **Single-line fix**: Change `dataobj=nifti_image.get_fdata()` → `dataobj=nifti_image.dataobj` - Preserves nibabel's `ArrayProxy` for true lazy loading instead of eagerly loading entire NIfTI files into memory - Improves error handling: corrupted files now fail at access time with clear context instead of silently during decode ## Problem The `Nifti1ImageWrapper.__init__` was calling `get_fdata()` which immediately loads the entire image into memory. For large 4D fMRI files (often 1-2GB), this causes: 1. **Memory issues** - Full data loaded during decode, not on demand 2. **Poor error handling** - Corrupted files crash at access time with unclear error messages (e.g., `EOFError` with no file path) 3. **No graceful recovery** - Entire dataset iteration fails on one bad file ## Solution Use `nifti_image.dataobj` which preserves the underlying `ArrayProxy`, deferring actual I/O to `get_fdata()` calls. ## Test Plan - [x] Added `test_nifti_lazy_loading` to verify `ArrayProxy` is preserved - [x] All 22 existing NIfTI tests pass - [x] End-to-end tested with real OpenNeuro data (ds000102) - [x] CodeRabbit approved: "Switch to dataobj correctly restores nibabel's lazy loading semantics... This looks solid" ## Related - Discovered while testing BIDS loader PR #7886 - Complements the NIfTI + NiiVue viewer work from #7878 and #7874
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7887/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/7887/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7887", "html_url": "https://github.com/huggingface/datasets/pull/7887", "diff_url": "https://github.com/huggingface/datasets/pull/7887.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7887.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7886
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7886/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7886/comments
https://api.github.com/repos/huggingface/datasets/issues/7886/events
https://github.com/huggingface/datasets/pull/7886
3,676,185,151
PR_kwDODunzps62Gh1c
7,886
feat(bids): Add BIDS dataset loader for neuroimaging data
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-29T01:22:06
2025-12-09T15:37:51
null
NONE
null
null
null
null
## Summary Adds native BIDS (Brain Imaging Data Structure) dataset loading support using PyBIDS, enabling `load_dataset('bids', data_dir='/path/to/bids')` workflow for neuroimaging researchers. **Contributes to #7804** (Support scientific data formats) - BIDS is a widely-used standard for organizing neuroimaging data built on NIfTI files. ## Changes ### Core Implementation - `src/datasets/packaged_modules/bids/bids.py` - GeneratorBasedBuilder implementation - `src/datasets/packaged_modules/bids/__init__.py` - Module exports - `src/datasets/packaged_modules/__init__.py` - Registration with module registry - `src/datasets/config.py` - `PYBIDS_AVAILABLE` config flag - `setup.py` - Optional `pybids>=0.21.0` + nibabel dependency ### Features - Automatic BIDS structure validation - Subject/session/datatype filtering via config - JSON sidecar metadata extraction - NIfTI file decoding via existing Nifti feature ### Documentation & Tests - `docs/source/bids_dataset.mdx` - User guide with examples - `tests/packaged_modules/test_bids.py` - Unit tests (4 tests) ## Usage ```python from datasets import load_dataset # Load entire BIDS dataset ds = load_dataset('bids', data_dir='/path/to/bids_dataset') # Filter by subject/session ds = load_dataset('bids', data_dir='/path/to/bids_dataset', subjects=['01', '02'], sessions=['baseline'] ) # Access samples sample = ds['train'][0] print(sample['subject']) # '01' print(sample['nifti'].shape) # (176, 256, 256) print(sample['metadata']) # JSON sidecar data ``` ## Test plan - [x] All 4 unit tests pass (`pytest tests/packaged_modules/test_bids.py`) - [x] `make quality` passes (ruff check) - [x] End-to-end tested with real OpenNeuro data (ds000102) ## Context This PR is part of the neuroimaging initiative discussed with @TobiasPitters. Follows the BIDS 1.10.1 specification and leverages the existing Nifti feature for NIfTI file handling. Related PRs: - #7874 (Nifti visualization support) - #7878 (Replace papaya with niivue)
{ "login": "The-Obstacle-Is-The-Way", "id": 175985783, "node_id": "U_kgDOCn1Udw", "avatar_url": "https://avatars.githubusercontent.com/u/175985783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/The-Obstacle-Is-The-Way", "html_url": "https://github.com/The-Obstacle-Is-The-Way", "followers_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/followers", "following_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/following{/other_user}", "gists_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/gists{/gist_id}", "starred_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/subscriptions", "organizations_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/orgs", "repos_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/repos", "events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/events{/privacy}", "received_events_url": "https://api.github.com/users/The-Obstacle-Is-The-Way/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7886/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/7886/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7886", "html_url": "https://github.com/huggingface/datasets/pull/7886", "diff_url": "https://github.com/huggingface/datasets/pull/7886.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7886.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7885
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7885/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7885/comments
https://api.github.com/repos/huggingface/datasets/issues/7885/events
https://github.com/huggingface/datasets/pull/7885
3,675,116,624
PR_kwDODunzps62DBlN
7,885
Add visualization paragraph to nifti readme
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-28T14:31:28
2025-12-10T10:25:14
null
CONTRIBUTOR
null
null
null
null
Add small paragraph and video.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7885/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/7885/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7885", "html_url": "https://github.com/huggingface/datasets/pull/7885", "diff_url": "https://github.com/huggingface/datasets/pull/7885.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7885.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7884
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7884/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7884/comments
https://api.github.com/repos/huggingface/datasets/issues/7884/events
https://github.com/huggingface/datasets/pull/7884
3,672,811,099
PR_kwDODunzps617Uk6
7,884
Fix 7846: add_column and add_item erroneously(?) require new_fingerprint parameter
{ "login": "sajmaru", "id": 44121755, "node_id": "MDQ6VXNlcjQ0MTIxNzU1", "avatar_url": "https://avatars.githubusercontent.com/u/44121755?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sajmaru", "html_url": "https://github.com/sajmaru", "followers_url": "https://api.github.com/users/sajmaru/followers", "following_url": "https://api.github.com/users/sajmaru/following{/other_user}", "gists_url": "https://api.github.com/users/sajmaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/sajmaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sajmaru/subscriptions", "organizations_url": "https://api.github.com/users/sajmaru/orgs", "repos_url": "https://api.github.com/users/sajmaru/repos", "events_url": "https://api.github.com/users/sajmaru/events{/privacy}", "received_events_url": "https://api.github.com/users/sajmaru/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "@lhoestq can you help review this pull request?", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7884). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-27T19:32:10
2025-12-04T16:09:51
2025-12-04T16:09:51
CONTRIBUTOR
null
null
null
null
Summary of the change: Made new_fingerprint optional (Optional[str] = None) in Dataset.add_column and Dataset.add_item Added a simple test to verify both methods work without providing a fingerprint Why this change is safe: The Dataset constructor already handles fingerprint=None by generating a new fingerprint automatically No internal logic is broken — if a user provides a fingerprint, it’s still used as before The change only affects the function signature, making it more user-friendly without changing any functionality
{ "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/7884/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/7884/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7884", "html_url": "https://github.com/huggingface/datasets/pull/7884", "diff_url": "https://github.com/huggingface/datasets/pull/7884.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7884.patch", "merged_at": "2025-12-04T16:09:51" }
true
https://api.github.com/repos/huggingface/datasets/issues/7883
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7883/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7883/comments
https://api.github.com/repos/huggingface/datasets/issues/7883/events
https://github.com/huggingface/datasets/issues/7883
3,668,182,561
I_kwDODunzps7apAYh
7,883
Data.to_csv() cannot be recognized by pylance
{ "login": "xi4ngxin", "id": 154290630, "node_id": "U_kgDOCTJJxg", "avatar_url": "https://avatars.githubusercontent.com/u/154290630?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xi4ngxin", "html_url": "https://github.com/xi4ngxin", "followers_url": "https://api.github.com/users/xi4ngxin/followers", "following_url": "https://api.github.com/users/xi4ngxin/following{/other_user}", "gists_url": "https://api.github.com/users/xi4ngxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/xi4ngxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xi4ngxin/subscriptions", "organizations_url": "https://api.github.com/users/xi4ngxin/orgs", "repos_url": "https://api.github.com/users/xi4ngxin/repos", "events_url": "https://api.github.com/users/xi4ngxin/events{/privacy}", "received_events_url": "https://api.github.com/users/xi4ngxin/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-11-26T16:16:56
2025-12-08T12:06:58
2025-12-08T12:06:58
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 Hi, everyone ! I am a beginner with datasets. I am testing reading multiple CSV files from a zip archive. The result of reading the dataset shows success, and it can ultimately be correctly saved to CSV. Intermediate results: ``` Generating train split: 62973 examples [00:00, 175939.01 examples/s] DatasetDict({ train: Dataset({ features: ['交易时间\t', '收支方向\t', '业务(产品)种类\t', '交易金额\t', '币种\t', '时点余额\t', '对手方名称\t', '对方机构名称\t', ' 对方钱包ID/账号\t', '交易对手名称\t', '交易对手编号\t', '交易流水号\t', '摘要\t', '附言\t', '备注\t', '用途\t', '客户流水号\t'], num_rows: 62973 }) }) ``` However, Pylance gives me the following error: ``` Cannot access attribute "to_csv" for class "DatasetDict" Attribute "to_csv" is unknownPylance[reportAttributeAccessIssue](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportAttributeAccessIssue.md)``` Cannot access attribute "to_csv" for class "IterableDatasetDict" Attribute "to_csv" is unknownPylance[reportAttributeAccessIssue](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportAttributeAccessIssue.md) (method) to_csv: Unknown | ((path_or_buf: datasets.utils.typing.PathLike | BinaryIO, batch_size: int | None = None, num_proc: int | None = None, storage_options: dict[Unknown, Unknown] | None = None, **to_csv_kwargs: Unknown) -> int) | ((path_or_buf: datasets.utils.typing.PathLike | BinaryIO, batch_size: int | None = None, storage_options: dict[Unknown, Unknown] | None = None, **to_csv_kwargs: Unknown) -> int) ``` I ignored the error and continued executing to get the correct result: ``` Dataset({ features: ['交易时间\t', '收支方向\t', '业务(产品)种类\t', '交易金额\t', '币种\t', '时点余额\t', '对手方名称\t', '对方机构名称\t', '对方 钱包ID/账号\t', '交易对手名称\t', '交易对手编号\t', '交易流水号\t', '摘要\t', '附言\t', '备注\t', '用途\t', '客户流水号\t'], num_rows: 62973 }) ``` Since the data volume is small, I manually merged the CSV files, and the final result is consistent with what the program saved. looks like : <img width="1264" height="150" alt="Image" src="https://github.com/user-attachments/assets/743540d7-ad8c-4531-ae7e-de71a5243a32" /> ### Steps to reproduce the bug this is my code. ``` from datasets import load_dataset def main(): url = "data/test.zip" data_files = {"train": url} dataset = load_dataset("csv", data_files=data_files,split="train", encoding="gbk", skiprows=2) # print(dataset) dataset.to_csv("data/test.csv") if __name__ == "__main__": main() ``` ### Expected behavior I want to know why this happens. Is there something wrong with my code? ### Environment info OS: Windows 11 **upgrade from** OS: Windows_NT x64 10.0.22631 Editor: VS Code Version: 1.106.2 (user setup) "datasets" version = "4.4.1"
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7883/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/7883/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7882
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7882/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7882/comments
https://api.github.com/repos/huggingface/datasets/issues/7882/events
https://github.com/huggingface/datasets/issues/7882
3,667,664,527
I_kwDODunzps7anB6P
7,882
Inconsistent loading of LFS-hosted files in epfml/FineWeb-HQ dataset
{ "login": "Oligou", "id": 6270922, "node_id": "MDQ6VXNlcjYyNzA5MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/6270922?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Oligou", "html_url": "https://github.com/Oligou", "followers_url": "https://api.github.com/users/Oligou/followers", "following_url": "https://api.github.com/users/Oligou/following{/other_user}", "gists_url": "https://api.github.com/users/Oligou/gists{/gist_id}", "starred_url": "https://api.github.com/users/Oligou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Oligou/subscriptions", "organizations_url": "https://api.github.com/users/Oligou/orgs", "repos_url": "https://api.github.com/users/Oligou/repos", "events_url": "https://api.github.com/users/Oligou/events{/privacy}", "received_events_url": "https://api.github.com/users/Oligou/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "we are investigating the issue, I'll post updates here" ]
2025-11-26T14:06:02
2025-12-15T18:20:50
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 Some files in the `epfml/FineWeb-HQ` dataset fail to load via the Hugging Face `datasets` library. - xet-hosted files load fine - LFS-hosted files sometimes fail Example: - Fails: https://huggingface.co/datasets/epfml/FineWeb-HQ/blob/main/data/CC-MAIN-2024-26/000_00003.parquet - Works: https://huggingface.co/datasets/epfml/FineWeb-HQ/blob/main/data/CC-MAIN-2024-42/000_00027.parquet Discussion: https://huggingface.co/datasets/epfml/FineWeb-HQ/discussions/2 ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset( "epfml/FineWeb-HQ", data_files="data/CC-MAIN-2024-26/000_00003.parquet", ) ``` Error message: ``` HfHubHTTPError: 403 Forbidden: None. Cannot access content at: https://cdn-lfs-us-1.hf.co/repos/... Make sure your token has the correct permissions. ... <Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error> ``` ### Expected behavior It should load the dataset for all files. ### Environment info - python 3.10 - datasets 4.4.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7882/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/7882/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7881
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7881/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7881/comments
https://api.github.com/repos/huggingface/datasets/issues/7881/events
https://github.com/huggingface/datasets/pull/7881
3,667,642,524
PR_kwDODunzps61qI8F
7,881
Fix spurious label column when directories match split names
{ "login": "neha222222", "id": 132138786, "node_id": "U_kgDOB-BHIg", "avatar_url": "https://avatars.githubusercontent.com/u/132138786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/neha222222", "html_url": "https://github.com/neha222222", "followers_url": "https://api.github.com/users/neha222222/followers", "following_url": "https://api.github.com/users/neha222222/following{/other_user}", "gists_url": "https://api.github.com/users/neha222222/gists{/gist_id}", "starred_url": "https://api.github.com/users/neha222222/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neha222222/subscriptions", "organizations_url": "https://api.github.com/users/neha222222/orgs", "repos_url": "https://api.github.com/users/neha222222/repos", "events_url": "https://api.github.com/users/neha222222/events{/privacy}", "received_events_url": "https://api.github.com/users/neha222222/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-26T13:59:46
2025-12-08T12:21:54
null
NONE
null
null
null
null
Issue - https://github.com/huggingface/datasets/issues/7880
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7881/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/7881/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7881", "html_url": "https://github.com/huggingface/datasets/pull/7881", "diff_url": "https://github.com/huggingface/datasets/pull/7881.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7881.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7880
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7880/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7880/comments
https://api.github.com/repos/huggingface/datasets/issues/7880/events
https://github.com/huggingface/datasets/issues/7880
3,667,561,864
I_kwDODunzps7amo2I
7,880
Spurious label column created when audiofolder/imagefolder directories match split names
{ "login": "neha222222", "id": 132138786, "node_id": "U_kgDOB-BHIg", "avatar_url": "https://avatars.githubusercontent.com/u/132138786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/neha222222", "html_url": "https://github.com/neha222222", "followers_url": "https://api.github.com/users/neha222222/followers", "following_url": "https://api.github.com/users/neha222222/following{/other_user}", "gists_url": "https://api.github.com/users/neha222222/gists{/gist_id}", "starred_url": "https://api.github.com/users/neha222222/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neha222222/subscriptions", "organizations_url": "https://api.github.com/users/neha222222/orgs", "repos_url": "https://api.github.com/users/neha222222/repos", "events_url": "https://api.github.com/users/neha222222/events{/privacy}", "received_events_url": "https://api.github.com/users/neha222222/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-26T13:36:24
2025-11-26T13:36:24
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 `audiofolder` or `imagefolder` with directories for **splits** (train/test) rather than class labels, a spurious `label` column is incorrectly created. **Example:** https://huggingface.co/datasets/datasets-examples/doc-audio-4 ``` from datasets import load_dataset ds = load_dataset("datasets-examples/doc-audio-4") print(ds["train"].features) ``` Shows 'label' column with ClassLabel(names=['test', 'train']) - incorrect!## Root cause In `folder_based_builder.py`, the `labels` set is accumulated across ALL splits (line 77). When directories are `train/` and `test/`: - `labels = {"train", "test"}` → `len(labels) > 1` → `add_labels = True` - Spurious label column is created with split names as class labels ## Expected behavior No `label` column should be added when directory names match split names. ## Proposed fix Skip label inference when inferred labels match split names. cc @lhoestq
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7880/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/7880/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7879
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7879/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7879/comments
https://api.github.com/repos/huggingface/datasets/issues/7879/events
https://github.com/huggingface/datasets/issues/7879
3,657,249,446
I_kwDODunzps7Z_TKm
7,879
python core dump when downloading dataset
{ "login": "hansewetz", "id": 5960219, "node_id": "MDQ6VXNlcjU5NjAyMTk=", "avatar_url": "https://avatars.githubusercontent.com/u/5960219?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hansewetz", "html_url": "https://github.com/hansewetz", "followers_url": "https://api.github.com/users/hansewetz/followers", "following_url": "https://api.github.com/users/hansewetz/following{/other_user}", "gists_url": "https://api.github.com/users/hansewetz/gists{/gist_id}", "starred_url": "https://api.github.com/users/hansewetz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hansewetz/subscriptions", "organizations_url": "https://api.github.com/users/hansewetz/orgs", "repos_url": "https://api.github.com/users/hansewetz/repos", "events_url": "https://api.github.com/users/hansewetz/events{/privacy}", "received_events_url": "https://api.github.com/users/hansewetz/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi @hansewetz I'm curious, for me it works just fine. Are you still observing the issue?", "Yup ... still the same issue.\nHowever, after adding a ```sleep(1)``` call after the ``` for``` loop by accident during debugging, the program terminates properly (not a good solution though ... :-) ).\nAre there some thr...
2025-11-24T06:22:53
2025-11-25T20:45:55
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 downloading a dataset in streamed mode and exiting the program before the download completes, the python program core dumps when exiting: ``` terminate called without an active exception Aborted (core dumped) ``` Tested with python 3.12.3, python 3.9.21 ### Steps to reproduce the bug Create python venv: ```bash python -m venv venv ./venv/bin/activate pip install datasets==4.4.1 ``` Execute the following program: ``` from datasets import load_dataset ds = load_dataset("HuggingFaceFW/fineweb-2", 'hrv_Latn', split="test", streaming=True) for sample in ds: break ``` ### Expected behavior Clean program exit ### Environment info described above **note**: the example works correctly when using ```datasets==3.1.0```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7879/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/7879/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7878
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7878/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7878/comments
https://api.github.com/repos/huggingface/datasets/issues/7878/events
https://github.com/huggingface/datasets/pull/7878
3,653,262,027
PR_kwDODunzps606R81
7,878
Replace papaya with niivue
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "@CloseChoice thanks for your work on this. As you mentioned, the prime developers for Papaya have moved on, so it is in maintenance mode, albeit it is mature and may fill all your requirements. \r\n\r\nPapaya does reflect the era of its creation, so it uses WebGL1 (which only supports 2D textures) for display and ...
2025-11-21T22:19:56
2025-11-27T20:37:04
2025-11-27T18:00:19
CONTRIBUTOR
null
null
null
null
I was contacted by Chris Rorden whose group is developing NiiVue (see https://github.com/niivue/niivue), which leverages WebGL2 (in contrast to Papaya which is WebGL1 based). He also offered support in the implementation, which might come in handy in case of any questions later on (see DICOM implemenation). I completely overlooked NiiVue when searching for frameworks. Development speed or lack thereof was already mentioned as a potential risk with Papaya. NiiVue is well and actively maintained, simply compare these two contribution charts: NiiVue: <img width="920" height="378" alt="image" src="https://github.com/user-attachments/assets/37a0a256-60aa-4758-bb07-97e421c68ae1" /> Papaya: <img width="920" height="378" alt="image" src="https://github.com/user-attachments/assets/1e1cf0c9-ec0a-4ffc-ae03-a79ea12bcb3b" /> I gave NiiVue a try and it supports all features Papaya does, though I find Papaya's UI slightly more appealing but that is just personal taste. There is also a 3D image of the scanned object included in the NiiVue UI, but that is possible for Papaya aswell (at least in some way, check the image in their github repo README.md). ```python from datasets import load_dataset # new dataset compared to papaya PR, this has more interesting images ds = load_dataset("TobiasPitters/nifti-papaya-testdata", split="train") ds[1]['nifti'] # ds[2]['nifti'] is also interesting ``` Here's a brief video how this looks with NiiVue: https://github.com/user-attachments/assets/3f2a52d4-2109-45e2-aca8-e4a4b1e46b32 NOTE: I explicitly created this as draft PR since I suspect the DICOM support to be a crucial factor to decide which of these two is better suited for our needs. DICOM is supported by Papaya, and for NiiVue as well using a plugin, but as far as I understand one DICOM file contains one 2D image, therefore support for loading a whole folder, containing all 2D layers for a complete 3D image is desired. NiiVue supports this according to their docs, I am unsure about Papaya.
{ "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/7878/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/7878/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7878", "html_url": "https://github.com/huggingface/datasets/pull/7878", "diff_url": "https://github.com/huggingface/datasets/pull/7878.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7878.patch", "merged_at": "2025-11-27T18:00:19" }
true
https://api.github.com/repos/huggingface/datasets/issues/7877
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7877/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7877/comments
https://api.github.com/repos/huggingface/datasets/issues/7877/events
https://github.com/huggingface/datasets/issues/7877
3,652,906,788
I_kwDODunzps7Zuu8k
7,877
work around `tempfile` silently ignoring `TMPDIR` if the dir doesn't exist
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/followers", "following_url": "https://api.github.com/users/stas00/following{/other_user}", "gists_url": "https://api.github.com/users/stas00/gists{/gist_id}", "starred_url": "https://api.github.com/users/stas00/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stas00/subscriptions", "organizations_url": "https://api.github.com/users/stas00/orgs", "repos_url": "https://api.github.com/users/stas00/repos", "events_url": "https://api.github.com/users/stas00/events{/privacy}", "received_events_url": "https://api.github.com/users/stas00/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hi! Just created a Pull Request (#7890) to try to fix this using your suggestions. I hope it helps!" ]
2025-11-21T19:51:48
2025-12-16T14:20:48
2025-12-16T14:20:48
CONTRIBUTOR
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
This should help a lot of users running into `No space left on device` while using `datasets`. Normally the issue is is that `/tmp` is too small and the user needs to use another path, which they would normally set as `export TMPDIR=/some/big/storage` However, the `tempfile` facility that `datasets` and `pyarrow` use is somewhat broken. If the path doesn't exist it'd ignore it and fall back to using `/tmp`. Watch this: ``` $ export TMPDIR='/tmp/username' $ python -c "\ import os import tempfile print(os.environ['TMPDIR']) print(tempfile.gettempdir())" /tmp/username /tmp ``` Now let's ensure the path exists: ``` $ export TMPDIR='/tmp/username' $ mkdir -p $TMPDIR $ python -c "\ import os import tempfile print(os.environ['TMPDIR']) print(tempfile.gettempdir())" /tmp/username /tmp/username ``` So I recommend `datasets` do either of the 2: 1. assert if `$TMPDIR` dir doesn't exist, telling the user to create it 2. auto-create it The reason for (1) is that I don't know why `tempdir` doesn't auto-create the dir - perhaps some security implication? I will let you guys make the decision, but the key is not to let things silently fall through and the user puzzling why no matter what they do they can't break past `No space left on device` while using `datasets` Thank you. I found this via https://stackoverflow.com/questions/37229398/python-tempfile-gettempdir-does-not-respect-tmpdir while trying to help a colleague to solve this exact issue.
{ "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/7877/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/7877/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7876
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7876/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7876/comments
https://api.github.com/repos/huggingface/datasets/issues/7876/events
https://github.com/huggingface/datasets/pull/7876
3,652,170,832
PR_kwDODunzps602lac
7,876
test: add verification for HuggingFaceM4/InterleavedWebDocuments
{ "login": "venkatsai2004", "id": 122142345, "node_id": "U_kgDOB0e-iQ", "avatar_url": "https://avatars.githubusercontent.com/u/122142345?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkatsai2004", "html_url": "https://github.com/venkatsai2004", "followers_url": "https://api.github.com/users/venkatsai2004/followers", "following_url": "https://api.github.com/users/venkatsai2004/following{/other_user}", "gists_url": "https://api.github.com/users/venkatsai2004/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkatsai2004/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkatsai2004/subscriptions", "organizations_url": "https://api.github.com/users/venkatsai2004/orgs", "repos_url": "https://api.github.com/users/venkatsai2004/repos", "events_url": "https://api.github.com/users/venkatsai2004/events{/privacy}", "received_events_url": "https://api.github.com/users/venkatsai2004/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-21T15:42:09
2025-11-21T15:42:09
null
NONE
null
null
null
null
Adds an integration test for the `HuggingFaceM4/InterleavedWebDocuments` dataset. - Gracefully skips if the dataset is not yet available on the Hub - Checks basic loading and structure once it becomes available Closes #7394 First-time contributor to `datasets` — really excited about this! Happy to make any adjustments needed. 🙂
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7876/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/7876/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7876", "html_url": "https://github.com/huggingface/datasets/pull/7876", "diff_url": "https://github.com/huggingface/datasets/pull/7876.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7876.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7875
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7875/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7875/comments
https://api.github.com/repos/huggingface/datasets/issues/7875/events
https://github.com/huggingface/datasets/pull/7875
3,649,326,175
PR_kwDODunzps60s9my
7,875
Add quickstart example to datasets README
{ "login": "hajermabrouk", "id": 101023542, "node_id": "U_kgDOBgV_Ng", "avatar_url": "https://avatars.githubusercontent.com/u/101023542?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hajermabrouk", "html_url": "https://github.com/hajermabrouk", "followers_url": "https://api.github.com/users/hajermabrouk/followers", "following_url": "https://api.github.com/users/hajermabrouk/following{/other_user}", "gists_url": "https://api.github.com/users/hajermabrouk/gists{/gist_id}", "starred_url": "https://api.github.com/users/hajermabrouk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hajermabrouk/subscriptions", "organizations_url": "https://api.github.com/users/hajermabrouk/orgs", "repos_url": "https://api.github.com/users/hajermabrouk/repos", "events_url": "https://api.github.com/users/hajermabrouk/events{/privacy}", "received_events_url": "https://api.github.com/users/hajermabrouk/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-20T22:13:52
2025-11-20T22:13:52
null
NONE
null
null
null
null
null
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7875/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/7875/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7875", "html_url": "https://github.com/huggingface/datasets/pull/7875", "diff_url": "https://github.com/huggingface/datasets/pull/7875.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7875.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7874
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7874/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7874/comments
https://api.github.com/repos/huggingface/datasets/issues/7874/events
https://github.com/huggingface/datasets/pull/7874
3,644,558,046
PR_kwDODunzps60c4sg
7,874
Nifti visualization support
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/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_7874). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "I tested in Colab and it works perfectly :) now I want to add `_repr_html_` everywhere ...
2025-11-19T21:56:56
2025-11-21T12:41:43
2025-11-21T12:31:18
CONTRIBUTOR
null
null
null
null
closes #7870 leverage Papaya to visualize nifti images. For this I created a Wrapper class for `nibabel.nifti1.Nifti1Image` that provides the same interface but exposes an additional `_repr_html_` method, which is needed to visualize the image in jupyter (didn't test in colab, but that should work equivalently). Code to test (execute in a notebook): ```python from datasets import load_dataset ds = load_dataset("TobiasPitters/nifti-nitest-extracted", split="train") image = ds[1] image ``` Here a small video, not the most exciting scan though: https://github.com/user-attachments/assets/1cca5f01-6fd2-48ef-a4d7-a92c1259c224 Am open to good ways to test this. EDIT: papaya also supports dicom, didn't test it yet though
{ "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/7874/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/7874/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7874", "html_url": "https://github.com/huggingface/datasets/pull/7874", "diff_url": "https://github.com/huggingface/datasets/pull/7874.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7874.patch", "merged_at": "2025-11-21T12:31:18" }
true
https://api.github.com/repos/huggingface/datasets/issues/7873
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7873/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7873/comments
https://api.github.com/repos/huggingface/datasets/issues/7873/events
https://github.com/huggingface/datasets/pull/7873
3,643,993,705
PR_kwDODunzps60a_IZ
7,873
Fix chunk casting and schema unification in dataset
{ "login": "ArjunJagdale", "id": 142811259, "node_id": "U_kgDOCIMgew", "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ArjunJagdale", "html_url": "https://github.com/ArjunJagdale", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "\r\n@lhoestq would like to hear from you!\r\n" ]
2025-11-19T18:43:47
2025-11-22T19:51:30
null
CONTRIBUTOR
null
null
null
null
Updated chunk handling to cast to expected schema when features are provided or to unify schemas when not. This ensures proper schema alignment for the yielded batches. fixes #7872 This PR fixes a bug where `IterableDataset` created from a generator with explicit `features` parameter would fail during arrow operations (like `.to_pandas()`) when the data contains missing or null values. ## Problem When an `IterableDataset` is created with explicit features but the generator yields data with missing values (e.g., empty lists), PyArrow would infer different schemas for different batches based on the actual data rather than using the provided schema. This caused `ArrowInvalid` errors when trying to concatenate batches with mismatched schemas. ### Example error: ```python pyarrow.lib.ArrowInvalid: Schema at index 1 was different: a: int64 b: list vs a: int64 b: list> ``` ## Solution Modified `RebatchedArrowExamplesIterable._iter_arrow()` to: 1. Cast chunks to the expected schema when explicit features are provided 2. Unify schemas across chunks when no explicit features are set 3. Gracefully handle cast failures by falling back to the original chunk This ensures that the user-provided schema is respected throughout the iteration process. ## Testing Verified the fix with the following test case: ```python import datasets from datasets import features def test_to_pandas_works_with_explicit_schema(): common_features = features.Features( { "a": features.Value("int64"), "b": features.List({"c": features.Value("int64")}), } ) def row_generator(): data = [{"a": 1, "b": []}, {"a": 1, "b": [{"c": 1}]}] for row in data: yield row d = datasets.IterableDataset.from_generator(row_generator, features=common_features) print("Iterating…") for _ in d.to_pandas(): pass test_to_pandas_works_with_explicit_schema() ``` Before Patch - ``` @ArjunJagdale ➜ /workspaces/datasets (main) $ python test_arjun.py Iterating… Traceback (most recent call last): File "/workspaces/datasets/test_arjun.py", line 24, in <module> test_to_pandas_works_with_explicit_schema() File "/workspaces/datasets/test_arjun.py", line 21, in test_to_pandas_works_with_explicit_schema for _ in d.to_pandas(): File "/workspaces/datasets/src/datasets/iterable_dataset.py", line 3736, in to_pandas table = pa.concat_tables(list(self.with_format("arrow").iter(batch_size=1000))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspaces/datasets/src/datasets/iterable_dataset.py", line 2596, in iter for key, pa_table in iterator: File "/workspaces/datasets/src/datasets/iterable_dataset.py", line 2111, in _iter_arrow for key, pa_table in self.ex_iterable._iter_arrow(): File "/workspaces/datasets/src/datasets/iterable_dataset.py", line 632, in _iter_arrow yield new_key, pa.Table.from_batches(chunks_buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/table.pxi", line 5039, in pyarrow.lib.Table.from_batches 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.ArrowInvalid: Schema at index 1 was different: a: int64 b: list<item: null> vs a: int64 b: list<item: struct<c: int64>> ``` After Patch - ``` @ArjunJagdale ➜ /workspaces/datasets (main) $ python test_arjun.py Iterating… @ArjunJagdale ➜ /workspaces/datasets (main) $ ```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7873/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/7873/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7873", "html_url": "https://github.com/huggingface/datasets/pull/7873", "diff_url": "https://github.com/huggingface/datasets/pull/7873.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7873.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7872
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7872/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7872/comments
https://api.github.com/repos/huggingface/datasets/issues/7872/events
https://github.com/huggingface/datasets/issues/7872
3,643,681,893
I_kwDODunzps7ZLixl
7,872
IterableDataset does not use features information in to_pandas
{ "login": "bonext", "id": 790640, "node_id": "MDQ6VXNlcjc5MDY0MA==", "avatar_url": "https://avatars.githubusercontent.com/u/790640?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bonext", "html_url": "https://github.com/bonext", "followers_url": "https://api.github.com/users/bonext/followers", "following_url": "https://api.github.com/users/bonext/following{/other_user}", "gists_url": "https://api.github.com/users/bonext/gists{/gist_id}", "starred_url": "https://api.github.com/users/bonext/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bonext/subscriptions", "organizations_url": "https://api.github.com/users/bonext/orgs", "repos_url": "https://api.github.com/users/bonext/repos", "events_url": "https://api.github.com/users/bonext/events{/privacy}", "received_events_url": "https://api.github.com/users/bonext/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Created A PR!", "Another test script that can be used to test the behavior - \n\n```\nimport datasets\nfrom datasets import features\n\ndef test_crash():\n common_features = features.Features({\n \"a\": features.Value(\"int64\"),\n \"b\": features.List({\"c\": features.Value(\"int64\")}),\n }...
2025-11-19T17:12:59
2025-11-19T18:52: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 `IterableDataset` created from generator with explicit `features=` parameter seems to ignore provided features description for certain operations, e.g. `.to_pandas(...)` when data coming from the generator has missing values. ### Steps to reproduce the bug ```python import datasets from datasets import features def test_to_pandas_works_with_explicit_schema(): common_features = features.Features( { "a": features.Value("int64"), "b": features.List({"c": features.Value("int64")}), } ) def row_generator(): data = [{"a": 1, "b": []}, {"a": 1, "b": [{"c": 1}]}] for row in data: yield row d = datasets.IterableDataset.from_generator(row_generator, features=common_features) for _ in d.to_pandas(): pass # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # .venv/lib/python3.13/site-packages/datasets/iterable_dataset.py:3703: in to_pandas # table = pa.concat_tables(list(self.with_format("arrow").iter(batch_size=1000))) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # .venv/lib/python3.13/site-packages/datasets/iterable_dataset.py:2563: in iter # for key, pa_table in iterator: # ^^^^^^^^ # .venv/lib/python3.13/site-packages/datasets/iterable_dataset.py:2078: in _iter_arrow # for key, pa_table in self.ex_iterable._iter_arrow(): # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # .venv/lib/python3.13/site-packages/datasets/iterable_dataset.py:599: in _iter_arrow # yield new_key, pa.Table.from_batches(chunks_buffer) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # pyarrow/table.pxi:5039: in pyarrow.lib.Table.from_batches # ??? # pyarrow/error.pxi:155: in pyarrow.lib.pyarrow_internal_check_status # ??? # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # > ??? # E pyarrow.lib.ArrowInvalid: Schema at index 1 was different: # E a: int64 # E b: list<item: null> # E vs # E a: int64 # E b: list<item: struct<c: int64>> # pyarrow/error.pxi:92: ArrowInvalid ``` ### Expected behavior arrow operations use schema provided through `features=` and not the one inferred from the data ### Environment info - datasets version: 4.4.1 - Platform: macOS-15.7.1-arm64-arm-64bit-Mach-O - Python version: 3.13.1 - huggingface_hub version: 1.1.4 - PyArrow version: 22.0.0 - Pandas version: 2.3.3 - fsspec version: 2025.10.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7872/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/7872/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7871
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7871/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7871/comments
https://api.github.com/repos/huggingface/datasets/issues/7871/events
https://github.com/huggingface/datasets/issues/7871
3,643,607,371
I_kwDODunzps7ZLQlL
7,871
Reqwest Error: HTTP status client error (429 Too Many Requests)
{ "login": "yanan1116", "id": 26405281, "node_id": "MDQ6VXNlcjI2NDA1Mjgx", "avatar_url": "https://avatars.githubusercontent.com/u/26405281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yanan1116", "html_url": "https://github.com/yanan1116", "followers_url": "https://api.github.com/users/yanan1116/followers", "following_url": "https://api.github.com/users/yanan1116/following{/other_user}", "gists_url": "https://api.github.com/users/yanan1116/gists{/gist_id}", "starred_url": "https://api.github.com/users/yanan1116/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yanan1116/subscriptions", "organizations_url": "https://api.github.com/users/yanan1116/orgs", "repos_url": "https://api.github.com/users/yanan1116/repos", "events_url": "https://api.github.com/users/yanan1116/events{/privacy}", "received_events_url": "https://api.github.com/users/yanan1116/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "the dataset repo: `https://huggingface.co/datasets/nvidia/PhysicalAI-Robotics-GR00T-X-Embodiment-Sim`", "Hi @yanan1116,\n\nThanks for the detailed report! However, this issue was filed in the wrong repository. This is a `huggingface_hub` issue, not a `datasets` issue.\n\nLooking at your traceback, you're using t...
2025-11-19T16:52:24
2025-11-30T13:38:32
2025-11-30T13:38:32
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 full error message: ``` Traceback (most recent call last): File "/home/yanan/miniconda3/bin/hf", line 7, in <module> sys.exit(main()) ~~~~^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/cli/hf.py", line 56, in main app() ~~~^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/typer/main.py", line 327, in __call__ raise e File "/home/yanan/miniconda3/lib/python3.13/site-packages/typer/main.py", line 310, in __call__ return get_command(self)(*args, **kwargs) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/click/core.py", line 1161, in __call__ return self.main(*args, **kwargs) ~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/typer/core.py", line 803, in main return _main( self, ...<6 lines>... **extra, ) File "/home/yanan/miniconda3/lib/python3.13/site-packages/typer/core.py", line 192, in _main rv = self.invoke(ctx) File "/home/yanan/miniconda3/lib/python3.13/site-packages/click/core.py", line 1697, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/click/core.py", line 1443, in invoke return ctx.invoke(self.callback, **ctx.params) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/click/core.py", line 788, in invoke return __callback(*args, **kwargs) File "/home/yanan/miniconda3/lib/python3.13/site-packages/typer/main.py", line 691, in wrapper return callback(**use_params) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/cli/download.py", line 188, in download _print_result(run_download()) ~~~~~~~~~~~~^^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/cli/download.py", line 149, in run_download return snapshot_download( repo_id=repo_id, ...<10 lines>... dry_run=dry_run, ) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/_snapshot_download.py", line 451, in snapshot_download thread_map( ~~~~~~~~~~^ _inner_hf_hub_download, ^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... tqdm_class=tqdm_class, ^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/tqdm/contrib/concurrent.py", line 69, in thread_map return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) File "/home/yanan/miniconda3/lib/python3.13/site-packages/tqdm/contrib/concurrent.py", line 51, in _executor_map return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs)) File "/home/yanan/miniconda3/lib/python3.13/site-packages/tqdm/std.py", line 1181, in __iter__ for obj in iterable: ^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/concurrent/futures/_base.py", line 619, in result_iterator yield _result_or_cancel(fs.pop()) ~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/concurrent/futures/_base.py", line 317, in _result_or_cancel return fut.result(timeout) ~~~~~~~~~~^^^^^^^^^ File "/home/yanan/miniconda3/lib/python3.13/concurrent/futures/_base.py", line 449, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/yanan/miniconda3/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/home/yanan/miniconda3/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/_snapshot_download.py", line 431, in _inner_hf_hub_download hf_hub_download( # type: ignore ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ repo_id, ^^^^^^^^ ...<14 lines>... dry_run=dry_run, ^^^^^^^^^^^^^^^^ ) ^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 986, in hf_hub_download return _hf_hub_download_to_local_dir( # Destination ...<16 lines>... dry_run=dry_run, ) File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1390, in _hf_hub_download_to_local_dir _download_to_tmp_and_move( ~~~~~~~~~~~~~~~~~~~~~~~~~^ incomplete_path=paths.incomplete_path(etag), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... tqdm_class=tqdm_class, ^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1791, in _download_to_tmp_and_move xet_get( ~~~~~~~^ incomplete_path=incomplete_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... tqdm_class=tqdm_class, ^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/yanan/miniconda3/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 571, in xet_get download_files( ~~~~~~~~~~~~~~^ xet_download_info, ^^^^^^^^^^^^^^^^^^ ...<3 lines>... progress_updater=[progress_updater], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status client error (429 Too Many Requests), domain: https://cas-server.xethub.hf.co/reconstructions/04b8a4667b84b3b874a6a2f070cec88920f6289e71185d69fa87e3cf29834710 ``` ### Steps to reproduce the bug my command ```bash hf download nvidia/PhysicalAI-Robotics-GR00T-X-Embodiment-Sim --repo-type dataset --include "single_panda_gripper.CoffeePressButton/**" --local-dir /home/yanan/robotics/Isaac-GR00T/gr00t_dataset_official/ ``` ### Expected behavior expect the data can be downloaded without any issue ### Environment info huggingface_hub 1.1.4
{ "login": "yanan1116", "id": 26405281, "node_id": "MDQ6VXNlcjI2NDA1Mjgx", "avatar_url": "https://avatars.githubusercontent.com/u/26405281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yanan1116", "html_url": "https://github.com/yanan1116", "followers_url": "https://api.github.com/users/yanan1116/followers", "following_url": "https://api.github.com/users/yanan1116/following{/other_user}", "gists_url": "https://api.github.com/users/yanan1116/gists{/gist_id}", "starred_url": "https://api.github.com/users/yanan1116/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yanan1116/subscriptions", "organizations_url": "https://api.github.com/users/yanan1116/orgs", "repos_url": "https://api.github.com/users/yanan1116/repos", "events_url": "https://api.github.com/users/yanan1116/events{/privacy}", "received_events_url": "https://api.github.com/users/yanan1116/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7871/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/7871/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7870
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7870/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7870/comments
https://api.github.com/repos/huggingface/datasets/issues/7870/events
https://github.com/huggingface/datasets/issues/7870
3,642,209,953
I_kwDODunzps7ZF7ah
7,870
Visualization for Medical Imaging Datasets
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "It would be amazing to be able to show the Papaya UI in google colab / jupyter notebook. IIRC both allow serving javascript via nbextensions that we can surely use in HTML() objects.\n\nAlternatively we could also start with a simple approach and dump the medical image data as a video file that goes through the sl...
2025-11-19T11:05:39
2025-11-21T12:31:19
2025-11-21T12:31:19
CONTRIBUTOR
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
This is a followup to: https://github.com/huggingface/datasets/pull/7815. I checked the possibilities to visualize the nifti (and potentially dicom), and here's what I found: - https://github.com/aces/brainbrowser, AGPL3 license, last commit 3 months ago, latest (github) release from 2017. It's available on jsdelivr: https://www.jsdelivr.com/package/npm/brainbrowser (but that is from 2015!) - https://github.com/rii-mango/Papaya, custom but BSD-style license that would require datasets to list the conditions in their readme somewhere, last commit June 2024. I looked into this library and it looks mature and good enough for our use case, but just working on it for a short time I wasn't able to get this to work, but am sure we could get this working, would probably require some JS on datasets' end. Available on jsdelivr as well: https://www.jsdelivr.com/package/npm/papaya-viewer. Seems like it's frequently loaded. - https://github.com/hanayik/niivue, BSD3 license, last commit May 26, 2021. Archived. Doesn't look like an option. I think the only real option for us Papaya, but there is also the risk that we'll end up with an unmaintained package after a while, since development seems to be slow or even halted. I think conceptually we would need to figure out how we can build a good solution for visualizing Medical Image data. On shap, we have a separate javascript folder in which we render visualizations, this could be a blueprint but will require a bundler, etc. Alternatively one could go with a naive approach to just write some html code in a python string and load the package via jsdelivr. @lhoestq thoughts?
{ "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/7870/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/7870/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7869
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7869/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7869/comments
https://api.github.com/repos/huggingface/datasets/issues/7869/events
https://github.com/huggingface/datasets/issues/7869
3,636,808,734
I_kwDODunzps7YxUwe
7,869
Why does dataset merge fail when tools have different parameters?
{ "login": "hitszxs", "id": 116297296, "node_id": "U_kgDOBu6OUA", "avatar_url": "https://avatars.githubusercontent.com/u/116297296?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hitszxs", "html_url": "https://github.com/hitszxs", "followers_url": "https://api.github.com/users/hitszxs/followers", "following_url": "https://api.github.com/users/hitszxs/following{/other_user}", "gists_url": "https://api.github.com/users/hitszxs/gists{/gist_id}", "starred_url": "https://api.github.com/users/hitszxs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hitszxs/subscriptions", "organizations_url": "https://api.github.com/users/hitszxs/orgs", "repos_url": "https://api.github.com/users/hitszxs/repos", "events_url": "https://api.github.com/users/hitszxs/events{/privacy}", "received_events_url": "https://api.github.com/users/hitszxs/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi @hitszxs,\n This is indeed by design,\n\nThe `datasets` library is built on top of [Apache Arrow](https://arrow.apache.org/), which uses a **columnar storage format** with strict schema requirements. When you try to concatenate/merge datasets, the library checks if features can be aligned using the [`_check_if_...
2025-11-18T08:33:04
2025-11-30T03:52:07
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 have a question about SFT (Supervised Fine-tuning) for an agent model. Suppose I want to fine-tune an agent model that may receive two different tools: tool1 and tool2. These tools have different parameters and types in their schema definitions. When I try to merge datasets containing different tool definitions, I get the following error: TypeError: Couldn't cast array of type struct<refundFee: struct<description: string, type: string>, ... , servicerId: struct<description: string, type: string>> to { 'refundFee': {'description': Value(dtype='string'), 'type': Value(dtype='string')}, ... 'templateId': {'description': Value(dtype='string'), 'type': Value(dtype='string')} } From my understanding, the merge fails because the tools column's nested structure is different across datasets — e.g., one struct contains an extra field servicerId while the other does not. This causes HuggingFace Datasets (and its underlying Apache Arrow schema) to reject the merge. My question is: why is it designed this way? Is this strict schema matching a hard requirement of the library? Is there a recommended way to merge datasets with different tool schemas (different parameters and types)? For an agent model supporting multiple tools, what's the best practice for preparing/merging training data without losing flexibility? Any guidance or design rationale would be greatly appreciated. Thanks!
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7869/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/7869/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7868
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7868/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7868/comments
https://api.github.com/repos/huggingface/datasets/issues/7868/events
https://github.com/huggingface/datasets/issues/7868
3,632,429,308
I_kwDODunzps7Ygnj8
7,868
Data duplication with `split_dataset_by_node` and `interleaved_dataset`
{ "login": "ValMystletainn", "id": 42485228, "node_id": "MDQ6VXNlcjQyNDg1MjI4", "avatar_url": "https://avatars.githubusercontent.com/u/42485228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ValMystletainn", "html_url": "https://github.com/ValMystletainn", "followers_url": "https://api.github.com/users/ValMystletainn/followers", "following_url": "https://api.github.com/users/ValMystletainn/following{/other_user}", "gists_url": "https://api.github.com/users/ValMystletainn/gists{/gist_id}", "starred_url": "https://api.github.com/users/ValMystletainn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ValMystletainn/subscriptions", "organizations_url": "https://api.github.com/users/ValMystletainn/orgs", "repos_url": "https://api.github.com/users/ValMystletainn/repos", "events_url": "https://api.github.com/users/ValMystletainn/events{/privacy}", "received_events_url": "https://api.github.com/users/ValMystletainn/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi @ValMystletainn ,\nCan I be assigned this issue?", "> split_dataset_by_node\n\nHello, I have some questions about your intended use: (1) It seems unnecessary to use interleaving for a single dataset. (2) For multiple datasets, it seems possible to interleave first and then split by node?", "Hi ! I think int...
2025-11-17T09:15:24
2025-12-15T11:52:32
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 Data duplication in different rank, when process a iterabledataset with first `split_dataset_by_node` and then `interleaved_dataset` ### Steps to reproduce the bug I have provide a minimum scripts ```python import os from datasets import interleave_datasets, load_dataset from datasets.distributed import split_dataset_by_node path = "/mnt/wwx/datasets/fineweb/data/CC-MAIN-2013-20/" files = [os.path.join(path, fn) for fn in os.listdir(path)] dataset = load_dataset("parquet", split="train", data_files=files, streaming=True) print(f"{dataset.n_shards=}") dataset_rank0 = split_dataset_by_node(dataset, 0, 4) dataset_rank1 = split_dataset_by_node(dataset, 1, 4) dataset_rank0_interleaved = interleave_datasets([dataset_rank0], seed=42, probabilities=[1.0]) dataset_rank1_interleaved = interleave_datasets([dataset_rank1], seed=42, probabilities=[1.0]) print("print the first sample id from all datasets") print("dataset", next(iter(dataset))['id']) print("dataset_rank0", next(iter(dataset_rank0))['id']) print("dataset_rank1", next(iter(dataset_rank1))['id']) print("dataset_rank0_interleaved", next(iter(dataset_rank0_interleaved))['id']) print("dataset_rank1_interleaved", next(iter(dataset_rank1_interleaved))['id']) dataset_rank0_shard = dataset.shard(4, 0) dataset_rank1_shard = dataset.shard(4, 1) dataset_rank0_shard_interleaved = interleave_datasets([dataset_rank0_shard], seed=42, probabilities=[1.0]) dataset_rank1_shard_interleaved = interleave_datasets([dataset_rank1_shard], seed=42, probabilities=[1.0]) print("dataset_rank0_shard", next(iter(dataset_rank0_shard))['id']) print("dataset_rank1_shard", next(iter(dataset_rank1_shard))['id']) print("dataset_rank0_shard_interleaved", next(iter(dataset_rank0_shard_interleaved))['id']) print("dataset_rank1_shard_interleaved", next(iter(dataset_rank1_shard_interleaved))['id']) ``` I just use a subfold of C4 with 14 paruets to do the quick run and get ``` dataset.n_shards=14 print the first sample id from all datasets dataset <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank0 <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank1 <urn:uuid:6b7da64f-c26e-4086-aef5-4b6f01106223> dataset_rank0_interleaved <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank1_interleaved <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank0_shard <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank1_shard <urn:uuid:67cf7216-dd05-4f55-a28a-1a1c96989c51> dataset_rank0_shard_interleaved <urn:uuid:c84a7f00-f3e8-4b67-baa4-df5adaf23bae> dataset_rank1_shard_interleaved <urn:uuid:67cf7216-dd05-4f55-a28a-1a1c96989c51> ``` ### Expected behavior the first sample of `dataset_rank0_interleaved` and `dataset_rank1_interleaved` should be different, as other `rank0` `rank1` couples. I have dive into the function and try to find how it work in `split -> interleaved` process. the `split_dataset_by_node` of iterable dataset does't not change `._ex_iterable` attribute of the dataset. it just set the distributed config in dataset, and the distributed dataset is used in actually `__iter__` call, to handle with shard split or sample skipping. however, in `interleaved_dataset` of iterable dataset. it copy out all of the `._ex_iterable` of provided datasets, and consist a new `_ex_iterable`, so the missing copy of `distributed config` caused the data duplication in different dp rank. So I may first ask, is it an unexpected using order of those function, which means: - always do `split_dataset_by_node` at final rather than in middle way. - or use `dataset.shard(dp_size, dp_rank)` rather than `split_dataset_by_node` in case similar of mine. if the using order is permiited, I think it is a bug, and I can do a PR to fix it (I meet this bug in real training, related issue is https://github.com/ByteDance-Seed/VeOmni/issues/200 if it helps. ### Environment info datasets 4.4.1 ubuntu 20.04 python 3.11.4
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7868/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/7868/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7867
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7867/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7867/comments
https://api.github.com/repos/huggingface/datasets/issues/7867/events
https://github.com/huggingface/datasets/issues/7867
3,620,931,722
I_kwDODunzps7X0wiK
7,867
NonMatchingSplitsSizesError when loading partial dataset files
{ "login": "QingGo", "id": 13678719, "node_id": "MDQ6VXNlcjEzNjc4NzE5", "avatar_url": "https://avatars.githubusercontent.com/u/13678719?v=4", "gravatar_id": "", "url": "https://api.github.com/users/QingGo", "html_url": "https://github.com/QingGo", "followers_url": "https://api.github.com/users/QingGo/followers", "following_url": "https://api.github.com/users/QingGo/following{/other_user}", "gists_url": "https://api.github.com/users/QingGo/gists{/gist_id}", "starred_url": "https://api.github.com/users/QingGo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/QingGo/subscriptions", "organizations_url": "https://api.github.com/users/QingGo/orgs", "repos_url": "https://api.github.com/users/QingGo/repos", "events_url": "https://api.github.com/users/QingGo/events{/privacy}", "received_events_url": "https://api.github.com/users/QingGo/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "While using verification_mode='no_checks' parameter in load_dataset() can bypass this validation, this solution is not intuitive or convenient for most users, especially those who are not familiar with all the parameters of the load_dataset() function.\n\n```python\nbook_corpus_ds = load_dataset(\n \"SaylorTwif...
2025-11-13T12:03:23
2025-11-16T15:39: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 When loading only a subset of dataset files while the dataset's README.md contains split metadata, the system throws a NonMatchingSplitsSizesError . This prevents users from loading partial datasets for quick validation in cases of poor network conditions or very large datasets. ### Steps to reproduce the bug 1. Use the Hugging Face `datasets` library to load a dataset with only specific files specified 2. Ensure the dataset repository has split metadata defined in README.md 3. Observe the error when attempting to load a subset of files ```python # Example code that triggers the error from datasets import load_dataset book_corpus_ds = load_dataset( "SaylorTwift/the_pile_books3_minus_gutenberg", name="default", data_files="data/train-00000-of-00213-312fd8d7a3c58a63.parquet", split="train", cache_dir="./data" ) ``` ### Error Message ``` Traceback (most recent call last): File "/Users/QingGo/code/llm_learn/src/data/clean_cc_bc.py", line 13, in <module> book_corpus_ds = load_dataset( "SaylorTwift/the_pile_books3_minus_gutenberg", ... File "/Users/QingGo/code/llm_learn/.venv/lib/python3.13/site-packages/datasets/utils/info_utils.py", line 77, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.exceptions.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=106199627990.47722, num_examples=192661, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=454897326, num_examples=905, shard_lengths=None, dataset_name='the_pile_books3_minus_gutenberg')}] ``` ### Expected behavior When loading partial dataset files, the system should: 1. Skip the `NonMatchingSplitsSizesError` validation, OR 2. Only log a warning message instead of raising an error ### Environment info - `datasets` version: 4.3.0 - Platform: macOS-15.7.1-arm64-arm-64bit-Mach-O - Python version: 3.13.2 - `huggingface_hub` version: 0.36.0 - PyArrow version: 22.0.0 - Pandas version: 2.3.3 - `fsspec` version: 2025.9.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7867/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/7867/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7866
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7866/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7866/comments
https://api.github.com/repos/huggingface/datasets/issues/7866/events
https://github.com/huggingface/datasets/pull/7866
3,620,436,248
PR_kwDODunzps6zL7Sz
7,866
docs: add Python version requirement note to installation section
{ "login": "ananthasai-2006", "id": 222381706, "node_id": "U_kgDODUFGig", "avatar_url": "https://avatars.githubusercontent.com/u/222381706?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ananthasai-2006", "html_url": "https://github.com/ananthasai-2006", "followers_url": "https://api.github.com/users/ananthasai-2006/followers", "following_url": "https://api.github.com/users/ananthasai-2006/following{/other_user}", "gists_url": "https://api.github.com/users/ananthasai-2006/gists{/gist_id}", "starred_url": "https://api.github.com/users/ananthasai-2006/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ananthasai-2006/subscriptions", "organizations_url": "https://api.github.com/users/ananthasai-2006/orgs", "repos_url": "https://api.github.com/users/ananthasai-2006/repos", "events_url": "https://api.github.com/users/ananthasai-2006/events{/privacy}", "received_events_url": "https://api.github.com/users/ananthasai-2006/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-13T09:54:35
2025-11-13T09:54:35
null
NONE
null
null
null
null
Added note about Python version requirement for conda installation.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7866/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/7866/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7866", "html_url": "https://github.com/huggingface/datasets/pull/7866", "diff_url": "https://github.com/huggingface/datasets/pull/7866.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7866.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7865
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7865/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7865/comments
https://api.github.com/repos/huggingface/datasets/issues/7865/events
https://github.com/huggingface/datasets/pull/7865
3,620,116,195
PR_kwDODunzps6zK2H_
7,865
[FEAT] MIDI feature support
{ "login": "frascuchon", "id": 2518789, "node_id": "MDQ6VXNlcjI1MTg3ODk=", "avatar_url": "https://avatars.githubusercontent.com/u/2518789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/frascuchon", "html_url": "https://github.com/frascuchon", "followers_url": "https://api.github.com/users/frascuchon/followers", "following_url": "https://api.github.com/users/frascuchon/following{/other_user}", "gists_url": "https://api.github.com/users/frascuchon/gists{/gist_id}", "starred_url": "https://api.github.com/users/frascuchon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frascuchon/subscriptions", "organizations_url": "https://api.github.com/users/frascuchon/orgs", "repos_url": "https://api.github.com/users/frascuchon/repos", "events_url": "https://api.github.com/users/frascuchon/events{/privacy}", "received_events_url": "https://api.github.com/users/frascuchon/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7865). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-13T08:31:51
2025-11-14T13:58:52
null
NONE
null
null
null
null
This PR adds a new `Midi` feature for reading and importing MIDI files into the datasets.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7865/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/7865/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7865", "html_url": "https://github.com/huggingface/datasets/pull/7865", "diff_url": "https://github.com/huggingface/datasets/pull/7865.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7865.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7864
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7864/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7864/comments
https://api.github.com/repos/huggingface/datasets/issues/7864/events
https://github.com/huggingface/datasets/issues/7864
3,619,137,823
I_kwDODunzps7Xt6kf
7,864
add_column and add_item erroneously(?) require new_fingerprint parameter
{ "login": "echthesia", "id": 17151810, "node_id": "MDQ6VXNlcjE3MTUxODEw", "avatar_url": "https://avatars.githubusercontent.com/u/17151810?v=4", "gravatar_id": "", "url": "https://api.github.com/users/echthesia", "html_url": "https://github.com/echthesia", "followers_url": "https://api.github.com/users/echthesia/followers", "following_url": "https://api.github.com/users/echthesia/following{/other_user}", "gists_url": "https://api.github.com/users/echthesia/gists{/gist_id}", "starred_url": "https://api.github.com/users/echthesia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/echthesia/subscriptions", "organizations_url": "https://api.github.com/users/echthesia/orgs", "repos_url": "https://api.github.com/users/echthesia/repos", "events_url": "https://api.github.com/users/echthesia/events{/privacy}", "received_events_url": "https://api.github.com/users/echthesia/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Take this with a grain of salt, this is just my personal understanding:\nWhile you technically can overwrite the new_fingerprint with a string, e.g.\n```python\nt = d.add_column(\"new_column\", col_value, new_fingerprint=\"dummy_fp\")\nassert t._fingerprint == \"dummy_fp\" # this is true and will pass\n```\nthis ...
2025-11-13T02:56:49
2025-12-07T14:41:40
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 Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, which has the fingerprint parameter listed as optional; is there any reason it shouldn't be optional in these methods as well? ### Steps to reproduce the bug Reproduction steps: 1. Look at the function signature for add_column: https://github.com/huggingface/datasets/blob/17f40a318a1f8c7d33c2a4dd17934f81d14a7f57/src/datasets/arrow_dataset.py#L6078 2. Repeat for add_item: https://github.com/huggingface/datasets/blob/17f40a318a1f8c7d33c2a4dd17934f81d14a7f57/src/datasets/arrow_dataset.py#L6336 ### Expected behavior add_column and add_item should either set the fingerprint parameter to optional or include it in their docstrings ### Environment info Not environment-dependent
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7864/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/7864/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7863
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7863/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7863/comments
https://api.github.com/repos/huggingface/datasets/issues/7863/events
https://github.com/huggingface/datasets/issues/7863
3,618,836,821
I_kwDODunzps7XsxFV
7,863
Support hosting lance / vortex / iceberg / zarr datasets on huggingface hub
{ "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
[ "Kudos!", "So cool ! Would love to see support for lance :)", "@lhoestq thanks for your support! Any suggestions across `datasets` or `huggingface_hub` projects to make this happen?\n\nI just noticed this blog post: https://huggingface.co/blog/streaming-datasets\n\nDo you know if `hfFileSystem` from `huggingfac...
2025-11-13T00:51:07
2025-11-26T14:10:29
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 Huggingface datasets has great support for large tabular datasets in parquet with large partitions. I would love to see two things in the future: - equivalent support for `lance`, `vortex`, `iceberg`, `zarr` (in that order) in a way that I can stream them using the datasets library - more fine-grained control of streaming, so that I can stream at the partition / shard level ### Motivation I work with very large `lance` datasets on S3 and often require random access for AI/ML applications like multi-node training. I was able to achieve high throughput dataloading on a lance dataset with ~150B rows by building distributed dataloaders that can be scaled both vertically (until i/o and CPU are saturated), and then horizontally (to workaround network bottlenecks). Using this strategy I was able to achieve 10-20x the throughput of the streaming data loader from the `huggingface/datasets` library. I realized that these would be great features for huggingface to support natively ### Your contribution I'm not ready yet to make a PR but open to it with the right pointers!
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7863/reactions", "total_count": 23, "+1": 4, "-1": 0, "laugh": 2, "hooray": 2, "confused": 0, "heart": 5, "rocket": 8, "eyes": 2 }
https://api.github.com/repos/huggingface/datasets/issues/7863/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7862
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7862/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7862/comments
https://api.github.com/repos/huggingface/datasets/issues/7862/events
https://github.com/huggingface/datasets/pull/7862
3,617,947,090
PR_kwDODunzps6zDjEj
7,862
Add flatten_indices option to save_to_disk method
{ "login": "ArjunJagdale", "id": 142811259, "node_id": "U_kgDOCIMgew", "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ArjunJagdale", "html_url": "https://github.com/ArjunJagdale", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "as said by @KCKawalkar used below script to test - \r\n\r\nBEFORE PATCH - \r\nTEST.PY:\r\n```\r\nfrom datasets import Dataset\r\nimport time\r\n\r\ndataset = Dataset.from_dict({'text': [f'sample {i}' for i in range(100000)]})\r\n\r\n# Baseline save (no indices)\r\nstart = time.time()\r\ndataset.save_to_disk('basel...
2025-11-12T19:38:51
2025-11-12T19:50:20
null
CONTRIBUTOR
null
null
null
null
Added flatten_indices parameter to control index flattening during dataset saving. Solves #7861 This PR introduces a new optional argument, flatten_indices, to the save_to_disk methods in both Dataset and DatasetDict. The change allows users to skip the expensive index-flattening step when saving datasets that already use index mappings (e.g., after filter() or shuffle()), resulting in significant speed improvements for large datasets while maintaining backward compatibility. While not a huge absolute difference at 100K rows, the improvement scales significantly with larger datasets (millions of rows). This patch gives users control — they can disable flattening when they don’t need it, avoiding unnecessary rewrites. @lhoestq WDYT?
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7862/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/7862/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7862", "html_url": "https://github.com/huggingface/datasets/pull/7862", "diff_url": "https://github.com/huggingface/datasets/pull/7862.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7862.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7861
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7861/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7861/comments
https://api.github.com/repos/huggingface/datasets/issues/7861/events
https://github.com/huggingface/datasets/issues/7861
3,611,821,713
I_kwDODunzps7XSAaR
7,861
Performance Issue: save_to_disk() 200-1200% slower due to unconditional flatten_indices()
{ "login": "KCKawalkar", "id": 222552287, "node_id": "U_kgDODUPg3w", "avatar_url": "https://avatars.githubusercontent.com/u/222552287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KCKawalkar", "html_url": "https://github.com/KCKawalkar", "followers_url": "https://api.github.com/users/KCKawalkar/followers", "following_url": "https://api.github.com/users/KCKawalkar/following{/other_user}", "gists_url": "https://api.github.com/users/KCKawalkar/gists{/gist_id}", "starred_url": "https://api.github.com/users/KCKawalkar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KCKawalkar/subscriptions", "organizations_url": "https://api.github.com/users/KCKawalkar/orgs", "repos_url": "https://api.github.com/users/KCKawalkar/repos", "events_url": "https://api.github.com/users/KCKawalkar/events{/privacy}", "received_events_url": "https://api.github.com/users/KCKawalkar/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-11T11:05:38
2025-11-11T11:05:38
null
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
## 🐛 Bug Description The `save_to_disk()` method unconditionally calls `flatten_indices()` when `_indices` is not None, causing severe performance degradation for datasets processed with filtering, shuffling, or multiprocessed mapping operations. **Root cause**: This line rebuilds the entire dataset unnecessarily: ```python dataset = self.flatten_indices() if self._indices is not None else self ``` ## 📊 Performance Impact | Dataset Size | Operation | Save Time | Slowdown | |-------------|-----------|-----------|----------| | 100K | Baseline (no indices) | 0.027s | - | | 100K | Filtered (with indices) | 0.146s | **+431%** | | 100K | Shuffled (with indices) | 0.332s | **+1107%** | | 250K | Shuffled (with indices) | 0.849s | **+1202%** | ## 🔄 Reproduction ```python from datasets import Dataset import time # Create dataset dataset = Dataset.from_dict({'text': [f'sample {i}' for i in range(100000)]}) # Baseline save (no indices) start = time.time() dataset.save_to_disk('baseline') baseline_time = time.time() - start # Filtered save (creates indices) filtered = dataset.filter(lambda x: True) start = time.time() filtered.save_to_disk('filtered') filtered_time = time.time() - start print(f"Baseline: {baseline_time:.3f}s") print(f"Filtered: {filtered_time:.3f}s") print(f"Slowdown: {(filtered_time/baseline_time-1)*100:.1f}%") ``` **Expected output**: Filtered dataset is 400-1000% slower than baseline ## 💡 Proposed Solution Add optional parameter to control flattening: ```python def save_to_disk(self, dataset_path, flatten_indices=True): dataset = self.flatten_indices() if (self._indices is not None and flatten_indices) else self # ... rest of save logic ``` **Benefits**: - ✅ Immediate performance improvement for users who don't need flattening - ✅ Backwards compatible (default behavior unchanged) - ✅ Simple implementation ## 🌍 Environment - **datasets version**: 2.x - **Python**: 3.10+ - **OS**: Linux/macOS/Windows ## 📈 Impact This affects **most ML preprocessing workflows** that filter/shuffle datasets before saving. Performance degradation scales exponentially with dataset size, making it a critical bottleneck for production systems. ## 🔗 Additional Resources We have comprehensive test scripts demonstrating this across multiple scenarios if needed for further investigation.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7861/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/7861/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7860
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7860/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7860/comments
https://api.github.com/repos/huggingface/datasets/issues/7860/events
https://github.com/huggingface/datasets/pull/7860
3,610,706,034
PR_kwDODunzps6yrHQN
7,860
Support loading local arrow datasets via load_dataset
{ "login": "gstrat88", "id": 16986130, "node_id": "MDQ6VXNlcjE2OTg2MTMw", "avatar_url": "https://avatars.githubusercontent.com/u/16986130?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gstrat88", "html_url": "https://github.com/gstrat88", "followers_url": "https://api.github.com/users/gstrat88/followers", "following_url": "https://api.github.com/users/gstrat88/following{/other_user}", "gists_url": "https://api.github.com/users/gstrat88/gists{/gist_id}", "starred_url": "https://api.github.com/users/gstrat88/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gstrat88/subscriptions", "organizations_url": "https://api.github.com/users/gstrat88/orgs", "repos_url": "https://api.github.com/users/gstrat88/repos", "events_url": "https://api.github.com/users/gstrat88/events{/privacy}", "received_events_url": "https://api.github.com/users/gstrat88/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[]
2025-11-11T04:58:33
2025-11-11T20:58:46
null
NONE
null
null
null
null
Load_dataset will handle local saved datasets that way #7018
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7860/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/7860/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7860", "html_url": "https://github.com/huggingface/datasets/pull/7860", "diff_url": "https://github.com/huggingface/datasets/pull/7860.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7860.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7859
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7859/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7859/comments
https://api.github.com/repos/huggingface/datasets/issues/7859/events
https://github.com/huggingface/datasets/pull/7859
3,608,586,063
PR_kwDODunzps6yj-aZ
7,859
fix some broken links
{ "login": "julien-c", "id": 326577, "node_id": "MDQ6VXNlcjMyNjU3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/326577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julien-c", "html_url": "https://github.com/julien-c", "followers_url": "https://api.github.com/users/julien-c/followers", "following_url": "https://api.github.com/users/julien-c/following{/other_user}", "gists_url": "https://api.github.com/users/julien-c/gists{/gist_id}", "starred_url": "https://api.github.com/users/julien-c/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/julien-c/subscriptions", "organizations_url": "https://api.github.com/users/julien-c/orgs", "repos_url": "https://api.github.com/users/julien-c/repos", "events_url": "https://api.github.com/users/julien-c/events{/privacy}", "received_events_url": "https://api.github.com/users/julien-c/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_7859). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-10T15:34:46
2025-11-10T17:11:07
2025-11-10T17:11:05
MEMBER
null
null
null
null
would be cool to automate finding those broken links as i think there might be many of them @lhoestq @albertvillanova
{ "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/7859/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/7859/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7859", "html_url": "https://github.com/huggingface/datasets/pull/7859", "diff_url": "https://github.com/huggingface/datasets/pull/7859.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7859.patch", "merged_at": "2025-11-10T17:11:05" }
true
https://api.github.com/repos/huggingface/datasets/issues/7858
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7858/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7858/comments
https://api.github.com/repos/huggingface/datasets/issues/7858/events
https://github.com/huggingface/datasets/pull/7858
3,605,471,548
PR_kwDODunzps6yZq4r
7,858
Support downloading specific splits in `load_dataset`
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "@CloseChoice This looks great! You're absolutely right about the missing comparison - that's a critical bug I missed. ", "@lhoestq just resolved the conflicts inflicted by the latest changes. Thought it might be good giving this a shot now before more changes mess with this PR." ]
2025-11-09T20:44:00
2025-12-10T12:23:51
null
CONTRIBUTOR
null
null
null
null
This is PR builds on top of #7706 to revive the unfinished #6832 but isn't just cleaning up things, here are some important changes: - `download_mode="FORCE_REDOWNLOAD"` is interpreted as always creating a clean slate, that means that even if we already did: ```python load_dataset("<name>") load_dataset("<name>", split="train", download_mode="force_redownload") ``` This makes sure that only the train dataset is available after executing both. This was different in the original PR, which proposed that train and test would be available. - `download_mode="REUSE_DATASET_IF_EXISTS"` is interpreted as only ever adding new data, never redownloading OR deleting other splits. This was different in the original PR, where ```python load_dataset("<name>", split="test") load_dataset("<name>", split="train") ``` resulted in only the train data being available, which I deem very unintuitive and probably not what users want. Also I argue that this is just the first step to a more user friendly partial loading when specifying percentages (or maybe even single instances) via the ReadInstructions, and then doing ```python load_dataset("<name>", split="test[:10%]") load_dataset("<name>", split="test[10%:]") ``` should result IMO in the whole dataset being cached locally without redownloads. Furthermore this PR fixes a couple issues with the previous PR, e.g. a [missing comparison](https://github.com/huggingface/datasets/pull/7706/files#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R877) and adding tests for the proposed changes in behaviour, which would both fail on @ArjunJagdale's original PR. Todo: - [ ] update docs? Future outlook (just my opinions and up for debate): As mentioned before, I would see this as just a step towards the feature of partial percentage loading (though how the API should behave in that case is not entirely clear for me now) and maybe we could introduce another `download_mode="FORCE_REDOWNLOAD_SPLIT"`, which makes sure that even if a split is specified, only the referenced split is redownloaded and everything else left unchanged, this would then allow users more granular control over what they want to redownload. @lhoestq very curious to get your opinion on this.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7858/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 2, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7858/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7858", "html_url": "https://github.com/huggingface/datasets/pull/7858", "diff_url": "https://github.com/huggingface/datasets/pull/7858.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7858.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7856
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7856/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7856/comments
https://api.github.com/repos/huggingface/datasets/issues/7856/events
https://github.com/huggingface/datasets/issues/7856
3,603,729,142
I_kwDODunzps7WzIr2
7,856
Missing transcript column when loading a local dataset with "audiofolder"
{ "login": "gweltou", "id": 10166907, "node_id": "MDQ6VXNlcjEwMTY2OTA3", "avatar_url": "https://avatars.githubusercontent.com/u/10166907?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gweltou", "html_url": "https://github.com/gweltou", "followers_url": "https://api.github.com/users/gweltou/followers", "following_url": "https://api.github.com/users/gweltou/following{/other_user}", "gists_url": "https://api.github.com/users/gweltou/gists{/gist_id}", "starred_url": "https://api.github.com/users/gweltou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gweltou/subscriptions", "organizations_url": "https://api.github.com/users/gweltou/orgs", "repos_url": "https://api.github.com/users/gweltou/repos", "events_url": "https://api.github.com/users/gweltou/events{/privacy}", "received_events_url": "https://api.github.com/users/gweltou/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "First bad commit 5c8869f8c36dbc8c8d423030b7b7c4fd64f8c729\n\nEDIT: This is not a bug or a regression. It was a breaking change introduced in the commit I mentioned and was also documented in there. The docs state how to handle this now, see https://huggingface.co/docs/datasets/main/en/audio_load#audiofolder-with-m...
2025-11-08T16:27:58
2025-11-09T12:13:38
2025-11-09T12:13:38
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 My local dataset is not properly loaded when using `load_dataset("audiofolder", data_dir="my_dataset")` with a `jsonl` metadata file. Only the `audio` column is read while the `transcript` column is not. The last tested `datasets` version where the behavior was still correct is 2.18.0. ### Steps to reproduce the bug Dataset directory structure: ``` my_dataset/ - data/ - test/ - 54db8760de3cfbff3c8a36a36b4d0f77_00390.0_04583.0.mp3 - 54db8760de3cfbff3c8a36a36b4d0f77_04583.0_05730.0.mp3 - ... - metadata.jsonl ``` `metadata.jsonl` file content: ``` {"file_name": "data/test/54db8760de3cfbff3c8a36a36b4d0f77_00390.0_04583.0.mp3", "transcript": "Ata tudoù penaos e tro ar bed ?"} {"file_name": "data/test/54db8760de3cfbff3c8a36a36b4d0f77_04583.0_05730.0.mp3", "transcript": "Ur gwir blijadur eo adkavout ac'hanoc'h hiziv."} ... ``` ```python3 my_dataset = load_dataset("audiofolder", data_dir="my_dataset") print(my_dataset) ''' DatasetDict({ test: Dataset({ features: ['audio'], num_rows: 347 }) }) ''' print(my_dataset['test'][0]) ''' {'audio': <datasets.features._torchcodec.AudioDecoder object at 0x75ffcd172510>} ''' ``` ### Expected behavior Being able to access the `transcript` column in the loaded dataset. ### Environment info - `datasets` version: 4.4.1 - Platform: Linux-6.5.0-45-generic-x86_64-with-glibc2.39 - Python version: 3.13.9 - `huggingface_hub` version: 1.1.2 - PyArrow version: 22.0.0 - Pandas version: 2.3.3 - `fsspec` version: 2025.10.0 Note: same issue with `datasets` v3.6.0
{ "login": "gweltou", "id": 10166907, "node_id": "MDQ6VXNlcjEwMTY2OTA3", "avatar_url": "https://avatars.githubusercontent.com/u/10166907?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gweltou", "html_url": "https://github.com/gweltou", "followers_url": "https://api.github.com/users/gweltou/followers", "following_url": "https://api.github.com/users/gweltou/following{/other_user}", "gists_url": "https://api.github.com/users/gweltou/gists{/gist_id}", "starred_url": "https://api.github.com/users/gweltou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gweltou/subscriptions", "organizations_url": "https://api.github.com/users/gweltou/orgs", "repos_url": "https://api.github.com/users/gweltou/repos", "events_url": "https://api.github.com/users/gweltou/events{/privacy}", "received_events_url": "https://api.github.com/users/gweltou/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7856/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/7856/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7855
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7855/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7855/comments
https://api.github.com/repos/huggingface/datasets/issues/7855/events
https://github.com/huggingface/datasets/pull/7855
3,602,216,153
PR_kwDODunzps6yPIRy
7,855
ArXiv -> HF Papers
{ "login": "qgallouedec", "id": 45557362, "node_id": "MDQ6VXNlcjQ1NTU3MzYy", "avatar_url": "https://avatars.githubusercontent.com/u/45557362?v=4", "gravatar_id": "", "url": "https://api.github.com/users/qgallouedec", "html_url": "https://github.com/qgallouedec", "followers_url": "https://api.github.com/users/qgallouedec/followers", "following_url": "https://api.github.com/users/qgallouedec/following{/other_user}", "gists_url": "https://api.github.com/users/qgallouedec/gists{/gist_id}", "starred_url": "https://api.github.com/users/qgallouedec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qgallouedec/subscriptions", "organizations_url": "https://api.github.com/users/qgallouedec/orgs", "repos_url": "https://api.github.com/users/qgallouedec/repos", "events_url": "https://api.github.com/users/qgallouedec/events{/privacy}", "received_events_url": "https://api.github.com/users/qgallouedec/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_7855). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-07T22:16:36
2025-11-10T15:01:13
2025-11-10T15:01:13
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/7855/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/7855/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7855", "html_url": "https://github.com/huggingface/datasets/pull/7855", "diff_url": "https://github.com/huggingface/datasets/pull/7855.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7855.patch", "merged_at": "2025-11-10T15:01:12" }
true
https://api.github.com/repos/huggingface/datasets/issues/7854
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7854/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7854/comments
https://api.github.com/repos/huggingface/datasets/issues/7854/events
https://github.com/huggingface/datasets/pull/7854
3,596,750,849
PR_kwDODunzps6x8yiy
7,854
[Distributed] split_dataset_by_node() gives the same number of examples for each node
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7854). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Making this work with multiple workers could create a lot of communication for not a lo...
2025-11-06T17:14:18
2025-11-10T14:57:44
null
MEMBER
null
null
null
null
this works: ```python import torch.distributed as dist from datasets import IterableDataset from datasets.distributed import split_dataset_by_node from collections import Counter def g(shards): for shard in shards: # shards don't have the same length num_examples = 3 + shard for i in range(num_examples): yield {"shard": f"{shard=}", "i": i} if __name__ == "__main__": dist.init_process_group(backend="gloo") rank, world_size = dist.get_rank(), dist.get_world_size() num_shards = 6 ds = IterableDataset.from_generator(g, gen_kwargs={"shards": list(range(num_shards))}) ds = split_dataset_by_node(ds, rank=rank, world_size=world_size) # Check that each rank has the same number of examples # and show the number of examples per shard and per rank counter = Counter(ds["shard"]) print(f"# {rank=}\ttotal={counter.total()}\t{counter}", flush=True) # torchrun --nproc_per_node 2 script.py # rank=0 total=16 Counter({'shard=4': 7, 'shard=2': 5, 'shard=0': 4}) # rank=1 total=16 Counter({'shard=3': 6, 'shard=5': 6, 'shard=1': 4}) ``` TODO: make it work with DataLoader (communicate with main process to know when the node runs out of data ?)
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7854/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/7854/timeline
null
null
true
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7854", "html_url": "https://github.com/huggingface/datasets/pull/7854", "diff_url": "https://github.com/huggingface/datasets/pull/7854.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7854.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7853
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7853/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7853/comments
https://api.github.com/repos/huggingface/datasets/issues/7853/events
https://github.com/huggingface/datasets/pull/7853
3,596,232,275
PR_kwDODunzps6x7ARa
7,853
Fix embed storage nifti
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/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_7853). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-06T15:07:58
2025-11-06T17:04:57
2025-11-06T16:20:36
CONTRIBUTOR
null
null
null
null
Fixes #7852 Adds `embed_storage` function and allows gzipped files to be loaded correctly from local storage.
{ "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/7853/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/7853/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7853", "html_url": "https://github.com/huggingface/datasets/pull/7853", "diff_url": "https://github.com/huggingface/datasets/pull/7853.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7853.patch", "merged_at": "2025-11-06T16:20:36" }
true
https://api.github.com/repos/huggingface/datasets/issues/7852
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7852/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7852/comments
https://api.github.com/repos/huggingface/datasets/issues/7852/events
https://github.com/huggingface/datasets/issues/7852
3,595,450,602
I_kwDODunzps7WTjjq
7,852
Problems with NifTI
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "> 2. when uploading via the niftifolder feature, the resulting parquet only contains relative paths to the nifti files:\n\nwhat did you use to upload the dataset ? iirc push_to_hub() does upload the bytes as well, but to_parquet() doesn't", "> > 2. when uploading via the niftifolder feature, the resulting parque...
2025-11-06T11:46:33
2025-11-06T16:20:38
2025-11-06T16:20:38
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 There are currently 2 problems with the new NifTI feature: 1. dealing with zipped files, this is mentioned and explained [here](https://github.com/huggingface/datasets/pull/7815#issuecomment-3496199503) 2. when uploading via the `niftifolder` feature, the resulting parquet only contains relative paths to the nifti files: ```bash table['nifti'] <pyarrow.lib.ChunkedArray object at 0x798245d37d60> [ -- is_valid: all not null -- child 0 type: binary [ null, null, null, null, null, null ] -- child 1 type: string [ "/home/tobias/programming/github/datasets/nifti_extracted/T1.nii", "/home/tobias/programming/github/datasets/nifti_extracted/T2-interleaved.nii", "/home/tobias/programming/github/datasets/nifti_extracted/T2.nii", "/home/tobias/programming/github/datasets/nifti_extracted/T2_-interleaved.nii", "/home/tobias/programming/github/datasets/nifti_extracted/T2_.nii", "/home/tobias/programming/github/datasets/nifti_extracted/fieldmap.nii" ] ] ``` instead of containing bytes. The code is copy pasted from PDF, so I wonder what is going wrong here. ### Steps to reproduce the bug see the linked comment ### Expected behavior downloading should work as smoothly as for pdf ### Environment info - `datasets` version: 4.4.2.dev0 - Platform: Linux-6.14.0-33-generic-x86_64-with-glibc2.39 - Python version: 3.12.3 - `huggingface_hub` version: 0.35.3 - PyArrow version: 21.0.0 - Pandas version: 2.3.3 - `fsspec` version: 2025.9.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7852/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/7852/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7851
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7851/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7851/comments
https://api.github.com/repos/huggingface/datasets/issues/7851/events
https://github.com/huggingface/datasets/pull/7851
3,592,252,116
PR_kwDODunzps6xtvVj
7,851
Add fasta support
{ "login": "georgia-hf", "id": 209551168, "node_id": "U_kgDODH1_QA", "avatar_url": "https://avatars.githubusercontent.com/u/209551168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/georgia-hf", "html_url": "https://github.com/georgia-hf", "followers_url": "https://api.github.com/users/georgia-hf/followers", "following_url": "https://api.github.com/users/georgia-hf/following{/other_user}", "gists_url": "https://api.github.com/users/georgia-hf/gists{/gist_id}", "starred_url": "https://api.github.com/users/georgia-hf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/georgia-hf/subscriptions", "organizations_url": "https://api.github.com/users/georgia-hf/orgs", "repos_url": "https://api.github.com/users/georgia-hf/repos", "events_url": "https://api.github.com/users/georgia-hf/events{/privacy}", "received_events_url": "https://api.github.com/users/georgia-hf/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7851). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "A few comments:\r\n\r\n- Have you tried using this with longer sequences? @UriNeri deve...
2025-11-05T18:11:12
2025-11-15T00:51:53
null
NONE
null
null
null
null
This PR adds support for FASTA files conversion to Parquet.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7851/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/7851/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7851", "html_url": "https://github.com/huggingface/datasets/pull/7851", "diff_url": "https://github.com/huggingface/datasets/pull/7851.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7851.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7850
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7850/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7850/comments
https://api.github.com/repos/huggingface/datasets/issues/7850/events
https://github.com/huggingface/datasets/pull/7850
3,591,758,675
PR_kwDODunzps6xsGi_
7,850
dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7850). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-05T16:02:23
2025-11-05T16:05:40
2025-11-05T16:02:32
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/7850/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/7850/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7850", "html_url": "https://github.com/huggingface/datasets/pull/7850", "diff_url": "https://github.com/huggingface/datasets/pull/7850.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7850.patch", "merged_at": "2025-11-05T16:02:32" }
true
https://api.github.com/repos/huggingface/datasets/issues/7849
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7849/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7849/comments
https://api.github.com/repos/huggingface/datasets/issues/7849/events
https://github.com/huggingface/datasets/pull/7849
3,591,749,675
PR_kwDODunzps6xsEm0
7,849
release: 4.4.1
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7849). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-05T16:00:05
2025-11-05T16:03:06
2025-11-05T16:00:46
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/7849/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/7849/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7849", "html_url": "https://github.com/huggingface/datasets/pull/7849", "diff_url": "https://github.com/huggingface/datasets/pull/7849.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7849.patch", "merged_at": "2025-11-05T16:00:46" }
true
https://api.github.com/repos/huggingface/datasets/issues/7848
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7848/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7848/comments
https://api.github.com/repos/huggingface/datasets/issues/7848/events
https://github.com/huggingface/datasets/pull/7848
3,590,024,849
PR_kwDODunzps6xmPYZ
7,848
DOC: remove mode parameter in docstring of pdf and video feature
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-11-05T09:11:46
2025-11-05T14:42:59
2025-11-05T14:04:03
CONTRIBUTOR
null
null
null
null
closes #7841 As mentioned in the issue `mode` has been copy-pasted but isn't used in these files.
{ "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/7848/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/7848/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7848", "html_url": "https://github.com/huggingface/datasets/pull/7848", "diff_url": "https://github.com/huggingface/datasets/pull/7848.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7848.patch", "merged_at": "2025-11-05T14:04:03" }
true
https://api.github.com/repos/huggingface/datasets/issues/7847
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7847/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7847/comments
https://api.github.com/repos/huggingface/datasets/issues/7847/events
https://github.com/huggingface/datasets/pull/7847
3,586,135,727
PR_kwDODunzps6xZZb9
7,847
Better streaming retries (504 and 429)
{ "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_7847). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-04T11:23:58
2025-11-04T13:52:25
2025-11-04T13:52:22
MEMBER
null
null
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/7847/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/7847/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7847", "html_url": "https://github.com/huggingface/datasets/pull/7847", "diff_url": "https://github.com/huggingface/datasets/pull/7847.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7847.patch", "merged_at": "2025-11-04T13:52:22" }
true
https://api.github.com/repos/huggingface/datasets/issues/7846
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7846/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7846/comments
https://api.github.com/repos/huggingface/datasets/issues/7846/events
https://github.com/huggingface/datasets/pull/7846
3,585,966,335
PR_kwDODunzps6xYzny
7,846
set dev version
{ "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_7846). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-04T10:44:27
2025-11-04T10:49:24
2025-11-04T10:44:37
MEMBER
null
null
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/7846/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/7846/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7846", "html_url": "https://github.com/huggingface/datasets/pull/7846", "diff_url": "https://github.com/huggingface/datasets/pull/7846.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7846.patch", "merged_at": "2025-11-04T10:44:37" }
true
https://api.github.com/repos/huggingface/datasets/issues/7845
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7845/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7845/comments
https://api.github.com/repos/huggingface/datasets/issues/7845/events
https://github.com/huggingface/datasets/pull/7845
3,585,926,647
PR_kwDODunzps6xYq2r
7,845
Release: 4.4.0
{ "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_7845). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-04T10:35:33
2025-11-04T10:39:47
2025-11-04T10:36:37
MEMBER
null
null
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/7845/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/7845/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7845", "html_url": "https://github.com/huggingface/datasets/pull/7845", "diff_url": "https://github.com/huggingface/datasets/pull/7845.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7845.patch", "merged_at": "2025-11-04T10:36:37" }
true
https://api.github.com/repos/huggingface/datasets/issues/7844
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7844/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7844/comments
https://api.github.com/repos/huggingface/datasets/issues/7844/events
https://github.com/huggingface/datasets/pull/7844
3,582,354,507
PR_kwDODunzps6xM9hd
7,844
support fsspec 2025.10.0
{ "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_7844). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-03T14:34:29
2025-11-03T14:51:33
2025-11-03T14:51:32
MEMBER
null
null
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/7844/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/7844/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7844", "html_url": "https://github.com/huggingface/datasets/pull/7844", "diff_url": "https://github.com/huggingface/datasets/pull/7844.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7844.patch", "merged_at": "2025-11-03T14:51:32" }
true
https://api.github.com/repos/huggingface/datasets/issues/7843
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7843/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7843/comments
https://api.github.com/repos/huggingface/datasets/issues/7843/events
https://github.com/huggingface/datasets/pull/7843
3,582,311,403
PR_kwDODunzps6xM0sq
7,843
fix column with transform
{ "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_7843). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-03T14:23:01
2025-11-03T14:34:15
2025-11-03T14:34:12
MEMBER
null
null
null
null
fix https://github.com/huggingface/datasets/issues/7842
{ "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/7843/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/7843/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7843", "html_url": "https://github.com/huggingface/datasets/pull/7843", "diff_url": "https://github.com/huggingface/datasets/pull/7843.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7843.patch", "merged_at": "2025-11-03T14:34:12" }
true
https://api.github.com/repos/huggingface/datasets/issues/7842
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7842/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7842/comments
https://api.github.com/repos/huggingface/datasets/issues/7842/events
https://github.com/huggingface/datasets/issues/7842
3,582,182,995
I_kwDODunzps7Vg8ZT
7,842
Transform with columns parameter triggers on non-specified column access
{ "login": "mr-brobot", "id": 18426892, "node_id": "MDQ6VXNlcjE4NDI2ODky", "avatar_url": "https://avatars.githubusercontent.com/u/18426892?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mr-brobot", "html_url": "https://github.com/mr-brobot", "followers_url": "https://api.github.com/users/mr-brobot/followers", "following_url": "https://api.github.com/users/mr-brobot/following{/other_user}", "gists_url": "https://api.github.com/users/mr-brobot/gists{/gist_id}", "starred_url": "https://api.github.com/users/mr-brobot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mr-brobot/subscriptions", "organizations_url": "https://api.github.com/users/mr-brobot/orgs", "repos_url": "https://api.github.com/users/mr-brobot/repos", "events_url": "https://api.github.com/users/mr-brobot/events{/privacy}", "received_events_url": "https://api.github.com/users/mr-brobot/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-11-03T13:55:27
2025-11-03T14:34:13
2025-11-03T14:34:13
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 Iterating over a [`Column`](https://github.com/huggingface/datasets/blob/8b1bd4ec1cc9e9ce022f749abb6485ef984ae7c0/src/datasets/arrow_dataset.py#L633-L692) iterates through the parent [`Dataset`](https://github.com/huggingface/datasets/blob/8b1bd4ec1cc9e9ce022f749abb6485ef984ae7c0/src/datasets/arrow_dataset.py#L695) and applies all formatting/transforms on each row, regardless of which column is being accessed. This causes an error when transforms depend on columns not present in the projection. ### Steps to reproduce the bug ### Load a dataset with multiple columns ```python ds = load_dataset("mrbrobot/isic-2024", split="train") ``` ### Define a transform that specifies an input column ```python def image_transform(batch): batch["image"] = batch["image"] # KeyError when batch doesn't contain "image" return batch # apply transform only to image column ds = ds.with_format("torch") ds = ds.with_transform(image_transform, columns=["image"], output_all_columns=True) ``` ### Iterate over non-specified column ```python # iterate over a different column, triggers the transform on each row, but batch doesn't contain "image" for t in ds["target"]: # KeyError: 'image' print(t) ``` ### Expected behavior If a user iterates over `ds["target"]` and the transform specifies `columns=["image"]`, the transform should be skipped. ### Environment info `datasets`: 4.2.0 Python: 3.12.12 Linux: Debian 11.11
{ "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/7842/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/7842/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7841
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7841/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7841/comments
https://api.github.com/repos/huggingface/datasets/issues/7841/events
https://github.com/huggingface/datasets/issues/7841
3,579,506,747
I_kwDODunzps7VWvA7
7,841
DOC: `mode` parameter on pdf and video features unused
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "They seem to be artefacts from a copy-paste of the Image feature ^^' we should remove them" ]
2025-11-02T12:37:47
2025-11-05T14:04:04
2025-11-05T14:04:04
CONTRIBUTOR
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
Following up on https://github.com/huggingface/datasets/pull/7840 I asked claude code to check for undocumented parameters for other features and it found: - mode parameter on video is documented but unused: https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py#L48-L49 - the same goes for the mode parameter on the pdf feature: https://github.com/huggingface/datasets/blob/main/src/datasets/features/pdf.py#L47-L48 I assume checking if these modes can be supported and otherwise removing them is the way to go here.
{ "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/7841/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/7841/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7840
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7840/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7840/comments
https://api.github.com/repos/huggingface/datasets/issues/7840/events
https://github.com/huggingface/datasets/pull/7840
3,579,486,348
PR_kwDODunzps6xDsbG
7,840
Add num channels to audio
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/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_7840). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-11-02T12:10:24
2025-11-03T17:37:48
2025-11-03T14:24:11
CONTRIBUTOR
null
null
null
null
Fixes #7837 We currently have the [mono attribute for Audio documented](https://github.com/huggingface/datasets/blob/41c05299348a499807432ab476e1cdc4143c8772/src/datasets/features/audio.py#L52C1-L54C22) but not used anywhere resulting in confusion for users. Since torchcodec does not know this attribute I suggest using `num_channels` (currently supported `None` (leave unchanged), mono: `1`, stereo: `2`). I could also add a mono attribute but found that to be more confusing for developers and would restrict us if at any point in the future more than 2 channels are supported.
{ "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/7840/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/7840/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7840", "html_url": "https://github.com/huggingface/datasets/pull/7840", "diff_url": "https://github.com/huggingface/datasets/pull/7840.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7840.patch", "merged_at": "2025-11-03T14:24:11" }
true
https://api.github.com/repos/huggingface/datasets/issues/7839
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7839/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7839/comments
https://api.github.com/repos/huggingface/datasets/issues/7839/events
https://github.com/huggingface/datasets/issues/7839
3,579,121,843
I_kwDODunzps7VVRCz
7,839
datasets doesn't work with python 3.14
{ "login": "zachmoshe", "id": 4789087, "node_id": "MDQ6VXNlcjQ3ODkwODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4789087?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zachmoshe", "html_url": "https://github.com/zachmoshe", "followers_url": "https://api.github.com/users/zachmoshe/followers", "following_url": "https://api.github.com/users/zachmoshe/following{/other_user}", "gists_url": "https://api.github.com/users/zachmoshe/gists{/gist_id}", "starred_url": "https://api.github.com/users/zachmoshe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zachmoshe/subscriptions", "organizations_url": "https://api.github.com/users/zachmoshe/orgs", "repos_url": "https://api.github.com/users/zachmoshe/repos", "events_url": "https://api.github.com/users/zachmoshe/events{/privacy}", "received_events_url": "https://api.github.com/users/zachmoshe/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Thanks for the report.\nHave you tried on main? This should work, there was recently a PR merged to address this problem, see #7817", "Works on main 👍 \nWhat's the release schedule for `datasets`? Seems like a cadence of ~2weeks so I assume a real version is due pretty soon?", "let's say we do a new release l...
2025-11-02T09:09:06
2025-11-04T14:02:25
2025-11-04T14:02:25
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 Seems that `dataset` doesn't work with python==3.14. The root cause seems to be something with a `deel` API that was changed. ``` TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given ``` ### Steps to reproduce the bug (on a new folder) uv init uv python pin 3.14 uv add datasets uv run python (in REPL) import datasets datasets.load_dataset("cais/mmlu", "all") # will fail on any dataset ``` >>> datasets.load_dataset("cais/mmlu", "all") Traceback (most recent call last): File "<python-input-2>", line 1, in <module> datasets.load_dataset("cais/mmlu", "all") ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/load.py", line 1397, in load_dataset builder_instance = load_dataset_builder( path=path, ...<10 lines>... **config_kwargs, ) File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/load.py", line 1185, in load_dataset_builder builder_instance._use_legacy_cache_dir_if_possible(dataset_module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/builder.py", line 615, in _use_legacy_cache_dir_if_possible self._check_legacy_cache2(dataset_module) or self._check_legacy_cache() or None ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/builder.py", line 487, in _check_legacy_cache2 config_id = self.config.name + "-" + Hasher.hash({"data_files": self.config.data_files}) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/fingerprint.py", line 188, in hash return cls.hash_bytes(dumps(value)) ~~~~~^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 120, in dumps dump(obj, file) ~~~~^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 114, in dump Pickler(file, recurse=True).dump(obj) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 428, in dump StockPickler.dump(self, obj) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 498, in dump self.save(obj) ~~~~~~~~~^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 70, in save dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 422, in save StockPickler.save(self, obj, save_persistent_id) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 572, in save f(self, obj) # Call unbound method with explicit self ~^^^^^^^^^^^ File "/Users/zmoshe/temp/test_datasets_py3.14/.venv/lib/python3.14/site-packages/dill/_dill.py", line 1262, in save_module_dict StockPickler.save_dict(pickler, obj) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/Users/zmoshe/.local/uv/python/cpython-3.14.0rc2-macos-aarch64-none/lib/python3.14/pickle.py", line 1064, in save_dict self._batch_setitems(obj.items(), obj) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given ``` ### Expected behavior should work. ### Environment info datasets==v4.3.0 python==3.14
{ "login": "zachmoshe", "id": 4789087, "node_id": "MDQ6VXNlcjQ3ODkwODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4789087?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zachmoshe", "html_url": "https://github.com/zachmoshe", "followers_url": "https://api.github.com/users/zachmoshe/followers", "following_url": "https://api.github.com/users/zachmoshe/following{/other_user}", "gists_url": "https://api.github.com/users/zachmoshe/gists{/gist_id}", "starred_url": "https://api.github.com/users/zachmoshe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zachmoshe/subscriptions", "organizations_url": "https://api.github.com/users/zachmoshe/orgs", "repos_url": "https://api.github.com/users/zachmoshe/repos", "events_url": "https://api.github.com/users/zachmoshe/events{/privacy}", "received_events_url": "https://api.github.com/users/zachmoshe/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7839/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/7839/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7837
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7837/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7837/comments
https://api.github.com/repos/huggingface/datasets/issues/7837/events
https://github.com/huggingface/datasets/issues/7837
3,575,454,726
I_kwDODunzps7VHRwG
7,837
mono parameter to the Audio feature is missing
{ "login": "ernestum", "id": 1250234, "node_id": "MDQ6VXNlcjEyNTAyMzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1250234?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ernestum", "html_url": "https://github.com/ernestum", "followers_url": "https://api.github.com/users/ernestum/followers", "following_url": "https://api.github.com/users/ernestum/following{/other_user}", "gists_url": "https://api.github.com/users/ernestum/gists{/gist_id}", "starred_url": "https://api.github.com/users/ernestum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ernestum/subscriptions", "organizations_url": "https://api.github.com/users/ernestum/orgs", "repos_url": "https://api.github.com/users/ernestum/repos", "events_url": "https://api.github.com/users/ernestum/events{/privacy}", "received_events_url": "https://api.github.com/users/ernestum/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "Hey, we removed the misleading passage in the docstring and enabled support for `num_channels` as torchcodec does", "thanks!" ]
2025-10-31T15:41:39
2025-11-03T15:59:18
2025-11-03T14:24:12
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
According to the docs, there is a "mono" parameter to the Audio feature, which turns any stereo into mono. In practice the signal is not touched and the mono parameter, even though documented, does not exist. https://github.com/huggingface/datasets/blob/41c05299348a499807432ab476e1cdc4143c8772/src/datasets/features/audio.py#L52C1-L54C22
{ "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/7837/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/7837/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7836
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7836/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7836/comments
https://api.github.com/repos/huggingface/datasets/issues/7836/events
https://github.com/huggingface/datasets/pull/7836
3,562,316,362
PR_kwDODunzps6wLuh9
7,836
Python 3.14
{ "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_7836). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-28T16:11:13
2025-10-31T17:27:17
2025-10-31T17:27:15
MEMBER
null
null
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/7836/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/7836/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7836", "html_url": "https://github.com/huggingface/datasets/pull/7836", "diff_url": "https://github.com/huggingface/datasets/pull/7836.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7836.patch", "merged_at": "2025-10-31T17:27:15" }
true
https://api.github.com/repos/huggingface/datasets/issues/7835
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7835/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7835/comments
https://api.github.com/repos/huggingface/datasets/issues/7835/events
https://github.com/huggingface/datasets/pull/7835
3,560,909,796
PR_kwDODunzps6wHK9e
7,835
Add DICOM support
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Awesome ! For the docs should we rename https://huggingface.co/docs/datasets/nifti_dataset to medical_imaging_dataset and have both DICOM and NIfTI together or have separate pages in you opinion ?", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7835). All of your document...
2025-10-28T10:41:05
2025-11-26T15:25:03
null
CONTRIBUTOR
null
null
null
null
supports #7804 Add support for the dicom file format. This PR follows PR #7815 and PR #7325 closely. Remarkable differences: I made sure that we can load all of pydicom's test data, and encountered the `force=True` parameter that we explicitly support here. This allows to trying to load corrupted dicom files, we explicitly test this! There is one dataset with all of dicom's test data on huggingface which can be loaded using this branch with the following script: ```python from datasets import load_dataset from datasets import Features, ClassLabel from datasets.features import Dicom features = Features({ "dicom": Dicom(force=True), # necessary to be able to load one corrupted file "label": ClassLabel(num_classes=2) }) ds = load_dataset("TobiasPitters/dicom-sample-dataset", features=features) error_count = 0 for idx, item in enumerate(ds["test"]): dicom = item["dicom"] try: print(f"Type: {type(dicom)}") if hasattr(dicom, 'PatientID'): print(f"PatientID: {dicom.PatientID}") if hasattr(dicom, 'StudyInstanceUID'): print(f"StudyInstanceUID: {dicom.StudyInstanceUID}") if hasattr(dicom, 'Modality'): print(f"Modality: {dicom.Modality}") except Exception as e: error_count += 1 print(e) print(f"Finished processing with {error_count} errors.") ``` todo: - [x] add docs (will do so soon)
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7835/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 2, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7835/timeline
null
null
true
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7835", "html_url": "https://github.com/huggingface/datasets/pull/7835", "diff_url": "https://github.com/huggingface/datasets/pull/7835.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7835.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7834
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7834/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7834/comments
https://api.github.com/repos/huggingface/datasets/issues/7834/events
https://github.com/huggingface/datasets/issues/7834
3,558,802,959
I_kwDODunzps7UHwYP
7,834
Audio.cast_column() or Audio.decode_example() causes Colab kernel crash (std::bad_alloc)
{ "login": "rachidio", "id": 2559570, "node_id": "MDQ6VXNlcjI1NTk1NzA=", "avatar_url": "https://avatars.githubusercontent.com/u/2559570?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rachidio", "html_url": "https://github.com/rachidio", "followers_url": "https://api.github.com/users/rachidio/followers", "following_url": "https://api.github.com/users/rachidio/following{/other_user}", "gists_url": "https://api.github.com/users/rachidio/gists{/gist_id}", "starred_url": "https://api.github.com/users/rachidio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rachidio/subscriptions", "organizations_url": "https://api.github.com/users/rachidio/orgs", "repos_url": "https://api.github.com/users/rachidio/repos", "events_url": "https://api.github.com/users/rachidio/events{/privacy}", "received_events_url": "https://api.github.com/users/rachidio/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! `datasets` v4 uses `torchcodec` for audio decoding (previous versions were using `soundfile`). What is your `torchcodec` version ? Can you try other versions of `torchcodec` and see if it works ?", "When I install `datasets` with `pip install datasets[audio]` it install this version of `torchcodec`:\n```\nN...
2025-10-27T22:02:00
2025-11-15T16:28:04
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 the huggingface datasets.Audio feature to decode a local or remote (public HF dataset) audio file inside Google Colab, the notebook kernel crashes with std::bad_alloc (C++ memory allocation failure). The crash happens even with a minimal code example and valid .wav file that can be read successfully using soundfile. Here is a sample Collab notebook to reproduce the problem. https://colab.research.google.com/drive/1nnb-GC5748Tux3xcYRussCGp2x-zM9Id?usp=sharing code sample: ``` ... audio_dataset = audio_dataset.cast_column("audio", Audio(sampling_rate=16000)) # Accessing the first element crashes the Colab kernel print(audio_dataset[0]["audio"]) ``` Error log ``` WARNING what(): std::bad_alloc terminate called after throwing an instance of 'std::bad_alloc' ``` Environment Platform: Google Colab (Python 3.12.12) datasets Version: 4.3.0 soundfile Version: 0.13.1 torchaudio Version: 2.8.0+cu126 Thanks in advance to help me on this error I get approx two weeks now after it was working before. Regards ### Steps to reproduce the bug https://colab.research.google.com/drive/1nnb-GC5748Tux3xcYRussCGp2x-zM9Id?usp=sharing ### Expected behavior Loading the audio and decode it. It should safely return: { "path": "path/filaname.wav", "array": np.ndarray([...]), "sampling_rate": 16000 } ### Environment info Environment Platform: Google Colab (Python 3.12.12) datasets Version: 4.3.0 soundfile Version: 0.13.1 torchaudio Version: 2.8.0+cu126
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7834/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7834/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7833
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7833/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7833/comments
https://api.github.com/repos/huggingface/datasets/issues/7833/events
https://github.com/huggingface/datasets/pull/7833
3,556,014,911
PR_kwDODunzps6v2gAI
7,833
Fix: Properly render [!TIP] block in stream.shuffle documentation
{ "login": "art-test-stack", "id": 110672812, "node_id": "U_kgDOBpi7rA", "avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4", "gravatar_id": "", "url": "https://api.github.com/users/art-test-stack", "html_url": "https://github.com/art-test-stack", "followers_url": "https://api.github.com/users/art-test-stack/followers", "following_url": "https://api.github.com/users/art-test-stack/following{/other_user}", "gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}", "starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions", "organizations_url": "https://api.github.com/users/art-test-stack/orgs", "repos_url": "https://api.github.com/users/art-test-stack/repos", "events_url": "https://api.github.com/users/art-test-stack/events{/privacy}", "received_events_url": "https://api.github.com/users/art-test-stack/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-10-27T10:09:31
2025-10-28T15:57:33
2025-10-28T15:57:33
CONTRIBUTOR
null
null
null
null
The second line starting with the bracket doesn't properly render on huggingface/docs. Added "> " to address it. In the client documentation, the markdown 'TIP' paragraph in docs/stream#shuffle is not well executed, not as the other in the same page / while markdown is correctly considering it. Documentation: https://huggingface.co/docs/datasets/v4.3.0/en/stream#shuffle:~:text=%5B!TIP%5D%5BIterableDataset.shuffle()%5D(/docs/datasets/v4.3.0/en/package_reference/main_classes%23datasets.IterableDataset.shuffle)%20will%20also%20shuffle%20the%20order%20of%20the%20shards%20if%20the%20dataset%20is%20sharded%20into%20multiple%20files. Github source: https://github.com/huggingface/datasets/blob/main/docs/source/stream.mdx#:~:text=Casting%20only%20works%20if%20the%20original%20feature%20type%20and%20new%20feature%20type%20are%20compatible.%20For%20example%2C%20you%20can%20cast%20a%20column%20with%20the%20feature%20type%20Value(%27int32%27)%20to%20Value(%27bool%27)%20if%20the%20original%20column%20only%20contains%20ones%20and%20zeros.
{ "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/7833/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/7833/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7833", "html_url": "https://github.com/huggingface/datasets/pull/7833", "diff_url": "https://github.com/huggingface/datasets/pull/7833.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7833.patch", "merged_at": "2025-10-28T15:57:33" }
true
https://api.github.com/repos/huggingface/datasets/issues/7832
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7832/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7832/comments
https://api.github.com/repos/huggingface/datasets/issues/7832/events
https://github.com/huggingface/datasets/issues/7832
3,555,991,552
I_kwDODunzps7T9CAA
7,832
[DOCS][minor] TIPS paragraph not compiled in docs/stream
{ "login": "art-test-stack", "id": 110672812, "node_id": "U_kgDOBpi7rA", "avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4", "gravatar_id": "", "url": "https://api.github.com/users/art-test-stack", "html_url": "https://github.com/art-test-stack", "followers_url": "https://api.github.com/users/art-test-stack/followers", "following_url": "https://api.github.com/users/art-test-stack/following{/other_user}", "gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}", "starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions", "organizations_url": "https://api.github.com/users/art-test-stack/orgs", "repos_url": "https://api.github.com/users/art-test-stack/repos", "events_url": "https://api.github.com/users/art-test-stack/events{/privacy}", "received_events_url": "https://api.github.com/users/art-test-stack/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-10-27T10:03:22
2025-10-27T10:10:54
2025-10-27T10:10:54
CONTRIBUTOR
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
In the client documentation, the markdown 'TIP' paragraph for paragraph in docs/stream#shuffle is not well executed — not as the other in the same page / while markdown is correctly considering it. Documentation: https://huggingface.co/docs/datasets/v4.3.0/en/stream#shuffle:~:text=%5B!TIP%5D%5BIterableDataset.shuffle()%5D(/docs/datasets/v4.3.0/en/package_reference/main_classes%23datasets.IterableDataset.shuffle)%20will%20also%20shuffle%20the%20order%20of%20the%20shards%20if%20the%20dataset%20is%20sharded%20into%20multiple%20files. Github source: https://github.com/huggingface/datasets/blob/main/docs/source/stream.mdx#:~:text=Casting%20only%20works%20if%20the%20original%20feature%20type%20and%20new%20feature%20type%20are%20compatible.%20For%20example%2C%20you%20can%20cast%20a%20column%20with%20the%20feature%20type%20Value(%27int32%27)%20to%20Value(%27bool%27)%20if%20the%20original%20column%20only%20contains%20ones%20and%20zeros.
{ "login": "art-test-stack", "id": 110672812, "node_id": "U_kgDOBpi7rA", "avatar_url": "https://avatars.githubusercontent.com/u/110672812?v=4", "gravatar_id": "", "url": "https://api.github.com/users/art-test-stack", "html_url": "https://github.com/art-test-stack", "followers_url": "https://api.github.com/users/art-test-stack/followers", "following_url": "https://api.github.com/users/art-test-stack/following{/other_user}", "gists_url": "https://api.github.com/users/art-test-stack/gists{/gist_id}", "starred_url": "https://api.github.com/users/art-test-stack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/art-test-stack/subscriptions", "organizations_url": "https://api.github.com/users/art-test-stack/orgs", "repos_url": "https://api.github.com/users/art-test-stack/repos", "events_url": "https://api.github.com/users/art-test-stack/events{/privacy}", "received_events_url": "https://api.github.com/users/art-test-stack/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7832/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/7832/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7831
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7831/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7831/comments
https://api.github.com/repos/huggingface/datasets/issues/7831/events
https://github.com/huggingface/datasets/pull/7831
3,552,081,727
PR_kwDODunzps6vp0pz
7,831
resolves the ValueError: Unable to avoid copy while creating an array
{ "login": "ArjunJagdale", "id": 142811259, "node_id": "U_kgDOCIMgew", "avatar_url": "https://avatars.githubusercontent.com/u/142811259?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ArjunJagdale", "html_url": "https://github.com/ArjunJagdale", "followers_url": "https://api.github.com/users/ArjunJagdale/followers", "following_url": "https://api.github.com/users/ArjunJagdale/following{/other_user}", "gists_url": "https://api.github.com/users/ArjunJagdale/gists{/gist_id}", "starred_url": "https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArjunJagdale/subscriptions", "organizations_url": "https://api.github.com/users/ArjunJagdale/orgs", "repos_url": "https://api.github.com/users/ArjunJagdale/repos", "events_url": "https://api.github.com/users/ArjunJagdale/events{/privacy}", "received_events_url": "https://api.github.com/users/ArjunJagdale/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "## Also i have done some tests on real dataset\r\n\r\n### Tested with real datasets:\r\n- ✅ IMDB dataset with NumPy 1.26.4 and 2.3.4\r\n- ✅ Rotten Tomatoes dataset with NumPy 1.26.4 and 2.3.4\r\n- ✅ Artificial datasets with ClassLabel features\r\n\r\n### Results:\r\n- Stratified splits work correctly in both NumPy...
2025-10-25T08:13:54
2025-10-29T06:35:32
2025-10-28T16:10:43
CONTRIBUTOR
null
null
null
null
## Summary Fixes #7818 This PR resolves the `ValueError: Unable to avoid copy while creating an array` error that occurs when using `train_test_split` with `stratify_by_column` parameter in NumPy 2.0+. ## Changes - Wrapped the stratify column array access with `np.asarray()` in `arrow_dataset.py` - This allows NumPy 2.0 to make a copy when the Arrow array is non-contiguous in memory ## Testing - ✅ Tested with NumPy 2.3.4 - stratified splits work correctly - ✅ Tested with NumPy 1.26.4 - backward compatibility maintained - ✅ Verified class balance is preserved in stratified splits - ✅ Non-stratified splits continue to work as expected
{ "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/7831/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/7831/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7831", "html_url": "https://github.com/huggingface/datasets/pull/7831", "diff_url": "https://github.com/huggingface/datasets/pull/7831.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7831.patch", "merged_at": "2025-10-28T16:10:43" }
true
https://api.github.com/repos/huggingface/datasets/issues/7830
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7830/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7830/comments
https://api.github.com/repos/huggingface/datasets/issues/7830/events
https://github.com/huggingface/datasets/pull/7830
3,549,769,999
PR_kwDODunzps6viIQf
7,830
fix ci compressionfs
{ "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_7830). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-24T14:29:00
2025-10-24T14:46:34
2025-10-24T14:46:29
MEMBER
null
null
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/7830/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/7830/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7830", "html_url": "https://github.com/huggingface/datasets/pull/7830", "diff_url": "https://github.com/huggingface/datasets/pull/7830.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7830.patch", "merged_at": "2025-10-24T14:46:29" }
true
https://api.github.com/repos/huggingface/datasets/issues/7829
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7829/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7829/comments
https://api.github.com/repos/huggingface/datasets/issues/7829/events
https://github.com/huggingface/datasets/issues/7829
3,548,584,085
I_kwDODunzps7TgxiV
7,829
Memory leak / Large memory usage with num_workers = 0 and numerous dataset within DatasetDict
{ "login": "raphaelsty", "id": 24591024, "node_id": "MDQ6VXNlcjI0NTkxMDI0", "avatar_url": "https://avatars.githubusercontent.com/u/24591024?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raphaelsty", "html_url": "https://github.com/raphaelsty", "followers_url": "https://api.github.com/users/raphaelsty/followers", "following_url": "https://api.github.com/users/raphaelsty/following{/other_user}", "gists_url": "https://api.github.com/users/raphaelsty/gists{/gist_id}", "starred_url": "https://api.github.com/users/raphaelsty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raphaelsty/subscriptions", "organizations_url": "https://api.github.com/users/raphaelsty/orgs", "repos_url": "https://api.github.com/users/raphaelsty/repos", "events_url": "https://api.github.com/users/raphaelsty/events{/privacy}", "received_events_url": "https://api.github.com/users/raphaelsty/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Thanks for the report, this is possibly related #7722 and #7694.\n\nCould you pls provide steps to reproduce this?", "To overcome this issue right now I did simply reduce the size of the dataset and ended up running a for loop (my training has now a constant learning rate schedule). From what I understood, and I...
2025-10-24T09:51:38
2025-11-06T13:31:26
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 Hi team, first off, I love the datasets library! 🥰 I'm encountering a potential memory leak / increasing memory usage when training a model on a very large DatasetDict. Setup: I have a DatasetDict containing 362 distinct datasets, which sum up to ~2.8 billion rows. Training Task: I'm performing contrastive learning with SentenceTransformer and Accelerate on a single node with 4 H100, which requires me to sample from only one dataset at a time. Training Loop: At each training step, I sample ~16,000 examples from a single dataset, and then switch to a different dataset for the next step. I iterate through all 362 datasets this way. Problem: The process's memory usage continuously increases over time, eventually causing a stale status where GPUs would stop working. It seems memory from previously sampled datasets isn't being released. I've set num_workers=0 for all experiments. Chart 1: Standard DatasetDict The memory usage grows steadily until it make the training stale (RSS memory) <img width="773" height="719" alt="Image" src="https://github.com/user-attachments/assets/6606bef5-1153-4f2d-bf08-82da249d6e8d" /> Chart 2: IterableDatasetDict I also tried to use IterableDatasetDict and IterableDataset. The memory curve is "smoother," but the result is the same: it grows indefinitely and the training become stale. <img width="339" height="705" alt="Image" src="https://github.com/user-attachments/assets/ee90c1a1-6c3b-4135-9edc-90955cb1695a" /> Any feedback or guidance on how to manage this memory would be greatly appreciated! ### Steps to reproduce the bug WIP, I'll add some code that manage to reproduce this error, but not straightforward. ### Expected behavior The memory usage should remain relatively constant or plateau after a few steps. Memory used for sampling one dataset should be released before or during the sampling of the next dataset. ### Environment info Python: 3.12 Datasets: 4.3.0 SentenceTransformers: 5.1.1
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7829/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/datasets/issues/7829/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7828
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7828/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7828/comments
https://api.github.com/repos/huggingface/datasets/issues/7828/events
https://github.com/huggingface/datasets/pull/7828
3,545,562,802
PR_kwDODunzps6vT3rI
7,828
set dev version
{ "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_7828). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-23T16:34:44
2025-10-23T16:37:32
2025-10-23T16:34:50
MEMBER
null
null
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/7828/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/7828/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7828", "html_url": "https://github.com/huggingface/datasets/pull/7828", "diff_url": "https://github.com/huggingface/datasets/pull/7828.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7828.patch", "merged_at": "2025-10-23T16:34:50" }
true
https://api.github.com/repos/huggingface/datasets/issues/7827
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7827/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7827/comments
https://api.github.com/repos/huggingface/datasets/issues/7827/events
https://github.com/huggingface/datasets/pull/7827
3,545,543,117
PR_kwDODunzps6vTz7T
7,827
release: 4.3.0
{ "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_7827). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-23T16:30:48
2025-10-23T16:33:38
2025-10-23T16:31:57
MEMBER
null
null
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/7827/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/7827/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7827", "html_url": "https://github.com/huggingface/datasets/pull/7827", "diff_url": "https://github.com/huggingface/datasets/pull/7827.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7827.patch", "merged_at": "2025-10-23T16:31:56" }
true
https://api.github.com/repos/huggingface/datasets/issues/7826
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7826/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7826/comments
https://api.github.com/repos/huggingface/datasets/issues/7826/events
https://github.com/huggingface/datasets/pull/7826
3,545,534,210
PR_kwDODunzps6vTyKR
7,826
picklable batch_fn
{ "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_7826). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-23T16:28:52
2025-10-23T16:31:59
2025-10-23T16:29:06
MEMBER
null
null
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/7826/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/7826/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7826", "html_url": "https://github.com/huggingface/datasets/pull/7826", "diff_url": "https://github.com/huggingface/datasets/pull/7826.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7826.patch", "merged_at": "2025-10-23T16:29:06" }
true
https://api.github.com/repos/huggingface/datasets/issues/7825
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7825/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7825/comments
https://api.github.com/repos/huggingface/datasets/issues/7825/events
https://github.com/huggingface/datasets/pull/7825
3,541,176,759
PR_kwDODunzps6vFc3H
7,825
Fix ArrowInvalid for large variables
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "@lhoestq : from what I see in the CI logs ( tests/test_arrow_dataset.py::test_map_int32_overflow \r\n/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/multiprocess/resource_tracker.py:219: UserWarning: resource_tracker: There appear to be 24 leaked shared_memory objects to clean up at shutdown\r\n...
2025-10-22T14:42:47
2025-12-10T10:28:37
null
CONTRIBUTOR
null
null
null
null
Fixes #7821 In addition to the solution proposed in the issue, I encountered we also need to support 64bit types when writing using the `RecordBatchStreamWriter`. Not sure if we want to create such large objects in the CI, but this is the only way to test that the issue is fixed, therefore I added the unit test.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7825/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/7825/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7825", "html_url": "https://github.com/huggingface/datasets/pull/7825", "diff_url": "https://github.com/huggingface/datasets/pull/7825.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7825.patch", "merged_at": null }
true
https://api.github.com/repos/huggingface/datasets/issues/7824
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7824/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7824/comments
https://api.github.com/repos/huggingface/datasets/issues/7824/events
https://github.com/huggingface/datasets/pull/7824
3,531,240,254
PR_kwDODunzps6ukXe9
7,824
Fix batch_size default description in to_polars docstrings
{ "login": "albertvillanova", "id": 8515462, "node_id": "MDQ6VXNlcjg1MTU0NjI=", "avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4", "gravatar_id": "", "url": "https://api.github.com/users/albertvillanova", "html_url": "https://github.com/albertvillanova", "followers_url": "https://api.github.com/users/albertvillanova/followers", "following_url": "https://api.github.com/users/albertvillanova/following{/other_user}", "gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}", "starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions", "organizations_url": "https://api.github.com/users/albertvillanova/orgs", "repos_url": "https://api.github.com/users/albertvillanova/repos", "events_url": "https://api.github.com/users/albertvillanova/events{/privacy}", "received_events_url": "https://api.github.com/users/albertvillanova/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_7824). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-20T06:38:19
2025-10-20T13:49:25
2025-10-20T13:49:24
MEMBER
null
null
null
null
Fix batch_size default description in `to_polars` docstrings.
{ "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/7824/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/7824/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7824", "html_url": "https://github.com/huggingface/datasets/pull/7824", "diff_url": "https://github.com/huggingface/datasets/pull/7824.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7824.patch", "merged_at": "2025-10-20T13:49:24" }
true
https://api.github.com/repos/huggingface/datasets/issues/7823
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7823/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7823/comments
https://api.github.com/repos/huggingface/datasets/issues/7823/events
https://github.com/huggingface/datasets/pull/7823
3,525,440,347
PR_kwDODunzps6uRkGa
7,823
Fix random seed on shuffle and interleave_datasets
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/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_7823). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Cool ! To avoid unwanted side effects it could be implemented for every class instead o...
2025-10-17T10:21:47
2025-10-24T14:21:22
2025-10-24T14:04:36
CONTRIBUTOR
null
null
null
null
closes #7567 Add `shift_rngs` method to `ExamplesIterable` that is called directly after sharding. If a generator is available (not the case for all subclasses) we update the seed of the generator by shifting by the worker_id. ~This is just the fix for `shuffle`, in the corresponding issue `interleave_datasets` is mentioned as well, which won't be fixed with this approach.~ EDIT: This is a fix for `shuffle` and `interleave_datasets`. Adding recursivity to `shift_rngs` solved `interleave_datasets` as well. Not sure though if this is completely safe or if we could destroy something with that. I don't think so but could be wrong and appreciate some guidance from the maintainers. I also checked, on a single_worker we are always handing over `index=0` so that case preserves the seed the user specified.
{ "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/7823/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/7823/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7823", "html_url": "https://github.com/huggingface/datasets/pull/7823", "diff_url": "https://github.com/huggingface/datasets/pull/7823.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7823.patch", "merged_at": "2025-10-24T14:04:36" }
true
https://api.github.com/repos/huggingface/datasets/issues/7822
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7822/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7822/comments
https://api.github.com/repos/huggingface/datasets/issues/7822/events
https://github.com/huggingface/datasets/pull/7822
3,525,309,651
PR_kwDODunzps6uRKIJ
7,822
Retry open hf file
{ "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_7822). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-17T09:48:51
2025-10-17T09:52:05
2025-10-17T09:51:35
MEMBER
null
null
null
null
Fix this error ```python File "/workdir/.venv/lib/python3.13/site-packages/datasets/utils/file_utils.py", line 934, in xopen file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open() File "/workdir/.venv/lib/python3.13/site-packages/fsspec/core.py", line 147, in open return self.__enter__() ~~~~~~~~~~~~~~^^ File "/workdir/.venv/lib/python3.13/site-packages/fsspec/core.py", line 105, in __enter__ f = self.fs.open(self.path, mode=mode) File "/workdir/.venv/lib/python3.13/site-packages/fsspec/spec.py", line 1338, in open f = self._open( path, ...<4 lines>... **kwargs, ) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 275, in _open return HfFileSystemFile(self, path, mode=mode, revision=revision, block_size=block_size, **kwargs) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 950, in __init__ self.resolved_path = fs.resolve_path(path, revision=revision) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 198, in resolve_path repo_and_revision_exist, err = self._repo_and_revision_exist(repo_type, repo_id, revision) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_file_system.py", line 125, in _repo_and_revision_exist self._api.repo_info( ~~~~~~~~~~~~~~~~~~~^ repo_id, revision=revision, repo_type=repo_type, timeout=constants.HF_HUB_ETAG_TIMEOUT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2864, in repo_info return method( repo_id, ...<4 lines>... files_metadata=files_metadata, ) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2721, in dataset_info r = get_session().get(path, headers=headers, timeout=timeout, params=params) File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/workdir/.venv/lib/python3.13/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/workdir/.venv/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 95, in send return super().send(request, *args, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/.venv/lib/python3.13/site-packages/requests/adapters.py", line 690, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: e7e1ae72-54a0-4ce4-b011-144fb7a3fb06)') ``` which could also be related to ```python File "/workdir/.venv/lib/python3.13/site-packages/datasets/utils/file_utils.py", line 1364, in _iter_from_urlpaths raise FileNotFoundError(urlpath) FileNotFoundError: hf://datasets/.../train-00013-of-00031.parquet ```
{ "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/7822/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/7822/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7822", "html_url": "https://github.com/huggingface/datasets/pull/7822", "diff_url": "https://github.com/huggingface/datasets/pull/7822.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7822.patch", "merged_at": "2025-10-17T09:51:35" }
true
https://api.github.com/repos/huggingface/datasets/issues/7821
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7821/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7821/comments
https://api.github.com/repos/huggingface/datasets/issues/7821/events
https://github.com/huggingface/datasets/issues/7821
3,520,913,195
I_kwDODunzps7R3N8r
7,821
Building a dataset with large variable size arrays results in error ArrowInvalid: Value X too large to fit in C integer type
{ "login": "kkoutini", "id": 51880718, "node_id": "MDQ6VXNlcjUxODgwNzE4", "avatar_url": "https://avatars.githubusercontent.com/u/51880718?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kkoutini", "html_url": "https://github.com/kkoutini", "followers_url": "https://api.github.com/users/kkoutini/followers", "following_url": "https://api.github.com/users/kkoutini/following{/other_user}", "gists_url": "https://api.github.com/users/kkoutini/gists{/gist_id}", "starred_url": "https://api.github.com/users/kkoutini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kkoutini/subscriptions", "organizations_url": "https://api.github.com/users/kkoutini/orgs", "repos_url": "https://api.github.com/users/kkoutini/repos", "events_url": "https://api.github.com/users/kkoutini/events{/privacy}", "received_events_url": "https://api.github.com/users/kkoutini/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Thanks for reporting ! You can fix this by specifying the output type explicitly and use `LargeList` which uses int64 for offsets:\n\n```python\nfeatures = Features({\"audio\": LargeList(Value(\"uint16\"))})\nds = ds.map(..., features=features)\n```\n\nIt would be cool to improve `list_of_pa_arrays_to_pyarrow_list...
2025-10-16T08:45:17
2025-10-20T13:42:05
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 I used map to store raw audio waveforms of variable lengths in a column of a dataset the `map` call fails with ArrowInvalid: Value X too large to fit in C integer type. ``` Traceback (most recent call last): Traceback (most recent call last): File "...lib/python3.12/site-packages/multiprocess/pool.py", line 125, in worker result = (True, func(*args, **kwds)) ^^^^^^^^^^^^^^^^^^^ File "...lib/python3.12/site-packages/datasets/utils/py_utils.py", line 678, in _write_generator_to_queue for i, result in enumerate(func(**kwargs)): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "...lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3526, in _map_single writer.write_batch(batch) File "...lib/python3.12/site-packages/datasets/arrow_writer.py", line 605, in write_batch arrays.append(pa.array(typed_sequence)) ^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/array.pxi", line 252, in pyarrow.lib.array File "pyarrow/array.pxi", line 114, in pyarrow.lib._handle_arrow_array_protocol File "...lib/python3.12/site-packages/datasets/arrow_writer.py", line 225, in __arrow_array__ out = list_of_np_array_to_pyarrow_listarray(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...lib/python3.12/site-packages/datasets/features/features.py", line 1538, in list_of_np_array_to_pyarrow_listarray return list_of_pa_arrays_to_pyarrow_listarray( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...lib/python3.12/site-packages/datasets/features/features.py", line 1530, in list_of_pa_arrays_to_pyarrow_listarray offsets = pa.array(offsets, type=pa.int32()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/array.pxi", line 362, in pyarrow.lib.array File "pyarrow/array.pxi", line 87, in pyarrow.lib._ndarray_to_array File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Value 2148479376 too large to fit in C integer type ``` ### Steps to reproduce the bug Calling map on a dataset that returns a column with long 1d numpy arrays of variable length. Example: ```python # %% import logging import datasets import pandas as pd import numpy as np # %% def process_batch(batch, rank): res = [] for _ in batch["id"]: res.append(np.zeros((2**30)).astype(np.uint16)) return {"audio": res} if __name__ == "__main__": df = pd.DataFrame( { "id": list(range(400)), } ) ds = datasets.Dataset.from_pandas(df) try: from multiprocess import set_start_method set_start_method("spawn") except RuntimeError: print("Spawn method already set, continuing...") mapped_ds = ds.map( process_batch, batched=True, batch_size=2, with_rank=True, num_proc=2, cache_file_name="path_to_cache/tmp.arrow", writer_batch_size=200, remove_columns=ds.column_names, # disable_nullable=True, ) ``` ### Expected behavior I think the offsets should be pa.int64() if needed and not forced to be `pa.int32()` in https://github.com/huggingface/datasets/blob/3e13d30823f8ec498d56adbc18c6880a5463b313/src/datasets/features/features.py#L1535 ### Environment info - `datasets` version: 3.3.1 - Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.35 - Python version: 3.12.9 - `huggingface_hub` version: 0.29.0 - PyArrow version: 19.0.1 - Pandas version: 2.2.3 - `fsspec` version: 2024.12.0
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7821/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/7821/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7820
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7820/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7820/comments
https://api.github.com/repos/huggingface/datasets/issues/7820/events
https://github.com/huggingface/datasets/pull/7820
3,518,633,577
PR_kwDODunzps6t6suZ
7,820
Keep hffs cache in workers when streaming
{ "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_7820). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-15T15:51:28
2025-10-17T09:59:17
2025-10-17T09:59:16
MEMBER
null
null
null
null
(and also reorder the hffs args to improve caching) When using `DataLoader(iterable_dataset, num_workers=...)` the dataset is pickled and passed to the worker. However previously the resulting dataset would be in a process with an empty hffs cache. By keeping the cache attached to `IterableDataset`, the cached hffs instances are pickled with the dataset and re-populates the cache in the DataLoader workers this requires https://github.com/huggingface/huggingface_hub/pull/3443 to work effectively though, otherwise the unpickled hffs cache would start empty cc @andimarafioti @ltmeyer
{ "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/7820/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/7820/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7820", "html_url": "https://github.com/huggingface/datasets/pull/7820", "diff_url": "https://github.com/huggingface/datasets/pull/7820.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7820.patch", "merged_at": "2025-10-17T09:59:16" }
true
https://api.github.com/repos/huggingface/datasets/issues/7819
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7819/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7819/comments
https://api.github.com/repos/huggingface/datasets/issues/7819/events
https://github.com/huggingface/datasets/issues/7819
3,517,086,110
I_kwDODunzps7Ronme
7,819
Cannot download opus dataset
{ "login": "liamsun2019", "id": 51946663, "node_id": "MDQ6VXNlcjUxOTQ2NjYz", "avatar_url": "https://avatars.githubusercontent.com/u/51946663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liamsun2019", "html_url": "https://github.com/liamsun2019", "followers_url": "https://api.github.com/users/liamsun2019/followers", "following_url": "https://api.github.com/users/liamsun2019/following{/other_user}", "gists_url": "https://api.github.com/users/liamsun2019/gists{/gist_id}", "starred_url": "https://api.github.com/users/liamsun2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liamsun2019/subscriptions", "organizations_url": "https://api.github.com/users/liamsun2019/orgs", "repos_url": "https://api.github.com/users/liamsun2019/repos", "events_url": "https://api.github.com/users/liamsun2019/events{/privacy}", "received_events_url": "https://api.github.com/users/liamsun2019/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Hi ! it seems \"en-zh\" doesn't exist for this dataset\n\nYou can see the list of subsets here: https://huggingface.co/datasets/Helsinki-NLP/opus_books" ]
2025-10-15T09:06:19
2025-10-20T13:45:16
null
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
When I tried to download opus_books using: from datasets import load_dataset dataset = load_dataset("Helsinki-NLP/opus_books") I got the following errors: FileNotFoundError: Couldn't find any data file at /workspace/Helsinki-NLP/opus_books. Couldn't find 'Helsinki-NLP/opus_books' on the Hugging Face Hub either: LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on. I also tried: dataset = load_dataset("opus_books", "en-zh") and the errors remain the same. However, I can download "mlabonne/FineTome-100k" successfully. My datasets is version 4.2.0 Any clues? Big thanks.
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7819/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/7819/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7818
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7818/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7818/comments
https://api.github.com/repos/huggingface/datasets/issues/7818/events
https://github.com/huggingface/datasets/issues/7818
3,515,887,618
I_kwDODunzps7RkDAC
7,818
train_test_split and stratify breaks with Numpy 2.0
{ "login": "davebulaval", "id": 24845694, "node_id": "MDQ6VXNlcjI0ODQ1Njk0", "avatar_url": "https://avatars.githubusercontent.com/u/24845694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davebulaval", "html_url": "https://github.com/davebulaval", "followers_url": "https://api.github.com/users/davebulaval/followers", "following_url": "https://api.github.com/users/davebulaval/following{/other_user}", "gists_url": "https://api.github.com/users/davebulaval/gists{/gist_id}", "starred_url": "https://api.github.com/users/davebulaval/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davebulaval/subscriptions", "organizations_url": "https://api.github.com/users/davebulaval/orgs", "repos_url": "https://api.github.com/users/davebulaval/repos", "events_url": "https://api.github.com/users/davebulaval/events{/privacy}", "received_events_url": "https://api.github.com/users/davebulaval/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "I can't reproduce this. Could you pls provide an example with a public dataset/artificial dataset and show how you loaded that?\n\nThis works for me:\n\n```python\nimport numpy as np\nfrom datasets import Dataset, Features, ClassLabel, Value\n\ndata = {\"text\": [f\"sample_{i}\" for i in range(100)], \"label\": [i...
2025-10-15T00:01:19
2025-10-28T16:10:44
2025-10-28T16:10:44
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 As stated in the title, since Numpy changed in version >2.0 with copy, the stratify parameters break. e.g. `all_dataset.train_test_split(test_size=0.2,stratify_by_column="label")` returns a Numpy error. It works if you downgrade Numpy to a version lower than 2.0. ### Steps to reproduce the bug 1. Numpy > 2.0 2. `all_dataset.train_test_split(test_size=0.2,stratify_by_column="label")` ### Expected behavior It returns a stratified split as per the results of Numpy < 2.0 ### Environment info - `datasets` version: 2.14.4 - Platform: Linux-6.8.0-85-generic-x86_64-with-glibc2.35 - Python version: 3.13.7 - Huggingface_hub version: 0.34.4 - PyArrow version: 19.0.0 - Pandas version: 2.3.2
{ "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/7818/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/7818/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7817
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7817/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7817/comments
https://api.github.com/repos/huggingface/datasets/issues/7817/events
https://github.com/huggingface/datasets/pull/7817
3,515,755,952
PR_kwDODunzps6tw-GG
7,817
fix: better args passthrough for `_batch_setitems()`
{ "login": "sghng", "id": 58419736, "node_id": "MDQ6VXNlcjU4NDE5NzM2", "avatar_url": "https://avatars.githubusercontent.com/u/58419736?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sghng", "html_url": "https://github.com/sghng", "followers_url": "https://api.github.com/users/sghng/followers", "following_url": "https://api.github.com/users/sghng/following{/other_user}", "gists_url": "https://api.github.com/users/sghng/gists{/gist_id}", "starred_url": "https://api.github.com/users/sghng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sghng/subscriptions", "organizations_url": "https://api.github.com/users/sghng/orgs", "repos_url": "https://api.github.com/users/sghng/repos", "events_url": "https://api.github.com/users/sghng/events{/privacy}", "received_events_url": "https://api.github.com/users/sghng/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "@sghng There is a regression with python 3.13.8 when lm-eval is calling datasets load\r\n\r\n```python\r\nself = <test_llama3_2.TestLlama3_2 testMethod=test_llama3_2>\r\n\r\n def test_llama3_2(self):\r\n> self.quant_lm_eval()\r\n\r\ntests/models/test_llama3_2.py:35: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ...
2025-10-14T22:51:51
2025-10-28T17:32:12
2025-10-27T17:08:25
CONTRIBUTOR
null
null
null
null
In Python 3.14, there's a change in the signature of `_Pickler._batch_setitems`. It's changed to: ```python # pickle.py def _batch_setitems(self, items, obj): # Helper to batch up SETITEMS sequences; proto >= 1 only save = self.save write = self.write ``` To accomodate this, in `dill`, we have this compatibility code: ```python if sys.hexversion < 0x30E00A1: pickler._batch_setitems(iter(source.items())) else: pickler._batch_setitems(iter(source.items()), obj=obj) ``` Thus, the datasets package will emit this error ``` │ /Users/sghuang/mamba/envs/ds/lib/python3.14/site-packages/dill/_dill.py:1262 in save_module_dict │ │ │ │ 1259 │ │ if is_dill(pickler, child=False) and pickler._session: │ │ 1260 │ │ │ # we only care about session the first pass thru │ │ 1261 │ │ │ pickler._first_pass = False │ │ ❱ 1262 │ │ StockPickler.save_dict(pickler, obj) │ │ 1263 │ │ logger.trace(pickler, "# D2") │ │ 1264 │ return │ │ 1265 │ │ │ │ /Users/sghuang/mamba/envs/ds/lib/python3.14/pickle.py:1133 in save_dict │ │ │ │ 1130 │ │ print(f"Line number: {inspect.getsourcelines(method)[1]}") │ │ 1131 │ │ print(f"Full path: {inspect.getmodule(method)}") │ │ 1132 │ │ print(f"Class: {method.__qualname__}") │ │ ❱ 1133 │ │ self._batch_setitems(obj.items(), obj) │ │ 1134 │ │ │ 1135 │ dispatch[dict] = save_dict │ │ 1136 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given [NOTE] when serializing datasets.table.InMemoryTable state [NOTE] when serializing datasets.table.InMemoryTable object ``` To fix it, we update the signature of the `_batch_setitems` method defined in `utils/_dill.py`. This fix should be backward compatible, since the compatibility is handled by `dill`. This should close #7813. Similar to https://github.com/joblib/joblib/issues/1658. Related to https://github.com/uqfoundation/dill/pull/724.
{ "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/7817/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7817/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7817", "html_url": "https://github.com/huggingface/datasets/pull/7817", "diff_url": "https://github.com/huggingface/datasets/pull/7817.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7817.patch", "merged_at": "2025-10-27T17:08:25" }
true
https://api.github.com/repos/huggingface/datasets/issues/7816
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7816/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7816/comments
https://api.github.com/repos/huggingface/datasets/issues/7816/events
https://github.com/huggingface/datasets/issues/7816
3,512,210,206
I_kwDODunzps7RWBMe
7,816
disable_progress_bar() not working as expected
{ "login": "windmaple", "id": 5577741, "node_id": "MDQ6VXNlcjU1Nzc3NDE=", "avatar_url": "https://avatars.githubusercontent.com/u/5577741?v=4", "gravatar_id": "", "url": "https://api.github.com/users/windmaple", "html_url": "https://github.com/windmaple", "followers_url": "https://api.github.com/users/windmaple/followers", "following_url": "https://api.github.com/users/windmaple/following{/other_user}", "gists_url": "https://api.github.com/users/windmaple/gists{/gist_id}", "starred_url": "https://api.github.com/users/windmaple/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/windmaple/subscriptions", "organizations_url": "https://api.github.com/users/windmaple/orgs", "repos_url": "https://api.github.com/users/windmaple/repos", "events_url": "https://api.github.com/users/windmaple/events{/privacy}", "received_events_url": "https://api.github.com/users/windmaple/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "@xianbaoqian ", "Closing this one since it's a Xet issue." ]
2025-10-14T03:25:39
2025-10-14T23:49:26
2025-10-14T23:49:26
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
### Describe the bug Hi, I'm trying to load a dataset on Kaggle TPU image. There is some known compat issue with progress bar on Kaggle, so I'm trying to disable the progress bar globally. This does not work as you can see in [here](https://www.kaggle.com/code/windmaple/hf-datasets-issue). In contract, disabling progress bar for snapshot_download() works as expected as in [here](https://www.kaggle.com/code/windmaple/snapshot-download-error). ### Steps to reproduce the bug See this [notebook](https://www.kaggle.com/code/windmaple/hf-datasets-issue). There is sth. wrong with `shell_paraent`. ### Expected behavior The downloader should disable progress bar and move forward w/ no error. ### Environment info The latest version as I did: !pip install -U datasets ipywidgets ipykernel
{ "login": "windmaple", "id": 5577741, "node_id": "MDQ6VXNlcjU1Nzc3NDE=", "avatar_url": "https://avatars.githubusercontent.com/u/5577741?v=4", "gravatar_id": "", "url": "https://api.github.com/users/windmaple", "html_url": "https://github.com/windmaple", "followers_url": "https://api.github.com/users/windmaple/followers", "following_url": "https://api.github.com/users/windmaple/following{/other_user}", "gists_url": "https://api.github.com/users/windmaple/gists{/gist_id}", "starred_url": "https://api.github.com/users/windmaple/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/windmaple/subscriptions", "organizations_url": "https://api.github.com/users/windmaple/orgs", "repos_url": "https://api.github.com/users/windmaple/repos", "events_url": "https://api.github.com/users/windmaple/events{/privacy}", "received_events_url": "https://api.github.com/users/windmaple/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7816/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/7816/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7815
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7815/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7815/comments
https://api.github.com/repos/huggingface/datasets/issues/7815/events
https://github.com/huggingface/datasets/pull/7815
3,511,338,522
PR_kwDODunzps6tiDIT
7,815
Add nifti support
{ "login": "CloseChoice", "id": 31857876, "node_id": "MDQ6VXNlcjMxODU3ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CloseChoice", "html_url": "https://github.com/CloseChoice", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "repos_url": "https://api.github.com/users/CloseChoice/repos", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "received_events_url": "https://api.github.com/users/CloseChoice/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_7815). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Btw I couldn't resist but share your PR with the community online on twitter already, I...
2025-10-13T20:07:32
2025-11-07T00:52:01
2025-10-24T13:22:18
CONTRIBUTOR
null
null
null
null
Add support for NIfTI. supports #7804 This PR follows https://github.com/huggingface/datasets/pull/7325 very closely I am a bit unsure what we need to add to the `document_dataset.mdx` and `document_load.mdx`. I should probably create a dataset on the hub first to create this guide instead of copy+pasting from PDF. Open todos: - [x] create nifti dataset on the hub - ~[ ] update `document_dataset.mdx` and `document_load.mdx`~ EDIT: I tested with two datasets I created on the hub: - https://huggingface.co/datasets/TobiasPitters/test-nifti-unzipped - https://huggingface.co/datasets/TobiasPitters/test-nifti for zipped (file extension `.nii.gz` and unzipped `.nii`) files and both seem to work fine. Also tested loading locally and that seems to work as well. Here is the scriptsthat I ran against the hub: ```python from pathlib import Path from datasets import load_dataset import nibabel as nib dataset = load_dataset( "TobiasPitters/test-nifti-unzipped", split="test" # Load as single Dataset, not DatasetDict ) print("length dataset unzipped:", len(dataset)) for item in dataset: isinstance(item["nifti"], nib.nifti1.Nifti1Image) dataset = load_dataset( "TobiasPitters/test-nifti", split="train" # Load as single Dataset, not DatasetDict ) print("length dataset zipped:", len(dataset)) for item in dataset: isinstance(item["nifti"], nib.nifti1.Nifti1Image) ```
{ "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/7815/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/7815/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7815", "html_url": "https://github.com/huggingface/datasets/pull/7815", "diff_url": "https://github.com/huggingface/datasets/pull/7815.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7815.patch", "merged_at": "2025-10-24T13:22:18" }
true
https://api.github.com/repos/huggingface/datasets/issues/7814
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7814/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7814/comments
https://api.github.com/repos/huggingface/datasets/issues/7814/events
https://github.com/huggingface/datasets/pull/7814
3,510,488,792
PR_kwDODunzps6tfJCm
7,814
Allow streaming hdf5 files
{ "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_7814). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-13T15:25:44
2025-10-13T15:28:51
2025-10-13T15:28:49
MEMBER
null
null
null
null
Add streaming support after https://github.com/huggingface/datasets/pull/7690, cc @klamike :) ## Details in `datasets` loaders, `open()` is extended to work with files that are on disk but also on HF. Files on HF are streamed using HTTP range requests using the `HfFileSystem` implementation in the `huggingface_hub` library.
{ "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/7814/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/7814/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7814", "html_url": "https://github.com/huggingface/datasets/pull/7814", "diff_url": "https://github.com/huggingface/datasets/pull/7814.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7814.patch", "merged_at": "2025-10-13T15:28:49" }
true
https://api.github.com/repos/huggingface/datasets/issues/7813
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7813/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7813/comments
https://api.github.com/repos/huggingface/datasets/issues/7813/events
https://github.com/huggingface/datasets/issues/7813
3,503,446,288
I_kwDODunzps7Q0lkQ
7,813
Caching does not work when using python3.14
{ "login": "intexcor", "id": 142020129, "node_id": "U_kgDOCHcOIQ", "avatar_url": "https://avatars.githubusercontent.com/u/142020129?v=4", "gravatar_id": "", "url": "https://api.github.com/users/intexcor", "html_url": "https://github.com/intexcor", "followers_url": "https://api.github.com/users/intexcor/followers", "following_url": "https://api.github.com/users/intexcor/following{/other_user}", "gists_url": "https://api.github.com/users/intexcor/gists{/gist_id}", "starred_url": "https://api.github.com/users/intexcor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/intexcor/subscriptions", "organizations_url": "https://api.github.com/users/intexcor/orgs", "repos_url": "https://api.github.com/users/intexcor/repos", "events_url": "https://api.github.com/users/intexcor/events{/privacy}", "received_events_url": "https://api.github.com/users/intexcor/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "https://github.com/uqfoundation/dill/issues/725", "@intexcor does #7817 fix your problem?" ]
2025-10-10T15:36:46
2025-10-27T17:08:26
2025-10-27T17:08:26
NONE
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
### Describe the bug Traceback (most recent call last): File "/workspace/ctn.py", line 8, in <module> ds = load_dataset(f"naver-clova-ix/synthdog-{lang}") # или "synthdog-zh" для китайского File "/workspace/.venv/lib/python3.14/site-packages/datasets/load.py", line 1397, in load_dataset builder_instance = load_dataset_builder( path=path, ...<10 lines>... **config_kwargs, ) File "/workspace/.venv/lib/python3.14/site-packages/datasets/load.py", line 1185, in load_dataset_builder builder_instance._use_legacy_cache_dir_if_possible(dataset_module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/builder.py", line 612, in _use_legacy_cache_dir_if_possible self._check_legacy_cache2(dataset_module) or self._check_legacy_cache() or None ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/builder.py", line 485, in _check_legacy_cache2 config_id = self.config.name + "-" + Hasher.hash({"data_files": self.config.data_files}) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/fingerprint.py", line 188, in hash return cls.hash_bytes(dumps(value)) ~~~~~^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 120, in dumps dump(obj, file) ~~~~^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 114, in dump Pickler(file, recurse=True).dump(obj) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 428, in dump StockPickler.dump(self, obj) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/usr/lib/python3.14/pickle.py", line 498, in dump self.save(obj) ~~~~~~~~~^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/datasets/utils/_dill.py", line 70, in save dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 422, in save StockPickler.save(self, obj, save_persistent_id) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/pickle.py", line 572, in save f(self, obj) # Call unbound method with explicit self ~^^^^^^^^^^^ File "/workspace/.venv/lib/python3.14/site-packages/dill/_dill.py", line 1262, in save_module_dict StockPickler.save_dict(pickler, obj) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/usr/lib/python3.14/pickle.py", line 1064, in save_dict self._batch_setitems(obj.items(), obj) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given ### Steps to reproduce the bug ds_train = ds["train"].map(lambda x: {**x, "lang": lang}) ### Expected behavior Fixed bugs ### Environment info - `datasets` version: 4.2.0 - Platform: Linux-6.8.0-85-generic-x86_64-with-glibc2.39 - Python version: 3.14.0 - `huggingface_hub` version: 0.35.3 - PyArrow version: 21.0.0 - Pandas version: 2.3.3 - `fsspec` version: 2025.9.0
{ "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/7813/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/7813/timeline
null
completed
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7812
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7812/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7812/comments
https://api.github.com/repos/huggingface/datasets/issues/7812/events
https://github.com/huggingface/datasets/pull/7812
3,500,901,422
PR_kwDODunzps6s_New
7,812
docs: document_dataset PDFs & OCR
{ "login": "ethanknights", "id": 34215814, "node_id": "MDQ6VXNlcjM0MjE1ODE0", "avatar_url": "https://avatars.githubusercontent.com/u/34215814?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ethanknights", "html_url": "https://github.com/ethanknights", "followers_url": "https://api.github.com/users/ethanknights/followers", "following_url": "https://api.github.com/users/ethanknights/following{/other_user}", "gists_url": "https://api.github.com/users/ethanknights/gists{/gist_id}", "starred_url": "https://api.github.com/users/ethanknights/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ethanknights/subscriptions", "organizations_url": "https://api.github.com/users/ethanknights/orgs", "repos_url": "https://api.github.com/users/ethanknights/repos", "events_url": "https://api.github.com/users/ethanknights/events{/privacy}", "received_events_url": "https://api.github.com/users/ethanknights/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[]
2025-10-09T23:31:41
2025-10-20T14:03:53
2025-10-20T14:03:53
CONTRIBUTOR
null
null
null
null
Use acronyms consistently across document_dataset docs.
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7812/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/7812/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7812", "html_url": "https://github.com/huggingface/datasets/pull/7812", "diff_url": "https://github.com/huggingface/datasets/pull/7812.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7812.patch", "merged_at": "2025-10-20T14:03:53" }
true
https://api.github.com/repos/huggingface/datasets/issues/7811
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7811/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7811/comments
https://api.github.com/repos/huggingface/datasets/issues/7811/events
https://github.com/huggingface/datasets/issues/7811
3,500,741,658
I_kwDODunzps7QqRQa
7,811
SIGSEGV when Python exits due to near null deref
{ "login": "iankronquist", "id": 5192353, "node_id": "MDQ6VXNlcjUxOTIzNTM=", "avatar_url": "https://avatars.githubusercontent.com/u/5192353?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iankronquist", "html_url": "https://github.com/iankronquist", "followers_url": "https://api.github.com/users/iankronquist/followers", "following_url": "https://api.github.com/users/iankronquist/following{/other_user}", "gists_url": "https://api.github.com/users/iankronquist/gists{/gist_id}", "starred_url": "https://api.github.com/users/iankronquist/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iankronquist/subscriptions", "organizations_url": "https://api.github.com/users/iankronquist/orgs", "repos_url": "https://api.github.com/users/iankronquist/repos", "events_url": "https://api.github.com/users/iankronquist/events{/privacy}", "received_events_url": "https://api.github.com/users/iankronquist/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "The issue seems to come from `dill` which is a `datasets` dependency, e.g. this segfaults:\n\n```python\nimport dill\nfrom tqdm import tqdm\nprogress_bar = tqdm(total=(1000), unit='cols', desc='cols ')\nprogress_bar.update(1)\n```\n\n`tqdm` seems to segfault when `dill` is imported. I only found this about segfaul...
2025-10-09T22:00:11
2025-10-10T22:09:24
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 I run the following python script using datasets I get a segfault. ```python from datasets import load_dataset from tqdm import tqdm progress_bar = tqdm(total=(1000), unit='cols', desc='cols ') progress_bar.update(1) ``` ``` % lldb -- python3 crashmin.py (lldb) target create "python3" Current executable set to '/Users/ian/bug/venv/bin/python3' (arm64). (lldb) settings set -- target.run-args "crashmin.py" (lldb) r Process 8095 launched: '/Users/ian/bug/venv/bin/python3' (arm64) Process 8095 stopped * thread #2, stop reason = exec frame #0: 0x0000000100014b30 dyld`_dyld_start dyld`_dyld_start: -> 0x100014b30 <+0>: mov x0, sp 0x100014b34 <+4>: and sp, x0, #0xfffffffffffffff0 0x100014b38 <+8>: mov x29, #0x0 ; =0 Target 0: (Python) stopped. (lldb) c Process 8095 resuming cols : 0% 0/1000 [00:00<?, ?cols/s]Process 8095 stopped * thread #2, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) frame #0: 0x0000000101783454 _datetime.cpython-313-darwin.so`delta_new + 188 _datetime.cpython-313-darwin.so`delta_new: -> 0x101783454 <+188>: ldr x3, [x20, #0x10] 0x101783458 <+192>: adrp x0, 10 0x10178345c <+196>: add x0, x0, #0x6fc ; "seconds" Target 0: (Python) stopped. (lldb) bt * thread #2, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) * frame #0: 0x0000000101783454 _datetime.cpython-313-darwin.so`delta_new + 188 frame #1: 0x0000000100704b60 Python`type_call + 96 frame #2: 0x000000010067ba34 Python`_PyObject_MakeTpCall + 120 frame #3: 0x00000001007aae3c Python`_PyEval_EvalFrameDefault + 30236 frame #4: 0x000000010067c900 Python`PyObject_CallOneArg + 112 frame #5: 0x000000010070f0a0 Python`slot_tp_finalize + 116 frame #6: 0x000000010070c3b4 Python`subtype_dealloc + 788 frame #7: 0x00000001006c378c Python`insertdict + 756 frame #8: 0x00000001006db2b0 Python`_PyModule_ClearDict + 660 frame #9: 0x000000010080a9a8 Python`finalize_modules + 1772 frame #10: 0x0000000100809a44 Python`_Py_Finalize + 264 frame #11: 0x0000000100837630 Python`Py_RunMain + 252 frame #12: 0x0000000100837ef8 Python`pymain_main + 304 frame #13: 0x0000000100837f98 Python`Py_BytesMain + 40 frame #14: 0x000000019cfcc274 dyld`start + 2840 (lldb) register read x20 x20 = 0x0000000000000000 (lldb) ``` ### Steps to reproduce the bug Run the script above, and observe the segfault. ### Expected behavior No segfault ### Environment info ``` % pip freeze datasets | grep -i datasets datasets==4.2.0 (venv) 0 ~/bug 14:58:06 % pip freeze tqdm | grep -i tqdm tqdm==4.67.1 (venv) 0 ~/bug 14:58:16 % python --version Python 3.13.7 ```
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7811/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/7811/timeline
null
null
null
null
false
https://api.github.com/repos/huggingface/datasets/issues/7810
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7810/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7810/comments
https://api.github.com/repos/huggingface/datasets/issues/7810/events
https://github.com/huggingface/datasets/pull/7810
3,499,855,569
PR_kwDODunzps6s7wHa
7,810
fix conda deps
{ "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_7810). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T16:32:04
2025-10-09T16:35:15
2025-10-09T16:35:14
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/7810/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/7810/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7810", "html_url": "https://github.com/huggingface/datasets/pull/7810", "diff_url": "https://github.com/huggingface/datasets/pull/7810.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7810.patch", "merged_at": "2025-10-09T16:35:14" }
true
https://api.github.com/repos/huggingface/datasets/issues/7809
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7809/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7809/comments
https://api.github.com/repos/huggingface/datasets/issues/7809/events
https://github.com/huggingface/datasets/pull/7809
3,499,811,179
PR_kwDODunzps6s7mwb
7,809
Set dev version
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7809). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T16:19:19
2025-10-09T16:22:12
2025-10-09T16:19:31
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/7809/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/7809/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7809", "html_url": "https://github.com/huggingface/datasets/pull/7809", "diff_url": "https://github.com/huggingface/datasets/pull/7809.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7809.patch", "merged_at": "2025-10-09T16:19:31" }
true
https://api.github.com/repos/huggingface/datasets/issues/7808
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7808/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7808/comments
https://api.github.com/repos/huggingface/datasets/issues/7808/events
https://github.com/huggingface/datasets/pull/7808
3,499,779,993
PR_kwDODunzps6s7gBq
7,808
release: 4.2.0
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
closed
false
null
[]
null
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7808). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T16:10:53
2025-10-09T16:21:01
2025-10-09T16:11:08
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/7808/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/7808/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7808", "html_url": "https://github.com/huggingface/datasets/pull/7808", "diff_url": "https://github.com/huggingface/datasets/pull/7808.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7808.patch", "merged_at": "2025-10-09T16:11:08" }
true
https://api.github.com/repos/huggingface/datasets/issues/7807
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7807/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7807/comments
https://api.github.com/repos/huggingface/datasets/issues/7807/events
https://github.com/huggingface/datasets/pull/7807
3,499,765,725
PR_kwDODunzps6s7c_U
7,807
typo
{ "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_7807). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T16:06:47
2025-10-09T16:16:31
2025-10-09T16:06:58
MEMBER
null
null
null
null
add an s to be consistent with pandas' on_bad_lines
{ "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/7807/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/7807/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7807", "html_url": "https://github.com/huggingface/datasets/pull/7807", "diff_url": "https://github.com/huggingface/datasets/pull/7807.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7807.patch", "merged_at": "2025-10-09T16:06:58" }
true
https://api.github.com/repos/huggingface/datasets/issues/7806
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7806/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7806/comments
https://api.github.com/repos/huggingface/datasets/issues/7806/events
https://github.com/huggingface/datasets/pull/7806
3,499,483,246
PR_kwDODunzps6s6gnr
7,806
Parquet: add `on_bad_file` argument to error/warn/skip bad files
{ "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_7806). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T14:41:46
2025-10-09T16:04:35
2025-10-09T16:04:33
MEMBER
null
null
null
null
```python from datasets import load_dataset on_bad_file = "error" # default # on_bad_file = "warn" # warn and skip bad file # on_bad_file = "skip" # skip bad file ds = load_dataset(parquet_dataset_id, on_bad_file=on_bad_file) ```
{ "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/7806/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/7806/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7806", "html_url": "https://github.com/huggingface/datasets/pull/7806", "diff_url": "https://github.com/huggingface/datasets/pull/7806.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7806.patch", "merged_at": "2025-10-09T16:04:33" }
true
https://api.github.com/repos/huggingface/datasets/issues/7805
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7805/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7805/comments
https://api.github.com/repos/huggingface/datasets/issues/7805/events
https://github.com/huggingface/datasets/pull/7805
3,499,286,947
PR_kwDODunzps6s52Ew
7,805
Less api calls when resolving data_files
{ "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_7805). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-10-09T13:53:06
2025-10-09T14:01:57
2025-10-09T14:01:56
MEMBER
null
null
null
null
There ~10 unnecessary `/api/datasets/user/dataset/revision`calls due to multithreading in data files resolution. I disabled multithreading, which was actually not useful anymore since `HfFileSystem` has been using caching for a while now.
{ "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/7805/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7805/timeline
null
null
false
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7805", "html_url": "https://github.com/huggingface/datasets/pull/7805", "diff_url": "https://github.com/huggingface/datasets/pull/7805.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7805.patch", "merged_at": "2025-10-09T14:01:55" }
true
https://api.github.com/repos/huggingface/datasets/issues/7804
https://api.github.com/repos/huggingface/datasets
https://api.github.com/repos/huggingface/datasets/issues/7804/labels{/name}
https://api.github.com/repos/huggingface/datasets/issues/7804/comments
https://api.github.com/repos/huggingface/datasets/issues/7804/events
https://github.com/huggingface/datasets/issues/7804
3,498,534,596
I_kwDODunzps7Qh2bE
7,804
Support scientific data formats
{ "login": "lhoestq", "id": 42851186, "node_id": "MDQ6VXNlcjQyODUxMTg2", "avatar_url": "https://avatars.githubusercontent.com/u/42851186?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhoestq", "html_url": "https://github.com/lhoestq", "followers_url": "https://api.github.com/users/lhoestq/followers", "following_url": "https://api.github.com/users/lhoestq/following{/other_user}", "gists_url": "https://api.github.com/users/lhoestq/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhoestq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhoestq/subscriptions", "organizations_url": "https://api.github.com/users/lhoestq/orgs", "repos_url": "https://api.github.com/users/lhoestq/repos", "events_url": "https://api.github.com/users/lhoestq/events{/privacy}", "received_events_url": "https://api.github.com/users/lhoestq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }
[]
open
false
null
[]
null
[ "Please add the support for `Zarr`! That's what we use in the Bioimaging community. It is crucial, because raw upload of a *single* bio image can take _terrabytes in memory_!\n\nThe python library would be `bioio` or `zarr`:\n- [ ] Zarr: `bioio` or `zarr`\n\nSee a [Zarr example](https://ome.github.io/ome-ngff-valid...
2025-10-09T10:18:24
2025-11-26T16:09:43
null
MEMBER
null
null
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
List of formats and libraries we can use to load the data in `datasets`: - [ ] DICOMs: pydicom - [x] NIfTIs: nibabel - [ ] WFDB: wfdb cc @zaRizk7 for viz Feel free to comment / suggest other formats and libs you'd like to see or to share your interest in one of the mentioned format
null
{ "url": "https://api.github.com/repos/huggingface/datasets/issues/7804/reactions", "total_count": 10, "+1": 1, "-1": 0, "laugh": 0, "hooray": 4, "confused": 0, "heart": 5, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/datasets/issues/7804/timeline
null
null
null
null
false