number
int64
2.59k
7.1k
title
stringlengths
1
290
body
stringlengths
0
36.2k
labels
listlengths
0
4
pull_request
dict
is_pull_request
bool
2 classes
comments
listlengths
0
30
7,097
Some of DownloadConfig's properties are always being overridden in load.py
### Describe the bug The `extract_compressed_file` and `force_extract` properties of DownloadConfig are always being set to True in the function `dataset_module_factory` in the `load.py` file. This behavior is very annoying because data extracted will just be ignored the next time the dataset is loaded. See this im...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,096
Automatically create `cache_dir` from `cache_file_name`
You get a pretty unhelpful error message when specifying a `cache_file_name` in a directory that doesn't exist, e.g. `cache_file_name="./cache/data.map"` ```python import datasets cache_file_name="./cache/train.map" dataset = datasets.load_dataset("ylecun/mnist") dataset["train"].map(lambda x: x, cache_file_na...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7096", "html_url": "https://github.com/huggingface/datasets/pull/7096", "diff_url": "https://github.com/huggingface/datasets/pull/7096.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7096.patch", "merged_at": null }
true
[]
7,094
Add Arabic Docs to Datasets
Translate Docs into Arabic issue-number : #7093 [Arabic Docs](https://github.com/AhmedAlmaghz/datasets/blob/main/docs/source/ar/index.mdx) [English Docs](https://github.com/AhmedAlmaghz/datasets/blob/main/docs/source/en/index.mdx) @stevhliu
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7094", "html_url": "https://github.com/huggingface/datasets/pull/7094", "diff_url": "https://github.com/huggingface/datasets/pull/7094.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7094.patch", "merged_at": null }
true
[]
7,093
Add Arabic Docs to datasets
### Feature request Add Arabic Docs to datasets [Datasets Arabic](https://github.com/AhmedAlmaghz/datasets/blob/main/docs/source/ar/index.mdx) ### Motivation @AhmedAlmaghz https://github.com/AhmedAlmaghz/datasets/blob/main/docs/source/ar/index.mdx ### Your contribution @AhmedAlmaghz https://github.com/AhmedAlma...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,092
load_dataset with multiple jsonlines files interprets datastructure too early
### Describe the bug likely related to #6460 using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data. ### Steps to reproduce the bug real world example: data is available in this [PR-bra...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "I’ll take a look", "Possible definitions of done for this issue:\r\n\r\n1. A fix so you can load your dataset specifically\r\n2. A general fix for datasets similar to this in the `datasets` library\r\n\r\nOption 1 is trivial. I think option 2 requires significant changes to the library.\r\n\r\nSince you outlined...
7,090
The test test_move_script_doesnt_change_hash fails because it runs the 'python' command while the python executable has a different name
### Describe the bug Tests should use the same pythin path as they are launched with, which in the case of FreeBSD is /usr/local/bin/python3.11 Failure: ``` if err_filename is not None: > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFo...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,089
Missing pyspark dependency causes the testsuite to error out, instead of a few tests to be skipped
### Describe the bug see the subject ### Steps to reproduce the bug regular tests ### Expected behavior n/a ### Environment info version 2.20.0
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,088
Disable warning when using with_format format on tensors
### Feature request If we write this code: ```python """Get data and define datasets.""" from enum import StrEnum from datasets import load_dataset from torch.utils.data import DataLoader from torchvision import transforms class Split(StrEnum): """Describes what type of split to use in the dataloa...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,087
Unable to create dataset card for Lushootseed language
### Feature request While I was creating the dataset which contained all documents from the Lushootseed Wikipedia, the dataset card asked me to enter which language the dataset was in. Since Lushootseed is a critically endangered language, it was not available as one of the options. Is it possible to allow entering la...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Thanks for reporting.\r\n\r\nIt is weird, because the language entry is in the list. See: https://github.com/huggingface/huggingface.js/blob/98e32f0ed4ee057a596f66a1dec738e5db9643d5/packages/languages/src/languages_iso_639_3.ts#L15186-L15189\r\n\r\nI have reported the issue:\r\n- https://github.com/huggingface/hug...
7,086
load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors
### Describe the bug I have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this. ### Steps to reproduce the bug 1. Be Me 2. Run `load_dataset("TAUR-Lab/MuSR")` 3. Hit rate limit error 4. Dataset...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,085
[Regression] IterableDataset is broken on 2.20.0
### Describe the bug In the latest version of datasets there is a major regression, after creating an `IterableDataset` from a generator and applying a few operations (`map`, `select`), you can no longer iterate through the dataset multiple times. The issue seems to stem from the recent addition of "resumable Itera...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "@lhoestq I detected this regression over on [DataDreamer](https://github.com/datadreamer-dev/DataDreamer)'s test suite. I put in these [monkey patches](https://github.com/datadreamer-dev/DataDreamer/blob/4cbaf9f39cf7bedde72bbaa68346e169788fbecb/src/_patches/datasets_reset_state_hack.py) in case that fixed it our t...
7,084
More easily support streaming local files
### Feature request Simplify downloading and streaming datasets locally. Specifically, perhaps add an option to `load_dataset(..., streaming="download_first")` or add better support for streaming symlinked or arrow files. ### Motivation I have downloaded FineWeb-edu locally and currently trying to stream the d...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,083
fix streaming from arrow files
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7083", "html_url": "https://github.com/huggingface/datasets/pull/7083", "diff_url": "https://github.com/huggingface/datasets/pull/7083.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7083.patch", "merged_at": null }
true
[]
7,082
Support HTTP authentication in non-streaming mode
Support HTTP authentication in non-streaming mode, by support passing HTTP storage_options in non-streaming mode. - Note that currently, HTTP authentication is supported only in streaming mode. For example, this is necessary if a remote HTTP host requires authentication to download the data.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7082", "html_url": "https://github.com/huggingface/datasets/pull/7082", "diff_url": "https://github.com/huggingface/datasets/pull/7082.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7082.patch", "merged_at": "2024-08-08T08:24...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7082). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,081
Set load_from_disk path type as PathLike
Set `load_from_disk` path type as `PathLike`. This way it is aligned with `save_to_disk`.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7081", "html_url": "https://github.com/huggingface/datasets/pull/7081", "diff_url": "https://github.com/huggingface/datasets/pull/7081.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7081.patch", "merged_at": "2024-07-30T08:21...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7081). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,080
Generating train split takes a long time
### Describe the bug Loading a simple webdataset takes ~45 minutes. ### Steps to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset("PixArt-alpha/SAM-LLaVA-Captions10M") ``` ### Expected behavior The dataset should load immediately as it does when loaded through a normal indexed WebD...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,079
HfHubHTTPError: 500 Server Error: Internal Server Error for url:
### Describe the bug newly uploaded datasets, since yesterday, yields an error. old datasets, works fine. Seems like the datasets api server returns a 500 I'm getting the same error, when I invoke `load_dataset` with my dataset. Long discussion about it here, but I'm not sure anyone from huggingface have s...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "same issue here. @albertvillanova @lhoestq ", "Also impacted by this issue in many of my datasets (though not all) - in my case, this also seems to affect datasets that have been updated recently. Git cloning and the web interface still work:\r\n- https://huggingface.co/api/datasets/acmc/cheat_reduced\r\n- https...
7,078
Fix CI test_convert_to_parquet
Fix `test_convert_to_parquet` by patching `HfApi.preupload_lfs_files` and revert temporary fix: - #7074
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7078", "html_url": "https://github.com/huggingface/datasets/pull/7078", "diff_url": "https://github.com/huggingface/datasets/pull/7078.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7078.patch", "merged_at": "2024-07-27T05:44...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7078). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,077
column_names ignored by load_dataset() when loading CSV file
### Describe the bug load_dataset() ignores the column_names kwarg when loading a CSV file. Instead, it uses whatever values are on the first line of the file. ### Steps to reproduce the bug Call `load_dataset` to load data from a CSV file and specify `column_names` kwarg. ### Expected behavior The resulting da...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "I confirm that `column_names` values are not copied to `names` variable because in this case `CsvConfig.__post_init__` is not called: `CsvConfig` is instantiated with default values and afterwards the `config_kwargs` are used to overwrite its attributes.\r\n\r\n@luismsgomes in the meantime, you can avoid the bug i...
7,076
🧪 Do not mock create_commit
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7076", "html_url": "https://github.com/huggingface/datasets/pull/7076", "diff_url": "https://github.com/huggingface/datasets/pull/7076.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7076.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7076). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
7,075
Update required soxr version from pre-release to release
Update required `soxr` version from pre-release to release 0.4.0: https://github.com/dofuuz/python-soxr/releases/tag/v0.4.0
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7075", "html_url": "https://github.com/huggingface/datasets/pull/7075", "diff_url": "https://github.com/huggingface/datasets/pull/7075.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7075.patch", "merged_at": "2024-07-26T11:40...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7075). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,074
Fix CI by temporarily marking test_convert_to_parquet as expected to fail
As a hotfix for CI, temporarily mark test_convert_to_parquet as expected to fail. Fix #7073. Revert once root cause is fixed.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7074", "html_url": "https://github.com/huggingface/datasets/pull/7074", "diff_url": "https://github.com/huggingface/datasets/pull/7074.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7074.patch", "merged_at": "2024-07-26T09:16...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7074). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,073
CI is broken for convert_to_parquet: Invalid rev id: refs/pr/1 404 error causes RevisionNotFoundError
See: https://github.com/huggingface/datasets/actions/runs/10095313567/job/27915185756 ``` FAILED tests/test_hub.py::test_convert_to_parquet - huggingface_hub.utils._errors.RevisionNotFoundError: 404 Client Error. (Request ID: Root=1-66a25839-31ce7b475e70e7db1e4d44c2;b0c8870f-d5ef-4bf2-a6ff-0191f3df0f64) Revision N...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Any recent change in the API backend rejecting parameter `revision=\"refs/pr/1\"` to `HfApi.preupload_lfs_files`?\r\n```\r\nf\"{endpoint}/api/{repo_type}s/{repo_id}/preupload/{revision}\"\r\n\r\nhttps://hub-ci.huggingface.co/api/datasets/__DUMMY_TRANSFORMERS_USER__/test-dataset-5188a8-17219154347516/preupload/refs...
7,072
nm
null
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,071
Filter hangs
### Describe the bug When trying to filter my custom dataset, the process hangs, regardless of the lambda function used. It appears to be an issue with the way the Images are being handled. The dataset in question is a preprocessed version of https://huggingface.co/datasets/danaaubakirova/patfig where notably, I hav...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,070
how set_transform affects batch size?
### Describe the bug I am trying to fine-tune w2v-bert for ASR task. Since my dataset is so big, I preferred to use the on-the-fly method with set_transform. So i change the preprocessing function to this: ``` def prepare_dataset(batch): input_features = processor(batch["audio"], sampling_rate=16000).input_feat...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,069
Fix push_to_hub by not calling create_branch if PR branch
Fix push_to_hub by not calling create_branch if PR branch (e.g. `refs/pr/1`). Note that currently create_branch raises a 400 Bad Request error if the user passes a PR branch (e.g. `refs/pr/1`). EDIT: ~~Fix push_to_hub by not calling create_branch if branch exists.~~ Note that currently create_branch raises a ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7069", "html_url": "https://github.com/huggingface/datasets/pull/7069", "diff_url": "https://github.com/huggingface/datasets/pull/7069.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7069.patch", "merged_at": "2024-07-30T10:51...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7069). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "cc @Wauplin maybe it's a `huggingface_hub` bug ?\r\n\r\nEDIT: ah actually the issue is ...
7,068
Fix prepare_single_hop_path_and_storage_options
Fix `_prepare_single_hop_path_and_storage_options`: - Do not pass HF authentication headers and HF user-agent to non-HF HTTP URLs - Do not overwrite passed `storage_options` nested values: - Before, when passed ```DownloadConfig(storage_options={"https": {"client_kwargs": {"raise_for_status": True}}})```, ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7068", "html_url": "https://github.com/huggingface/datasets/pull/7068", "diff_url": "https://github.com/huggingface/datasets/pull/7068.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7068.patch", "merged_at": "2024-07-29T06:56...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7068). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,067
Convert_to_parquet fails for datasets with multiple configs
If the dataset has multiple configs, when using the `datasets-cli convert_to_parquet` command to avoid issues with the data viewer caused by loading scripts, the conversion process only successfully converts the data corresponding to the first config. When it starts converting the second config, it throws an error: ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Many users have encountered the same issue, which has caused inconvenience.\r\n\r\nhttps://discuss.huggingface.co/t/convert-to-parquet-fails-for-datasets-with-multiple-configs/86733\r\n", "Thanks for reporting.\r\n\r\nI will make the code more robust.", "I have opened an issue in the huggingface-hub repo:\r\n-...
7,066
One subset per file in repo ?
Right now we consider all the files of a dataset to be the same data, e.g. ``` single_subset_dataset/ ├── train0.jsonl ├── train1.jsonl └── train2.jsonl ``` but in cases like this, each file is actually a different subset of the dataset and should be loaded separately ``` many_subsets_dataset/ ├── animals.jso...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,065
Cannot get item after loading from disk and then converting to iterable.
### Describe the bug The dataset generated from local file works fine. ```py root = "/home/data/train" file_list1 = glob(os.path.join(root, "*part1.flac")) file_list2 = glob(os.path.join(root, "*part2.flac")) ds = ( Dataset.from_dict({"part1": file_list1, "part2": file_list2}) .cast_column("part1", Au...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,064
Add `batch` method to `Dataset` class
This PR introduces a new `batch` method to the `Dataset` class, aligning its functionality with the `IterableDataset.batch()` method (implemented in #7054). The implementation uses as well the existing `map` method for efficient batching of examples. Key changes: - Add `batch` method to `Dataset` class in `arrow_da...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7064", "html_url": "https://github.com/huggingface/datasets/pull/7064", "diff_url": "https://github.com/huggingface/datasets/pull/7064.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7064.patch", "merged_at": "2024-07-25T13:45...
true
[ "Looks good to me ! :)\r\n\r\nyou might want to add the `map` num_proc argument as well, for people who want to make it run faster", "Thanks for the feedback @lhoestq! The last commits include:\r\n- Adding the `num_proc` parameter to `batch`\r\n- Adding tests similar to the one done for `IterableDataset.batch()`\...
7,063
Add `batch` method to `Dataset`
### Feature request Add a `batch` method to the Dataset class, similar to the one recently implemented for `IterableDataset` in PR #7054. ### Motivation A batched iteration speeds up data loading significantly (see e.g. #6279) ### Your contribution I plan to open a PR to implement this.
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,062
Avoid calling http_head for non-HTTP URLs
Avoid calling `http_head` for non-HTTP URLs, by adding and `else` statement. Currently, it makes an unnecessary HTTP call (which adds latency) for non-HTTP protocols, like FTP, S3,... I discovered this while working in an unrelated issue.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7062", "html_url": "https://github.com/huggingface/datasets/pull/7062", "diff_url": "https://github.com/huggingface/datasets/pull/7062.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7062.patch", "merged_at": "2024-07-23T14:21...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7062). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,061
Custom Dataset | Still Raise Error while handling errors in _generate_examples
### Describe the bug I follow this [example](https://discuss.huggingface.co/t/error-handling-in-iterabledataset/72827/3) to handle errors in custom dataset. I am writing a dataset script which read jsonl files and i need to handle errors and continue reading files without raising exception and exit the execution. `...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,060
WebDataset BuilderConfig
This PR adds `WebDatasetConfig`. Closes #7055
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7060", "html_url": "https://github.com/huggingface/datasets/pull/7060", "diff_url": "https://github.com/huggingface/datasets/pull/7060.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7060.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7060). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
7,059
None values are skipped when reading jsonl in subobjects
### Describe the bug I have been fighting against my machine since this morning only to find out this is some kind of a bug. When loading a dataset composed of `metadata.jsonl`, if you have nullable values (Optional[str]), they can be ignored by the parser, shifting things around. E.g., let's take this example ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,058
New feature type: Document
It would be useful for PDF. https://github.com/huggingface/dataset-viewer/issues/2991#issuecomment-2242656069
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,057
Update load_hub.mdx
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7057", "html_url": "https://github.com/huggingface/datasets/pull/7057", "diff_url": "https://github.com/huggingface/datasets/pull/7057.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7057.patch", "merged_at": "2024-07-22T10:28...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7057). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,056
Make `BufferShuffledExamplesIterable` resumable
This PR aims to implement a resumable `BufferShuffledExamplesIterable`. Instead of saving the entire buffer content, which is very memory-intensive, the newly implemented `BufferShuffledExamplesIterable` saves only the minimal state necessary for recovery, e.g., the random generator states and the state of the first e...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7056", "html_url": "https://github.com/huggingface/datasets/pull/7056", "diff_url": "https://github.com/huggingface/datasets/pull/7056.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7056.patch", "merged_at": null }
true
[ "Oh cool !\r\n\r\nThe time it takes to resume depends on the expected maximum distance in this case right ? Do you know its relationship with $B$ ?\r\n\r\nIn your test it already as high as 15k for $B=1024$, which is ok for text datasets but is maybe not ideal for datasets with heavy samples like audio/image/video ...
7,055
WebDataset with different prefixes are unsupported
### Describe the bug Consider a WebDataset with multiple images for each item where the number of images may vary: [example](https://huggingface.co/datasets/bigdata-pw/fashion-150k) Due to this [code](https://github.com/huggingface/datasets/blob/87f4c2088854ff33e817e724e75179e9975c1b02/src/datasets/packaged_modules...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Since `datasets` uses is built on Arrow to store the data, it requires each sample to have the same columns.\r\n\r\nThis can be fixed by specifyign in advance the name of all the possible columns in the `dataset_info` in YAML, and missing values will be `None`", "Thanks. This currently doesn't work for WebDatase...
7,054
Add batching to `IterableDataset`
I've taken a try at implementing a batched `IterableDataset` as requested in issue #6279. This PR adds a new `BatchedExamplesIterable` class and a `.batch()` method to the `IterableDataset` class. The main changes are: 1. A new `BatchedExamplesIterable` that groups examples into batches. 2. A `.batch()` method for...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7054", "html_url": "https://github.com/huggingface/datasets/pull/7054", "diff_url": "https://github.com/huggingface/datasets/pull/7054.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7054.patch", "merged_at": "2024-07-23T10:34...
true
[ "Cool ! Thanks for diving into it :)\r\n\r\nYour implementation is great and indeed supports shuffling and batching, you just need to additionally account for state_dict (for dataset [checkpointing+resuming](https://huggingface.co/docs/datasets/main/en/use_with_pytorch#checkpoint-and-resume))\r\n\r\nThat being said...
7,053
Datasets.datafiles resolve_pattern `TypeError: can only concatenate tuple (not "str") to tuple`
### Describe the bug in data_files.py, line 332, `fs, _, _ = get_fs_token_paths(pattern, storage_options=storage_options)` If we run the code on AWS, as fs.protocol will be a tuple like: `('file', 'local')` So, `isinstance(fs.protocol, str) == False` and `protocol_prefix = fs.protocol + "://" if fs.protocol != ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi,\r\n\r\nThis issue was fixed in `datasets` 2.15.0:\r\n- #6105\r\n\r\nYou will need to update your `datasets`:\r\n```\r\npip install -U datasets\r\n```", "Duplicate of:\r\n- #6100" ]
7,052
Adding `Music` feature for symbolic music modality (MIDI, abc)
⚠️ (WIP) ⚠️ ### What this PR does This PR adds a `Music` feature for the symbolic music modality, in particular [MIDI](https://en.wikipedia.org/wiki/Musical_Instrument_Digital_Interface) and [abc](https://en.wikipedia.org/wiki/ABC_notation) files. ### Motivations These two file formats are widely used in th...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7052", "html_url": "https://github.com/huggingface/datasets/pull/7052", "diff_url": "https://github.com/huggingface/datasets/pull/7052.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7052.patch", "merged_at": null }
true
[]
7,051
How to set_epoch with interleave_datasets?
Let's say I have dataset A which has 100k examples, and dataset B which has 100m examples. I want to train on an interleaved dataset of A+B, with stopping_strategy='all_exhausted' so dataset B doesn't repeat any examples. But every time A is exhausted I want it to be reshuffled (eg. calling set_epoch) Of course I...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "This is not possible right now afaik :/\r\n\r\nMaybe we could have something like this ? wdyt ?\r\n\r\n```python\r\nds = interleave_datasets(\r\n [shuffled_dataset_a, dataset_b],\r\n probabilities=probabilities,\r\n stopping_strategy='all_exhausted',\r\n reshuffle_each_iteration=True,\r\n)", "That wo...
7,050
add checkpoint and resume title in docs
(minor) just to make it more prominent in the docs page for the soon-to-be-released new torchdata
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7050", "html_url": "https://github.com/huggingface/datasets/pull/7050", "diff_url": "https://github.com/huggingface/datasets/pull/7050.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7050.patch", "merged_at": "2024-07-15T15:59...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7050). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,049
Save nparray as list
### Describe the bug When I use the `map` function to convert images into features, datasets saves nparray as a list. Some people use the `set_format` function to convert the column back, but doesn't this lose precision? ### Steps to reproduce the bug the map function ```python def convert_image_to_features(inst, ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "In addition, when I use `set_format ` and index the ds, the following error occurs:\r\nthe code\r\n```python\r\nds.set_format(type=\"np\", colums=\"pixel_values\")\r\n```\r\nerror\r\n<img width=\"918\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b28bbff2-20ea-4d28-ab62-b4ed2d944996\">\r\n", ">...
7,048
ImportError: numpy.core.multiarray when using `filter`
### Describe the bug I can't apply the filter method on my dataset. ### Steps to reproduce the bug The following snippet generates a bug: ```python from datasets import load_dataset ami = load_dataset('kamilakesbi/ami', 'ihm') ami['train'].filter( lambda example: example["file_name"] == 'EN2001a' ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Could you please check your `numpy` version?", "I got this issue while using numpy version 2.0. \r\n\r\nI solved it by switching back to numpy 1.26.0 :) ", "We recently added support for numpy 2.0, but it is not released yet.", "Ok I see, thanks! I think we can close this issue for now as switching back to v...
7,047
Save Dataset as Sharded Parquet
### Feature request `to_parquet` currently saves the dataset as one massive, monolithic parquet file, rather than as several small parquet files. It should shard large datasets automatically. ### Motivation This default behavior makes me very sad because a program I ran for 6 hours saved its results using `to_...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "To anyone else who finds themselves in this predicament, it's possible to read the parquet file in the same way that datasets writes it, and then manually break it into pieces. Although, you need a couple of magic options (`thrift_*`) to deal with the huge metadata, otherwise pyarrow immediately crashes.\r\n```pyt...
7,046
Support librosa and numpy 2.0 for Python 3.10
Support librosa and numpy 2.0 for Python 3.10 by installing soxr 0.4.0b1 pre-release: - https://github.com/dofuuz/python-soxr/releases/tag/v0.4.0b1 - https://github.com/dofuuz/python-soxr/issues/28
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7046", "html_url": "https://github.com/huggingface/datasets/pull/7046", "diff_url": "https://github.com/huggingface/datasets/pull/7046.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7046.patch", "merged_at": "2024-07-12T12:58...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7046). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,045
Fix tensorflow min version depending on Python version
Fix tensorflow min version depending on Python version. Related to: - #6991
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7045", "html_url": "https://github.com/huggingface/datasets/pull/7045", "diff_url": "https://github.com/huggingface/datasets/pull/7045.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7045.patch", "merged_at": "2024-07-12T12:33...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7045). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,044
Mark tests that require librosa
Mark tests that require `librosa`. Note that `librosa` is an optional dependency (installed with `audio` option) and we should be able to test environments without that library installed. This is the case if we want to test Numpy 2.0, which is currently incompatible with `librosa` due to its dependency on `soxr`: -...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7044", "html_url": "https://github.com/huggingface/datasets/pull/7044", "diff_url": "https://github.com/huggingface/datasets/pull/7044.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7044.patch", "merged_at": "2024-07-12T09:00...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7044). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,043
Add decorator as explicit test dependency
Add decorator as explicit test dependency. We use `decorator` library in our CI test since PR: - #4845 However we did not add it as an explicit test requirement, and we depended on it indirectly through other libraries' dependencies. I discovered this while testing Numpy 2.0 and removing incompatible librarie...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7043", "html_url": "https://github.com/huggingface/datasets/pull/7043", "diff_url": "https://github.com/huggingface/datasets/pull/7043.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7043.patch", "merged_at": "2024-07-12T08:07...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7043). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,042
Improved the tutorial by adding a link for loading datasets
Improved the tutorial by letting readers know about loading datasets with common files and including a link. I left the local files section alone because the methods were already listed with code snippets.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7042", "html_url": "https://github.com/huggingface/datasets/pull/7042", "diff_url": "https://github.com/huggingface/datasets/pull/7042.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7042.patch", "merged_at": null }
true
[]
7,041
`sort` after `filter` unreasonably slow
### Describe the bug as the tittle says ... ### Steps to reproduce the bug `sort` seems to be normal. ```python from datasets import Dataset import random nums = [{"k":random.choice(range(0,1000))} for _ in range(100000)] ds = Dataset.from_list(nums) print("start sort") ds = ds.sort("k") print("f...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "`filter` add an indices mapping on top of the dataset, so `sort` has to gather all the rows that are kept to form a new Arrow table and sort the table. Gathering all the rows can take some time, but is a necessary step. You can try calling `ds = ds.flatten_indices()` before sorting to remove the indices mapping." ...
7,040
load `streaming=True` dataset with downloaded cache
### Describe the bug We build a dataset which contains several hdf5 files and write a script using `h5py` to generate the dataset. The hdf5 files are large and the processed dataset cache takes more disk space. So we hope to try streaming iterable dataset. Unfortunately, `h5py` can't convert a remote URL into a hdf5 f...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "When you pass `streaming=True`, the cache is ignored. The remote data URL is used instead and the data is streamed from the remote server.", "Thanks for your reply! So is there any solution to get my expected behavior besides clone the whole repo ? Or could I adjust my script to load the downloaded arrow files a...
7,039
Fix export to JSON when dataset larger than batch size
Fix export to JSON (`files=False`) when dataset larger than batch size. Fix #7037.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7039", "html_url": "https://github.com/huggingface/datasets/pull/7039", "diff_url": "https://github.com/huggingface/datasets/pull/7039.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7039.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7039). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "The test before confirms the bug.\r\n\r\nThere are different possible solutions to this...
7,038
Yes, can definitely elaborate:
Yes, can definitely elaborate: Say I want to use HF Trainer with an arbitrary PyTorch optimizer (`AdamW` here just as an example). Then I should intuitively extend `Trainer` like: ```python class CustomOptimizerTrainer(Trainer): @staticmethod def get_optimizer_cls_and_kwargs(args: HfTrain...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "This is the `datasets` repository, and the issue should be opened in the `transformers` repo instead." ]
7,037
A bug of Dataset.to_json() function
### Describe the bug When using the Dataset.to_json() function, an unexpected error occurs if the parameter is set to lines=False. The stored data should be in the form of a list, but it actually turns into multiple lists, which causes an error when reading the data again. The reason is that to_json() writes to the f...
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Thanks for reporting, @LinglingGreat.\r\n\r\nI confirm this is a bug." ]
7,036
Fix doc generation when NamedSplit is used as parameter default value
Fix doc generation when `NamedSplit` is used as parameter default value. Fix #7035.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7036", "html_url": "https://github.com/huggingface/datasets/pull/7036", "diff_url": "https://github.com/huggingface/datasets/pull/7036.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7036.patch", "merged_at": "2024-07-26T07:51...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7036). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,035
Docs are not generated when a parameter defaults to a NamedSplit value
While generating the docs, we get an error when some parameter defaults to a `NamedSplit` value, like: ```python def call_function(split=Split.TRAIN): ... ``` The error is: ValueError: Equality not supported between split train and <class 'inspect._empty'> See: https://github.com/huggingface/datasets/action...
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,034
chore: fix typos in docs
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7034", "html_url": "https://github.com/huggingface/datasets/pull/7034", "diff_url": "https://github.com/huggingface/datasets/pull/7034.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7034.patch", "merged_at": null }
true
[]
7,033
`from_generator` does not allow to specify the split name
### Describe the bug I'm building train, dev, and test using `from_generator`; however, in all three cases, the logger prints `Generating train split:` It's not possible to change the split name since it seems to be hardcoded: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/generator/g...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Thanks for reporting, @pminervini.\r\n\r\nI agree we should give the option to define the split name.\r\n\r\nIndeed, there is a PR that addresses precisely this issue:\r\n- #7015\r\n\r\nI am reviewing it.", "Booom! thank you guys :)" ]
7,032
Register `.zstd` extension for zstd-compressed files
For example, https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0 dataset files have `.zstd` extension which is currently ignored (only `.zst` is registered).
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7032", "html_url": "https://github.com/huggingface/datasets/pull/7032", "diff_url": "https://github.com/huggingface/datasets/pull/7032.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7032.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7032). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "@albertvillanova hm I don't know tbh, it's just that \"mlfoundations/dclm-baseline-1.0\...
7,031
CI quality is broken: use ruff check instead
CI quality is broken: https://github.com/huggingface/datasets/actions/runs/9838873879/job/27159697027 ``` error: `ruff <path>` has been removed. Use `ruff check <path>` instead. ```
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,030
Add option to disable progress bar when reading a dataset ("Loading dataset from disk")
### Feature request Add an option in load_from_disk to disable the progress bar even if the number of files is larger than 16. ### Motivation I am reading a lot of datasets that it creates lots of logs. <img width="1432" alt="image" src="https://github.com/huggingface/datasets/assets/57996478/8d4bbf03-6b89-...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "You can disable progress bars for all of `datasets` with `disable_progress_bars`. [Link](https://huggingface.co/docs/datasets/en/package_reference/utilities#datasets.enable_progress_bars)\r\n\r\nSo you could do something like:\r\n\r\n```python\r\nfrom datasets import load_from_disk, enable_progress_bars, disable_p...
7,029
load_dataset on AWS lambda throws OSError(30, 'Read-only file system') error
### Describe the bug I'm using AWS lambda to run a python application. I run the `load_dataset` function with cache_dir="/tmp" and is still throws the OSError(30, 'Read-only file system') error. Is even updated all the HF envs to point to /tmp dir but the issue still persists. I can confirm that the I can write to /...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "hi ! can you share the full stack trace ? this should help locate what files is not written in the cache_dir" ]
7,028
Fix ci
...after last pr errors
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7028", "html_url": "https://github.com/huggingface/datasets/pull/7028", "diff_url": "https://github.com/huggingface/datasets/pull/7028.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7028.patch", "merged_at": "2024-07-04T15:19...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7028). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,027
Missing line from previous pr
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7027", "html_url": "https://github.com/huggingface/datasets/pull/7027", "diff_url": "https://github.com/huggingface/datasets/pull/7027.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7027.patch", "merged_at": "2024-07-04T14:34...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7027). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,026
Fix check_library_imports
move it to after the `trust_remote_code` check Note that it only affects local datasets that already exist on disk, not datasets loaded from HF directly
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7026", "html_url": "https://github.com/huggingface/datasets/pull/7026", "diff_url": "https://github.com/huggingface/datasets/pull/7026.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7026.patch", "merged_at": "2024-07-04T14:20...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7026). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,025
feat: support non streamable arrow file binary format
Support Arrow files (`.arrow`) that are in non streamable binary file formats.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7025", "html_url": "https://github.com/huggingface/datasets/pull/7025", "diff_url": "https://github.com/huggingface/datasets/pull/7025.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7025.patch", "merged_at": "2024-07-31T06:09...
true
[ "requesting review - @albertvillanova @lhoestq ", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7025). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "@lhoestq rebased the PR, It would b...
7,024
Streaming dataset not returning data
### Describe the bug I'm deciding to post here because I'm still not sure what the issue is, or if I am using IterableDatasets wrongly. I'm following the guide on here https://huggingface.co/learn/cookbook/en/fine_tuning_code_llm_on_single_gpu pretty much to a tee and have verified that it works when I'm fine-tuning ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,023
Remove dead code for pyarrow < 15.0.0
Remove dead code for pyarrow < 15.0.0. Code is dead since the merge of: - #6892 Fix #7022.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7023", "html_url": "https://github.com/huggingface/datasets/pull/7023", "diff_url": "https://github.com/huggingface/datasets/pull/7023.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7023.patch", "merged_at": "2024-07-03T09:17...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7023). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,022
There is dead code after we require pyarrow >= 15.0.0
There are code lines specific for pyarrow versions < 15.0.0. However, we require pyarrow >= 15.0.0 since the merge of PR: - #6892 Those code lines are now dead code and should be removed.
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,021
Fix casting list array to fixed size list
Fix casting list array to fixed size list. This bug was introduced in [datasets-2.17.0](https://github.com/huggingface/datasets/releases/tag/2.17.0) by PR: https://github.com/huggingface/datasets/pull/6283/files#diff-1cb2b66aa9311d729cfd83013dad56cf5afcda35b39dfd0bfe9c3813a049eab0R1899 - #6283 Fix #7020.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7021", "html_url": "https://github.com/huggingface/datasets/pull/7021", "diff_url": "https://github.com/huggingface/datasets/pull/7021.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7021.patch", "merged_at": "2024-07-03T08:41...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7021). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,020
Casting list array to fixed size list raises error
When trying to cast a list array to fixed size list, an AttributeError is raised: > AttributeError: 'pyarrow.lib.FixedSizeListType' object has no attribute 'length' Steps to reproduce the bug: ```python import pyarrow as pa from datasets.table import array_cast arr = pa.array([[0, 1]]) array_cast(arr, pa.lis...
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,019
Support pyarrow large_list
Allow Polars round trip by supporting pyarrow large list. Fix #6834, fix #6984. Supersede and close #4800, close #6835, close #6986.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7019", "html_url": "https://github.com/huggingface/datasets/pull/7019", "diff_url": "https://github.com/huggingface/datasets/pull/7019.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7019.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7019). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "@albertvillanova really happy to see this fix.\r\n\r\nHave you attempted to save a data...
7,018
`load_dataset` fails to load dataset saved by `save_to_disk`
### Describe the bug This code fails to load the dataset it just saved: ```python from datasets import load_dataset from transformers import AutoTokenizer MODEL = "google-bert/bert-base-cased" tokenizer = AutoTokenizer.from_pretrained(MODEL) dataset = load_dataset("yelp_review_full") def tokenize_functi...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "In my case the error was:\r\n```\r\nValueError: You are trying to load a dataset that was saved using `save_to_disk`. Please use `load_from_disk` instead.\r\n```\r\nDid you try `load_from_disk`?", "More generally, any reason there is no API consistency between save_to_disk and push_to_hub ? \r\n\r\nWould be nice...
7,017
Support fsspec 2024.6.1
Support fsspec 2024.6.1.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7017", "html_url": "https://github.com/huggingface/datasets/pull/7017", "diff_url": "https://github.com/huggingface/datasets/pull/7017.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7017.patch", "merged_at": "2024-07-01T12:06...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7017). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,016
`drop_duplicates` method
### Feature request `drop_duplicates` method for huggingface datasets (similiar in simplicity to the `pandas` one) ### Motivation Ease of use ### Your contribution I don't think i am good enough to help
[ { "id": 1935892865, "node_id": "MDU6TGFiZWwxOTM1ODkyODY1", "url": "https://api.github.com/repos/huggingface/datasets/labels/duplicate", "name": "duplicate", "color": "cfd3d7", "default": true, "description": "This issue or pull request already exists" }, { "id": 1935892871, "...
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "There is an open issue #2514 about this which also proposes solutions." ]
7,015
add split argument to Generator
## Actual When creating a multi-split dataset using generators like ```python datasets.DatasetDict({ "val": datasets.Dataset.from_generator( generator=generator_val, features=features ), "test": datasets.Dataset.from_generator( generator=generator_test, features=features, ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7015", "html_url": "https://github.com/huggingface/datasets/pull/7015", "diff_url": "https://github.com/huggingface/datasets/pull/7015.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7015.patch", "merged_at": "2024-07-26T09:31...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7015). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "@albertvillanova thanks for the review, please take a look", "@albertvillanova please...
7,014
Skip faiss tests on Windows to avoid running CI for 360 minutes
Skip faiss tests on Windows to avoid running CI for 360 minutes. Fix #7013. Revert once the underlying issue is fixed.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7014", "html_url": "https://github.com/huggingface/datasets/pull/7014", "diff_url": "https://github.com/huggingface/datasets/pull/7014.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7014.patch", "merged_at": "2024-07-01T07:10...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7014). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "The failing CI tests are unrelated to this PR.\r\n\r\nWe can see that now the integrati...
7,013
CI is broken for faiss tests on Windows: node down: Not properly terminated
Faiss tests on Windows make the CI run indefinitely until maximum execution time (360 minutes) is reached. See: https://github.com/huggingface/datasets/actions/runs/9712659783 ``` test (integration, windows-latest, deps-minimum) The job running on runner GitHub Actions 60 has exceeded the maximum execution time o...
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,012
Raise an error when a nested object is expected to be a mapping that displays the object
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7012", "html_url": "https://github.com/huggingface/datasets/pull/7012", "diff_url": "https://github.com/huggingface/datasets/pull/7012.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7012.patch", "merged_at": null }
true
[]
7,011
Re-enable raising error from huggingface-hub FutureWarning in CI
Re-enable raising error from huggingface-hub FutureWarning in tests, once that the fix in transformers - https://github.com/huggingface/transformers/pull/31007 was just released yesterday in transformers-4.42.0: https://github.com/huggingface/transformers/releases/tag/v4.42.0 Fix #7010.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7011", "html_url": "https://github.com/huggingface/datasets/pull/7011", "diff_url": "https://github.com/huggingface/datasets/pull/7011.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7011.patch", "merged_at": "2024-06-28T12:19...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7011). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,010
Re-enable raising error from huggingface-hub FutureWarning in CI
Re-enable raising error from huggingface-hub FutureWarning in CI, which was disabled by PR: - #6876 Note that this can only be done once transformers releases the fix: - https://github.com/huggingface/transformers/pull/31007
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,009
Support ruff 0.5.0 in CI
Support ruff 0.5.0 in CI and revert: - #7007 Fix #7008.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7009", "html_url": "https://github.com/huggingface/datasets/pull/7009", "diff_url": "https://github.com/huggingface/datasets/pull/7009.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7009.patch", "merged_at": "2024-06-28T07:11...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7009). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,008
Support ruff 0.5.0 in CI
Support ruff 0.5.0 in CI. Also revert: - #7007
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,007
Fix CI by temporarily pinning ruff < 0.5.0
As a hotfix for CI, temporarily pin ruff upper version < 0.5.0. Fix #7006. Revert once root cause is fixed.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7007", "html_url": "https://github.com/huggingface/datasets/pull/7007", "diff_url": "https://github.com/huggingface/datasets/pull/7007.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7007.patch", "merged_at": "2024-06-28T05:25...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7007). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,006
CI is broken after ruff-0.5.0: E721
After ruff-0.5.0 release (https://github.com/astral-sh/ruff/releases/tag/0.5.0), our CI is broken due to E721 rule. See: https://github.com/huggingface/datasets/actions/runs/9707641618/job/26793170961?pr=6983 > src/datasets/features/features.py:844:12: E721 Use `is` and `is not` for type comparisons, or `isinstanc...
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
7,005
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files
### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi ! `data_dir=` is for directories, can you try using `data_files=` instead ?", "If you are trying to load your image dataset from a local folder, you should replace \"data_dir=path/to/jsonl/metadata.jsonl\" with the real folder path in your computer.\r\n\r\nhttps://huggingface.co/docs/datasets/en/image_load#im...
7,004
Fix WebDatasets KeyError for user-defined Features when a field is missing in an example
Fixes: https://github.com/huggingface/datasets/issues/6900 Not sure if this needs any addition stuff before merging
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7004", "html_url": "https://github.com/huggingface/datasets/pull/7004", "diff_url": "https://github.com/huggingface/datasets/pull/7004.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7004.patch", "merged_at": "2024-06-28T09:30...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7004). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,003
minor fix for bfloat16
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7003", "html_url": "https://github.com/huggingface/datasets/pull/7003", "diff_url": "https://github.com/huggingface/datasets/pull/7003.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7003.patch", "merged_at": "2024-06-25T16:10...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7003). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,002
Fix dump of bfloat16 torch tensor
close https://github.com/huggingface/datasets/issues/7000
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7002", "html_url": "https://github.com/huggingface/datasets/pull/7002", "diff_url": "https://github.com/huggingface/datasets/pull/7002.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7002.patch", "merged_at": "2024-06-25T15:51...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7002). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
7,001
Datasetbuilder Local Download FileNotFoundError
### Describe the bug So I was trying to download a dataset and save it as parquet and I follow the [tutorial](https://huggingface.co/docs/datasets/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage) of Huggingface. However, during the excution I face a FileNotFoundError. I debug the code and it seems...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Ok it seems the solution is to use the directory string without the trailing \"/\" which in my case as: \r\n\r\n`parquet_dir = \"~/data/Parquet\" `\r\n\r\nStill i think this is a weird behavior... " ]
7,000
IterableDataset: Unsupported ScalarType BFloat16
### Describe the bug `IterableDataset.from_generator` crashes when using BFloat16: ``` File "/usr/local/lib/python3.11/site-packages/datasets/utils/_dill.py", line 169, in _save_torchTensor args = (obj.detach().cpu().numpy(),) ^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Got unsupported ScalarType ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "@lhoestq Thank you for merging #6607, but unfortunately the issue persists for `IterableDataset` :pensive: ", "Hi ! I opened https://github.com/huggingface/datasets/pull/7002 to fix this bug", "Amazing, thank you so much @lhoestq! :pray:" ]
6,999
Remove tasks
Remove tasks, as part of the 3.0 release.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6999", "html_url": "https://github.com/huggingface/datasets/pull/6999", "diff_url": "https://github.com/huggingface/datasets/pull/6999.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6999.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6999). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
6,998
Fix tests using hf-internal-testing/librispeech_asr_dummy
Fix tests using hf-internal-testing/librispeech_asr_dummy once that dataset has been converted to Parquet. Fix #6997.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6998", "html_url": "https://github.com/huggingface/datasets/pull/6998", "diff_url": "https://github.com/huggingface/datasets/pull/6998.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6998.patch", "merged_at": "2024-06-25T08:13...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6998). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,997
CI is broken for tests using hf-internal-testing/librispeech_asr_dummy
CI is broken: https://github.com/huggingface/datasets/actions/runs/9657882317/job/26637998686?pr=6996 ``` FAILED tests/test_inspect.py::test_get_dataset_config_names[hf-internal-testing/librispeech_asr_dummy-expected4] - AssertionError: assert ['clean'] == ['clean', 'other'] Right contains one more item: 'othe...
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,996
Remove deprecated code
Remove deprecated code, as part of the 3.0 release. First merge: - [x] #6983 - [x] #6987 - [ ] #6999
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6996", "html_url": "https://github.com/huggingface/datasets/pull/6996", "diff_url": "https://github.com/huggingface/datasets/pull/6996.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6996.patch", "merged_at": null }
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6996). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]