id
int64
599M
3.18B
number
int64
1
7.65k
title
stringlengths
1
290
state
stringclasses
2 values
body
stringlengths
0
228k
is_pull_request
bool
1 class
created_at
stringdate
2020-04-14 10:18:02
2025-06-26 12:23:48
updated_at
stringdate
2020-04-27 16:04:17
2025-06-26 14:02:38
closed_at
stringlengths
20
20
⌀
user_login
stringlengths
3
26
author_association
stringclasses
4 values
pr_url
stringlengths
46
49
⌀
pr_merged_at
stringlengths
20
20
⌀
comments_count
int64
0
70
reactions_total
int64
0
61
reactions_plus1
int64
0
39
reactions_heart
int64
0
22
draft
bool
2 classes
locked
bool
1 class
labels
listlengths
0
4
html_url
stringlengths
46
51
is_pr_url
bool
2 classes
comments
listlengths
0
30
1,717,983,961
5,877
Request for text deduplication feature
open
### Feature request It would be great if there would be support for high performance, highly scalable text deduplication algorithms as part of the datasets library. ### Motivation Motivated by this blog post https://huggingface.co/blog/dedup and this library https://github.com/google-research/deduplicate-text-datase...
true
2023-05-20T01:56:00Z
2024-01-25T14:40:09Z
null
SupreethRao99
NONE
null
null
4
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5877
false
[ "The \"exact match\" deduplication will be possible when we resolve https://github.com/huggingface/datasets/issues/2514 (first, https://github.com/apache/arrow/issues/30950 needs to be addressed on the Arrow side). In the meantime, you can use Polars or DuckDB (e.g., via [datasets-sql](https://github.com/mariosasko...
1,717,978,985
5,876
Incompatibility with DataLab
closed
### Describe the bug Hello, I am currently working on a project where both [DataLab](https://github.com/ExpressAI/DataLab) and [datasets](https://github.com/huggingface/datasets) are subdependencies. I noticed that I cannot import both libraries, as they both register FileSystems in `fsspec`, expecting the FileSyste...
true
2023-05-20T01:39:11Z
2023-05-25T06:42:34Z
2023-05-25T06:42:34Z
helpmefindaname
NONE
null
null
2
0
0
0
null
false
[ "good first issue" ]
https://github.com/huggingface/datasets/issues/5876
false
[ "Indeed, `clobber=True` (with a warning if the existing protocol will be overwritten) should fix the issue, but maybe a better solution is to register our compression filesystem before the script is executed and unregister them afterward. WDYT @lhoestq @albertvillanova?", "I think we should use clobber and show a...
1,716,770,394
5,875
Why split slicing doesn't behave like list slicing ?
closed
### Describe the bug If I want to get the first 10 samples of my dataset, I can do : ``` ds = datasets.load_dataset('mnist', split='train[:10]') ``` But if I exceed the number of samples in the dataset, an exception is raised : ``` ds = datasets.load_dataset('mnist', split='train[:999999999]') ``` > V...
true
2023-05-19T07:21:10Z
2024-01-31T15:54:18Z
2024-01-31T15:54:18Z
astariul
NONE
null
null
1
0
0
0
null
false
[ "duplicate" ]
https://github.com/huggingface/datasets/issues/5875
false
[ "A duplicate of https://github.com/huggingface/datasets/issues/1774" ]
1,715,708,930
5,874
Using as_dataset on a "parquet" builder
closed
### Describe the bug I used a custom builder to ``download_and_prepare`` a dataset. The first (very minor) issue is that the doc seems to suggest ``download_and_prepare`` will return the dataset, while it does not ([builder.py](https://github.com/huggingface/datasets/blob/main/src/datasets/builder.py#L718-L738)). ```...
true
2023-05-18T14:09:03Z
2023-05-31T13:23:55Z
2023-05-31T13:23:55Z
rems75
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5874
false
[ "Hi! You can refer to [this doc](https://huggingface.co/docs/datasets/filesystems#load-and-save-your-datasets-using-your-cloud-storage-filesystem) to see the intended usage (basically, it skips the Arrow -> Parquet conversion step in `ds = load_dataset(...); ds.to_parquet(\"path/to/parquet\")`) and allows writing P...
1,713,269,724
5,873
Allow setting the environment variable for the lock file path
open
### Feature request Add an environment variable to replace the default lock file path. ### Motivation Usually, dataset path is a read-only path while the lock file needs to be modified each time. It would be convenient if the path can be reset individually. ### Your contribution ```/src/datasets/utils/fi...
true
2023-05-17T07:10:02Z
2023-05-17T07:11:05Z
null
xin3he
NONE
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5873
false
[]
1,713,174,662
5,872
Fix infer module for uppercase extensions
closed
Fix the `infer_module_for_data_files` and `infer_module_for_data_files_in_archives` functions when passed a data file name with uppercase extension, e.g. `filename.TXT`. Before, `None` module was returned.
true
2023-05-17T05:56:45Z
2023-05-17T14:26:59Z
2023-05-17T14:19:18Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5872
2023-05-17T14:19:18Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5872
true
[ "_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...
1,712,573,073
5,871
data configuration hash suffix depends on uncanonicalized data_dir
closed
### Describe the bug I am working with the `recipe_nlg` dataset, which requires manual download. Once it's downloaded, I've noticed that the hash in the custom data configuration is different if I add a trailing `/` to my `data_dir`. It took me a while to notice that the hashes were different, and to understand that...
true
2023-05-16T18:56:04Z
2023-06-02T15:52:05Z
2023-06-02T15:52:05Z
kylrth
CONTRIBUTOR
null
null
3
0
0
0
null
false
[ "good first issue" ]
https://github.com/huggingface/datasets/issues/5871
false
[ "It could even use `os.path.realpath` to resolve symlinks.", "Indeed, it makes sense to normalize `data_dir`. Feel free to submit a PR (this can be \"fixed\" [here](https://github.com/huggingface/datasets/blob/89f775226321ba94e5bf4670a323c0fb44f5f65c/src/datasets/builder.py#L173))", "#self-assign" ]
1,712,156,282
5,870
Behaviour difference between datasets.map and IterableDatasets.map
open
### Describe the bug All the examples in all the docs mentioned throughout huggingface datasets correspond to datasets object, and not IterableDatasets object. At one point of time, they might have been in sync, but the code for datasets version >=2.9.0 is very different as compared to the docs. I basically need to ...
true
2023-05-16T14:32:57Z
2023-05-16T14:36:05Z
null
llStringll
NONE
null
null
1
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/5870
false
[ "PS - some work is definitely needed for 'special cases' docs, not explanations, just usages of 'functions' under mixture of special cases, like a combination of custom databuilder + iterable dataset for large size + dynamic .map() application." ]
1,711,990,003
5,869
Image Encoding Issue when submitting a Parquet Dataset
closed
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
true
2023-05-16T09:42:58Z
2023-06-16T12:48:38Z
2023-06-16T09:30:48Z
PhilippeMoussalli
NONE
null
null
16
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5869
false
[ "Hi @PhilippeMoussalli thanks for opening a detailed issue. It seems the issue is more related to the `datasets` library so I'll ping @lhoestq @mariosasko on this one :) \n\n(edit: also can one of you move the issue to the datasets repo? Thanks in advance 🙏)", "Hi ! The `Image()` info is stored in the **schema m...
1,711,173,098
5,868
Is it possible to change a cached file and 're-cache' it instead of re-generating?
closed
### Feature request Hi, I have a huge cached file using `map`(over 500GB), and I want to change an attribution of each element, is there possible to do it using some method instead of re-generating, because `map` takes over 24 hours ### Motivation For large datasets, I think it is very important because we always f...
true
2023-05-16T03:45:42Z
2023-05-17T11:21:36Z
2023-05-17T11:21:36Z
zyh3826
NONE
null
null
2
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5868
false
[ "Arrow files/primitives (tables and arrays) are immutable, so re-generating them is the only option, I'm afraid.", "> \r\n\r\nGot it, thanks for your reply" ]
1,710,656,067
5,867
Add logic for hashing modules/functions optimized with `torch.compile`
closed
Fix https://github.com/huggingface/datasets/issues/5839 PS: The `Pickler.save` method is becoming a bit messy, so I plan to refactor the pickler a bit at some point.
true
2023-05-15T19:03:35Z
2024-01-11T06:30:50Z
2023-11-27T20:03:31Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5867
null
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5867
true
[ "<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...
1,710,496,993
5,866
Issue with Sequence features
closed
### Describe the bug Sequences features sometimes causes errors when the specified length is not -1 ### Steps to reproduce the bug ```python import numpy as np from datasets import Features, ClassLabel, Sequence, Value, Dataset feats = Features(**{'target': ClassLabel(names=[0, 1]),'x': Sequence(feature=Va...
true
2023-05-15T17:13:29Z
2023-05-26T11:57:17Z
2023-05-26T11:57:17Z
alialamiidrissi
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5866
false
[ "Thanks for reporting! I've opened a PR with a fix." ]
1,710,455,738
5,865
Deprecate task api
closed
The task API is not well adopted in the ecosystem, so this PR deprecates it. The `train_eval_index` is a newer, more flexible solution that should be used instead (I think?). These are the projects that still use the task API : * the image classification example in Transformers: [here](https://github.com/huggingfac...
true
2023-05-15T16:48:24Z
2023-07-10T12:33:59Z
2023-07-10T12:24:01Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5865
2023-07-10T12:24:01Z
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5865
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "If it's easy to keep supporting it we can keep it no ? There are many datasets on the hub that implement the tasks templates in dataset scripts and it's maybe easier to keep task templates than opening PRs to those datasets.", "do ...
1,710,450,047
5,864
Slow iteration over Torch tensors
open
### Describe the bug I have a problem related to this [issue](https://github.com/huggingface/datasets/issues/5841): I get a way slower iteration when using a Torch dataloader if I use vanilla Numpy tensors or if I first apply a ToTensor transform to the input. In particular, it takes 5 seconds to iterate over the vani...
true
2023-05-15T16:43:58Z
2024-10-08T10:21:48Z
null
crisostomi
NONE
null
null
2
2
2
0
null
false
[]
https://github.com/huggingface/datasets/issues/5864
false
[ "I am highly interested performance of dataset so I ran your example as a curious user.\r\n```python\r\ntrain_dataset.cast_column(\"x\", Array3D(shape=img_shape, dtype=\"float32\"))\r\n```\r\nhave return values and \"x\" is a new column, it shoulde be\r\n```python\r\nds=train_dataset.cast_column(\"img\", Array3D(sh...
1,710,335,905
5,863
Use a new low-memory approach for tf dataset index shuffling
closed
This PR tries out a new approach to generating the index tensor in `to_tf_dataset`, which should reduce memory usage for very large datasets. I'll need to do some testing before merging it! Fixes #5855
true
2023-05-15T15:28:34Z
2023-06-08T16:40:18Z
2023-06-08T16:32:51Z
Rocketknight1
MEMBER
https://github.com/huggingface/datasets/pull/5863
2023-06-08T16:32:50Z
36
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5863
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5863). 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...
1,710,140,646
5,862
IndexError: list index out of range with data hosted on Zenodo
open
The dataset viewer sometimes raises an `IndexError`: ``` IndexError: list index out of range ``` See: - huggingface/datasets-server#1151 - https://huggingface.co/datasets/reddit/discussions/5 - huggingface/datasets-server#1118 - https://huggingface.co/datasets/krr-oxford/OntoLAMA/discussions/1 - https://hu...
true
2023-05-15T13:47:19Z
2023-09-25T12:09:51Z
null
albertvillanova
MEMBER
null
null
1
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5862
false
[ "This error is also raised when data is hosted on Google Drive:\r\n- https://huggingface.co/datasets/docred/discussions/5\r\n- https://huggingface.co/datasets/linnaeus/discussions/3\r\n- https://huggingface.co/datasets/poleval2019_mt/discussions/3\r\n- https://huggingface.co/datasets/reddit_tifu/discussions/2\r\n- ...
1,709,807,340
5,861
Better error message when combining dataset dicts instead of datasets
closed
close https://github.com/huggingface/datasets/issues/5851
true
2023-05-15T10:36:24Z
2023-05-23T10:40:13Z
2023-05-23T10:32:58Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5861
2023-05-23T10:32:58Z
7
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5861
true
[ "_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...
1,709,727,460
5,860
Minor tqdm optim
closed
Don't create a tqdm progress bar when `disable_tqdm` is passed to `map_nested`. On my side it sped up some iterable datasets by ~30% when `map_nested` is used extensively to recursively tensorize python dicts.
true
2023-05-15T09:49:37Z
2023-05-17T18:46:46Z
2023-05-17T18:39:35Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5860
2023-05-17T18:39:35Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5860
true
[ "_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...
1,709,554,829
5,859
Raise TypeError when indexing a dataset with bool
closed
Fix #5858.
true
2023-05-15T08:08:42Z
2023-05-25T16:31:24Z
2023-05-25T16:23:17Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5859
2023-05-25T16:23:17Z
7
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5859
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "@lhoestq any idea why this only fails (CI integration fails are unrelated) in \"Build PR Documentation / build / build_pr_documentation\" (which uses Python 3.8), with message:\r\n```\r\nTypeError: Type subscription requires python >...
1,709,332,632
5,858
Throw an error when dataset improperly indexed
closed
### Describe the bug Pandas-style subset indexing on dataset does not throw an error, when maybe it should. Instead returns the first instance of the dataset regardless of index condition. ### Steps to reproduce the bug Steps to reproduce the behavior: 1. `squad = datasets.load_dataset("squad_v2", split="validati...
true
2023-05-15T05:15:53Z
2023-05-25T16:23:19Z
2023-05-25T16:23:19Z
sarahwie
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5858
false
[ "Thanks for reporting, @sarahwie.\r\n\r\nPlease note that in `datasets` we do not have vectorized operation like `pandas`. Therefore, your equality comparisons above are `False`:\r\n- For example: `squad['question']` returns a `list`, and this list is not equal to `\"Who was the Norse leader?\"`\r\n\r\nThe `False` ...
1,709,326,622
5,857
Adding chemistry dataset/models in huggingface
closed
### Feature request Huggingface is really amazing platform for open science. In addition to computer vision, video and NLP, would it be of interest to add chemistry/materials science dataset/models in Huggingface? Or, if its already done, can you provide some pointers. We have been working on a comprehensive ben...
true
2023-05-15T05:09:49Z
2023-07-21T13:45:40Z
2023-07-21T13:45:40Z
knc6
NONE
null
null
1
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5857
false
[ "Hi! \r\n\r\nThis would be a nice addition to the Hub! You can find the existing chemistry datasets/models on the Hub (using the `chemistry` tag) [here](https://huggingface.co/search/full-text?q=chemistry&type=model&type=dataset).\r\n\r\nFeel free to ping us here on the Hub if you need help adding the datasets.\r\n...
1,709,218,242
5,856
Error loading natural_questions
closed
### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: Nested data conversions not impl...
true
2023-05-15T02:46:04Z
2023-06-05T09:11:19Z
2023-06-05T09:11:18Z
Crownor
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5856
false
[ "Hi! You can avoid this error by using the preprocessed version:\r\n```python\r\nimport datasets\r\nds = datasets.load_dataset('natural_questions')\r\n```\r\n\r\nPS: Once we finish https://github.com/huggingface/datasets/pull/5364, this error will no longer be a problem.", "> Hi! You can avoid this error by using...
1,708,784,943
5,855
`to_tf_dataset` consumes too much memory
closed
### Describe the bug Hi, I'm using `to_tf_dataset` to convert a _large_ dataset to `tf.data.Dataset`. I observed that the data loading *before* training took a lot of time and memory, even with `batch_size=1`. After some digging, i believe the reason lies in the shuffle behavior. The [source code](https://github....
true
2023-05-14T01:22:29Z
2023-06-08T16:32:52Z
2023-06-08T16:32:52Z
massquantity
NONE
null
null
6
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5855
false
[ "Cc @amyeroberts @Rocketknight1 \r\n\r\nIndded I think it's because it does something like this under the hood when there's no multiprocessing:\r\n\r\n```python\r\ntf_dataset = tf_dataset.shuffle(len(dataset))\r\n```\r\n\r\nPS: with multiprocessing it appears to be different:\r\n\r\n```python\r\nindices = np.arange...
1,708,779,300
5,854
Can not load audiofolder dataset on kaggle
closed
### Describe the bug It's crash log: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingfac...
true
2023-05-14T00:50:47Z
2023-08-16T13:35:36Z
2023-07-21T13:53:45Z
ILG2021
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5854
false
[ "Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`pip install -U datasets`) in the environment (and restart the env for the update to take effect) to resolve the issue.", "> Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`p...
1,708,092,786
5,853
[docs] Redirects, migrated from nginx
closed
true
2023-05-12T19:19:27Z
2023-05-15T10:37:19Z
2023-05-15T10:30:14Z
julien-c
MEMBER
https://github.com/huggingface/datasets/pull/5853
2023-05-15T10:30:14Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5853
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "@mishig25 note that it's not exactly the same behavior as in nginx as here it interacts a bit with the `version` and the `language`\r\n\r\nShould be close enough, though.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow=...
1,707,927,165
5,852
Iterable torch formatting
closed
Used the TorchFormatter to get torch tensors in iterable dataset with format set to "torch". It uses the data from Arrow if possible, otherwise applies recursive_tensorize. When set back to format_type=None, cast_to_python_objects is used. requires https://github.com/huggingface/datasets/pull/5821 close htt...
true
2023-05-12T16:48:49Z
2023-06-13T16:04:05Z
2023-06-13T15:57:05Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5852
2023-06-13T15:57:05Z
11
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5852
true
[ "<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...
1,707,678,911
5,850
Make packaged builders skip non-supported file formats
open
This PR makes packaged builders skip non-supported file formats: - Csv builder skips non-CSV files - Analogously for the other builders Fix #5849.
true
2023-05-12T13:52:34Z
2023-06-07T12:26:38Z
null
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5850
null
10
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5850
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5850). All of your documentation changes will be reflected on that endpoint.", "Good idea. @mariosasko!!!\r\n\r\nPlease note that before this PR, the files are not evenly distributed for archives: `_generate_examples` gets a li...
1,707,551,511
5,849
CSV datasets should only read the CSV data files in the repo
closed
When a no-script dataset has many CSV files and a JPG file, the library infers to use the Csv builder, but tries to read as CSV all files in the repo, also the JPG file. I think the Csv builder should filter out non-CSV files when reading. An analogue solution should be implemented for other packaged builders. ...
true
2023-05-12T12:29:53Z
2023-06-22T14:16:27Z
2023-06-22T14:16:27Z
albertvillanova
MEMBER
null
null
0
2
2
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5849
false
[]
1,707,506,734
5,848
Add `accelerate` as metric's test dependency to fix CI error
closed
The `frugalscore` metric uses Transformers' Trainer, which requires `accelerate` (as of recently). Fixes the following [CI error](https://github.com/huggingface/datasets/actions/runs/4950900048/jobs/8855148703?pr=5845).
true
2023-05-12T12:01:01Z
2023-05-12T13:48:47Z
2023-05-12T13:39:06Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5848
2023-05-12T13:39:06Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5848
true
[ "_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...
1,706,616,634
5,847
Streaming IterableDataset not working with translation pipeline
open
### Describe the bug I'm trying to use a streaming dataset for translation inference to avoid downloading the training data. I'm using a pipeline and a dataset, and following the guidance in the tutorial. Instead I get an exception that IterableDataset has no len(). ### Steps to reproduce the bug CODE: ``` ...
true
2023-05-11T21:52:38Z
2023-05-16T15:59:55Z
null
jlquinn
NONE
null
null
8
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5847
false
[ "I wasn't sure to file this against transformers or datasets.", "[`KeyDataset`](https://github.com/huggingface/transformers/blob/7f8b909189547944617741d8d3c6c84504701693/src/transformers/pipelines/pt_utils.py#L296) doesn't support iterable datasets, so you either need to implement a version that does (and also in...
1,707,907,048
5,851
Error message not clear in interleaving datasets
closed
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction I'm tr...
true
2023-05-11T20:52:13Z
2023-05-23T10:32:59Z
2023-05-23T10:32:59Z
surya-narayanan
NONE
null
null
0
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5851
false
[]
1,706,289,290
5,846
load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
closed
### Describe the bug Running ``` import datasets ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True) ``` takes about 2.5 minutes! I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds. ### Environment info - `datasets` version: 2.1...
true
2023-05-11T17:58:57Z
2024-04-08T12:53:17Z
2024-04-05T12:28:58Z
tbenthompson
NONE
null
null
7
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5846
false
[ "This is due to the slow resolution of the data files: https://github.com/huggingface/datasets/issues/5537.\r\n\r\nWe plan to switch to `huggingface_hub`'s `HfFileSystem` soon to make the resolution faster (will be up to 20x faster once we merge https://github.com/huggingface/huggingface_hub/pull/1443)\r\n\r\n", ...
1,706,253,251
5,845
Add `date_format` param to the CSV reader
closed
Adds the `date_format` param introduced in Pandas 2.0 to the CSV reader and improves its type hints.
true
2023-05-11T17:29:57Z
2023-05-15T07:39:13Z
2023-05-12T15:14:48Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5845
2023-05-12T15:14:48Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5845
true
[ "_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...
1,705,907,812
5,844
TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to ...
open
### Describe the bug TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to {'answer': {'unanswerable': Value(dtype='bool', id=None),...
true
2023-05-11T14:15:01Z
2023-05-11T14:15:01Z
null
chen-coding
NONE
null
null
0
2
2
0
null
false
[]
https://github.com/huggingface/datasets/issues/5844
false
[]
1,705,286,639
5,841
Abusurdly slow on iteration
closed
### Describe the bug I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment: ```python a=torch.randn(100,224) a=torch.stack([a] * 10000) a.shape # %% ds=Dataset.from_d...
true
2023-05-11T08:04:09Z
2023-05-15T15:38:13Z
2023-05-15T15:38:13Z
fecet
NONE
null
null
4
2
2
0
null
false
[]
https://github.com/huggingface/datasets/issues/5841
false
[ "Hi ! You can try to use the [Image](https://huggingface.co/docs/datasets/v2.12.0/en/package_reference/main_classes#datasets.Image) type which [decodes images on-the-fly](https://huggingface.co/docs/datasets/v2.12.0/en/about_dataset_features#image-feature) into pytorch tensors :)\r\n\r\n```python\r\nds = Dataset.fr...
1,705,212,085
5,840
load model error.
closed
### Describe the bug I had trained one model use deepspeed, when I load the final load I get the follow error: OSError: Can't load tokenizer for '/XXX/DeepSpeedExamples/applications/DeepSpeed-Chat/output/step3-models/1.3b/actor'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't ...
true
2023-05-11T07:12:38Z
2023-05-12T13:44:07Z
2023-05-12T13:44:06Z
LanShanPi
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5840
false
[ "Please report this in the `transformers` repo, as it's not related to `datasets`" ]
1,705,510,602
5,842
Remove columns in interable dataset
closed
### Feature request Right now, remove_columns() produces a NotImplementedError for iterable style datasets ### Motivation It would be great to have the same functionality irrespective of whether one is using an iterable or a map-style dataset ### Your contribution hope and courage.
true
2023-05-11T03:48:46Z
2023-06-21T16:36:42Z
2023-06-21T16:36:41Z
surya-narayanan
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5842
false
[ "Transferring this issue as it's related to the 🤗 Datasets library ", "Hi @surya-narayanan! Could you provide some code snippet?", "This method has been recently added to the `IterableDataset`, so you need to update the `datasets`' installation (`pip install -U datasets`) to use it." ]
1,705,514,551
5,843
Can't add iterable datasets to a Dataset Dict.
closed
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below) ### Reproduction Get th...
true
2023-05-11T02:09:29Z
2023-05-25T04:51:59Z
2023-05-25T04:51:59Z
surya-narayanan
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5843
false
[ "Transferring as this is relating to the 🤗 Datasets library", "You need to use `IterableDatasetDict` instead of `DatasetDict` for iterable datasets." ]
1,704,554,718
5,839
Make models/functions optimized with `torch.compile` hashable
closed
As reported in https://github.com/huggingface/datasets/issues/5819, hashing functions/transforms that reference a model, or a function, optimized with `torch.compile` currently fails due to them not being picklable (the concrete error can be found in the linked issue). The solutions to consider: 1. hashing/pickling...
true
2023-05-10T20:02:08Z
2023-11-28T16:29:33Z
2023-11-28T16:29:33Z
mariosasko
COLLABORATOR
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5839
false
[]
1,703,210,848
5,838
Streaming support for `load_from_disk`
closed
### Feature request Support for streaming datasets stored in object stores in `load_from_disk`. ### Motivation The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ...
true
2023-05-10T06:25:22Z
2024-10-28T14:19:44Z
2023-05-12T09:37:45Z
Nilabhra
NONE
null
null
12
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5838
false
[ "As the name says, `load_from_disk` load the data from your disk. If the data is hosted on S3, it is first downloaded locally and then loaded from your disk.\r\n\r\nThere is a discussion on streaming data from S3 here though: #5281 ", "@lhoestq \r\nThanks for your comment. I have checked out the discussion before...
1,703,019,816
5,837
Use DeepSpeed load myself " .csv " dataset.
open
### Describe the bug When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset builder_instan...
true
2023-05-10T02:39:28Z
2023-05-15T03:51:36Z
null
LanShanPi
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5837
false
[ "Hi ! Doing `load_dataset(\"path/to/data.csv\")` is not supported yet, but you can do\r\n\r\n```python\r\nds = load_dataset(\"csv\", data_files=[\"path/to/data.csv\"])\r\n```", "@lhoestq thank you.", "The other question: \r\nTraceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n Fil...
1,702,773,316
5,836
[docs] Custom decoding transforms
closed
Adds custom decoding transform solution to the docs to fix #5782.
true
2023-05-09T21:21:41Z
2023-05-15T07:36:12Z
2023-05-10T20:23:03Z
stevhliu
MEMBER
https://github.com/huggingface/datasets/pull/5836
2023-05-10T20:23:03Z
4
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5836
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5836). All of your documentation changes will be reflected on that endpoint.", "The error seems unrelated to the changes, so feel free to merge.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\...
1,702,522,620
5,835
Always set nullable fields in the writer
closed
This fixes loading of e.g. parquet data with non-nullable fields. Indeed `datasets.Features` doesn't support non-nullable fields, which can lead to data not concatenable due to arrow schema mismatch.
true
2023-05-09T18:16:59Z
2023-05-23T16:10:29Z
2023-05-19T13:04:30Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5835
2023-05-19T13:04:30Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5835
true
[ "_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...
1,702,448,892
5,834
Is uint8 supported?
closed
### Describe the bug I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead. While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well. Is there a way ...
true
2023-05-09T17:31:13Z
2023-05-13T05:04:21Z
2023-05-13T05:04:21Z
ryokan0123
NONE
null
null
5
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5834
false
[ "Hi ! The numpy formatting detaults to int64 and float32 - but you can use uint8 using\r\n```python\r\nds = ds.with_format(\"numpy\", dtype=np.uint8)\r\n```", "Related to https://github.com/huggingface/datasets/issues/5517.", "Thank you!\r\nBy setting `ds.with_format(\"numpy\", dtype=np.uint8)`, the dataset ret...
1,702,280,682
5,833
Unable to push dataset - `create_pr` problem
closed
### Describe the bug I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible. ### Steps to reproduce the bug here what I have: ```python dataset.push_to_hub("agomberto/Fr...
true
2023-05-09T15:32:55Z
2023-10-24T18:22:29Z
2023-10-24T18:22:29Z
agombert
NONE
null
null
14
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5833
false
[ "Thanks for reporting, @agombert.\r\n\r\nIn this case, I think the root issue is authentication: before pushing to Hub, you should authenticate. See our docs: https://huggingface.co/docs/datasets/upload_dataset#upload-with-python\r\n> 2. To upload a dataset on the Hub in Python, you need to log in to your Hugging F...
1,702,135,336
5,832
404 Client Error: Not Found for url: https://huggingface.co/api/models/bert-large-cased
closed
### Describe the bug Running [Bert-Large-Cased](https://huggingface.co/bert-large-cased) model causes `HTTPError`, with the following traceback- ``` HTTPError Traceback (most recent call last) <ipython-input-6-5c580443a1ad> in <module> ----> 1 tokenizer = BertTokenizer.from_pretra...
true
2023-05-09T14:14:59Z
2023-05-09T14:25:59Z
2023-05-09T14:25:59Z
varungupta31
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5832
false
[ "moved to https://github.com/huggingface/transformers/issues/23233" ]
1,701,813,835
5,831
[Bug]504 Server Error when loading dataset which was already cached
open
### Describe the bug I have already cached the dataset using: ``` dataset = load_dataset("databricks/databricks-dolly-15k", cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k") ``` After that, I tried to load it again using the same machine, I got this error: ``` Traceback (most rece...
true
2023-05-09T10:31:07Z
2023-05-10T01:48:20Z
null
SingL3
NONE
null
null
6
3
3
0
null
false
[]
https://github.com/huggingface/datasets/issues/5831
false
[ "I am experiencing the same problem with the following environment:\r\n\r\n* `datasets` version: 2.11.0\r\n* Platform: `Linux 5.19.0-41-generic x86_64 GNU/Linux`\r\n* Python version: `3.8.5`\r\n* Huggingface_hub version: 0.13.3\r\n* PyArrow version: `11.0.0`\r\n* Pandas version: `1.5.3`\r\n\r\nTrying to get some di...
1,701,451,399
5,830
Debug windows #2
closed
true
2023-05-09T06:40:34Z
2023-05-09T06:40:47Z
2023-05-09T06:40:47Z
HyukjinKwon
NONE
https://github.com/huggingface/datasets/pull/5830
null
0
0
0
0
true
false
[]
https://github.com/huggingface/datasets/pull/5830
true
[]
1,699,958,189
5,829
(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
closed
### Describe the bug M2 MBP can't run ```python from datasets import load_dataset jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy') ``` ### Steps to reproduce the bug 1. Use M2 MBP 2. Python 3.10.10 from pyenv 3. Run ``` from datasets import load_dataset jazzy = load_...
true
2023-05-08T10:07:14Z
2023-06-30T11:39:14Z
2023-05-09T00:46:42Z
elcolie
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5829
false
[ "Can you paste the error stack trace?", "That is weird. I can't reproduce it again after reboot.\r\n```python\r\nIn [2]: import platform\r\n\r\nIn [3]: platform.platform()\r\nOut[3]: 'macOS-13.2-arm64-arm-64bit'\r\n\r\nIn [4]: from datasets import load_dataset\r\n ...:\r\n ...: jazzy = load_dataset(\"nomic-ai...
1,699,235,739
5,828
Stream data concatenation issue
closed
### Describe the bug I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset. ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=...
true
2023-05-07T21:02:54Z
2023-06-29T20:07:56Z
2023-05-10T05:05:47Z
krishnapriya-18
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5828
false
[ "Hi! \r\n\r\nYou can call `map` as follows to avoid the error:\r\n```python\r\naugmented_dataset_cln = dataset_cln['train'].map(augment_dataset, features=dataset_cln['train'].features)\r\n```", "Thanks it is solved", "Hi! \r\nI have run into the same problem with you. Could you please let me know how you solve ...
1,698,891,246
5,827
load json dataset interrupt when dtype cast problem occured
open
### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_files=['xx.json'], split='train'), it will report like this: ...
true
2023-05-07T04:52:09Z
2023-05-10T12:32:28Z
null
1014661165
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5827
false
[ "Indeed the JSON dataset builder raises an error when it encounters an unexpected type.\r\n\r\nThere's an old PR open to add away to ignore such elements though, if it can help: https://github.com/huggingface/datasets/pull/2838" ]
1,698,155,751
5,826
Support working_dir in from_spark
closed
Accept `working_dir` as an argument to `Dataset.from_spark`. Setting a non-NFS working directory for Spark workers to materialize to will improve write performance.
true
2023-05-05T20:22:40Z
2023-05-25T17:45:54Z
2023-05-25T08:46:15Z
maddiedawson
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5826
2023-05-25T08:46:15Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5826
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Added env var", "@lhoestq would you or another maintainer be able to review please? :)", "I removed the env var", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!<...
1,697,327,483
5,825
FileNotFound even though exists
closed
### Describe the bug I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong? ``` Downloading builder script: 100% 2.82k/2.8...
true
2023-05-05T09:49:55Z
2023-08-16T10:02:01Z
2023-08-16T10:02:01Z
Muennighoff
CONTRIBUTOR
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5825
false
[ "Hi! \r\n\r\nThis would only work if `bigscience/xP3` was a no-code dataset, but it isn't (it has a Python builder script).\r\n\r\nBut this should work: \r\n```python\r\nload_dataset(\"json\", data_files=\"https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_a...
1,697,152,148
5,824
Fix incomplete docstring for `BuilderConfig`
closed
Fixes #5820 Also fixed a couple of typos I spotted
true
2023-05-05T07:34:28Z
2023-05-05T12:39:14Z
2023-05-05T12:31:54Z
Laurent2916
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5824
2023-05-05T12:31:54Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5824
true
[ "_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...
1,697,024,789
5,823
[2.12.0] DatasetDict.save_to_disk not saving to S3
closed
### Describe the bug When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket. I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the same results. ### Steps to reproduce the bug 1. C...
true
2023-05-05T05:22:59Z
2024-05-30T16:11:31Z
2023-05-05T15:01:17Z
thejamesmarq
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5823
false
[ "Hi ! Can you try adding the `s3://` prefix ?\r\n```python\r\nf\"s3://{s3_bucket}/{s3_dir}/{dataset_name}\"\r\n```", "Ugh, yeah that was it. Thank you!", "Hi @thejamesmarq, by any chance, did you use multiprocessing `num_proc > 1` when saving your dataset on the s3 bucket ? I'm struggling making it work in a mu...
1,696,627,308
5,822
Audio Dataset with_format torch problem
closed
### Describe the bug Common Voice v10 Delta (German) Dataset from here https://commonvoice.mozilla.org/de/datasets ``` audio_dataset = \ (Dataset .from_dict({"audio": ('/tmp/cv-corpus-10.0-delta-2022-07-04/de/clips/' + df.path).to_list()}) .cast_column("audio", Audio(sampling_rate=16_000)) .with...
true
2023-05-04T20:07:51Z
2023-05-11T20:45:53Z
2023-05-11T20:45:53Z
paulbauriegel
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5822
false
[ "Hi ! Can you try with a more recent version of `datasets` ?", "Ok, yes it worked with the most recent version. Thanks" ]
1,696,400,343
5,821
IterableDataset Arrow formatting
closed
Adding an optional `.iter_arrow` to examples iterable. This allows to use Arrow formatting in map/filter. This will also be useful for torch formatting, since we can reuse the TorchFormatter that converts Arrow data to torch tensors Related to https://github.com/huggingface/datasets/issues/5793 and https://github...
true
2023-05-04T17:23:43Z
2023-05-31T09:43:26Z
2023-05-31T09:36:18Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5821
2023-05-31T09:36:18Z
13
2
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5821
true
[ "<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...
1,695,892,811
5,820
Incomplete docstring for `BuilderConfig`
closed
Hi guys ! I stumbled upon this docstring while working on a project. Some of the attributes have missing descriptions. https://github.com/huggingface/datasets/blob/bc5fef5b6d91f009e4101684adcb374df2c170f6/src/datasets/builder.py#L104-L117
true
2023-05-04T12:14:34Z
2023-05-05T12:31:56Z
2023-05-05T12:31:56Z
Laurent2916
CONTRIBUTOR
null
null
1
0
0
0
null
false
[ "good first issue" ]
https://github.com/huggingface/datasets/issues/5820
false
[ "Thanks for reporting! You are more than welcome to improve `BuilderConfig`'s docstring.\r\n\r\nThis class serves an identical purpose as `tensorflow_datasets`'s `BuilderConfig`, and its docstring is [here](https://github.com/tensorflow/datasets/blob/a95e38b5bb018312c3d3720619c2a8ef83ebf57f/tensorflow_datasets/core...
1,695,536,738
5,819
Cannot pickle error in Dataset.from_generator()
closed
### Describe the bug I'm trying to use Dataset.from_generator() to generate a large dataset. ### Steps to reproduce the bug Code to reproduce: ``` from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig import torch from tqdm import tqdm from datasets import load_dataset tokenizer...
true
2023-05-04T08:39:09Z
2023-05-05T19:20:59Z
2023-05-05T19:20:58Z
xinghaow99
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5819
false
[ "Hi! It should work if you put `model = torch.compile(model)` inside the `generate_data` function. If a referenced object is outside, it needs to be pickable, and that's not the case for the compiled models (or functions). ", "> Hi! It should work if you put `model = torch.compile(model)` inside the `generate_da...
1,695,052,555
5,818
Ability to update a dataset
open
### Feature request The ability to load a dataset, add or change something, and save it back to disk. Maybe it's possible, but I can't work out how to do it, e.g. this fails: ```py import datasets dataset = datasets.load_from_disk("data/test1") dataset = dataset.add_item({"text": "A new item"}) dataset.sav...
true
2023-05-04T01:08:13Z
2023-05-04T20:43:39Z
null
davidgilbertson
NONE
null
null
3
2
2
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5818
false
[ "This [reply](https://discuss.huggingface.co/t/how-do-i-add-things-rows-to-an-already-saved-dataset/27423) from @mariosasko on the forums may be useful :)", "In this case, I think we can avoid the `PermissionError` by unpacking the underlying `ConcatenationTable` and saving only the newly added data blocks (in ne...
1,694,891,866
5,817
Setting `num_proc` errors when `.map` returns additional items.
closed
### Describe the bug I'm using a map function that returns more rows than are passed in. If I try to use `num_proc` I get: ``` File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw...
true
2023-05-03T21:46:53Z
2023-05-04T21:14:21Z
2023-05-04T20:22:25Z
davidgilbertson
NONE
null
null
3
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/5817
false
[ "Hi ! Unfortunately I couldn't reproduce on my side locally and with datasets 2.11 and python 3.10.11 on colab.\r\nWhat version of `multiprocess` are you using ?", "I've got `multiprocess` version `0.70.14`.\r\n\r\nI've done some more testing and the error only occurs in PyCharm's Python Console. It seems to be [...
1,694,590,856
5,816
Preserve `stopping_strategy` of shuffled interleaved dataset (random cycling case)
closed
Preserve the `stopping_strategy` in the `RandomlyCyclingMultiSourcesExamplesIterable.shard_data_sources` to fix shuffling a dataset interleaved (from multiple sources) with probabilities. Fix #5812
true
2023-05-03T18:34:18Z
2023-05-04T14:31:55Z
2023-05-04T14:24:49Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5816
2023-05-04T14:24:49Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5816
true
[ "<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...
1,693,216,778
5,814
Repro windows crash
closed
true
2023-05-02T23:30:18Z
2024-01-08T18:30:45Z
2024-01-08T18:30:45Z
maddiedawson
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5814
null
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5814
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5814). All of your documentation changes will be reflected on that endpoint." ]
1,693,701,743
5,815
Easy way to create a Kaggle dataset from a Huggingface dataset?
open
I'm not sure whether this is more appropriately addressed with HuggingFace or Kaggle. I would like to somehow directly create a Kaggle dataset from a HuggingFace Dataset. While Kaggle does provide the option to create a dataset from a URI, that URI must point to a single file. For example: ![image](https://user...
true
2023-05-02T21:43:33Z
2023-07-26T16:13:31Z
null
hrbigelow
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5815
false
[ "Hi @hrbigelow , I'm no expert for such a question so I'll ping @lhoestq from the `datasets` library (also this issue could be moved there if someone with permission can do it :) )", "Hi ! Many datasets are made of several files, and how they are parsed often requires a python script. Because of that, datasets li...
1,691,908,535
5,813
[DO-NOT-MERGE] Debug Windows issue at #3
closed
TBD
true
2023-05-02T07:19:34Z
2023-05-02T07:21:30Z
2023-05-02T07:21:30Z
HyukjinKwon
NONE
https://github.com/huggingface/datasets/pull/5813
null
0
0
0
0
true
false
[]
https://github.com/huggingface/datasets/pull/5813
true
[]
1,691,798,169
5,812
Cannot shuffle interleaved IterableDataset with "all_exhausted" stopping strategy
closed
### Describe the bug Shuffling interleaved `IterableDataset` with "all_exhausted" strategy yields non-exhaustive sampling. ### Steps to reproduce the bug ```py from datasets import IterableDataset, interleave_datasets def gen(bias, length): for i in range(length): yield dict(a=bias+i) seed = 42 ...
true
2023-05-02T05:26:17Z
2023-05-04T14:24:51Z
2023-05-04T14:24:51Z
offchan42
NONE
null
null
0
0
0
0
null
false
[ "bug", "streaming" ]
https://github.com/huggingface/datasets/issues/5812
false
[]
1,689,919,046
5,811
load_dataset: TypeError: 'NoneType' object is not callable, on local dataset filename changes
open
### Describe the bug I've adapted Databrick's [train_dolly.py](/databrickslabs/dolly/blob/master/train_dolly.py) to train using a local dataset, which has been working. Upon changing the filenames of the `.json` & `.py` files in my local dataset directory, `dataset = load_dataset(path_or_dataset)["train"]` throws th...
true
2023-04-30T13:27:17Z
2025-02-27T07:32:30Z
null
durapensa
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5811
false
[ "This error means a `DatasetBuilder` subclass that generates the dataset could not be found inside the script, so make sure `dushowxa-characters/dushowxa-characters.py `is a valid dataset script (assuming `path_or_dataset` is `dushowxa-characters`)\r\n\r\nAlso, we should improve the error to make it more obvious wh...
1,689,917,822
5,810
Add `fn_kwargs` to `map` and `filter` of `IterableDataset` and `IterableDatasetDict`
closed
# Overview I've added an argument`fn_kwargs` for map and filter methods of `IterableDataset` and `IterableDatasetDict` classes. # Details Currently, the map and filter methods of some classes related to `IterableDataset` do not allow specifing the arguments passed to the function. This pull request adds `fn_kwargs...
true
2023-04-30T13:23:01Z
2023-05-22T08:12:39Z
2023-05-22T08:05:31Z
yuukicammy
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5810
2023-05-22T08:05:31Z
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5810
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Sorry, the local test passed because it was inadvertently testing the main branch. I am currently fixing where the test failed.", "- I have fixed the bug and addressed the above two points.\r\n- I have tested locally and confirmed ...
1,689,797,293
5,809
wiki_dpr details for Open Domain Question Answering tasks
closed
Hey guys! Thanks for creating the wiki_dpr dataset! I am currently trying to combine wiki_dpr and my own datasets. but I don't know how to make the embedding value the same way as wiki_dpr. As an experiment, I embeds the text of id="7" of wiki_dpr, but this result was very different from wiki_dpr.
true
2023-04-30T06:12:04Z
2023-07-21T14:11:00Z
2023-07-21T14:11:00Z
yulgok22
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5809
false
[ "Hi ! I don't remember exactly how it was done, but maybe you have to embed `f\"{title}<sep>{text}\"` ?\r\n\r\nUsing a HF tokenizer it corresponds to doing\r\n```python\r\ntokenized = tokenizer(titles, texts)\r\n```" ]
1,688,977,237
5,807
Support parallelized downloading in load_dataset with Spark
closed
As proposed in https://github.com/huggingface/datasets/issues/5798, this adds support to parallelized downloading in `load_dataset` with Spark, which can speed up the process by distributing the workload to worker nodes. Parallelizing dataset processing is not supported in this PR.
true
2023-04-28T18:34:32Z
2023-05-25T16:54:14Z
2023-05-25T16:54:14Z
es94129
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5807
null
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5807
true
[ "Hi @lhoestq or other maintainers, this is ready for review, could you please take a look?", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5807). All of your documentation changes will be reflected on that endpoint.", "Per the discussion in #5798, will implement with `jo...
1,688,598,095
5,806
Return the name of the currently loaded file in the load_dataset function.
open
### Feature request Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output. ### Motivation When training large language models, machine problems may interrupt...
true
2023-04-28T13:50:15Z
2025-03-21T12:07:15Z
null
s-JoL
NONE
null
null
15
2
2
0
null
false
[ "enhancement", "good first issue" ]
https://github.com/huggingface/datasets/issues/5806
false
[ "Implementing this makes sense (e.g., `tensorflow_datasets`' imagefolder returns image filenames). Also, in Datasets 3.0, we plan only to store the bytes of an image/audio, not its path, so this feature would be useful when the path info is still needed.", "Hey @mariosasko, Can I work on this issue, this one seem...
1,688,558,577
5,805
Improve `Create a dataset` tutorial
open
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading. 1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f...
true
2023-04-28T13:26:22Z
2024-07-26T21:16:13Z
null
polinaeterna
CONTRIBUTOR
null
null
4
1
0
0
null
false
[ "documentation" ]
https://github.com/huggingface/datasets/issues/5805
false
[ "I can work on this. The link to the tutorial seems to be broken though @polinaeterna. ", "@isunitha98selvan would be great, thank you! which link are you talking about? I think it should work: https://huggingface.co/docs/datasets/create_dataset", "Hey I don't mind working on this issue. From my understanding, ...
1,688,285,666
5,804
Set dev version
closed
true
2023-04-28T10:10:01Z
2023-04-28T10:18:51Z
2023-04-28T10:10:29Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5804
2023-04-28T10:10:29Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5804
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5804). 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...
1,688,256,290
5,803
Release: 2.12.0
closed
true
2023-04-28T09:52:11Z
2023-04-28T10:18:56Z
2023-04-28T09:54:43Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5803
2023-04-28T09:54:43Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5803
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5803). 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...
1,686,509,799
5,802
Validate non-empty data_files
closed
This PR adds validation of `data_files`, so that they are non-empty (str, list, or dict) or `None` (default). See: https://github.com/huggingface/datasets/pull/5787#discussion_r1178862327
true
2023-04-27T09:51:36Z
2023-04-27T14:59:47Z
2023-04-27T14:51:40Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5802
2023-04-27T14:51:40Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5802
true
[ "_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...
1,686,348,096
5,800
Change downloaded file permission based on umask
closed
This PR changes the permission of downloaded files to cache, so that the umask is taken into account. Related to: - #2157 Fix #5799. CC: @stas00
true
2023-04-27T08:13:30Z
2023-04-27T09:33:05Z
2023-04-27T09:30:16Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5800
2023-04-27T09:30:16Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5800
true
[ "_The documentation is not available anymore as the PR was closed or merged._" ]
1,686,334,572
5,799
Files downloaded to cache do not respect umask
closed
As reported by @stas00, files downloaded to the cache do not respect umask: ```bash $ ls -l /path/to/cache/datasets/downloads/ -rw------- 1 uername username 150M Apr 25 16:41 5e646c1d600f065adaeb134e536f6f2f296a6d804bd1f0e1fdcd20ee28c185c6 ``` Related to: - #2065
true
2023-04-27T08:06:05Z
2023-04-27T09:30:17Z
2023-04-27T09:30:17Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5799
false
[]
1,685,904,526
5,798
Support parallelized downloading and processing in load_dataset with Spark
open
### Feature request When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes. ```python load_dataset(..., use_spark=True) ``` ### Motivation Further speed up ...
true
2023-04-27T00:16:11Z
2023-05-25T14:11:41Z
null
es94129
CONTRIBUTOR
null
null
17
1
1
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5798
false
[ "Hi ! We're using process pools for parallelism right now. I was wondering if there's a package that implements the same API as a process pool but runs with Spark under the hood ? That or something similar would be cool because users could use whatever distributed framework they want this way.\r\n\r\nFeel free to p...
1,685,501,199
5,797
load_dataset is case sentitive?
open
### Describe the bug load_dataset() function is case sensitive? ### Steps to reproduce the bug The following two code, get totally different behavior. 1. load_dataset('mbzuai/bactrian-x','en') 2. load_dataset('MBZUAI/Bactrian-X','en') ### Expected behavior Compare 1 and 2. 1 will download all 52 subsets, sh...
true
2023-04-26T18:19:04Z
2023-04-27T11:56:58Z
null
haonan-li
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5797
false
[ "Hi @haonan-li , thank you for the report! It seems to be a bug on the [`huggingface_hub`](https://github.com/huggingface/huggingface_hub) site, there is even no such dataset as `mbzuai/bactrian-x` on the Hub. I opened and [issue](https://github.com/huggingface/huggingface_hub/issues/1453) there.", "I think `loa...
1,685,451,919
5,796
Spark docs
closed
Added a "Use with Spark" doc page to document `Dataset.from_spark` following https://github.com/huggingface/datasets/pull/5701 cc @maddiedawson
true
2023-04-26T17:39:43Z
2023-04-27T16:41:50Z
2023-04-27T16:34:45Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5796
2023-04-27T16:34:45Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5796
true
[ "_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...
1,685,414,505
5,795
Fix spark imports
closed
true
2023-04-26T17:09:32Z
2023-04-26T17:49:03Z
2023-04-26T17:39:12Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5795
2023-04-26T17:39:12Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5795
true
[ "_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...
1,685,196,061
5,794
CI ZeroDivisionError
closed
Sometimes when running our CI on Windows, we get a ZeroDivisionError: ``` FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore - ZeroDivisionError: float division by zero ``` See for example: - https://github.com/huggingface/datasets/actions/runs/4809358266/jobs/8560513110 - https:/...
true
2023-04-26T14:55:23Z
2024-05-17T09:12:11Z
2024-05-17T09:12:11Z
albertvillanova
MEMBER
null
null
2
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5794
false
[ "Hello!\r\nThis issue seems to have been fixed in https://github.com/huggingface/transformers/pull/24049 \r\nI was looking for my first issue to work on when I noticed this; not sure if there is a specific protocol for suggesting to close an issue.", "Thanks for informing, @zeppdev. I am closing this issue.\r\n\r...
1,684,777,320
5,793
IterableDataset.with_format("torch") not working
closed
### Describe the bug After calling the with_format("torch") method on an IterableDataset instance, the data format is unchanged. ### Steps to reproduce the bug ```python from datasets import IterableDataset def gen(): for i in range(4): yield {"a": [i] * 4} dataset = IterableDataset.from_generator(g...
true
2023-04-26T10:50:23Z
2023-06-13T15:57:06Z
2023-06-13T15:57:06Z
jiangwangyi
NONE
null
null
1
0
0
0
null
false
[ "bug", "enhancement", "streaming" ]
https://github.com/huggingface/datasets/issues/5793
false
[ "Hi ! Thanks for reporting, I'm working on it ;)" ]
1,683,473,943
5,791
TIFF/TIF support
closed
### Feature request I currently have a dataset (with tiff and json files) where I have to do this: `wget path_to_data/images.zip && unzip images.zip` `wget path_to_data/annotations.zip && unzip annotations.zip` Would it make sense a contribution that supports these type of files? ### Motivation instead o...
true
2023-04-25T16:14:18Z
2024-01-15T16:40:33Z
2024-01-15T16:40:16Z
sebasmos
NONE
null
null
5
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5791
false
[ "The issue with multichannel TIFF images has already been reported in Pillow (https://github.com/python-pillow/Pillow/issues/1888). We can't do much about it on our side.\r\n\r\nStill, to avoid the error, you can bypass the default Pillow decoding and define a custom one as follows:\r\n```python\r\nimport tifffile ...
1,683,229,126
5,790
Allow to run CI on push to ci-branch
closed
This PR allows to run the CI on push to a branch named "ci-*", without needing to open a PR. - This will allow to make CI tests without opening a PR, e.g., for future `huggingface-hub` releases, future dependency releases (like `fsspec`, `pandas`,...) Note that to build the documentation, we already allow it on pus...
true
2023-04-25T13:57:26Z
2023-04-26T13:43:08Z
2023-04-26T13:35:47Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5790
2023-04-26T13:35:47Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5790
true
[ "_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...
1,682,611,179
5,789
Support streaming datasets that use jsonlines
open
Extend support for streaming datasets that use `jsonlines.open`. Currently, if `jsonlines` is installed, `datasets` raises a `FileNotFoundError`: ``` FileNotFoundError: [Errno 2] No such file or directory: 'https://...' ``` See: - https://huggingface.co/datasets/masakhane/afriqa/discussions/1
true
2023-04-25T07:40:02Z
2023-04-25T07:40:03Z
null
albertvillanova
MEMBER
null
null
0
1
1
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5789
false
[]
1,681,136,256
5,788
Prepare tests for hfh 0.14
closed
Related to the coming release of `huggingface_hub==0.14.0`. It will break some internal tests. The PR fixes these tests. Let's double-check the CI but I expect the fixed tests to be running fine with both `hfh<=0.13.4` and `hfh==0.14`. Worth case scenario, existing PRs will have to be rebased once this fix is merged. ...
true
2023-04-24T12:13:03Z
2023-04-25T14:32:56Z
2023-04-25T14:25:30Z
Wauplin
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5788
2023-04-25T14:25:30Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5788
true
[ "_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...
1,680,965,959
5,787
Fix inferring module for unsupported data files
closed
This PR raises a FileNotFoundError instead: ``` FileNotFoundError: No (supported) data files or dataset script found in <dataset_name> ``` Fix #5785.
true
2023-04-24T10:44:50Z
2023-04-27T13:06:01Z
2023-04-27T12:57:28Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5787
2023-04-27T12:57:28Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5787
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "I think you can revert the last commit - it should fail if data_files={} IMO", "The validation of non-empty data_files is addressed in this PR:\r\n- #5802", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<det...
1,680,957,070
5,786
Multiprocessing in a `filter` or `map` function with a Pytorch model
closed
### Describe the bug I am trying to use a Pytorch model loaded on CPUs with multiple processes with a `.map` or a `.filter` method. Usually, when dealing with models that are non-pickable, creating a class such that the `map` function is the method `__call__`, and adding `reduce` helps to solve the problem. Howe...
true
2023-04-24T10:38:07Z
2023-05-30T09:56:30Z
2023-04-24T10:43:58Z
HugoLaurencon
NONE
null
null
5
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5786
false
[ "Hi ! PyTorch may hang when calling `load_state_dict()` in a subprocess. To fix that, set the multiprocessing start method to \"spawn\". Since `datasets` uses `multiprocess`, you should do:\r\n\r\n```python\r\n# Required to avoid issues with pytorch (otherwise hangs during load_state_dict in multiprocessing)\r\nimp...
1,680,956,964
5,785
Unsupported data files raise TypeError: 'NoneType' object is not iterable
closed
Currently, we raise a TypeError for unsupported data files: ``` TypeError: 'NoneType' object is not iterable ``` See: - https://github.com/huggingface/datasets-server/issues/1073 We should give a more informative error message.
true
2023-04-24T10:38:03Z
2023-04-27T12:57:30Z
2023-04-27T12:57:30Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5785
false
[]
1,680,950,726
5,784
Raise subprocesses traceback when interrupting
closed
When a subprocess hangs in `filter` or `map`, one should be able to get the subprocess' traceback when interrupting the main process. Right now it shows nothing. To do so I `.get()` the subprocesses async results even the main process is stopped with e.g. `KeyboardInterrupt`. I added a timeout in case the subprocess...
true
2023-04-24T10:34:03Z
2023-04-26T16:04:42Z
2023-04-26T15:54:44Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5784
2023-04-26T15:54:44Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5784
true
[ "_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...
1,679,664,393
5,783
Offset overflow while doing regex on a text column
open
### Describe the bug `ArrowInvalid: offset overflow while concatenating arrays` Same error as [here](https://github.com/huggingface/datasets/issues/615) ### Steps to reproduce the bug Steps to reproduce: (dataset is a few GB big so try in colab maybe) ``` import datasets import re ds = datasets.lo...
true
2023-04-22T19:12:03Z
2023-09-22T06:44:07Z
null
nishanthcgit
NONE
null
null
7
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5783
false
[ "Hi! This looks like an Arrow bug, but it can be avoided by reducing the `writer_batch_size`.\r\n\r\n(`ds = ds.map(get_text_caption, writer_batch_size=100)` in Colab runs without issues)\r\n", "@mariosasko I ran into this problem with load_dataset. What should I do", "@AisingioroHao0 You can also pass the `wri...
1,679,622,367
5,782
Support for various audio-loading backends instead of always relying on SoundFile
closed
### Feature request Introduce an option to select from a variety of audio-loading backends rather than solely relying on the SoundFile library. For instance, if the ffmpeg library is installed, it can serve as a fallback loading option. ### Motivation - The SoundFile library, used in [features/audio.py](https://gith...
true
2023-04-22T17:09:25Z
2023-05-10T20:23:04Z
2023-05-10T20:23:04Z
BoringDonut
NONE
null
null
3
2
1
1
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5782
false
[ "Hi! \r\n\r\nYou can use `set_transform`/`with_transform` to define a custom decoding for audio formats not supported by `soundfile`:\r\n```python\r\naudio_dataset_amr = Dataset.from_dict({\"audio\": [\"audio_samples/audio.amr\"]})\r\n\r\ndef decode_audio(batch):\r\n batch[\"audio\"] = [read_ffmpeg(audio_path) f...
1,679,580,460
5,781
Error using `load_datasets`
closed
### Describe the bug I tried to load a dataset using the `datasets` library in a conda jupyter notebook and got the below error. ``` ImportError: dlopen(/Users/gilbertyoung/miniforge3/envs/review_sense/lib/python3.8/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-38-darwin.so, 0x0002): Library not ...
true
2023-04-22T15:10:44Z
2023-05-02T23:41:25Z
2023-05-02T23:41:25Z
gjyoungjr
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5781
false
[ "It looks like an issue with your installation of scipy, can you try reinstalling it ?", "Sorry for the late reply, but that worked @lhoestq . Thanks for the assist." ]
1,679,367,149
5,780
TypeError: 'NoneType' object does not support item assignment
closed
command: ``` def load_datasets(formats, data_dir=datadir, data_files=datafile): dataset = load_dataset(formats, data_dir=datadir, data_files=datafile, split=split, streaming=True, **kwargs) return dataset raw_datasets = DatasetDict() raw_datasets["train"] = load_datasets(“csv”, args.datadir, "train.csv", s...
true
2023-04-22T06:22:43Z
2023-04-23T08:49:18Z
2023-04-23T08:49:18Z
ben-8878
NONE
null
null
0
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5780
false
[]
1,678,669,865
5,779
Call fs.makedirs in save_to_disk
closed
We need to call `fs.makedirs` when saving a dataset using `save_to_disk`, because some fs implementations have actual directories (S3 and others don't) Close https://github.com/huggingface/datasets/issues/5775
true
2023-04-21T15:04:28Z
2023-04-26T12:20:01Z
2023-04-26T12:11:15Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5779
2023-04-26T12:11:15Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5779
true
[ "_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...
1,678,125,951
5,778
Schrödinger's dataset_dict
closed
### Describe the bug If you use load_dataset('json', data_files="path/test.json"), it will return DatasetDict({train:...}). And if you use load_dataset("path"), it will return DatasetDict({test:...}). Why can't the output behavior be unified? ### Steps to reproduce the bug as description above. ### Expected b...
true
2023-04-21T08:38:12Z
2023-07-24T15:15:14Z
2023-07-24T15:15:14Z
liujuncn
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5778
false
[ "Hi ! Passing `data_files=\"path/test.json\"` is equivalent to `data_files={\"train\": [\"path/test.json\"]}`, that's why you end up with a train split. If you don't pass `data_files=`, then split names are inferred from the data files names" ]
1,677,655,969
5,777
datasets.load_dataset("code_search_net", "python") : NotADirectoryError: [Errno 20] Not a directory
closed
### Describe the bug While checking out the [tokenizer tutorial](https://huggingface.co/course/chapter6/2?fw=pt), i noticed getting an error while initially downloading the python dataset used in the examples. The [collab with the error is here](https://colab.research.google.com/github/huggingface/notebooks/blob/ma...
true
2023-04-21T02:08:07Z
2023-06-05T05:49:52Z
2023-05-11T11:51:56Z
ghost
NONE
null
null
6
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5777
false
[ "Note:\r\nI listed the datasets and grepped around to find what appears to be an alternative source for this:\r\n\r\nraw_datasets = load_dataset(\"espejelomar/code_search_net_python_10000_examples\", \"python\")", "Thanks for reporting, @jason-brian-anderson.\r\n\r\nYes, this is a known issue: the [CodeSearchNet]...
1,677,116,100
5,776
Use Pandas' `read_json` in the JSON builder
open
Instead of PyArrow's `read_json`, we should use `pd.read_json` in the JSON builder for consistency with the CSV and SQL builders (e.g., to address https://github.com/huggingface/datasets/issues/5725). In Pandas2.0, to get the same performance, we can set the `engine` to "pyarrow". The issue is that Colab still doesn...
true
2023-04-20T17:15:49Z
2023-04-20T17:15:49Z
null
mariosasko
COLLABORATOR
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5776
false
[]
1,677,089,901
5,775
ArrowDataset.save_to_disk lost some logic of remote
closed
### Describe the bug https://github.com/huggingface/datasets/blob/e7ce0ac60c7efc10886471932854903a7c19f172/src/datasets/arrow_dataset.py#L1371 Here is the bug point, when I want to save from a `DatasetDict` class and the items of the instance is like `[('train', Dataset({features: ..., num_rows: ...}))]` , there ...
true
2023-04-20T16:58:01Z
2023-04-26T12:11:36Z
2023-04-26T12:11:17Z
Zoupers
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5775
false
[ "We just fixed this on `main` and will do a new release soon :)" ]