id
int64
1.9B
3.25B
title
stringlengths
2
244
state
stringclasses
2 values
body
stringlengths
3
58.6k
created_at
timestamp[s]date
2023-09-15 14:23:33
2025-07-22 09:33:54
updated_at
timestamp[s]date
2023-09-18 16:20:09
2025-07-22 10:44:03
closed_at
timestamp[s]date
2023-09-18 16:20:09
2025-07-19 22:45:08
html_url
stringlengths
49
51
pull_request
dict
number
int64
6.24k
7.7k
is_pull_request
bool
2 classes
comments
listlengths
0
24
2,959,085,647
docs: update cache.mdx to include HF_DATASETS_CACHE documentation
closed
null
2025-03-30T20:35:03
2025-03-30T20:36:40
2025-03-30T20:36:40
https://github.com/huggingface/datasets/pull/7491
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7491", "html_url": "https://github.com/huggingface/datasets/pull/7491", "diff_url": "https://github.com/huggingface/datasets/pull/7491.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7491.patch", "merged_at": null }
7,491
true
[ "Already included HF_DATASETS_CACHE" ]
2,958,826,222
(refactor) remove redundant logic in _check_valid_index_key
open
This PR contributes a minor refactor, in a small function in `src/datasets/formatting/formatting.py`. No change in logic. In the original code, there are separate if-conditionals for `isinstance(key, range)` and `isinstance(key, Iterable)`, with essentially the same logic. This PR combines these two using a sin...
2025-03-30T11:45:42
2025-03-30T11:50:22
null
https://github.com/huggingface/datasets/pull/7490
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7490", "html_url": "https://github.com/huggingface/datasets/pull/7490", "diff_url": "https://github.com/huggingface/datasets/pull/7490.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7490.patch", "merged_at": null }
7,490
true
[]
2,958,204,763
fix: loading of datasets from Disk(#7373)
open
Fixes dataset loading from disk by ensuring that memory maps and streams are properly closed. For more details, see https://github.com/huggingface/datasets/issues/7373.
2025-03-29T16:22:58
2025-04-24T16:36:36
null
https://github.com/huggingface/datasets/pull/7489
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7489", "html_url": "https://github.com/huggingface/datasets/pull/7489", "diff_url": "https://github.com/huggingface/datasets/pull/7489.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7489.patch", "merged_at": null }
7,489
true
[ "@nepfaff Could you confirm if this fixes the issue for you? I checked Memray, and everything looked good on my end.\r\n\r\nInstall: `pip install git+https://github.com/sam-hey/datasets.git@fix/concatenate_datasets`\r\n", "Will aim to get to this soon. I don't have a rapid testing pipeline setup but need to wait ...
2,956,559,358
Support underscore int read instruction
closed
close https://github.com/huggingface/datasets/issues/7481
2025-03-28T16:01:15
2025-03-28T16:20:44
2025-03-28T16:20:43
https://github.com/huggingface/datasets/pull/7488
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7488", "html_url": "https://github.com/huggingface/datasets/pull/7488", "diff_url": "https://github.com/huggingface/datasets/pull/7488.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7488.patch", "merged_at": "2025-03-28T16:20...
7,488
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7488). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "you rock, Quentin - thank you!" ]
2,956,533,448
Write pdf in map
closed
Fix this error when mapping a PDF dataset ``` pyarrow.lib.ArrowInvalid: Could not convert <pdfplumber.pdf.PDF object at 0x13498ee40> with type PDF: did not recognize Python value type when inferring an Arrow data type ``` and also let map() outputs be lists of images or pdfs
2025-03-28T15:49:25
2025-03-28T17:09:53
2025-03-28T17:09:51
https://github.com/huggingface/datasets/pull/7487
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7487", "html_url": "https://github.com/huggingface/datasets/pull/7487", "diff_url": "https://github.com/huggingface/datasets/pull/7487.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7487.patch", "merged_at": "2025-03-28T17:09...
7,487
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7487). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,954,042,179
`shared_datadir` fixture is missing
closed
### Describe the bug Running the tests for the latest release fails due to missing `shared_datadir` fixture. ### Steps to reproduce the bug Running `pytest` while building a package for Arch Linux leads to these errors: ``` ==================================== ERRORS ==================================== _________ E...
2025-03-27T18:17:12
2025-03-27T19:49:11
2025-03-27T19:49:10
https://github.com/huggingface/datasets/issues/7486
null
7,486
false
[ "OK I was missing the `pytest-datadir` package. Sorry for the noise!" ]
2,953,696,519
set dev version
closed
null
2025-03-27T16:39:34
2025-03-27T16:41:59
2025-03-27T16:39:42
https://github.com/huggingface/datasets/pull/7485
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7485", "html_url": "https://github.com/huggingface/datasets/pull/7485", "diff_url": "https://github.com/huggingface/datasets/pull/7485.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7485.patch", "merged_at": "2025-03-27T16:39...
7,485
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7485). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,953,677,168
release: 3.5.0
closed
null
2025-03-27T16:33:27
2025-03-27T16:35:44
2025-03-27T16:34:22
https://github.com/huggingface/datasets/pull/7484
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7484", "html_url": "https://github.com/huggingface/datasets/pull/7484", "diff_url": "https://github.com/huggingface/datasets/pull/7484.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7484.patch", "merged_at": "2025-03-27T16:34...
7,484
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7484). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,951,856,468
Support skip_trying_type
closed
This PR addresses Issue #7472 cc: @lhoestq
2025-03-27T07:07:20
2025-04-29T04:14:57
2025-04-09T09:53:10
https://github.com/huggingface/datasets/pull/7483
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7483", "html_url": "https://github.com/huggingface/datasets/pull/7483", "diff_url": "https://github.com/huggingface/datasets/pull/7483.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7483.patch", "merged_at": "2025-04-09T09:53...
7,483
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7483). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Cool ! Can you run `make style` to fix code formatting ?\r\n\r\nI was also thinking of ...
2,950,890,368
Implement capability to restore non-nullability in Features
closed
This PR attempts to keep track of non_nullable pyarrow fields when converting a `pa.Schema` to `Features`. At the same time, when outputting the `arrow_schema`, the original non-nullable fields are restored. This allows for more consistent behavior and avoids breaking behavior as illustrated in #7479. I am by no mea...
2025-03-26T22:16:09
2025-05-15T15:00:59
2025-05-15T15:00:59
https://github.com/huggingface/datasets/pull/7482
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7482", "html_url": "https://github.com/huggingface/datasets/pull/7482", "diff_url": "https://github.com/huggingface/datasets/pull/7482.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7482.patch", "merged_at": null }
7,482
true
[ "Interestingly, this does not close #7479. The Features are not correctly maintained when calling `from_dict` with the custom Features.", "Unfortunately this PR does not fix the reported issue. After more digging:\r\n\r\n- when the dataset is created, nullability information is lost in Features;\r\n- even with th...
2,950,692,971
deal with python `10_000` legal number in slice syntax
closed
### Feature request ``` In [6]: ds = datasets.load_dataset("HuggingFaceH4/ultrachat_200k", split="train_sft[:1000]") In [7]: ds = datasets.load_dataset("HuggingFaceH4/ultrachat_200k", split="train_sft[:1_000]") [dozens of frames skipped] File /usr/local/lib/python3.10/dist-packages/datasets/arrow_reader.py:444, in _s...
2025-03-26T20:10:54
2025-03-28T16:20:44
2025-03-28T16:20:44
https://github.com/huggingface/datasets/issues/7481
null
7,481
false
[ "should be an easy fix, I opened a PR" ]
2,950,315,214
HF_DATASETS_CACHE ignored?
open
### Describe the bug I'm struggling to get things to respect HF_DATASETS_CACHE. Rationale: I'm on a system that uses NFS for homedir, so downloading to NFS is expensive, slow, and wastes valuable quota compared to local disk. Instead, it seems to rely mostly on HF_HUB_CACHE. Current version: 3.2.1dev. In the process...
2025-03-26T17:19:34
2025-04-28T10:16:16
null
https://github.com/huggingface/datasets/issues/7480
null
7,480
false
[ "FWIW, it does eventually write to /tmp/roller/datasets when generating the final version.", "Hey, I’d love to work on this issue but I am a beginner, can I work it with you?", "Hi @lhoestq,\nI'd like to look into this issue but I'm still learning. Could you share any quick pointers on the HF_DATASETS_CACHE beh...
2,950,235,396
Features.from_arrow_schema is destructive
open
### Describe the bug I came across this, perhaps niche, bug where `Features` does not/cannot account for pyarrow's `nullable=False` option in Fields. Interestingly, I found that in regular "flat" fields this does not necessarily lead to conflicts, but when a non-nullable field is in a struct, an incompatibility arises...
2025-03-26T16:46:43
2025-03-26T16:46:58
null
https://github.com/huggingface/datasets/issues/7479
null
7,479
false
[]
2,948,993,461
update fsspec 2025.3.0
closed
It appears there have been two releases of fsspec since this dependency was last updated, it would be great if Datasets could be updated so that it didn't hold back the usage of newer fsspec versions in consuming projects. PR based on https://github.com/huggingface/datasets/pull/7352
2025-03-26T09:53:05
2025-03-28T19:15:54
2025-03-28T15:51:55
https://github.com/huggingface/datasets/pull/7478
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7478", "html_url": "https://github.com/huggingface/datasets/pull/7478", "diff_url": "https://github.com/huggingface/datasets/pull/7478.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7478.patch", "merged_at": "2025-03-28T15:51...
7,478
true
[ "Sorry for tagging you @lhoestq but since you merged the linked PR, I wondered if you might be able to help me get this triaged so it can be reviewed/rejected etc. 🙏🏼 ", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7478). All of your documentation changes will be reflec...
2,947,169,460
What is the canonical way to compress a Dataset?
open
Given that Arrow is the preferred backend for a Dataset, what is a user supposed to do if they want concurrent reads, concurrent writes AND on-disk compression for a larger dataset? Parquet would be the obvious answer except that there is no native support for writing sharded, parquet datasets concurrently [[1](https:...
2025-03-25T16:47:51
2025-04-03T09:13:11
null
https://github.com/huggingface/datasets/issues/7477
null
7,477
false
[ "I saw this post by @lhoestq: https://discuss.huggingface.co/t/increased-arrow-table-size-by-factor-of-2/26561/4 suggesting that there is at least some internal code for writing sharded parquet datasets non-concurrently. This appears to be that code: https://github.com/huggingface/datasets/blob/94ccd1b4fada8a92cea...
2,946,997,924
Priotitize json
closed
`datasets` should load the JSON data in https://huggingface.co/datasets/facebook/natural_reasoning, not the PDF
2025-03-25T15:44:31
2025-03-25T15:47:00
2025-03-25T15:45:00
https://github.com/huggingface/datasets/pull/7476
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7476", "html_url": "https://github.com/huggingface/datasets/pull/7476", "diff_url": "https://github.com/huggingface/datasets/pull/7476.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7476.patch", "merged_at": "2025-03-25T15:45...
7,476
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7476). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,946,640,570
IterableDataset's state_dict shard_example_idx is always equal to the number of samples in a shard
closed
### Describe the bug I've noticed a strange behaviour with Iterable state_dict: the value of shard_example_idx is always equal to the amount of samples in a shard. ### Steps to reproduce the bug I am reusing the example from the doc ```python from datasets import Dataset ds = Dataset.from_dict({"a": range(6)}).to_...
2025-03-25T13:58:07
2025-05-06T14:22:19
2025-05-06T14:05:07
https://github.com/huggingface/datasets/issues/7475
null
7,475
false
[ "Hey, I’d love to work on this issue but I am a beginner, can I work it with you?", "Hello. I'm sorry but I don't have much time to get in the details for now.\nHave you managed to reproduce the issue with the code provided ?\nIf you want to work on it, you can self-assign and ask @lhoestq for directions", "Hi ...
2,945,066,258
Remove conditions for Python < 3.9
closed
This PR remove conditions for Python < 3.9.
2025-03-25T03:08:04
2025-04-16T00:11:06
2025-04-15T16:07:55
https://github.com/huggingface/datasets/pull/7474
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7474", "html_url": "https://github.com/huggingface/datasets/pull/7474", "diff_url": "https://github.com/huggingface/datasets/pull/7474.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7474.patch", "merged_at": "2025-04-15T16:07...
7,474
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7474). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Thanks ! can you run `make style` to fix code formatting ? then we can merge", "@lhoe...
2,939,034,643
Webdataset data format problem
closed
### Describe the bug Please see https://huggingface.co/datasets/ejschwartz/idioms/discussions/1 Error code: FileFormatMismatchBetweenSplitsError All three splits, train, test, and validation, use webdataset. But only the train split has more than one file. How can I force the other two splits to also be interpreted ...
2025-03-21T17:23:52
2025-03-21T19:19:58
2025-03-21T19:19:58
https://github.com/huggingface/datasets/issues/7473
null
7,473
false
[ "I was able to work around it" ]
2,937,607,272
Label casting during `map` process is canceled after the `map` process
closed
### Describe the bug When preprocessing a multi-label dataset, I introduced a step to convert int labels to float labels as [BCEWithLogitsLoss](https://pytorch.org/docs/stable/generated/torch.nn.BCEWithLogitsLoss.html) expects float labels and forward function of models in transformers package internally use `BCEWithL...
2025-03-21T07:56:22
2025-04-10T05:11:15
2025-04-10T05:11:14
https://github.com/huggingface/datasets/issues/7472
null
7,472
false
[ "Hi ! By default `map()` tries to keep the types of each column of the dataset, so here it reuses the int type since all your float values can be converted to integers. But I agree it would be nice to store float values as float values and don't try to reuse the same type in this case.\n\nIn the meantime, you can e...
2,937,530,069
Adding argument to `_get_data_files_patterns`
closed
### Feature request How about adding if the user already know about the pattern? https://github.com/huggingface/datasets/blob/a256b85cbc67aa3f0e75d32d6586afc507cf535b/src/datasets/data_files.py#L252 ### Motivation While using this load_dataset people might use 10M of images for the local files. However, due to sear...
2025-03-21T07:17:53
2025-03-27T12:30:52
2025-03-26T07:26:27
https://github.com/huggingface/datasets/issues/7471
null
7,471
false
[ "Hi ! The pattern can be specified in advance in YAML in the README.md of the dataset :)\n\nFor example\n\n```\n---\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: \"train/*\"\n - split: test\n path: \"test/*\"\n---\n```\n\nSee the docs at https://huggingface.co/docs/hub/en/dataset...
2,937,236,323
Is it possible to shard a single-sharded IterableDataset?
closed
I thought https://github.com/huggingface/datasets/pull/7252 might be applicable but looking at it maybe not. Say we have a process, eg. a database query, that can return data in slightly different order each time. So, the initial query needs to be run by a single thread (not to mention running multiple times incurs mo...
2025-03-21T04:33:37
2025-05-09T22:51:46
2025-03-26T06:49:28
https://github.com/huggingface/datasets/issues/7470
null
7,470
false
[ "Hi ! Maybe you can look for an option in your dataset to partition your data based on a deterministic filter ? For example each worker could stream the data based on `row.id % num_shards` or something like that ?", "So the recommendation is to start out with multiple shards initially and re-sharding after is not...
2,936,606,080
Custom split name with the web interface
closed
### Describe the bug According the doc here: https://huggingface.co/docs/hub/datasets-file-names-and-splits#custom-split-name it should infer the split name from the subdir of data or the beg of the name of the files in data. When doing this manually through web upload it does not work. it uses "train" as a unique spl...
2025-03-20T20:45:59
2025-03-21T07:20:37
2025-03-21T07:20:37
https://github.com/huggingface/datasets/issues/7469
null
7,469
false
[]
2,934,094,103
function `load_dataset` can't solve folder path with regex characters like "[]"
open
### Describe the bug When using the `load_dataset` function with a folder path containing regex special characters (such as "[]"), the issue occurs due to how the path is handled in the `resolve_pattern` function. This function passes the unprocessed path directly to `AbstractFileSystem.glob`, which supports regular e...
2025-03-20T05:21:59
2025-03-25T10:18:12
null
https://github.com/huggingface/datasets/issues/7468
null
7,468
false
[ "Hi ! Have you tried escaping the glob special characters `[` and `]` ?\n\nbtw note that`AbstractFileSystem.glob` doesn't support regex, instead it supports glob patterns as in the python library [glob](https://docs.python.org/3/library/glob.html)\n" ]
2,930,067,107
load_dataset with streaming hangs on parquet datasets
open
### Describe the bug When I try to load a dataset with parquet files (e.g. "bigcode/the-stack") the dataset loads, but python interpreter can't exit and hangs ### Steps to reproduce the bug ```python3 import datasets print('Start') dataset = datasets.load_dataset("bigcode/the-stack", data_dir="data/yaml", streaming...
2025-03-18T23:33:54
2025-03-25T10:28:04
null
https://github.com/huggingface/datasets/issues/7467
null
7,467
false
[ "Hi ! The issue comes from `pyarrow`, I reported it here: https://github.com/apache/arrow/issues/45214 (feel free to comment / thumb up).\n\nAlternatively we can try to find something else than `ParquetFileFragment.to_batches()` to iterate on Parquet data and keep the option the pass `filters=`..." ]
2,928,661,327
Fix local pdf loading
closed
fir this error when accessing a local pdf ``` File ~/.pyenv/versions/3.12.2/envs/hf-datasets/lib/python3.12/site-packages/pdfminer/psparser.py:220, in PSBaseParser.seek(self, pos) 218 """Seeks the parser to the given position.""" 219 log.debug("seek: %r", pos) --> 220 self.fp.seek(pos) 221 # reset t...
2025-03-18T14:09:06
2025-03-18T14:11:52
2025-03-18T14:09:21
https://github.com/huggingface/datasets/pull/7466
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7466", "html_url": "https://github.com/huggingface/datasets/pull/7466", "diff_url": "https://github.com/huggingface/datasets/pull/7466.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7466.patch", "merged_at": "2025-03-18T14:09...
7,466
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7466). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,926,478,838
Minor fix for metadata files in extension counter
closed
null
2025-03-17T21:57:11
2025-03-18T15:21:43
2025-03-18T15:21:41
https://github.com/huggingface/datasets/pull/7464
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7464", "html_url": "https://github.com/huggingface/datasets/pull/7464", "diff_url": "https://github.com/huggingface/datasets/pull/7464.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7464.patch", "merged_at": "2025-03-18T15:21...
7,464
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7464). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,925,924,452
Adds EXR format to store depth images in float32
open
This PR adds the EXR feature to store depth images (or can be normals, etc) in float32. It relies on [openexr_numpy](https://github.com/martinResearch/openexr_numpy/tree/main) to manipulate EXR images.
2025-03-17T17:42:40
2025-04-02T12:33:39
null
https://github.com/huggingface/datasets/pull/7463
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7463", "html_url": "https://github.com/huggingface/datasets/pull/7463", "diff_url": "https://github.com/huggingface/datasets/pull/7463.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7463.patch", "merged_at": null }
7,463
true
[ "Hi ! I'mn wondering if this shouldn't this be an `Image()` type and decoded as a `PIL.Image` ?\r\n\r\nThis would make it easier to integrate with the rest of the HF ecosystem, and you could still get a numpy array using `ds = ds.with_format(\"numpy\")` which sets all the images to be formatted as numpy arrays", ...
2,925,612,945
set dev version
closed
null
2025-03-17T16:00:53
2025-03-17T16:03:31
2025-03-17T16:01:08
https://github.com/huggingface/datasets/pull/7462
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7462", "html_url": "https://github.com/huggingface/datasets/pull/7462", "diff_url": "https://github.com/huggingface/datasets/pull/7462.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7462.patch", "merged_at": "2025-03-17T16:01...
7,462
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7462). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,925,608,123
List of images behave differently on IterableDataset and Dataset
closed
### Describe the bug This code: ```python def train_iterable_gen(): images = np.array(load_image("https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg").resize((128, 128))) yield { "images": np.expand_dims(images, axis=0), "messages": [ ...
2025-03-17T15:59:23
2025-03-18T08:57:17
2025-03-18T08:57:16
https://github.com/huggingface/datasets/issues/7461
null
7,461
false
[ "Hi ! Can you try with `datasets` ^3.4 released recently ? on my side it works with IterableDataset on the recent version :)\n\n```python\nIn [20]: def train_iterable_gen():\n ...: images = np.array(load_image(\"https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg\")...
2,925,605,865
release: 3.4.1
closed
null
2025-03-17T15:58:31
2025-03-17T16:01:14
2025-03-17T15:59:19
https://github.com/huggingface/datasets/pull/7460
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7460", "html_url": "https://github.com/huggingface/datasets/pull/7460", "diff_url": "https://github.com/huggingface/datasets/pull/7460.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7460.patch", "merged_at": "2025-03-17T15:59...
7,460
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7460). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,925,491,766
Fix data_files filtering
closed
close https://github.com/huggingface/datasets/issues/7458
2025-03-17T15:20:21
2025-03-17T15:25:56
2025-03-17T15:25:54
https://github.com/huggingface/datasets/pull/7459
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7459", "html_url": "https://github.com/huggingface/datasets/pull/7459", "diff_url": "https://github.com/huggingface/datasets/pull/7459.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7459.patch", "merged_at": "2025-03-17T15:25...
7,459
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7459). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,925,403,528
Loading the `laion/filtered-wit` dataset in streaming mode fails on v3.4.0
closed
### Describe the bug Loading https://huggingface.co/datasets/laion/filtered-wit in streaming mode fails after update to `datasets==3.4.0`. The dataset loads fine on v3.3.2. ### Steps to reproduce the bug Steps to reproduce: ``` pip install datastes==3.4.0 python -c "from datasets import load_dataset; load_dataset('l...
2025-03-17T14:54:02
2025-03-17T16:02:04
2025-03-17T15:25:55
https://github.com/huggingface/datasets/issues/7458
null
7,458
false
[ "thanks for reporting, I released 3.4.1 with a fix" ]
2,924,886,467
Document the HF_DATASETS_CACHE env variable
closed
### Feature request Hello, I have a use case where my team is sharing models and dataset in shared directory to avoid duplication. I noticed that the [cache documentation for datasets](https://huggingface.co/docs/datasets/main/en/cache) only mention the `HF_HOME` environment variable but never the `HF_DATASETS_CACHE`...
2025-03-17T12:24:50
2025-05-06T15:54:39
2025-05-06T15:54:39
https://github.com/huggingface/datasets/issues/7457
null
7,457
false
[ "Strongly agree to this, in addition, I am also suffering to change the cache location similar to other issues (since I changed the environmental variables).\nhttps://github.com/huggingface/datasets/issues/6886", "`HF_DATASETS_CACHE` should be documented there indeed, feel free to open a PR :) ", "Hey, I’d love...
2,922,676,278
.add_faiss_index and .add_elasticsearch_index returns ImportError at Google Colab
open
### Describe the bug At Google Colab ```!pip install faiss-cpu``` works ```import faiss``` no error but ```embeddings_dataset.add_faiss_index(column='embeddings')``` returns ``` [/usr/local/lib/python3.11/dist-packages/datasets/search.py](https://localhost:8080/#) in init(self, device, string_factory, metric_type, cus...
2025-03-16T00:51:49
2025-03-17T15:57:19
null
https://github.com/huggingface/datasets/issues/7456
null
7,456
false
[ "I can fix this.\nIt's mainly because faiss-gpu requires python<=3.10 but the default python version in colab is 3.11. We just have to downgrade the CPython version down to 3.10 and it should work fine.\n", "I think I just had no chance to meet with faiss-cpu.\nIt could be import problem? \n_has_faiss gets its va...
2,921,933,250
Problems with local dataset after upgrade from 3.3.2 to 3.4.0
open
### Describe the bug I was not able to open a local saved dataset anymore that was created using an older datasets version after the upgrade yesterday from datasets 3.3.2 to 3.4.0 The traceback is ``` Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/packaged_modules/arrow/...
2025-03-15T09:22:50
2025-03-17T16:20:43
null
https://github.com/huggingface/datasets/issues/7455
null
7,455
false
[ "Hi ! I just released 3.4.1 with a fix, let me know if it's working now !" ]
2,920,760,793
set dev version
closed
null
2025-03-14T16:48:19
2025-03-14T16:50:31
2025-03-14T16:48:28
https://github.com/huggingface/datasets/pull/7454
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7454", "html_url": "https://github.com/huggingface/datasets/pull/7454", "diff_url": "https://github.com/huggingface/datasets/pull/7454.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7454.patch", "merged_at": "2025-03-14T16:48...
7,454
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7454). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,920,719,503
release: 3.4.0
closed
null
2025-03-14T16:30:45
2025-03-14T16:38:10
2025-03-14T16:38:08
https://github.com/huggingface/datasets/pull/7453
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7453", "html_url": "https://github.com/huggingface/datasets/pull/7453", "diff_url": "https://github.com/huggingface/datasets/pull/7453.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7453.patch", "merged_at": "2025-03-14T16:38...
7,453
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7453). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,920,354,783
minor docs changes
closed
before the release
2025-03-14T14:14:04
2025-03-14T14:16:38
2025-03-14T14:14:20
https://github.com/huggingface/datasets/pull/7452
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7452", "html_url": "https://github.com/huggingface/datasets/pull/7452", "diff_url": "https://github.com/huggingface/datasets/pull/7452.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7452.patch", "merged_at": "2025-03-14T14:14...
7,452
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7452). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,919,835,663
Fix resuming after `ds.set_epoch(new_epoch)`
closed
close https://github.com/huggingface/datasets/issues/7447
2025-03-14T10:31:25
2025-03-14T10:50:11
2025-03-14T10:50:09
https://github.com/huggingface/datasets/pull/7451
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7451", "html_url": "https://github.com/huggingface/datasets/pull/7451", "diff_url": "https://github.com/huggingface/datasets/pull/7451.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7451.patch", "merged_at": "2025-03-14T10:50...
7,451
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7451). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,916,681,414
Add IterableDataset.decode with multithreading
closed
Useful for dataset streaming for multimodal datasets, and especially for lerobot. It speeds up streaming up to 20 times. When decoding is enabled (default), media types are decoded: * audio -> dict of "array" and "sampling_rate" and "path" * image -> PIL.Image * video -> torchvision.io.VideoReader You can e...
2025-03-13T10:41:35
2025-03-14T10:35:37
2025-03-14T10:35:35
https://github.com/huggingface/datasets/pull/7450
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7450", "html_url": "https://github.com/huggingface/datasets/pull/7450", "diff_url": "https://github.com/huggingface/datasets/pull/7450.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7450.patch", "merged_at": "2025-03-14T10:35...
7,450
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7450). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,916,235,092
Cannot load data with different schemas from different parquet files
closed
### Describe the bug Cannot load samples with optional fields from different files. The schema cannot be correctly derived. ### Steps to reproduce the bug When I place two samples with an optional field `some_extra_field` within a single parquet file, it can be loaded via `load_dataset`. ```python import pandas as ...
2025-03-13T08:14:49
2025-03-17T07:27:48
2025-03-17T07:27:46
https://github.com/huggingface/datasets/issues/7449
null
7,449
false
[ "Hi ! `load_dataset` expects all the data_files to have the same schema.\n\nMaybe you can try enforcing certain `features` using:\n\n```python\nfeatures = Features({\"conversations\": {'content': Value('string'), 'role': Value('string',)}})\nds = load_dataset(..., features=features)\n```", "Thanks! It works if I ...
2,916,025,762
`datasets.disable_caching` doesn't work
open
When I use `Dataset.from_generator(my_gen)` to load my dataset, it simply skips my changes to the generator function. I tried `datasets.disable_caching`, but it doesn't work!
2025-03-13T06:40:12
2025-03-22T04:37:07
null
https://github.com/huggingface/datasets/issues/7448
null
7,448
false
[ "cc", "Yes I have the same issue. It's a confusingly named function. See [here](https://github.com/huggingface/datasets/blob/main/src/datasets/fingerprint.py#L115-L130)\n\n```\n...\nIf disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.\n More precisely...
2,915,233,248
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
closed
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
2025-03-12T21:41:05
2025-07-09T23:04:57
2025-03-14T10:50:10
https://github.com/huggingface/datasets/issues/7447
null
7,447
false
[ "Thanks for reporting ! Maybe we should store the epoch in the state_dict, and then when the dataset is iterated on again after setting a new epoch it should restart from scratch instead of resuming ? wdyt ?", "But why does this only happen when `persistent_workers=True`? I would expect it to work correctly even ...
2,913,050,552
pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int'
closed
### Describe the bug A dict with its keys are all str but get following error ```python test_data=[{'input_ids':[1,2,3],'labels':[[Counter({2:1})]]}] dataset = datasets.Dataset.from_list(test_data) ``` ```bash pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int' ``` ### Steps to reproduce the...
2025-03-12T07:48:37
2025-07-04T05:14:45
2025-07-04T05:14:45
https://github.com/huggingface/datasets/issues/7446
null
7,446
false
[ "I think the Counter object you used in 'labels' may be the issue, since the {2:1} inside is the dict and 2 is the int", "> I think the Counter object you used in 'labels' may be the issue, since the {2:1} inside is the dict and 2 is the int我认为您在 'labels' 中使用的 Counter 对象可能是问题所在,因为里面的 {2:1} 是 dict,而 2 是 int\n\nYes...
2,911,507,923
Fix small bugs with async map
closed
helpful for the next PR to enable parallel image/audio/video decoding and make multimodal datasets go brr (e.g. for lerobot) - fix with_indices - fix resuming with save_state_dict() / load_state_dict() - omg that wasn't easy - remove unnecessary decoding in map() to enable parallelism in FormattedExampleIterable l...
2025-03-11T18:30:57
2025-03-13T10:38:03
2025-03-13T10:37:58
https://github.com/huggingface/datasets/pull/7445
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7445", "html_url": "https://github.com/huggingface/datasets/pull/7445", "diff_url": "https://github.com/huggingface/datasets/pull/7445.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7445.patch", "merged_at": "2025-03-13T10:37...
7,445
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7445). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,911,202,445
Excessive warnings when resuming an IterableDataset+buffered shuffle+DDP.
open
### Describe the bug I have a large dataset that I shared into 1024 shards and save on the disk during pre-processing. During training, I load the dataset using load_from_disk() and convert it into an iterable dataset, shuffle it and split the shards to different DDP nodes using the recommended method. However, when ...
2025-03-11T16:34:39
2025-05-13T09:41:03
null
https://github.com/huggingface/datasets/issues/7444
null
7,444
false
[ "I had a similar issue when loading the saved iterable dataset state to fast-forward to the mid-train location before resuming. This happened when I shuffled a concatenated dataset. A `iterable_data_state_dict.json` file was saved during checkpointing in the Trainer with:\n```\ndef _save_rng_state(self, output_dir)...
2,908,585,656
index error when num_shards > len(dataset)
open
In `ds.push_to_hub()` and `ds.save_to_disk()`, `num_shards` must be smaller than or equal to the number of rows in the dataset, but currently this is not checked anywhere inside these functions. Attempting to invoke these functions with `num_shards > len(dataset)` should raise an informative `ValueError`. I frequently...
2025-03-10T22:40:59
2025-03-10T23:43:08
null
https://github.com/huggingface/datasets/issues/7443
null
7,443
false
[ "Actually, looking at the code a bit more carefully, maybe an even better solution is to explicitly set `num_shards=len(self)` somewhere inside both `push_to_hub()` and `save_to_disk()` when these functions are invoked with `num_shards > len(dataset)`." ]
2,905,543,017
Flexible Loader
open
### Feature request Can we have a utility function that will use `load_from_disk` when given the local path and `load_dataset` if given an HF dataset? It can be something as simple as this one: ``` def load_hf_dataset(path_or_name): if os.path.exists(path_or_name): return load_from_disk(path_or_name) ...
2025-03-09T16:55:03
2025-03-27T23:58:17
null
https://github.com/huggingface/datasets/issues/7442
null
7,442
false
[ "Ideally `save_to_disk` should save in a format compatible with load_dataset, wdyt ?", "> Ideally `save_to_disk` should save in a format compatible with load_dataset, wdyt ?\n\nThat would be perfect if not at least a flexible loader.", "@lhoestq For now, you can use this small utility library: [nanoml](https://...
2,904,702,329
`drop_last_batch` does not drop the last batch using IterableDataset + interleave_datasets + multi_worker
open
### Describe the bug See the script below `drop_last_batch=True` is defined using map() for each dataset. The last batch for each dataset is expected to be dropped, id 21-25. The code behaves as expected when num_workers=0 or 1. When using num_workers>1, 'a-11', 'b-11', 'a-12', 'b-12' are gone and instead 21 and 22 a...
2025-03-08T10:28:44
2025-03-09T21:27:33
null
https://github.com/huggingface/datasets/issues/7441
null
7,441
false
[ "Hi @memray, I’d like to help fix the issue with `drop_last_batch` not working when `num_workers > 1`. I’ll investigate and propose a solution. Thanks!\n", "Thank you very much for offering to help! I also noticed a problem related to a previous issue and left a comment [here](https://github.com/huggingface/datas...
2,903,740,662
IterableDataset raises FileNotFoundError instead of retrying
open
### Describe the bug In https://github.com/huggingface/datasets/issues/6843 it was noted that the streaming feature of `datasets` is highly susceptible to outages and doesn't back off for long (or even *at all*). I was training a model while streaming SlimPajama and training crashed with a `FileNotFoundError`. I can ...
2025-03-07T19:14:18
2025-07-22T08:15:44
null
https://github.com/huggingface/datasets/issues/7440
null
7,440
false
[ "I have since been training more models with identical architectures over the same dataset, and it is completely unstable. One has now failed at chunk9/1215, whilst others have gotten past that.\n```python\nFileNotFoundError: zstd://example_train_1215.jsonl::hf://datasets/cerebras/SlimPajama-627B@2d0accdd58c5d55119...
2,900,143,289
Fix multi gpu process example
closed
to is not an inplace function. But i am not sure about this code anyway, i think this is modifying the global variable `model` everytime the function is called? Which is on every batch? So it is juggling the same model on every gpu right? Isnt that very inefficient?
2025-03-06T11:29:19
2025-03-06T17:07:28
2025-03-06T17:06:38
https://github.com/huggingface/datasets/pull/7439
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7439", "html_url": "https://github.com/huggingface/datasets/pull/7439", "diff_url": "https://github.com/huggingface/datasets/pull/7439.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7439.patch", "merged_at": null }
7,439
true
[ "Okay nevermind looks like to works both ways for models. but my doubt still remains, isnt this changing the device of the model every batch?" ]
2,899,209,484
Allow dataset row indexing with np.int types (#7423)
open
@lhoestq Proposed fix for #7423. Added a couple simple tests as requested. I had some test failures related to Java and pyspark even when installing with dev but these don't seem to be related to the changes here and fail for me even on clean main. The typeerror raised when using the wrong type is: "Wrong key type...
2025-03-06T03:10:43
2025-07-15T14:34:05
null
https://github.com/huggingface/datasets/pull/7438
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7438", "html_url": "https://github.com/huggingface/datasets/pull/7438", "diff_url": "https://github.com/huggingface/datasets/pull/7438.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7438.patch", "merged_at": null }
7,438
true
[ "+1" ]
2,899,104,679
Use pyupgrade --py39-plus for remaining files
open
This work follows #7428. And "requires-python" is set in pyproject.toml
2025-03-06T02:12:25
2025-07-18T04:04:08
null
https://github.com/huggingface/datasets/pull/7437
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7437", "html_url": "https://github.com/huggingface/datasets/pull/7437", "diff_url": "https://github.com/huggingface/datasets/pull/7437.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7437.patch", "merged_at": null }
7,437
true
[ "@lhoestq Have a look?" ]
2,898,385,725
chore: fix typos
closed
null
2025-03-05T20:17:54
2025-04-28T14:00:09
2025-04-28T13:51:26
https://github.com/huggingface/datasets/pull/7436
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7436", "html_url": "https://github.com/huggingface/datasets/pull/7436", "diff_url": "https://github.com/huggingface/datasets/pull/7436.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7436.patch", "merged_at": "2025-04-28T13:51...
7,436
true
[]
2,895,536,956
Refactor `string_to_dict` to return `None` if there is no match instead of raising `ValueError`
closed
Making this change, as encouraged here: * https://github.com/huggingface/datasets/pull/7434#discussion_r1979933054 instead of having the pattern of using `try`-`except` to handle when there is no match, we can instead check if the return value is `None`; we can also assert that the return value should not be `Non...
2025-03-04T22:01:20
2025-03-12T16:52:00
2025-03-12T16:52:00
https://github.com/huggingface/datasets/pull/7435
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7435", "html_url": "https://github.com/huggingface/datasets/pull/7435", "diff_url": "https://github.com/huggingface/datasets/pull/7435.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7435.patch", "merged_at": "2025-03-12T16:51...
7,435
true
[ "cc: @lhoestq ", "I am going to rebase #7434 onto this branch. Then we can merge this one first if you approve, and then #7434.", "@lhoestq any thoughts here?", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7435). All of your documentation changes will be reflected on ...
2,893,075,908
Refactor `Dataset.map` to reuse cache files mapped with different `num_proc`
closed
Fixes #7433 This refactor unifies `num_proc is None or num_proc == 1` and `num_proc > 1`; instead of handling them completely separately where one uses a list of kwargs and shards and the other just uses a single set of kwargs and `self`, by wrapping the `num_proc == 1` case in a list and making the difference just ...
2025-03-04T06:12:37
2025-05-14T10:45:10
2025-05-12T15:14:08
https://github.com/huggingface/datasets/pull/7434
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7434", "html_url": "https://github.com/huggingface/datasets/pull/7434", "diff_url": "https://github.com/huggingface/datasets/pull/7434.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7434.patch", "merged_at": "2025-05-12T15:14...
7,434
true
[ "@lhoestq please let me know what you think about this.", "It looks like I can't change the merge target to #7435, so it will look like there is a bunch of extra stuff until #7435 is in main.", "@lhoestq Thanks so much for reviewing #7435! Now that that's merged, I think this PR is ready!! Can you kick off CI w...
2,890,240,400
`Dataset.map` ignores existing caches and remaps when ran with different `num_proc`
closed
### Describe the bug If you `map` a dataset and save it to a specific `cache_file_name` with a specific `num_proc`, and then call map again with that same existing `cache_file_name` but a different `num_proc`, the dataset will be re-mapped. ### Steps to reproduce the bug 1. Download a dataset ```python import datase...
2025-03-03T05:51:26
2025-05-12T15:14:09
2025-05-12T15:14:09
https://github.com/huggingface/datasets/issues/7433
null
7,433
false
[ "This feels related: https://github.com/huggingface/datasets/issues/3044", "@lhoestq This comment specifically, I agree:\n\n* https://github.com/huggingface/datasets/issues/3044#issuecomment-1239877570\n\n> Almost a year later and I'm in a similar boat. Using custom fingerprints and when using multiprocessing the...
2,887,717,289
Fix type annotation
closed
null
2025-02-28T17:28:20
2025-03-04T15:53:03
2025-03-04T15:53:03
https://github.com/huggingface/datasets/pull/7432
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7432", "html_url": "https://github.com/huggingface/datasets/pull/7432", "diff_url": "https://github.com/huggingface/datasets/pull/7432.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7432.patch", "merged_at": null }
7,432
true
[ "Thanks ! There is https://github.com/huggingface/datasets/pull/7426 already that fixes the issue, I'm closing your PR if you don't mind" ]
2,887,244,074
Issues with large Datasets
open
### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is the following code but would ...
2025-02-28T14:05:22
2025-03-04T15:02:26
null
https://github.com/huggingface/datasets/issues/7431
null
7,431
false
[ "what's the error message ?", "This was the final error message that it was giving pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0", "Here is the list of errors:\n\nTraceback (most recent call last):\n File \".venv/lib/python3.12/site-packages/datasets/packaged_modul...
2,886,922,573
Error in code "Time to slice and dice" from course "NLP Course"
closed
### Describe the bug When we execute code ``` frequencies = ( train_df["condition"] .value_counts() .to_frame() .reset_index() .rename(columns={"index": "condition", "condition": "frequency"}) ) frequencies.head() ``` answer should be like this condition | frequency birth control | 27655 dep...
2025-02-28T11:36:10
2025-03-05T11:32:47
2025-03-03T17:52:15
https://github.com/huggingface/datasets/issues/7430
null
7,430
false
[ "You should open an issue in the NLP course website / github page. I'm closing this issue if you don't mind", "ok, i don't mind, i'll mark the error there" ]
2,886,806,513
Improved type annotation
open
I've refined several type annotations throughout the codebase to align with current best practices and enhance overall clarity. Given the complexity of the code, there may still be areas that need further attention. I welcome any feedback or suggestions to make these improvements even better. - Fixes #7202
2025-02-28T10:39:10
2025-05-15T12:27:17
null
https://github.com/huggingface/datasets/pull/7429
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7429", "html_url": "https://github.com/huggingface/datasets/pull/7429", "diff_url": "https://github.com/huggingface/datasets/pull/7429.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7429.patch", "merged_at": null }
7,429
true
[ "@lhoestq Could someone please take a quick look or let me know if there’s anything I should change? Thanks!", "could you fix the conflicts ? I think some type annotations have been improved since your first commit", "It should be good now.\r\nI'm happy to add more annotations or refine further if needed—just ...
2,886,111,651
Use pyupgrade --py39-plus
closed
null
2025-02-28T03:39:44
2025-03-22T00:51:20
2025-03-05T15:04:16
https://github.com/huggingface/datasets/pull/7428
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7428", "html_url": "https://github.com/huggingface/datasets/pull/7428", "diff_url": "https://github.com/huggingface/datasets/pull/7428.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7428.patch", "merged_at": "2025-03-05T15:04...
7,428
true
[ "Hi ! can you run `make style` to fix code formatting ?", "@lhoestq Fixed", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7428). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,886,032,571
Error splitting the input into NAL units.
open
### Describe the bug I am trying to finetune qwen2.5-vl on 16 * 80G GPUS, and I use `LLaMA-Factory` and set `preprocessing_num_workers=16`. However, I met the following error and the program seem to got crush. It seems that the error come from `datasets` library The error logging is like following: ```text Convertin...
2025-02-28T02:30:15
2025-03-04T01:40:28
null
https://github.com/huggingface/datasets/issues/7427
null
7,427
false
[ "First time I see this error :/ maybe it's an issue with your version of `multiprocess` and `dill` ? Make sure they are compatible with `datasets`", "> First time I see this error :/ maybe it's an issue with your version of `multiprocess` and `dill` ? Make sure they are compatible with `datasets`\n\nany recommend...
2,883,754,507
fix: None default with bool type on load creates typing error
closed
Hello! Pyright flags any use of `load_dataset` as an error, because the default for `trust_remote_code` is `None`, but the function is typed as `bool`, not `Optional[bool]`. I changed the type and docstrings to reflect this, but no other code was touched.
2025-02-27T08:11:36
2025-03-04T15:53:40
2025-03-04T15:53:40
https://github.com/huggingface/datasets/pull/7426
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7426", "html_url": "https://github.com/huggingface/datasets/pull/7426", "diff_url": "https://github.com/huggingface/datasets/pull/7426.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7426.patch", "merged_at": "2025-03-04T15:53...
7,426
true
[]
2,883,684,686
load_dataset("livecodebench/code_generation_lite", version_tag="release_v2") TypeError: 'NoneType' object is not callable
open
### Describe the bug from datasets import load_dataset lcb_codegen = load_dataset("livecodebench/code_generation_lite", version_tag="release_v2") or configs = get_dataset_config_names("livecodebench/code_generation_lite", trust_remote_code=True) both error: Traceback (most recent call last): File "", line 1, in File...
2025-02-27T07:36:02
2025-03-27T05:05:33
null
https://github.com/huggingface/datasets/issues/7425
null
7,425
false
[ "> datasets\n\nHi, have you solved this bug? Today I also met the same problem about `livecodebench/code_generation_lite` when evaluating the `Open-R1` repo. I am looking forward to your reply!\n\n![Image](https://github.com/user-attachments/assets/02e92fbf-da33-41b3-b8d4-f79b293a54f1)", "Hey guys,\nI tried to re...
2,882,663,621
Faster folder based builder + parquet support + allow repeated media + use torchvideo
closed
This will be useful for LeRobotDataset (robotics datasets for [lerobot](https://github.com/huggingface/lerobot) based on videos) Impacted builders: - ImageFolder - AudioFolder - VideoFolder Improvements: - faster to stream (got a 5x speed up on an image dataset) - improved RAM usage - support for metadata.p...
2025-02-26T19:55:18
2025-03-05T18:51:00
2025-03-05T17:41:23
https://github.com/huggingface/datasets/pull/7424
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7424", "html_url": "https://github.com/huggingface/datasets/pull/7424", "diff_url": "https://github.com/huggingface/datasets/pull/7424.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7424.patch", "merged_at": "2025-03-05T17:41...
7,424
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7424). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,879,271,409
Row indexing a dataset with numpy integers
open
### Feature request Allow indexing datasets with a scalar numpy integer type. ### Motivation Indexing a dataset with a scalar numpy.int* object raises a TypeError. This is due to the test in `datasets/formatting/formatting.py:key_to_query_type` ``` python def key_to_query_type(key: Union[int, slice, range, str, Ite...
2025-02-25T18:44:45
2025-03-03T17:55:24
null
https://github.com/huggingface/datasets/issues/7423
null
7,423
false
[ "Would be cool to be consistent when it comes to indexing with numpy objects, if we do accept numpy arrays we should indeed accept numpy integers. Your idea sounds reasonable, I'd also be in favor of adding a simple test as well" ]
2,878,369,052
DVC integration broken
open
### Describe the bug The DVC integration seems to be broken. Followed this guide: https://dvc.org/doc/user-guide/integrations/huggingface ### Steps to reproduce the bug #### Script to reproduce ~~~python from datasets import load_dataset dataset = load_dataset( "csv", data_files="dvc://workshop/satellite-d...
2025-02-25T13:14:31
2025-03-03T17:42:02
null
https://github.com/huggingface/datasets/issues/7421
null
7,421
false
[ "Unfortunately `url` is a reserved argument in `fsspec.url_to_fs`, so ideally file system implementations like DVC should use another argument name to avoid this kind of errors" ]
2,876,281,928
better correspondence between cached and saved datasets created using from_generator
open
### Feature request At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a...
2025-02-24T22:14:37
2025-02-26T03:10:22
null
https://github.com/huggingface/datasets/issues/7420
null
7,420
false
[]
2,875,635,320
Import order crashes script execution
open
### Describe the bug Hello, I'm trying to convert an HF dataset into a TFRecord so I'm importing `tensorflow` and `datasets` to do so. Depending in what order I'm importing those librairies, my code hangs forever and is unkillable (CTRL+C doesn't work, I need to kill my shell entirely). Thank you for your help 🙏 ...
2025-02-24T17:03:43
2025-02-24T17:03:43
null
https://github.com/huggingface/datasets/issues/7419
null
7,419
false
[]
2,868,701,471
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
open
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
2025-02-21T10:58:06
2025-07-11T13:06:10
null
https://github.com/huggingface/datasets/issues/7418
null
7,418
false
[ "@lhoestq ", "Can you try passing text: None for the image object ? Pyarrow expects all the objects to have the exact same type, in particular the dicttionaries in \"content\" should all have the keys \"type\" and \"text\"", "The following modification on system prompt works, but it is different from the usual ...
2,866,868,922
set dev version
closed
null
2025-02-20T17:45:29
2025-02-20T17:47:50
2025-02-20T17:45:36
https://github.com/huggingface/datasets/pull/7417
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7417", "html_url": "https://github.com/huggingface/datasets/pull/7417", "diff_url": "https://github.com/huggingface/datasets/pull/7417.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7417.patch", "merged_at": "2025-02-20T17:45...
7,417
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7417). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,866,862,143
Release: 3.3.2
closed
null
2025-02-20T17:42:11
2025-02-20T17:44:35
2025-02-20T17:43:28
https://github.com/huggingface/datasets/pull/7416
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7416", "html_url": "https://github.com/huggingface/datasets/pull/7416", "diff_url": "https://github.com/huggingface/datasets/pull/7416.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7416.patch", "merged_at": "2025-02-20T17:43...
7,416
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7416). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,865,774,546
Shard Dataset at specific indices
open
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
2025-02-20T10:43:10
2025-02-24T11:06:45
null
https://github.com/huggingface/datasets/issues/7415
null
7,415
false
[ "Hi ! if it's an option I'd suggest to have one sequence per row instead.\n\nOtherwise you'd have to make your own save/load mechanism", "Saving one sequence per row is very difficult and heavy and makes all the optimizations pointless. How would a custom save/load mechanism look like?", "You can use `pyarrow` ...
2,863,798,756
Gracefully cancel async tasks
closed
null
2025-02-19T16:10:58
2025-02-20T14:12:26
2025-02-20T14:12:23
https://github.com/huggingface/datasets/pull/7414
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7414", "html_url": "https://github.com/huggingface/datasets/pull/7414", "diff_url": "https://github.com/huggingface/datasets/pull/7414.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7414.patch", "merged_at": "2025-02-20T14:12...
7,414
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7414). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,860,947,582
Documentation on multiple media files of the same type with WebDataset
open
The [current documentation](https://huggingface.co/docs/datasets/en/video_dataset) on a creating a video dataset includes only examples with one media file and one json. It would be useful to have examples where multiple files of the same type are included. For example, in a sign language dataset, you may have a base v...
2025-02-18T16:13:20
2025-02-20T14:17:54
null
https://github.com/huggingface/datasets/issues/7413
null
7,413
false
[ "Yes this is correct and it works with huggingface datasets as well ! Feel free to include an example here: https://github.com/huggingface/datasets/blob/main/docs/source/video_dataset.mdx" ]
2,859,433,710
Index Error Invalid Ket is out of bounds for size 0 for code-search-net/code_search_net dataset
open
### Describe the bug I am trying to do model pruning on sentence-transformers/all-mini-L6-v2 for the code-search-net/code_search_net dataset using INCTrainer class However I am getting below error ``` raise IndexError(f"Invalid Key: {key is our of bounds for size {size}") IndexError: Invalid key: 1840208 is out of b...
2025-02-18T05:58:33
2025-02-18T06:42:07
null
https://github.com/huggingface/datasets/issues/7412
null
7,412
false
[]
2,858,993,390
Attempt to fix multiprocessing hang by closing and joining the pool before termination
closed
https://github.com/huggingface/datasets/issues/6393 has plagued me on and off for a very long time. I have had various workarounds (one time combining two filter calls into one filter call removed the issue, another time making rank 0 go first resolved a cache race condition, one time i think upgrading the version of s...
2025-02-17T23:58:03
2025-02-19T21:11:24
2025-02-19T13:40:32
https://github.com/huggingface/datasets/pull/7411
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7411", "html_url": "https://github.com/huggingface/datasets/pull/7411", "diff_url": "https://github.com/huggingface/datasets/pull/7411.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7411.patch", "merged_at": "2025-02-19T13:40...
7,411
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7411). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Thanks for the fix! We have been affected by this a lot when we try to use LLM Foundry ...
2,858,085,707
Set dev version
closed
null
2025-02-17T14:54:39
2025-02-17T14:56:58
2025-02-17T14:54:56
https://github.com/huggingface/datasets/pull/7410
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7410", "html_url": "https://github.com/huggingface/datasets/pull/7410", "diff_url": "https://github.com/huggingface/datasets/pull/7410.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7410.patch", "merged_at": "2025-02-17T14:54...
7,410
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7410). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,858,079,508
Release: 3.3.1
closed
null
2025-02-17T14:52:12
2025-02-17T14:54:32
2025-02-17T14:53:13
https://github.com/huggingface/datasets/pull/7409
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7409", "html_url": "https://github.com/huggingface/datasets/pull/7409", "diff_url": "https://github.com/huggingface/datasets/pull/7409.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7409.patch", "merged_at": "2025-02-17T14:53...
7,409
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7409). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,858,012,313
Fix filter speed regression
closed
close https://github.com/huggingface/datasets/issues/7404
2025-02-17T14:25:32
2025-02-17T14:28:48
2025-02-17T14:28:46
https://github.com/huggingface/datasets/pull/7408
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7408", "html_url": "https://github.com/huggingface/datasets/pull/7408", "diff_url": "https://github.com/huggingface/datasets/pull/7408.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7408.patch", "merged_at": "2025-02-17T14:28...
7,408
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7408). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,856,517,442
Update use_with_pandas.mdx: to_pandas() correction in last section
closed
last section ``to_pandas()"
2025-02-17T01:53:31
2025-02-20T17:28:04
2025-02-20T17:28:04
https://github.com/huggingface/datasets/pull/7407
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7407", "html_url": "https://github.com/huggingface/datasets/pull/7407", "diff_url": "https://github.com/huggingface/datasets/pull/7407.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7407.patch", "merged_at": "2025-02-20T17:28...
7,407
true
[]
2,856,441,206
Adding Core Maintainer List to CONTRIBUTING.md
closed
### Feature request I propose adding a core maintainer list to the `CONTRIBUTING.md` file. ### Motivation The Transformers and Liger-Kernel projects maintain lists of core maintainers for each module. However, the Datasets project doesn't have such a list. ### Your contribution I have nothing to add here.
2025-02-17T00:32:40
2025-03-24T10:57:54
2025-03-24T10:57:54
https://github.com/huggingface/datasets/issues/7406
null
7,406
false
[ "@lhoestq", "there is no per-module maintainer and the list is me alone nowadays ^^'", "@lhoestq \nOh... I feel for you. \nWhat are your criteria for choosing a core maintainer? \nIt seems like it's too much work for you to manage all this code by yourself.\n\nAlso, if you don't mind, can you check this PR for ...
2,856,372,814
Lazy loading of environment variables
open
### Describe the bug Loading a `.env` file after an `import datasets` call does not correctly use the environment variables. This is due the fact that environment variables are read at import time: https://github.com/huggingface/datasets/blob/de062f0552a810c52077543c1169c38c1f0c53fc/src/datasets/config.py#L155C1-L15...
2025-02-16T22:31:41
2025-02-17T15:17:18
null
https://github.com/huggingface/datasets/issues/7405
null
7,405
false
[ "Many python packages out there, including `huggingface_hub`, do load the environment variables on import.\nYou should `load_dotenv()` before importing the libraries.\n\nFor example you can move all you imports inside your `main()` function" ]
2,856,366,207
Performance regression in `dataset.filter`
closed
### Describe the bug We're filtering dataset of ~1M (small-ish) records. At some point in the code we do `dataset.filter`, before (including 3.2.0) it was taking couple of seconds, and now it takes 4 hours. We use 16 threads/workers, and stack trace at them look as follows: ``` Traceback (most recent call last): Fi...
2025-02-16T22:19:14
2025-02-17T17:46:06
2025-02-17T14:28:48
https://github.com/huggingface/datasets/issues/7404
null
7,404
false
[ "Thanks for reporting, I'll fix the regression today", "I just released `datasets` 3.3.1 with a fix, let me know if it's good now :)", "@lhoestq it fixed the issue.\n\nThis was (very) fast, thank you very much!" ]
2,855,880,858
Fix a typo in arrow_dataset.py
closed
"in the feature" should be "in the future"
2025-02-16T04:52:02
2025-02-20T17:29:28
2025-02-20T17:29:28
https://github.com/huggingface/datasets/pull/7402
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7402", "html_url": "https://github.com/huggingface/datasets/pull/7402", "diff_url": "https://github.com/huggingface/datasets/pull/7402.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7402.patch", "merged_at": "2025-02-20T17:29...
7,402
true
[]
2,853,260,869
set dev version
closed
null
2025-02-14T10:17:03
2025-02-14T10:19:20
2025-02-14T10:17:13
https://github.com/huggingface/datasets/pull/7401
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7401", "html_url": "https://github.com/huggingface/datasets/pull/7401", "diff_url": "https://github.com/huggingface/datasets/pull/7401.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7401.patch", "merged_at": "2025-02-14T10:17...
7,401
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7401). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,853,098,442
Synchronize parameters for various datasets
open
### Describe the bug [IterableDatasetDict](https://huggingface.co/docs/datasets/v3.2.0/en/package_reference/main_classes#datasets.IterableDatasetDict.map) map function is missing the `desc` parameter. You can see the equivalent map function for [Dataset here](https://huggingface.co/docs/datasets/v3.2.0/en/package_refe...
2025-02-14T09:15:11
2025-02-19T11:50:29
null
https://github.com/huggingface/datasets/issues/7399
null
7,399
false
[ "Hi ! the `desc` parameter is only available for Dataset / DatasetDict for the progress bar of `map()``\n\nSince IterableDataset only runs the map functions when you iterate over the dataset, there is no progress bar and `desc` is useless. We could still add the argument for parity but it wouldn't be used for anyth...
2,853,097,869
Release: 3.3.0
closed
null
2025-02-14T09:15:03
2025-02-14T09:57:39
2025-02-14T09:57:37
https://github.com/huggingface/datasets/pull/7398
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7398", "html_url": "https://github.com/huggingface/datasets/pull/7398", "diff_url": "https://github.com/huggingface/datasets/pull/7398.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7398.patch", "merged_at": "2025-02-14T09:57...
7,398
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7398). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,852,829,763
Kannada dataset(Conversations, Wikipedia etc)
closed
null
2025-02-14T06:53:03
2025-02-20T17:28:54
2025-02-20T17:28:53
https://github.com/huggingface/datasets/pull/7397
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7397", "html_url": "https://github.com/huggingface/datasets/pull/7397", "diff_url": "https://github.com/huggingface/datasets/pull/7397.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7397.patch", "merged_at": null }
7,397
true
[ "Hi ! feel free to uplad the CSV on https://huggingface.co/datasets :)\r\n\r\nwe don't store the datasets' data in this github repository" ]
2,853,201,277
504 Gateway Timeout when uploading large dataset to Hugging Face Hub
open
### Description I encountered consistent 504 Gateway Timeout errors while attempting to upload a large dataset (approximately 500GB) to the Hugging Face Hub. The upload fails during the process with a Gateway Timeout error. I will continue trying to upload. While it might succeed in future attempts, I wanted to report...
2025-02-14T02:18:35
2025-02-14T23:48:36
null
https://github.com/huggingface/datasets/issues/7400
null
7,400
false
[ "I transferred to the `datasets` repository. Is there any retry mechanism in `datasets` @lhoestq ?\n\nAnother solution @hotchpotch if you want to get your dataset pushed to the Hub in a robust way is to save it to a local folder first and then use `huggingface-cli upload-large-folder` (see https://huggingface.co/do...
2,851,716,755
Update README.md
closed
null
2025-02-13T17:44:36
2025-02-13T17:46:57
2025-02-13T17:44:51
https://github.com/huggingface/datasets/pull/7396
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7396", "html_url": "https://github.com/huggingface/datasets/pull/7396", "diff_url": "https://github.com/huggingface/datasets/pull/7396.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7396.patch", "merged_at": "2025-02-13T17:44...
7,396
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7396). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,851,575,160
Update docs
closed
- update min python version - replace canonical dataset names with new names - avoid examples with trust_remote_code
2025-02-13T16:43:15
2025-02-13T17:20:32
2025-02-13T17:20:30
https://github.com/huggingface/datasets/pull/7395
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7395", "html_url": "https://github.com/huggingface/datasets/pull/7395", "diff_url": "https://github.com/huggingface/datasets/pull/7395.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7395.patch", "merged_at": "2025-02-13T17:20...
7,395
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7395). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,847,172,115
Using load_dataset with data_files and split arguments yields an error
open
### Describe the bug It seems the list of valid splits recorded by the package becomes incorrectly overwritten when using the `data_files` argument. If I run ```python from datasets import load_dataset load_dataset("allenai/super", split="all_examples", data_files="tasks/expert.jsonl") ``` then I get the error ``` Va...
2025-02-12T04:50:11
2025-02-12T04:50:11
null
https://github.com/huggingface/datasets/issues/7394
null
7,394
false
[]
2,846,446,674
Optimized sequence encoding for scalars
closed
The change in https://github.com/huggingface/datasets/pull/3197 introduced redundant list-comprehensions when `obj` is a long sequence of scalars. This becomes a noticeable overhead when loading data from an `IterableDataset` in the function `_apply_feature_types_on_example` and can be eliminated by adding a check for ...
2025-02-11T20:30:44
2025-02-13T17:11:33
2025-02-13T17:11:32
https://github.com/huggingface/datasets/pull/7393
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7393", "html_url": "https://github.com/huggingface/datasets/pull/7393", "diff_url": "https://github.com/huggingface/datasets/pull/7393.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7393.patch", "merged_at": "2025-02-13T17:11...
7,393
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7393). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2,846,095,043
push_to_hub payload too large error when using large ClassLabel feature
open
### Describe the bug When using `datasets.DatasetDict.push_to_hub` an `HfHubHTTPError: 413 Client Error: Payload Too Large for url` is raised if the dataset contains a large `ClassLabel` feature. Even if the total size of the dataset is small. ### Steps to reproduce the bug ``` python import random import sys impor...
2025-02-11T17:51:34
2025-02-11T18:01:31
null
https://github.com/huggingface/datasets/issues/7392
null
7,392
false
[ "See also <https://discuss.huggingface.co/t/datasetdict-push-to-hub-failing-with-payload-to-large/140083/8>\n" ]
2,845,184,764
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
open
pyarrow 尝试了若干个版本都不可以
2025-02-11T12:02:26
2025-02-11T12:02:26
null
https://github.com/huggingface/datasets/issues/7391
null
7,391
false
[]
2,843,813,365
Re-add py.typed
open
### Feature request The motivation for removing py.typed no longer seems to apply. Would a solution like [this one](https://github.com/huggingface/huggingface_hub/pull/2752) work here? ### Motivation MyPy support is broken. As more type checkers come out, such as RedKnot, these may also be broken. It would be goo...
2025-02-10T22:12:52
2025-02-10T22:12:52
null
https://github.com/huggingface/datasets/issues/7390
null
7,390
false
[]
2,843,592,606
Getting statistics about filtered examples
closed
@lhoestq wondering if the team has thought about this and if there are any recommendations? Currently when processing datasets some examples are bound to get filtered out, whether it's due to bad format, or length is too long, or any other custom filters that might be getting applied. Let's just focus on the filter by...
2025-02-10T20:48:29
2025-02-11T20:44:15
2025-02-11T20:44:13
https://github.com/huggingface/datasets/issues/7389
null
7,389
false
[ "You can actually track a running sum in map() or filter() :)\n\n```python\nnum_filtered = 0\n\ndef f(x):\n global num_filtered\n condition = len(x[\"text\"]) < 1000\n if not condition:\n num_filtered += 1\n return condition\n\nds = ds.filter(f)\nprint(num_filtered)\n```\n\nand if you want to use...