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,596,900,532
5,568
dataset.to_iterable_dataset() loses useful info like dataset features
closed
### Describe the bug Hello, I like the new `to_iterable_dataset` feature but I noticed something that seems to be missing. When using `to_iterable_dataset` to transform your map style dataset into iterable dataset, you lose valuable metadata like the features. These metadata are useful if you want to interleav...
true
2023-02-23T13:45:33Z
2023-02-24T13:22:36Z
2023-02-24T13:22:36Z
bruno-hays
CONTRIBUTOR
null
null
3
0
0
0
null
false
[ "enhancement", "good first issue" ]
https://github.com/huggingface/datasets/issues/5568
false
[ "Hi ! Oh good catch. I think the features should be passed to `IterableDataset.from_generator()` in `to_iterable_dataset()` indeed.\r\n\r\nSetting this as a good first issue if someone would like to contribute, otherwise we can take care of it :)", "#self-assign", "seems like the feature parameter is missing fr...
1,595,916,674
5,566
Directly reading parquet files in a s3 bucket from the load_dataset method
open
### Feature request Right now, we have to read the get the parquet file to the local storage. So having ability to read given the bucket directly address would be benificial ### Motivation In a production set up, this feature can help us a lot. So we do not need move training datafiles in between storage. ### Yo...
true
2023-02-22T22:13:40Z
2023-02-23T11:03:29Z
null
shamanez
NONE
null
null
1
0
0
0
null
false
[ "duplicate", "enhancement" ]
https://github.com/huggingface/datasets/issues/5566
false
[ "Hi ! I think is in the scope of this other issue: to https://github.com/huggingface/datasets/issues/5281 " ]
1,595,281,752
5,565
Add writer_batch_size for ArrowBasedBuilder
closed
This way we can control the size of the record_batches/row_groups of arrow/parquet files. This can be useful for `datasets-server` to keep control of the row groups size which can affect random access performance for audio/image/video datasets Right now having 1,000 examples per row group cause some image dataset...
true
2023-02-22T15:09:30Z
2023-03-10T13:53:03Z
2023-03-10T13:45:43Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5565
2023-03-10T13:45:43Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5565
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,595,064,698
5,564
Set dev version
closed
true
2023-02-22T13:00:09Z
2023-02-22T13:09:26Z
2023-02-22T13:00:25Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5564
2023-02-22T13:00:25Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5564
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5564). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
1,595,049,025
5,563
Release: 2.10.0
closed
true
2023-02-22T12:48:52Z
2023-02-22T13:05:55Z
2023-02-22T12:56:48Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5563
2023-02-22T12:56:48Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5563
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,594,625,539
5,562
Update csv.py
closed
Removed mangle_dup_cols=True from BuilderConfig. It triggered following deprecation warning: /usr/local/lib/python3.8/dist-packages/datasets/download/streaming_download_manager.py:776: FutureWarning: the 'mangle_dupe_cols' keyword is deprecated and will be removed in a future version. Please take steps to stop the ...
true
2023-02-22T07:56:10Z
2023-02-23T11:07:49Z
2023-02-23T11:00:58Z
xdoubleu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5562
2023-02-23T11:00:58Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5562
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Removed it :)", "Changed it :)", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_format...
1,593,862,388
5,561
Add pre-commit config yaml file to enable automatic code formatting
closed
@huggingface/datasets do you think it would be useful? Motivation - sometimes PRs are like 30% "fix: style" commits :) If so - I need to double check the config but for me locally it works as expected.
true
2023-02-21T17:35:07Z
2023-02-28T15:37:22Z
2023-02-23T18:23:29Z
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5561
2023-02-23T18:23:29Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5561
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Better yet have someone enable pre-commit CI https://pre-commit.ci/ and it will apply the pre-commit fixes to the PR automatically as an additional commit.", "@Skylion007 hi! I agree with @nateraw here, I'd better not force to use ...
1,593,809,978
5,560
Ensure last tqdm update in `map`
closed
This PR modifies `map` to: * ensure the TQDM bar gets the last progress update * when a map function fails, avoid throwing a chained exception in the single-proc mode
true
2023-02-21T16:56:17Z
2023-02-21T18:26:23Z
2023-02-21T18:19:09Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5560
2023-02-21T18:19:09Z
10
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5560
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,593,676,489
5,559
Fix map suffix_template
closed
#5455 introduced a small bug that lead `map` to ignore the `suffix_template` argument and not put suffixes to cached files in multiprocessing. I fixed this and also improved a few things: - regarding logging: "Loading cached processed dataset" is now logged only once even in multiprocessing (it used to be logged ...
true
2023-02-21T15:26:26Z
2023-02-21T17:21:37Z
2023-02-21T17:14:29Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5559
2023-02-21T17:14:29Z
4
2
0
2
false
false
[]
https://github.com/huggingface/datasets/pull/5559
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,593,655,815
5,558
Remove instructions for `ffmpeg` system package installation on Colab
closed
Colab now has Ubuntu 20.04 which already has `ffmpeg` of required (>4) version.
true
2023-02-21T15:13:36Z
2023-03-01T13:46:04Z
2023-02-23T13:50:27Z
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5558
2023-02-23T13:50:27Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5558
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,593,545,324
5,557
Add filter desc
closed
Otherwise it would show a `Map` progress bar, since it uses `map` under the hood
true
2023-02-21T14:04:42Z
2023-02-21T14:19:54Z
2023-02-21T14:12:39Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5557
2023-02-21T14:12:39Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5557
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,593,246,936
5,556
Use default audio resampling type
closed
...instead of relying on the optional librosa dependency `resampy`. It was only used for `_decode_non_mp3_file_like` anyway and not for the other ones - removing it fixes consistency between decoding methods (except torchaudio decoding) Therefore I think it is a better solution than adding `resampy` as a dependen...
true
2023-02-21T10:45:50Z
2023-02-21T12:49:50Z
2023-02-21T12:42:52Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5556
2023-02-21T12:42:52Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5556
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,592,469,938
5,555
`.shuffle` throwing error `ValueError: Protocol not known: parent`
open
### Describe the bug ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In [16], line 1 ----> 1 train_dataset = train_dataset.shuffle() File /opt/conda/envs/pytorch/lib/python3.9/site-packages/dataset...
true
2023-02-20T21:33:45Z
2023-02-27T09:23:34Z
null
prabhakar267
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5555
false
[ "Hi ! The indices mapping is written in the same cachedirectory as your dataset.\r\n\r\nCan you run this to show your current cache directory ?\r\n```python\r\nprint(train_dataset.cache_files)\r\n```", "```\r\n[{'filename': '.../train/dataset.arrow'}, {'filename': '.../train/dataset.arrow'}]\r\n```\r\n\r\nThese a...
1,592,285,062
5,554
Add resampy dep
closed
In librosa 0.10 they removed the `resmpy` dependency and set it to optional. However it is necessary for resampling. I added it to the "audio" extra dependencies.
true
2023-02-20T18:15:43Z
2023-09-24T10:07:29Z
2023-02-21T12:43:38Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5554
null
5
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/5554
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,592,236,998
5,553
improved message error row formatting
closed
Solves #5539
true
2023-02-20T17:29:14Z
2023-02-21T13:08:25Z
2023-02-21T12:58:12Z
Plutone11011
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5553
2023-02-21T12:58:12Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5553
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,592,186,703
5,552
Make tiktoken tokenizers hashable
closed
Fix for https://discord.com/channels/879548962464493619/1075729627546406912/1075729627546406912
true
2023-02-20T16:50:09Z
2023-02-21T13:20:42Z
2023-02-21T13:13:05Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5552
2023-02-21T13:13:05Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5552
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,592,140,836
5,551
Suggest scikit-learn instead of sklearn
closed
This is kinda unimportant fix but, the suggested `pip install sklearn` does not work. The current error message if sklearn is not installed: ``` ImportError: To be able to use [dataset name], you need to install the following dependency: sklearn. Please install it using 'pip install sklearn' for instance. ```
true
2023-02-20T16:16:57Z
2023-02-21T13:27:57Z
2023-02-21T13:21:07Z
osbm
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5551
2023-02-21T13:21:07Z
4
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/5551
true
[ "good catch!", "_The documentation is not available anymore as the PR was closed or merged._", "The test fail is unrelated to this PR and fixed on `main` - merging :)", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: ...
1,591,409,475
5,550
Resolve four broken refs in the docs
closed
Hello! ## Pull Request overview * Resolve 4 broken references in the docs ## The problems Two broken references [here](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.class_encode_column): ![image](https://user-images.githubusercontent.com/37621491/220056232-366b64dc-33c9-...
true
2023-02-20T08:52:11Z
2023-02-20T15:16:13Z
2023-02-20T15:09:13Z
tomaarsen
MEMBER
https://github.com/huggingface/datasets/pull/5550
2023-02-20T15:09:13Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5550
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "See the resolved changes [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5550/en/package_reference/main_classes#datasets.Dataset.class_encode_column), [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5550/en/pa...
1,590,836,848
5,549
Apply ruff flake8-comprehension checks
closed
Fix #5548 Apply ruff's flake8-comprehension checks for better performance, and more readable code.
true
2023-02-19T20:09:28Z
2023-02-23T14:06:39Z
2023-02-23T13:59:39Z
Skylion007
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5549
2023-02-23T13:59:39Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5549
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,590,835,479
5,548
Apply flake8-comprehensions to codebase
closed
### Feature request Apply ruff flake8 comprehension checks to codebase. ### Motivation This should strictly improve the performance / readability of the codebase by removing unnecessary iteration, function calls, etc. This should generate better Python bytecode which should strictly improve performance. I alread...
true
2023-02-19T20:05:38Z
2023-02-23T13:59:41Z
2023-02-23T13:59:41Z
Skylion007
CONTRIBUTOR
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5548
false
[]
1,590,468,200
5,547
Add JAX device selection when formatting
closed
## What's in this PR? After exploring for a while the JAX integration in 🤗`datasets`, I found out that, even though JAX prioritizes the TPU and GPU as the default device when available, the `JaxFormatter` doesn't let you specify the device where you want to place the `jax.Array`s in case you don't want to rely on J...
true
2023-02-18T20:57:40Z
2023-02-21T16:10:55Z
2023-02-21T16:04:03Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5547
2023-02-21T16:04:03Z
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5547
true
[ "The code below was throwing a warning:\r\n\r\n```python\r\nclass JaxFormatter(Formatter[Mapping, \"jax.Array\", Mapping]):\r\n def __init__(self, features=None, device=None, **jnp_array_kwargs):\r\n super().__init__(features=features)\r\n import jax\r\n from jaxlib.xla_extension import Devi...
1,590,346,349
5,546
Downloaded datasets do not cache at $HF_HOME
closed
### Describe the bug In the huggingface course (https://huggingface.co/course/chapter3/2?fw=pt) it said that if we set HF_HOME, downloaded datasets would be cached at specified address but it does not. downloaded models from checkpoint names are downloaded and cached at HF_HOME but this is not the case for datasets, t...
true
2023-02-18T13:30:35Z
2023-07-24T14:22:43Z
2023-07-24T14:22:43Z
ErfanMoosaviMonazzah
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5546
false
[ "Hi ! Can you make sure you set `HF_HOME` before importing `datasets` ?\r\n\r\nThen you can print\r\n```python\r\nprint(datasets.config.HF_CACHE_HOME)\r\nprint(datasets.config.HF_DATASETS_CACHE)\r\n```" ]
1,590,315,972
5,545
Added return methods for URL-references to the pushed dataset
open
Hi, I was missing the ability to easily open the pushed dataset and it seemed like a quick fix. Maybe we also want to log this info somewhere, but let me know if I need to add that too. Cheers, David
true
2023-02-18T11:26:25Z
2023-12-18T16:57:56Z
null
davidberenstein1957
NONE
https://github.com/huggingface/datasets/pull/5545
null
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5545
true
[ "Hi ! Maybe we'd need to align with `transformers` and other libraries that implement `push_to_hub` to agree on what it should return.\r\n\r\ne.g. in `transformers` the typing says it returns a string, but in practice it returns a `CommitInfo`.\r\n\r\nTherefore I'd not add an output to `push_to_hub` here unless we ...
1,588,951,379
5,543
the pile datasets url seems to change back
closed
### Describe the bug in #3627, the host url of the pile dataset became `https://mystic.the-eye.eu`. Now the new url is broken, but `https://the-eye.eu` seems to work again. ### Steps to reproduce the bug ```python3 from datasets import load_dataset dataset = load_dataset("bookcorpusopen") ``` shows ```python3 ...
true
2023-02-17T08:40:11Z
2023-02-21T06:37:00Z
2023-02-20T08:41:33Z
wjfwzzc
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5543
false
[ "Thanks for reporting, @wjfwzzc.\r\n\r\nI am transferring this issue to the corresponding dataset on the Hub: https://huggingface.co/datasets/bookcorpusopen/discussions/1", "Thank you. All fixes are done:\r\n- [x] https://huggingface.co/datasets/bookcorpusopen/discussions/2\r\n- [x] https://huggingface.co/dataset...
1,588,633,724
5,542
Avoid saving sparse ChunkedArrays in pyarrow tables
closed
Fixes https://github.com/huggingface/datasets/issues/5541
true
2023-02-17T01:52:38Z
2023-02-17T19:20:49Z
2023-02-17T11:12:32Z
marioga
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5542
2023-02-17T11:12:32Z
2
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5542
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,588,633,555
5,541
Flattening indices in selected datasets is extremely inefficient
closed
### Describe the bug If we perform a `select` (or `shuffle`, `train_test_split`, etc.) operation on a dataset , we end up with a dataset with an `indices_table`. Currently, flattening such dataset consumes a lot of memory and the resulting flat dataset contains ChunkedArrays with as many chunks as there are rows. Thi...
true
2023-02-17T01:52:24Z
2023-02-22T13:15:20Z
2023-02-17T11:12:33Z
marioga
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5541
false
[ "Running the script above on the branch https://github.com/huggingface/datasets/pull/5542 results in the expected behaviour:\r\n```\r\nNum chunks for original ds: 1\r\nOriginal ds save/load\r\nsave_to_disk -- RAM memory used: 0.671875 MB -- Total time: 0.255265 s\r\nload_from_disk -- RAM memory used: 42.796875 MB -...
1,588,438,344
5,540
Tutorial for creating a dataset
closed
A tutorial for creating datasets based on the folder-based builders and `from_dict` and `from_generator` methods. I've also mentioned loading scripts as a next step, but I think we should keep the tutorial focused on the low-code methods. Let me know what you think! 🙂
true
2023-02-16T22:09:35Z
2023-02-17T18:50:46Z
2023-02-17T18:41:28Z
stevhliu
MEMBER
https://github.com/huggingface/datasets/pull/5540
2023-02-17T18:41:28Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5540
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,587,970,083
5,539
IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number
closed
### Describe the bug When dataset contains a 0-dim tensor, formatting.py raises a following error and fails. ```bash Traceback (most recent call last): File "<path>/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 501, in format_row return _unnest(formatted_batch) File "<path>/lib/py...
true
2023-02-16T16:08:51Z
2023-02-22T10:30:30Z
2023-02-21T13:03:57Z
aalbersk
NONE
null
null
4
0
0
0
null
false
[ "good first issue" ]
https://github.com/huggingface/datasets/issues/5539
false
[ "Hi! The `set_transform` does not apply a custom formatting transform on a single example but the entire batch, so the fixed version of your transform would look as follows:\r\n```python\r\nfrom datasets import load_dataset\r\nimport torch\r\n\r\ndataset = load_dataset(\"lambdalabs/pokemon-blip-captions\", split='t...
1,587,732,596
5,538
load_dataset in seaborn is not working for me. getting this error.
closed
TimeoutError Traceback (most recent call last) ~\anaconda3\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args) 1345 try: -> 1346 h.request(req.get_method(), req.selector, req.data, headers, 1347 encode_chu...
true
2023-02-16T14:01:58Z
2023-02-16T14:44:36Z
2023-02-16T14:44:36Z
reemaranibarik
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5538
false
[ "Hi! `seaborn`'s `load_dataset` pulls datasets from [here](https://github.com/mwaskom/seaborn-data) and not from our Hub, so this issue is not related to our library in any way and should be reported in their repo instead." ]
1,587,567,464
5,537
Increase speed of data files resolution
closed
Certain datasets like `bigcode/the-stack-dedup` have so many files that loading them takes forever right from the data files resolution step. `datasets` uses file patterns to check the structure of the repository but it takes too much time to iterate over and over again on all the data files. This comes from `res...
true
2023-02-16T12:11:45Z
2023-12-15T13:12:31Z
2023-12-15T13:12:31Z
lhoestq
MEMBER
null
null
5
0
0
0
null
false
[ "enhancement", "good second issue" ]
https://github.com/huggingface/datasets/issues/5537
false
[ "#self-assign", "You were right, if `self.dir_cache` is not None in glob, it is exactly the same as what is returned by find, at least for all the tests we have, and some extended evaluation I did across a random sample of about 1000 datasets. \r\n\r\nThanks for the nice hints, and let me know if this is not exac...
1,586,930,643
5,536
Failure to hash function when using .map()
closed
### Describe the bug _Parameter 'function'=<function process at 0x7f1ec4388af0> of the transform datasets.arrow_dataset.Dataset.\_map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and ca...
true
2023-02-16T03:12:07Z
2023-09-08T21:06:01Z
2023-02-16T14:56:41Z
venzen
NONE
null
null
14
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5536
false
[ "Hi ! `enc` is not hashable:\r\n```python\r\nimport tiktoken\r\nfrom datasets.fingerprint import Hasher\r\n\r\nenc = tiktoken.get_encoding(\"gpt2\")\r\nHasher.hash(enc)\r\n# raises TypeError: cannot pickle 'builtins.CoreBPE' object\r\n```\r\nIt happens because it's not picklable, and because of that it's not possib...
1,586,520,369
5,535
Add JAX-formatting documentation
closed
## What's in this PR? As a follow-up of #5522, I've created this entry in the documentation to explain how to use `.with_format("jax")` and why is it useful. @lhoestq Feel free to drop any feedback and/or suggestion, as probably more useful features can be included there!
true
2023-02-15T20:35:11Z
2023-02-20T10:39:42Z
2023-02-20T10:32:39Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5535
2023-02-20T10:32:39Z
9
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5535
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "> Awesome thank you !\r\n> \r\n> Could you also explain how to use certain types like ClassLabel, Image or Audio with jax ? You can get a lot of inspiration from the \"Other feature types\" section in the [PyTorch page](https://huggi...
1,586,177,862
5,534
map() breaks at certain dataset size when using Array3D
open
### Describe the bug `map()` magically breaks when using a `Array3D` feature and mapping it. I created a very simple dummy dataset (see below). When filtering it down to 95 elements I can apply map, but it breaks when filtering it down to just 96 entries with the following exception: ``` Traceback (most recent cal...
true
2023-02-15T16:34:25Z
2023-03-03T16:31:33Z
null
ArneBinder
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5534
false
[ "Hi! This code works for me locally or in Colab. What's the output of `python -c \"import pyarrow as pa; print(pa.__version__)\"` when you run it inside your environment?", "Thanks for looking into this!\r\nThe output of `python -c \"import pyarrow as pa; print(pa.__version__)\"` is:\r\n```\r\n11.0.0\r\n```\r\n\...
1,585,885,871
5,533
Add reduce function
closed
This PR closes #5496 . I tried to imitate the `reduce`-method from `functools`, i.e. the function input must be a binary operation. I assume that the input type has an empty element, i.e. `input_type()` is defined, as the acumulant is instantiated as this object - im not sure that is this a reasonable assumption? ...
true
2023-02-15T13:44:01Z
2024-11-25T14:33:27Z
2023-02-28T14:46:12Z
AJDERS
NONE
https://github.com/huggingface/datasets/pull/5533
null
21
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5533
true
[ "I agree that it would be a good idea to introduce a `combiner` argument in another PR.\r\n\r\nI did take quite a lot of inspiration from the implementation of `map`, but it did not seem obvious how to resuse `map` for the implementation. Do you have any suggestions, i could give a try?\r\n\r\nThose were exactly m...
1,584,505,128
5,532
train_test_split in arrow_dataset does not ensure to keep single classes in test set
closed
### Describe the bug When I have a dataset with very few (e.g. 1) examples per class and I call the train_test_split function on it, sometimes the single class will be in the test set. thus will never be considered for training. ### Steps to reproduce the bug ``` import numpy as np from datasets import Dataset ...
true
2023-02-14T16:52:29Z
2023-02-15T16:09:19Z
2023-02-15T16:09:19Z
Ulipenitz
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5532
false
[ "Hi! You can get this behavior by specifying `stratify_by_column=\"label\"` in `train_test_split`.\r\n\r\nThis is the full example:\r\n```python\r\nimport numpy as np\r\nfrom datasets import Dataset, ClassLabel\r\n\r\ndata = [\r\n {'label': 0, 'text': \"example1\"},\r\n {'label': 1, 'text': \"example2\"},\r\n...
1,584,387,276
5,531
Invalid Arrow data from JSONL
open
This code fails: ```python from datasets import Dataset ds = Dataset.from_json(path_to_file) ds.data.validate() ``` raises ```python ArrowInvalid: Column 2: In chunk 1: Invalid: Struct child array #3 invalid: Invalid: Length spanned by list offsets (4064) larger than values array (length 4063) ``` This ...
true
2023-02-14T15:39:49Z
2023-02-14T15:46:09Z
null
lhoestq
MEMBER
null
null
0
1
0
1
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5531
false
[]
1,582,938,241
5,530
Add missing license in `NumpyFormatter`
closed
## What's in this PR? As discussed with @lhoestq in https://github.com/huggingface/datasets/pull/5522, the license for `NumpyFormatter` at `datasets/formatting/np_formatter.py` was missing, but present on the rest of the `formatting/*.py` files. So this PR is basically to include it there.
true
2023-02-13T19:33:23Z
2023-02-14T14:40:41Z
2023-02-14T12:23:58Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5530
2023-02-14T12:23:58Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5530
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,582,501,233
5,529
Fix `datasets.load_from_disk`, `DatasetDict.load_from_disk` and `Dataset.load_from_disk`
closed
## What's in this PR? After playing around a little bit with 🤗`datasets` in Google Cloud Storage (GCS), I found out some things that should be fixed IMO in the code: * `datasets.load_from_disk` is not checking whether `state.json` is there too when trying to load a `Dataset`, just `dataset_info.json` is checked ...
true
2023-02-13T14:54:55Z
2023-02-23T18:14:32Z
2023-02-23T18:05:26Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5529
2023-02-23T18:05:26Z
12
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5529
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Hmm, should this also be updated in `Dataset.load_from_disk` and `DatasetDict.load_from_disk`? https://github.com/huggingface/datasets/pull/5466 As there the paths are joined using `Path(..., ...)` and it won't work on Windows OS acc...
1,582,195,085
5,528
Push to hub in a pull request
open
Fixes #5492. Introduce new kwarg `create_pr` in `push_to_hub`, which is passed to `HFapi.upload_file`.
true
2023-02-13T11:43:47Z
2023-10-06T21:58:02Z
null
AJDERS
NONE
https://github.com/huggingface/datasets/pull/5528
null
11
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5528
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5528). All of your documentation changes will be reflected on that endpoint.", "It seems that the parameter `create_pr` is available for [`0.8.0`](https://huggingface.co/docs/huggingface_hub/v0.8.1/en/package_reference/hf_api#h...
1,581,228,531
5,527
Fix benchmarks CI - pin protobuf
closed
fix https://github.com/huggingface/datasets/actions/runs/4156059127/jobs/7189576331
true
2023-02-12T11:51:25Z
2023-02-13T10:29:03Z
2023-02-13T09:24:16Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5527
2023-02-13T09:24:16Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5527
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,580,488,133
5,526
Allow loading/saving of FAISS index using fsspec
closed
Fixes #5428 Allow loading/saving of FAISS index using fsspec: 1. Simply use BufferedIOWriter/Reader to Read/Write indices on fsspec stream. 2. Needed `mockfs` in the test, so I took it out of the `TestCase`. Let me know if that makes sense. I can work on the documentation once the code changes are approved.
true
2023-02-10T23:37:14Z
2023-03-27T15:26:46Z
2023-03-27T15:18:20Z
Dref360
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5526
2023-03-27T15:18:20Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5526
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "Thanks for the quick review! I updated the code with your suggestion", "Thanks for the quick review @albertvillanova! I updated the code with your suggestions", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n...
1,580,342,729
5,525
TypeError: Couldn't cast array of type string to null
closed
### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned error. I alredy tried reseting the shorter strings...
true
2023-02-10T21:12:36Z
2023-02-14T17:41:08Z
2023-02-14T09:35:49Z
TJ-Solergibert
NONE
null
null
6
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5525
false
[ "Thanks for reporting, @TJ-Solergibert.\r\n\r\nWe cannot access your Colab notebook: `There was an error loading this notebook. Ensure that the file is accessible and try again.`\r\nCould you please make it publicly accessible?\r\n", "I swear it's public, I've checked the settings and I've been able to open it in...
1,580,219,454
5,524
[INVALID PR]
closed
Hi to whoever is reading this! 🤗 ## What's in this PR? ~~Basically, I've removed the 🤗`datasets` installation as `python -m pip install ".[quality]" in the `check_code_quality` job in `.github/workflows/ci.yaml`, as we don't need to install the whole package to run the CI, unless that's done on purpose e.g. to ...
true
2023-02-10T19:35:50Z
2023-02-10T19:51:45Z
2023-02-10T19:49:12Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5524
null
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5524
true
[ "_The documentation is not available anymore as the PR was closed or merged._" ]
1,580,193,015
5,523
Checking that split name is correct happens only after the data is downloaded
open
### Describe the bug Verification of split names (=indexing data by split) happens after downloading the data. So when the split name is incorrect, users learn about that only after the data is fully downloaded, for large datasets it might take a lot of time. ### Steps to reproduce the bug Load any dataset with rand...
true
2023-02-10T19:13:03Z
2023-02-10T19:14:50Z
null
polinaeterna
CONTRIBUTOR
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/5523
false
[]
1,580,183,124
5,522
Minor changes in JAX-formatting docstrings & type-hints
closed
Hi to whoever is reading this! 🤗 ## What's in this PR? I was exploring the code regarding the `JaxFormatter` implemented in 🤗`datasets`, and found some things that IMO could be changed. Those are mainly regarding the docstrings and the type-hints based on `jax`'s 0.4.1 release where `jax.Array` was introduced a...
true
2023-02-10T19:05:00Z
2023-02-15T14:48:27Z
2023-02-15T13:19:06Z
alvarobartt
MEMBER
https://github.com/huggingface/datasets/pull/5522
2023-02-15T13:19:06Z
16
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5522
true
[ "P.S. For more context, I'm currently exploring the integration of 🤗`datasets` with JAX, so in case you need any help or want me to try something specific just let me know! (`jnp.asarray`/`jnp.array(..., copy=False)` still no zero-copy 😭)", "_The documentation is not available anymore as the PR was closed or me...
1,578,418,289
5,521
Fix bug when casting empty array to class labels
closed
Fix https://github.com/huggingface/datasets/issues/5520.
true
2023-02-09T18:47:59Z
2023-02-13T20:40:48Z
2023-02-12T11:17:17Z
marioga
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5521
2023-02-12T11:17:17Z
1
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/5521
true
[ "_The documentation is not available anymore as the PR was closed or merged._" ]
1,578,417,074
5,520
ClassLabel.cast_storage raises TypeError when called on an empty IntegerArray
closed
### Describe the bug `ClassLabel.cast_storage` raises `TypeError` when called on an empty `IntegerArray`. ### Steps to reproduce the bug Minimal steps: ```python import pyarrow as pa from datasets import ClassLabel ClassLabel(names=['foo', 'bar']).cast_storage(pa.array([], pa.int64())) ``` In practice, thi...
true
2023-02-09T18:46:52Z
2023-02-12T11:17:18Z
2023-02-12T11:17:18Z
marioga
CONTRIBUTOR
null
null
0
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5520
false
[]
1,578,341,785
5,519
Lint code with `ruff`
closed
EDIT: Use `ruff` for linting instead of `isort` and `flake8` ~~`black`~~ to be consistent with [`transformers`](https://github.com/huggingface/transformers/pull/21480) and [`hfh`](https://github.com/huggingface/huggingface_hub/pull/1323). TODO: - [x] ~Merge the community contributors' PR to avoid having to run `ma...
true
2023-02-09T17:50:21Z
2024-06-01T15:35:02Z
2023-02-14T16:18:38Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5519
2023-02-14T16:18:38Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5519
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,578,203,962
5,518
Remove py.typed
closed
Fix https://github.com/huggingface/datasets/issues/3841
true
2023-02-09T16:22:29Z
2023-02-13T13:55:49Z
2023-02-13T13:48:40Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/5518
2023-02-13T13:48:40Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5518
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,577,976,608
5,517
`with_format("numpy")` silently downcasts float64 to float32 features
open
### Describe the bug When I create a dataset with a `float64` feature, then apply numpy formatting the returned numpy arrays are silently downcasted to `float32`. ### Steps to reproduce the bug ```python import datasets dataset = datasets.Dataset.from_dict({'a': [1.0, 2.0, 3.0]}).with_format("numpy") print(...
true
2023-02-09T14:18:00Z
2024-01-18T08:42:17Z
null
ernestum
NONE
null
null
13
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5517
false
[ "Hi! This behavior stems from these lines:\r\n\r\nhttps://github.com/huggingface/datasets/blob/b065547654efa0ec633cf373ac1512884c68b2e1/src/datasets/formatting/np_formatter.py#L45-L46\r\n\r\nI agree we should preserve the original type whenever possible and downcast explicitly with a warning.\r\n\r\n@lhoestq Do you...
1,577,661,640
5,516
Reload features from Parquet metadata
closed
Resolves #5482. Attaches feature metadata to parquet files serialised using `Dataset.to_parquet`. This allows retrieving data with "rich" feature types (e.g., `datasets.features.image.Image` or `datasets.features.audio.Audio`) from parquet files without cumbersome casting (for an example, see #5482). @lhoest...
true
2023-02-09T10:52:15Z
2023-02-12T16:00:00Z
2023-02-12T15:57:01Z
MFreidank
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5516
2023-02-12T15:57:01Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5516
true
[ "Thanks a lot for your help @lhoestq. I've simplified what turned out to be a simple fix and added the unit test.\r\n\r\nDoes this look ready to be merged or is there anything I'm still missing?", "Cool ! I think you just need to remove the unused import in `io/parquet.py`\r\n```\r\nsrc/datasets/io/parquet.py:4:1...
1,577,590,611
5,515
Unify `load_from_cache_file` type and logic
closed
* Updating type annotations for #`load_from_cache_file` * Added logic for cache checking if needed * Updated documentation following the wording of `Dataset.map`
true
2023-02-09T10:04:46Z
2023-02-14T15:38:13Z
2023-02-14T14:26:42Z
HallerPatrick
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5515
2023-02-14T14:26:42Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5515
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "The commit also includes the changes to the `DatasetDict` methods or am I missing something?", "Oh, indeed. Feel free to mark the PR as \"Ready for review\" then.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0...
1,576,453,837
5,514
Improve inconsistency of `Dataset.map` interface for `load_from_cache_file`
closed
### Feature request 1. Replace the `load_from_cache_file` default value to `True`. 2. Remove or alter checks from `is_caching_enabled` logic. ### Motivation I stumbled over an inconsistency in the `Dataset.map` interface. The documentation (and source) states for the parameter `load_from_cache_file`: ``` load_...
true
2023-02-08T16:40:44Z
2023-02-14T14:26:44Z
2023-02-14T14:26:44Z
HallerPatrick
CONTRIBUTOR
null
null
4
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5514
false
[ "Hi, thanks for noticing this! We can't just remove the cache control as this allows us to control where the arrow files generated by the ops are written (cached on disk if enabled or a temporary directory if disabled). The right way to address this inconsistency would be by having `load_from_cache_file=None` by de...
1,576,300,803
5,513
Some functions use a param named `type` shouldn't that be avoided since it's a Python reserved name?
closed
Hi @mariosasko, @lhoestq, or whoever reads this! :) After going through `ArrowDataset.set_format` I found out that the `type` param is actually named `type` which is a Python reserved name as you may already know, shouldn't that be renamed to `format_type` before the 3.0.0 is released? Just wanted to get your inp...
true
2023-02-08T15:13:46Z
2023-07-24T16:02:18Z
2023-07-24T14:27:59Z
alvarobartt
MEMBER
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5513
false
[ "Hi! Let's not do this - renaming it would be a breaking change, and going through the deprecation cycle is only worth it if it improves user experience.", "Hi @mariosasko, ok it makes sense. Anyway, don't you think it's worth it at some point to start a deprecation cycle e.g. `fs` in `load_from_disk`? It doesn't...
1,576,142,432
5,512
Speed up batched PyTorch DataLoader
closed
I implemented `__getitems__` to speed up batched data loading in PyTorch close https://github.com/huggingface/datasets/issues/5505
true
2023-02-08T13:38:59Z
2023-02-19T18:35:09Z
2023-02-19T18:27:29Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5512
2023-02-19T18:27:29Z
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5512
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,575,851,768
5,511
Creating a dummy dataset from a bigger one
closed
### Describe the bug I often want to create a dummy dataset from a bigger dataset for fast iteration when training. However, I'm having a hard time doing this especially when trying to upload the dataset to the Hub. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset...
true
2023-02-08T10:18:41Z
2023-12-28T18:21:01Z
2023-02-08T10:35:48Z
patrickvonplaten
CONTRIBUTOR
null
null
8
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5511
false
[ "Update `datasets` or downgrade `huggingface-hub` ;)\r\n\r\nThe `huggingface-hub` lib did a breaking change a few months ago, and you're using an old version of `datasets` that does't support it", "Awesome thanks a lot! Everything works just fine with `datasets==2.9.0` :-) ", "Getting same error with latest ver...
1,575,191,549
5,510
Milvus integration for search
open
Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>
true
2023-02-07T23:30:26Z
2023-02-24T16:45:09Z
null
filip-halt
NONE
https://github.com/huggingface/datasets/pull/5510
null
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5510
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5510). All of your documentation changes will be reflected on that endpoint.", "To the maintainer, sorry about the repeated run requests for formatting. Missed the `make style` outlined in contributing guidelines. ", "Anythin...
1,574,177,320
5,509
Add a static `__all__` to `__init__.py` for typecheckers
open
This adds a static `__all__` field to `__init__.py`, allowing typecheckers to know which symbols are accessible from `datasets` at runtime. In particular [Pyright](https://github.com/microsoft/pylance-release/issues/2328#issuecomment-1029381258) seems to rely on this. At this point I have added all (modulo oversight) t...
true
2023-02-07T11:42:40Z
2023-02-08T17:48:24Z
null
LoicGrobol
NONE
https://github.com/huggingface/datasets/pull/5509
null
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5509
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5509). All of your documentation changes will be reflected on that endpoint.", "Hi! I've commented on the original issue to provide some context. Feel free to share your opinion there." ]
1,573,290,359
5,508
Saving a dataset after setting format to torch doesn't work, but only if filtering
closed
### Describe the bug Saving a dataset after setting format to torch doesn't work, but only if filtering ### Steps to reproduce the bug ``` a = Dataset.from_dict({"b": [1, 2]}) a.set_format('torch') a.save_to_disk("test_save") # saves successfully a.filter(None).save_to_disk("test_save_filter") # does not >> [.....
true
2023-02-06T21:08:58Z
2023-02-09T14:55:26Z
2023-02-09T14:55:26Z
joebhakim
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5508
false
[ "Hey, I'm a research engineer working on language modelling wanting to contribute to open source. I was wondering if I could give it a shot?", "Hi! This issue was fixed in https://github.com/huggingface/datasets/pull/4972, so please install `datasets>=2.5.0` to avoid it." ]
1,572,667,036
5,507
Optimise behaviour in respect to indices mapping
open
_Originally [posted](https://huggingface.slack.com/archives/C02V51Q3800/p1675443873878489?thread_ts=1675418893.373479&cid=C02V51Q3800) on Slack_ Considering all this, perhaps for Datasets 3.0, we can do the following: * [ ] have `continuous=True` by default in `.shard` (requested in the survey and makes more sense...
true
2023-02-06T14:25:55Z
2023-02-28T18:19:18Z
null
mariosasko
COLLABORATOR
null
null
0
1
0
1
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5507
false
[]
1,571,838,641
5,506
IterableDataset and Dataset return different batch sizes when using Trainer with multiple GPUs
closed
### Describe the bug I am training a Roberta model using 2 GPUs and the `Trainer` API with a batch size of 256. Initially I used a standard `Dataset`, but had issues with slow data loading. After reading [this issue](https://github.com/huggingface/datasets/issues/2252), I swapped to loading my dataset as contiguous...
true
2023-02-06T03:26:03Z
2023-02-08T18:30:08Z
2023-02-08T18:30:07Z
kheyer
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5506
false
[ "Hi ! `datasets` doesn't do batching - the PyTorch DataLoader does and is created by the `Trainer`. Do you pass other arguments to training_args with respect to data loading ?\r\n\r\nAlso we recently released `.to_iterable_dataset` that does pretty much what you implemented, but using contiguous shards to get a bet...
1,571,720,814
5,505
PyTorch BatchSampler still loads from Dataset one-by-one
closed
### Describe the bug In [the docs here](https://huggingface.co/docs/datasets/use_with_pytorch#use-a-batchsampler), it mentions the issue of the Dataset being read one-by-one, then states that using a BatchSampler resolves the issue. I'm not sure if this is a mistake in the docs or the code, but it seems that the on...
true
2023-02-06T01:14:55Z
2023-02-19T18:27:30Z
2023-02-19T18:27:30Z
davidgilbertson
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5505
false
[ "This change seems to come from a few months ago in the PyTorch side. That's good news and it means we may not need to pass a batch_sampler as soon as we add `Dataset.__getitems__` to get the optimal speed :)\r\n\r\nThanks for reporting ! Would you like to open a PR to add `__getitems__` and remove this outdated do...
1,570,621,242
5,504
don't zero copy timestamps
closed
Fixes https://github.com/huggingface/datasets/issues/5495 I'm not sure whether we prefer a test here or if timestamps are known to be unsupported (like booleans). The current test at least covers the bug
true
2023-02-03T23:39:04Z
2023-02-08T17:28:50Z
2023-02-08T14:33:17Z
dwyatte
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5504
2023-02-08T14:33:17Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5504
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,570,091,225
5,502
Added functionality: sort datasets by multiple keys
closed
Added functionality implementation: sort datasets by multiple keys/columns as discussed in https://github.com/huggingface/datasets/issues/5425.
true
2023-02-03T16:17:00Z
2023-02-21T14:46:49Z
2023-02-21T14:39:23Z
MichlF
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5502
2023-02-21T14:39:23Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5502
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "> Thanks! I've left some comments.\r\n> \r\n> We should also add some tests, mainly to make sure `reverse` behaves as expected. Let me know if you need help with that.\r\n\r\nThanks for the offer! I couldn't find any guidelines on ho...
1,569,644,159
5,501
Increase chunk size for speeding up file downloads
open
Original fix: https://github.com/huggingface/huggingface_hub/pull/1267 Not sure this function is actually still called though. I haven't done benches on this. Is there a dataset where files are hosted on the hub through cloudfront so we can have the same setup as in `hf_hub` ?
true
2023-02-03T10:50:10Z
2023-02-09T11:04:11Z
null
Narsil
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5501
null
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5501
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5501). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
1,569,257,240
5,500
WMT19 custom download checksum error
closed
### Describe the bug I use the following scripts to download data from WMT19: ```python import datasets from datasets import inspect_dataset, load_dataset_builder from wmt19.wmt_utils import _TRAIN_SUBSETS,_DEV_SUBSETS ## this is a must due to: https://discuss.huggingface.co/t/load-dataset-hangs-with-local-fi...
true
2023-02-03T05:45:37Z
2023-02-03T05:52:56Z
2023-02-03T05:52:56Z
Hannibal046
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5500
false
[ "I update the `datatsets` version and it works." ]
1,568,937,026
5,499
`load_dataset` has ~4 seconds of overhead for cached data
open
### Feature request When loading a dataset that has been cached locally, the `load_dataset` function takes a lot longer than it should take to fetch the dataset from disk (or memory). This is particularly noticeable for smaller datasets. For example, wikitext-2, comparing `load_data` (once cached) and `load_from_disk...
true
2023-02-02T23:34:50Z
2023-02-07T19:35:11Z
null
davidgilbertson
NONE
null
null
2
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5499
false
[ "Hi ! To skip the verification step that checks if newer data exist, you can enable offline mode with `HF_DATASETS_OFFLINE=1`.\r\n\r\nAlthough I agree this step should be much faster for datasets hosted on the HF Hub - we could just compare the commit hash from the local data and the remote git repository. We're no...
1,568,190,529
5,498
TypeError: 'bool' object is not iterable when filtering a datasets.arrow_dataset.Dataset
closed
### Describe the bug Hi, Thanks for the amazing work on the library! **Describe the bug** I think I might have noticed a small bug in the filter method. Having loaded a dataset using `load_dataset`, when I try to filter out empty entries with `batched=True`, I get a TypeError. ### Steps to reproduce the ...
true
2023-02-02T14:46:49Z
2023-10-08T06:12:47Z
2023-02-04T17:19:36Z
vmuel
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5498
false
[ "Hi! Instead of a single boolean, your filter function should return an iterable (of booleans) in the batched mode like so:\r\n```python\r\ntrain_dataset = train_dataset.filter(\r\n function=lambda batch: [image is not None for image in batch[\"image\"]], \r\n batched=True,\r\n batc...
1,567,601,264
5,497
Improved error message for gated/private repos
closed
Using `use_auth_token=True` is not needed anymore. If a user logged in, the token will be automatically retrieved. Also include a mention for gated repos See https://github.com/huggingface/huggingface_hub/pull/1064
true
2023-02-02T08:56:15Z
2023-02-02T11:26:08Z
2023-02-02T11:17:15Z
osanseviero
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5497
2023-02-02T11:17:14Z
3
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/5497
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,567,301,765
5,496
Add a `reduce` method
closed
### Feature request Right now the `Dataset` class implements `map()` and `filter()`, but leaves out the third functional idiom popular among Python users: `reduce`. ### Motivation A `reduce` method is often useful when calculating dataset statistics, for example, the occurrence of a particular n-gram or the average...
true
2023-02-02T04:30:22Z
2024-11-12T05:58:14Z
2023-07-21T14:24:32Z
zhangir-azerbayev
NONE
null
null
4
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/5496
false
[ "Hi! Sure, feel free to open a PR, so we can see the API you have in mind.", "I would like to give it a go! #self-assign", "Closing as `Dataset.map` can be used instead (see https://github.com/huggingface/datasets/pull/5533#issuecomment-1440571658 and https://github.com/huggingface/datasets/pull/5533#issuecomme...
1,566,803,452
5,495
to_tf_dataset fails with datetime UTC columns even if not included in columns argument
closed
### Describe the bug There appears to be some eager behavior in `to_tf_dataset` that runs against every column in a dataset even if they aren't included in the columns argument. This is problematic with datetime UTC columns due to them not working with zero copy. If I don't have UTC information in my datetime column...
true
2023-02-01T20:47:33Z
2023-02-08T14:33:19Z
2023-02-08T14:33:19Z
dwyatte
CONTRIBUTOR
null
null
2
0
0
0
null
false
[ "bug", "good first issue" ]
https://github.com/huggingface/datasets/issues/5495
false
[ "Hi! This is indeed a bug in our zero-copy logic.\r\n\r\nTo fix it, instead of the line:\r\nhttps://github.com/huggingface/datasets/blob/7cfac43b980ab9e4a69c2328f085770996323005/src/datasets/features/features.py#L702\r\n\r\nwe should have:\r\n```python\r\nreturn pa.types.is_primitive(pa_type) and not (pa.types.is_b...
1,566,655,348
5,494
Update audio installation doc page
closed
Our [installation documentation page](https://huggingface.co/docs/datasets/installation#audio) says that one can use Datasets for mp3 only with `torchaudio<0.12`. `torchaudio>0.12` is actually supported too but requires a specific version of ffmpeg which is not easily installed on all linux versions but there is a cust...
true
2023-02-01T19:07:50Z
2023-03-02T16:08:17Z
2023-03-02T16:08:17Z
polinaeterna
CONTRIBUTOR
null
null
4
3
1
1
null
false
[ "documentation" ]
https://github.com/huggingface/datasets/issues/5494
false
[ "Totally agree, the docs should be in sync with our code.\r\n\r\nIndeed to avoid confusing users, I think we should have updated the docs at the same time as this PR:\r\n- #5167", "@albertvillanova yeah sure I should have, but I forgot back then, sorry for that 😶", "No, @polinaeterna, nothing to be sorry about...
1,566,637,806
5,493
Remove unused `load_from_cache_file` arg from `Dataset.shard()` docstring
closed
true
2023-02-01T18:57:48Z
2023-02-08T15:10:46Z
2023-02-08T15:03:50Z
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5493
2023-02-08T15:03:50Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5493
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_5493). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n...
1,566,604,216
5,492
Push_to_hub in a pull request
closed
Right now `ds.push_to_hub()` can push a dataset on `main` or on a new branch with `branch=`, but there is no way to open a pull request. Even passing `branch=refs/pr/x` doesn't seem to work: it tries to create a branch with that name cc @nateraw It should be possible to tweak the use of `huggingface_hub` in `pus...
true
2023-02-01T18:32:14Z
2023-10-16T13:30:48Z
2023-10-16T13:30:48Z
lhoestq
MEMBER
null
null
2
0
0
0
null
false
[ "enhancement", "good first issue" ]
https://github.com/huggingface/datasets/issues/5492
false
[ "Assigned to myself and will get to it in the next week, but if someone finds this issue annoying and wants to submit a PR before I do, just ping me here and I'll reassign :). ", "I would like to be assigned to this issue, @nateraw . #self-assign" ]
1,566,235,012
5,491
[MINOR] Typo
closed
true
2023-02-01T14:39:39Z
2023-02-02T07:42:28Z
2023-02-02T07:35:14Z
cakiki
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5491
2023-02-02T07:35:14Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5491
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,565,842,327
5,490
Do not add index column by default when exporting to CSV
closed
As pointed out by @merveenoyan, default behavior of `Dataset.to_csv` adds the index as an additional column without name. This PR changes the default behavior, so that now the index column is not written. To add the index column, now you need to pass `index=True` and also `index_label=<name of the index colum>` t...
true
2023-02-01T10:20:55Z
2023-02-09T09:29:08Z
2023-02-09T09:22:23Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5490
2023-02-09T09:22:23Z
2
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5490
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,565,761,705
5,489
Pin dill lower version
closed
Pin `dill` lower version compatible with `datasets`. Related to: - #5487 - #288 Note that the required `dill._dill` module was introduced in dill-2.8.0, however we have heuristically tested that datasets can only be installed with dill>=3.0.0 (otherwise pip hangs indefinitely while preparing metadata for multip...
true
2023-02-01T09:33:42Z
2023-02-02T07:48:09Z
2023-02-02T07:40:43Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/5489
2023-02-02T07:40:43Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5489
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,565,025,262
5,488
Error loading MP3 files from CommonVoice
closed
### Describe the bug When loading a CommonVoice dataset with `datasets==2.9.0` and `torchaudio>=0.12.0`, I get an error reading the audio arrays: ```python --------------------------------------------------------------------------- LibsndfileError Traceback (most recent call last) ~/.l...
true
2023-01-31T21:25:33Z
2023-03-02T16:25:14Z
2023-03-02T16:25:13Z
kradonneoh
NONE
null
null
4
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/5488
false
[ "Hi @kradonneoh, thanks for reporting.\r\n\r\nPlease note that to work with audio datasets (and specifically with MP3 files) we have detailed installation instructions in our docs: https://huggingface.co/docs/datasets/installation#audio\r\n- one of the requirements is torchaudio<0.12.0\r\n\r\nLet us know if the pro...
1,564,480,121
5,487
Incorrect filepath for dill module
closed
### Describe the bug I installed the `datasets` package and when I try to `import` it, I get the following error: ``` Traceback (most recent call last): File "/var/folders/jt/zw5g74ln6tqfdzsl8tx378j00000gn/T/ipykernel_3805/3458380017.py", line 1, in <module> import datasets File "/Users/avivbrokman/...
true
2023-01-31T15:01:08Z
2023-02-24T16:18:36Z
2023-02-24T16:18:36Z
avivbrokman
NONE
null
null
5
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5487
false
[ "Hi! The correct path is still `dill._dill.XXXX` in the latest release. What do you get when you run `python -c \"import dill; print(dill.__version__)\"` in your environment?", "`0.3.6` I feel like that's bad news, because it's probably not the issue.\r\n\r\nMy mistake, about the wrong path guess. I think I did...
1,564,059,749
5,486
Adding `sep` to TextConfig
open
I have a local a `.txt` file that follows the `CONLL2003` format which I need to load using `load_script`. However, by using `sample_by='line'`, one can only split the dataset into lines without splitting each line into columns. Would it be reasonable to add a `sep` argument in combination with `sample_by='paragraph'` ...
true
2023-01-31T10:39:53Z
2023-01-31T14:50:18Z
null
omar-araboghli
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5486
false
[ "Hi @omar-araboghli, thanks for your proposal.\r\n\r\nHave you tried to use \"csv\" loader instead of \"text\"? That already has a `sep` argument.", "Hi @albertvillanova, thanks for the quick response!\r\n\r\nIndeed, I have been trying to use `csv` instead of `text`. However I am still not able to define range of...
1,563,002,829
5,485
Add section in tutorial for IterableDataset
closed
Introduces an `IterableDataset` and how to access it in the tutorial section. It also adds a brief next step section at the end to provide a path for users who want more explanation and a path for users who want something more practical and learn how to preprocess these dataset types. It'll complement the awesome new d...
true
2023-01-30T18:43:04Z
2023-02-01T18:15:38Z
2023-02-01T18:08:46Z
stevhliu
MEMBER
https://github.com/huggingface/datasets/pull/5485
2023-02-01T18:08:46Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5485
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,562,877,070
5,484
Update docs for `nyu_depth_v2` dataset
closed
This PR will fix the issue mentioned in #5461. Here is brief overview, ## Bug: Discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are diffe...
true
2023-01-30T17:37:08Z
2023-09-29T06:43:11Z
2023-02-05T14:15:04Z
awsaf49
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5484
2023-02-05T14:15:04Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5484
true
[ "I think I need to create another PR on https://huggingface.co/datasets/huggingface/documentation-images/tree/main/datasets for hosting the images there?", "_The documentation is not available anymore as the PR was closed or merged._", "Thanks for the update @awsaf49 !", "> Thanks a lot for the updates!\r\n> ...
1,560,894,690
5,483
Unable to upload dataset
closed
### Describe the bug Uploading a simple dataset ends with an exception ### Steps to reproduce the bug I created a new conda env with python 3.10, pip installed datasets and: ```python >>> from datasets import load_dataset, load_from_disk, Dataset >>> d = Dataset.from_dict({"text": ["hello"] * 2}) >>> d.pus...
true
2023-01-28T15:18:26Z
2023-01-29T08:09:49Z
2023-01-29T08:09:49Z
yuvalkirstain
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5483
false
[ "Seems to work now, perhaps it was something internal with our university's network." ]
1,560,853,137
5,482
Reload features from Parquet metadata
closed
The idea would be to allow this : ```python ds.to_parquet("my_dataset/ds.parquet") reloaded = load_dataset("my_dataset") assert ds.features == reloaded.features ``` And it should also work with Image and Audio types (right now they're reloaded as a dict type) This can be implemented by storing and reading th...
true
2023-01-28T13:12:31Z
2023-02-12T15:57:02Z
2023-02-12T15:57:02Z
lhoestq
MEMBER
null
null
3
1
1
0
null
false
[ "enhancement", "good second issue" ]
https://github.com/huggingface/datasets/issues/5482
false
[ "I'd be happy to have a look, if nobody else has started working on this yet @lhoestq. \r\n\r\nIt seems to me that for the `arrow` format features are currently attached as metadata [in `datasets.arrow_writer`](https://github.com/huggingface/datasets/blob/5f810b7011a8a4ab077a1847c024d2d9e267b065/src/datasets/arrow_...
1,560,468,195
5,481
Load a cached dataset as iterable
open
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
true
2023-01-27T21:43:51Z
2025-06-19T19:30:52Z
null
lhoestq
MEMBER
null
null
22
5
0
5
null
false
[ "enhancement", "good second issue" ]
https://github.com/huggingface/datasets/issues/5481
false
[ "Can I work on this issue? I am pretty new to this.", "Hi ! Sure :) you can comment `#self-assign` to assign yourself to this issue.\r\n\r\nI can give you some pointers to get started:\r\n\r\n`load_dataset` works roughly this way:\r\n1. it instantiate a dataset builder using `load_dataset_builder()`\r\n2. the bui...
1,560,364,866
5,480
Select columns of Dataset or DatasetDict
closed
Close #5474 and #5468.
true
2023-01-27T20:06:16Z
2023-02-13T11:10:13Z
2023-02-13T09:59:35Z
daskol
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5480
2023-02-13T09:59:35Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5480
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,560,357,590
5,479
audiofolder works on local env, but creates empty dataset in a remote one, what dependencies could I be missing/outdated
closed
### Describe the bug I'm using a custom audio dataset (400+ audio files) in the correct format for audiofolder. Although loading the dataset with audiofolder works in one local setup, it doesn't in a remote one (it just creates an empty dataset). I have both ffmpeg and libndfile installed on both computers, what cou...
true
2023-01-27T20:01:22Z
2023-01-29T05:23:14Z
2023-01-29T05:23:14Z
jcho19
NONE
null
null
0
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5479
false
[]
1,560,357,583
5,478
Tip for recomputing metadata
closed
From this [feedback](https://discuss.huggingface.co/t/nonmatchingsplitssizeserror/30033) on the forum, thought I'd include a tip for recomputing the metadata numbers if it is your own dataset.
true
2023-01-27T20:01:22Z
2023-01-30T19:22:21Z
2023-01-30T19:15:26Z
stevhliu
MEMBER
https://github.com/huggingface/datasets/pull/5478
2023-01-30T19:15:26Z
2
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/5478
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,559,909,892
5,477
Unpin sqlalchemy once issue is fixed
closed
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
true
2023-01-27T15:01:55Z
2024-01-26T14:50:45Z
2024-01-26T14:50:45Z
albertvillanova
MEMBER
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5477
false
[ "@albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy! ", "The source issue:\r\n- https://github.com/pandas-dev/pandas/issues/40686\r\n\r\nhas been fixed:\r\n- https://github.com/pandas-dev/pandas/pull/48576\r\n\r\nThe fix was released yesterday (2023-04-03) only in `pandas-...
1,559,594,684
5,476
Pin sqlalchemy
closed
since sqlalchemy update to 2.0.0 the CI started to fail: https://github.com/huggingface/datasets/actions/runs/4023742457/jobs/6914976514 the error comes from pandas: https://github.com/pandas-dev/pandas/issues/51015
true
2023-01-27T11:26:38Z
2023-01-27T12:06:51Z
2023-01-27T11:57:48Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5476
2023-01-27T11:57:48Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5476
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,559,030,149
5,475
Dataset scan time is much slower than using native arrow
closed
### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that exp...
true
2023-01-27T01:32:25Z
2023-01-30T16:17:11Z
2023-01-30T16:17:11Z
jonny-cyberhaven
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5475
false
[ "Hi ! In your code you only iterate on the Arrow buffers - you don't actually load the data as python objects. For a fair comparison, you can modify your code using:\r\n```diff\r\n- for _ in range(0, len(table), bsz):\r\n- _ = {k:table[k][_ : _ + bsz] for k in cols}\r\n+ for _ in range(0, len(table)...
1,558,827,155
5,474
Column project operation on `datasets.Dataset`
closed
### Feature request There is no operation to select a subset of columns of original dataset. Expected API follows. ```python a = Dataset.from_dict({ 'int': [0, 1, 2] 'char': ['a', 'b', 'c'], 'none': [None] * 3, }) b = a.project('int', 'char') # usually, .select() print(a.column_names) # std...
true
2023-01-26T21:47:53Z
2023-02-13T09:59:37Z
2023-02-13T09:59:37Z
daskol
CONTRIBUTOR
null
null
1
0
0
0
null
false
[ "duplicate", "enhancement" ]
https://github.com/huggingface/datasets/issues/5474
false
[ "Hi ! This would be a nice addition indeed :) This sounds like a duplicate of https://github.com/huggingface/datasets/issues/5468\r\n\r\n> Not sure. Some of my PRs are still open and some do not have any discussions.\r\n\r\nSorry to hear that, feel free to ping me on those PRs" ]
1,558,668,197
5,473
Set dev version
closed
true
2023-01-26T19:34:44Z
2023-01-26T19:47:34Z
2023-01-26T19:38:30Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5473
2023-01-26T19:38:30Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5473
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,558,662,251
5,472
Release: 2.9.0
closed
true
2023-01-26T19:29:42Z
2023-01-26T19:40:44Z
2023-01-26T19:33:00Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5472
2023-01-26T19:33:00Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5472
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,558,557,545
5,471
Add num_test_batches option
closed
`to_tf_dataset` calls can be very costly because of the number of test batches drawn during `_get_output_signature`. The test batches are draw in order to estimate the shapes when creating the tensorflow dataset. This is necessary when the shapes can be irregular, but not in cases when the tensor shapes are the same ac...
true
2023-01-26T18:09:40Z
2023-01-27T18:16:45Z
2023-01-27T18:08:36Z
amyeroberts
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5471
2023-01-27T18:08:36Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5471
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "I thought this issue was resolved in my parallel `to_tf_dataset` PR! I changed the default `num_test_batches` in `_get_output_signature` to 20 and used a test batch size of 1 to maximize variance to detect shorter samples. I think it...
1,558,542,611
5,470
Update dataset card creation
closed
Encourages users to create a dataset card on the Hub directly with the new metadata ui + import dataset card template instead of telling users to manually create and upload one.
true
2023-01-26T17:57:51Z
2023-01-27T16:27:00Z
2023-01-27T16:20:10Z
stevhliu
MEMBER
https://github.com/huggingface/datasets/pull/5470
2023-01-27T16:20:10Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5470
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "The CI failure is unrelated to your PR - feel free to merge :)", "Haha thanks, you read my mind :)", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n##...
1,558,346,906
5,469
Remove deprecated `shard_size` arg from `.push_to_hub()`
closed
The docstrings say that it was supposed to be deprecated since version 2.4.0, can we remove it?
true
2023-01-26T15:40:56Z
2023-01-26T17:37:51Z
2023-01-26T17:30:59Z
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5469
2023-01-26T17:30:59Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5469
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.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,558,066,625
5,468
Allow opposite of remove_columns on Dataset and DatasetDict
closed
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(column...
true
2023-01-26T12:28:09Z
2023-02-13T09:59:38Z
2023-02-13T09:59:38Z
hollance
NONE
null
null
9
0
0
0
null
false
[ "enhancement", "good first issue" ]
https://github.com/huggingface/datasets/issues/5468
false
[ "Hi! I agree it would be nice to have a method like that. Instead of `keep_columns`, we can name it `select_columns` to be more aligned with PyArrow's naming convention (`pa.Table.select`).", "Hi, I am a newbie to open source and would like to contribute. @mariosasko can I take up this issue ?", "Hey, I also wa...
1,557,898,273
5,467
Fix conda command in readme
closed
The [conda forge channel](https://anaconda.org/conda-forge/datasets) is lagging behind (as of right now, only 2.7.1 is available), we should recommend using the [Hugging face channel](https://anaconda.org/HuggingFace/datasets) that we are maintaining ``` conda install -c huggingface datasets ```
true
2023-01-26T10:03:01Z
2023-09-24T10:06:59Z
2023-01-26T18:29:37Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/5467
null
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5467
true
[ "ah didn't read well - it's all good", "or maybe it isn't ? `-c huggingface -c conda-forge` installs from HF or from conda-forge ?", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==6.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | ...
1,557,584,845
5,466
remove pathlib.Path with URIs
closed
Pathlib will convert "//" to "/" which causes retry errors when downloading from cloud storage
true
2023-01-26T03:25:45Z
2023-01-26T17:08:57Z
2023-01-26T16:59:11Z
jonny-cyberhaven
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/5466
2023-01-26T16:59:11Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/5466
true
[ "Thanks !\r\n`os.path.join` will use a backslash `\\` on windows which will also fail. You can use this instead in `load_from_disk`:\r\n```python\r\nfrom .filesystems import is_remote_filesystem\r\n\r\nis_local = not is_remote_filesystem(fs)\r\npath_join = os.path.join if is_local else posixpath.join\r\n```", "Th...