html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | Closing this issue as it is not related to the datasets library; rather, it's linked to platform-related issues. | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 18 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6537 | Adding support for netCDF (*.nc) files | Conceptually, we can use xarray to load the netCDF file, then xarray -> pandas -> pyarrow. | ### Feature request
netCDF (*.nc) is a file format for storing multidimensional scientific data, which is used by packages like `xarray` (labelled multi-dimensional arrays in Python). It would be nice to have native support for netCDF in `datasets`.
### Motivation
When uploading *.nc files onto Huggingface Hub throu... | 16 | Adding support for netCDF (*.nc) files
### Feature request
netCDF (*.nc) is a file format for storing multidimensional scientific data, which is used by packages like `xarray` (labelled multi-dimensional arrays in Python). It would be nice to have native support for netCDF in `datasets`.
### Motivation
When upload... | [
-0.38227784633636475,
-0.145077645778656,
-0.011451074853539467,
0.0008690357208251953,
-0.07568597048521042,
0.011975705623626709,
-0.23382778465747833,
0.4031374752521515,
-0.12558536231517792,
0.27975356578826904,
-0.4577072560787201,
0.04672297090291977,
-0.45220473408699036,
0.5326219... |
https://github.com/huggingface/datasets/issues/6537 | Adding support for netCDF (*.nc) files | I'd still need to verify that such a conversion would be lossless, especially for multi-dimensional data. | ### Feature request
netCDF (*.nc) is a file format for storing multidimensional scientific data, which is used by packages like `xarray` (labelled multi-dimensional arrays in Python). It would be nice to have native support for netCDF in `datasets`.
### Motivation
When uploading *.nc files onto Huggingface Hub throu... | 16 | Adding support for netCDF (*.nc) files
### Feature request
netCDF (*.nc) is a file format for storing multidimensional scientific data, which is used by packages like `xarray` (labelled multi-dimensional arrays in Python). It would be nice to have native support for netCDF in `datasets`.
### Motivation
When upload... | [
-0.42485079169273376,
-0.14924433827400208,
-0.016564099118113518,
-0.053587354719638824,
-0.08428353816270828,
0.03141968697309494,
-0.2771836221218109,
0.3843265473842621,
-0.10386544466018677,
0.33643078804016113,
-0.4233734905719757,
0.005744357593357563,
-0.5121451020240784,
0.5744466... |
https://github.com/huggingface/datasets/issues/6536 | datasets.load_dataset raises FileNotFoundError for datasets==2.16.0 | Hi ! Thanks for reporting
This is a bug in 2.16.0 for some datasets when `cache_dir` is a relative path. I opened https://github.com/huggingface/datasets/pull/6543 to fix this | ### Describe the bug
Seems `datasets.load_dataset` raises FileNotFoundError for some hub datasets with the latest `datasets==2.16.0`
### Steps to reproduce the bug
For example `pip install datasets==2.16.0`
then
```python
import datasets
datasets.load_dataset("wentingzhao/anthropic-hh-first-prompt", cache_di... | 26 | datasets.load_dataset raises FileNotFoundError for datasets==2.16.0
### Describe the bug
Seems `datasets.load_dataset` raises FileNotFoundError for some hub datasets with the latest `datasets==2.16.0`
### Steps to reproduce the bug
For example `pip install datasets==2.16.0`
then
```python
import datasets
d... | [
-0.7334116697311401,
-0.0737399235367775,
0.06582650542259216,
0.48953884840011597,
0.32654696702957153,
0.03555208444595337,
0.39158180356025696,
0.4182252287864685,
0.18511220812797546,
0.08222909271717072,
-0.02130044996738434,
0.38214045763015747,
-0.2367287427186966,
-0.12616986036300... |
https://github.com/huggingface/datasets/issues/6535 | IndexError: Invalid key: 47682 is out of bounds for size 0 while using PEFT | This is surely the same issue as https://discuss.huggingface.co/t/indexerror-invalid-key-16-is-out-of-bounds-for-size-0/14298/25 that comes from the `transformers` `Trainer`. You should add `remove_unused_columns=False` to `TrainingArguments`
Also check your logs: the `Trainer` should log the length of your dataset ... | ### Describe the bug
I am trying to fine-tune the t5 model on the paraphrasing task. While running the same code without-
model = get_peft_model(model, config)
the model trains without any issues. However, using the model returned from get_peft_model raises the following error due to datasets-
IndexError: Inv... | 41 | IndexError: Invalid key: 47682 is out of bounds for size 0 while using PEFT
### Describe the bug
I am trying to fine-tune the t5 model on the paraphrasing task. While running the same code without-
model = get_peft_model(model, config)
the model trains without any issues. However, using the model returned from... | [
-0.21287032961845398,
-0.5975079536437988,
-0.021510977298021317,
0.5354568362236023,
0.2863747477531433,
-0.0014904364943504333,
0.16571851074695587,
0.5132600665092468,
0.1871633231639862,
0.06414587795734406,
-0.05213215947151184,
-0.19202247262001038,
0.008951925672590733,
0.4490536749... |
https://github.com/huggingface/datasets/issues/6532 | [Feature request] Indexing datasets by a customly-defined id field to enable random access dataset items via the id | You can simply use a python dict as index:
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("BeIR/dbpedia-entity", "corpus", split="corpus")
>>> index = {key: idx for idx, key in enumerate(ds["_id"])}
>>> ds[index["<dbpedia:Pikachu>"]]
{'_id': '<dbpedia:Pikachu>',
'title': 'Pikachu',
't... | ### Feature request
Some datasets may contain an id-like field, for example the `id` field in [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) and the `_id` field in [BeIR/dbpedia-entity](https://huggingface.co/datasets/BeIR/dbpedia-entity). HF datasets support efficient random access via r... | 87 | [Feature request] Indexing datasets by a customly-defined id field to enable random access dataset items via the id
### Feature request
Some datasets may contain an id-like field, for example the `id` field in [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) and the `_id` field in [BeIR/d... | [
-0.18381492793560028,
0.1862204670906067,
-0.08400572836399078,
0.07549075782299042,
-0.17324188351631165,
0.13344833254814148,
0.427153617143631,
0.21261221170425415,
0.41409698128700256,
0.08223038166761398,
-0.14501743018627167,
0.451375275850296,
-0.1339075267314911,
0.1351485103368759... |
https://github.com/huggingface/datasets/issues/6532 | [Feature request] Indexing datasets by a customly-defined id field to enable random access dataset items via the id | Thanks for your reply. Yes, I can do that, but it is time-consuming to do that every time I launch the program (some datasets are extremely big). HF Datasets has a nice feature to support instant data loading and efficient random access via row ids. I'm curious if this beneficial feature could be further extended to cu... | ### Feature request
Some datasets may contain an id-like field, for example the `id` field in [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) and the `_id` field in [BeIR/dbpedia-entity](https://huggingface.co/datasets/BeIR/dbpedia-entity). HF datasets support efficient random access via r... | 59 | [Feature request] Indexing datasets by a customly-defined id field to enable random access dataset items via the id
### Feature request
Some datasets may contain an id-like field, for example the `id` field in [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) and the `_id` field in [BeIR/d... | [
-0.22591298818588257,
0.24693679809570312,
-0.0808679386973381,
0.09924039244651794,
-0.20660282671451569,
0.08933370560407639,
0.42412880063056946,
0.19678808748722076,
0.39071783423423767,
0.07601112872362137,
-0.12071589380502701,
0.4350597560405731,
-0.10443027317523956,
0.141660228371... |
https://github.com/huggingface/datasets/issues/6530 | Impossible to save a mapped dataset to disk | I solved it with `train_dataset.with_format(None)`
But then faced some more issues (which i later solved too).
Huggingface does not seem to care, so I do. Here is an updated training script which saves a pre-processed (mapped) dataset to your local directory if you specify `--save_precomputed_data_dir=DIR_NAME`. Th... | ### Describe the bug
I want to play around with different hyperparameters when training but don't want to re-map my dataset with 3 million samples each time for tens of hours when I [fully fine-tune SDXL](https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py).
After... | 140 | Impossible to save a mapped dataset to disk
### Describe the bug
I want to play around with different hyperparameters when training but don't want to re-map my dataset with 3 million samples each time for tens of hours when I [fully fine-tune SDXL](https://github.com/huggingface/diffusers/blob/main/examples/text_t... | [
-0.2592863440513611,
-0.19739553332328796,
0.07933427393436432,
0.14602425694465637,
0.6141027808189392,
0.16964304447174072,
0.29752081632614136,
0.24852529168128967,
0.13375835120677948,
0.26897186040878296,
-0.04194638133049011,
0.4190550148487091,
-0.3757169842720032,
0.100392706692218... |
https://github.com/huggingface/datasets/issues/6529 | Impossible to only download a test split | This feature has been proposed for a long time. I'm looking forward to the implementation. On clusters `streaming=True` is not an option since we do not have Internet on compute nodes. See: https://github.com/huggingface/datasets/discussions/1896#discussioncomment-2359593 | I've spent a significant amount of time trying to locate the split object inside my _split_generators() custom function.
Then after diving [in the code](https://github.com/huggingface/datasets/blob/5ff3670c18ed34fa8ddfa70a9aa403ae6cc9ad54/src/datasets/load.py#L2558) I realized that `download_and_prepare` is executed b... | 33 | Impossible to only download a test split
I've spent a significant amount of time trying to locate the split object inside my _split_generators() custom function.
Then after diving [in the code](https://github.com/huggingface/datasets/blob/5ff3670c18ed34fa8ddfa70a9aa403ae6cc9ad54/src/datasets/load.py#L2558) I realize... | [
-0.6835600137710571,
-0.0565028116106987,
-0.032896701246500015,
0.08022906631231308,
-0.04810930788516998,
-0.0803137943148613,
0.2135942578315735,
0.40247973799705505,
0.051800090819597244,
0.3356485366821289,
-0.352792888879776,
0.023413686081767082,
0.0721280500292778,
0.50517636537551... |
https://github.com/huggingface/datasets/issues/6524 | Streaming the Pile: Missing Files | Hello @FelixLabelle,
As you can see in the Community tab of the corresponding dataset, it is a known issue: https://huggingface.co/datasets/EleutherAI/pile/discussions/15
The data has been taken down due to reported copyright infringement.
Feel free to continue the discussion there. | ### Describe the bug
The pile does not stream, a "File not Found error" is returned. It looks like the Pile's files have been moved.
### Steps to reproduce the bug
To reproduce run the following code:
```
from datasets import load_dataset
dataset = load_dataset('EleutherAI/pile', 'en', split='train', streamin... | 38 | Streaming the Pile: Missing Files
### Describe the bug
The pile does not stream, a "File not Found error" is returned. It looks like the Pile's files have been moved.
### Steps to reproduce the bug
To reproduce run the following code:
```
from datasets import load_dataset
dataset = load_dataset('EleutherAI/... | [
-0.010011963546276093,
-0.0032870545983314514,
0.022553451359272003,
0.16257643699645996,
0.1053953543305397,
0.04117199778556824,
0.24604424834251404,
0.3479253351688385,
0.035747431218624115,
0.07959219813346863,
0.07477732747793198,
0.17447493970394135,
-0.15698176622390747,
0.047470703... |
https://github.com/huggingface/datasets/issues/6521 | The order of the splits is not preserved | After investigation, I think the issue was introduced by the use of the Parquet export:
- #6448
I am proposing a fix.
CC: @lhoestq | We had a regression and the order of the splits is not preserved. They are alphabetically sorted, instead of preserving original "train", "validation", "test" order.
Check: In branch "main"
```python
In [9]: dataset = load_dataset("adversarial_qa", '"adversarialQA")
In [10]: dataset
Out[10]:
DatasetDict({
... | 24 | The order of the splits is not preserved
We had a regression and the order of the splits is not preserved. They are alphabetically sorted, instead of preserving original "train", "validation", "test" order.
Check: In branch "main"
```python
In [9]: dataset = load_dataset("adversarial_qa", '"adversarialQA")
In... | [
0.06278690695762634,
-0.09385653585195541,
-0.061401739716529846,
0.1778932511806488,
0.1143125370144844,
-0.1434212625026703,
0.1864897459745407,
0.014444030821323395,
0.05687864497303963,
0.07198089361190796,
0.03695257008075714,
0.29690486192703247,
0.03535196930170059,
0.14106637239456... |
https://github.com/huggingface/datasets/issues/6506 | Incorrect test set labels for RTE and CoLA datasets via load_dataset | As this is a specific issue of the "glue" dataset, I have transferred it to the dataset Discussion page: https://huggingface.co/datasets/glue/discussions/15
Let's continue the discussion there! | ### Describe the bug
The test set labels for the RTE and CoLA datasets when loading via datasets load_dataset are all -1.
Edit: It appears this is also the case for every other dataset except for MRPC (stsb, sst2, qqp, mnli (both matched and mismatched), qnli, wnli, ax). Is this intended behavior to safeguard the t... | 25 | Incorrect test set labels for RTE and CoLA datasets via load_dataset
### Describe the bug
The test set labels for the RTE and CoLA datasets when loading via datasets load_dataset are all -1.
Edit: It appears this is also the case for every other dataset except for MRPC (stsb, sst2, qqp, mnli (both matched and mis... | [
-0.11327113211154938,
-0.1245073676109314,
-0.012102027423679829,
0.3323032259941101,
0.026470990851521492,
0.14775624871253967,
0.4843369722366333,
0.1177990585565567,
0.2665039002895355,
0.07214003056287766,
-0.22635610401630402,
0.39532560110092163,
-0.024147801101207733,
0.455059885978... |
https://github.com/huggingface/datasets/issues/6505 | Got stuck when I trying to load a dataset | I ran into the same problem when I used a server cluster (Slurm system managed) that couldn't load any of the huggingface datasets or models, but it worked on my laptop. I suspected some system configuration-related problem, but I had no idea.
My problems are consistent with [issue #2618](https://github.com/huggingfa... | ### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = load_dataset('json', data_files='mypath/oaast_r... | 59 | Got stuck when I trying to load a dataset
### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = loa... | [
-0.14756199717521667,
-0.2995699346065521,
-0.0653565526008606,
0.31419837474823,
0.33236753940582275,
0.08560382574796677,
0.4291490912437439,
0.07434698939323425,
0.1930258572101593,
0.11410294473171234,
-0.14673036336898804,
0.46443212032318115,
0.2579030990600586,
-0.08644133061170578,... |
https://github.com/huggingface/datasets/issues/6505 | Got stuck when I trying to load a dataset | > I ran into the same problem when I used a server cluster (Slurm system managed) that couldn't load any of the huggingface datasets or models, but it worked on my laptop. I suspected some system configuration-related problem, but I had no idea. My problems are consistent with [issue #2618](https://github.com/huggingfa... | ### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = load_dataset('json', data_files='mypath/oaast_r... | 89 | Got stuck when I trying to load a dataset
### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = loa... | [
-0.14756199717521667,
-0.2995699346065521,
-0.0653565526008606,
0.31419837474823,
0.33236753940582275,
0.08560382574796677,
0.4291490912437439,
0.07434698939323425,
0.1930258572101593,
0.11410294473171234,
-0.14673036336898804,
0.46443212032318115,
0.2579030990600586,
-0.08644133061170578,... |
https://github.com/huggingface/datasets/issues/6505 | Got stuck when I trying to load a dataset | I am having the same issue on a computing cluster but this works on my laptop as well. I instead have this error:
`/home/.conda/envs/py10/lib/python3.10/site-packages/filelock/_unix.py", line 43, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 5] Input/output error`
the load_datase... | ### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = load_dataset('json', data_files='mypath/oaast_r... | 58 | Got stuck when I trying to load a dataset
### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = loa... | [
-0.14756199717521667,
-0.2995699346065521,
-0.0653565526008606,
0.31419837474823,
0.33236753940582275,
0.08560382574796677,
0.4291490912437439,
0.07434698939323425,
0.1930258572101593,
0.11410294473171234,
-0.14673036336898804,
0.46443212032318115,
0.2579030990600586,
-0.08644133061170578,... |
https://github.com/huggingface/datasets/issues/6505 | Got stuck when I trying to load a dataset | In my case, `.cahce` was in a shared folder. Moving it into the user's home folder fixed the problem. #2618 for more details | ### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = load_dataset('json', data_files='mypath/oaast_r... | 23 | Got stuck when I trying to load a dataset
### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = loa... | [
-0.14756199717521667,
-0.2995699346065521,
-0.0653565526008606,
0.31419837474823,
0.33236753940582275,
0.08560382574796677,
0.4291490912437439,
0.07434698939323425,
0.1930258572101593,
0.11410294473171234,
-0.14673036336898804,
0.46443212032318115,
0.2579030990600586,
-0.08644133061170578,... |
https://github.com/huggingface/datasets/issues/6505 | Got stuck when I trying to load a dataset | > In my case, `.cahce` was in a shared folder. Moving it into the user's home folder fixed the problem. #2618 for more details在我的情况下, `.cahce` 在一个共享文件夹中。将其移动到用户的主文件夹中解决了问题。 #2618 获取更多详细信息。
Can you be more specific? thank. | ### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = load_dataset('json', data_files='mypath/oaast_r... | 34 | Got stuck when I trying to load a dataset
### Describe the bug
Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records.
Here is my code:
from datasets import load_dataset
dataset = loa... | [
-0.14756199717521667,
-0.2995699346065521,
-0.0653565526008606,
0.31419837474823,
0.33236753940582275,
0.08560382574796677,
0.4291490912437439,
0.07434698939323425,
0.1930258572101593,
0.11410294473171234,
-0.14673036336898804,
0.46443212032318115,
0.2579030990600586,
-0.08644133061170578,... |
https://github.com/huggingface/datasets/issues/6496 | Error when writing a dataset to HF Hub: A commit has happened since. Please refresh and try again. | I transferred from datasets-server, since the issue is more about `datasets` and the integration with `huggingface_hub`. | **Describe the bug**
Getting a `412 Client Error: Precondition Failed` when trying to write a dataset to the HF hub.
```
huggingface_hub.utils._errors.HfHubHTTPError: 412 Client Error: Precondition Failed for url: https://huggingface.co/api/datasets/GLorr/test-dask/commit/main (Request ID: Root=1-657ae26f-3bd92b... | 16 | Error when writing a dataset to HF Hub: A commit has happened since. Please refresh and try again.
**Describe the bug**
Getting a `412 Client Error: Precondition Failed` when trying to write a dataset to the HF hub.
```
huggingface_hub.utils._errors.HfHubHTTPError: 412 Client Error: Precondition Failed for url... | [
-0.049645330756902695,
-0.45720374584198,
0.11370250582695007,
0.05369773879647255,
0.10257484018802643,
-0.17956030368804932,
-0.017056021839380264,
0.2555897831916809,
-0.07975434511899948,
0.08024363219738007,
-0.24189507961273193,
-0.2631169557571411,
0.17090670764446259,
0.22325421869... |
https://github.com/huggingface/datasets/issues/6490 | `load_dataset(...,save_infos=True)` not working without loading script | Also, once the README.md exists in the python environment it is used when loading another dataset in the same format (e.g. json) since it always resolves the path to the same directory.
The consequence here is any other dataset won't load because of infos mismatch.
To reproduce this aspect:
1. Do a `load_datasets(..... | ### Describe the bug
It seems that saving a dataset infos back into the card file is not working for datasets without a loading script.
After tracking the problem a bit it looks like saving the infos uses `Builder.get_imported_module_dir()` as its destination directory.
Internally this is a call to `inspect.getfil... | 81 | `load_dataset(...,save_infos=True)` not working without loading script
### Describe the bug
It seems that saving a dataset infos back into the card file is not working for datasets without a loading script.
After tracking the problem a bit it looks like saving the infos uses `Builder.get_imported_module_dir()` as... | [
-0.4919635057449341,
0.22427961230278015,
0.13527803122997284,
0.4852665066719055,
0.47176849842071533,
0.11189969629049301,
0.3482665717601776,
0.15804527699947357,
0.22043921053409576,
0.08041861653327942,
0.14106868207454681,
0.4444196820259094,
-0.011690475977957249,
0.1958815604448318... |
https://github.com/huggingface/datasets/issues/6488 | 429 Client Error | I'm getting a similar issue even though I've already downloaded the dataset 😅
```
huggingface_hub.utils._errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/api/datasets/HuggingFaceM4/WebSight
``` | Hello, I was downloading the following dataset and after 20% of data was downloaded, I started getting error 429. It is not resolved since a few days. How should I resolve it?
Thanks
Dataset:
https://huggingface.co/datasets/cerebras/SlimPajama-627B
Error:
`requests.exceptions.HTTPError: 429 Client Error: Too M... | 25 | 429 Client Error
Hello, I was downloading the following dataset and after 20% of data was downloaded, I started getting error 429. It is not resolved since a few days. How should I resolve it?
Thanks
Dataset:
https://huggingface.co/datasets/cerebras/SlimPajama-627B
Error:
`requests.exceptions.HTTPError: 429 ... | [
0.02211528643965721,
-0.2960439920425415,
-0.005823493003845215,
0.38508784770965576,
0.11384490132331848,
-0.0017009451985359192,
-0.05616353079676628,
0.37640678882598877,
-0.20437386631965637,
0.0015219524502754211,
-0.1925979107618332,
-0.2489209771156311,
0.173841193318367,
-0.0484681... |
https://github.com/huggingface/datasets/issues/6483 | Iterable Dataset: rename column clashes with remove column | You can get the expected result by fixing typos in the snippet :)
```python
from datasets import load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
dataset_features = dataset.features.keys()
print("Original... | ### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`, which requires me to unify the column names. I would typic... | 75 | Iterable Dataset: rename column clashes with remove column
### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets... | [
0.14759640395641327,
0.2063913643360138,
0.013281583786010742,
0.04070223122835159,
0.21933528780937195,
0.34094274044036865,
0.47970402240753174,
0.06645648181438446,
-0.09174072742462158,
0.19398123025894165,
-0.1917894333600998,
0.302934855222702,
0.14437517523765564,
-0.030581768602132... |
https://github.com/huggingface/datasets/issues/6483 | Iterable Dataset: rename column clashes with remove column | Fixed code:
```python
from datasets import load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
dataset_features = dataset.features.keys()
print("Original features: ", dataset_features)
# rename "text" -... | ### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`, which requires me to unify the column names. I would typic... | 67 | Iterable Dataset: rename column clashes with remove column
### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets... | [
0.14759640395641327,
0.2063913643360138,
0.013281583786010742,
0.04070223122835159,
0.21933528780937195,
0.34094274044036865,
0.47970402240753174,
0.06645648181438446,
-0.09174072742462158,
0.19398123025894165,
-0.1917894333600998,
0.302934855222702,
0.14437517523765564,
-0.030581768602132... |
https://github.com/huggingface/datasets/issues/6484 | [Feature Request] Dataset versioning | Hello @kenfus, this is meant to be possible to do yes. Let me ping @lhoestq or @mariosasko from the `datasets` team (`huggingface_hub` is only the underlying library to download files from the Hub but here it looks more like a `datasets` problem). | **Is your feature request related to a problem? Please describe.**
I am working on a project, where I would like to test different preprocessing methods for my ML-data. Thus, I would like to work a lot with revisions and compare them. Currently, I was not able to make it work with the revision keyword because it was n... | 42 | [Feature Request] Dataset versioning
**Is your feature request related to a problem? Please describe.**
I am working on a project, where I would like to test different preprocessing methods for my ML-data. Thus, I would like to work a lot with revisions and compare them. Currently, I was not able to make it work wit... | [
-0.2728325128555298,
-0.24783597886562347,
-0.002608122304081917,
-0.0737680196762085,
-0.22250716388225555,
-0.015725702047348022,
-0.057077664881944656,
0.34137144684791565,
-0.17344817519187927,
-0.031363531947135925,
-0.15616731345653534,
0.23501448333263397,
-0.11500310152769089,
0.31... |
https://github.com/huggingface/datasets/issues/6478 | How to load data from lakefs | You can create a `pandas` DataFrame following [this](https://lakefs.io/data-version-control/dvc-using-python/) tutorial, and then convert this DataFrame to a `Dataset` with `datasets.Dataset.from_pandas`. For larger datasets (to memory map them), you can use `Dataset.from_generator` with a generator function that reads... | My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
| 40 | How to load data from lakefs
My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
You can create a `pandas` DataFrame following [this](https://lakefs.io/data-version-control/dvc-using-python/) t... | [
0.02660747990012169,
-0.14837081730365753,
-0.03026333451271057,
0.4822254180908203,
-0.07394744455814362,
0.07551727443933487,
0.08751225471496582,
0.09296497702598572,
0.4828345775604248,
-0.1932596117258072,
-0.2740992307662964,
0.447836697101593,
-0.0011052833870053291,
0.3326752781867... |
https://github.com/huggingface/datasets/issues/6478 | How to load data from lakefs | @mariosasko hello,
This can achieve and https://huggingface.co/datasets Does the same effect apply to the dataset? For example, downloading while using | My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
| 20 | How to load data from lakefs
My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
@mariosasko hello,
This can achieve and https://huggingface.co/datasets Does the same effect apply to the data... | [
-0.09849412739276886,
-0.08236898481845856,
-0.06874360144138336,
0.47989392280578613,
-0.06994622945785522,
0.12994644045829773,
-0.031182777136564255,
0.0508263036608696,
0.6055765151977539,
-0.1214132159948349,
-0.35074540972709656,
0.2735242545604706,
0.12763118743896484,
0.35848966240... |
https://github.com/huggingface/datasets/issues/6475 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed | ~~You will see this error if the cache dir filepath contains relative `..` paths. Use `os.path.realpath(_CACHE_DIR)` before passing it to the `load_dataset` function.~~ | ### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo... | 23 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Work... | [
-0.10396318137645721,
-0.1658564954996109,
-0.06416884064674377,
0.3617137670516968,
0.045910730957984924,
-0.1833963394165039,
-0.012238878756761551,
0.26278215646743774,
-0.2864784300327301,
-0.08144982159137726,
-0.02400197833776474,
0.0840771496295929,
-0.14902691543102264,
0.149505853... |
https://github.com/huggingface/datasets/issues/6475 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed | Based on the StackOverflow answer, this causes the error to go away:
```diff
diff --git a/table.py b/table.py
--- a/table.py
+++ b/table.py (date 1701824849806)
@@ -47,7 +47,7 @@
def _memory_mapped_record_batch_reader_from_file(filename: str) -> pa.RecordBatchStreamReader:
- memory_mapped_stream = pa.... | ### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo... | 56 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Work... | [
-0.10396318137645721,
-0.1658564954996109,
-0.06416884064674377,
0.3617137670516968,
0.045910730957984924,
-0.1833963394165039,
-0.012238878756761551,
0.26278215646743774,
-0.2864784300327301,
-0.08144982159137726,
-0.02400197833776474,
0.0840771496295929,
-0.14902691543102264,
0.149505853... |
https://github.com/huggingface/datasets/issues/6475 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed | I don't really comprehend what it is that `datasets` gave me when it downloaded the laion2B-en dataset, because nothing can seemingly read these 1024 .arrow files it is retrieving. Not `polars`, not `pyarrow`, it's not an `ipc` file, it's not a `parquet` file... | ### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo... | 43 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Work... | [
-0.10396318137645721,
-0.1658564954996109,
-0.06416884064674377,
0.3617137670516968,
0.045910730957984924,
-0.1833963394165039,
-0.012238878756761551,
0.26278215646743774,
-0.2864784300327301,
-0.08144982159137726,
-0.02400197833776474,
0.0840771496295929,
-0.14902691543102264,
0.149505853... |
https://github.com/huggingface/datasets/issues/6475 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed | Hi!
Instead of generating one (potentially large) Arrow file, we shard the generated data into 500 MB shards because memory-mapping large Arrow files can be problematic on some systems. Maybe deleting the dataset's cache and increasing the shard size (controlled with the `datasets.config.MAX_SHARD_SIZE` variable; e... | ### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo... | 130 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Work... | [
-0.10396318137645721,
-0.1658564954996109,
-0.06416884064674377,
0.3617137670516968,
0.045910730957984924,
-0.1833963394165039,
-0.012238878756761551,
0.26278215646743774,
-0.2864784300327301,
-0.08144982159137726,
-0.02400197833776474,
0.0840771496295929,
-0.14902691543102264,
0.149505853... |
https://github.com/huggingface/datasets/issues/6475 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed | Hmm, I have a feeling this works fine on Linux, and is a real bug for however `datasets` is doing the sharding on Windows. I will follow up, but I think this is a real bug. | ### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo... | 36 | laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug
I have downloaded laion2B-en, and I'm receiving the following error trying to load it:
```
Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s]
Traceback (most recent call last):
File "D:\Art-Work... | [
-0.10396318137645721,
-0.1658564954996109,
-0.06416884064674377,
0.3617137670516968,
0.045910730957984924,
-0.1833963394165039,
-0.012238878756761551,
0.26278215646743774,
-0.2864784300327301,
-0.08144982159137726,
-0.02400197833776474,
0.0840771496295929,
-0.14902691543102264,
0.149505853... |
https://github.com/huggingface/datasets/issues/6467 | New version release request | We will publish it soon (we usually do it in intervals of 1-2 months, so probably next week) | ### Feature request
Hi!
I am using `datasets` in library `xtuner` and am highly interested in the features introduced since v2.15.0.
To avoid installation from source in our pypi wheels, we are eagerly waiting for the new release. So, Does your team have a new release plan for v2.15.1 and could you please share ... | 18 | New version release request
### Feature request
Hi!
I am using `datasets` in library `xtuner` and am highly interested in the features introduced since v2.15.0.
To avoid installation from source in our pypi wheels, we are eagerly waiting for the new release. So, Does your team have a new release plan for v2.15... | [
-0.445797860622406,
0.29189902544021606,
-0.07614562660455704,
-0.06915648281574249,
0.025643663480877876,
-0.18820473551750183,
-0.005975153297185898,
0.29262658953666687,
-0.3280109465122223,
0.20499104261398315,
0.21357905864715576,
0.24996213614940643,
-0.37874558568000793,
0.436384797... |
https://github.com/huggingface/datasets/issues/6466 | Can't align optional features of struct | Friendly bump, I would be happy to work on this issue once I get the go-ahead from the dev team. | ### Describe the bug
Hello!
I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional.
I have a column named `speaker`, and this holds some information about a speaker.
```python
@dataclass
class Speaker:
name: str
email: Optional[str]
```
... | 20 | Can't align optional features of struct
### Describe the bug
Hello!
I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional.
I have a column named `speaker`, and this holds some information about a speaker.
```python
@dataclass
class Speaker:
... | [
0.05887921527028084,
-0.32638096809387207,
0.1339402198791504,
0.23355932533740997,
0.21374790370464325,
0.14838314056396484,
0.1363566368818283,
0.0305489432066679,
-0.12449480593204498,
-0.01858857274055481,
0.08468348532915115,
0.02271345630288124,
0.10085220634937286,
0.246346309781074... |
https://github.com/huggingface/datasets/issues/6466 | Can't align optional features of struct | Thanks for the PR!
I'm struggling with this as well and would love to see this PR merged. My case is slightly different, with keys completely missing rather than being `None`:
```
ds = Dataset.from_dict({'speaker': [{'name': 'Ben'}]})
ds2 = Dataset.from_dict({'speaker': [{'name': 'Fred', 'email': 'abc@aol.com'}... | ### Describe the bug
Hello!
I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional.
I have a column named `speaker`, and this holds some information about a speaker.
```python
@dataclass
class Speaker:
name: str
email: Optional[str]
```
... | 98 | Can't align optional features of struct
### Describe the bug
Hello!
I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional.
I have a column named `speaker`, and this holds some information about a speaker.
```python
@dataclass
class Speaker:
... | [
0.05887921527028084,
-0.32638096809387207,
0.1339402198791504,
0.23355932533740997,
0.21374790370464325,
0.14838314056396484,
0.1363566368818283,
0.0305489432066679,
-0.12449480593204498,
-0.01858857274055481,
0.08468348532915115,
0.02271345630288124,
0.10085220634937286,
0.246346309781074... |
https://github.com/huggingface/datasets/issues/6460 | jsonlines files don't load with `load_dataset` | Hi @serenalotreck,
We use Apache Arrow `pyarrow` to read jsonlines and it throws an error when trying to load your data files:
```python
In [1]: import pyarrow as pa
In [2]: data = pa.json.read_json("train.jsonl")
---------------------------------------------------------------------------
ArrowInvalid ... | ### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```
from datasets import load_dataset
dset = load_... | 171 | jsonlines files don't load with `load_dataset`
### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```... | [
-0.23013778030872345,
0.12285789847373962,
-0.04837002605199814,
0.44046550989151,
0.2559809386730194,
0.03217126429080963,
0.19228461384773254,
0.19167602062225342,
0.2536107003688812,
-0.10145920515060425,
0.21212731301784515,
0.38886600732803345,
-0.19203750789165497,
0.3685356080532074... |
https://github.com/huggingface/datasets/issues/6460 | jsonlines files don't load with `load_dataset` | Hi @albertvillanova,
Thanks for the explanation! To the best of my knowledge, arrays in a json [can contain multiple data types](https://docs.actian.com/ingres/11.2/index.html#page/SQLRef/Data_Types.htm), and I'm able to read these files with the `jsonlines` package. Is the requirement for arrays to only have one d... | ### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```
from datasets import load_dataset
dset = load_... | 85 | jsonlines files don't load with `load_dataset`
### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```... | [
-0.23013778030872345,
0.12285789847373962,
-0.04837002605199814,
0.44046550989151,
0.2559809386730194,
0.03217126429080963,
0.19228461384773254,
0.19167602062225342,
0.2536107003688812,
-0.10145920515060425,
0.21212731301784515,
0.38886600732803345,
-0.19203750789165497,
0.3685356080532074... |
https://github.com/huggingface/datasets/issues/6460 | jsonlines files don't load with `load_dataset` | Hi again @serenalotreck,
Yes, it is specific to PyArrow: as far as I know, Arrow does not support arrays with multiple data types.
As this is related specifically to your dataset structure (and not the `datasets` library), I have created a dedicated issue in your dataset page: https://huggingface.co/datasets/slot... | ### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```
from datasets import load_dataset
dset = load_... | 54 | jsonlines files don't load with `load_dataset`
### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```... | [
-0.23013778030872345,
0.12285789847373962,
-0.04837002605199814,
0.44046550989151,
0.2559809386730194,
0.03217126429080963,
0.19228461384773254,
0.19167602062225342,
0.2536107003688812,
-0.10145920515060425,
0.21212731301784515,
0.38886600732803345,
-0.19203750789165497,
0.3685356080532074... |
https://github.com/huggingface/datasets/issues/6460 | jsonlines files don't load with `load_dataset` | > Hi again @serenalotreck,
>
> Yes, it is specific to PyArrow: as far as I know, Arrow does not support arrays with multiple data types.
>
> As this is related specifically to your dataset structure (and not the `datasets` library), I have created a dedicated issue in your dataset page: https://huggingface.co/dat... | ### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```
from datasets import load_dataset
dset = load_... | 116 | jsonlines files don't load with `load_dataset`
### Describe the bug
While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`.
### Steps to reproduce the bug
Code:
```... | [
-0.23013778030872345,
0.12285789847373962,
-0.04837002605199814,
0.44046550989151,
0.2559809386730194,
0.03217126429080963,
0.19228461384773254,
0.19167602062225342,
0.2536107003688812,
-0.10145920515060425,
0.21212731301784515,
0.38886600732803345,
-0.19203750789165497,
0.3685356080532074... |
https://github.com/huggingface/datasets/issues/6457 | `TypeError`: huggingface_hub.hf_file_system.HfFileSystem.find() got multiple values for keyword argument 'maxdepth' | > Maybe this should go in datasets directly... anyways you can easily fix this error by updating datasets>=2.15.1.dev0.
@lhoestq @mariosasko for what I understand this is a bug fixed in `datasets` already, right? No need to do anything in `huggingface_hub`? | ### Describe the bug
Please see https://github.com/huggingface/huggingface_hub/issues/1872
### Steps to reproduce the bug
Please see https://github.com/huggingface/huggingface_hub/issues/1872
### Expected behavior
Please see https://github.com/huggingface/huggingface_hub/issues/1872
### Environment info
Please s... | 40 | `TypeError`: huggingface_hub.hf_file_system.HfFileSystem.find() got multiple values for keyword argument 'maxdepth'
### Describe the bug
Please see https://github.com/huggingface/huggingface_hub/issues/1872
### Steps to reproduce the bug
Please see https://github.com/huggingface/huggingface_hub/issues/1872
### Ex... | [
-0.035941243171691895,
-0.7556372880935669,
-0.036174580454826355,
0.3993551731109619,
0.20192906260490417,
-0.036666180938482285,
-0.061978694051504135,
0.3705708980560303,
0.15028256177902222,
0.22910135984420776,
-0.3483661115169525,
-0.07723753899335861,
-0.17496581375598907,
0.2422773... |
https://github.com/huggingface/datasets/issues/6446 | Speech Commands v2 dataset doesn't match AST-v2 config | You can use `.align_labels_with_mapping` on the dataset to align the labels with the model config.
Regarding the number of labels, only the special `_silence_` label corresponding to noise is missing, which is consistent with the model paper (reports training on 35 labels). You can run a `.filter` to drop it.
PS... | ### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,... | 68 | Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class ... | [
-0.1874723881483078,
-0.40251079201698303,
-0.002486320212483406,
0.5321387052536011,
0.23339547216892242,
0.21374231576919556,
0.22850123047828674,
0.29725173115730286,
-0.3711093068122864,
-0.07165190577507019,
-0.11736635863780975,
0.27156171202659607,
-0.22551622986793518,
-0.107366964... |
https://github.com/huggingface/datasets/issues/6446 | Speech Commands v2 dataset doesn't match AST-v2 config | Thanks, will keep that in mind. But I tried running `dataset_aligned = dataset.align_labels_with_mapping(model.config.id2label, 'label')`, and received this error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/victor/anaconda3/envs/transformers-v2/lib/python3.9/site-... | ### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,... | 101 | Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class ... | [
-0.1874723881483078,
-0.40251079201698303,
-0.002486320212483406,
0.5321387052536011,
0.23339547216892242,
0.21374231576919556,
0.22850123047828674,
0.29725173115730286,
-0.3711093068122864,
-0.07165190577507019,
-0.11736635863780975,
0.27156171202659607,
-0.22551622986793518,
-0.107366964... |
https://github.com/huggingface/datasets/issues/6446 | Speech Commands v2 dataset doesn't match AST-v2 config | Replacing `model.config.id2label` with `model.config.label2id` should fix the issue.
So, the full code to align the labels with the model config is as follows:
```python
from datasets import load_dataset
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
# extractor = AutoFeatureExt... | ### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,... | 57 | Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class ... | [
-0.1874723881483078,
-0.40251079201698303,
-0.002486320212483406,
0.5321387052536011,
0.23339547216892242,
0.21374231576919556,
0.22850123047828674,
0.29725173115730286,
-0.3711093068122864,
-0.07165190577507019,
-0.11736635863780975,
0.27156171202659607,
-0.22551622986793518,
-0.107366964... |
https://github.com/huggingface/datasets/issues/6443 | Trouble loading files defined in YAML explicitly | There is a typo in one of the file names - `data/edf.csv` should be renamed to `data/def.csv` 🙂. | Look at https://huggingface.co/datasets/severo/doc-yaml-2
It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration
```
You can select multiple files per split using a list of paths:
my_dataset_repository/
├── README.md
├── data/
│ ├── abc.csv
... | 18 | Trouble loading files defined in YAML explicitly
Look at https://huggingface.co/datasets/severo/doc-yaml-2
It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration
```
You can select multiple files per split using a list of paths:
my_dataset_repos... | [
-0.057436753064394,
-0.38541874289512634,
0.05792003497481346,
0.3542959690093994,
0.27944880723953247,
0.10894999653100967,
0.41074323654174805,
0.30620765686035156,
0.45095735788345337,
0.07631485909223557,
-0.22288596630096436,
-0.10569406300783157,
0.04646483436226845,
0.23681877553462... |
https://github.com/huggingface/datasets/issues/6443 | Trouble loading files defined in YAML explicitly | wow, I reviewed it twice to avoid being ashamed like that, but... I didn't notice the typo.
---
Besides this: do you think we would be able to improve the error message to make this clearer? | Look at https://huggingface.co/datasets/severo/doc-yaml-2
It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration
```
You can select multiple files per split using a list of paths:
my_dataset_repository/
├── README.md
├── data/
│ ├── abc.csv
... | 36 | Trouble loading files defined in YAML explicitly
Look at https://huggingface.co/datasets/severo/doc-yaml-2
It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration
```
You can select multiple files per split using a list of paths:
my_dataset_repos... | [
-0.057436753064394,
-0.38541874289512634,
0.05792003497481346,
0.3542959690093994,
0.27944880723953247,
0.10894999653100967,
0.41074323654174805,
0.30620765686035156,
0.45095735788345337,
0.07631485909223557,
-0.22288596630096436,
-0.10569406300783157,
0.04646483436226845,
0.23681877553462... |
https://github.com/huggingface/datasets/issues/6442 | Trouble loading image folder with additional features - metadata file ignored | I reproduced too:
- root: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-3)
- data/ dir: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-4)
- train/ dir: works (https://huggingface.co/datasets/severo/doc-image-5) | ### Describe the bug
Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions.
When loading a local image folder with captions using `datasets==2.13.0`
```
from datasets import load_dataset
data = load_dataset(<image_folder_path>)
data.column_names
```
... | 23 | Trouble loading image folder with additional features - metadata file ignored
### Describe the bug
Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions.
When loading a local image folder with captions using `datasets==2.13.0`
```
from datasets import... | [
-0.005256209522485733,
0.07954877614974976,
0.025517839938402176,
0.6268144845962524,
0.45238280296325684,
0.11177971214056015,
0.42082488536834717,
0.046340666711330414,
0.2590239942073822,
0.058994848281145096,
-0.07752703875303268,
0.4900437891483307,
-0.20371156930923462,
0.14985060691... |
https://github.com/huggingface/datasets/issues/6441 | Trouble Loading a Gated Dataset For User with Granted Permission | > Also when they try to click the url link for the dataset they get a 404 error.
This seems to be a Hub error then (cc @SBrandeis) | ### Describe the bug
I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get
`FileNotFoundError: Couldn't find a dataset script at .....` . Also when they try to click the url link for the d... | 28 | Trouble Loading a Gated Dataset For User with Granted Permission
### Describe the bug
I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get
`FileNotFoundError: Couldn't find a dataset sc... | [
-0.292269229888916,
-0.2370852530002594,
0.05975010618567467,
0.5143926739692688,
-0.0005606077611446381,
0.010804109275341034,
0.43759822845458984,
0.015283184126019478,
0.49582844972610474,
0.22912399470806122,
-0.24911528825759888,
-0.12773165106773376,
-0.1121755912899971,
0.1138853207... |
https://github.com/huggingface/datasets/issues/6441 | Trouble Loading a Gated Dataset For User with Granted Permission | Could you report this to https://discuss.huggingface.co/c/hub/23, providing the URL of the dataset, or at least if the dataset is public or private? | ### Describe the bug
I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get
`FileNotFoundError: Couldn't find a dataset script at .....` . Also when they try to click the url link for the d... | 22 | Trouble Loading a Gated Dataset For User with Granted Permission
### Describe the bug
I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get
`FileNotFoundError: Couldn't find a dataset sc... | [
-0.19479356706142426,
-0.2718205153942108,
0.054994452744722366,
0.56523197889328,
-0.0011483952403068542,
0.013401970267295837,
0.4236220717430115,
-0.05075959488749504,
0.4011136293411255,
0.14345961809158325,
-0.20484744012355804,
-0.15554076433181763,
-0.1591774970293045,
0.20025007426... |
https://github.com/huggingface/datasets/issues/6440 | `.map` not hashing under python 3.9 | Tried to upgrade Python to 3.11 - still get this message. A partial solution is to NOT use `num_proc` at all. It will be considerably longer to finish the job. | ### Describe the bug
The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message:
`Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> of the transform datasets.arrow_data... | 30 | `.map` not hashing under python 3.9
### Describe the bug
The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message:
`Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30... | [
-0.2377936840057373,
-0.5131181478500366,
0.03972356393933296,
-0.023582398891448975,
0.33920472860336304,
-0.013328537344932556,
0.28753432631492615,
0.2505492866039276,
0.0820208489894867,
0.08945101499557495,
0.005709229037165642,
0.4939454197883606,
-0.383242666721344,
0.06804022192955... |
https://github.com/huggingface/datasets/issues/6440 | `.map` not hashing under python 3.9 | Hi! The `model = torch.compile(model)` line is problematic for our hashing logic. We would have to merge https://github.com/huggingface/datasets/pull/5867 to support hashing `torch.compile`-ed models/functions.
I've started refactoring the hashing logic and plan to incorporate a fix for `torch.compile` as part of i... | ### Describe the bug
The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message:
`Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> of the transform datasets.arrow_data... | 52 | `.map` not hashing under python 3.9
### Describe the bug
The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message:
`Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30... | [
-0.2377936840057373,
-0.5131181478500366,
0.03972356393933296,
-0.023582398891448975,
0.33920472860336304,
-0.013328537344932556,
0.28753432631492615,
0.2505492866039276,
0.0820208489894867,
0.08945101499557495,
0.005709229037165642,
0.4939454197883606,
-0.383242666721344,
0.06804022192955... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | Thank you, @severo ! I would be more than happy to help in any way I can. I am not familiar with this repo's codebase, but I would be eager to contribute. :)
For the preview in Datasets Hub, I think it makes sense to just display the geospatial column as text. If there were a dataset loader, though, I think it shoul... | ### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 168 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.18842773139476776,
-0.007291905581951141,
-0.004543310031294823,
0.0861380398273468,
0.20921695232391357,
-0.24514836072921753,
0.1060415506362915,
0.41238346695899963,
0.17052951455116272,
0.05875938758254051,
-0.048211053013801575,
0.4327126741409302,
-0.1904793381690979,
0.6723257303... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | Just hitting into this same issue too showing GeoParquet files in Datasets Viewer. I tried to implement a custom reader for GeoParquet in https://huggingface.co/datasets/weiji14/clay_vector_embeddings/discussions/1, but it seems like HuggingFace has disabled datasets with custom loading scripts from using the dataset v... | ### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 132 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.13126929104328156,
-0.04446607828140259,
0.0009180661290884018,
0.19777345657348633,
0.22396178543567657,
-0.06378383934497833,
0.05105587840080261,
0.2574182152748108,
0.17870508134365082,
0.09568867087364197,
-0.19080086052417755,
0.4254343509674072,
-0.3530285358428955,
0.61353522539... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | Update: It looks like renaming the GeoParquet file to have a file extension of `*.parquet` works (see https://huggingface.co/datasets/weiji14/clay_vector_embeddings). HuggingFace's default parquet reader is able to read the GeoParquet file, though the geometry column is of an unknown type:
 is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 69 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.18707825243473053,
-0.14539124071598053,
-0.02183523401618004,
0.18567025661468506,
0.2559494972229004,
-0.14388911426067352,
-0.03531947359442711,
0.3086123764514923,
0.16421110928058624,
0.08731267601251602,
-0.026979725807905197,
0.3582472801208496,
-0.2457117885351181,
0.64648187160... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | @joshuasundance-swca, @weiji14, If I'm understanding this correctly, the code below wouldn't be recommended to due to dependency headaches? If that's the case, what solution would there be to see the geometry features for .gpq files in huggingfaceHub?
code for dataset_loader.py
```
import geopandas as gpd
# ... ... | ### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 157 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.20906633138656616,
-0.26573503017425537,
0.04979143664240837,
0.31051433086395264,
0.1762653887271881,
-0.1647113859653473,
0.10059715807437897,
0.3131273090839386,
0.4167425334453583,
0.03970736265182495,
-0.18783608078956604,
0.366243839263916,
-0.18265698850154877,
0.5925232768058777... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | Hi @mehrdad-es, I'm not sure if HuggingFace would be keen to add `geopandas` to HuggingFace Hub (maybe a question for @severo?). Having a geometry viewer would be an even bigger task, and if you're thinking of a map-viewer, it might involve some redesign of the website UI. Some of my colleagues are working on streamlin... | ### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 76 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.1316765546798706,
-0.40139129757881165,
-0.031732238829135895,
0.21440738439559937,
0.145236998796463,
-0.1536620855331421,
-0.09845881164073944,
0.303332656621933,
0.13120824098587036,
0.11506611853837967,
-0.1729734241962433,
0.28030723333358765,
-0.15342693030834198,
0.73905414342880... |
https://github.com/huggingface/datasets/issues/6438 | Support GeoParquet | I've created https://github.com/huggingface/datasets-server/issues/2416 to discuss the possibility of supporting (vectorial) geospatial columns in the dataset viewer, or in the converted parquet files.
At the same time, it would be super interesting to see what is already possible to do with a Hugging Face dataset t... | ### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub... | 88 | Support GeoParquet
### Feature request
Support the GeoParquet format
### Motivation
GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns.
It would be nice to be able to load this format with datasets, and more generally... | [
-0.05656285211443901,
-0.28124871850013733,
-0.01919877529144287,
0.11515984684228897,
0.22579270601272583,
-0.13627426326274872,
0.016782213002443314,
0.23339977860450745,
0.10431063175201416,
0.0815291479229927,
-0.06813223659992218,
0.22475256025791168,
-0.28454557061195374,
0.723669111... |
https://github.com/huggingface/datasets/issues/6437 | Problem in training iterable dataset | `split_dataset_by_node` doesn't give the exact same number of examples to each node in the case of iterable datasets, though it tries to be as equal as possible. In particular if your dataset is sharded and you have a number of shards that is a factor of the number of workers, then the shards will be evenly distributed... | ### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice... | 129 | Problem in training iterable dataset
### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distrib... | [
-0.35856759548187256,
-0.43623173236846924,
-0.06505601108074188,
0.2447272539138794,
0.1507219523191452,
0.00030840933322906494,
0.2204957902431488,
0.10808390378952026,
-0.03405938297510147,
0.030955813825130463,
0.07104900479316711,
0.40755894780158997,
-0.10079245269298553,
-0.14866584... |
https://github.com/huggingface/datasets/issues/6437 | Problem in training iterable dataset | > `split_dataset_by_node` doesn't give the exact same number of examples to each node in the case of iterable datasets, though it tries to be as equal as possible. In particular if your dataset is sharded and you have a number of shards that is a factor of the number of workers, then the shards will be evenly distribut... | ### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice... | 161 | Problem in training iterable dataset
### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distrib... | [
-0.35856759548187256,
-0.43623173236846924,
-0.06505601108074188,
0.2447272539138794,
0.1507219523191452,
0.00030840933322906494,
0.2204957902431488,
0.10808390378952026,
-0.03405938297510147,
0.030955813825130463,
0.07104900479316711,
0.40755894780158997,
-0.10079245269298553,
-0.14866584... |
https://github.com/huggingface/datasets/issues/6437 | Problem in training iterable dataset | Great ! Maybe it can be worth having an example that we can include in the docs for other people, did you need anything else than the Join context manager used with the model and optimizer ? | ### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice... | 37 | Problem in training iterable dataset
### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distrib... | [
-0.35856759548187256,
-0.43623173236846924,
-0.06505601108074188,
0.2447272539138794,
0.1507219523191452,
0.00030840933322906494,
0.2204957902431488,
0.10808390378952026,
-0.03405938297510147,
0.030955813825130463,
0.07104900479316711,
0.40755894780158997,
-0.10079245269298553,
-0.14866584... |
https://github.com/huggingface/datasets/issues/6437 | Problem in training iterable dataset | > Great ! Maybe it can be worth having an example that we can include in the docs for other people, did you need anything else than the Join context manager used with the model and optimizer ?
I think it's none. I have tried barrier() to solve the problem but I failed. Maybe it's a tool for other situation. | ### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice... | 60 | Problem in training iterable dataset
### Describe the bug
I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distrib... | [
-0.35856759548187256,
-0.43623173236846924,
-0.06505601108074188,
0.2447272539138794,
0.1507219523191452,
0.00030840933322906494,
0.2204957902431488,
0.10808390378952026,
-0.03405938297510147,
0.030955813825130463,
0.07104900479316711,
0.40755894780158997,
-0.10079245269298553,
-0.14866584... |
https://github.com/huggingface/datasets/issues/6436 | TypeError: <lambda>() takes 0 positional arguments but 1 was given | I meet the same problem,
and originally use
```python
locale.getpreferredencoding = lambda : "UTF-8"
```
and change to
```
locale.getpreferredencoding = lambda x: "UTF-8"
```
and it works. | ### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from datasets import Dataset
9 frames
[/usr/lo... | 28 | TypeError: <lambda>() takes 0 positional arguments but 1 was given
### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell l... | [
-0.24039383232593536,
-0.23061582446098328,
-0.07767070829868317,
0.1865110993385315,
0.14264242351055145,
-0.09058354049921036,
0.5438991189002991,
0.35171937942504883,
-0.2524186074733734,
0.11843139678239822,
-0.09356827288866043,
0.37045377492904663,
-0.03344399854540825,
-0.1358611136... |
https://github.com/huggingface/datasets/issues/6432 | load_dataset does not load all of the data in my input file | You should use `datasets.load_dataset` instead of `nlp.load_dataset`, as the `nlp` package is outdated.
If switching to `datasets.load_dataset` doesn't fix the issue, sharing the JSON file (feel free to replace the data with dummy data) would be nice so that we can reproduce it ourselves. | ### Describe the bug
I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements.
### Steps to reproduce the bug
train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, split=nlp.Split.TRAIN)
valid_dataset = nlp.load_dataset(data_... | 44 | load_dataset does not load all of the data in my input file
### Describe the bug
I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements.
### Steps to reproduce the bug
train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, spli... | [
-0.224443718791008,
-0.25275957584381104,
0.0006522201001644135,
0.5328266620635986,
0.18958553671836853,
-0.07044351100921631,
0.3324059844017029,
0.4615917503833771,
-0.04259952902793884,
-0.11367644369602203,
0.1374281644821167,
0.3046747148036957,
0.01671113446354866,
0.249824836850166... |
https://github.com/huggingface/datasets/issues/6422 | Allow to choose the `writer_batch_size` when using `save_to_disk` | We have a config variable that controls the batch size in `save_to_disk`:
```python
import datasets
datasets.config.DEFAULT_MAX_BATCH_SIZE = <smaller_batch_size>
...
ds.save_to_disk(...)
``` | ### Feature request
Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods.
### Motivation
The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R... | 21 | Allow to choose the `writer_batch_size` when using `save_to_disk`
### Feature request
Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods.
### Motivation
The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, ... | [
-0.4314616024494171,
-0.1805669516324997,
-0.05189831554889679,
-0.018587559461593628,
0.021445445716381073,
-0.026461932808160782,
0.37969619035720825,
0.23060080409049988,
-0.11458693444728851,
0.4054449200630188,
0.2738930881023407,
-0.0001532435417175293,
-0.38357529044151306,
0.353993... |
https://github.com/huggingface/datasets/issues/6422 | Allow to choose the `writer_batch_size` when using `save_to_disk` | Thank you for your answer!
From what I am reading in `https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/arrow_dataset.py`, every function involved (`select`, `shard`, ...) has a default hardcoded batch size of 1000, as such:
```python
def select(
self,
indices: Iterable,
k... | ### Feature request
Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods.
### Motivation
The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R... | 134 | Allow to choose the `writer_batch_size` when using `save_to_disk`
### Feature request
Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods.
### Motivation
The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, ... | [
-0.45306676626205444,
-0.10187312215566635,
0.004923377186059952,
0.059071000665426254,
0.054249107837677,
-0.09289413690567017,
0.3411106765270233,
0.13401758670806885,
-0.17516401410102844,
0.23810960352420807,
0.20967544615268707,
0.07316288352012634,
-0.35989850759506226,
0.14290834963... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | Very strange: `datasets-cli env`
>
> Copy-and-paste the text below in your GitHub issue.
>
> - `datasets` version: 2.9.0
> - Platform: macOS-14.0-arm64-arm-64bit
> - Python version: 3.9.13
> - PyArrow version: 8.0.0
> - Pandas version: 1.3.5
After updating datasets and pyarrow on base environment, although... | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 95 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace... | [
-0.12534506618976593,
-0.6960603594779968,
0.06675899028778076,
0.31610435247421265,
0.3677387833595276,
-0.2172713279724121,
0.5709386467933655,
0.08089055866003036,
-0.18083731830120087,
-0.04032093286514282,
-0.07140607386827469,
0.6541167497634888,
-0.0781998410820961,
0.20544643700122... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | Hi! The latest (patch) release (published a few hours ago) includes a fix for this [PyArrow security issue](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). To install it, run `pip install -U datasets`. | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 26 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace... | [
-0.12534506618976593,
-0.6960603594779968,
0.06675899028778076,
0.31610435247421265,
0.3677387833595276,
-0.2172713279724121,
0.5709386467933655,
0.08089055866003036,
-0.18083731830120087,
-0.04032093286514282,
-0.07140607386827469,
0.6541167497634888,
-0.0781998410820961,
0.20544643700122... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | > Hi! The latest (patch) release (published a few hours ago) includes a fix for this [PyArrow security issue](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). To install it, run `pip install -U datasets`.
Thanks for the info and the latest release, it seems this has also solved my issue. First run after the updat... | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 60 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace... | [
-0.12534506618976593,
-0.6960603594779968,
0.06675899028778076,
0.31610435247421265,
0.3677387833595276,
-0.2172713279724121,
0.5709386467933655,
0.08089055866003036,
-0.18083731830120087,
-0.04032093286514282,
-0.07140607386827469,
0.6541167497634888,
-0.0781998410820961,
0.20544643700122... |
https://github.com/huggingface/datasets/issues/6412 | User token is printed out! | Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning. | This line prints user token on command line! Is it safe?
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091 | 20 | User token is printed out!
This line prints user token on command line! Is it safe?
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091
Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning. | [
-0.0031757652759552,
-0.15867872536182404,
-0.12456424534320831,
-0.017054550349712372,
0.22019349038600922,
0.023465357720851898,
0.4189116656780243,
-0.06820280849933624,
0.0075026266276836395,
0.07574682682752609,
-0.00391933461651206,
0.028364168480038643,
-0.00901156198233366,
0.24575... |
https://github.com/huggingface/datasets/issues/6410 | Datasets does not load HuggingFace Repository properly | Hi! You can avoid the error by requesting only the `jsonl` files. `dataset = load_dataset("ai4privacy/pii-masking-200k", data_files=["*.jsonl"])`.
Our data file inference does not filter out (incompatible) `json` files because `json` and `jsonl` use the same builder. Still, I think the inference should differentiat... | ### Describe the bug
Dear Datasets team,
We just have published a dataset on Huggingface:
https://huggingface.co/ai4privacy
However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you please clarify how we can solve the issue? Please let me ... | 60 | Datasets does not load HuggingFace Repository properly
### Describe the bug
Dear Datasets team,
We just have published a dataset on Huggingface:
https://huggingface.co/ai4privacy
However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you ... | [
-0.20247381925582886,
-0.10110720992088318,
-0.02674979344010353,
0.7637386322021484,
0.29011261463165283,
-0.036524467170238495,
-0.002035807818174362,
0.24975982308387756,
0.01940387487411499,
0.02537655085325241,
-0.23642505705356598,
0.22523406147956848,
-0.05940558761358261,
0.3319405... |
https://github.com/huggingface/datasets/issues/6410 | Datasets does not load HuggingFace Repository properly | Raising an error if there is a mix of json and jsonl in the builder makes sense yea | ### Describe the bug
Dear Datasets team,
We just have published a dataset on Huggingface:
https://huggingface.co/ai4privacy
However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you please clarify how we can solve the issue? Please let me ... | 18 | Datasets does not load HuggingFace Repository properly
### Describe the bug
Dear Datasets team,
We just have published a dataset on Huggingface:
https://huggingface.co/ai4privacy
However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you ... | [
-0.20247381925582886,
-0.10110720992088318,
-0.02674979344010353,
0.7637386322021484,
0.29011261463165283,
-0.036524467170238495,
-0.002035807818174362,
0.24975982308387756,
0.01940387487411499,
0.02537655085325241,
-0.23642505705356598,
0.22523406147956848,
-0.05940558761358261,
0.3319405... |
https://github.com/huggingface/datasets/issues/6405 | ConfigNamesError on a simple CSV file | The viewer is working now.
Based on the repo commit history, the bug was due to the incorrect format of the `features` field in the README YAML (`Value` requires `dtype`, e.g., `Value("string")`, but it was not specified) | See https://huggingface.co/datasets/Nguyendo1999/mmath/discussions/1
```
Error code: ConfigNamesError
Exception: TypeError
Message: __init__() missing 1 required positional argument: 'dtype'
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runn... | 37 | ConfigNamesError on a simple CSV file
See https://huggingface.co/datasets/Nguyendo1999/mmath/discussions/1
```
Error code: ConfigNamesError
Exception: TypeError
Message: __init__() missing 1 required positional argument: 'dtype'
Traceback: Traceback (most recent call last):
File "... | [
-0.3728596866130829,
-0.28373628854751587,
-0.09386470913887024,
0.07334659993648529,
0.42209482192993164,
0.25863513350486755,
0.5016805529594421,
0.33707669377326965,
-0.02036520466208458,
0.27530673146247864,
0.42774268984794617,
-0.016561666503548622,
0.06351692229509354,
0.37214836478... |
https://github.com/huggingface/datasets/issues/6403 | Cannot import datasets on google colab (python 3.10.12) | You are most likely using an outdated version of `datasets` in the notebook, which can be verified with the `!datasets-cli env` command. You can run `!pip install -U datasets` to update the installation. | ### Describe the bug
I'm trying A full colab demo notebook of zero-shot-distillation from https://github.com/huggingface/transformers/tree/main/examples/research_projects/zero-shot-distillation but i got this type of error when importing datasets on my google colab (python version is 3.10.12)

### Describe the bug
I'm trying A full colab demo notebook of zero-shot-distillation from https://github.com/huggingface/transformers/tree/main/examples/research_projects/zero-shot-distillation but i got this type of error when importing datasets on my google ... | [
-0.22408881783485413,
-0.2938653230667114,
0.08976826071739197,
0.4306344985961914,
0.211708202958107,
-0.0820385217666626,
0.3200896084308624,
0.04798262193799019,
0.08357463777065277,
0.14291983842849731,
-0.5043290853500366,
0.30278438329696655,
-0.17893856763839722,
0.20810817182064056... |
https://github.com/huggingface/datasets/issues/6401 | dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working | Seems like it's a problem with the dataset, since in the [README](https://huggingface.co/datasets/Hyperspace-Technologies/scp-wiki-text/blob/main/README.md) the validation is not specified. Try cloning the dataset, removing the README (or validation split), and loading it locally/ | ### Describe the bug
```
(datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py
Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s]
Downloading data: 100%|█████████████████████████████████| 65.1M/65.1M [00:19<00:00, 3.38MB/s]
Downloading data: 100... | 31 | dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working
### Describe the bug
```
(datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py
Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s]
Downloading data: 100%|███████████████... | [
-0.43042606115341187,
-0.008431702852249146,
-0.09224669635295868,
0.250620037317276,
0.2844744324684143,
0.03460143506526947,
0.37043705582618713,
0.331123024225235,
-0.011478844098746777,
0.15837816894054413,
0.0520012229681015,
0.12657010555267334,
-0.14188876748085022,
0.34579816460609... |
https://github.com/huggingface/datasets/issues/6401 | dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working | @VarunNSrivastava thanks brother, working beautiful now
```
C:\_Work\_datasets>py dataset.py
Downloading data files: 100%|████████████████████████████████████████████████████████████████████| 3/3 [00:00<?, ?it/s]
Extracting data files: 100%|████████████████████████████████████████████████████████████| 3/3 [00:00<... | ### Describe the bug
```
(datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py
Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s]
Downloading data: 100%|█████████████████████████████████| 65.1M/65.1M [00:19<00:00, 3.38MB/s]
Downloading data: 100... | 48 | dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working
### Describe the bug
```
(datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py
Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s]
Downloading data: 100%|███████████████... | [
-0.43042606115341187,
-0.008431702852249146,
-0.09224669635295868,
0.250620037317276,
0.2844744324684143,
0.03460143506526947,
0.37043705582618713,
0.331123024225235,
-0.011478844098746777,
0.15837816894054413,
0.0520012229681015,
0.12657010555267334,
-0.14188876748085022,
0.34579816460609... |
https://github.com/huggingface/datasets/issues/6400 | Safely load datasets by disabling execution of dataset loading script | great idea IMO
this could be a `trust_remote_code=True` flag like in transformers. We could also default to loading the Parquet conversion rather than executing code (for dataset repos that have both) | ### Feature request
Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution.
Any suggested workarounds are welcome as well.
### Motivation
This is a security vulnerability that could lead to arbitrary code e... | 31 | Safely load datasets by disabling execution of dataset loading script
### Feature request
Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution.
Any suggested workarounds are welcome as well.
### Motivati... | [
-0.49187183380126953,
0.24664971232414246,
-0.06180714815855026,
0.07278330624103546,
0.1823982447385788,
-0.06257614493370056,
0.4756045639514923,
-0.0017523877322673798,
0.35007375478744507,
0.19620463252067566,
-0.030168166384100914,
0.4800986051559448,
-0.0962616503238678,
0.5082415938... |
https://github.com/huggingface/datasets/issues/6400 | Safely load datasets by disabling execution of dataset loading script | We added the `trust_remote_code` argument to `load_dataset()` in `datasets` 2.16:
- in the future users will have to pass trust_remote_code=True to use datasets with a script
- for now we just show a warning when a dataset script is used
- we fallback on the Hugging Face Parquet exports when possible (to keep compat... | ### Feature request
Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution.
Any suggested workarounds are welcome as well.
### Motivation
This is a security vulnerability that could lead to arbitrary code e... | 76 | Safely load datasets by disabling execution of dataset loading script
### Feature request
Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution.
Any suggested workarounds are welcome as well.
### Motivati... | [
-0.5202222466468811,
0.20792517066001892,
-0.08936731517314911,
0.1527644693851471,
0.19417232275009155,
-0.030967287719249725,
0.40098845958709717,
0.023934267461299896,
0.5325301289558411,
0.20426133275032043,
-0.026901964098215103,
0.5292143821716309,
-0.20548409223556519,
0.35524991154... |
https://github.com/huggingface/datasets/issues/6396 | Issue with pyarrow 14.0.1 | https://github.com/huggingface/datasets-server/pull/2089#pullrequestreview-1724449532
> Yes, I understand now: they have disabled their `PyExtensionType` and we use it in `datasets` for arrays... | See https://github.com/huggingface/datasets-server/pull/2089 for reference
```
from datasets import (Array2D, Dataset, Features)
feature_type = Array2D(shape=(2, 2), dtype="float32")
content = [[0.0, 0.0], [0.0, 0.0]]
features = Features({"col": feature_type})
dataset = Dataset.from_dict({"col": [content]}, fea... | 19 | Issue with pyarrow 14.0.1
See https://github.com/huggingface/datasets-server/pull/2089 for reference
```
from datasets import (Array2D, Dataset, Features)
feature_type = Array2D(shape=(2, 2), dtype="float32")
content = [[0.0, 0.0], [0.0, 0.0]]
features = Features({"col": feature_type})
dataset = Dataset.from_... | [
-0.10018600523471832,
0.1327694058418274,
-0.006541011855006218,
0.12114923447370529,
0.33292293548583984,
-0.0022716745734214783,
0.5476637482643127,
0.4272781014442444,
-0.4059031009674072,
-0.016827180981636047,
-0.043572403490543365,
0.5135800838470459,
-0.03857019543647766,
0.18583163... |
https://github.com/huggingface/datasets/issues/6395 | Add ability to set lock type | We've replaced our filelock implementation with the `filelock` package, so their repo is the right place to request this feature.
In the meantime, the following should work:
```python
import filelock
filelock.FileLock = filelock.SoftFileLock
import datasets
...
``` | ### Feature request
Allow setting file lock type, maybe from an environment variable
Currently, it only depends on whether fnctl is available:
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/utils/filelock.py#L463-L470C16
### Motivation
In my environment... | 37 | Add ability to set lock type
### Feature request
Allow setting file lock type, maybe from an environment variable
Currently, it only depends on whether fnctl is available:
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/utils/filelock.py#L463-L470C16
### ... | [
-0.3815121054649353,
-0.05841841548681259,
-0.07984372973442078,
-0.3621046543121338,
-0.15861408412456512,
-0.08662979304790497,
0.6261723041534424,
0.16512615978717804,
0.16967500746250153,
0.08532851934432983,
-0.3456929326057434,
0.2148352563381195,
-0.060488782823085785,
0.06277410686... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | Just ran into this working on data lib that's attempting to achieve common interfaces across hf datasets, webdataset, native torch style datasets. The defacto standards for image tensors are numpy == HWC, torch.Tensor == CHW.
I had to drop use of 'torch' formatting because as is (H, W, C) makes it incompatible with... | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 143 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
-0.02582848072052002,
-0.7482280731201172,
0.10426580905914307,
0.21440689265727997,
0.06788306683301926,
-0.026591144502162933,
0.8142369985580444,
0.32576999068260193,
-0.057888224720954895,
0.06085234135389328,
-0.15543116629123688,
0.1230911836028099,
-0.14922524988651276,
-0.373612195... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | We can define something like `.with_format("torch", image_data_format="channels_first")` and recommend using this in the docs maybe ? also cc @NielsRogge | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 19 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
-0.005527760833501816,
-0.8179534077644348,
0.10662205517292023,
0.2007114142179489,
0.089569091796875,
-0.031037520617246628,
0.7662638425827026,
0.28172019124031067,
-0.17129702866077423,
0.07466153800487518,
-0.07177087664604187,
0.16285964846611023,
-0.2619469165802002,
-0.402706921100... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | Sounds good to me. I guess it's not allowed to use the channels first format by default for backwards compatibility purposes? | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 21 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
-0.0015842914581298828,
-0.8372874855995178,
0.12175257503986359,
0.12647145986557007,
0.10686703026294708,
0.0056000202894210815,
0.8336380124092102,
0.25820162892341614,
-0.2750168740749359,
0.11379469931125641,
-0.09049117565155029,
0.15729452669620514,
-0.22999632358551025,
-0.40614494... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | This works, but am wondering how widespread the use of the function is for image datasets? My hunch would be that it's not used widely enough with image datasets to favour backwards compat (keeping default channels_last) over clumsiness of needing this to be 'correct' for typical use.. but don't have the data to back t... | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 56 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
-0.11516211926937103,
-0.6742500066757202,
0.07550469040870667,
0.13351060450077057,
0.05325189232826233,
-0.03168388456106186,
0.8220062851905823,
0.21712803840637207,
-0.03994326665997505,
-0.0042914822697639465,
-0.006008129566907883,
0.1460382044315338,
-0.25539156794548035,
-0.3848693... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | I see. I just checked in the HF libraries and it shouldn't break anything. And to be consistent with them we should actually use C H W. For example `transformers` image processors use C H W by default too.
So I'm ok with doing a breaking change to make it consistent with `transformers`, `torchvision`, etc. | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 55 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
0.013568025082349777,
-0.7600610852241516,
0.09970152378082275,
0.17568852007389069,
0.05750557780265808,
0.012449882924556732,
0.7862699031829834,
0.24647554755210876,
-0.07333644479513168,
0.08758491277694702,
-0.09880152344703674,
0.07621756941080093,
-0.14560505747795105,
-0.4490041732... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | Since it is quite connected, the proposed PR #6402 will not work for monochrome `PIL` images since they only have 2 dimensions as `numpy `arrays. [Torchvision ](https://pytorch.org/vision/stable/_modules/torchvision/transforms/functional.html#pil_to_tensor) adds a channel before permuting. Would that make sense here as... | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 39 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
-0.037376243621110916,
-0.7864429354667664,
0.08790720999240875,
0.23845580220222473,
0.061577096581459045,
-0.035391464829444885,
0.7305800318717957,
0.26690301299095154,
-0.09479202330112457,
0.08478910475969315,
-0.06551163643598557,
0.16598454117774963,
-0.21500340104103088,
-0.4267850... |
https://github.com/huggingface/datasets/issues/6394 | TorchFormatter images (H, W, C) instead of (C, H, W) format | @Modexus yes, indeed that would make sense as torch expects 1, H, W for monochrome, not H,W as you'd often see in numpy (via PIL), OpenCV, etc.
The reference should be the torchvision fn https://pytorch.org/vision/main/_modules/torchvision/transforms/functional.html#pil_to_tensor | ### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways.
If not using the format it is possible to ... | 35 | TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug
Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy.
However, pytorch normally uses (C, H, W) format.
Maybe I'm missing something but this makes the format a lot less useful as I then have to p... | [
0.013370279222726822,
-0.7921171188354492,
0.0881350040435791,
0.22050978243350983,
0.07247814536094666,
-0.011022321879863739,
0.768912672996521,
0.2581658959388733,
-0.057951733469963074,
0.11149706691503525,
-0.08306442201137543,
0.1641283631324768,
-0.19243280589580536,
-0.425143063068... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | Adding some more information, it seems to occur more frequently with large (millions of samples) datasets. | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 16 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.3641052544116974,
-0.007195755839347839,
-0.07324476540088654,
0.16546952724456787,
0.3414561152458191,
-0.19884690642356873,
0.07616081088781357,
0.03563354164361954,
0.1303383857011795,
0.10187119990587234,
0.2923227846622467,
0.45391708612442017,
-0.27917852997779846,
-0.010140361264... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | More information. My code is structured as (1) load (2) map (3) filter (4) filter. It was always the second filter that failed. Combining the two filters into one seems to reliably work. | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 33 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.30096885561943054,
0.025974690914154053,
-0.05257938429713249,
0.209523543715477,
0.375465989112854,
-0.19390548765659332,
0.14301086962223053,
0.05488806962966919,
0.15424707531929016,
0.051871493458747864,
0.23899009823799133,
0.46147820353507996,
-0.2146490216255188,
-0.0300904214382... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | @lhoestq it'd be great if someone had a chance to look at this. I suspect it is impacting many users given the other issue that I linked. | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 27 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.34762248396873474,
0.039869070053100586,
-0.0791807770729065,
0.15619516372680664,
0.34971868991851807,
-0.21276172995567322,
0.09959705173969269,
0.06106945872306824,
0.08661285042762756,
0.0801413506269455,
0.2603830397129059,
0.4729067087173462,
-0.2593030333518982,
0.034196548163890... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | Hi ! Sorry for the late response. Was it happening after the first or the second filter ?
It looks like an issue with the garbage collector (which makes it random). Maybe datasets created with `filter` are not always handled properly ? cc @mariosasko | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 44 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.29349902272224426,
-0.003939241170883179,
-0.07677927613258362,
0.18279317021369934,
0.3824129104614258,
-0.21573865413665771,
0.05621715635061264,
0.00042396411299705505,
0.11997365951538086,
0.09813036024570465,
0.3035041391849518,
0.47646018862724304,
-0.2690804600715637,
-0.01526607... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | It was after the second filter (and combining the two filters into one seemingly resolved it). I obviously haven't tried all settings to know that these details are causal, but it did work for me. | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 35 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.36033278703689575,
0.03689911961555481,
-0.08372504264116287,
0.11418598890304565,
0.3722606897354126,
-0.22955694794654846,
0.08928657323122025,
0.06284233927726746,
0.0738251656293869,
0.08880382776260376,
0.22277532517910004,
0.479506254196167,
-0.24935601651668549,
0.043283388018608... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | Thanks, that's good to know.
The stacktrace suggests an issue when `del self._indices` is called, which happens when a filtered dataset falls out of scope. The indices are a PyArrow table memory mapped from disk, so I'm not quite sure how calling `del` on it can cause this issue. We do `del self._indices` to make su... | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 93 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.26999926567077637,
0.07587867975234985,
-0.05574609711766243,
0.23851148784160614,
0.357414186000824,
-0.1320774108171463,
0.14118102192878723,
0.05039848014712334,
-0.03171519190073013,
0.16522692143917084,
0.18220821022987366,
0.45756515860557556,
-0.271613746881485,
-0.09806267172098... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | Yeah, I have a reliable repro, but it is not even close to minimal and uses a dataset I can't share. Perhaps you could try getting close to my setting.
(1) make a large (~20GB) jsonl with prompt/response pairs
(2) load it on a linux machine (`dataset = load_dataset(...)`)
(3) map a tokenizer to it, with multiproce... | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 108 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.39694416522979736,
0.12596963346004486,
-0.05943920463323593,
0.17023588716983795,
0.27565717697143555,
-0.2960375249385834,
0.040323302149772644,
0.13020679354667664,
0.09984584152698517,
0.041366130113601685,
0.27463382482528687,
0.5538310408592224,
-0.282597154378891,
-0.001442540436... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | @lhoestq I have another version of the repro that seems fairly reliably. I have lots of jsonl files, and I iteratively load each one with `load_dataset('json', data_files='path/to/my/file.jsonl', streaming=False, split='train')` and then `dataset.map(..., num_proc=<int>)`. This iteration hangs in a random place each ti... | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 54 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.2901538908481598,
0.15834417939186096,
-0.03830927982926369,
0.17367559671401978,
0.28017163276672363,
-0.19261595606803894,
0.07940609753131866,
0.11538508534431458,
0.08983364701271057,
0.029149629175662994,
0.2712341547012329,
0.48250529170036316,
-0.1739613264799118,
-0.124697811901... |
https://github.com/huggingface/datasets/issues/6393 | Filter occasionally hangs | I am also having similar issue to #3172 when trying to tokenize the data. My dataset contains 10M samples. Is there anything that could be done without having to split up the processing into multiple datasets? | ### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l... | 36 | Filter occasionally hangs
### Describe the bug
A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm)
There is a trace produced
```
Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/d... | [
-0.30296942591667175,
0.07233251631259918,
-0.06281731277704239,
0.2283802330493927,
0.37363892793655396,
-0.21817493438720703,
0.08610700815916061,
0.10473813116550446,
0.09099218249320984,
0.02097746729850769,
0.28763991594314575,
0.38262826204299927,
-0.2632485330104828,
0.0261360276490... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | Hi! We made some improvements to `push_to_hub` to make it more robust a couple of weeks ago but haven't published a release in the meantime, so it would help if you could install `datasets` from `main` (`pip install https://github.com/huggingface/datasets`) and let us know if this improved version of `push_to_hub` reso... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 86 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | The update helped push more data.
However it still crashed a little later:
```
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 270, in hf_raise_for_status
response.raise_for_status()
File "/admin/home-p... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 223 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | I think the previous implementation was actually better: it pushes to the hub every shard. So if it fails, as long as the shards have the same checksum, it will skip the ones that have been pushed.
The implementation in `main` pushes commits at the end, so when it fails, there are no commits and therefore restarts f... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 312 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | There's a new error from the hub now:
```
Pushing dataset shards to the dataset hub: 49%|████▉ | 128/261 [11:38<12:05, 5.45s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 270, in hf_raise_for_status
... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 225 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | > think the previous implementation was actually better: it pushes to the hub every shard. So if it fails, as long as the shards have the same checksum, it will skip the ones that have been pushed.
>
>The implementation in main pushes commits at the end, so when it fails, there are no commits and therefore restarts ... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 178 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | But I agree that the `500 Server Error` returned by the Hub is annoying. Earlier today, I also got it on a small 5GB dataset (with 500 MB shards).
@Wauplin @julien-c Is there something we can do about this? | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 39 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | @mariosasko can't do much if AWS raises a HTTP 500 unfortunately (we are simply pushing data to a S3 bucket).
What we can do is to add a retry mechanism in the multi-part upload logic here: https://github.com/huggingface/huggingface_hub/blob/c972cba1fecb456a7b3325cdd1fdbcc425f21f94/src/huggingface_hub/lfs.py#L370 :con... | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 38 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | > That code already retries the request using http_backoff, no?
Currently only on HTTP 503 by default. We should add 500 as well (and hope it is a transient error from AWS) | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 32 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.