html_url stringlengths 51 51 | title stringlengths 9 280 | comments stringlengths 63 24.7k | body stringlengths 51 58.6k | comments length int64 16 1.45k | text stringlengths 186 59.1k |
|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5864 | Slow iteration over Torch tensors | I am highly interested performance of dataset so I ran your example as a curious user.
```python
train_dataset.cast_column("x", Array3D(shape=img_shape, dtype="float32"))
```
have return values and "x" is a new column, it shoulde be
```python
ds=train_dataset.cast_column("img", Array3D(shape=(3,32,32), dtype="flo... | ### Describe the bug
I have a problem related to this [issue](https://github.com/huggingface/datasets/issues/5841): I get a way slower iteration when using a Torch dataloader if I use vanilla Numpy tensors or if I first apply a ToTensor transform to the input. In particular, it takes 5 seconds to iterate over the vani... | 112 | Slow iteration over Torch tensors
### Describe the bug
I have a problem related to this [issue](https://github.com/huggingface/datasets/issues/5841): I get a way slower iteration when using a Torch dataloader if I use vanilla Numpy tensors or if I first apply a ToTensor transform to the input. In particular, it takes ... |
https://github.com/huggingface/datasets/issues/7566 | terminate called without an active exception; Aborted (core dumped) | @alexey-milovidov I followed the code snippet, but am able to successfully execute without any error. Could you please verify if the error persists or there is any additional details. | ### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', spl... | 29 | terminate called without an active exception; Aborted (core dumped)
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets impo... |
https://github.com/huggingface/datasets/issues/7566 | terminate called without an active exception; Aborted (core dumped) | ```
milovidov@milovidov-pc:~/work/datasets$
./main.py
Resolving data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 25868/25868 [00:05<00:00, 4753.90it/s]
R... | ### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', spl... | 612 | terminate called without an active exception; Aborted (core dumped)
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets impo... |
https://github.com/huggingface/datasets/issues/7566 | terminate called without an active exception; Aborted (core dumped) | Thank you @alexey-milovidov for the details, was able to reproduce the issue.
Following is a preliminary analysis which would help to further isolate the issue:
On local:
- For alternate datasets e.g. `speed/english_quotes_paraphrase` instead of `HuggingFaceFW/fineweb` the code works
- Multiple calls of `print(next(i... | ### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', spl... | 69 | terminate called without an active exception; Aborted (core dumped)
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets impo... |
https://github.com/huggingface/datasets/issues/7566 | terminate called without an active exception; Aborted (core dumped) | I encountered the same issue. After adding time.sleep(1) at the end, it terminates gracefully. It is probably because the main program exits before the connection for streaming is fully closed. But I am not sure how to resolve it more elegantly. | ### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', spl... | 41 | terminate called without an active exception; Aborted (core dumped)
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets impo... |
https://github.com/huggingface/datasets/issues/7566 | terminate called without an active exception; Aborted (core dumped) | I had the same issue with datasets v4.8.5 + PyArrow when streaming parquet files with load_dataset(..., streaming=True).
The process would crash with terminate called without an active exception (exit 134) during Python shutdown, even though all work had completed successfully.
The fix was to explicitly destroy the st... | ### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets import load_dataset
dataset = load_dataset('HuggingFaceFW/fineweb', spl... | 132 | terminate called without an active exception; Aborted (core dumped)
### Describe the bug
I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort.
### Steps to reproduce the bug
1. `pip install datasets`
2.
```
$ cat main.py
#!/usr/bin/env python3
from datasets impo... |
https://github.com/huggingface/datasets/issues/6169 | Configurations in yaml not working | Unfortunately, I cannot reproduce this behavior on my machine or Colab - the reproducer returns `['main_data', 'additional_data']` as expected. | ### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118
I have t... | 19 | Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_... |
https://github.com/huggingface/datasets/issues/6169 | Configurations in yaml not working | Thank you for looking into this, Mario. Is this on [my repository](https://huggingface.co/datasets/tsor13/test), or on another one that you have reproduced? Would you mind pointing me to it if so? | ### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118
I have t... | 29 | Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_... |
https://github.com/huggingface/datasets/issues/6169 | Configurations in yaml not working | Whoa, in colab I received the correct behavior using my dataset. It must have something to do with my local copy of `datasets` (which again just failed).
I've tried uninstalling/reinstnalling to no avail | ### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118
I have t... | 33 | Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_... |
https://github.com/huggingface/datasets/issues/6169 | Configurations in yaml not working | hi @tsor13 , I haven't been able to reproduce your issue on `tsor13/test` dataset locally either. reinstalling doesn't help? | ### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118
I have t... | 19 | Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README
Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_... |
https://github.com/huggingface/datasets/issues/7531 | Deepspeed reward training hangs at end of training with Dataset.from_list | Hi ! How big is the dataset ? if you load it using `from_list`, the dataset lives in memory and has to be copied to every gpu process, which can be slow.
It's fasted if you load it from JSON files from disk, because in that case the dataset in converted to Arrow and loaded from disk using memory mapping. Memory mappin... | There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine until the end of training and running the same script with Deepspeed on a s... | 92 | Deepspeed reward training hangs at end of training with Dataset.from_list
There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine u... |
https://github.com/huggingface/datasets/issues/7531 | Deepspeed reward training hangs at end of training with Dataset.from_list | Thanks for raising this! As lhoestq mentioned, the root cause seems to be that `Dataset.from_list()` creates an in-memory dataset, which causes issues with DeepSpeed across multiple GPUs due to the cost of copying that memory to all processes.
Using `load_dataset("json", ...)` works because Hugging Face datasets then ... | There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine until the end of training and running the same script with Deepspeed on a s... | 113 | Deepspeed reward training hangs at end of training with Dataset.from_list
There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine u... |
https://github.com/huggingface/datasets/issues/6984 | Convert polars DataFrame back to datasets | Hi ! Thanks for reporting :)
We don't support `large_list` yet, though it should be added to `Sequence` IMO (maybe with a parameter `large=True` ?) | ### Feature request
This returns error.
```python
from datasets import Dataset
dsdf = Dataset.from_dict({"x": [[1, 2], [3, 4, 5]], "y": ["a", "b"]})
Dataset.from_polars(dsdf.to_polars())
```
ValueError: Arrow type large_list<item: int64> does not have a datasets dtype equivalent.
### Motivation
When datasets... | 25 | Convert polars DataFrame back to datasets
### Feature request
This returns error.
```python
from datasets import Dataset
dsdf = Dataset.from_dict({"x": [[1, 2], [3, 4, 5]], "y": ["a", "b"]})
Dataset.from_polars(dsdf.to_polars())
```
ValueError: Arrow type large_list<item: int64> does not have a datasets dtype ... |
https://github.com/huggingface/datasets/issues/6369 | Multi process map did not load cache file correctly | The inconsistency may be caused by the usage of "update_fingerprint" and setting "trust_remote_code" to "True."
When the tokenizer employs "trust_remote_code," the behavior of the map function varies with each code execution. Even if the remote code of the tokenizer remains the same, the result of "asher.hexdigest()" ... | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


 and [#6318](https://github.com/huggingface/datasets/pull/6318).
This arises from the fact that tokenizer.tokens_trie._tokens is an unordered set, leading to varying hash results:
`v... | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


. Consequently, this should also make the `tokenizer.tokens_trie`'s hash deterministic. Feel free to re-open the issue if this is not the case. | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


:
common_features = features.Features({
"a": features.Value("int64"),
"b": features.List({"c": features.Value("int64")}),
})
def row_generator():
yield {"... | ### Describe the bug
`IterableDataset` created from generator with explicit `features=` parameter seems to ignore provided features description for certain operations, e.g. `.to_pandas(...)` when data coming from the generator has missing values.
### Steps to reproduce the bug
```python
import datasets
from datasets... | 55 | IterableDataset does not use features information in to_pandas
### Describe the bug
`IterableDataset` created from generator with explicit `features=` parameter seems to ignore provided features description for certain operations, e.g. `.to_pandas(...)` when data coming from the generator has missing values.
### Step... |
https://github.com/huggingface/datasets/issues/3264 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution | #take
I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy with new ones provided by authors.
As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. I can include them in the dataset folder as the files are... | ## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaoj... | 60 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution
## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9... |
https://github.com/huggingface/datasets/issues/3264 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution | > #take I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy.
>
> As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. Anyone has opinions on whether it is preferable for me to host them somewhere (e.g. pe... | ## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaoj... | 113 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution
## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9... |
https://github.com/huggingface/datasets/issues/3993 | Streaming dataset + interleave + DataLoader hangs with multiple workers | Hi ! Thanks for reporting, could this be related to https://github.com/huggingface/datasets/issues/3950 ?
Currently streaming datasets only works in single process, but we're working on having in work in distributed setups as well :) (EDIT: done) | ## Describe the bug
Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers.
## Steps to reproduce the bug
```python
from datasets import interleave_datasets, load_dataset
from torch.utils.data import DataLoader
... | 35 | Streaming dataset + interleave + DataLoader hangs with multiple workers
## Describe the bug
Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers.
## Steps to reproduce the bug
```python
from datasets import inter... |
https://github.com/huggingface/datasets/issues/8217 | Multi-GPU Training with Large Dataset β NCCL Timeouts / Slow Data Loading + Excessive Memory Usage with keep_in_memory=True | Hi @D222097,
We have audited the architectural footprint of your multi-GPU training setup. The behaviors you are experiencing are not bugs within the `datasets` library, but rather fundamental limitations of Python's process architecture interacting with hardware topologies.
Here is the clinical breakdown of your tw... | Hi, I'm training a large dataset using Lerobot (which relies on Hugging Face Datasets) and encountering severe performance issues when scaling to multi-GPU training.
### Problem Description
- Unstable/slow data loading + NCCL timeouts
- Step time fluctuates drastically: ~1s/step (fast) vs ~45s/step (extremely slow)
... | 383 | Multi-GPU Training with Large Dataset β NCCL Timeouts / Slow Data Loading + Excessive Memory Usage with keep_in_memory=True
Hi, I'm training a large dataset using Lerobot (which relies on Hugging Face Datasets) and encountering severe performance issues when scaling to multi-GPU training.
### Problem Description
- Uns... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | I don't think it's an issue with the dataset-viewer. Maybe @lhoestq or @albertvillanova could confirm.
```python
>>> from datasets import load_dataset, DownloadMode
>>> import itertools
>>> # without streaming
>>> dataset = load_dataset("yelp_review_full", name="yelp_review_full", split="train", download_mode=Do... | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 383 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | Yet another issue related to google drive not being nice. Most likely your IP has been banned from using their API programmatically. Do you know if we are allowed to host and redistribute the data ourselves ? | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 37 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | Hi,
Facing the same issue while loading the dataset:
`Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files`
Thanks | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 18 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | > Facing the same issue while loading the dataset:
>
> Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files
Thanks for reporting. I think this is the same issue. Feel free to try again later, once Google Drive stopped blocking you. You can retry by passing `download_mode="force_redownl... | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 49 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | I noticed that FastAI hosts the Yelp dataset at https://s3.amazonaws.com/fast-ai-nlp/yelp_review_full_csv.tgz (from their catalog [here](https://course.fast.ai/datasets))
Let's update the yelp dataset script to download from there instead of Google Drive | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 28 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/4005 | Yelp not working | I updated the link to not use Google Drive anymore, we will do a release early next week with the updated download url of the dataset :) | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? No
A seamingly... | 27 | Yelp not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train
Doesn't work:
```
Server error
Status code: 400
Exception: Error
Message: line contains NULL
```
Am I the one who added this dataset ? ... |
https://github.com/huggingface/datasets/issues/6868 | datasets.BuilderConfig does not work. | I guess the issue is caused by the customization of BuilderConfig that you use from the repo [https://github.com/BeyonderXX/InstructUIE](https://github.com/BeyonderXX/InstructUIE/blob/master/src/uie_dataset.py). You should report to them.
I see you already opened an issue in their repo:
- https://github.com/Beyonde... | ### Describe the bug
I custom a BuilderConfig and GeneratorBasedBuilder.
Here is the code for BuilderConfig
```
class UIEConfig(datasets.BuilderConfig):
def __init__(
self,
*args,
data_dir=None,
instruction_file=None,
instruction_strategy=None,... | 35 | datasets.BuilderConfig does not work.
### Describe the bug
I custom a BuilderConfig and GeneratorBasedBuilder.
Here is the code for BuilderConfig
```
class UIEConfig(datasets.BuilderConfig):
def __init__(
self,
*args,
data_dir=None,
instruction_file=None,
... |
https://github.com/huggingface/datasets/issues/5424 | When applying `ReadInstruction` to custom load it's not DatasetDict but list of Dataset? | Hi! You can get a `DatasetDict` if you pass a dictionary with read instructions as follows:
```python
instructions = [
ReadInstruction(split_name="train", from_=0, to=10, unit='%', rounding='closest'),
ReadInstruction(split_name="dev", from_=0, to=10, unit='%', rounding='closest'),
ReadInstruction(spli... | ### Describe the bug
I am loading datasets from custom `tsv` files stored locally and applying split instructions for each split. Although the ReadInstruction is being applied correctly and I was expecting it to be `DatasetDict` but instead it is a list of `Dataset`.
### Steps to reproduce the bug
Steps to reproduc... | 51 | When applying `ReadInstruction` to custom load it's not DatasetDict but list of Dataset?
### Describe the bug
I am loading datasets from custom `tsv` files stored locally and applying split instructions for each split. Although the ReadInstruction is being applied correctly and I was expecting it to be `DatasetDict` b... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | This error means that one of the int32 (`Value("int32")`) columns in the dataset has a value that is out of the valid (int32) range.
I'll open a PR to print the name of a problematic column to make debugging such errors easier. | ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 42 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | I am afraid int32 is not the reason for this error.
I have submitted a commit to use int64 for all ints in the dataset:
https://huggingface.co/datasets/liwu/MNBVC/commit/857ac00d9eab96a6708ad6a82bd9001686042a9e
and I have updated my env to the latest datasets release:
Copy-and-paste the text below in your GitHu... | ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 763 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | `simhash` is the problematic column - it has values such as `18329103420363166823` that are out of the int64 range. You can fix this by setting the feature type to `Value("string")` (it's advised to use this type for hash values in general)
> Besides, it works fine when I am using streamed dataset.
Streaming yiel... | ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 75 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | i am using uint64 for simhash
uint64 ranges up to about 3.69E19.
18329103420363166823 is less than this value.
moreover, our simhash algorithm use 64 bits. it should fit in uint64.
| ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 30 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | You are right. I overlooked the feature type.
This is a reproducer:
```python
import pyarrow as pa
from datasets.arrow_writer import TypedSequence
pa.array(TypedSequence([18329103420363166823], type=Value("uint64")))
```
`pa.array([18329103420363166823])` also fails with the same error, so it seems PyArrow... | ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 114 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | Thank you for checking this issue in detail.
However, it seems that using `np.uint64(simhash)` does not work. The same issue still exists.
https://huggingface.co/datasets/liwu/MNBVC/commit/1e44f1e400b7e61052647d44c99cdae3bae9c830
Anyway, we decide to use string type for these simhash values. Hope pyarrow can f... | ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 41 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/6007 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset | May be something read your training data line by line.
Then your training data just only one line.
It is so large.
I guess.
| ### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered the error: "OverflowError: Python int too large to convert to C long"
The error look something like... | 24 | Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug
When load a large dataset with the following code
```python
from datasets import load_dataset
dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train')
```
We encountered... |
https://github.com/huggingface/datasets/issues/4123 | Building C4 takes forever | Hi @StellaAthena, thanks for reporting.
Please note, that our `datasets` library performs several operations in order to load a dataset, among them:
- it downloads all the required files: for C4 "en", 378.69 GB of JSON GZIPped files
- it parses their content to generate the dataset
- it caches the dataset in an A... | ## Describe the bug
C4-en is a 300 GB dataset. However, when I try to download it through the hub it takes over _six hours_ to generate the train/test split from the downloaded files. This is an absurd amount of time and an unnecessary waste of resources.
## Steps to reproduce the bug
```python
c4 = datasets.load... | 274 | Building C4 takes forever
## Describe the bug
C4-en is a 300 GB dataset. However, when I try to download it through the hub it takes over _six hours_ to generate the train/test split from the downloaded files. This is an absurd amount of time and an unnecessary waste of resources.
## Steps to reproduce the bug
```... |
https://github.com/huggingface/datasets/issues/6257 | HfHubHTTPError - exceeded our hourly quotas for action: commit | how is your dataset structured? (file types, how many commits and files are you trying to push, etc) | ### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo... | 18 | HfHubHTTPError - exceeded our hourly quotas for action: commit
### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_... |
https://github.com/huggingface/datasets/issues/6257 | HfHubHTTPError - exceeded our hourly quotas for action: commit | I succeeded in uploading it after several attempts with an hour gap between each attempt (inconvenient but worked). The final dataset is [here](https://huggingface.co/datasets/yuvalkirstain/pickapic_v2), code and context to the dataset can be found [here](https://github.com/yuvalkirstain/PickScore/).
I can close the i... | ### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo... | 54 | HfHubHTTPError - exceeded our hourly quotas for action: commit
### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_... |
https://github.com/huggingface/datasets/issues/6257 | HfHubHTTPError - exceeded our hourly quotas for action: commit | We could fix this by creating a single commit for all the (Parquet) shards in `push_to_hub` instead of one commit per shard, as we currently do.
@Wauplin Any updates on the 2-step commit process suggested by you that we need to implement this? | ### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo... | 43 | HfHubHTTPError - exceeded our hourly quotas for action: commit
### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_... |
https://github.com/huggingface/datasets/issues/6257 | HfHubHTTPError - exceeded our hourly quotas for action: commit | > Any updates on the 2-step commit process suggested by you that we need to implement this?
Re-prioritizing this, sorry. Will let you know but probably can be done this week. | ### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo... | 31 | HfHubHTTPError - exceeded our hourly quotas for action: commit
### Describe the bug
I try to upload a very large dataset of images, and get the following error:
```
File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_... |
https://github.com/huggingface/datasets/issues/4580 | Dataset Viewer issue for multi_news | Thanks for reporting, @lewtun.
I forced the refreshing of the preview and it worked OK for train and validation splits.
I guess the error has to do with the data files being hosted at Google Drive: this gives errors when requested automatically using scripts.
We should host them to fix the error. Let's see if th... | ### Link
https://huggingface.co/datasets/multi_news
### Description
Not sure what the index error is referring to here:
```
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No | 59 | Dataset Viewer issue for multi_news
### Link
https://huggingface.co/datasets/multi_news
### Description
Not sure what the index error is referring to here:
```
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No
Thanks for reporting, @lewtun.
I forced the ... |
https://github.com/huggingface/datasets/issues/5945 | Failing to upload dataset to the hub | Hi ! Feel free to re-run your code later, it will resume automatically where you left | ### Describe the bug
Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work.
From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even though my internet is stable.
Please... | 16 | Failing to upload dataset to the hub
### Describe the bug
Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work.
From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even ... |
https://github.com/huggingface/datasets/issues/5945 | Failing to upload dataset to the hub | Alternatively you can save your dataset in parquet files locally and upload them to the hub manually
```python
from tqdm import tqdm
num_shards = 60
for index in tqdm(range(num_shards)):
ds.shard(num_shards=num_shards, index=index, contiguous=True).to_parquet(f"{index:05d}.parquet")
```` | ### Describe the bug
Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work.
From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even though my internet is stable.
Please... | 33 | Failing to upload dataset to the hub
### Describe the bug
Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work.
From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even ... |
https://github.com/huggingface/datasets/issues/7999 | Too many dataloader workers: 4 (max is dataset.num_shards=3). Stopping 1 dataloader workers. | Hi, thanks for the clear question and code snippet!
From my understanding, **hf_dataset.num_shards** represents the number of actual iterable partitions that the streaming dataset can be read from in parallel. This is not the same as the number of underlying Parquet filesβmany files can be grouped into a much smaller ... | Hi !
Iβm working on training with a large-scale dataset (100+ Parquet files) using lazy loading, and Iβm struggling to understand/optimize the num_shards settingβ in the lerobot repo: streaming_datasets.py:
```
from datasets import load_dataset
self.hf_dataset: datasets.IterableDataset = load_dataset(
self.... | 174 | Too many dataloader workers: 4 (max is dataset.num_shards=3). Stopping 1 dataloader workers.
Hi !
Iβm working on training with a large-scale dataset (100+ Parquet files) using lazy loading, and Iβm struggling to understand/optimize the num_shards settingβ in the lerobot repo: streaming_datasets.py:
```
from datasets im... |
https://github.com/huggingface/datasets/issues/7902 | The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`. | Memory mapping is actually the way for processes to share memory efficiently and without copy. It is efficient when on are using a local disk, and it's discouraged to use it on remote disk for the reasons you observed.
What you can do instead is save the dataset as Parquet on your remote storage (or on Hugging Face Da... | ### Feature request
The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`.
### Motivation
Because my local disk space is insufficient, I can only store a dataset on a remote Ceph server and process it using datasets.
I used the data-juicer[h... | 90 | The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`.
### Feature request
The child process retrieves the dataset directly from the main process instead of executing `memory_mapped_arrow_table_from_file`.
### Motivation
Because my local dis... |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | It's not related to the dataset viewer in itself. I can replicate the error with:
```
>>> import datasets as ds
>>> d = ds.load_dataset('Pavithree/explainLikeImFive')
Using custom data configuration Pavithree--explainLikeImFive-b68b6d8112cd8a51
Downloading and preparing dataset json/Pavithree--explainLikeImFiv... | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. How... | 238 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co... |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | It seems that train.json is not a valid JSON Lines file: it has several JSON objects in the first line (the 915th character in the first line starts a new object, and there's no "\n")
You need to have one JSON object per line | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. How... | 44 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co... |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | I'm closing this issue.
@Pavithree, please, feel free to re-open it if fixing the JSON file does not solve it. | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. How... | 20 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co... |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Thanks for reporting, @lewtun.
~We can't load the dataset locally, so I think this is an issue with the loading script (not the viewer).~
We are investigating... | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status cod... | 27 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret... |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Recently, there was a merged PR related to this dataset:
- #4554
We are looking at this... | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status cod... | 17 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret... |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Indeed, the above mentioned PR fixed the loading script (it was not working before).
I'm forcing the refresh of the Viewer. | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status cod... | 21 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret... |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Please note that the above mentioned PR also made an enhancement in the `datasets` library, required by this loading script. This enhancement will only be available to the Viewer once we make our next release. | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status cod... | 35 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret... |
https://github.com/huggingface/datasets/issues/6184 | Map cache does not detect function changes in another module | This issue is a duplicate of https://github.com/huggingface/datasets/issues/3297. This is a limitation of `dill`, a package we use for caching (non-`__main__` module objects are serialized by reference). You can find more info about it here: https://github.com/uqfoundation/dill/issues/424.
In your case, moving
``... | ```python
# dataset.py
import os
import datasets
if not os.path.exists('/tmp/test.json'):
with open('/tmp/test.json', 'w') as file:
file.write('[{"text": "hello"}]')
def transform(example):
text = example['text']
# text += ' world'
return {'text': text}
data = datasets.load_dataset('json', ... | 65 | Map cache does not detect function changes in another module
```python
# dataset.py
import os
import datasets
if not os.path.exists('/tmp/test.json'):
with open('/tmp/test.json', 'w') as file:
file.write('[{"text": "hello"}]')
def transform(example):
text = example['text']
# text += ' world'
r... |
https://github.com/huggingface/datasets/issues/6184 | Map cache does not detect function changes in another module | I understand this may be a limitation of an upstream tool, but for a user for datasets this is very annoying, as when you have dozens of different datasets with different preprocessing functions you can't really move them all into the same file. It may be worth seeing if there is a way to specialize the dependency (eg.... | ```python
# dataset.py
import os
import datasets
if not os.path.exists('/tmp/test.json'):
with open('/tmp/test.json', 'w') as file:
file.write('[{"text": "hello"}]')
def transform(example):
text = example['text']
# text += ' world'
return {'text': text}
data = datasets.load_dataset('json', ... | 130 | Map cache does not detect function changes in another module
```python
# dataset.py
import os
import datasets
if not os.path.exists('/tmp/test.json'):
with open('/tmp/test.json', 'w') as file:
file.write('[{"text": "hello"}]')
def transform(example):
text = example['text']
# text += ' world'
r... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | @lhoestq I tested the script without accelerator, and I confirm this is due to datasets part as this gets similar results without accelerator. | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 23 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi ! You said it works on 1 GPU but doesn't wortk without accelerator - what's the difference between running on 1 GPU and running without accelerator in your case ? | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 31 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi @lhoestq
thanks for coming back to me. Sorry for the confusion I made. I meant this works fine on 1 GPU, but on multi-gpu it is freezing. "accelerator" is not an issue as if you adapt the code without accelerator this still gets the same issue.
In order to test it. Please run "accelerate config", then use the set... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 79 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi @lhoestq
could you have the chance to reproduce the error by running the minimal example shared?
thanks | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 18 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | I think you need to do `train_dataset = train_dataset.with_format("torch")` to work with the DataLoader in a multiprocessing setup :)
The hang is probably caused by our streamign lib `fsspec` which doesn't work in multiprocessing out of the box - but we made it work with the PyTorch DataLoader when the dataset forma... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 56 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi @lhoestq
thanks for the response. I added the line suggested right before calling `with accelerator.main_process_first():` in the code above and I confirm this also freezes. to reproduce it please run "accelerate launch code.py". I was wondering if you could have more suggestions for me? I do not have an idea how... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 61 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Maybe the `fsspec` stuff need to be clearer even before - can you try to run this function at the very beginning of your script ?
```python
import fsspec
def _set_fsspec_for_multiprocess() -> None:
"""
Clear reference to the loop and thread.
This is necessary otherwise HTTPFileSystem hangs in the ML... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 69 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi @lhoestq
thank you. I tried it, I am getting `AttributeError: module 'fsspec' has no attribute 'asyn'`. which version of fsspect do you use?
I am using
```fsspec 2022.8.2 pypi_0 pypi```
thank you. | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 33 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Hi @lhoestq
I solved `fsspec` error with this hack for now https://discuss.huggingface.co/t/attributeerror-module-fsspec-has-no-attribute-asyn/19255 but this is still freezing, I greatly appreciate if you could run this script on your side. Many thanks.
```
import fsspec
def _set_fsspec_for_multiprocess() -> N... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 472 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Are you using `Pytorch 1.11`? Otherwise the script freezes because of the shuffling in this line:
```
return ShufflerIterDataPipe(self, buffer_size=buffer_size)
```
`ShufflerIterDataPipe` behavior must have changed for newer Pytorch versions. But this doesn't change whether you're using streaming or not in... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 52 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | > Are you using `Pytorch 1.11`? Otherwise the script freezes because of the shuffling in this line:
>
> ```
> return ShufflerIterDataPipe(self, buffer_size=buffer_size)
> ```
>
> `ShufflerIterDataPipe` behavior must have changed for newer Pytorch versions. But this doesn't change whether you're using st... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 83 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | Can you share more details ? this issue is quite old now and libs have evolved, it can be worth opening a new issue with your specific setup details and code | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 31 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | > Can you share more details ? this issue is quite old now and libs have evolved, it can be worth opening a new issue with your specific setup details and code
In dataset codes, I use `train_dataset = load_dataset("parquet", data_files=path_train_files, keep_in_memory=False, streaming = True, split='train')`.
In mode... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 160 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | > After debug, I guess the hang might be caused by unevenly distributed batch data to different GPUs?
This is likely the case, though DistributedSampler can't help here since it's ioly useful for Dataset objects, not IterableDataset which is what you get in streaming mode.
We discussed this exact issue in https://git... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 129 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | @lhoestq Thank you for your quick reply.
I tried your solution like this: https://github.com/huggingface/datasets/issues/6623#issuecomment-3612944796.
But I get error `[rank1]: AttributeError: 'AcceleratedOptimizer' object has no attribute 'join_hook'`, how can I resolve it?
I am using the following packages:
- py... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 95 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | @lhoestq Thank you for your quick reply.
The training still hung after using `Join`. Here are the trace logs:
Can we just drop the last batch to avoid the hanging problem? Why `"dataloader_drop_last": true` did not work?
```
[rank0]:[E1216 00:16:14.707919603 ProcessGroupNCCL.cpp:685] [Rank 0] Watchdog caught collective... | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 799 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/5123 | datasets freezes with streaming mode in multiple-gpu | I'm not familiar with accelerate enough, maybe @SunMarc you had a chance to look a bit into this ?
> Can we just drop the last batch to avoid the hanging problem? Why "dataloader_drop_last": true did not work?
Because some nodes may have N extra batches, not just 1 | ## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod... | 49 | datasets freezes with streaming mode in multiple-gpu
## Describe the bug
Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978... |
https://github.com/huggingface/datasets/issues/3978 | I can't view HFcallback dataset for ASR Space | the dataset viewer is working on this dataset. I imagine the issue is that we would expect to be able to listen to the audio files in the `Please Record Your Voice file` column, right?
maybe @lhoestq or @albertvillanova could help
<img width="1019" alt="Capture dβeΜcran 2022-03-24 aΜ 17 36 20" src="https://user-i... | ## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.*
A... | 51 | I can't view HFcallback dataset for ASR Space
## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I though... |
https://github.com/huggingface/datasets/issues/3978 | I can't view HFcallback dataset for ASR Space | The structure of the dataset is not supported. Only the CSV file is parsed and the audio files are ignored.
We're working on supporting audio datasets with a specific structure in #3963 | ## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.*
A... | 32 | I can't view HFcallback dataset for ASR Space
## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I though... |
https://github.com/huggingface/datasets/issues/3978 | I can't view HFcallback dataset for ASR Space | Current error:
```
Error code: StreamingRowsError
Exception: LibsndfileError
Message: Error opening <File-like object HfFileSystem, datasets/kingabzpro/Urdu-ASR-flags@6a8878cfe3a41343fa86ec8b4254209fe56a0f0d/Please Record Your Voice/0.wav>: Format not recognised.
Traceback: Traceback (most recent ca... | ## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.*
A... | 169 | I can't view HFcallback dataset for ASR Space
## Dataset viewer issue for '*Urdu-ASR-flags*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)*
*I think dataset should show some thing and if you want me to add script, please show me the documentation. I though... |
https://github.com/huggingface/datasets/issues/4121 | datasets.load_metric can not load a local metirc | Hello, could you tell me how this issue can be fixed? I'm coming across the same issue. | ## Describe the bug
No matter how I hard try to tell load_metric that I want to load a local metric file, it still continues to fetch things on the Internet. And unfortunately it says 'ConnectionError: Couldn't reach'. However I can download this file without connectionerror and tell load_metric its local directory. A... | 17 | datasets.load_metric can not load a local metirc
## Describe the bug
No matter how I hard try to tell load_metric that I want to load a local metric file, it still continues to fetch things on the Internet. And unfortunately it says 'ConnectionError: Couldn't reach'. However I can download this file without connection... |
https://github.com/huggingface/datasets/issues/6008 | Dataset.from_generator consistently freezes at ~1000 rows | By default, we write data to disk (so it can be memory-mapped) every 1000 rows/samples. You can control this with the `writer_batch_size` parameter. Also, when working with fixed-size arrays, the `ArrayXD` feature types yield better performance (e.g., in your case, `features=datasets.Features({"i": datasets.Array3D(sha... | ### Describe the bug
Whenever I try to create a dataset which contains images using `Dataset.from_generator`, it freezes around 996 rows. I suppose it has something to do with memory consumption, but there's more memory available. I
Somehow it worked a few times but mostly this makes the datasets library much more ... | 64 | Dataset.from_generator consistently freezes at ~1000 rows
### Describe the bug
Whenever I try to create a dataset which contains images using `Dataset.from_generator`, it freezes around 996 rows. I suppose it has something to do with memory consumption, but there's more memory available. I
Somehow it worked a few t... |
https://github.com/huggingface/datasets/issues/6008 | Dataset.from_generator consistently freezes at ~1000 rows | > By default, we write data to disk (so it can be memory-mapped) every 1000 rows/samples. You can control this with the `writer_batch_size` parameter. Also, when working with fixed-size arrays, the `ArrayXD` feature types yield better performance (e.g., in your case, `features=datasets.Features({"i": datasets.Array3D(s... | ### Describe the bug
Whenever I try to create a dataset which contains images using `Dataset.from_generator`, it freezes around 996 rows. I suppose it has something to do with memory consumption, but there's more memory available. I
Somehow it worked a few times but mostly this makes the datasets library much more ... | 101 | Dataset.from_generator consistently freezes at ~1000 rows
### Describe the bug
Whenever I try to create a dataset which contains images using `Dataset.from_generator`, it freezes around 996 rows. I suppose it has something to do with memory consumption, but there's more memory available. I
Somehow it worked a few t... |
https://github.com/huggingface/datasets/issues/5457 | prebuilt dataset relies on `downloads/extracted` | Hi!
This issue is due to our audio/image datasets not being self-contained. This allows us to save disk space (files are written only once) but also leads to the issues like this one. We plan to make all our datasets self-contained in Datasets 3.0.
In the meantime, you can run the following map to ensure your da... | ### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it no longer works.
```
rm -r ~/.cache/huggingface... | 76 | prebuilt dataset relies on `downloads/extracted`
### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it n... |
https://github.com/huggingface/datasets/issues/5457 | prebuilt dataset relies on `downloads/extracted` | Understood. Thank you, Mario.
Perhaps the solution could be very simple - move the extracted files into the directory of the cached dataset? Which would make it self-contained already and won't require waiting for a new major release. Unless I'm missing some back-compat nuance.
But regardless if X relies on Y - i... | ### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it no longer works.
```
rm -r ~/.cache/huggingface... | 76 | prebuilt dataset relies on `downloads/extracted`
### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it n... |
https://github.com/huggingface/datasets/issues/5457 | prebuilt dataset relies on `downloads/extracted` | Hello,
I also face some problem with prebuilt dataset that relies on the same directory on
`.cache\\huggingface\\datasets\\downloads\\extracted\\b557ce52f22c65030869d849d199d7b3fd5af18b335143729c717d29f6221baa\\ADEChallengeData2016\\annotations\\training\\ADE_train_00000023.png'`
The images exist but the tra... | ### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it no longer works.
```
rm -r ~/.cache/huggingface... | 501 | prebuilt dataset relies on `downloads/extracted`
### Describe the bug
I pre-built the dataset:
```
python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing
```
and it can be used just fine.
now I wipe out `downloads/extracted` and it n... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Hi @arymbe, thanks for reporting.
Unfortunately, I'm not able to reproduce your problem.
Could you please write the complete stack trace? That way we will be able to see which package originates the exception. | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 34 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Hello, thank you for your fast replied. this is the complete error that I got
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
---------------------------------------------------------------------------
At... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 169 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | This is weird... It is long ago that the package `huggingface_hub` has a submodule called `hf_api`.
Maybe you have a problem with your installed `huggingface_hub`...
Could you please try to update it?
```shell
pip install -U huggingface_hub
``` | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 38 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Yap, I've updated several times. Then, I've tried numeral combination of datasets and huggingface_hub versions. However, I think your point is right that there is a problem with my huggingface_hub installation. I'll try another way to find the solution. I'll update it later when I get the solution. Thank you :) | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 51 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I'm sorry I can't reproduce your problem.
Maybe you could try to create a new Python virtual environment and install all dependencies there from scratch. You can use either:
- Python venv: https://docs.python.org/3/library/venv.html
- or conda venv (if you are using conda): https://docs.conda.io/projects/conda/en/... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 43 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Facing the same issue.
Response from `pip show datasets`
```
Name: datasets
Version: 1.15.1
Summary: HuggingFace community-driven open-source library of datasets
Home-page: https://github.com/huggingface/datasets
Author: HuggingFace Inc.
Author-email: thomas@huggingface.co
License: Apache 2.0
Location: /usr... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 167 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | A workaround:
I changed lines around Line 125 in `__init__.py` of `huggingface_hub` to something like
```
__getattr__, __dir__, __all__ = _attach(
__name__,
submodules=['hf_api'],
```
and it works ( which gives `datasets` direct access to `huggingface_hub.hf_api` ). | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 36 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I was getting the same issue. After trying a few versions, following combination worked for me.
dataset==2.3.2
huggingface_hub==0.7.0
In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked.... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 53 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | (For layoutlmv3 fine-tuning) In my case, modifying `requirements.txt` as below worked.
- python = 3.7
```
datasets==2.3.2
evaluate==0.1.2
huggingface-hub==0.8.1
response==0.5.0
tokenizers==0.10.1
transformers==4.12.5
seqeval==1.2.2
deepspeed==0.5.7
tensorboard==2.7.0
seqeval==1.2.2
sentencepiece
timm=... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 33 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I encountered the same issue where the problem is the absence of the 'scipy' library.
To solve this open your terminal or command prompt and run the following command to install 'scipy': pip install scipy .
Restart the kernel and rerun the cell and it will work.
| ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 47 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | > I was getting the same issue. After trying a few versions, following combination worked for me. dataset==2.3.2 huggingface_hub==0.7.0
>
> In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also wor... | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metr... | 137 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from d... |
https://github.com/huggingface/datasets/issues/4381 | Bug in caching 2 datasets both with the same builder class name | Hi @NouamaneTazi, thanks for reporting.
Please note that both datasets are cached in the same directory because their loading builder classes have the same name: `class MTOP(datasets.GeneratorBasedBuilder)`.
You should name their builder classes differently, e.g.:
- `MtopDomain`
- `MtopIntent` | ## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datas... | 39 | Bug in caching 2 datasets both with the same builder class name
## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete... |
https://github.com/huggingface/datasets/issues/4381 | Bug in caching 2 datasets both with the same builder class name | Hi @NouamaneTazi, please note that after our fix:
- #4388
we do not consider the class name anymore, but the name of the file where the loading builder class is implemented. | ## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datas... | 31 | Bug in caching 2 datasets both with the same builder class name
## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete... |
https://github.com/huggingface/datasets/issues/6989 | cache in nfs error | Hey @simplew2011 I am curious if you know of a workaround, or possible implications of letting the code run? | ### Describe the bug
- When reading dataset, a cache will be generated to the ~/. cache/huggingface/datasets directory
- When using .map and .filter operations, runtime cache will be generated to the /tmp/hf_datasets-* directory
- The default is to use the path of tempfile.tempdir
- If I modify this path to the N... | 19 | cache in nfs error
### Describe the bug
- When reading dataset, a cache will be generated to the ~/. cache/huggingface/datasets directory
- When using .map and .filter operations, runtime cache will be generated to the /tmp/hf_datasets-* directory
- The default is to use the path of tempfile.tempdir
- If I modify... |
https://github.com/huggingface/datasets/issues/6881 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags' | @albertvillanova @lhoestq just ran into it and requiring newer pillow isn't a solution as it breaks Pillow-SIMD which is behind Pillow quite a few versions but necessary for training with reasonable throughput.
A couple things here...
1. This can be done with a method that isn't an issue for any somewhat recent... | When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/datasets/src/datasets/iterable_dataset.py in __iter__(self)
1... | 124 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/da... |
https://github.com/huggingface/datasets/issues/6881 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags' | Hi @rwightman, thanks for your feedback.
First, as a side note comment, please note that you are depending on Pillow-SIMD and that library seems no longer maintained:
- it has not been updated for more than a year: last commit to main was on June 20, 2023: https://github.com/uploadcare/pillow-simd/commit/faae977a00... | When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/datasets/src/datasets/iterable_dataset.py in __iter__(self)
1... | 99 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/da... |
https://github.com/huggingface/datasets/issues/6881 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags' | @albertvillanova
Huh, thought I'd just installed the current datasets when I ran into this, maybe it was behind...
I'm aware the support for SIMD is a problem, but it's up to 8x faster than non SIMD Pillow and really necessary in many training situations or you have lots of idle GPUs. The current situation is un... | When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/datasets/src/datasets/iterable_dataset.py in __iter__(self)
1... | 70 | AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
```Python traceback
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
```
The error traceback:
```Python traceback
~/huggingface/da... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | The dataset is made of JSON files compressed using zstandard, as you can see here: https://huggingface.co/datasets/cerebras/SlimPajama-627B/tree/main/test/chunk1
That's why it asks for zstandard to be installed.
Though I'm intrigued that you manage to load the dataset without zstandard installed. Maybe `pyarrow` ... | ### Describe the bug
Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets.
This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while it asks you to install the package), but it ... | 57 | .load_dataset() method defaults to zstandard
### Describe the bug
Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets.
This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | > The dataset is made of JSON files compressed using zstandard, as you can see here: https://huggingface.co/datasets/cerebras/SlimPajama-627B/tree/main/test/chunk1
>
> That's why it asks for zstandard to be installed.
>
> Though I'm intrigued that you manage to load the dataset without zstandard installed. Maybe ... | ### Describe the bug
Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets.
This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while it asks you to install the package), but it ... | 204 | .load_dataset() method defaults to zstandard
### Describe the bug
Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets.
This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.