url
stringlengths
58
61
number
int64
1
8.23k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
created_at
timestamp[s]date
2020-04-14 10:18:02
2026-05-30 09:38:59
comments_url
stringlengths
67
70
pull_request
dict
is_pull_request
bool
2 classes
text
stringlengths
2
228k
comments
listlengths
0
30
https://api.github.com/repos/huggingface/datasets/issues/6449
6,449
Fix metadata file resolution when inferred pattern is `**`
Refetch metadata files in case they were dropped by `filter_extensions` in the previous step. Fix #6442
closed
2023-11-23T17:35:02
https://api.github.com/repos/huggingface/datasets/issues/6449/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6449", "html_url": "https://github.com/huggingface/datasets/pull/6449", "diff_url": "https://github.com/huggingface/datasets/pull/6449.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6449.patch", "merged_at": "2023-11-24T17:13...
true
Fix metadata file resolution when inferred pattern is `**` Refetch metadata files in case they were dropped by `filter_extensions` in the previous step. Fix #6442
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6448
6,448
Use parquet export if possible
The idea is to make this code work for datasets with scripts if they have a Parquet export ```python ds = load_dataset("squad", trust_remote_code=False) ``` And more generally, it means we use the Parquet export whenever it's possible (it's safer and faster than dataset scripts). I also added a `config.USE_P...
closed
2023-11-23T17:31:57
https://api.github.com/repos/huggingface/datasets/issues/6448/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6448", "html_url": "https://github.com/huggingface/datasets/pull/6448", "diff_url": "https://github.com/huggingface/datasets/pull/6448.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6448.patch", "merged_at": "2023-12-01T17:50...
true
Use parquet export if possible The idea is to make this code work for datasets with scripts if they have a Parquet export ```python ds = load_dataset("squad", trust_remote_code=False) ``` And more generally, it means we use the Parquet export whenever it's possible (it's safer and faster than dataset scripts). ...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6447
6,447
Support one dataset loader per config when using YAML
### Feature request See https://huggingface.co/datasets/datasets-examples/doc-unsupported-1 I would like to use CSV loader for the "csv" config, JSONL loader for the "jsonl" config, etc. ### Motivation It would be more flexible for the users ### Your contribution No specific contribution
open
2023-11-23T13:03:07
https://api.github.com/repos/huggingface/datasets/issues/6447/comments
null
false
Support one dataset loader per config when using YAML ### Feature request See https://huggingface.co/datasets/datasets-examples/doc-unsupported-1 I would like to use CSV loader for the "csv" config, JSONL loader for the "jsonl" config, etc. ### Motivation It would be more flexible for the users ### Your contribu...
[]
https://api.github.com/repos/huggingface/datasets/issues/6446
6,446
Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,...
closed
2023-11-22T20:46:36
https://api.github.com/repos/huggingface/datasets/issues/6446/comments
null
false
Speech Commands v2 dataset doesn't match AST-v2 config ### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class la...
[ "You can use `.align_labels_with_mapping` on the dataset to align the labels with the model config.\r\n\r\nRegarding the number of labels, only the special `_silence_` label corresponding to noise is missing, which is consistent with the model paper (reports training on 35 labels). You can run a `.filter` to drop ...
https://api.github.com/repos/huggingface/datasets/issues/6445
6,445
Use `filelock` package for file locking
Use the `filelock` package instead of `datasets.utils.filelock` for file locking to be consistent with `huggingface_hub` and not to be responsible for improving the `filelock` capabilities 🙂. (Reverts https://github.com/huggingface/datasets/pull/859, but these `INFO` logs are not printed by default (anymore?), so ...
closed
2023-11-22T19:04:45
https://api.github.com/repos/huggingface/datasets/issues/6445/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6445", "html_url": "https://github.com/huggingface/datasets/pull/6445", "diff_url": "https://github.com/huggingface/datasets/pull/6445.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6445.patch", "merged_at": "2023-11-23T18:41...
true
Use `filelock` package for file locking Use the `filelock` package instead of `datasets.utils.filelock` for file locking to be consistent with `huggingface_hub` and not to be responsible for improving the `filelock` capabilities 🙂. (Reverts https://github.com/huggingface/datasets/pull/859, but these `INFO` logs ar...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6444
6,444
Remove `Table.__getstate__` and `Table.__setstate__`
When using distributed training, the code of `os.remove(filename)` may be executed separately by each rank, leading to `FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmprxxxxxxx.arrow'` ```python from torch import distributed as dist if dist.get_rank() == 0: dataset = process_dataset(*args, ...
closed
2023-11-22T17:55:10
https://api.github.com/repos/huggingface/datasets/issues/6444/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6444", "html_url": "https://github.com/huggingface/datasets/pull/6444", "diff_url": "https://github.com/huggingface/datasets/pull/6444.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6444.patch", "merged_at": "2023-11-23T15:13...
true
Remove `Table.__getstate__` and `Table.__setstate__` When using distributed training, the code of `os.remove(filename)` may be executed separately by each rank, leading to `FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmprxxxxxxx.arrow'` ```python from torch import distributed as dist if dist.ge...
[ "Thanks for working on this! The [issue](https://bugs.python.org/issue24658) with pickling objects larger than 4GB seems to be patched in Python 3.8 (the minimal supported version was 3.6 at the time of implementing this), so a simple solution would be removing the `Table.__setstate__` and `Table.__getstate__` over...
https://api.github.com/repos/huggingface/datasets/issues/6443
6,443
Trouble loading files defined in YAML explicitly
Look at https://huggingface.co/datasets/severo/doc-yaml-2 It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration ``` You can select multiple files per split using a list of paths: my_dataset_repository/ ├── README.md ├── data/ │ ├── abc.csv ...
open
2023-11-22T15:18:10
https://api.github.com/repos/huggingface/datasets/issues/6443/comments
null
false
Trouble loading files defined in YAML explicitly Look at https://huggingface.co/datasets/severo/doc-yaml-2 It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration ``` You can select multiple files per split using a list of paths: my_dataset_reposit...
[ "There is a typo in one of the file names - `data/edf.csv` should be renamed to `data/def.csv` 🙂. ", "wow, I reviewed it twice to avoid being ashamed like that, but... I didn't notice the typo.\r\n\r\n---\r\n\r\nBesides this: do you think we would be able to improve the error message to make this clearer?", "H...
https://api.github.com/repos/huggingface/datasets/issues/6442
6,442
Trouble loading image folder with additional features - metadata file ignored
### Describe the bug Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions. When loading a local image folder with captions using `datasets==2.13.0` ``` from datasets import load_dataset data = load_dataset(<image_folder_path>) data.column_names ``` ...
closed
2023-11-22T11:01:35
https://api.github.com/repos/huggingface/datasets/issues/6442/comments
null
false
Trouble loading image folder with additional features - metadata file ignored ### Describe the bug Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions. When loading a local image folder with captions using `datasets==2.13.0` ``` from datasets import l...
[ "I reproduced too:\r\n- root: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-3)\r\n- data/ dir: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-4)\r\n- train/ dir: works (https://huggingface.co/datasets/severo/doc-image-5)" ]
https://api.github.com/repos/huggingface/datasets/issues/6441
6,441
Trouble Loading a Gated Dataset For User with Granted Permission
### Describe the bug I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get `FileNotFoundError: Couldn't find a dataset script at .....` . Also when they try to click the url link for the d...
closed
2023-11-21T19:24:36
https://api.github.com/repos/huggingface/datasets/issues/6441/comments
null
false
Trouble Loading a Gated Dataset For User with Granted Permission ### Describe the bug I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get `FileNotFoundError: Couldn't find a dataset scri...
[ "> Also when they try to click the url link for the dataset they get a 404 error.\r\n\r\nThis seems to be a Hub error then (cc @SBrandeis)", "Could you report this to https://discuss.huggingface.co/c/hub/23, providing the URL of the dataset, or at least if the dataset is public or private?", "Thanks for the rep...
https://api.github.com/repos/huggingface/datasets/issues/6440
6,440
`.map` not hashing under python 3.9
### Describe the bug The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message: `Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> of the transform datasets.arrow_data...
closed
2023-11-21T15:14:54
https://api.github.com/repos/huggingface/datasets/issues/6440/comments
null
false
`.map` not hashing under python 3.9 ### Describe the bug The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message: `Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> ...
[ "Tried to upgrade Python to 3.11 - still get this message. A partial solution is to NOT use `num_proc` at all. It will be considerably longer to finish the job.", "Hi! The `model = torch.compile(model)` line is problematic for our hashing logic. We would have to merge https://github.com/huggingface/datasets/pull/...
https://api.github.com/repos/huggingface/datasets/issues/6439
6,439
Download + preparation speed of datasets.load_dataset is 20x slower than huggingface hub snapshot and manual loding
### Describe the bug I am working with a dataset I am trying to publish. The path is Antreas/TALI. It's a fairly large dataset, and contains images, video, audio and text. I have been having multiple problems when the dataset is being downloaded using the load_dataset function -- even with 64 workers takin...
open
2023-11-20T20:07:23
https://api.github.com/repos/huggingface/datasets/issues/6439/comments
null
false
Download + preparation speed of datasets.load_dataset is 20x slower than huggingface hub snapshot and manual loding ### Describe the bug I am working with a dataset I am trying to publish. The path is Antreas/TALI. It's a fairly large dataset, and contains images, video, audio and text. I have been having ...
[ "Hi Antreas, facing a similar type of bug, did you find any workaround?? " ]
https://api.github.com/repos/huggingface/datasets/issues/6438
6,438
Support GeoParquet
### Feature request Support the GeoParquet format ### Motivation GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns. It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub...
open
2023-11-20T11:54:58
https://api.github.com/repos/huggingface/datasets/issues/6438/comments
null
false
Support GeoParquet ### Feature request Support the GeoParquet format ### Motivation GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns. It would be nice to be able to load this format with datasets, and more generally, ...
[ "Thank you, @severo ! I would be more than happy to help in any way I can. I am not familiar with this repo's codebase, but I would be eager to contribute. :)\r\n\r\nFor the preview in Datasets Hub, I think it makes sense to just display the geospatial column as text. If there were a dataset loader, though, I think...
https://api.github.com/repos/huggingface/datasets/issues/6437
6,437
Problem in training iterable dataset
### Describe the bug I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice...
open
2023-11-20T03:04:02
https://api.github.com/repos/huggingface/datasets/issues/6437/comments
null
false
Problem in training iterable dataset ### Describe the bug I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribut...
[ "Has anyone ever encountered this problem before?", "`split_dataset_by_node` doesn't give the exact same number of examples to each node in the case of iterable datasets, though it tries to be as equal as possible. In particular if your dataset is sharded and you have a number of shards that is a factor of the nu...
https://api.github.com/repos/huggingface/datasets/issues/6436
6,436
TypeError: <lambda>() takes 0 positional arguments but 1 was given
### Describe the bug ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>() ----> 1 from datasets import Dataset 9 frames [/usr/lo...
closed
2023-11-19T13:10:20
https://api.github.com/repos/huggingface/datasets/issues/6436/comments
null
false
TypeError: <lambda>() takes 0 positional arguments but 1 was given ### Describe the bug ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell lin...
[ "This looks like a problem with your environment rather than `datasets`.", "I meet the same problem,\r\nand originally use\r\n```python\r\nlocale.getpreferredencoding = lambda : \"UTF-8\"\r\n```\r\nand change to\r\n```\r\nlocale.getpreferredencoding = lambda x: \"UTF-8\"\r\n```\r\nand it works.", "> I meet the ...
https://api.github.com/repos/huggingface/datasets/issues/6435
6,435
Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
### Describe the bug 1. I ran dataset mapping with `num_proc=6` in it and got this error: `RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method` I can't actually find a way to run multi-GPU dataset mapping. Can you help? ### Steps to...
closed
2023-11-19T04:21:16
https://api.github.com/repos/huggingface/datasets/issues/6435/comments
null
false
Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method ### Describe the bug 1. I ran dataset mapping with `num_proc=6` in it and got this error: `RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must us...
[ "[This doc section](https://huggingface.co/docs/datasets/main/en/process#multiprocessing) explains how to modify the script to avoid this error.", "@mariosasko thank you very much, i'll check it", "@mariosasko no it does not\r\n\r\n`Dataset.filter() got an unexpected keyword argument 'with_rank'`" ]
https://api.github.com/repos/huggingface/datasets/issues/6434
6,434
Use `ruff` for formatting
Use `ruff` instead of `black` for formatting to be consistent with `transformers` ([PR](https://github.com/huggingface/transformers/pull/27144)) and `huggingface_hub` ([PR 1](https://github.com/huggingface/huggingface_hub/pull/1783) and [PR 2](https://github.com/huggingface/huggingface_hub/pull/1789)).
closed
2023-11-17T16:53:22
https://api.github.com/repos/huggingface/datasets/issues/6434/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6434", "html_url": "https://github.com/huggingface/datasets/pull/6434", "diff_url": "https://github.com/huggingface/datasets/pull/6434.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6434.patch", "merged_at": "2023-11-21T14:13...
true
Use `ruff` for formatting Use `ruff` instead of `black` for formatting to be consistent with `transformers` ([PR](https://github.com/huggingface/transformers/pull/27144)) and `huggingface_hub` ([PR 1](https://github.com/huggingface/huggingface_hub/pull/1783) and [PR 2](https://github.com/huggingface/huggingface_hub/pul...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6433
6,433
Better `tqdm` wrapper
This PR aligns the `tqdm` logic with `huggingface_hub` (without introducing breaking changes), as the current one is error-prone. Additionally, it improves the doc page about the `datasets`' utilities, and the handling of local `fsspec` paths in `cached_path`. Fix #6409
closed
2023-11-17T15:45:15
https://api.github.com/repos/huggingface/datasets/issues/6433/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6433", "html_url": "https://github.com/huggingface/datasets/pull/6433", "diff_url": "https://github.com/huggingface/datasets/pull/6433.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6433.patch", "merged_at": "2023-11-22T16:42...
true
Better `tqdm` wrapper This PR aligns the `tqdm` logic with `huggingface_hub` (without introducing breaking changes), as the current one is error-prone. Additionally, it improves the doc page about the `datasets`' utilities, and the handling of local `fsspec` paths in `cached_path`. Fix #6409
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6432
6,432
load_dataset does not load all of the data in my input file
### Describe the bug I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements. ### Steps to reproduce the bug train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, split=nlp.Split.TRAIN) valid_dataset = nlp.load_dataset(data_...
open
2023-11-17T14:28:50
https://api.github.com/repos/huggingface/datasets/issues/6432/comments
null
false
load_dataset does not load all of the data in my input file ### Describe the bug I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements. ### Steps to reproduce the bug train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, split=...
[ "You should use `datasets.load_dataset` instead of `nlp.load_dataset`, as the `nlp` package is outdated.\r\n\r\nIf switching to `datasets.load_dataset` doesn't fix the issue, sharing the JSON file (feel free to replace the data with dummy data) would be nice so that we can reproduce it ourselves." ]
https://api.github.com/repos/huggingface/datasets/issues/6431
6,431
Create DatasetNotFoundError and DataFilesNotFoundError
Create `DatasetNotFoundError` and `DataFilesNotFoundError`. Fix #6397. CC: @severo
closed
2023-11-16T16:02:55
https://api.github.com/repos/huggingface/datasets/issues/6431/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6431", "html_url": "https://github.com/huggingface/datasets/pull/6431", "diff_url": "https://github.com/huggingface/datasets/pull/6431.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6431.patch", "merged_at": "2023-11-22T15:12...
true
Create DatasetNotFoundError and DataFilesNotFoundError Create `DatasetNotFoundError` and `DataFilesNotFoundError`. Fix #6397. CC: @severo
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6429
6,429
Add trust_remote_code argument
Draft about adding `trust_remote_code` to `load_dataset`. ```python ds = load_dataset(..., trust_remote_code=True) # run remote code (current default) ``` It would default to `True` (current behavior) and in the next major release it will prompt the user to check the code before running it (we'll communicate o...
closed
2023-11-16T12:12:54
https://api.github.com/repos/huggingface/datasets/issues/6429/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6429", "html_url": "https://github.com/huggingface/datasets/pull/6429", "diff_url": "https://github.com/huggingface/datasets/pull/6429.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6429.patch", "merged_at": "2023-11-28T16:03...
true
Add trust_remote_code argument Draft about adding `trust_remote_code` to `load_dataset`. ```python ds = load_dataset(..., trust_remote_code=True) # run remote code (current default) ``` It would default to `True` (current behavior) and in the next major release it will prompt the user to check the code before ...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6428
6,428
Set dev version
null
closed
2023-11-16T08:12:55
https://api.github.com/repos/huggingface/datasets/issues/6428/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6428", "html_url": "https://github.com/huggingface/datasets/pull/6428", "diff_url": "https://github.com/huggingface/datasets/pull/6428.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6428.patch", "merged_at": "2023-11-16T08:13...
true
Set dev version
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6428). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
https://api.github.com/repos/huggingface/datasets/issues/6427
6,427
Release: 2.15.0
null
closed
2023-11-16T07:37:20
https://api.github.com/repos/huggingface/datasets/issues/6427/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6427", "html_url": "https://github.com/huggingface/datasets/pull/6427", "diff_url": "https://github.com/huggingface/datasets/pull/6427.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6427.patch", "merged_at": "2023-11-16T07:43...
true
Release: 2.15.0
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6426
6,426
More robust temporary directory deletion
While fixing the Windows errors in #6362, I noticed that `PermissionError` can still easily be thrown on the session exit by the temporary cache directory's finalizer (we would also have to keep track of intermediate datasets, copies, etc.). ~~Due to the low usage of `datasets` on Windows, this PR takes a simpler appro...
closed
2023-11-15T19:06:42
https://api.github.com/repos/huggingface/datasets/issues/6426/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6426", "html_url": "https://github.com/huggingface/datasets/pull/6426", "diff_url": "https://github.com/huggingface/datasets/pull/6426.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6426.patch", "merged_at": "2023-12-01T15:31...
true
More robust temporary directory deletion While fixing the Windows errors in #6362, I noticed that `PermissionError` can still easily be thrown on the session exit by the temporary cache directory's finalizer (we would also have to keep track of intermediate datasets, copies, etc.). ~~Due to the low usage of `datasets` ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6426). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
https://api.github.com/repos/huggingface/datasets/issues/6425
6,425
Fix deprecation warning when building conda package
When building/releasing conda package, we get this deprecation warning: ``` /usr/share/miniconda/envs/build-datasets/bin/conda-build:11: DeprecationWarning: conda_build.cli.main_build.main is deprecated and will be removed in 4.0.0. Use `conda build` instead. ``` This PR fixes the deprecation warning by using `co...
closed
2023-11-15T18:00:11
https://api.github.com/repos/huggingface/datasets/issues/6425/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6425", "html_url": "https://github.com/huggingface/datasets/pull/6425", "diff_url": "https://github.com/huggingface/datasets/pull/6425.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6425.patch", "merged_at": "2023-12-13T14:16...
true
Fix deprecation warning when building conda package When building/releasing conda package, we get this deprecation warning: ``` /usr/share/miniconda/envs/build-datasets/bin/conda-build:11: DeprecationWarning: conda_build.cli.main_build.main is deprecated and will be removed in 4.0.0. Use `conda build` instead. ``` ...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6424
6,424
[docs] troubleshooting guide
Hi all! This is a PR adding a troubleshooting guide for Datasets docs. I went through the library's GitHub Issues and Forum questions and identified a few issues that are common enough that I think it would be valuable to include them in the troubleshooting guide. These are: - creating a dataset from a folder and n...
closed
2023-11-15T17:28:14
https://api.github.com/repos/huggingface/datasets/issues/6424/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6424", "html_url": "https://github.com/huggingface/datasets/pull/6424", "diff_url": "https://github.com/huggingface/datasets/pull/6424.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6424.patch", "merged_at": "2023-11-30T17:23...
true
[docs] troubleshooting guide Hi all! This is a PR adding a troubleshooting guide for Datasets docs. I went through the library's GitHub Issues and Forum questions and identified a few issues that are common enough that I think it would be valuable to include them in the troubleshooting guide. These are: - creating ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6424). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
https://api.github.com/repos/huggingface/datasets/issues/6423
6,423
Fix conda release by adding pyarrow-hotfix dependency
Fix conda release by adding pyarrow-hotfix dependency. Note that conda release failed in latest 2.14.7 release: https://github.com/huggingface/datasets/actions/runs/6874667214/job/18696761723 ``` Traceback (most recent call last): File "/usr/share/miniconda/envs/build-datasets/conda-bld/datasets_1700036460222/t...
closed
2023-11-15T14:57:12
https://api.github.com/repos/huggingface/datasets/issues/6423/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6423", "html_url": "https://github.com/huggingface/datasets/pull/6423", "diff_url": "https://github.com/huggingface/datasets/pull/6423.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6423.patch", "merged_at": "2023-11-15T17:09...
true
Fix conda release by adding pyarrow-hotfix dependency Fix conda release by adding pyarrow-hotfix dependency. Note that conda release failed in latest 2.14.7 release: https://github.com/huggingface/datasets/actions/runs/6874667214/job/18696761723 ``` Traceback (most recent call last): File "/usr/share/miniconda/...
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6422
6,422
Allow to choose the `writer_batch_size` when using `save_to_disk`
### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R...
open
2023-11-15T11:18:34
https://api.github.com/repos/huggingface/datasets/issues/6422/comments
null
false
Allow to choose the `writer_batch_size` when using `save_to_disk` ### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, th...
[ "We have a config variable that controls the batch size in `save_to_disk`:\r\n```python\r\nimport datasets\r\ndatasets.config.DEFAULT_MAX_BATCH_SIZE = <smaller_batch_size>\r\n...\r\nds.save_to_disk(...)\r\n```", "Thank you for your answer!\r\n\r\nFrom what I am reading in `https://github.com/huggingface/datasets/...
https://api.github.com/repos/huggingface/datasets/issues/6421
6,421
Add pyarrow-hotfix to release docs
Add `pyarrow-hotfix` to release docs.
closed
2023-11-15T10:06:44
https://api.github.com/repos/huggingface/datasets/issues/6421/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6421", "html_url": "https://github.com/huggingface/datasets/pull/6421", "diff_url": "https://github.com/huggingface/datasets/pull/6421.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6421.patch", "merged_at": "2023-11-15T13:38...
true
Add pyarrow-hotfix to release docs Add `pyarrow-hotfix` to release docs.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6420
6,420
Set dev version
null
closed
2023-11-15T08:22:19
https://api.github.com/repos/huggingface/datasets/issues/6420/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6420", "html_url": "https://github.com/huggingface/datasets/pull/6420", "diff_url": "https://github.com/huggingface/datasets/pull/6420.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6420.patch", "merged_at": "2023-11-15T08:22...
true
Set dev version
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6420). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
https://api.github.com/repos/huggingface/datasets/issues/6419
6,419
Release: 2.14.7
Release 2.14.7.
closed
2023-11-15T08:07:37
https://api.github.com/repos/huggingface/datasets/issues/6419/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6419", "html_url": "https://github.com/huggingface/datasets/pull/6419", "diff_url": "https://github.com/huggingface/datasets/pull/6419.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6419.patch", "merged_at": "2023-11-15T08:12...
true
Release: 2.14.7 Release 2.14.7.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6418
6,418
Remove token value from warnings
Fix #6412
closed
2023-11-14T17:34:06
https://api.github.com/repos/huggingface/datasets/issues/6418/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6418", "html_url": "https://github.com/huggingface/datasets/pull/6418", "diff_url": "https://github.com/huggingface/datasets/pull/6418.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6418.patch", "merged_at": "2023-11-14T22:19...
true
Remove token value from warnings Fix #6412
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6417
6,417
Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab. **Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb **Error**: `ValueError: Arrow type extensi...
closed
2023-11-14T16:53:20
https://api.github.com/repos/huggingface/datasets/issues/6417/comments
null
false
Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error ### Describe the bug Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab. **Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_T...
[ "Very strange: `datasets-cli env`\r\n> \r\n> Copy-and-paste the text below in your GitHub issue.\r\n> \r\n> - `datasets` version: 2.9.0\r\n> - Platform: macOS-14.0-arm64-arm-64bit\r\n> - Python version: 3.9.13\r\n> - PyArrow version: 8.0.0\r\n> - Pandas version: 1.3.5\r\n\r\nAfter updating datasets and pyarrow on b...
https://api.github.com/repos/huggingface/datasets/issues/6416
6,416
Rename audio_classificiation.py to audio_classification.py
null
closed
2023-11-14T15:15:29
https://api.github.com/repos/huggingface/datasets/issues/6416/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6416", "html_url": "https://github.com/huggingface/datasets/pull/6416", "diff_url": "https://github.com/huggingface/datasets/pull/6416.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6416.patch", "merged_at": "2023-11-15T11:53...
true
Rename audio_classificiation.py to audio_classification.py
[ "Oh good catch. Can you also rename it in `src/datasets/tasks/__init__.py` ?", "Fixed! \r\n\r\n(I think, tough word to spell right TBH)", "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show...
https://api.github.com/repos/huggingface/datasets/issues/6415
6,415
Fix multi gpu map example
- use `orch.cuda.set_device` instead of `CUDA_VISIBLE_DEVICES ` - add `if __name__ == "__main__"` fix https://github.com/huggingface/datasets/issues/6186
closed
2023-11-14T14:57:18
https://api.github.com/repos/huggingface/datasets/issues/6415/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6415", "html_url": "https://github.com/huggingface/datasets/pull/6415", "diff_url": "https://github.com/huggingface/datasets/pull/6415.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6415.patch", "merged_at": "2023-11-22T15:42...
true
Fix multi gpu map example - use `orch.cuda.set_device` instead of `CUDA_VISIBLE_DEVICES ` - add `if __name__ == "__main__"` fix https://github.com/huggingface/datasets/issues/6186
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6414
6,414
Set `usedforsecurity=False` in hashlib methods (FIPS compliance)
Related to https://github.com/huggingface/transformers/issues/27034 and https://github.com/huggingface/huggingface_hub/pull/1782. **TL;DR:** `hashlib` is not a secure library for cryptography-related stuff. We are only using `hashlib` for non-security-related purposes in `datasets` so it's fine. From Python 3.9 we s...
closed
2023-11-14T10:47:09
https://api.github.com/repos/huggingface/datasets/issues/6414/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6414", "html_url": "https://github.com/huggingface/datasets/pull/6414", "diff_url": "https://github.com/huggingface/datasets/pull/6414.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6414.patch", "merged_at": "2023-11-17T14:17...
true
Set `usedforsecurity=False` in hashlib methods (FIPS compliance) Related to https://github.com/huggingface/transformers/issues/27034 and https://github.com/huggingface/huggingface_hub/pull/1782. **TL;DR:** `hashlib` is not a secure library for cryptography-related stuff. We are only using `hashlib` for non-security-...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6412
6,412
User token is printed out!
This line prints user token on command line! Is it safe? https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091
closed
2023-11-14T10:01:34
https://api.github.com/repos/huggingface/datasets/issues/6412/comments
null
false
User token is printed out! This line prints user token on command line! Is it safe? https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091
[ "Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning." ]
https://api.github.com/repos/huggingface/datasets/issues/6411
6,411
Fix dependency conflict within CI build documentation
Manually fix dependency conflict on `typing-extensions` version originated by `apache-beam` + `pydantic` (now a dependency of `huggingface-hub`). This is a temporary hot fix of our CI build documentation until we stop using `apache-beam`. Fix #6406.
closed
2023-11-14T09:52:51
https://api.github.com/repos/huggingface/datasets/issues/6411/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6411", "html_url": "https://github.com/huggingface/datasets/pull/6411", "diff_url": "https://github.com/huggingface/datasets/pull/6411.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6411.patch", "merged_at": "2023-11-14T10:05...
true
Fix dependency conflict within CI build documentation Manually fix dependency conflict on `typing-extensions` version originated by `apache-beam` + `pydantic` (now a dependency of `huggingface-hub`). This is a temporary hot fix of our CI build documentation until we stop using `apache-beam`. Fix #6406.
[ "_The documentation is not available anymore as the PR was closed or merged._" ]
https://api.github.com/repos/huggingface/datasets/issues/6410
6,410
Datasets does not load HuggingFace Repository properly
### Describe the bug Dear Datasets team, We just have published a dataset on Huggingface: https://huggingface.co/ai4privacy However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you please clarify how we can solve the issue? Please let me ...
open
2023-11-14T06:50:49
https://api.github.com/repos/huggingface/datasets/issues/6410/comments
null
false
Datasets does not load HuggingFace Repository properly ### Describe the bug Dear Datasets team, We just have published a dataset on Huggingface: https://huggingface.co/ai4privacy However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you pl...
[ "Hi! You can avoid the error by requesting only the `jsonl` files. `dataset = load_dataset(\"ai4privacy/pii-masking-200k\", data_files=[\"*.jsonl\"])`.\r\n\r\nOur data file inference does not filter out (incompatible) `json` files because `json` and `jsonl` use the same builder. Still, I think the inference should...
https://api.github.com/repos/huggingface/datasets/issues/6409
6,409
using DownloadManager to download from local filesystem and disable_progress_bar, there will be an exception
### Describe the bug i'm using datasets.download.download_manager.DownloadManager to download files like "file:///a/b/c.txt", and i disable_progress_bar() to disable bar. there will be an exception as follows: `AttributeError: 'function' object has no attribute 'close' Exception ignored in: <function TqdmCallback....
closed
2023-11-14T04:21:01
https://api.github.com/repos/huggingface/datasets/issues/6409/comments
null
false
using DownloadManager to download from local filesystem and disable_progress_bar, there will be an exception ### Describe the bug i'm using datasets.download.download_manager.DownloadManager to download files like "file:///a/b/c.txt", and i disable_progress_bar() to disable bar. there will be an exception as follows:...
[]
https://api.github.com/repos/huggingface/datasets/issues/6408
6,408
`IterableDataset` lost but not keep columns when map function adding columns with names in `remove_columns`
### Describe the bug IterableDataset lost but not keep columns when map function adding columns with names in remove_columns, Dataset not. May be related to the code below: https://github.com/huggingface/datasets/blob/06c3ffb8d068b6307b247164b10f7c7311cefed4/src/datasets/iterable_dataset.py#L750-L756 ### Steps t...
open
2023-11-14T03:12:08
https://api.github.com/repos/huggingface/datasets/issues/6408/comments
null
false
`IterableDataset` lost but not keep columns when map function adding columns with names in `remove_columns` ### Describe the bug IterableDataset lost but not keep columns when map function adding columns with names in remove_columns, Dataset not. May be related to the code below: https://github.com/huggingface/da...
[]
https://api.github.com/repos/huggingface/datasets/issues/6407
6,407
Loading the dataset from private S3 bucket gives "TypeError: cannot pickle '_contextvars.Context' object"
### Describe the bug I'm trying to read the parquet file from the private s3 bucket using the `load_dataset` function, but I receive `TypeError: cannot pickle '_contextvars.Context' object` error I'm working on a machine with `~/.aws/credentials` file. I can't give credentials and the path to a file in a private bu...
open
2023-11-13T21:27:43
https://api.github.com/repos/huggingface/datasets/issues/6407/comments
null
false
Loading the dataset from private S3 bucket gives "TypeError: cannot pickle '_contextvars.Context' object" ### Describe the bug I'm trying to read the parquet file from the private s3 bucket using the `load_dataset` function, but I receive `TypeError: cannot pickle '_contextvars.Context' object` error I'm working on...
[ "I have encountered the same problem with `datasets-2.20.0`. \r\n\r\nI found the following workaround for this issue (including the fix from #6598):\r\n1. specify the AWS profile name in the `storage_options` instead of passing an existing session object\r\n2. use a custom `DownloadConfig` object to fix #6598\r\n3....
https://api.github.com/repos/huggingface/datasets/issues/6406
6,406
CI Build PR Documentation is broken: ImportError: cannot import name 'TypeAliasType' from 'typing_extensions'
Our CI Build PR Documentation is broken. See: https://github.com/huggingface/datasets/actions/runs/6799554060/job/18486828777?pr=6390 ``` ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' ```
closed
2023-11-13T11:36:10
https://api.github.com/repos/huggingface/datasets/issues/6406/comments
null
false
CI Build PR Documentation is broken: ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' Our CI Build PR Documentation is broken. See: https://github.com/huggingface/datasets/actions/runs/6799554060/job/18486828777?pr=6390 ``` ImportError: cannot import name 'TypeAliasType' from 'typing_extension...
[]
https://api.github.com/repos/huggingface/datasets/issues/6405
6,405
ConfigNamesError on a simple CSV file
See https://huggingface.co/datasets/Nguyendo1999/mmath/discussions/1 ``` Error code: ConfigNamesError Exception: TypeError Message: __init__() missing 1 required positional argument: 'dtype' Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runn...
closed
2023-11-13T10:28:29
https://api.github.com/repos/huggingface/datasets/issues/6405/comments
null
false
ConfigNamesError on a simple CSV file See https://huggingface.co/datasets/Nguyendo1999/mmath/discussions/1 ``` Error code: ConfigNamesError Exception: TypeError Message: __init__() missing 1 required positional argument: 'dtype' Traceback: Traceback (most recent call last): File "/s...
[ "The viewer is working now. \r\n\r\nBased on the repo commit history, the bug was due to the incorrect format of the `features` field in the README YAML (`Value` requires `dtype`, e.g., `Value(\"string\")`, but it was not specified)", "Feel free to close the issue", "Oh, OK! Thanks. So, there was no reason to o...
https://api.github.com/repos/huggingface/datasets/issues/6404
6,404
Support pyarrow 14.0.1 and fix vulnerability CVE-2023-47248
Support `pyarrow` 14.0.1 and fix vulnerability [CVE-2023-47248](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). Fix #6396.
closed
2023-11-13T09:15:39
https://api.github.com/repos/huggingface/datasets/issues/6404/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6404", "html_url": "https://github.com/huggingface/datasets/pull/6404", "diff_url": "https://github.com/huggingface/datasets/pull/6404.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6404.patch", "merged_at": "2023-11-14T10:23...
true
Support pyarrow 14.0.1 and fix vulnerability CVE-2023-47248 Support `pyarrow` 14.0.1 and fix vulnerability [CVE-2023-47248](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). Fix #6396.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6403
6,403
Cannot import datasets on google colab (python 3.10.12)
### Describe the bug I'm trying A full colab demo notebook of zero-shot-distillation from https://github.com/huggingface/transformers/tree/main/examples/research_projects/zero-shot-distillation but i got this type of error when importing datasets on my google colab (python version is 3.10.12) ![image](https://gith...
closed
2023-11-13T08:14:43
https://api.github.com/repos/huggingface/datasets/issues/6403/comments
null
false
Cannot import datasets on google colab (python 3.10.12) ### Describe the bug I'm trying A full colab demo notebook of zero-shot-distillation from https://github.com/huggingface/transformers/tree/main/examples/research_projects/zero-shot-distillation but i got this type of error when importing datasets on my google co...
[ "You are most likely using an outdated version of `datasets` in the notebook, which can be verified with the `!datasets-cli env` command. You can run `!pip install -U datasets` to update the installation.", "okay, it works! thank you so much! 😄 " ]
https://api.github.com/repos/huggingface/datasets/issues/6402
6,402
Update torch_formatter.py
Ensure PyTorch images are converted to (C, H, W) instead of (H, W, C). See #6394 for motivation.
closed
2023-11-11T19:40:41
https://api.github.com/repos/huggingface/datasets/issues/6402/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6402", "html_url": "https://github.com/huggingface/datasets/pull/6402", "diff_url": "https://github.com/huggingface/datasets/pull/6402.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6402.patch", "merged_at": "2024-03-15T11:25...
true
Update torch_formatter.py Ensure PyTorch images are converted to (C, H, W) instead of (H, W, C). See #6394 for motivation.
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6402). 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>...
https://api.github.com/repos/huggingface/datasets/issues/6401
6,401
dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working
### Describe the bug ``` (datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s] Downloading data: 100%|█████████████████████████████████| 65.1M/65.1M [00:19<00:00, 3.38MB/s] Downloading data: 100...
closed
2023-11-11T04:09:07
https://api.github.com/repos/huggingface/datasets/issues/6401/comments
null
false
dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working ### Describe the bug ``` (datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s] Downloading data: 100%|█████████████████...
[ "Seems like it's a problem with the dataset, since in the [README](https://huggingface.co/datasets/Hyperspace-Technologies/scp-wiki-text/blob/main/README.md) the validation is not specified. Try cloning the dataset, removing the README (or validation split), and loading it locally/ ", "@VarunNSrivastava thanks br...
https://api.github.com/repos/huggingface/datasets/issues/6400
6,400
Safely load datasets by disabling execution of dataset loading script
### Feature request Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution. Any suggested workarounds are welcome as well. ### Motivation This is a security vulnerability that could lead to arbitrary code e...
closed
2023-11-10T23:48:29
https://api.github.com/repos/huggingface/datasets/issues/6400/comments
null
false
Safely load datasets by disabling execution of dataset loading script ### Feature request Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution. Any suggested workarounds are welcome as well. ### Motivation...
[ "great idea IMO\r\n\r\nthis could be a `trust_remote_code=True` flag like in transformers. We could also default to loading the Parquet conversion rather than executing code (for dataset repos that have both)", "@julien-c that would be great!", "We added the `trust_remote_code` argument to `load_dataset()` in `...
https://api.github.com/repos/huggingface/datasets/issues/6399
6,399
TypeError: Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array
### Describe the bug Hi, I am preprocessing a large custom dataset with numpy arrays. I am running into this TypeError during writing in a dataset.map() function. I've tried decreasing writer batch size, but this error persists. This error does not occur for smaller datasets. Thank you! ### Steps to repro...
open
2023-11-10T20:48:46
https://api.github.com/repos/huggingface/datasets/issues/6399/comments
null
false
TypeError: Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array ### Describe the bug Hi, I am preprocessing a large custom dataset with numpy arrays. I am running into this TypeError during writing in a dataset.map() function. I've tried decreasing writer batch size, but this error persists. This error does no...
[ "Seconding encountering this issue." ]
https://api.github.com/repos/huggingface/datasets/issues/6398
6,398
Remove redundant condition in builders
Minor refactoring to remove redundant condition.
closed
2023-11-10T14:56:43
https://api.github.com/repos/huggingface/datasets/issues/6398/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6398", "html_url": "https://github.com/huggingface/datasets/pull/6398", "diff_url": "https://github.com/huggingface/datasets/pull/6398.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6398.patch", "merged_at": "2023-11-14T10:43...
true
Remove redundant condition in builders Minor refactoring to remove redundant condition.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6397
6,397
Raise a different exception for inexisting dataset vs files without known extension
See https://github.com/huggingface/datasets-server/issues/2082#issuecomment-1805716557 We have the same error for: - https://huggingface.co/datasets/severo/a_dataset_that_does_not_exist: a dataset that does not exist - https://huggingface.co/datasets/severo/test_files_without_extension: a dataset with files withou...
closed
2023-11-10T13:22:14
https://api.github.com/repos/huggingface/datasets/issues/6397/comments
null
false
Raise a different exception for inexisting dataset vs files without known extension See https://github.com/huggingface/datasets-server/issues/2082#issuecomment-1805716557 We have the same error for: - https://huggingface.co/datasets/severo/a_dataset_that_does_not_exist: a dataset that does not exist - https://hugg...
[]
https://api.github.com/repos/huggingface/datasets/issues/6396
6,396
Issue with pyarrow 14.0.1
See https://github.com/huggingface/datasets-server/pull/2089 for reference ``` from datasets import (Array2D, Dataset, Features) feature_type = Array2D(shape=(2, 2), dtype="float32") content = [[0.0, 0.0], [0.0, 0.0]] features = Features({"col": feature_type}) dataset = Dataset.from_dict({"col": [content]}, fea...
closed
2023-11-10T10:02:12
https://api.github.com/repos/huggingface/datasets/issues/6396/comments
null
false
Issue with pyarrow 14.0.1 See https://github.com/huggingface/datasets-server/pull/2089 for reference ``` from datasets import (Array2D, Dataset, Features) feature_type = Array2D(shape=(2, 2), dtype="float32") content = [[0.0, 0.0], [0.0, 0.0]] features = Features({"col": feature_type}) dataset = Dataset.from_di...
[ "Looks like we should stop using `PyExtensionType` and use `ExtensionType` instead\r\n\r\nsee https://github.com/apache/arrow/commit/f14170976372436ec1d03a724d8d3f3925484ecf", "https://github.com/huggingface/datasets-server/pull/2089#pullrequestreview-1724449532\r\n\r\n> Yes, I understand now: they have disabled ...
https://api.github.com/repos/huggingface/datasets/issues/6395
6,395
Add ability to set lock type
### Feature request Allow setting file lock type, maybe from an environment variable Currently, it only depends on whether fnctl is available: https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/utils/filelock.py#L463-L470C16 ### Motivation In my environment...
closed
2023-11-09T22:12:30
https://api.github.com/repos/huggingface/datasets/issues/6395/comments
null
false
Add ability to set lock type ### Feature request Allow setting file lock type, maybe from an environment variable Currently, it only depends on whether fnctl is available: https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/utils/filelock.py#L463-L470C16 ### Mo...
[ "We've replaced our filelock implementation with the `filelock` package, so their repo is the right place to request this feature.\r\n\r\nIn the meantime, the following should work: \r\n```python\r\nimport filelock\r\nfilelock.FileLock = filelock.SoftFileLock\r\n\r\nimport datasets\r\n...\r\n```" ]
https://api.github.com/repos/huggingface/datasets/issues/6394
6,394
TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy. However, pytorch normally uses (C, H, W) format. Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways. If not using the format it is possible to ...
closed
2023-11-09T16:02:15
https://api.github.com/repos/huggingface/datasets/issues/6394/comments
null
false
TorchFormatter images (H, W, C) instead of (C, H, W) format ### Describe the bug Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy. However, pytorch normally uses (C, H, W) format. Maybe I'm missing something but this makes the format a lot less useful as I then have to per...
[ "Here's a PR for that. https://github.com/huggingface/datasets/pull/6402\r\n\r\nIt's not backward compatible, unfortunately. ", "Just ran into this working on data lib that's attempting to achieve common interfaces across hf datasets, webdataset, native torch style datasets. The defacto standards for image tensor...
https://api.github.com/repos/huggingface/datasets/issues/6393
6,393
Filter occasionally hangs
### Describe the bug A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm) There is a trace produced ``` Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10> Traceback (most recent call last): File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l...
closed
2023-11-09T06:18:30
https://api.github.com/repos/huggingface/datasets/issues/6393/comments
null
false
Filter occasionally hangs ### Describe the bug A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm) There is a trace produced ``` Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10> Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dat...
[ "It looks like I may not be the first to encounter this: https://github.com/huggingface/datasets/issues/3172", "Adding some more information, it seems to occur more frequently with large (millions of samples) datasets.", "More information. My code is structured as (1) load (2) map (3) filter (4) filter. It was ...
https://api.github.com/repos/huggingface/datasets/issues/6392
6,392
`push_to_hub` is not robust to hub closing connection
### Describe the bug Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error: ``` Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it] Traceback (most recent call last): File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/...
closed
2023-11-08T20:44:53
https://api.github.com/repos/huggingface/datasets/issues/6392/comments
null
false
`push_to_hub` is not robust to hub closing connection ### Describe the bug Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error: ``` Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it] Traceback (most recent call last): File "/...
[ "Hi! We made some improvements to `push_to_hub` to make it more robust a couple of weeks ago but haven't published a release in the meantime, so it would help if you could install `datasets` from `main` (`pip install https://github.com/huggingface/datasets`) and let us know if this improved version of `push_to_hub`...
https://api.github.com/repos/huggingface/datasets/issues/6391
6,391
Webdataset dataset builder
Allow `load_dataset` to support the Webdataset format. It allows users to download/stream data from local files or from the Hugging Face Hub. Moreover it will enable the Dataset Viewer for Webdataset datasets on HF. ## Implementation details - I added a new Webdataset builder - dataset with TAR files are n...
closed
2023-11-08T17:31:59
https://api.github.com/repos/huggingface/datasets/issues/6391/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6391", "html_url": "https://github.com/huggingface/datasets/pull/6391", "diff_url": "https://github.com/huggingface/datasets/pull/6391.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6391.patch", "merged_at": "2023-11-28T16:33...
true
Webdataset dataset builder Allow `load_dataset` to support the Webdataset format. It allows users to download/stream data from local files or from the Hugging Face Hub. Moreover it will enable the Dataset Viewer for Webdataset datasets on HF. ## Implementation details - I added a new Webdataset builder - d...
[ "_The documentation is not available anymore as the PR was closed or merged._", "I added an error message if the first examples don't appear to be in webdataset format\r\n```\r\n\"The TAR archives of the dataset should be in Webdataset format, \"\r\n\"but the files in the archive don't share the same prefix or th...
https://api.github.com/repos/huggingface/datasets/issues/6390
6,390
handle future deprecation argument
getting this error: ``` /root/miniconda3/envs/py3.10/lib/python3.10/site-packages/datasets/table.py:1387: FutureWarning: promote has been superseded by mode='default'. return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ``` Since datasets supports arrow greater than 8.0.0, we need to handle both ...
closed
2023-11-08T14:21:25
https://api.github.com/repos/huggingface/datasets/issues/6390/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6390", "html_url": "https://github.com/huggingface/datasets/pull/6390", "diff_url": "https://github.com/huggingface/datasets/pull/6390.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6390.patch", "merged_at": "2023-11-14T15:15...
true
handle future deprecation argument getting this error: ``` /root/miniconda3/envs/py3.10/lib/python3.10/site-packages/datasets/table.py:1387: FutureWarning: promote has been superseded by mode='default'. return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ``` Since datasets supports arrow greater ...
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6389
6,389
Index 339 out of range for dataset of size 339 <-- save_to_file()
### Describe the bug When saving out some Audio() data. The data is audio recordings with associated 'sentences'. (They use the audio 'bytes' approach because they're clips within audio files). Code is below the traceback (I can't upload the voice audio/text (it's not even me)). ``` Traceback (most recent call ...
open
2023-11-08T12:52:09
https://api.github.com/repos/huggingface/datasets/issues/6389/comments
null
false
Index 339 out of range for dataset of size 339 <-- save_to_file() ### Describe the bug When saving out some Audio() data. The data is audio recordings with associated 'sentences'. (They use the audio 'bytes' approach because they're clips within audio files). Code is below the traceback (I can't upload the voice au...
[ "Hi! Can you make the above reproducer self-contained by adding code that generates the data?", "I managed a workaround eventually but I don't know what it was (I made a lot of changes to seq2seq). I'll try to include generating code in the future. (If I close, I don't know if you see it. Feel free to close; I'l...
https://api.github.com/repos/huggingface/datasets/issues/6388
6,388
How to create 3d medical imgae dataset?
### Feature request I am newer to huggingface, after i look up `datasets` docs, I can't find how to create the dataset contains 3d medical image (ends with '.mhd', '.dcm', '.nii') ### Motivation help us to upload 3d medical dataset to huggingface! ### Your contribution I'll submit a PR if I find a way to...
open
2023-11-07T11:27:36
https://api.github.com/repos/huggingface/datasets/issues/6388/comments
null
false
How to create 3d medical imgae dataset? ### Feature request I am newer to huggingface, after i look up `datasets` docs, I can't find how to create the dataset contains 3d medical image (ends with '.mhd', '.dcm', '.nii') ### Motivation help us to upload 3d medical dataset to huggingface! ### Your contributio...
[]
https://api.github.com/repos/huggingface/datasets/issues/6387
6,387
How to load existing downloaded dataset ?
Hi @mariosasko @lhoestq @katielink Thanks for your contribution and hard work. ### Feature request First, I download a dataset as normal by: ``` from datasets import load_dataset dataset = load_dataset('username/data_name', cache_dir='data') ``` The dataset format in `data` directory will be: ``` ...
closed
2023-11-06T22:51:44
https://api.github.com/repos/huggingface/datasets/issues/6387/comments
null
false
How to load existing downloaded dataset ? Hi @mariosasko @lhoestq @katielink Thanks for your contribution and hard work. ### Feature request First, I download a dataset as normal by: ``` from datasets import load_dataset dataset = load_dataset('username/data_name', cache_dir='data') ``` The dataset ...
[ "Feel free to use `dataset.save_to_disk(...)`, then scp the directory containing the saved dataset and reload it on your other machine using `dataset = load_from_disk(...)`" ]
https://api.github.com/repos/huggingface/datasets/issues/6386
6,386
Formatting overhead
### Describe the bug Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due to creating new inst...
closed
2023-11-06T19:06:38
https://api.github.com/repos/huggingface/datasets/issues/6386/comments
null
false
Formatting overhead ### Describe the bug Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due ...
[ "Ah I think the `line-profiler` log is off-by-one and it is in fact the `extract_batch` method that's taking forever. Will investigate further.", "I tracked it down to a quirk of my setup. Apologies." ]
https://api.github.com/repos/huggingface/datasets/issues/6385
6,385
Get an error when i try to concatenate the squad dataset with my own dataset
### Describe the bug Hello, I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last): Cell In[9], line 1 concatenated_dataset = concatenate_datasets([train_dataset, dataset1]) File ~\ana...
closed
2023-11-06T14:29:22
https://api.github.com/repos/huggingface/datasets/issues/6385/comments
null
false
Get an error when i try to concatenate the squad dataset with my own dataset ### Describe the bug Hello, I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last): Cell In[9], line 1 concatena...
[ "The `answers.text` field in the JSON dataset needs to be a list of strings, not a string.\r\n\r\nSo, here is the fixed code:\r\n```python\r\nfrom huggingface_hub import notebook_login\r\nfrom datasets import load_dataset\r\n\r\n\r\n\r\nnotebook_login(\"mymailadresse\", \"mypassword\")\r\nsquad = load_dataset(\"squ...
https://api.github.com/repos/huggingface/datasets/issues/6384
6,384
Load the local dataset folder from other place
This is from https://github.com/huggingface/diffusers/issues/5573
closed
2023-11-06T13:07:04
https://api.github.com/repos/huggingface/datasets/issues/6384/comments
null
false
Load the local dataset folder from other place This is from https://github.com/huggingface/diffusers/issues/5573
[ "Solved" ]
https://api.github.com/repos/huggingface/datasets/issues/6383
6,383
imagenet-1k downloads over and over
### Describe the bug What could be causing this? ``` $ python3 Python 3.8.13 (default, Mar 28 2022, 11:38:47) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from datasets import load_dataset >>> load_dataset("imagenet-1k") Downloading builder ...
closed
2023-11-06T02:58:58
https://api.github.com/repos/huggingface/datasets/issues/6383/comments
null
false
imagenet-1k downloads over and over ### Describe the bug What could be causing this? ``` $ python3 Python 3.8.13 (default, Mar 28 2022, 11:38:47) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from datasets import load_dataset >>> load_dataset(...
[ "Have you solved this problem?" ]
https://api.github.com/repos/huggingface/datasets/issues/6382
6,382
Add CheXpert dataset for vision
### Feature request ### Name **CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison** ### Paper https://arxiv.org/abs/1901.07031 ### Data https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2 ### Motivation CheXpert is one of the fund...
open
2023-11-04T15:36:11
https://api.github.com/repos/huggingface/datasets/issues/6382/comments
null
false
Add CheXpert dataset for vision ### Feature request ### Name **CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison** ### Paper https://arxiv.org/abs/1901.07031 ### Data https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2 ### Motivat...
[ "Hey @SauravMaheshkar ! Just responded to your email.\r\n\r\n_For transparency, copying part of my response here:_\r\nI agree, it would be really great to have this and other BenchMD datasets easily accessible on the hub.\r\n\r\nI think the main limiting factor is that the ChexPert dataset is currently hosted on th...
https://api.github.com/repos/huggingface/datasets/issues/6381
6,381
Add my dataset
## medical data **Description:** This dataset, named "medical data," is a collection of text data from various sources, carefully curated and cleaned for use in natural language processing (NLP) tasks. It consists of a diverse range of text, including articles, books, and online content, covering topics from scienc...
closed
2023-11-02T20:59:52
https://api.github.com/repos/huggingface/datasets/issues/6381/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6381", "html_url": "https://github.com/huggingface/datasets/pull/6381", "diff_url": "https://github.com/huggingface/datasets/pull/6381.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6381.patch", "merged_at": null }
true
Add my dataset ## medical data **Description:** This dataset, named "medical data," is a collection of text data from various sources, carefully curated and cleaned for use in natural language processing (NLP) tasks. It consists of a diverse range of text, including articles, books, and online content, covering top...
[ "Hi! We do not host datasets in this repo. Instead, you should use `dataset.push_to_hub` to upload the dataset to the HF Hub.", "@mariosasko could you provide me proper guide to push data on HF hub ", "You can find this info here: https://huggingface.co/docs/datasets/upload_dataset. Also, check https://huggingf...
https://api.github.com/repos/huggingface/datasets/issues/6380
6,380
Fix for continuation behaviour on broken dataset archives due to starving download connections via HTTP-GET
This PR proposes a (slightly hacky) fix for an Issue that can occur when downloading large dataset parts over unstable connections. The underlying issue is also being discussed in https://github.com/huggingface/datasets/issues/5594. Issue Symptoms & Behaviour: - Download of a large archive file during dataset down...
open
2023-11-02T17:28:23
https://api.github.com/repos/huggingface/datasets/issues/6380/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6380", "html_url": "https://github.com/huggingface/datasets/pull/6380", "diff_url": "https://github.com/huggingface/datasets/pull/6380.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6380.patch", "merged_at": null }
true
Fix for continuation behaviour on broken dataset archives due to starving download connections via HTTP-GET This PR proposes a (slightly hacky) fix for an Issue that can occur when downloading large dataset parts over unstable connections. The underlying issue is also being discussed in https://github.com/huggingface/...
[]
https://api.github.com/repos/huggingface/datasets/issues/6379
6,379
Avoid redundant warning when encoding NumPy array as `Image`
Avoid a redundant warning in `encode_np_array` by removing the identity check as NumPy `dtype`s can be equal without having identical `id`s. Additionally, fix "unreachable" checks in `encode_np_array`.
closed
2023-11-02T16:37:58
https://api.github.com/repos/huggingface/datasets/issues/6379/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6379", "html_url": "https://github.com/huggingface/datasets/pull/6379", "diff_url": "https://github.com/huggingface/datasets/pull/6379.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6379.patch", "merged_at": "2023-11-02T17:08...
true
Avoid redundant warning when encoding NumPy array as `Image` Avoid a redundant warning in `encode_np_array` by removing the identity check as NumPy `dtype`s can be equal without having identical `id`s. Additionally, fix "unreachable" checks in `encode_np_array`.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6378
6,378
Support pyarrow 14.0.0
Support `pyarrow` 14.0.0. Fix #6377 and fix #6374 (root cause). This fix is analog to a previous one: - #6175
closed
2023-11-02T10:25:10
https://api.github.com/repos/huggingface/datasets/issues/6378/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6378", "html_url": "https://github.com/huggingface/datasets/pull/6378", "diff_url": "https://github.com/huggingface/datasets/pull/6378.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6378.patch", "merged_at": "2023-11-02T15:15...
true
Support pyarrow 14.0.0 Support `pyarrow` 14.0.0. Fix #6377 and fix #6374 (root cause). This fix is analog to a previous one: - #6175
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6377
6,377
Support pyarrow 14.0.0
Support pyarrow 14.0.0 by fixing the root cause of: - #6374 and revert: - #6375
closed
2023-11-02T10:22:08
https://api.github.com/repos/huggingface/datasets/issues/6377/comments
null
false
Support pyarrow 14.0.0 Support pyarrow 14.0.0 by fixing the root cause of: - #6374 and revert: - #6375
[]
https://api.github.com/repos/huggingface/datasets/issues/6376
6,376
Caching problem when deleting a dataset
### Describe the bug Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail. ### Steps to reproduce the bug 1. Create a dataset with n features per row 2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)` 3. Go on the hub, delete the repo at `YOUR_PATH` 4. Update...
closed
2023-11-02T10:15:58
https://api.github.com/repos/huggingface/datasets/issues/6376/comments
null
false
Caching problem when deleting a dataset ### Describe the bug Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail. ### Steps to reproduce the bug 1. Create a dataset with n features per row 2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)` 3. Go on the hub, ...
[ "Thanks for reporting! Can you also share the error message printed in step 5?", "I did not store it at the time but I'll try to re-do a mwe next week to get it again", "I haven't managed to reproduce this issue using a [notebook](https://colab.research.google.com/drive/1m6eduYun7pFTkigrCJAFgw0BghlbvXIL?usp=sha...
https://api.github.com/repos/huggingface/datasets/issues/6375
6,375
Temporarily pin pyarrow < 14.0.0
Temporarily pin `pyarrow` < 14.0.0 until permanent solution is found. Hot fix #6374.
closed
2023-11-02T09:48:58
https://api.github.com/repos/huggingface/datasets/issues/6375/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6375", "html_url": "https://github.com/huggingface/datasets/pull/6375", "diff_url": "https://github.com/huggingface/datasets/pull/6375.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6375.patch", "merged_at": "2023-11-02T10:11...
true
Temporarily pin pyarrow < 14.0.0 Temporarily pin `pyarrow` < 14.0.0 until permanent solution is found. Hot fix #6374.
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6374
6,374
CI is broken: TypeError: Couldn't cast array
See: https://github.com/huggingface/datasets/actions/runs/6730567226/job/18293518039 ``` FAILED tests/test_table.py::test_cast_sliced_fixed_size_array_to_features - TypeError: Couldn't cast array of type fixed_size_list<item: int32>[3] to Sequence(feature=Value(dtype='int64', id=None), length=3, id=None) ```
closed
2023-11-02T09:37:06
https://api.github.com/repos/huggingface/datasets/issues/6374/comments
null
false
CI is broken: TypeError: Couldn't cast array See: https://github.com/huggingface/datasets/actions/runs/6730567226/job/18293518039 ``` FAILED tests/test_table.py::test_cast_sliced_fixed_size_array_to_features - TypeError: Couldn't cast array of type fixed_size_list<item: int32>[3] to Sequence(feature=Value(dtype='i...
[]
https://api.github.com/repos/huggingface/datasets/issues/6373
6,373
Fix typo in `Dataset.map` docstring
null
closed
2023-11-02T01:36:49
https://api.github.com/repos/huggingface/datasets/issues/6373/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6373", "html_url": "https://github.com/huggingface/datasets/pull/6373", "diff_url": "https://github.com/huggingface/datasets/pull/6373.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6373.patch", "merged_at": "2023-11-02T10:11...
true
Fix typo in `Dataset.map` docstring
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6372
6,372
do not try to download from HF GCS for generator
attempt to fix https://github.com/huggingface/datasets/issues/6371
closed
2023-11-01T17:57:11
https://api.github.com/repos/huggingface/datasets/issues/6372/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6372", "html_url": "https://github.com/huggingface/datasets/pull/6372", "diff_url": "https://github.com/huggingface/datasets/pull/6372.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6372.patch", "merged_at": "2023-11-02T15:52...
true
do not try to download from HF GCS for generator attempt to fix https://github.com/huggingface/datasets/issues/6371
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6371
6,371
`Dataset.from_generator` should not try to download from HF GCS
### Describe the bug When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_prepare`](https://github.com/huggingface/datasets/blob/main/src/datas...
closed
2023-11-01T17:36:17
https://api.github.com/repos/huggingface/datasets/issues/6371/comments
null
false
`Dataset.from_generator` should not try to download from HF GCS ### Describe the bug When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_prepa...
[ "Indeed, setting `try_from_gcs` to `False` makes sense for `from_generator`.\r\n\r\nWe plan to deprecate and remove `try_from_hf_gcs` soon, as we can use Hub for file hosting now, but this is a good temporary fix.\r\n" ]
https://api.github.com/repos/huggingface/datasets/issues/6370
6,370
TensorDataset format does not work with Trainer from transformers
### Describe the bug The model was built to do fine tunning on BERT model for relation extraction. trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `torch.utils.data.TensorDataset` However, in the document, the req...
closed
2023-11-01T10:09:54
https://api.github.com/repos/huggingface/datasets/issues/6370/comments
null
false
TensorDataset format does not work with Trainer from transformers ### Describe the bug The model was built to do fine tunning on BERT model for relation extraction. trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `to...
[ "I figured it out. I found that `Trainer` does not work with TensorDataset even though the document says it uses it. Instead, I ended up creating a dictionary and converting it to a dataset using `dataset.Dataset.from_dict()`.\r\n\r\nI will leave this post open for a while. If someone knows a better approach, pleas...
https://api.github.com/repos/huggingface/datasets/issues/6369
6,369
Multi process map did not load cache file correctly
### Describe the bug When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process. ![1698820541284](https://github.com/huggingface/datasets/assets/14285786/0b2fe054-54d8-4e00-96e6-6ca5b69e662b) ![1698820501568](https://github.com/huggingface/datasets/assets/142857...
closed
2023-11-01T06:36:54
https://api.github.com/repos/huggingface/datasets/issues/6369/comments
null
false
Multi process map did not load cache file correctly ### Describe the bug When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process. ![1698820541284](https://github.com/huggingface/datasets/assets/14285786/0b2fe054-54d8-4e00-96e6-6ca5b69e662b) ![1698820501568](h...
[ "The inconsistency may be caused by the usage of \"update_fingerprint\" and setting \"trust_remote_code\" to \"True.\"\r\nWhen the tokenizer employs \"trust_remote_code,\" the behavior of the map function varies with each code execution. Even if the remote code of the tokenizer remains the same, the result of \"ash...
https://api.github.com/repos/huggingface/datasets/issues/6368
6,368
Fix python formatting for complex types in `format_table`
Fix #6366
closed
2023-10-31T19:48:08
https://api.github.com/repos/huggingface/datasets/issues/6368/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6368", "html_url": "https://github.com/huggingface/datasets/pull/6368", "diff_url": "https://github.com/huggingface/datasets/pull/6368.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6368.patch", "merged_at": "2023-11-02T14:21...
true
Fix python formatting for complex types in `format_table` Fix #6366
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6367
6,367
Fix time measuring snippet in docs
Fix https://discuss.huggingface.co/t/attributeerror-enter/60509
closed
2023-10-31T17:57:17
https://api.github.com/repos/huggingface/datasets/issues/6367/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6367", "html_url": "https://github.com/huggingface/datasets/pull/6367", "diff_url": "https://github.com/huggingface/datasets/pull/6367.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6367.patch", "merged_at": "2023-10-31T18:24...
true
Fix time measuring snippet in docs Fix https://discuss.huggingface.co/t/attributeerror-enter/60509
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6366
6,366
with_format() function returns bytes instead of PIL images even when image column is not part of "columns"
### Describe the bug When using the with_format() function on a dataset containing images, even if the image column is not part of the columns provided in the function, its type will be changed to bytes. Here is a minimal reproduction of the bug: https://colab.research.google.com/drive/1hyaOspgyhB41oiR1-tXE3k_gJCdJU...
closed
2023-10-31T11:10:48
https://api.github.com/repos/huggingface/datasets/issues/6366/comments
null
false
with_format() function returns bytes instead of PIL images even when image column is not part of "columns" ### Describe the bug When using the with_format() function on a dataset containing images, even if the image column is not part of the columns provided in the function, its type will be changed to bytes. Here is...
[ "Thanks for reporting! I've opened a PR with a fix." ]
https://api.github.com/repos/huggingface/datasets/issues/6365
6,365
Parquet size grows exponential for categorical data
### Describe the bug It seems that when saving a data frame with a categorical column inside the size can grow exponentially. This seems to happen because when we save the categorical data to parquet, we are saving the data + all the categories existing in the original data. This happens even when the categories ar...
closed
2023-10-31T10:29:02
https://api.github.com/repos/huggingface/datasets/issues/6365/comments
null
false
Parquet size grows exponential for categorical data ### Describe the bug It seems that when saving a data frame with a categorical column inside the size can grow exponentially. This seems to happen because when we save the categorical data to parquet, we are saving the data + all the categories existing in the ori...
[ "Wrong repo." ]
https://api.github.com/repos/huggingface/datasets/issues/6364
6,364
ArrowNotImplementedError: Unsupported cast from string to list using function cast_list
Hi, I am trying to load a local csv dataset(similar to explodinggradients_fiqa) using load_dataset. When I try to pass features, I am facing the mentioned issue. CSV Data sample(golden_dataset.csv): Question | Context | answer | groundtruth "what is abc?"...
closed
2023-10-30T20:14:01
https://api.github.com/repos/huggingface/datasets/issues/6364/comments
null
false
ArrowNotImplementedError: Unsupported cast from string to list using function cast_list Hi, I am trying to load a local csv dataset(similar to explodinggradients_fiqa) using load_dataset. When I try to pass features, I am facing the mentioned issue. CSV Data sample(golden_dataset.csv): Question | ...
[ "You can use the following code to load this CSV with the list values preserved:\r\n```python\r\nfrom datasets import load_dataset\r\nimport ast\r\n\r\nconverters = {\r\n \"contexts\" : ast.literal_eval,\r\n \"ground_truths\" : ast.literal_eval,\r\n}\r\n\r\nds = load_dataset(\"csv\", data_files=\"golden_datas...
https://api.github.com/repos/huggingface/datasets/issues/6363
6,363
dataset.transform() hangs indefinitely while finetuning the stable diffusion XL
### Describe the bug Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely. ### Steps to reproduce the bug accelerate launch train_text_to_image_sdxl.py --pretrained_model_name_or_path=$MODEL_NAME --...
closed
2023-10-30T17:34:05
https://api.github.com/repos/huggingface/datasets/issues/6363/comments
null
false
dataset.transform() hangs indefinitely while finetuning the stable diffusion XL ### Describe the bug Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely. ### Steps to reproduce the bug accelerate l...
[ "I think the code hangs on the `accelerator.main_process_first()` context manager exit. To verify this, you can append a print statement to the end of the `accelerator.main_process_first()` block. \r\n\r\n\r\nIf the problem is in `with_transform`, it would help if you could share the error stack trace printed when...
https://api.github.com/repos/huggingface/datasets/issues/6362
6,362
Simplify filesystem logic
Simplifies the existing filesystem logic (e.g., to avoid unnecessary if-else as mentioned in https://github.com/huggingface/datasets/pull/6098#issue-1827655071)
closed
2023-10-27T15:54:18
https://api.github.com/repos/huggingface/datasets/issues/6362/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6362", "html_url": "https://github.com/huggingface/datasets/pull/6362", "diff_url": "https://github.com/huggingface/datasets/pull/6362.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6362.patch", "merged_at": "2023-11-15T14:02...
true
Simplify filesystem logic Simplifies the existing filesystem logic (e.g., to avoid unnecessary if-else as mentioned in https://github.com/huggingface/datasets/pull/6098#issue-1827655071)
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6360
6,360
Add support for `Sequence(Audio/Image)` feature in `push_to_hub`
### Feature request Allow for `Sequence` of `Image` (or `Audio`) to be embedded inside the shards. ### Motivation Currently, thanks to #3685, when `embed_external_files` is set to True (which is the default) in `push_to_hub`, features of type `Image` and `Audio` are embedded inside the arrow/parquet shards, instead ...
closed
2023-10-27T14:39:57
https://api.github.com/repos/huggingface/datasets/issues/6360/comments
null
false
Add support for `Sequence(Audio/Image)` feature in `push_to_hub` ### Feature request Allow for `Sequence` of `Image` (or `Audio`) to be embedded inside the shards. ### Motivation Currently, thanks to #3685, when `embed_external_files` is set to True (which is the default) in `push_to_hub`, features of type `Image` ...
[ "This issue stems from https://github.com/huggingface/datasets/blob/6d2f2a5e0fea3827eccfd1717d8021c15fc4292a/src/datasets/table.py#L2203-L2205\r\n\r\nI'll address it as part of https://github.com/huggingface/datasets/pull/6283.\r\n\r\nIn the meantime, this should work\r\n\r\n```python\r\nimport pyarrow as pa\r\nfro...
https://api.github.com/repos/huggingface/datasets/issues/6359
6,359
Stuck in "Resolving data files..."
### Describe the bug I have an image dataset with 300k images, the size of image is 768 * 768. When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going on in this part? From my understa...
open
2023-10-27T12:01:51
https://api.github.com/repos/huggingface/datasets/issues/6359/comments
null
false
Stuck in "Resolving data files..." ### Describe the bug I have an image dataset with 300k images, the size of image is 768 * 768. When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going o...
[ "Most likely, the data file inference logic is the problem here.\r\n\r\nYou can run the following code to verify this:\r\n```python\r\nimport time\r\nfrom datasets.data_files import get_data_patterns\r\nstart_time = time.time()\r\nget_data_patterns(\"/path/to/img_dir\")\r\nend_time = time.time()\r\nprint(f\"Elapsed...
https://api.github.com/repos/huggingface/datasets/issues/6358
6,358
Mounting datasets cache fails due to absolute paths.
### Describe the bug Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache. ### Steps to reproduce the bug 1. Create a datasets cache by downloading some data 2. Mount the dataset folder into a docker contain...
closed
2023-10-27T08:20:27
https://api.github.com/repos/huggingface/datasets/issues/6358/comments
null
false
Mounting datasets cache fails due to absolute paths. ### Describe the bug Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache. ### Steps to reproduce the bug 1. Create a datasets cache by downloading some da...
[ "You may be able to make it work by tweaking some environment variables, such as [`HF_HOME`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/environment_variables#hfhome) or [`HF_DATASETS_CACHE`](https://huggingface.co/docs/datasets/cache#cache-directory).", "> You may be able to make it wor...
https://api.github.com/repos/huggingface/datasets/issues/6357
6,357
Allow passing a multiprocessing context to functions that support `num_proc`
### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following could be done: ```python dataset = dataset.map(_func, num_proc=2, mp_cont...
open
2023-10-27T02:31:16
https://api.github.com/repos/huggingface/datasets/issues/6357/comments
null
false
Allow passing a multiprocessing context to functions that support `num_proc` ### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following ...
[ "Are there any updates on this? This is still a problem when using Datasets inside Ray processes.", "Any updates on this? Getting\n```\nDeprecationWarning: This process (pid=269) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n```\nwhen using `num_proc` on python 3....
https://api.github.com/repos/huggingface/datasets/issues/6356
6,356
Add `fsspec` version to the `datasets-cli env` command output
... to make debugging issues easier, as `fsspec`'s releases often introduce breaking changes.
closed
2023-10-26T17:19:25
https://api.github.com/repos/huggingface/datasets/issues/6356/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6356", "html_url": "https://github.com/huggingface/datasets/pull/6356", "diff_url": "https://github.com/huggingface/datasets/pull/6356.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6356.patch", "merged_at": "2023-10-26T18:32...
true
Add `fsspec` version to the `datasets-cli env` command output ... to make debugging issues easier, as `fsspec`'s releases often introduce breaking changes.
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
https://api.github.com/repos/huggingface/datasets/issues/6355
6,355
More hub centric docs
Let's have more hub-centric documentation in the datasets docs Tutorials - Add “Configure the dataset viewer” page - Change order: - Overview - and more focused on the Hub rather than the library - Then all the hub related things - and mention how to read/write with other tools like pandas - The...
closed
2023-10-26T16:54:46
https://api.github.com/repos/huggingface/datasets/issues/6355/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6355", "html_url": "https://github.com/huggingface/datasets/pull/6355", "diff_url": "https://github.com/huggingface/datasets/pull/6355.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6355.patch", "merged_at": null }
true
More hub centric docs Let's have more hub-centric documentation in the datasets docs Tutorials - Add “Configure the dataset viewer” page - Change order: - Overview - and more focused on the Hub rather than the library - Then all the hub related things - and mention how to read/write with other tool...
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6354
6,354
`IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader`
### Describe the bug Looks like `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` if I'm not missing anything. Also, returns not consistent error messages, which probably depend on the nondeterministic order of worker executions Some exampes I've encountered: ``` File "/l...
open
2023-10-26T12:43:36
https://api.github.com/repos/huggingface/datasets/issues/6354/comments
null
false
`IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` ### Describe the bug Looks like `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` if I'm not missing anything. Also, returns not consistent error messages, which probably depend on the nondete...
[ "I am having issues as well with this. \r\n\r\nHowever, the error I am getting is :\r\n`RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more informati...
https://api.github.com/repos/huggingface/datasets/issues/6353
6,353
load_dataset save_to_disk load_from_disk error
### Describe the bug datasets version: 2.10.1 I `load_dataset `and `save_to_disk` sucessfully on windows10( **and I `load_from_disk(/LLM/data/wiki)` succcesfully on windows10**), and I copy the dataset `/LLM/data/wiki` into a ubuntu system, but when I `load_from_disk(/LLM/data/wiki)` on ubuntu, something weird ha...
closed
2023-10-26T03:47:06
https://api.github.com/repos/huggingface/datasets/issues/6353/comments
null
false
load_dataset save_to_disk load_from_disk error ### Describe the bug datasets version: 2.10.1 I `load_dataset `and `save_to_disk` sucessfully on windows10( **and I `load_from_disk(/LLM/data/wiki)` succcesfully on windows10**), and I copy the dataset `/LLM/data/wiki` into a ubuntu system, but when I `load_from_disk(...
[ "solved.\r\nfsspec version problem", "I'm using the latest datasets and fsspec , but still got this error!\r\n\r\ndatasets : Version: 2.13.0\r\n\r\nfsspec Version: 2023.10.0\r\n\r\n```\r\nFile \"/home/guoby/app/Anaconda3-2021.05/envs/news/lib/python3.8/site-packages/datasets/load.py\", line 1892, in load_from_...
https://api.github.com/repos/huggingface/datasets/issues/6352
6,352
Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
I was trying to load the wiki dataset, but i got this error traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train') File "/home/aelkordy/.conda/envs/prune_llm/lib/python3.9/site-packages/datasets/load.py", line 1804, in load_dataset ds = builder_instance.as_dataset(split=split, verific...
closed
2023-10-25T21:55:31
https://api.github.com/repos/huggingface/datasets/issues/6352/comments
null
false
Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.") I was trying to load the wiki dataset, but i got this error traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train') File "/home/aelkordy/.conda/envs/prune_l...
[ "+1 \r\n```\r\nFound cached dataset csv (file:///home/ubuntu/.cache/huggingface/datasets/theSquarePond___csv/theSquarePond--XXXXX-bbf0a8365d693d2c/0.0.0/eea64c71ca8b46dd3f537ed218fc9bf495d5707789152eb2764f5c78fa66d59d)\r\n---------------------------------------------------------------------------\r\nNotImplementedE...
https://api.github.com/repos/huggingface/datasets/issues/6351
6,351
Fix use_dataset.mdx
The current example isn't working because it can't find `labels` inside the Dataset object. So I've added an extra step to the process. Tested and working in Colab.
closed
2023-10-25T18:21:08
https://api.github.com/repos/huggingface/datasets/issues/6351/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6351", "html_url": "https://github.com/huggingface/datasets/pull/6351", "diff_url": "https://github.com/huggingface/datasets/pull/6351.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6351.patch", "merged_at": "2023-10-26T17:10...
true
Fix use_dataset.mdx The current example isn't working because it can't find `labels` inside the Dataset object. So I've added an extra step to the process. Tested and working in Colab.
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
https://api.github.com/repos/huggingface/datasets/issues/6350
6,350
Different objects are returned from calls that should be returning the same kind of object.
### Describe the bug 1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]') 2. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir) The only difference I would expect these cal...
open
2023-10-25T17:08:39
https://api.github.com/repos/huggingface/datasets/issues/6350/comments
null
false
Different objects are returned from calls that should be returning the same kind of object. ### Describe the bug 1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]') 2. dataset = load_dataset("togethercomputer/RedPajama-Data-1T...
[ "`load_dataset` returns a `DatasetDict` object unless `split` is defined, in which case it returns a `Dataset` (or a list of datasets if `split` is a list). We've discussed dropping `DatasetDict` from the API in https://github.com/huggingface/datasets/issues/5189 to always return the same type in `load_dataset` an...
https://api.github.com/repos/huggingface/datasets/issues/6349
6,349
Can't load ds = load_dataset("imdb")
### Describe the bug I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error: ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'} I tried doing `ds = load_dataset("imdb",download_mode="force_redownload")` as we...
closed
2023-10-25T13:29:51
https://api.github.com/repos/huggingface/datasets/issues/6349/comments
null
false
Can't load ds = load_dataset("imdb") ### Describe the bug I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error: ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'} I tried doing `ds = load_dataset("imdb",dow...
[ "I'm unable to reproduce this error. The server hosting the files may have been down temporarily, so try again.", "I am getting the following error:\r\nEnv: Python3.10\r\ndatasets: 2.10.1\r\nLinux: Amazon Linux2\r\n\r\n`Traceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n File \"/hom...
https://api.github.com/repos/huggingface/datasets/issues/6348
6,348
Parquet stream-conversion fails to embed images/audio files from gated repos
it seems to be an issue with datasets not passing the token to embed_table_storage when generating a dataset See https://github.com/huggingface/datasets-server/issues/2010
open
2023-10-25T12:12:44
https://api.github.com/repos/huggingface/datasets/issues/6348/comments
null
false
Parquet stream-conversion fails to embed images/audio files from gated repos it seems to be an issue with datasets not passing the token to embed_table_storage when generating a dataset See https://github.com/huggingface/datasets-server/issues/2010
[ "I have created a project to stream audio in the datasets viewer on Hugging Face using Parquet.\n\nhttps://github.com/pr0mila/ParquetToHuggingFace" ]
https://api.github.com/repos/huggingface/datasets/issues/6347
6,347
Incorrect example code in 'Create a dataset' docs
### Describe the bug On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect. Currently, examples are: ``` python from datasets import ImageFolder dataset = load_dataset("imagefolder", data_dir="/path/to/pokemon") ``` and ``` python...
closed
2023-10-24T11:01:21
https://api.github.com/repos/huggingface/datasets/issues/6347/comments
null
false
Incorrect example code in 'Create a dataset' docs ### Describe the bug On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect. Currently, examples are: ``` python from datasets import ImageFolder dataset = load_dataset("imagefolder", d...
[ "This was fixed in https://github.com/huggingface/datasets/pull/6247. You can find the fix in the `main` version of the docs", "Ah great, thanks :)" ]