id
int64
599M
3.48B
number
int64
1
7.8k
title
stringlengths
1
290
state
stringclasses
2 values
comments
listlengths
0
30
created_at
timestamp[s]date
2020-04-14 10:18:02
2025-10-05 06:37:50
updated_at
timestamp[s]date
2020-04-27 16:04:17
2025-10-05 10:32:43
closed_at
timestamp[s]date
2020-04-14 12:01:40
2025-10-01 13:56:03
body
stringlengths
0
228k
user
stringlengths
3
26
html_url
stringlengths
46
51
pull_request
dict
is_pull_request
bool
2 classes
2,959,088,568
7,492
Closes #7457
closed
[ "This PR fixes issue #7457" ]
2025-03-30T20:41:20
2025-04-13T22:05:07
2025-04-13T22:05:07
This PR updates the documentation to include the HF_DATASETS_CACHE environment variable, which allows users to customize the cache location for datasets—similar to HF_HUB_CACHE for models.
Harry-Yang0518
https://github.com/huggingface/datasets/pull/7492
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7492", "html_url": "https://github.com/huggingface/datasets/pull/7492", "diff_url": "https://github.com/huggingface/datasets/pull/7492.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7492.patch", "merged_at": null }
true
2,959,085,647
7,491
docs: update cache.mdx to include HF_DATASETS_CACHE documentation
closed
[ "Already included HF_DATASETS_CACHE" ]
2025-03-30T20:35:03
2025-03-30T20:36:40
2025-03-30T20:36:40
null
Harry-Yang0518
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 }
true
2,958,826,222
7,490
(refactor) remove redundant logic in _check_valid_index_key
open
[]
2025-03-30T11:45:42
2025-03-30T11:50:22
null
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...
suzyahyah
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 }
true
2,958,204,763
7,489
fix: loading of datasets from Disk(#7373)
open
[ "@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 ...
2025-03-29T16:22:58
2025-04-24T16:36:36
null
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.
sam-hey
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 }
true
2,956,559,358
7,488
Support underscore int read instruction
closed
[ "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!" ]
2025-03-28T16:01:15
2025-03-28T16:20:44
2025-03-28T16:20:43
close https://github.com/huggingface/datasets/issues/7481
lhoestq
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...
true
2,956,533,448
7,487
Write pdf in map
closed
[ "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." ]
2025-03-28T15:49:25
2025-03-28T17:09:53
2025-03-28T17:09:51
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
lhoestq
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...
true
2,954,042,179
7,486
`shared_datadir` fixture is missing
closed
[ "OK I was missing the `pytest-datadir` package. Sorry for the noise!" ]
2025-03-27T18:17:12
2025-03-27T19:49:11
2025-03-27T19:49:10
### 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...
lahwaacz
https://github.com/huggingface/datasets/issues/7486
null
false
2,953,696,519
7,485
set dev version
closed
[ "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." ]
2025-03-27T16:39:34
2025-03-27T16:41:59
2025-03-27T16:39:42
null
lhoestq
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...
true
2,953,677,168
7,484
release: 3.5.0
closed
[ "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." ]
2025-03-27T16:33:27
2025-03-27T16:35:44
2025-03-27T16:34:22
null
lhoestq
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...
true
2,951,856,468
7,483
Support skip_trying_type
closed
[ "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 ...
2025-03-27T07:07:20
2025-04-29T04:14:57
2025-04-09T09:53:10
This PR addresses Issue #7472 cc: @lhoestq
yoshitomo-matsubara
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...
true
2,950,890,368
7,482
Implement capability to restore non-nullability in Features
closed
[ "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...
2025-03-26T22:16:09
2025-05-15T15:00:59
2025-05-15T15:00:59
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...
BramVanroy
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 }
true
2,950,692,971
7,481
deal with python `10_000` legal number in slice syntax
closed
[ "should be an easy fix, I opened a PR" ]
2025-03-26T20:10:54
2025-03-28T16:20:44
2025-03-28T16:20:44
### 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...
sfc-gh-sbekman
https://github.com/huggingface/datasets/issues/7481
null
false
2,950,315,214
7,480
HF_DATASETS_CACHE ignored?
open
[ "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...
2025-03-26T17:19:34
2025-04-28T10:16:16
null
### 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...
stephenroller
https://github.com/huggingface/datasets/issues/7480
null
false
2,950,235,396
7,479
Features.from_arrow_schema is destructive
open
[]
2025-03-26T16:46:43
2025-03-26T16:46:58
null
### 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...
BramVanroy
https://github.com/huggingface/datasets/issues/7479
null
false
2,948,993,461
7,478
update fsspec 2025.3.0
closed
[ "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...
2025-03-26T09:53:05
2025-03-28T19:15:54
2025-03-28T15:51:55
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
peteski22
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...
true
2,947,169,460
7,477
What is the canonical way to compress a Dataset?
open
[ "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...
2025-03-25T16:47:51
2025-04-03T09:13:11
null
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:...
eric-czech
https://github.com/huggingface/datasets/issues/7477
null
false
2,946,997,924
7,476
Priotitize json
closed
[ "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." ]
2025-03-25T15:44:31
2025-03-25T15:47:00
2025-03-25T15:45:00
`datasets` should load the JSON data in https://huggingface.co/datasets/facebook/natural_reasoning, not the PDF
lhoestq
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...
true
2,946,640,570
7,475
IterableDataset's state_dict shard_example_idx is always equal to the number of samples in a shard
closed
[ "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 ...
2025-03-25T13:58:07
2025-05-06T14:22:19
2025-05-06T14:05:07
### 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_...
bruno-hays
https://github.com/huggingface/datasets/issues/7475
null
false
2,945,066,258
7,474
Remove conditions for Python < 3.9
closed
[ "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...
2025-03-25T03:08:04
2025-04-16T00:11:06
2025-04-15T16:07:55
This PR remove conditions for Python < 3.9.
cyyever
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...
true
2,939,034,643
7,473
Webdataset data format problem
closed
[ "I was able to work around it" ]
2025-03-21T17:23:52
2025-03-21T19:19:58
2025-03-21T19:19:58
### 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 ...
edmcman
https://github.com/huggingface/datasets/issues/7473
null
false
2,937,607,272
7,472
Label casting during `map` process is canceled after the `map` process
closed
[ "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...
2025-03-21T07:56:22
2025-04-10T05:11:15
2025-04-10T05:11:14
### 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...
yoshitomo-matsubara
https://github.com/huggingface/datasets/issues/7472
null
false
2,937,530,069
7,471
Adding argument to `_get_data_files_patterns`
closed
[ "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...
2025-03-21T07:17:53
2025-03-27T12:30:52
2025-03-26T07:26:27
### 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...
SangbumChoi
https://github.com/huggingface/datasets/issues/7471
null
false
2,937,236,323
7,470
Is it possible to shard a single-sharded IterableDataset?
closed
[ "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...
2025-03-21T04:33:37
2025-05-09T22:51:46
2025-03-26T06:49:28
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...
jonathanasdf
https://github.com/huggingface/datasets/issues/7470
null
false
2,936,606,080
7,469
Custom split name with the web interface
closed
[]
2025-03-20T20:45:59
2025-03-21T07:20:37
2025-03-21T07:20:37
### 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...
vince62s
https://github.com/huggingface/datasets/issues/7469
null
false
2,934,094,103
7,468
function `load_dataset` can't solve folder path with regex characters like "[]"
open
[ "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" ]
2025-03-20T05:21:59
2025-03-25T10:18:12
null
### 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...
Hpeox
https://github.com/huggingface/datasets/issues/7468
null
false
2,930,067,107
7,467
load_dataset with streaming hangs on parquet datasets
open
[ "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=`..." ]
2025-03-18T23:33:54
2025-03-25T10:28:04
null
### 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...
The0nix
https://github.com/huggingface/datasets/issues/7467
null
false
2,928,661,327
7,466
Fix local pdf loading
closed
[ "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." ]
2025-03-18T14:09:06
2025-03-18T14:11:52
2025-03-18T14:09:21
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...
lhoestq
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...
true
2,926,478,838
7,464
Minor fix for metadata files in extension counter
closed
[ "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." ]
2025-03-17T21:57:11
2025-03-18T15:21:43
2025-03-18T15:21:41
null
lhoestq
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...
true
2,925,924,452
7,463
Adds EXR format to store depth images in float32
open
[ "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", ...
2025-03-17T17:42:40
2025-04-02T12:33:39
null
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.
ducha-aiki
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 }
true
2,925,612,945
7,462
set dev version
closed
[ "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." ]
2025-03-17T16:00:53
2025-03-17T16:03:31
2025-03-17T16:01:08
null
lhoestq
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...
true
2,925,608,123
7,461
List of images behave differently on IterableDataset and Dataset
closed
[ "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\")...
2025-03-17T15:59:23
2025-03-18T08:57:17
2025-03-18T08:57:16
### 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": [ ...
FredrikNoren
https://github.com/huggingface/datasets/issues/7461
null
false
2,925,605,865
7,460
release: 3.4.1
closed
[ "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." ]
2025-03-17T15:58:31
2025-03-17T16:01:14
2025-03-17T15:59:19
null
lhoestq
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...
true
2,925,491,766
7,459
Fix data_files filtering
closed
[ "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." ]
2025-03-17T15:20:21
2025-03-17T15:25:56
2025-03-17T15:25:54
close https://github.com/huggingface/datasets/issues/7458
lhoestq
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...
true
2,925,403,528
7,458
Loading the `laion/filtered-wit` dataset in streaming mode fails on v3.4.0
closed
[ "thanks for reporting, I released 3.4.1 with a fix" ]
2025-03-17T14:54:02
2025-03-17T16:02:04
2025-03-17T15:25:55
### 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...
nikita-savelyevv
https://github.com/huggingface/datasets/issues/7458
null
false
2,924,886,467
7,457
Document the HF_DATASETS_CACHE env variable
closed
[ "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...
2025-03-17T12:24:50
2025-05-06T15:54:39
2025-05-06T15:54:39
### 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`...
LSerranoPEReN
https://github.com/huggingface/datasets/issues/7457
null
false
2,922,676,278
7,456
.add_faiss_index and .add_elasticsearch_index returns ImportError at Google Colab
open
[ "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...
2025-03-16T00:51:49
2025-03-17T15:57:19
null
### 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...
MapleBloom
https://github.com/huggingface/datasets/issues/7456
null
false
2,921,933,250
7,455
Problems with local dataset after upgrade from 3.3.2 to 3.4.0
open
[ "Hi ! I just released 3.4.1 with a fix, let me know if it's working now !" ]
2025-03-15T09:22:50
2025-03-17T16:20:43
null
### 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/...
andjoer
https://github.com/huggingface/datasets/issues/7455
null
false
2,920,760,793
7,454
set dev version
closed
[ "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." ]
2025-03-14T16:48:19
2025-03-14T16:50:31
2025-03-14T16:48:28
null
lhoestq
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...
true
2,920,719,503
7,453
release: 3.4.0
closed
[ "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." ]
2025-03-14T16:30:45
2025-03-14T16:38:10
2025-03-14T16:38:08
null
lhoestq
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...
true
2,920,354,783
7,452
minor docs changes
closed
[ "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." ]
2025-03-14T14:14:04
2025-03-14T14:16:38
2025-03-14T14:14:20
before the release
lhoestq
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...
true
2,919,835,663
7,451
Fix resuming after `ds.set_epoch(new_epoch)`
closed
[ "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." ]
2025-03-14T10:31:25
2025-03-14T10:50:11
2025-03-14T10:50:09
close https://github.com/huggingface/datasets/issues/7447
lhoestq
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...
true
2,916,681,414
7,450
Add IterableDataset.decode with multithreading
closed
[ "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." ]
2025-03-13T10:41:35
2025-03-14T10:35:37
2025-03-14T10:35:35
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...
lhoestq
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...
true
2,916,235,092
7,449
Cannot load data with different schemas from different parquet files
closed
[ "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 ...
2025-03-13T08:14:49
2025-03-17T07:27:48
2025-03-17T07:27:46
### 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 ...
li-plus
https://github.com/huggingface/datasets/issues/7449
null
false
2,916,025,762
7,448
`datasets.disable_caching` doesn't work
open
[ "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...
2025-03-13T06:40:12
2025-03-22T04:37:07
null
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!
UCC-team
https://github.com/huggingface/datasets/issues/7448
null
false
2,915,233,248
7,447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
closed
[ "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 ...
2025-03-12T21:41:05
2025-07-09T23:04:57
2025-03-14T10:50:10
### 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 ...
dhruvdcoder
https://github.com/huggingface/datasets/issues/7447
null
false
2,913,050,552
7,446
pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int'
closed
[ "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...
2025-03-12T07:48:37
2025-07-04T05:14:45
2025-07-04T05:14:45
### 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...
rangehow
https://github.com/huggingface/datasets/issues/7446
null
false
2,911,507,923
7,445
Fix small bugs with async map
closed
[ "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." ]
2025-03-11T18:30:57
2025-03-13T10:38:03
2025-03-13T10:37:58
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...
lhoestq
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...
true
2,911,202,445
7,444
Excessive warnings when resuming an IterableDataset+buffered shuffle+DDP.
open
[ "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)...
2025-03-11T16:34:39
2025-05-13T09:41:03
null
### 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 ...
dhruvdcoder
https://github.com/huggingface/datasets/issues/7444
null
false
2,908,585,656
7,443
index error when num_shards > len(dataset)
open
[ "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)`." ]
2025-03-10T22:40:59
2025-03-10T23:43:08
null
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...
eminorhan
https://github.com/huggingface/datasets/issues/7443
null
false
2,905,543,017
7,442
Flexible Loader
open
[ "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://...
2025-03-09T16:55:03
2025-03-27T23:58:17
null
### 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) ...
dipta007
https://github.com/huggingface/datasets/issues/7442
null
false
2,904,702,329
7,441
`drop_last_batch` does not drop the last batch using IterableDataset + interleave_datasets + multi_worker
open
[ "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...
2025-03-08T10:28:44
2025-03-09T21:27:33
null
### 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...
memray
https://github.com/huggingface/datasets/issues/7441
null
false
2,903,740,662
7,440
IterableDataset raises FileNotFoundError instead of retrying
open
[ "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...
2025-03-07T19:14:18
2025-07-22T08:15:44
null
### 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 ...
bauwenst
https://github.com/huggingface/datasets/issues/7440
null
false
2,900,143,289
7,439
Fix multi gpu process example
closed
[ "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?" ]
2025-03-06T11:29:19
2025-03-06T17:07:28
2025-03-06T17:06:38
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?
SwayStar123
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 }
true
2,899,209,484
7,438
Allow dataset row indexing with np.int types (#7423)
closed
[ "+1", "@lhoestq can you take a look at this?", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7438). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Thank you" ]
2025-03-06T03:10:43
2025-07-23T17:56:22
2025-07-23T16:44:42
@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...
DavidRConnell
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": "2025-07-23T16:44...
true
2,899,104,679
7,437
Use pyupgrade --py39-plus for remaining files
open
[ "@lhoestq Have a look?" ]
2025-03-06T02:12:25
2025-07-30T08:34:34
null
This work follows #7428. And "requires-python" is set in pyproject.toml
cyyever
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 }
true
2,898,385,725
7,436
chore: fix typos
closed
[]
2025-03-05T20:17:54
2025-04-28T14:00:09
2025-04-28T13:51:26
null
afuetterer
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...
true
2,895,536,956
7,435
Refactor `string_to_dict` to return `None` if there is no match instead of raising `ValueError`
closed
[ "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 ...
2025-03-04T22:01:20
2025-03-12T16:52:00
2025-03-12T16:52:00
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...
ringohoffman
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...
true
2,893,075,908
7,434
Refactor `Dataset.map` to reuse cache files mapped with different `num_proc`
closed
[ "@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...
2025-03-04T06:12:37
2025-05-14T10:45:10
2025-05-12T15:14:08
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 ...
ringohoffman
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...
true
2,890,240,400
7,433
`Dataset.map` ignores existing caches and remaps when ran with different `num_proc`
closed
[ "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...
2025-03-03T05:51:26
2025-05-12T15:14:09
2025-05-12T15:14:09
### 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...
ringohoffman
https://github.com/huggingface/datasets/issues/7433
null
false
2,887,717,289
7,432
Fix type annotation
closed
[ "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" ]
2025-02-28T17:28:20
2025-03-04T15:53:03
2025-03-04T15:53:03
null
NeilGirdhar
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 }
true
2,887,244,074
7,431
Issues with large Datasets
open
[ "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...
2025-02-28T14:05:22
2025-03-04T15:02:26
null
### 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 ...
nikitabelooussovbtis
https://github.com/huggingface/datasets/issues/7431
null
false
2,886,922,573
7,430
Error in code "Time to slice and dice" from course "NLP Course"
closed
[ "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" ]
2025-02-28T11:36:10
2025-03-05T11:32:47
2025-03-03T17:52:15
### 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...
Yurkmez
https://github.com/huggingface/datasets/issues/7430
null
false
2,886,806,513
7,429
Improved type annotation
open
[ "@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 ...
2025-02-28T10:39:10
2025-05-15T12:27:17
null
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
saiden89
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 }
true
2,886,111,651
7,428
Use pyupgrade --py39-plus
closed
[ "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." ]
2025-02-28T03:39:44
2025-03-22T00:51:20
2025-03-05T15:04:16
null
cyyever
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...
true
2,886,032,571
7,427
Error splitting the input into NAL units.
open
[ "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...
2025-02-28T02:30:15
2025-03-04T01:40:28
null
### 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...
MengHao666
https://github.com/huggingface/datasets/issues/7427
null
false
2,883,754,507
7,426
fix: None default with bool type on load creates typing error
closed
[]
2025-02-27T08:11:36
2025-03-04T15:53:40
2025-03-04T15:53:40
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.
stephantul
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...
true
2,883,684,686
7,425
load_dataset("livecodebench/code_generation_lite", version_tag="release_v2") TypeError: 'NoneType' object is not callable
open
[ "> 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...
2025-02-27T07:36:02
2025-03-27T05:05:33
null
### 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...
dshwei
https://github.com/huggingface/datasets/issues/7425
null
false
2,882,663,621
7,424
Faster folder based builder + parquet support + allow repeated media + use torchvideo
closed
[ "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." ]
2025-02-26T19:55:18
2025-03-05T18:51:00
2025-03-05T17:41:23
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...
lhoestq
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...
true
2,879,271,409
7,423
Row indexing a dataset with numpy integers
closed
[ "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" ]
2025-02-25T18:44:45
2025-07-28T02:23:17
2025-07-28T02:23:17
### 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...
DavidRConnell
https://github.com/huggingface/datasets/issues/7423
null
false
2,878,369,052
7,421
DVC integration broken
open
[ "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" ]
2025-02-25T13:14:31
2025-03-03T17:42:02
null
### 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...
maxstrobel
https://github.com/huggingface/datasets/issues/7421
null
false
2,876,281,928
7,420
better correspondence between cached and saved datasets created using from_generator
open
[]
2025-02-24T22:14:37
2025-02-26T03:10:22
null
### 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...
vttrifonov
https://github.com/huggingface/datasets/issues/7420
null
false
2,875,635,320
7,419
Import order crashes script execution
open
[]
2025-02-24T17:03:43
2025-02-24T17:03:43
null
### 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 🙏 ...
DamienMatias
https://github.com/huggingface/datasets/issues/7419
null
false
2,868,701,471
7,418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
open
[ "@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 ...
2025-02-21T10:58:06
2025-07-11T13:06:10
null
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
alexxchen
https://github.com/huggingface/datasets/issues/7418
null
false
2,866,868,922
7,417
set dev version
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7417). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-20T17:45:29
2025-02-20T17:47:50
2025-02-20T17:45:36
null
lhoestq
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...
true
2,866,862,143
7,416
Release: 3.3.2
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7416). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-20T17:42:11
2025-02-20T17:44:35
2025-02-20T17:43:28
null
lhoestq
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...
true
2,865,774,546
7,415
Shard Dataset at specific indices
open
[ "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` ...
2025-02-20T10:43:10
2025-02-24T11:06:45
null
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
nikonikolov
https://github.com/huggingface/datasets/issues/7415
null
false
2,863,798,756
7,414
Gracefully cancel async tasks
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7414). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-19T16:10:58
2025-02-20T14:12:26
2025-02-20T14:12:23
null
lhoestq
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...
true
2,860,947,582
7,413
Documentation on multiple media files of the same type with WebDataset
open
[ "Yes this is correct and it works with huggingface datasets as well ! Feel free to include an example here: https://github.com/huggingface/datasets/blob/main/docs/source/video_dataset.mdx" ]
2025-02-18T16:13:20
2025-02-20T14:17:54
null
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...
DCNemesis
https://github.com/huggingface/datasets/issues/7413
null
false
2,859,433,710
7,412
Index Error Invalid Ket is out of bounds for size 0 for code-search-net/code_search_net dataset
open
[]
2025-02-18T05:58:33
2025-02-18T06:42:07
null
### Describe the bug I am trying to do model pruning on sentence-transformers/all-mini-L6-v2 for the code-search-net/code_search_net dataset using INCTrainer class However I am getting below error ``` raise IndexError(f"Invalid Key: {key is our of bounds for size {size}") IndexError: Invalid key: 1840208 is out of b...
harshakhmk
https://github.com/huggingface/datasets/issues/7412
null
false
2,858,993,390
7,411
Attempt to fix multiprocessing hang by closing and joining the pool before termination
closed
[ "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 ...
2025-02-17T23:58:03
2025-02-19T21:11:24
2025-02-19T13:40:32
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...
dakinggg
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...
true
2,858,085,707
7,410
Set dev version
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7410). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:54:39
2025-02-17T14:56:58
2025-02-17T14:54:56
null
lhoestq
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...
true
2,858,079,508
7,409
Release: 3.3.1
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7409). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:52:12
2025-02-17T14:54:32
2025-02-17T14:53:13
null
lhoestq
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...
true
2,858,012,313
7,408
Fix filter speed regression
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7408). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-17T14:25:32
2025-02-17T14:28:48
2025-02-17T14:28:46
close https://github.com/huggingface/datasets/issues/7404
lhoestq
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...
true
2,856,517,442
7,407
Update use_with_pandas.mdx: to_pandas() correction in last section
closed
[]
2025-02-17T01:53:31
2025-02-20T17:28:04
2025-02-20T17:28:04
last section ``to_pandas()"
ibarrien
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...
true
2,856,441,206
7,406
Adding Core Maintainer List to CONTRIBUTING.md
closed
[ "@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 ...
2025-02-17T00:32:40
2025-03-24T10:57:54
2025-03-24T10:57:54
### 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.
jp1924
https://github.com/huggingface/datasets/issues/7406
null
false
2,856,372,814
7,405
Lazy loading of environment variables
open
[ "Many python packages out there, including `huggingface_hub`, do load the environment variables on import.\nYou should `load_dotenv()` before importing the libraries.\n\nFor example you can move all you imports inside your `main()` function" ]
2025-02-16T22:31:41
2025-02-17T15:17:18
null
### 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...
nikvaessen
https://github.com/huggingface/datasets/issues/7405
null
false
2,856,366,207
7,404
Performance regression in `dataset.filter`
closed
[ "Thanks for reporting, I'll fix the regression today", "I just released `datasets` 3.3.1 with a fix, let me know if it's good now :)", "@lhoestq it fixed the issue.\n\nThis was (very) fast, thank you very much!" ]
2025-02-16T22:19:14
2025-02-17T17:46:06
2025-02-17T14:28:48
### 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...
ttim
https://github.com/huggingface/datasets/issues/7404
null
false
2,855,880,858
7,402
Fix a typo in arrow_dataset.py
closed
[]
2025-02-16T04:52:02
2025-02-20T17:29:28
2025-02-20T17:29:28
"in the feature" should be "in the future"
jingedawang
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...
true
2,853,260,869
7,401
set dev version
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7401). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-14T10:17:03
2025-02-14T10:19:20
2025-02-14T10:17:13
null
lhoestq
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...
true
2,853,098,442
7,399
Synchronize parameters for various datasets
open
[ "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...
2025-02-14T09:15:11
2025-02-19T11:50:29
null
### Describe the bug [IterableDatasetDict](https://huggingface.co/docs/datasets/v3.2.0/en/package_reference/main_classes#datasets.IterableDatasetDict.map) map function is missing the `desc` parameter. You can see the equivalent map function for [Dataset here](https://huggingface.co/docs/datasets/v3.2.0/en/package_refe...
grofte
https://github.com/huggingface/datasets/issues/7399
null
false
2,853,097,869
7,398
Release: 3.3.0
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7398). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-14T09:15:03
2025-02-14T09:57:39
2025-02-14T09:57:37
null
lhoestq
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...
true
2,852,829,763
7,397
Kannada dataset(Conversations, Wikipedia etc)
closed
[ "Hi ! feel free to uplad the CSV on https://huggingface.co/datasets :)\r\n\r\nwe don't store the datasets' data in this github repository" ]
2025-02-14T06:53:03
2025-02-20T17:28:54
2025-02-20T17:28:53
null
Likhith2612
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 }
true
2,853,201,277
7,400
504 Gateway Timeout when uploading large dataset to Hugging Face Hub
open
[ "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...
2025-02-14T02:18:35
2025-02-14T23:48:36
null
### Description I encountered consistent 504 Gateway Timeout errors while attempting to upload a large dataset (approximately 500GB) to the Hugging Face Hub. The upload fails during the process with a Gateway Timeout error. I will continue trying to upload. While it might succeed in future attempts, I wanted to report...
hotchpotch
https://github.com/huggingface/datasets/issues/7400
null
false
2,851,716,755
7,396
Update README.md
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7396). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-13T17:44:36
2025-02-13T17:46:57
2025-02-13T17:44:51
null
lhoestq
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...
true
2,851,575,160
7,395
Update docs
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7395). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-13T16:43:15
2025-02-13T17:20:32
2025-02-13T17:20:30
- update min python version - replace canonical dataset names with new names - avoid examples with trust_remote_code
lhoestq
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...
true
2,847,172,115
7,394
Using load_dataset with data_files and split arguments yields an error
open
[]
2025-02-12T04:50:11
2025-02-12T04:50:11
null
### Describe the bug It seems the list of valid splits recorded by the package becomes incorrectly overwritten when using the `data_files` argument. If I run ```python from datasets import load_dataset load_dataset("allenai/super", split="all_examples", data_files="tasks/expert.jsonl") ``` then I get the error ``` Va...
devon-research
https://github.com/huggingface/datasets/issues/7394
null
false
2,846,446,674
7,393
Optimized sequence encoding for scalars
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7393). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
2025-02-11T20:30:44
2025-02-13T17:11:33
2025-02-13T17:11:32
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 ...
lukasgd
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...
true
2,846,095,043
7,392
push_to_hub payload too large error when using large ClassLabel feature
open
[ "See also <https://discuss.huggingface.co/t/datasetdict-push-to-hub-failing-with-payload-to-large/140083/8>\n" ]
2025-02-11T17:51:34
2025-02-11T18:01:31
null
### 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...
DavidRConnell
https://github.com/huggingface/datasets/issues/7392
null
false
2,845,184,764
7,391
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
open
[]
2025-02-11T12:02:26
2025-02-11T12:02:26
null
pyarrow 尝试了若干个版本都不可以
LinXin04
https://github.com/huggingface/datasets/issues/7391
null
false
2,843,813,365
7,390
Re-add py.typed
open
[ "A similar issue was fixed for the `transformers` package, too: https://github.com/huggingface/transformers/pull/37022" ]
2025-02-10T22:12:52
2025-08-10T00:51:17
null
### Feature request The motivation for removing py.typed no longer seems to apply. Would a solution like [this one](https://github.com/huggingface/huggingface_hub/pull/2752) work here? ### Motivation MyPy support is broken. As more type checkers come out, such as RedKnot, these may also be broken. It would be goo...
NeilGirdhar
https://github.com/huggingface/datasets/issues/7390
null
false