id
int64
599M
3.48B
number
int64
1
7.8k
title
stringlengths
1
290
state
stringclasses
2 values
comments
listlengths
0
30
created_at
timestamp[s]date
2020-04-14 10:18:02
2025-10-05 06:37:50
updated_at
timestamp[s]date
2020-04-27 16:04:17
2025-10-05 10:32:43
closed_at
timestamp[s]date
2020-04-14 12:01:40
2025-10-01 13:56:03
body
stringlengths
0
228k
user
stringlengths
3
26
html_url
stringlengths
46
51
pull_request
dict
is_pull_request
bool
2 classes
1,898,532,784
6,243
Fix cast from fixed size list to variable size list
closed
[ "<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...
2023-09-15T14:23:33
2023-09-19T18:02:21
2023-09-19T17:53:17
Fix #6242
mariosasko
https://github.com/huggingface/datasets/pull/6243
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6243", "html_url": "https://github.com/huggingface/datasets/pull/6243", "diff_url": "https://github.com/huggingface/datasets/pull/6243.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6243.patch", "merged_at": "2023-09-19T17:53...
true
1,896,899,123
6,242
Data alteration when loading dataset with unspecified inner sequence length
closed
[ "While this issue may seem specific, it led to a silent problem in my workflow that took days to diagnose. If this feature is not intended to be supported, an error should be raised when encountering this configuration to prevent such issues.", "Thanks for reporting! This is a MRE:\r\n\r\n```python\r\nimport pyar...
2023-09-14T16:12:45
2023-09-19T17:53:18
2023-09-19T17:53:18
### Describe the bug When a dataset saved with a specified inner sequence length is loaded without specifying that length, the original data is altered and becomes inconsistent. ### Steps to reproduce the bug ```python from datasets import Dataset, Features, Value, Sequence, load_dataset # Repository ID repo_id...
qgallouedec
https://github.com/huggingface/datasets/issues/6242
null
false
1,896,429,694
6,241
Remove unused global variables in `audio.py`
closed
[ "_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...
2023-09-14T12:06:32
2023-09-15T15:57:10
2023-09-15T15:46:07
null
mariosasko
https://github.com/huggingface/datasets/pull/6241
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6241", "html_url": "https://github.com/huggingface/datasets/pull/6241", "diff_url": "https://github.com/huggingface/datasets/pull/6241.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6241.patch", "merged_at": "2023-09-15T15:46...
true
1,895,723,888
6,240
Dataloader stuck on multiple GPUs
closed
[ "What type of dataset are you using in this script? `torch.utils.data.Dataset` or `datasets.Dataset`? Please share the `datasets` package version if it's the latter. Otherwise, it's better to move this issue to the `accelerate` repo.", "Very sorry, I thought I had a repo in `accelerate!`\r\nI will close this issu...
2023-09-14T05:30:30
2023-09-14T23:54:42
2023-09-14T23:54:42
### Describe the bug I am trying to get CLIP to fine-tuning with my code. When I tried to run it on multiple GPUs using accelerate, I encountered the following phenomenon. - Validation dataloader stuck in 2nd epoch only on multi-GPU Specifically, when the "for inputs in valid_loader:" process is finished, it does...
kuri54
https://github.com/huggingface/datasets/issues/6240
null
false
1,895,349,382
6,239
Load local audio data doesn't work
closed
[ "I think this is the same issue as https://github.com/huggingface/datasets/issues/4776. Maybe installing `ffmpeg` can fix it:\r\n```python\r\nadd-apt-repository -y ppa:savoury1/ffmpeg4\r\napt-get -qq install -y ffmpeg\r\n```\r\n\r\nHowever, the best solution is to use a newer version of `datasets`. In the recent re...
2023-09-13T22:30:01
2023-09-15T14:32:10
2023-09-15T14:32:10
### Describe the bug I get a RuntimeError from the following code: ```python audio_dataset = Dataset.from_dict({"audio": ["/kaggle/input/bengaliai-speech/train_mp3s/000005f3362c.mp3"]}).cast_column("audio", Audio()) audio_dataset[0] ``` ### Traceback <details> ```python RuntimeError ...
abodacs
https://github.com/huggingface/datasets/issues/6239
null
false
1,895,207,828
6,238
`dataset.filter` ALWAYS removes the first item from the dataset when using batched=True
closed
[ "`filter` treats the function's output as a (selection) mask - `True` keeps the sample, and `False` drops it. In your case, `bool(0)` evaluates to `False`, so dropping the first sample is the correct behavior.", "Oh gosh! 🤦 I totally misunderstood the API! My apologies!" ]
2023-09-13T20:20:37
2023-09-17T07:05:07
2023-09-17T07:05:07
### Describe the bug If you call batched=True when calling `filter`, the first item is _always_ filtered out, regardless of the filter condition. ### Steps to reproduce the bug Here's a minimal example: ```python def filter_batch_always_true(batch, indices): print("First index being passed into this filte...
Taytay
https://github.com/huggingface/datasets/issues/6238
null
false
1,893,822,321
6,237
Tokenization with multiple workers is too slow
closed
[ "[This](https://huggingface.co/docs/datasets/nlp_process#map) is the most performant way to tokenize a dataset (`batched=True, num_proc=None, return_tensors=\"np\"`) \r\n\r\nIf`tokenizer.is_fast` returns `True`, `num_proc` must be `None/1` to benefit from the fast tokenizers' parallelism (the fast tokenizers are im...
2023-09-13T06:18:34
2023-09-19T21:54:58
2023-09-19T21:54:58
I am trying to tokenize a few million documents with multiple workers but the tokenization process is taking forever. Code snippet: ``` raw_datasets.map( encode_function, batched=False, num_proc=args.preprocessing_num_workers, load_from_cache_file=not args.ove...
macabdul9
https://github.com/huggingface/datasets/issues/6237
null
false
1,893,648,480
6,236
Support buffer shuffle for to_tf_dataset
open
[ "cc @Rocketknight1 ", "Hey! You can implement this yourself, just:\r\n\r\n1) Create the dataset with `to_tf_dataset()` with `shuffle=False`\r\n2) Add an `unbatch()` at the end (or use batch_size=1)\r\n3) Add a `shuffle()` to the resulting dataset with your desired buffer size\r\n4) Add a `batch()` at the end agai...
2023-09-13T03:19:44
2023-09-18T01:11:21
null
### Feature request I'm using to_tf_dataset to convert a large dataset to tf.data.Dataset and use Keras fit to train model. Currently, to_tf_dataset only supports full size shuffle, which can be very slow on large dataset. tf.data.Dataset support buffer shuffle by default. shuffle( buffer_size, seed=None, r...
EthanRock
https://github.com/huggingface/datasets/issues/6236
null
false
1,893,337,083
6,235
Support multiprocessing for download/extract nestedly
open
[]
2023-09-12T21:51:08
2023-09-12T21:51:08
null
### Feature request Current multiprocessing for download/extract is not done nestedly. For example, when processing SlimPajama, there is only 3 processes (for train/test/val), while there are many files inside these 3 folders ``` Downloading data files #0: 0%| | 0/1 [00:00<?, ?obj/s] Downloading data f...
hgt312
https://github.com/huggingface/datasets/issues/6235
null
false
1,891,804,286
6,233
Update README.md
closed
[ "_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...
2023-09-12T06:53:06
2023-09-13T18:20:50
2023-09-13T18:10:04
fixed a typo
NinoRisteski
https://github.com/huggingface/datasets/pull/6233
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6233", "html_url": "https://github.com/huggingface/datasets/pull/6233", "diff_url": "https://github.com/huggingface/datasets/pull/6233.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6233.patch", "merged_at": "2023-09-13T18:10...
true
1,891,109,762
6,232
Improve error message for missing function parameters
closed
[ "_The documentation is not available anymore as the PR was closed or merged._", "CI errors are unrelated", "<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_nu...
2023-09-11T19:11:58
2023-09-15T18:07:56
2023-09-15T17:59:02
The error message in the fingerprint module was missing the f-string 'f' symbol, so the error message returned by fingerprint.py, line 469 was literally "function {func} is missing parameters {fingerprint_names} in signature." This has been fixed.
suavemint
https://github.com/huggingface/datasets/pull/6232
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6232", "html_url": "https://github.com/huggingface/datasets/pull/6232", "diff_url": "https://github.com/huggingface/datasets/pull/6232.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6232.patch", "merged_at": "2023-09-15T17:59...
true
1,890,863,249
6,231
Overwrite legacy default config name in `dataset_infos.json` in packaged datasets
open
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6231). All of your documentation changes will be reflected on that endpoint.", "realized that this pr is still not merged, @lhoestq maybe you can take a look at it? ", "I think https://github.com/huggingface/datasets/pull/621...
2023-09-11T16:27:09
2023-09-26T11:19:36
null
Currently if we push data as default config with `.push_to_hub` to a repo that has a legacy `dataset_infos.json` file containing a legacy default config name like `{username}--{dataset_name}`, new key `"default"` is added to `dataset_infos.json` along with the legacy one. I think the legacy one should be dropped in thi...
polinaeterna
https://github.com/huggingface/datasets/pull/6231
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6231", "html_url": "https://github.com/huggingface/datasets/pull/6231", "diff_url": "https://github.com/huggingface/datasets/pull/6231.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6231.patch", "merged_at": null }
true
1,890,521,006
6,230
Don't skip hidden files in `dl_manager.iter_files` when they are given as input
closed
[ "<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...
2023-09-11T13:29:19
2023-09-13T18:21:28
2023-09-13T18:12:09
Required for `load_dataset(<format>, data_files=["path/to/.hidden_file"])` to work as expected
mariosasko
https://github.com/huggingface/datasets/pull/6230
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6230", "html_url": "https://github.com/huggingface/datasets/pull/6230", "diff_url": "https://github.com/huggingface/datasets/pull/6230.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6230.patch", "merged_at": "2023-09-13T18:12...
true
1,889,050,954
6,229
Apply inference on all images in the dataset
closed
[ "From what I see, `MMSegInferencer` supports NumPy arrays, so replace the line `image_path = example['image']` with `image_path = np.array(example['image'])` to fix the issue (`example[\"image\"]` is a `PIL.Image` object). ", "> From what I see, `MMSegInferencer` supports NumPy arrays, so replace the line `image_...
2023-09-10T08:36:12
2023-09-20T16:11:53
2023-09-20T16:11:52
### Describe the bug ``` --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) Cell In[14], line 11 9 for idx, example in enumerate(dataset['train']): 10 image_path = example['image'] ---> 11 mask...
andysingal
https://github.com/huggingface/datasets/issues/6229
null
false
1,887,959,311
6,228
Remove RGB -> BGR image conversion in Object Detection tutorial
closed
[ "_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...
2023-09-08T16:09:13
2023-09-08T18:02:49
2023-09-08T17:52:16
Fix #6225
mariosasko
https://github.com/huggingface/datasets/pull/6228
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6228", "html_url": "https://github.com/huggingface/datasets/pull/6228", "diff_url": "https://github.com/huggingface/datasets/pull/6228.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6228.patch", "merged_at": "2023-09-08T17:52...
true
1,887,462,591
6,226
Add push_to_hub with multiple configs docs
closed
[ "_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...
2023-09-08T11:08:55
2023-09-08T12:29:21
2023-09-08T12:20:51
null
lhoestq
https://github.com/huggingface/datasets/pull/6226
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6226", "html_url": "https://github.com/huggingface/datasets/pull/6226", "diff_url": "https://github.com/huggingface/datasets/pull/6226.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6226.patch", "merged_at": "2023-09-08T12:20...
true
1,887,054,320
6,225
Conversion from RGB to BGR in Object Detection tutorial
closed
[ "Good catch!" ]
2023-09-08T06:49:19
2023-09-08T17:52:18
2023-09-08T17:52:17
The [tutorial](https://huggingface.co/docs/datasets/main/en/object_detection) mentions the necessity of conversion the input image from BGR to RGB > albumentations expects the image to be in BGR format, not RGB, so you’ll have to convert the image before applying the transform. [Link to tutorial](https://github.c...
samokhinv
https://github.com/huggingface/datasets/issues/6225
null
false
1,886,043,692
6,224
Ignore `dataset_info.json` in data files resolution
closed
[ "_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...
2023-09-07T14:43:51
2023-09-07T15:46:10
2023-09-07T15:37:20
`save_to_disk` creates this file, but also [`HugginFaceDatasetSever`](https://github.com/gradio-app/gradio/blob/26fef8c7f85a006c7e25cdbed1792df19c512d02/gradio/flagging.py#L214), so this is needed to avoid issues such as [this one](https://discord.com/channels/879548962464493619/1149295819938349107/1149295819938349107)...
mariosasko
https://github.com/huggingface/datasets/pull/6224
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6224", "html_url": "https://github.com/huggingface/datasets/pull/6224", "diff_url": "https://github.com/huggingface/datasets/pull/6224.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6224.patch", "merged_at": "2023-09-07T15:37...
true
1,885,710,696
6,223
Update README.md
closed
[ "_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...
2023-09-07T11:33:20
2023-09-13T22:32:31
2023-09-13T22:23:42
fixed a few typos
NinoRisteski
https://github.com/huggingface/datasets/pull/6223
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6223", "html_url": "https://github.com/huggingface/datasets/pull/6223", "diff_url": "https://github.com/huggingface/datasets/pull/6223.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6223.patch", "merged_at": "2023-09-13T22:23...
true
1,884,875,510
6,222
fix typo in Audio dataset documentation
closed
[ "_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...
2023-09-06T23:17:24
2023-10-03T14:18:41
2023-09-07T15:39:09
There is a typo in the section of the documentation dedicated to creating an audio dataset. The Dataset is incorrectly suffixed with a `Config` https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia/blob/main/librivox-indonesia.py#L59
prassanna-ravishankar
https://github.com/huggingface/datasets/pull/6222
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6222", "html_url": "https://github.com/huggingface/datasets/pull/6222", "diff_url": "https://github.com/huggingface/datasets/pull/6222.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6222.patch", "merged_at": "2023-09-07T15:39...
true
1,884,324,631
6,221
Support saving datasets with custom formatting
open
[ "Not a fan of pickling this sort of stuff either.\r\nNote that users can also share the code in their dataset documentation." ]
2023-09-06T16:03:32
2023-09-06T18:32:07
null
Requested in https://discuss.huggingface.co/t/using-set-transform-on-a-dataset-leads-to-an-exception/53036. I am not sure if supporting this is the best idea for the following reasons: >For this to work, we would have to pickle a custom transform, which means the transform and the objects it references need to be...
mariosasko
https://github.com/huggingface/datasets/issues/6221
null
false
1,884,285,980
6,220
Set dev version
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6220). 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...
2023-09-06T15:40:33
2023-09-06T15:52:33
2023-09-06T15:41:13
null
albertvillanova
https://github.com/huggingface/datasets/pull/6220
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6220", "html_url": "https://github.com/huggingface/datasets/pull/6220", "diff_url": "https://github.com/huggingface/datasets/pull/6220.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6220.patch", "merged_at": "2023-09-06T15:41...
true
1,884,244,334
6,219
Release: 2.14.5
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6219). 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...
2023-09-06T15:17:10
2023-09-06T15:46:20
2023-09-06T15:18:51
null
albertvillanova
https://github.com/huggingface/datasets/pull/6219
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6219", "html_url": "https://github.com/huggingface/datasets/pull/6219", "diff_url": "https://github.com/huggingface/datasets/pull/6219.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6219.patch", "merged_at": "2023-09-06T15:18...
true
1,883,734,000
6,218
Rename old push_to_hub configs to "default" in dataset_infos
closed
[ "<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...
2023-09-06T10:40:05
2023-09-07T08:31:29
2023-09-06T11:23:56
Fix ```python from datasets import load_dataset_builder b = load_dataset_builder("lambdalabs/pokemon-blip-captions", "default") print(b.info) ``` which should return ``` DatasetInfo( features={'image': Image(decode=True, id=None), 'text': Value(dtype='string', id=None)}, dataset_name='pokemon-bli...
lhoestq
https://github.com/huggingface/datasets/pull/6218
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6218", "html_url": "https://github.com/huggingface/datasets/pull/6218", "diff_url": "https://github.com/huggingface/datasets/pull/6218.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6218.patch", "merged_at": "2023-09-06T11:23...
true
1,883,614,607
6,217
`Dataset.to_dict()` ignore `decode=True` with Image feature
open
[ "We need to implement the `Image` type as a PyArrow extension type (to allow us to override the Python conversion) for this to work as expected. For now, it's best to use your approach indeed." ]
2023-09-06T09:26:16
2023-09-08T17:08:52
null
### Describe the bug `Dataset.to_dict` seems to ignore the decoding instruction passed in features. ### Steps to reproduce the bug ```python import datasets import numpy as np from PIL import Image img = np.random.randint(0, 256, (5, 5, 3), dtype=np.uint8) img = Image.fromarray(img) features = datasets.Fea...
qgallouedec
https://github.com/huggingface/datasets/issues/6217
null
false
1,883,492,703
6,216
Release: 2.13.2
closed
[ "_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...
2023-09-06T08:15:32
2023-09-06T08:52:18
2023-09-06T08:22:43
null
albertvillanova
https://github.com/huggingface/datasets/pull/6216
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6216", "html_url": "https://github.com/huggingface/datasets/pull/6216", "diff_url": "https://github.com/huggingface/datasets/pull/6216.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6216.patch", "merged_at": "2023-09-06T08:22...
true
1,882,176,970
6,215
Fix checking patterns to infer packaged builder
closed
[ "_The documentation is not available anymore as the PR was closed or merged._", "oh wow good catch", "<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 af...
2023-09-05T15:10:47
2023-09-06T10:34:00
2023-09-06T10:25:00
Don't ignore results of pattern resolving if `self.data_files` is not None. Otherwise lines 854 and 1037 make no sense.
polinaeterna
https://github.com/huggingface/datasets/pull/6215
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6215", "html_url": "https://github.com/huggingface/datasets/pull/6215", "diff_url": "https://github.com/huggingface/datasets/pull/6215.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6215.patch", "merged_at": "2023-09-06T10:25...
true
1,881,736,469
6,214
Unpin fsspec < 2023.9.0
closed
[]
2023-09-05T11:02:58
2023-09-26T15:32:52
2023-09-26T15:32:52
Once root issue is fixed, remove temporary pin of fsspec < 2023.9.0 introduced by: - #6210 Related to issue: - #6209 After investigation, I think the root issue is related to the new glob behavior with double asterisk `**` they have introduced in: - https://github.com/fsspec/filesystem_spec/pull/1329
albertvillanova
https://github.com/huggingface/datasets/issues/6214
null
false
1,880,592,987
6,213
Better list array values handling in cast/embed storage
closed
[ "<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...
2023-09-04T16:21:23
2024-01-11T06:32:20
2023-10-05T15:24:34
Use [`array.flatten`](https://arrow.apache.org/docs/python/generated/pyarrow.ListArray.html#pyarrow.ListArray.flatten) that takes `.offset` into account instead of `array.values` in array cast/embed.
mariosasko
https://github.com/huggingface/datasets/pull/6213
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6213", "html_url": "https://github.com/huggingface/datasets/pull/6213", "diff_url": "https://github.com/huggingface/datasets/pull/6213.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6213.patch", "merged_at": null }
true
1,880,399,516
6,212
Tilde (~) is not supported for data_files
open
[ "Hi @exs-avianello, is it really needed? Note you can alternatively use `pathlib.Path` among others as it follows:\r\n\r\n```python\r\nimport datasets\r\nfrom pathlib import Path\r\n\r\n# save a parquet file at ~/path/to/data.parquet\r\n\r\ndata_files = Path.home() / \"path/to/data.parquet\"\r\ndataset = datasets.l...
2023-09-04T14:23:49
2023-09-05T08:28:39
null
### Describe the bug Attempting to `load_dataset` from a path starting with `~` (as a shorthand for the user's home directory) seems not to be fully working - at least as far as the `parquet` dataset builder is concerned. (the same file can be loaded correctly if providing its absolute path instead) I think that...
exs-avianello
https://github.com/huggingface/datasets/issues/6212
null
false
1,880,265,906
6,211
Fix empty splitinfo json
closed
[ "<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...
2023-09-04T13:13:53
2023-09-04T14:58:34
2023-09-04T14:47:17
If a split is empty, then the JSON split info should mention num_bytes = 0 and num_examples = 0. Until now they were omited because the JSON dumps ignore the fields that are equal to the default values. This is needed in datasets-server since we parse this information to the viewer
lhoestq
https://github.com/huggingface/datasets/pull/6211
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6211", "html_url": "https://github.com/huggingface/datasets/pull/6211", "diff_url": "https://github.com/huggingface/datasets/pull/6211.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6211.patch", "merged_at": "2023-09-04T14:47...
true
1,879,649,731
6,210
Temporarily pin fsspec < 2023.9.0
closed
[ "_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...
2023-09-04T07:07:07
2023-09-04T07:40:23
2023-09-04T07:30:00
Temporarily pin fsspec < 2023.9.0 until permanent solution is found. Hot fix #6209.
albertvillanova
https://github.com/huggingface/datasets/pull/6210
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6210", "html_url": "https://github.com/huggingface/datasets/pull/6210", "diff_url": "https://github.com/huggingface/datasets/pull/6210.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6210.patch", "merged_at": "2023-09-04T07:30...
true
1,879,622,000
6,209
CI is broken with AssertionError: 3 failed, 12 errors
closed
[]
2023-09-04T06:47:05
2023-09-04T07:30:01
2023-09-04T07:30:01
Our CI is broken: 3 failed, 12 errors See: https://github.com/huggingface/datasets/actions/runs/6069947111/job/16465138041 ``` =========================== short test summary info ============================ FAILED tests/test_load.py::ModuleFactoryTest::test_LocalDatasetModuleFactoryWithoutScript_with_data_dir - ...
albertvillanova
https://github.com/huggingface/datasets/issues/6209
null
false
1,879,572,646
6,208
Do not filter out .zip extensions from no-script datasets
closed
[ "<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...
2023-09-04T06:07:12
2023-09-04T09:22:19
2023-09-04T09:13:32
This PR is a hotfix of: - #6207 That PR introduced the filtering out of `.zip` extensions. This PR reverts that. Hot fix #6207. Maybe we should do patch releases: the bug was introduced in 2.13.1. CC: @lhoestq
albertvillanova
https://github.com/huggingface/datasets/pull/6208
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6208", "html_url": "https://github.com/huggingface/datasets/pull/6208", "diff_url": "https://github.com/huggingface/datasets/pull/6208.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6208.patch", "merged_at": "2023-09-04T09:13...
true
1,879,555,234
6,207
No-script datasets with ZIP files do not load
closed
[]
2023-09-04T05:50:27
2023-09-04T09:13:33
2023-09-04T09:13:33
While investigating an issue on a Hub dataset, I have discovered the no-script datasets containing ZIP files do not load. For example, that no-script dataset containing ZIP files, raises NonMatchingSplitsSizesError: ```python In [2]: ds = load_dataset("sidovic/LearningQ-qg") NonMatchingSplitsSizesError: [ { ...
albertvillanova
https://github.com/huggingface/datasets/issues/6207
null
false
1,879,473,745
6,206
When calling load_dataset, raise error: pyarrow.lib.ArrowInvalid: offset overflow while concatenating arrays
closed
[ "I solved the problem by modifying the \"self DEFAULT_WRITER_BATCH_SIZE\" in \"class MyDataset (datasets. GeneratorBasedBuilder) : __init__\"", "same problem, and this solution worked me also - you can set this var by setting the keyword argument `writer_batch_size=...` in `load_dataset(...,writer_batch_size=...)...
2023-09-04T04:14:00
2024-04-17T15:53:29
2023-09-04T06:05:49
### Describe the bug When calling load_dataset, raise error ``` Traceback (most recent call last): File "/home/aihao/miniconda3/envs/torch/lib/python3.11/site-packages/datasets/builder.py", line 1694, in _pre pare_split_single ...
aihao2000
https://github.com/huggingface/datasets/issues/6206
null
false
1,877,491,602
6,203
Support loading from a DVC remote repository
closed
[ "(cross-posting from the linked DVC issue)\r\n\r\nI think this should already work out of the box with the current `datasets` and `dvc.api` releases by passing the correct `storage_options` into the datasets calls. `storage_options` is essentially just the kwargs dict that gets passed to the fsspec fs constructor.\...
2023-09-01T14:04:52
2023-09-15T15:11:27
2023-09-15T15:11:27
### Feature request Adding support for loading a file from a DVC repository, tracked remotely on a SCM. ### Motivation DVC is a popular version control system to version and manage datasets. The files are stored on a remote object storage platform, but they are tracked using Git. Integration with DVC is possible thr...
bilelomrani1
https://github.com/huggingface/datasets/issues/6203
null
false
1,876,630,351
6,202
avoid downgrading jax version
closed
[ "https://github.com/huggingface/datasets/blob/main/setup.py#L236\r\nCurrently has the highest version at 0.3.25; Not sure if there is any reason for this, other than that was the tested version?" ]
2023-09-01T02:57:57
2023-10-12T16:28:59
2023-10-12T16:28:59
### Feature request Whenever I `pip install datasets[jax]` it downgrades jax to version 0.3.25. I seem to be able to install this library first then upgrade jax back to version 0.4.13. ### Motivation It would be nice to not overwrite currently installed version of jax if possible. ### Your contribution I...
chrisflesher
https://github.com/huggingface/datasets/issues/6202
null
false
1,875,256,775
6,201
Fix to_json ValueError and remove pandas pin
closed
[ "<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...
2023-08-31T10:38:08
2023-09-05T11:07:07
2023-09-05T10:58:21
This PR fixes the root cause of the issue: - #6197 This PR also removes the temporary pin of `pandas` introduced by: - #6200 Note that for orient in ['records', 'values'], index value is ignored but - in `pandas` < 2.1.0, a ValueError is raised if not index and orient not in ['split', 'table'] - for orien...
albertvillanova
https://github.com/huggingface/datasets/pull/6201
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6201", "html_url": "https://github.com/huggingface/datasets/pull/6201", "diff_url": "https://github.com/huggingface/datasets/pull/6201.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6201.patch", "merged_at": "2023-09-05T10:58...
true
1,875,169,551
6,200
Temporarily pin pandas < 2.1.0
closed
[ "_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...
2023-08-31T09:45:17
2023-08-31T10:33:24
2023-08-31T10:24:38
Temporarily pin `pandas` < 2.1.0 until permanent solution is found. Hot fix #6197.
albertvillanova
https://github.com/huggingface/datasets/pull/6200
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6200", "html_url": "https://github.com/huggingface/datasets/pull/6200", "diff_url": "https://github.com/huggingface/datasets/pull/6200.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6200.patch", "merged_at": "2023-08-31T10:24...
true
1,875,165,185
6,199
Use load_dataset for local json files, but it not works
open
[ "Hugging Face's datasets library may prioritize remote configurations. Make sure there are no conflicting configurations causing the library to prefer downloading data\r\nMay be try debugging\r\nraw_datasets = load_dataset('json', data_files=data_files)\r\nprint(raw_datasets)\r\n", "It doesn't download them but ...
2023-08-31T09:42:34
2023-08-31T19:05:07
null
### Describe the bug when I use load_dataset to load my local datasets,it always goes to Hugging Face to download the data instead of loading the local dataset. ### Steps to reproduce the bug `raw_datasets = load_dataset( ‘json’, data_files=data_files)` ### Expected behavior ![image](https://gi...
Garen-in-bush
https://github.com/huggingface/datasets/issues/6199
null
false
1,875,092,027
6,198
Preserve split order in DataFilesDict
closed
[ "_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...
2023-08-31T09:00:26
2023-08-31T13:57:31
2023-08-31T13:48:42
After investigation, I have found that this copy forces the splits to be sorted alphabetically: https://github.com/huggingface/datasets/blob/029227a116c14720afca71b9b22e78eb2a1c09a6/src/datasets/builder.py#L556 This PR removes the alphabetically sort of `DataFilesDict` keys. - Note that for a `dict`, the order of k...
albertvillanova
https://github.com/huggingface/datasets/pull/6198
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6198", "html_url": "https://github.com/huggingface/datasets/pull/6198", "diff_url": "https://github.com/huggingface/datasets/pull/6198.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6198.patch", "merged_at": "2023-08-31T13:48...
true
1,875,078,155
6,197
ValueError: 'index=True' is only valid when 'orient' is 'split', 'table', 'index', or 'columns'
closed
[ "Thanks for reporting. We are investigating it.", "This issue is caused by latest `pandas` release 2.1.0 (released yesterday Aug 30).\r\n\r\nSee: https://github.com/huggingface/datasets/actions/runs/6035484010/job/16375932085?pr=6198\r\n", "People using previous releases of `datasets` should pin `pandas` in the...
2023-08-31T08:51:50
2023-09-01T10:35:10
2023-08-31T10:24:40
### Describe the bug Saving a dataset `.to_json()` fails with a `ValueError` since the latest `pandas` [release](https://pandas.pydata.org/docs/dev/whatsnew/v2.1.0.html) (`2.1.0`) In their latest release we have: > Improved error handling when using [DataFrame.to_json()](https://pandas.pydata.org/docs/dev/refere...
exs-avianello
https://github.com/huggingface/datasets/issues/6197
null
false
1,875,070,972
6,196
Split order is not preserved
closed
[]
2023-08-31T08:47:16
2023-08-31T13:48:43
2023-08-31T13:48:43
I have noticed that in some cases the split order is not preserved. For example, consider a no-script dataset with configs: ```yaml configs: - config_name: default data_files: - split: train path: train.csv - split: test path: test.csv ``` - Note the defined split order is [train, test] On...
albertvillanova
https://github.com/huggingface/datasets/issues/6196
null
false
1,874,195,585
6,195
Force to reuse cache at given path
closed
[ "realized that need to pass the path at `cache_file_name` like\r\n\r\n```python\r\ntokenized_datasets = raw_datasets[\"train\"].map(\r\n tokenize_function,\r\n batched=True,\r\n num_proc=data_args.preprocessing_num_workers,\r\n remove_columns=[text_column_...
2023-08-30T18:44:54
2023-11-03T10:14:21
2023-08-30T19:00:45
### Describe the bug I have run the official example of MLM like: ```bash python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name togethercomputer/RedPajama-Data-1T \ --dataset_config_name arxiv \ --per_device_train_batch_size 10 \ --preprocessing_num_workers 20 ...
Luosuu
https://github.com/huggingface/datasets/issues/6195
null
false
1,872,598,223
6,194
Support custom fingerprinting with `Dataset.from_generator`
open
[ "The `fingerprint` parameter serves a slightly different purpose - we use it to inject a new fingerprint after transforming a `Dataset` (computed from the previous fingerprint + transform + transform args), e.g., to be able to compute the cache file for a transform. There is no concept of `fingerprint` before a `Da...
2023-08-29T22:43:13
2024-12-22T01:14:39
null
### Feature request When using `Dataset.from_generator`, the generator is hashed when building the fingerprint. Similar to `.map`, it would be interesting to let the user bypass this hashing by accepting a `fingerprint` argument to `.from_generator`. ### Motivation Using the `.from_generator` constructor with ...
bilelomrani1
https://github.com/huggingface/datasets/issues/6194
null
false
1,872,285,153
6,193
Dataset loading script method does not work with .pyc file
open
[ "Before dynamically loading `.py` scripts with `importlib.import_module`, we also parse their contents to check imports, which is tricky to implement for binary `.pyc` files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bi...
2023-08-29T19:35:06
2023-08-31T19:47:29
null
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
riteshkumarumassedu
https://github.com/huggingface/datasets/issues/6193
null
false
1,871,911,640
6,192
Set minimal fsspec version requirement to 2023.1.0
closed
[ "<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...
2023-08-29T15:23:41
2023-08-30T14:01:56
2023-08-30T13:51:32
Fix https://github.com/huggingface/datasets/issues/6141 Colab installs 2023.6.0, so we should be good 🙂
mariosasko
https://github.com/huggingface/datasets/pull/6192
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6192", "html_url": "https://github.com/huggingface/datasets/pull/6192", "diff_url": "https://github.com/huggingface/datasets/pull/6192.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6192.patch", "merged_at": "2023-08-30T13:51...
true
1,871,634,840
6,191
Add missing `revision` argument
closed
[ "_The documentation is not available anymore as the PR was closed or merged._", "I have found the same issue. Good fix. Should be merged as soon as possible.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_a...
2023-08-29T13:05:04
2023-09-04T06:38:17
2023-08-31T13:50:00
I've noticed that when you're not working on the main branch, there are sometimes errors in the files returned. After some investigation, I realized that the revision was not properly passed everywhere. This PR proposes a fix.
qgallouedec
https://github.com/huggingface/datasets/pull/6191
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6191", "html_url": "https://github.com/huggingface/datasets/pull/6191", "diff_url": "https://github.com/huggingface/datasets/pull/6191.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6191.patch", "merged_at": "2023-08-31T13:50...
true
1,871,582,175
6,190
`Invalid user token` even when correct user token is passed!
closed
[ "This is because `download_config.use_auth_token` is deprecated - you should use `download_config.token` instead", "Works! Thanks for the quick fix! <3" ]
2023-08-29T12:37:03
2023-08-29T13:01:10
2023-08-29T13:01:09
### Describe the bug I'm working on a dataset which comprises other datasets on the hub. URL: https://huggingface.co/datasets/open-asr-leaderboard/datasets-test-only Note: Some of the sub-datasets in this metadataset require explicit access. All the other datasets work fine, except, `common_voice`. ### Steps t...
Vaibhavs10
https://github.com/huggingface/datasets/issues/6190
null
false
1,871,569,855
6,189
Don't alter input in Features.from_dict
closed
[ "_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...
2023-08-29T12:29:47
2023-08-29T13:04:59
2023-08-29T12:52:48
null
lhoestq
https://github.com/huggingface/datasets/pull/6189
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6189", "html_url": "https://github.com/huggingface/datasets/pull/6189", "diff_url": "https://github.com/huggingface/datasets/pull/6189.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6189.patch", "merged_at": "2023-08-29T12:52...
true
1,870,987,640
6,188
[Feature Request] Check the length of batch before writing so that empty batch is allowed
closed
[ "I think this error means you filter all examples within an (input) batch by deleting its columns. In that case, to avoid the error, you can set the column value to an empty list (`input_batch[\"col\"] = []`) instead." ]
2023-08-29T06:37:34
2023-09-19T21:55:38
2023-09-19T21:55:37
### Use Case I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the following error will be thrown: ``` ValueError: Schema and number of arrays unequal `...
namespace-Pt
https://github.com/huggingface/datasets/issues/6188
null
false
1,870,936,143
6,187
Couldn't find a dataset script at /content/tsv/tsv.py or any data file in the same directory
open
[ "Hi! You can load this dataset with:\r\n```python\r\ndata_files = {\r\n \"train\": \"/content/PUBHEALTH/train.tsv\",\r\n \"validation\": \"/content/PUBHEALTH/dev.tsv\",\r\n \"test\": \"/content/PUBHEALTH/test.tsv\",\r\n}\r\n\r\ntsv_datasets_reloaded = load_dataset(\"csv\", data_files=data_files, sep=\"\\t\...
2023-08-29T05:49:56
2023-08-29T16:21:45
null
### Describe the bug ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) [<ipython-input-48-6a7b3e847019>](https://localhost:8080/#) in <cell line: 7>() 5 } 6 ----> 7 csv_datasets_reloaded = load_...
andysingal
https://github.com/huggingface/datasets/issues/6187
null
false
1,869,431,457
6,186
Feature request: add code example of multi-GPU processing
closed
[ "That'd be a great idea! @mariosasko or @lhoestq, would it be possible to fix the code snippet or do you have another suggested way for doing this?", "Indeed `if __name__ == \"__main__\"` is important in this case.\r\n\r\nNot sure about the imbalanced GPU usage though, but maybe you can try using the `torch.cuda....
2023-08-28T10:00:59
2024-10-07T09:39:51
2023-11-22T15:42:20
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
NielsRogge
https://github.com/huggingface/datasets/issues/6186
null
false
1,868,077,748
6,185
Error in saving the PIL image into *.arrow files using datasets.arrow_writer
open
[ "You can cast the `input_image` column to the `Image` type to fix the issue:\r\n```python\r\nds.cast_column(\"input_image\", datasets.Image())\r\n```" ]
2023-08-26T12:15:57
2023-08-29T14:49:58
null
### Describe the bug I am using the ArrowWriter from datasets.arrow_writer to save a json-style file as arrow files. Within the dictionary, it contains a feature called "image" which is a list of PIL.Image objects. I am saving the json using the following script: ``` def save_to_arrow(path,temp): with ArrowWri...
HaozheZhao
https://github.com/huggingface/datasets/issues/6185
null
false
1,867,766,143
6,184
Map cache does not detect function changes in another module
closed
[ "This issue is a duplicate of https://github.com/huggingface/datasets/issues/3297. This is a limitation of `dill`, a package we use for caching (non-`__main__` module objects are serialized by reference). You can find more info about it here: https://github.com/uqfoundation/dill/issues/424.\r\n\r\nIn your case, mo...
2023-08-25T22:59:14
2023-08-29T20:57:07
2023-08-29T20:56:49
```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' return {'text': text} data = datasets.load_dataset('json', ...
jonathanasdf
https://github.com/huggingface/datasets/issues/6184
null
false
1,867,743,276
6,183
Load dataset with non-existent file
closed
[ "Same problem", "This was fixed in https://github.com/huggingface/datasets/pull/6155, which will be included in the next release (or you can install `datasets` from source to use it immediately)." ]
2023-08-25T22:21:22
2023-08-29T13:26:22
2023-08-29T13:26:22
### Describe the bug When load a dataset from datasets and pass a wrong path to json with the data, error message does not contain something abount "wrong path" or "file do not exist" - ```SchemaInferenceError: Please pass `features` or at least one example when writing data``` ### Steps to reproduce the bug ...
freQuensy23-coder
https://github.com/huggingface/datasets/issues/6183
null
false
1,867,203,131
6,182
Loading Meteor metric in HF evaluate module crashes due to datasets import issue
closed
[ "Our minimal Python version requirement is 3.8, so we dropped `importlib_metadata`. \r\n\r\nFeel free to open a PR in the `evaluate` repo to replace the problematic import with\r\n```python\r\nif PY_VERSION < version.parse(\"3.8\"):\r\n import importlib_metadata\r\nelse:\r\n import importlib.metadata as impor...
2023-08-25T14:54:06
2023-09-04T16:41:11
2023-08-31T14:38:23
### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import load meteor = load("meteor") ``` produces the following error: ``` from d...
dsashulya
https://github.com/huggingface/datasets/issues/6182
null
false
1,867,035,522
6,181
Fix import in `image_load` doc
closed
[ "_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...
2023-08-25T13:12:19
2023-08-25T16:12:46
2023-08-25T16:02:24
Reported on [Discord](https://discord.com/channels/879548962464493619/1144295822209581168/1144295822209581168)
mariosasko
https://github.com/huggingface/datasets/pull/6181
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6181", "html_url": "https://github.com/huggingface/datasets/pull/6181", "diff_url": "https://github.com/huggingface/datasets/pull/6181.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6181.patch", "merged_at": "2023-08-25T16:02...
true
1,867,032,578
6,180
Use `hf-internal-testing` repos for hosting test dataset repos
closed
[ "_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...
2023-08-25T13:10:26
2023-08-25T16:58:02
2023-08-25T16:46:22
Use `hf-internal-testing` for hosting instead of the maintainers' dataset repos.
mariosasko
https://github.com/huggingface/datasets/pull/6180
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6180", "html_url": "https://github.com/huggingface/datasets/pull/6180", "diff_url": "https://github.com/huggingface/datasets/pull/6180.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6180.patch", "merged_at": "2023-08-25T16:46...
true
1,867,009,016
6,179
Map cache with tokenizer
open
[ "https://github.com/huggingface/datasets/issues/5147 may be a solution, by passing in the tokenizer in a fn_kwargs and ignoring it in the fingerprint calculations", "I have a similar issue. I was using a Jupyter Notebook and every time I call the map function it performs tokenization from scratch again although t...
2023-08-25T12:55:18
2023-08-31T15:17:24
null
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
jonathanasdf
https://github.com/huggingface/datasets/issues/6179
null
false
1,866,610,102
6,178
'import datasets' throws "invalid syntax error"
closed
[ "This seems to be related to your environment and not the `datasets` code (e.g., this could happen when exposing the Python 3.9 site packages to a lower Python version (interpreter))" ]
2023-08-25T08:35:14
2023-09-27T17:33:39
2023-09-27T17:33:39
### Describe the bug Hi, I have been trying to import the datasets library but I keep gtting this error. `Traceback (most recent call last): File /opt/local/jupyterhub/lib64/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code exec(code_obj, self.user_global_ns, self.user_ns) ...
elia-ashraf
https://github.com/huggingface/datasets/issues/6178
null
false
1,865,490,962
6,177
Use object detection images from `huggingface/documentation-images`
closed
[ "_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...
2023-08-24T16:16:09
2023-08-25T16:30:00
2023-08-25T16:21:17
null
mariosasko
https://github.com/huggingface/datasets/pull/6177
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6177", "html_url": "https://github.com/huggingface/datasets/pull/6177", "diff_url": "https://github.com/huggingface/datasets/pull/6177.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6177.patch", "merged_at": "2023-08-25T16:21...
true
1,864,436,408
6,176
how to limit the size of memory mapped file?
open
[ "Hi! Can you share the error this reproducer throws in your environment? `streaming=True` streams the dataset as it's iterated over without creating a memory-map file.", "The trace of the error. Streaming works but is slower.\r\n```\r\nRoot Cause (first observed failure):\r\n[0]:\r\n time : 2023-08-24_06:06...
2023-08-24T05:33:45
2023-10-11T06:00:10
null
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
williamium3000
https://github.com/huggingface/datasets/issues/6176
null
false
1,863,592,678
6,175
PyArrow 13 CI fixes
closed
[ "<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...
2023-08-23T15:45:53
2023-08-25T13:15:59
2023-08-25T13:06:52
Fixes: * bumps the PyArrow version check in the `cast_array_to_feature` to avoid the offset bug (still not fixed) * aligns the Pandas formatting tests with the Numpy ones (the current test fails due to https://github.com/apache/arrow/pull/35656, which requires `.to_pandas(coerce_temporal_nanoseconds=True)` to always ...
mariosasko
https://github.com/huggingface/datasets/pull/6175
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6175", "html_url": "https://github.com/huggingface/datasets/pull/6175", "diff_url": "https://github.com/huggingface/datasets/pull/6175.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6175.patch", "merged_at": "2023-08-25T13:06...
true
1,863,422,065
6,173
Fix CI for pyarrow 13.0.0
closed
[]
2023-08-23T14:11:20
2023-08-25T13:06:53
2023-08-25T13:06:53
pyarrow 13.0.0 just came out ``` FAILED tests/test_formatting.py::ArrowExtractorTest::test_pandas_extractor - AssertionError: Attributes of Series are different Attribute "dtype" are different [left]: datetime64[us, UTC] [right]: datetime64[ns, UTC] ``` ``` FAILED tests/test_table.py::test_cast_sliced_fi...
lhoestq
https://github.com/huggingface/datasets/issues/6173
null
false
1,863,318,027
6,172
Make Dataset streaming queries retryable
open
[ "Hi! The streaming mode also retries requests - `datasets.config.STREAMING_READ_MAX_RETRIES` (20 sec by default) controls the number of retries and `datasets.config.STREAMING_READ_RETRY_INTERVAL` (5 sec) the sleep time between retries.\r\n\r\n> At step 1800 I got a 504 HTTP status code error from Huggingface hub fo...
2023-08-23T13:15:38
2023-11-06T13:54:16
null
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
rojagtap
https://github.com/huggingface/datasets/issues/6172
null
false
1,862,922,767
6,171
Fix typo in about_mapstyle_vs_iterable.mdx
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6171). 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...
2023-08-23T09:21:11
2023-08-23T09:32:59
2023-08-23T09:21:19
null
lhoestq
https://github.com/huggingface/datasets/pull/6171
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6171", "html_url": "https://github.com/huggingface/datasets/pull/6171", "diff_url": "https://github.com/huggingface/datasets/pull/6171.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6171.patch", "merged_at": "2023-08-23T09:21...
true
1,862,705,731
6,170
feat: Return the name of the currently loaded file
open
[ "Your change adds a new element in the key used to avoid duplicates when generating the examples of a dataset. I don't think it fixes the issue you're trying to solve." ]
2023-08-23T07:08:17
2023-08-29T12:41:05
null
Added 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. I added this here https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/js...
Amitesh-Patel
https://github.com/huggingface/datasets/pull/6170
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6170", "html_url": "https://github.com/huggingface/datasets/pull/6170", "diff_url": "https://github.com/huggingface/datasets/pull/6170.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6170.patch", "merged_at": null }
true
1,862,360,199
6,169
Configurations in yaml not working
open
[ "Unfortunately, I cannot reproduce this behavior on my machine or Colab - the reproducer returns `['main_data', 'additional_data']` as expected.", "Thank you for looking into this, Mario. Is this on [my repository](https://huggingface.co/datasets/tsor13/test), or on another one that you have reproduced? Would you...
2023-08-23T00:13:22
2023-08-23T15:35:31
null
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
tsor13
https://github.com/huggingface/datasets/issues/6169
null
false
1,861,867,274
6,168
Fix ArrayXD YAML conversion
closed
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6168). 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...
2023-08-22T17:02:54
2023-12-12T15:06:59
2023-12-12T15:00:43
Replace the `shape` tuple with a list in the `ArrayXD` YAML conversion. Fix #6112
mariosasko
https://github.com/huggingface/datasets/pull/6168
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6168", "html_url": "https://github.com/huggingface/datasets/pull/6168", "diff_url": "https://github.com/huggingface/datasets/pull/6168.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6168.patch", "merged_at": "2023-12-12T15:00...
true
1,861,474,327
6,167
Allow hyphen in split name
closed
[ "_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...
2023-08-22T13:30:59
2024-01-11T06:31:31
2023-08-22T15:38:53
To fix https://discuss.huggingface.co/t/error-when-setting-up-the-dataset-viewer-streamingrowserror/51276.
mariosasko
https://github.com/huggingface/datasets/pull/6167
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6167", "html_url": "https://github.com/huggingface/datasets/pull/6167", "diff_url": "https://github.com/huggingface/datasets/pull/6167.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6167.patch", "merged_at": null }
true
1,861,259,055
6,166
Document BUILDER_CONFIG_CLASS
closed
[ "_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...
2023-08-22T11:27:41
2023-08-23T14:01:25
2023-08-23T13:52:36
Related to https://github.com/huggingface/datasets/issues/6130
lhoestq
https://github.com/huggingface/datasets/pull/6166
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6166", "html_url": "https://github.com/huggingface/datasets/pull/6166", "diff_url": "https://github.com/huggingface/datasets/pull/6166.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6166.patch", "merged_at": "2023-08-23T13:52...
true
1,861,124,284
6,165
Fix multiprocessing with spawn in iterable datasets
closed
[ "_The documentation is not available anymore as the PR was closed or merged._", "@lhoestq \r\nA test is failing, but I don't think it is due to my changes", "Good catch ! Could you add a test to make sure transformed IterableDataset objects are still picklable ?\r\n\r\nSomething like `test_pickle_after_many_tra...
2023-08-22T10:07:23
2023-08-29T13:27:14
2023-08-29T13:18:11
The "Spawn" method is preferred when multiprocessing on macOS or Windows systems, instead of the "Fork" method on linux systems. This causes some methods of Iterable Datasets to break when using a dataloader with more than 0 workers. I fixed the issue by replacing lambda and local methods which are not pickle-abl...
bruno-hays
https://github.com/huggingface/datasets/pull/6165
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6165", "html_url": "https://github.com/huggingface/datasets/pull/6165", "diff_url": "https://github.com/huggingface/datasets/pull/6165.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6165.patch", "merged_at": "2023-08-29T13:18...
true
1,859,560,007
6,164
Fix: Missing a MetadataConfigs init when the repo has a `datasets_info.json` but no README
closed
[ "_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...
2023-08-21T14:57:54
2023-08-21T16:27:05
2023-08-21T16:18:26
When I try to push to an arrow repo (can provide the link on Slack), it uploads the files but fails to update the metadata, with ``` File "app.py", line 123, in add_new_eval eval_results[level].push_to_hub(my_repo, token=TOKEN, split=SPLIT) File "blabla_my_env_path/lib/python3.10/site-packages/datasets/arro...
clefourrier
https://github.com/huggingface/datasets/pull/6164
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6164", "html_url": "https://github.com/huggingface/datasets/pull/6164", "diff_url": "https://github.com/huggingface/datasets/pull/6164.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6164.patch", "merged_at": "2023-08-21T16:18...
true
1,857,682,241
6,163
Error type: ArrowInvalid Details: Failed to parse string: '[254,254]' as a scalar of type int32
open
[ "Answered on the forum [here](https://discuss.huggingface.co/t/error-type-arrowinvalid-details-failed-to-parse-string-254-254-as-a-scalar-of-type-int32/51323).", "it seems that no answer in this link" ]
2023-08-19T11:34:40
2025-07-22T12:04:46
null
### Describe the bug I am getting the following error while I am trying to upload the CSV sheet to train a model. My CSV sheet content is exactly same as shown in the example CSV file in the Auto Train page. Attaching screenshot of error for reference. I have also tried converting the index of the answer that are inte...
shishirCTC
https://github.com/huggingface/datasets/issues/6163
null
false
1,856,198,342
6,162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
open
[ "Hi ! Feel free to open a discussion at https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T/discussions to ask the file to be fixed (or directly open a PR with the fixed file)\r\n\r\n`datasets` expects all the examples to have the same fields", "@lhoestq I think the problem is caused by the fact th...
2023-08-18T07:19:39
2023-08-18T17:00:35
null
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
rbrugaro
https://github.com/huggingface/datasets/issues/6162
null
false
1,855,794,354
6,161
Fix protocol prefix for Beam
closed
[ "<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...
2023-08-17T22:40:37
2024-03-18T17:01:21
2024-03-18T17:01:21
Fix #6147
mariosasko
https://github.com/huggingface/datasets/pull/6161
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6161", "html_url": "https://github.com/huggingface/datasets/pull/6161", "diff_url": "https://github.com/huggingface/datasets/pull/6161.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6161.patch", "merged_at": null }
true
1,855,760,543
6,160
Fix Parquet loading with `columns`
closed
[ "_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...
2023-08-17T21:58:24
2023-08-17T22:44:59
2023-08-17T22:36:04
Fix #6149
mariosasko
https://github.com/huggingface/datasets/pull/6160
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6160", "html_url": "https://github.com/huggingface/datasets/pull/6160", "diff_url": "https://github.com/huggingface/datasets/pull/6160.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6160.patch", "merged_at": "2023-08-17T22:36...
true
1,855,691,512
6,159
Add `BoundingBox` feature
open
[ "My proposal would look like this:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\nfrom datasets.features import Sequence, BboxFeature\r\n\r\n# load images along with boxes\r\ndataset = load_dataset(\"imagefolder\", data_dir=\"/path/to/folder\", split=\"train\")\r\n\r\n# map the boxes column to the appropr...
2023-08-17T20:49:51
2024-11-18T17:58:43
null
... to make working with object detection datasets easier. Currently, `Sequence(int_or_float, length=4)` can be used to represent this feature optimally (in the storage backend), so I only see this feature being useful if we make it work with the viewer. Also, bounding boxes usually come in 4 different formats (explain...
mariosasko
https://github.com/huggingface/datasets/issues/6159
null
false
1,855,374,220
6,158
[docs] Complete `to_iterable_dataset`
closed
[ "_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...
2023-08-17T17:02:11
2023-08-17T19:24:20
2023-08-17T19:13:15
Finishes the `to_iterable_dataset` documentation by adding it to the relevant sections in the tutorial and guide.
stevhliu
https://github.com/huggingface/datasets/pull/6158
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6158", "html_url": "https://github.com/huggingface/datasets/pull/6158", "diff_url": "https://github.com/huggingface/datasets/pull/6158.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6158.patch", "merged_at": "2023-08-17T19:13...
true
1,855,265,663
6,157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
closed
[ "Thanks for reporting, but we can only fix this issue if you can provide a reproducer that consistently reproduces it.", "@mariosasko Ok. What exactly does it mean to provide a reproducer", "To provide a code that reproduces the issue :)", "@mariosasko I complete the above code, is it enough?", "@mariosasko...
2023-08-17T15:48:11
2023-09-27T17:36:14
2023-09-27T17:36:14
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
aihao2000
https://github.com/huggingface/datasets/issues/6157
null
false
1,854,768,618
6,156
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset
closed
[ "@lhoestq ", "`_effective_generator` returns a RNG that takes into account `self._epoch` and the current dataset's base shuffling RNG (which can be set by specifying `seed=` in `.shuffle() for example`).\r\n\r\nTo fix your error you can pass `seed=` to `.shuffle()`. And the shuffling will depend on both this seed...
2023-08-17T10:58:20
2023-08-17T14:33:15
2023-08-17T14:33:14
### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7cb104eac4106bdc6ec0292f0dc61a/src/datasets/iterable_dataset.py#L1174-L1177 My question ...
npuichigo
https://github.com/huggingface/datasets/issues/6156
null
false
1,854,661,682
6,155
Raise FileNotFoundError when passing data_files that don't exist
closed
[ "_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...
2023-08-17T09:49:48
2023-08-18T13:45:58
2023-08-18T13:35:13
e.g. when running `load_dataset("parquet", data_files="doesnt_exist.parquet")`
lhoestq
https://github.com/huggingface/datasets/pull/6155
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6155", "html_url": "https://github.com/huggingface/datasets/pull/6155", "diff_url": "https://github.com/huggingface/datasets/pull/6155.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6155.patch", "merged_at": "2023-08-18T13:35...
true
1,854,595,943
6,154
Use yaml instead of get data patterns when possible
closed
[ "_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...
2023-08-17T09:17:05
2023-08-17T20:46:25
2023-08-17T20:37:19
This would make the data files resolution faster: no need to list all the data files to infer the dataset builder to use. fix https://github.com/huggingface/datasets/issues/6140
lhoestq
https://github.com/huggingface/datasets/pull/6154
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6154", "html_url": "https://github.com/huggingface/datasets/pull/6154", "diff_url": "https://github.com/huggingface/datasets/pull/6154.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6154.patch", "merged_at": "2023-08-17T20:37...
true
1,852,494,646
6,152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
closed
[ "@lhoestq ", "Makes sense, I guess this can be fixed in the load_dataset_builder method.\r\nIt concerns every packaged builder I think (see values in `_PACKAGED_DATASETS_MODULES`)", "I think the behavior is related to these lines, which short circuited the error handling.\r\nhttps://github.com/huggingface/datas...
2023-08-16T04:38:09
2025-06-18T14:18:42
2025-06-18T14:18:42
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
npuichigo
https://github.com/huggingface/datasets/issues/6152
null
false
1,851,497,818
6,151
Faster sorting for single key items
closed
[ "`Dataset.sort` essentially does the same thing except it uses `pyarrow.compute.sort_indices` which doesn't involve copying the data into python objects (saving memory)\r\n\r\n```python\r\nsort_keys = [(col, \"ascending\") for col in column_names]\r\nindices = pc.sort_indices(self.data, sort_keys=sort_keys)\r\nretu...
2023-08-15T14:02:31
2023-08-21T14:38:26
2023-08-21T14:38:25
### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```python ds = datasets.load_dataset( "json"...
jackapbutler
https://github.com/huggingface/datasets/issues/6151
null
false
1,850,740,456
6,150
Allow dataset implement .take
open
[ "```\r\n dataset = IterableDataset(dataset) if type(dataset) != IterableDataset else dataset # to force dataset.take(batch_size) to work in non-streaming mode\r\n ```\r\n", "hf discuss: https://discuss.huggingface.co/t/how-does-one-make-dataset-take-512-work-with-streaming-false-with-hugging-face-data-set/5...
2023-08-15T00:17:51
2023-08-17T13:49:37
null
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
brando90
https://github.com/huggingface/datasets/issues/6150
null
false
1,850,700,624
6,149
Dataset.from_parquet cannot load subset of columns
closed
[ "Looks like this regression was introduced in `datasets==2.13.0` (`2.12.0` could load a subset of columns)\r\n\r\nThis does not appear to be fixed by https://github.com/huggingface/datasets/pull/6045 (bug still exists on `main`)" ]
2023-08-14T23:28:22
2023-08-17T22:36:05
2023-08-17T22:36:05
### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 273 to {'a': V...
dwyatte
https://github.com/huggingface/datasets/issues/6149
null
false
1,849,524,683
6,148
Ignore parallel warning in map_nested
closed
[ "_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...
2023-08-14T10:43:41
2023-08-17T08:54:06
2023-08-17T08:43:58
This warning message was shown every time you pass num_proc to `load_dataset` because of `map_nested` ``` parallel_map is experimental and might be subject to breaking changes in the future ``` This PR removes it for `map_nested`. If someone uses another parallel backend they're already warned when `parallel_ba...
lhoestq
https://github.com/huggingface/datasets/pull/6148
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6148", "html_url": "https://github.com/huggingface/datasets/pull/6148", "diff_url": "https://github.com/huggingface/datasets/pull/6148.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6148.patch", "merged_at": "2023-08-17T08:43...
true
1,848,914,830
6,147
ValueError when running BeamBasedBuilder with GCS path in cache_dir
closed
[ "The cause of the error seems to be that `datasets` adds \"gcs://\" as a schema, while `beam` checks only \"gs://\".\r\n\r\ndatasets: https://github.com/huggingface/datasets/blob/c02a44715c036b5261686669727394b1308a3a4b/src/datasets/builder.py#L822\r\n\r\nbeam: [link](https://github.com/apache/beam/blob/25e1a64641b...
2023-08-14T03:11:34
2024-03-18T16:59:15
2024-03-18T16:59:14
### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required dependency is installed, e.g., pip install apache-beam[gcp]. Path spec...
ktrk115
https://github.com/huggingface/datasets/issues/6147
null
false
1,848,417,366
6,146
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
closed
[ "I've tried clear the .cache file, doesn't work.", "This issue happens on AWS sagemaker", "This issue can happen if there is a directory named \"glue\" relative to the Python script with the `load_dataset` call (similar issue to this one: https://github.com/huggingface/datasets/issues/5228). Is this the case?",...
2023-08-13T05:17:56
2023-08-26T22:09:09
2023-08-26T22:09:09
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
yusx-swapp
https://github.com/huggingface/datasets/issues/6146
null
false
1,852,630,074
6,153
custom load dataset to hub
closed
[ "This is an issue for the [Datasets repo](https://github.com/huggingface/datasets).", "> This is an issue for the [Datasets repo](https://github.com/huggingface/datasets).\r\n\r\nThanks @sgugger , I guess I will wait for them to address the issue . Looking forward to hearing from them ", "You can use `.push_to_...
2023-08-13T04:42:22
2023-11-21T11:50:28
2023-10-08T17:04:16
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
andysingal
https://github.com/huggingface/datasets/issues/6153
null
false
1,847,811,310
6,145
Export to_iterable_dataset to document
closed
[ "_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...
2023-08-12T07:00:14
2023-08-15T17:04:01
2023-08-15T16:55:24
Fix the export of a missing method of `Dataset`
npuichigo
https://github.com/huggingface/datasets/pull/6145
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6145", "html_url": "https://github.com/huggingface/datasets/pull/6145", "diff_url": "https://github.com/huggingface/datasets/pull/6145.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6145.patch", "merged_at": "2023-08-15T16:55...
true
1,847,296,711
6,144
NIH exporter file not found
open
[ "related: https://github.com/huggingface/datasets/issues/3504", "another file not found:\r\n```\r\nTraceback (most recent call last):\r\n File \"/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py\", line 417, in _info\r\n await _file_info(\r\n File ...
2023-08-11T19:05:25
2023-08-14T23:28:38
null
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
brando90
https://github.com/huggingface/datasets/issues/6144
null
false
1,846,205,216
6,142
the-stack-dedup fails to generate
closed
[ "@severo ", "It seems that some parquet files have additional columns.\r\n\r\nI ran a scan and found that two files have the additional `__id__` column:\r\n\r\n1. `hf://datasets/bigcode/the-stack-dedup/data/numpy/data-00000-of-00001.parquet`\r\n2. `hf://datasets/bigcode/the-stack-dedup/data/omgrofl/data-00000-of-...
2023-08-11T05:10:49
2023-08-17T09:26:13
2023-08-17T09:26:13
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
michaelroyzen
https://github.com/huggingface/datasets/issues/6142
null
false
1,846,117,729
6,141
TypeError: ClientSession._request() got an unexpected keyword argument 'https'
closed
[ "Hi! I cannot reproduce this error on my machine or in Colab. Which version of `fsspec` do you have installed?" ]
2023-08-11T02:40:32
2023-08-30T13:51:33
2023-08-30T13:51:33
### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more informatio...
q935970314
https://github.com/huggingface/datasets/issues/6141
null
false
1,845,384,712
6,140
Misalignment between file format specified in configs metadata YAML and the inferred builder
closed
[]
2023-08-10T15:07:34
2023-08-17T20:37:20
2023-08-17T20:37:20
There is a misalignment between the format of the `data_files` specified in the configs metadata YAML (CSV): ```yaml configs: - config_name: default data_files: - split: train path: data.csv ``` and the inferred builder (JSON). Note there are multiple JSON files in the repo, but they do not...
albertvillanova
https://github.com/huggingface/datasets/issues/6140
null
false
1,844,991,583
6,139
Offline dataset viewer
closed
[ "Hi, thanks for the suggestion. It's not possible at the moment. The viewer is part of the Hub codebase and only works on public datasets. Also, it relies on [Datasets Server](https://github.com/huggingface/datasets-server/), which prepares the data and provides an API to access the rows, size, etc.\r\n\r\nIf you'r...
2023-08-10T11:30:00
2024-09-24T18:36:35
2023-09-29T13:10:22
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
yuvalkirstain
https://github.com/huggingface/datasets/issues/6139
null
false
1,844,952,496
6,138
Ignore CI lint rule violation in Pickler.memoize
closed
[ "<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...
2023-08-10T11:03:15
2023-08-10T11:31:45
2023-08-10T11:22:56
This PR ignores the violation of the lint rule E721 in `Pickler.memoize`. The lint rule violation was introduced in this PR: - #3182 @lhoestq is there a reason you did not use `isinstance` instead? As a hotfix, we just ignore the violation of the lint rule. Fix #6136.
albertvillanova
https://github.com/huggingface/datasets/pull/6138
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6138", "html_url": "https://github.com/huggingface/datasets/pull/6138", "diff_url": "https://github.com/huggingface/datasets/pull/6138.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6138.patch", "merged_at": "2023-08-10T11:22...
true