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/3265 | Checksum error for kilt_task_wow | Using `dataset = load_dataset("kilt_tasks", "wow", ignore_verifications=True)` may fix it, but I do not think it is a elegant solution. | ## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_ta... | 19 | Checksum error for kilt_task_wow
## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Download... |
https://github.com/huggingface/datasets/issues/3265 | Checksum error for kilt_task_wow | Hi @slyviacassell, thanks for reporting.
Yes, there is an issue with the checksum verification. I'm fixing it.
And as you pointed out, in the meantime, you can circumvent the problem by passing `ignore_verifications=True`. | ## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_ta... | 33 | Checksum error for kilt_task_wow
## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Download... |
https://github.com/huggingface/datasets/issues/6153 | custom load dataset to hub | > This is an issue for the [Datasets repo](https://github.com/huggingface/datasets).
Thanks @sgugger , I guess I will wait for them to address the issue . Looking forward to hearing from them | ### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know how to upload to hub
### ... | 30 | custom load dataset to hub
### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know... |
https://github.com/huggingface/datasets/issues/6153 | custom load dataset to hub | > You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub.
how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot ! | ### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know how to upload to hub
### ... | 30 | custom load dataset to hub
### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know... |
https://github.com/huggingface/datasets/issues/6153 | custom load dataset to hub | > > You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub.
>
> how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot !
I solved it by upgrading `Datasets` version to 2.15.0 | ### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know how to upload to hub
### ... | 42 | custom load dataset to hub
### System Info
kaggle notebook
i transformed dataset:
```
dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt")
```
to
formatted_dataset:
```
Dataset({
features: ['message_tree_id', 'message_tree_text'],
num_rows: 33143
})
```
but would like to know... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | I am experiencing the same problem with the following environment:
* `datasets` version: 2.11.0
* Platform: `Linux 5.19.0-41-generic x86_64 GNU/Linux`
* Python version: `3.8.5`
* Huggingface_hub version: 0.13.3
* PyArrow version: `11.0.0`
* Pandas version: `1.5.3`
Trying to get some diagnostics, I got the fo... | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 120 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again ... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | same problem with a private dataset repo, seems the huggingface hub server got some connection problem? | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 16 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again ... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | @SingL3 You can avoid this error by setting the [`HF_DATASETS_OFFLINE`](https://huggingface.co/docs/datasets/v2.12.0/en/loading#offline) env variable to 1. By default, if an internet connection is available, we check whether the cache of a cached dataset is up-to-date.
@lucidBrot `datasets`' cache is still not alig... | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 48 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again ... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | Today we had a big issue affecting the Hugging Face Hub, thus all the `504 Server Error: Gateway Time-out` errors.
It is fixed now and loading your datasets should work as expected. | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 32 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again ... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | Hi, @albertvillanova.
If there is a locally cached version of datasets or something cache using huggingface_hub, when a network problem(either client or server) occurs, is it a better way to fallback to use the current cached version rather than raise a exception and exit? | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 44 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again ... |
https://github.com/huggingface/datasets/issues/4248 | conll2003 dataset loads original data. | Thanks for reporting @sue99.
Unfortunately. I'm not able to reproduce your problem:
```python
In [1]: import datasets
...: from datasets import load_dataset
...: dataset = load_dataset("conll2003")
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_ta... | ## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ?
## Steps to... | 158 | conll2003 dataset loads original data.
## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name li... |
https://github.com/huggingface/datasets/issues/6048 | when i use datasets.load_dataset, i encounter the http connect error! | The `audiofolder` loader is not available in version `2.3.2`, hence the error. Please run the `pip install -U datasets` command to update the `datasets` installation to make `load_dataset("audiofolder", ...)` work. | ### Describe the bug
`common_voice_test = load_dataset("audiofolder", data_dir="./dataset/",cache_dir="./cache",split=datasets.Split.TEST)`
when i run the code above, i got the error as below:
--------------------------------------------
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/... | 30 | when i use datasets.load_dataset, i encounter the http connect error!
### Describe the bug
`common_voice_test = load_dataset("audiofolder", data_dir="./dataset/",cache_dir="./cache",split=datasets.Split.TEST)`
when i run the code above, i got the error as below:
--------------------------------------------
Connecti... |
https://github.com/huggingface/datasets/issues/6071 | storage_options provided to load_dataset not fully piping through since datasets 2.14.0 | Hi ! Thanks for reporting, I opened a PR to fix this
What filesystem are you using ? | ### Describe the bug
Since the latest release of `datasets` (`2.14.0`), custom filesystem `storage_options` passed to `load_dataset()` do not seem to propagate through all the way - leading to problems if loading data files that need those options to be set.
I think this is because of the new `_prepare_path_and_sto... | 18 | storage_options provided to load_dataset not fully piping through since datasets 2.14.0
### Describe the bug
Since the latest release of `datasets` (`2.14.0`), custom filesystem `storage_options` passed to `load_dataset()` do not seem to propagate through all the way - leading to problems if loading data files that ne... |
https://github.com/huggingface/datasets/issues/6071 | storage_options provided to load_dataset not fully piping through since datasets 2.14.0 | Hi @lhoestq ! Thank you so much π
It's a bit of a custom setup, but in practice I am using a [pyarrow.fs.S3FileSystem](https://arrow.apache.org/docs/python/generated/pyarrow.fs.S3FileSystem.html) (wrapped in a `fsspec.implementations.arrow.ArrowFSWrapper` [to make it](https://arrow.apache.org/docs/python/filesyste... | ### Describe the bug
Since the latest release of `datasets` (`2.14.0`), custom filesystem `storage_options` passed to `load_dataset()` do not seem to propagate through all the way - leading to problems if loading data files that need those options to be set.
I think this is because of the new `_prepare_path_and_sto... | 86 | storage_options provided to load_dataset not fully piping through since datasets 2.14.0
### Describe the bug
Since the latest release of `datasets` (`2.14.0`), custom filesystem `storage_options` passed to `load_dataset()` do not seem to propagate through all the way - leading to problems if loading data files that ne... |
https://github.com/huggingface/datasets/issues/7455 | Problems with local dataset after upgrade from 3.3.2 to 3.4.0 | Hi ! I just released 3.4.1 with a fix, let me know if it's working now ! | ### Describe the bug
I was not able to open a local saved dataset anymore that was created using an older datasets version after the upgrade yesterday from datasets 3.3.2 to 3.4.0
The traceback is
```
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/datasets/packaged_modules/arrow/... | 17 | Problems with local dataset after upgrade from 3.3.2 to 3.4.0
### Describe the bug
I was not able to open a local saved dataset anymore that was created using an older datasets version after the upgrade yesterday from datasets 3.3.2 to 3.4.0
The traceback is
```
Traceback (most recent call last):
File "/usr/local... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | @mariosasko, @lhoestq, @albertvillanova
hey guys! can anyone help? or can you guys suggest who can help with this? | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 18 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | Hi !
1. When the dataset is running of of examples, the last batches received by the GPU can be incomplete or empty/missing. We haven't implemented yet a way to ignore the last batch. It might require the datasets to provide the number of examples per shard though, so that we can know when to stop.
2. Samplers are... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 128 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > if dataset.n_shards % world_size != 0 then all the nodes will read/stream the full dataset in order (possibly reading/streaming the same data multiple times), BUT will only yield one example out of world_size so that each example goes to one exactly one GPU.
considering there's just 1 shard and 2 worker nodes, do ... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 73 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | Yes both nodes will stream from the 1 shard, but each node will skip half of the examples. This way in total each example is seen once and exactly once during you distributed training.
Though it terms of I/O, the dataset is effectively read/streamed twice. | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 45 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | what if the number of samples in that shard % num_nodes != 0? it will break/get stuck? or is the data repeated in that case for gradient sync? | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 28 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | In the case one at least one of the nodes will get an empty/incomplete batch. The data is not repeated in that case. If the training loop doesn't take this into account it can lead to unexpected behaviors indeed.
In the future we'd like to add a feature that would allow the nodes to ignore the last batch, this way a... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 68 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > In the case one at least one of the noes will get an empty/incomplete batch. The data is not repeated in that case. If the training loop doesn't take this into account it can lead to unexpected behaviors indeed.
>
> In the future we'd like to add a feature that would allow the nodes to ignore the last batch, this ... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 92 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > modify the number of files is ok? one file == one shard?
Yep, one file == one shard :) | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 20 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | Hi @lhoestq, do you have any advice on how to implement a fix for the case dataset.n_shards % world_size != 0 while such a fix is not supported in the library?
It seems essential for performing validation in a ddp setting
Simply limiting the number of files is a bit brittle as it relies on world size being consis... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 92 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > How should a user either ignore the last batch or handle the empty batch?
Check the batch size in the training loop and use all_reduce (or any communication method) to make sure all the nodes got their data before passing them to the model. If some data are missing you can decide to stop the training loop or repea... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 122 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | @lhoestq Unfortunately for IterableDataset there isn't a way to do this in general without introducing communciation between ranks, or having all the ranks read all the data before starting to figure out when to stop (which is pretty impractical). My recommendation for these situations where you don't know the total nu... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 79 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | A heads up that we're planning to land something new in torchdata by end-of-year to help with these scenarios, we'll update this thread when we hvae some code landed | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 29 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | I made a quick example with communication between ranks to stop once all the data from all the ranks are exhausted (and repeating data if necessary to end up with a number of samples evenly divisible)
```python
import torch
import torch.distributed as dist
from datasets import Dataset
from datasets.distributed import ... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 271 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | @lhoestq in the case where dataset.n_shards is divisible by world_size, is it important that each shard contains exactly the same number of samples? what happens if this isn't the case (in what circumstances will this cause a timeout)? | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 38 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | If your data are not evenly divisible (dataset.n_shards divisibility by world_size just changes the logic to distribute the data) you'll need some logic to make the GPUs happy at the end of training. E.g. with my [example above](https://github.com/huggingface/datasets/issues/6623#issuecomment-2379458138) to stop once a... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 92 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | Ok makes sense, thanks for the explanation. I guess even if the shards all contain the same amount of data you still have an issue if you do any filtering (https://github.com/huggingface/datasets/issues/6719)
What do you think of dataset.repeat(n).take(samples_per_epoch) as a simple way of handling this kind of situ... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 54 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > I made a quick example with communication between ranks to stop once all the data from all the ranks are exhausted (and repeating data if necessary to end up with a number of samples evenly divisible)
>
> ```python
> from itertools import cycle, chain
> ...
> # IMPORTANT: Loop over the local dataset until the d... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 137 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | I have a node with 8 cards and training files splited into 56 sub files, so my n_shards= 56 / 8 = 7; my initial num_workers = 32, and it report that n_shards = 7 < num_workers, so 25 wokers are stoped, as a result, my training can use only 7 cpu cores at all. should I set my num_wokers less then 7 to get more cpu co... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 69 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | In your case each rank has a DataLoader with 7 running workers (and 25 stopped workers) so actually in total there are 8*7=56 DataLoader workers running (one per shard).
If you want to use more CPU for the DataLoader you can shard your dataset in more files than 56. E.g. if you want each rank to run 32 DataLoader wo... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 64 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | Torch now provides the [`Join()`](https://docs.pytorch.org/tutorials/advanced/generic_join.html#:%7E:text=The%20context%20manager%20allows%20the,shadowed%20are%20specified%20by%20hooks) context manager to handle uneven input distribution across nodes, which works with DDP:
```python
model = DDP(...)
ds = split_datase... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 47 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | I opened https://github.com/huggingface/datasets/pull/7854 to fix this: this PR makes `split_dataset_by_node()` always make each node have the same number of examples. This uses torch.distributed to sync the nodes. | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 27 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > I opened [#7854](https://github.com/huggingface/datasets/pull/7854) to fix this: this PR makes `split_dataset_by_node()` always make each node have the same number of examples. This uses torch.distributed to sync the nodes.
Great work! If packing is used during training, even if split_dataset_by_node guarantees the ... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 103 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | I agree `Join()` is a more general solution (which makes me think we might not need https://github.com/huggingface/datasets/pull/7854).
`Join()` works with torch DDP, and the `transformers.Trainer` uses `accelerate` which uses torch DDP to wrap the model at `trainer.model_wrapped`, so you could try something with a ca... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 112 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | > transformers.Trainer
Thank you so much for your reply! I've found that when the number of samples for each rank is unequal, the `transformers.Trainer.train` process runs normally, but only the `transformers.Trainer.evaluate` process hangs. I'm currently unsure what difference causes the different behavior of `train`... | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 46 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6623 | streaming datasets doesn't work properly with multi-node | I guess `accelerate` fixes the issue for training, but maybe the dataloader is not prepared the same way for evaluation ? | ### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensure it doesnβt get repeated. And since itβs already splitt... | 21 | streaming datasets doesn't work properly with multi-node
### Feature request
Letβs say I have a dataset with 5 samples with values [1, 2, 3, 4, 5], with 2 GPUs (for DDP) and batch size of 2. This dataset is an `IterableDataset` since I am streaming it.
Now I split the dataset using `split_dataset_by_node` to ensu... |
https://github.com/huggingface/datasets/issues/6038 | File "/home/zhizhou/anaconda3/envs/pytorch/lib/python3.10/site-packages/datasets/builder.py", line 992, in _download_and_prepare if str(split_generator.split_info.name).lower() == "all": AttributeError: 'str' object has no attribute 'split_info'. Did you mean: 'splitlines'? | Instead of writing the loading script, you can use the built-in loader to [load JSON files](https://huggingface.co/docs/datasets/loading#json):
```python
from datasets import load_dataset
ds = load_dataset("json", data_files={"train": os.path.join(data_dir["train"]), "dev": os.path.join(data_dir["dev"])})
``` | Hi, I use the code below to load local file
```
def _split_generators(self, dl_manager):
# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
# If several configurations are possible (listed in BUILDER_CONFIGS), the configurati... | 29 | File "/home/zhizhou/anaconda3/envs/pytorch/lib/python3.10/site-packages/datasets/builder.py", line 992, in _download_and_prepare if str(split_generator.split_info.name).lower() == "all": AttributeError: 'str' object has no attribute 'split_info'. Did you mean: 'splitlines'?
Hi, I use the code below to load local ... |
https://github.com/huggingface/datasets/issues/5710 | OSError: Memory mapping file failed: Cannot allocate memory | Hi! This error means that PyArrow's internal [`mmap`](https://man7.org/linux/man-pages/man2/mmap.2.html) call failed to allocate memory, which can be tricky to debug. Since this error is more related to PyArrow than us, I think it's best to report this issue in their [repo](https://github.com/apache/arrow) (they are mo... | ### Describe the bug
Hello, I have a series of datasets each of 5 GB, 600 datasets in total. So together this makes 3TB.
When I trying to load all the 600 datasets into memory, I get the above error message.
Is this normal because I'm hitting the max size of memory mapping of the OS?
Thank you
```te... | 60 | OSError: Memory mapping file failed: Cannot allocate memory
### Describe the bug
Hello, I have a series of datasets each of 5 GB, 600 datasets in total. So together this makes 3TB.
When I trying to load all the 600 datasets into memory, I get the above error message.
Is this normal because I'm hitting the ma... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | I couldn't reproduce the issue on my side on MacOS, I guess the issue comes from the recent `fsspec` on Windows.
Can you try downgrading to `fsspec==2023.9.2` for now ? It would also be great to investigate this and see if we need a fix in `datasets` or `fsspec` | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 49 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | I had the same issue!
Downgrading to fsspec from 2023.10.0 to 2023.9.2 solved it for me.
(env: python 3.11.7, datasets version: 2.15.0, Windows 10 22H2, Build 19045.4170)
Thanks a lot! | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 30 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | Ubuntu 20.04 had the same issue
python 3.9
File "/home/delight-gpu/Workspace2/azuryl/FLAP/main.py", line 112, in <module>
main()
File "/home/delight-gpu/Workspace2/azuryl/FLAP/main.py", line 85, in main
prune_flap(args, model, tokenizer, device)
File "/home/delight-gpu/Workspace2/azuryl/FLAP/lib/p... | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 169 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | on ubuntu you just need to have the latest `datasets` and `fsspec`
```
pip install -U datasets fsspec
``` | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 19 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | The issue was caused by an incompatibility between the versions of `datasets`, `huggingface-hub` and `fsspec`.
The issue was fixed in:
- huggingface-hub-0.21.2: https://github.com/huggingface/huggingface_hub/pull/2056
- and datasets-2.18.0: https://github.com/huggingface/datasets/pull/6687
- datasets-2.19.1 fix... | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 37 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | @albertvillanova, thank you for this solution. I encountered the same issue and had to use:
```
conda install -c conda-forge huggingface_hub=0.21.2 datasets=2.19.1
```
Cheers | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | 24 | Invalid pattern: '**' can only be an entire path component
### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expecte... |
https://github.com/huggingface/datasets/issues/7733 | Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path | This is the download issues I come into, about ever other time it fails...
<img width="1719" height="1226" alt="Image" src="https://github.com/user-attachments/assets/2e5b4b3e-7c13-4bad-a77c-34b47a932831" /> | ### Describe the bug
Iβm not sure if this is a bug or a feature and I just donβt fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. Iβve uploaded a new dataset to hugging face (rmdig/rocky_mountain_snowpack) but Iβve come into a ton of... | 20 | Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path
### Describe the bug
Iβm not sure if this is a bug or a feature and I just donβt fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. Iβve uploaded a new datase... |
https://github.com/huggingface/datasets/issues/7733 | Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path | Iβm guessing this is just a feature so Iβm going to close this thread. I also altered my loading scheme to start on the first index of a particular modality within the dataset (index ~390) and this issue went away with client error from too many requests. Due to how the dataset is sorted in HF, there are gaps in my dat... | ### Describe the bug
Iβm not sure if this is a bug or a feature and I just donβt fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. Iβve uploaded a new dataset to hugging face (rmdig/rocky_mountain_snowpack) but Iβve come into a ton of... | 162 | Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path
### Describe the bug
Iβm not sure if this is a bug or a feature and I just donβt fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. Iβve uploaded a new datase... |
https://github.com/huggingface/datasets/issues/4476 | `to_pandas` doesn't take into account format. | Thanks for opening a discussion :)
Note that you can use `.remove_columns(...)` to keep only the ones you're interested in before calling `.to_pandas()` | **Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`.
**Describe the solu... | 23 | `to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and... |
https://github.com/huggingface/datasets/issues/4476 | `to_pandas` doesn't take into account format. | Yes I can do that thank you!
Do you think that conceptually my example should work? If not, I'm happy to close this issue.
If yes, I can start working on it. | **Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`.
**Describe the solu... | 32 | `to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and... |
https://github.com/huggingface/datasets/issues/4476 | `to_pandas` doesn't take into account format. | Hi! Instead of `with_format(columns=['a', 'b']).to_pandas()`, use `with_format("pandas", columns=["a", "b"])` for easy conversion of the parts of the dataset to pandas via indexing/slicing.
The full code:
```python
from datasets import Dataset
ds = Dataset.from_dict({'a': [1,2,3], 'b': [5,6,7], 'c': [8,9,10]})
... | **Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`.
**Describe the solu... | 44 | `to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.**
I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and... |
https://github.com/huggingface/datasets/issues/5381 | Wrong URL for the_pile dataset | Hi! This error can happen if there is a local file/folder with the same name as the requested dataset. And to avoid it, rename the local file/folder.
Soon, it will be possible to explicitly request a Hub dataset as follows:https://github.com/huggingface/datasets/issues/5228#issuecomment-1313494020 | ### Describe the bug
When trying to load `the_pile` dataset from the library, I get a `FileNotFound` error.
### Steps to reproduce the bug
Steps to reproduce:
Run:
```
from datasets import load_dataset
dataset = load_dataset("the_pile")
```
I get the output:
"name": "FileNotFoundError",
"message... | 40 | Wrong URL for the_pile dataset
### Describe the bug
When trying to load `the_pile` dataset from the library, I get a `FileNotFound` error.
### Steps to reproduce the bug
Steps to reproduce:
Run:
```
from datasets import load_dataset
dataset = load_dataset("the_pile")
```
I get the output:
"name": ... |
https://github.com/huggingface/datasets/issues/5451 | ImageFolder BadZipFile: Bad offset for central directory | Hi ! Could you share the full stack trace ? Which dataset did you try to load ?
it may be related to https://github.com/huggingface/datasets/pull/5640 | ### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: Position of start of central directory ... | 24 | ImageFolder BadZipFile: Bad offset for central directory
### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: ... |
https://github.com/huggingface/datasets/issues/5451 | ImageFolder BadZipFile: Bad offset for central directory | The `BadZipFile` error means the ZIP file is corrupted, so I'm closing this issue as it's not directly related to `datasets`. | ### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: Position of start of central directory ... | 21 | ImageFolder BadZipFile: Bad offset for central directory
### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: ... |
https://github.com/huggingface/datasets/issues/5451 | ImageFolder BadZipFile: Bad offset for central directory | For others that find this issue following a `BadZipFile` error, I had the same problem because I had a file in a folder dataset `my-image.target` and the datasets library was incorrectly determining that the (PNG) file was a zip archive. When it tried to extract the file, this error occurred.
Updating to `datasets=... | ### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: Position of start of central directory ... | 58 | ImageFolder BadZipFile: Bad offset for central directory
### Describe the bug
I'm getting the following exception:
```
lib/python3.10/zipfile.py:1353 in _RealGetContents β
β β
β 1350 β β # self.start_dir: ... |
https://github.com/huggingface/datasets/issues/7867 | NonMatchingSplitsSizesError when loading partial dataset files | While using verification_mode='no_checks' parameter in load_dataset() can bypass this validation, this solution is not intuitive or convenient for most users, especially those who are not familiar with all the parameters of the load_dataset() function.
```python
book_corpus_ds = load_dataset(
"SaylorTwift/the_pile... | ### Describe the bug
When loading only a subset of dataset files while the dataset's README.md contains split metadata, the system throws a NonMatchingSplitsSizesError . This prevents users from loading partial datasets for quick validation in cases of poor network conditions or very large datasets.
### Steps to repr... | 46 | NonMatchingSplitsSizesError when loading partial dataset files
### Describe the bug
When loading only a subset of dataset files while the dataset's README.md contains split metadata, the system throws a NonMatchingSplitsSizesError . This prevents users from loading partial datasets for quick validation in cases of poo... |
https://github.com/huggingface/datasets/issues/7867 | NonMatchingSplitsSizesError when loading partial dataset files | Thanks for the report and reproduction steps @QingGo
@lhoestq which one of the following looks like a nicer way to handle this?
1] Skip split-size validation entirely for partial loads
If the user passes data_files manually and it represents only a subset, then verify_splits() should simply not run, or skip validatio... | ### Describe the bug
When loading only a subset of dataset files while the dataset's README.md contains split metadata, the system throws a NonMatchingSplitsSizesError . This prevents users from loading partial datasets for quick validation in cases of poor network conditions or very large datasets.
### Steps to repr... | 103 | NonMatchingSplitsSizesError when loading partial dataset files
### Describe the bug
When loading only a subset of dataset files while the dataset's README.md contains split metadata, the system throws a NonMatchingSplitsSizesError . This prevents users from loading partial datasets for quick validation in cases of poo... |
https://github.com/huggingface/datasets/issues/6436 | TypeError: <lambda>() takes 0 positional arguments but 1 was given | I meet the same problem,
and originally use
```python
locale.getpreferredencoding = lambda : "UTF-8"
```
and change to
```
locale.getpreferredencoding = lambda x: "UTF-8"
```
and it works. | ### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from datasets import Dataset
9 frames
[/usr/lo... | 28 | TypeError: <lambda>() takes 0 positional arguments but 1 was given
### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell lin... |
https://github.com/huggingface/datasets/issues/6436 | TypeError: <lambda>() takes 0 positional arguments but 1 was given | > I meet the same problem, and originally use
>
> locale.getpreferredencoding = lambda : "UTF-8"
>
> and change to
>
> ```
> locale.getpreferredencoding = lambda x: "UTF-8"
> ```
>
> and it works.
Thanks, works for me too. | ### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from datasets import Dataset
9 frames
[/usr/lo... | 42 | TypeError: <lambda>() takes 0 positional arguments but 1 was given
### Describe the bug
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell lin... |
https://github.com/huggingface/datasets/issues/7420 | better correspondence between cached and saved datasets created using from_generator | Until this lands, in case anyone needs this, I made this helper (based on HF sources) that merely serializes the metadata from a dataset, thus allowing to bypass the completely redundant additional save.
```python
import json
import posixpath
import os
from typing import Optional
from fsspec.core import url_to_fs
from... | ### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a... | 315 | better correspondence between cached and saved datasets created using from_generator
### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to conv... |
https://github.com/huggingface/datasets/issues/7420 | better correspondence between cached and saved datasets created using from_generator | @lhoestq Do you think this issue could get some traction to be resolved? Currently if you have a large dataset created in cache and need to persist it, I don't think it's great that you have to use double disk space and hours on re-serializing the dataset, when in reality only the metadata is missing. Imo Datasets shou... | ### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a... | 70 | better correspondence between cached and saved datasets created using from_generator
### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to conv... |
https://github.com/huggingface/datasets/issues/7420 | better correspondence between cached and saved datasets created using from_generator | Have you tried using pickle ?
```python
ds = Dataset.from_genetator(...) # generates and caches the dataset
with open("dataset.pickle", "wb") as f:
pickle.dump(ds, f) # saves the Dataset obj including the cache files locations (and not the data! unless some of them live in memory because of add_column or add_ite... | ### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a... | 188 | better correspondence between cached and saved datasets created using from_generator
### Feature request
At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to conv... |
https://github.com/huggingface/datasets/issues/6829 | Load and save from/to disk no longer accept pathlib.Path | Hi! Triaging older issues β I think this one has shipped and can be closed.
I tried to reproduce on the current `main` branch with the snippet below and both code paths now work:
```python
from pathlib import Path
import tempfile
from datasets import Dataset
ds = Dataset.from_dict({"x": [1, 2, 3]})
with tempfile.Tem... | Reported by @vttrifonov at https://github.com/huggingface/datasets/pull/6704#issuecomment-2071168296:
> This change is breaking in
> https://github.com/huggingface/datasets/blob/f96e74d5c633cd5435dd526adb4a74631eb05c43/src/datasets/arrow_dataset.py#L1515
> when the input is `pathlib.Path`. The issue is that `url_to... | 132 | Load and save from/to disk no longer accept pathlib.Path
Reported by @vttrifonov at https://github.com/huggingface/datasets/pull/6704#issuecomment-2071168296:
> This change is breaking in
> https://github.com/huggingface/datasets/blob/f96e74d5c633cd5435dd526adb4a74631eb05c43/src/datasets/arrow_dataset.py#L1515
> wh... |
https://github.com/huggingface/datasets/issues/7611 | Code example for dataset.add_column() does not reflect correct way to use function | Hi @shaily99
Thanks for pointing this out β you're absolutely right!
The current example in the docstring for add_column() implies in-place modification, which is misleading since add_column() actually returns a new dataset. | https://github.com/huggingface/datasets/blame/38d4d0e11e22fdbc4acf373d2421d25abeb43439/src/datasets/arrow_dataset.py#L5925C10-L5925C10
The example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong -- it cannot. It returns a new dataset with the column added to it. | 32 | Code example for dataset.add_column() does not reflect correct way to use function
https://github.com/huggingface/datasets/blame/38d4d0e11e22fdbc4acf373d2421d25abeb43439/src/datasets/arrow_dataset.py#L5925C10-L5925C10
The example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | Hi ! Your HF_ENDPOINT seems wrong because of the extra "/"
```diff
- os.environ["HF_ENDPOINT"] = "https://hub-ci.huggingface.co/"
+ os.environ["HF_ENDPOINT"] = "https://hub-ci.huggingface.co"
```
can you try again without the extra "/" ? | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 30 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | Oh, yes, sorry, but it's not the issue.
In my code, I set `HF_ENDPOINT=https://hub-ci.huggingface.co`. I added `os.environ["HF_ENDPOINT"] = "https://hub-ci.huggingface.co/"` afterward just to indicate that we had to have this env var and made a mistake there | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 36 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | I can't reproduce on my side. I tried using a private dataset repo with a CSV file on hub-ci
What's your version of `huggingface_hub` ? | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 25 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | I can't reproduce either... Not sure what has occurred, very sorry to have made you lost your time on that | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 20 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | I got something similar in https://github.com/huggingface/datasets-server/pull/608. Look how changing the order of the tests (https://github.com/huggingface/datasets-server/pull/608/commits/2c50fe833323de3dfdc76c5cd68639279e0887f8) change the result, which means that something has a side-effect:
- https://github.com/h... | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 42 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | The issue happens because `extend_module_for_streaming` can't be used several times on packaged builders like `csv` to apply a new auth token. Indeed `extend_module_for_streaming` only applies authentication once, and on subsequent calls does nothing:
https://github.com/huggingface/datasets/blob/07b7c38d9e9c72c74b02... | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 96 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/4875 | `_resolve_features` ignores the token | > This can be fixed by storing a dict token_per_repo_id instead of use_auth_token in the authentication wrapper, and by making it possible to update the authentication wrapper with a new token
If I call the module on the same repo twice: first with authentication, then without authentication, would the second call u... | ## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `... | 69 | `_resolve_features` ignores the token
## Describe the bug
When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ign... |
https://github.com/huggingface/datasets/issues/5388 | Getting Value Error while loading a dataset.. | Hi! I can't reproduce this error locally (Mac) or in Colab. What version of `datasets` are you using? | ### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---... | 18 | Getting Value Error while loading a dataset..
### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom da... |
https://github.com/huggingface/datasets/issues/5388 | Getting Value Error while loading a dataset.. | @valmetisrinivas you get that error because you imported `datasets` (and thus `fsspec`) before installing `zstandard`.
Please, restart your Colab runtime and execute the install commands before importing `datasets`:
```python
!pip install datasets
!pip install zstandard
from datasets import load_dataset
ds ... | ### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---... | 49 | Getting Value Error while loading a dataset..
### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom da... |
https://github.com/huggingface/datasets/issues/5388 | Getting Value Error while loading a dataset.. | > @valmetisrinivas you get that error because you imported `datasets` (and thus `fsspec`) before installing `zstandard`.
>
> Please, restart your Colab runtime and execute the install commands before importing `datasets`:
>
> ```python
> !pip install datasets
> !pip install zstandard
>
> from datasets import... | ### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---... | 85 | Getting Value Error while loading a dataset..
### Describe the bug
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
WARNING:datasets.builder:Using custom da... |
https://github.com/huggingface/datasets/issues/5743 | dataclass.py in virtual environment is overriding the stdlib module "dataclasses" | We no longer depend on `dataclasses` (for almost a year), so I don't think our package is the problematic one.
I think it makes more sense to raise this issue in the `dataclasses` repo: https://github.com/ericvsmith/dataclasses. | ### Describe the bug
"e:\Krish_naik\FSDSRegression\venv\Lib\dataclasses.py" is overriding the stdlib module "dataclasses"
### Steps to reproduce the bug
module issue
### Expected behavior
overriding the stdlib module "dataclasses"
### Environment info
VS code | 35 | dataclass.py in virtual environment is overriding the stdlib module "dataclasses"
### Describe the bug
"e:\Krish_naik\FSDSRegression\venv\Lib\dataclasses.py" is overriding the stdlib module "dataclasses"
### Steps to reproduce the bug
module issue
### Expected behavior
overriding the stdlib module "dataclasses"... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | Yea I think waiting for #6269 would be best, or branching from it. For reference, this [PR](https://github.com/LAION-AI/Discord-Scrapers/pull/2) is progressing pretty well which will do similar using the hf hub for our LAION dataset bot https://github.com/LAION-AI/Discord-Scrapers/pull/2. | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 35 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | No update so far on this feature request but for broader context, this announce will help with incremental datasets https://huggingface.co/blog/xethub-joins-hf :) | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 21 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | Still no update? Whats the current recommended way to upload large datasets to the hub? I can't load it all to memory after some limit right | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 26 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | > Still no update? Whats the current recommended way to upload large datasets to the hub? I can't load it all to memory after some limit right
@tolgadur bro, you may set 'data_dir' as a temporary solution like that:
`Dataset.push_to_hub('your_repo_aame', data_dir='data_{index}')`
| ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 41 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | Related to this feature request: `pyarrow` 21 is out and added content defined chunking for parquet, which enables deduped uploads to Xet.
Therefore we can have a logic in append=True that modifies an existing Parquet file to add more rows without having to reupload the full file. | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 47 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | > > Still no update? Whats the current recommended way to upload large datasets to the hub? I can't load it all to memory after some limit right
>
> [@tolgadur](https://github.com/tolgadur) bro, you may set 'data_dir' as a temporary solution like that:
>
> `Dataset.push_to_hub('your_repo_aame', data_dir='data_{index}... | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 59 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | I prototyped all three approaches to measure actual Xet chunk reuse. Full notebook: https://github.com/lex00/parquet-xet/blob/main/append-prototype.ipynb
**Setup**: 100K-row synthetic dataset (10 shards Γ 10K rows), appending 1K new rows (1% growth). Chunk simulation uses fixed 64KB blocks + Blake2b β conservative pro... | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 233 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | Thanks @lex00 :) we could have the CDC approach which would download the last Parquet file of the dataset, append the row (and possibly make a new file if we cross the max shard size), and let CDC + xet only upload the updated files chunks
Btw we are working on an API to make files edits on HF easier, it will take a b... | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 93 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingf... |
https://github.com/huggingface/datasets/issues/8169 | Streaming dataset hangs consistently | I pushed a workaround for the current version of PyArrow (24.0.0) and older versions at https://github.com/huggingface/datasets/pull/8176
For future versions it should be fixed directly in PyArrow | ### Describe the bug
When loading a dataset with `streaming=True`, some background process prevents the script from ever returning (or at least for a very long time).
This did not happen with `huggingface-hub < 1`.
### Steps to reproduce the bug
from datasets import load_dataset
ds = load_dataset("IRIIS-RESEARCH/N... | 26 | Streaming dataset hangs consistently
### Describe the bug
When loading a dataset with `streaming=True`, some background process prevents the script from ever returning (or at least for a very long time).
This did not happen with `huggingface-hub < 1`.
### Steps to reproduce the bug
from datasets import load_dataset... |
https://github.com/huggingface/datasets/issues/4980 | Make `pyarrow` optional | The whole datasets library is pretty much a wrapper to pyarrow (just take a look at some of the source for a Dataset) https://github.com/huggingface/datasets/blob/51aef08ad7053c0bfe8f9a961207b26df15850d3/src/datasets/arrow_dataset.py#L639
I think removing the pyarrow dependency would involve a complete rewrite / a ... | **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 44 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
The whole datasets library is pretty much a wrapper to pya... |
https://github.com/huggingface/datasets/issues/4980 | Make `pyarrow` optional | Thanks for the proposal, @KOLANICH. And also thanks for your answer, @dconathan.
Indeed, we are using `pyarrow` as the backend for our datasets, in order to cache them and also allow memory-mapping (using datasets larger than your RAM memory).
One way to avoid using `pyarrow` could be loading the datasets in stre... | **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 73 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
Thanks for the proposal, @KOLANICH. And also thanks for yo... |
https://github.com/huggingface/datasets/issues/4980 | Make `pyarrow` optional | Thanks for the info. Could `datasets` then be made optional for `transformers` instead? I used `transformers` only to deal with pretrained models to deploy them (convert to ONNX, and then I use TVM), so I don't really need `pyarrow` and `datasets` by now.
| **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 43 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
Thanks for the info. Could `datasets` then be made optiona... |
https://github.com/huggingface/datasets/issues/7705 | Can Not read installed dataset in dataset.load(.) | You can download the dataset locally using [huggingface_hub.snapshot_download](https://huggingface.co/docs/huggingface_hub/v0.34.3/en/package_reference/file_download#huggingface_hub.snapshot_download) and then do
```python
dataset = load_dataset(local_directory_path)
``` | Hi, folks, I'm newbie in huggingface dataset api.
As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.
code snippet :
<img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4239-b1cf-145d74f125d1" />
data path :
"/xxx/jose... | 16 | Can Not read installed dataset in dataset.load(.)
Hi, folks, I'm newbie in huggingface dataset api.
As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.
code snippet :
<img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4... |
https://github.com/huggingface/datasets/issues/7705 | Can Not read installed dataset in dataset.load(.) | > You can download the dataset locally using [huggingface_hub.snapshot_download](https://huggingface.co/docs/huggingface_hub/v0.34.3/en/package_reference/file_download#huggingface_hub.snapshot_download) and then do
>
> dataset = load_dataset(local_directory_path)
It's good suggestion, but my server env is network res... | Hi, folks, I'm newbie in huggingface dataset api.
As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.
code snippet :
<img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4239-b1cf-145d74f125d1" />
data path :
"/xxx/jose... | 59 | Can Not read installed dataset in dataset.load(.)
Hi, folks, I'm newbie in huggingface dataset api.
As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.
code snippet :
<img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4... |
https://github.com/huggingface/datasets/issues/5182 | Add notebook / other resource links to the task-specific data loading guides | Yea this would be great! We would need an object detection tutorial notebook too if it doesn't already exist there. | Does it make sense to include links to notebooks / scripts that show how to use a dataset for training / fine-tuning a model?
For example, here in [https://huggingface.co/docs/datasets/image_classification] we could include a mention of https://github.com/huggingface/notebooks/blob/main/examples/image_classificatio... | 20 | Add notebook / other resource links to the task-specific data loading guides
Does it make sense to include links to notebooks / scripts that show how to use a dataset for training / fine-tuning a model?
For example, here in [https://huggingface.co/docs/datasets/image_classification] we could include a mention of ht... |
https://github.com/huggingface/datasets/issues/5752 | Streaming dataset looses `.feature` method after `.add_column` | I believe the issue resides in this line:
https://github.com/huggingface/datasets/blob/7c3a9b057c476c40d157bd7a5d57f49066239df0/src/datasets/iterable_dataset.py#L1415
If we pass the **new** features of the dataset to the `.map` method we can return the features after adding a column, e.g.:
```python
from datasets... | ### Describe the bug
After appending a new column to a streaming dataset using `.add_column`, we can no longer access the list of dataset features using the `.feature` method.
### Steps to reproduce the bug
```python
from datasets import load_dataset
original_dataset = load_dataset("librispeech_asr", "clean", sp... | 133 | Streaming dataset looses `.feature` method after `.add_column`
### Describe the bug
After appending a new column to a streaming dataset using `.add_column`, we can no longer access the list of dataset features using the `.feature` method.
### Steps to reproduce the bug
```python
from datasets import load_dataset
... |
https://github.com/huggingface/datasets/issues/5752 | Streaming dataset looses `.feature` method after `.add_column` | It seems that map will also cause this issue
### Steps to reproduce the bug
```python
from datasets import load_dataset
original_dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
print(original_dataset.features.keys())
def test(data):
return data
modified_dataset... | ### Describe the bug
After appending a new column to a streaming dataset using `.add_column`, we can no longer access the list of dataset features using the `.feature` method.
### Steps to reproduce the bug
```python
from datasets import load_dataset
original_dataset = load_dataset("librispeech_asr", "clean", sp... | 74 | Streaming dataset looses `.feature` method after `.add_column`
### Describe the bug
After appending a new column to a streaming dataset using `.add_column`, we can no longer access the list of dataset features using the `.feature` method.
### Steps to reproduce the bug
```python
from datasets import load_dataset
... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | Very strange: `datasets-cli env`
>
> Copy-and-paste the text below in your GitHub issue.
>
> - `datasets` version: 2.9.0
> - Platform: macOS-14.0-arm64-arm-64bit
> - Python version: 3.9.13
> - PyArrow version: 8.0.0
> - Pandas version: 1.3.5
After updating datasets and pyarrow on base environment, although... | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 95 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_T... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | Hi! The latest (patch) release (published a few hours ago) includes a fix for this [PyArrow security issue](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). To install it, run `pip install -U datasets`. | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 26 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_T... |
https://github.com/huggingface/datasets/issues/6417 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error | > Hi! The latest (patch) release (published a few hours ago) includes a fix for this [PyArrow security issue](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). To install it, run `pip install -U datasets`.
Thanks for the info and the latest release, it seems this has also solved my issue. First run after the updat... | ### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb
**Error**: `ValueError: Arrow type extensi... | 60 | Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug
Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab.
**Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_T... |
https://github.com/huggingface/datasets/issues/7206 | Slow iteration for iterable dataset with numpy formatting for array data | The below easily eats up 32G of RAM. Leaving it for a while bricked the laptop with 16GB.
```
dataset = load_dataset("Voxel51/OxfordFlowers102", data_dir="data").with_format("numpy")
processed_dataset = dataset.map(lambda x: x)
```
. You can run a `.filter` to drop it.
PS... | ### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,... | 68 | Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class la... |
https://github.com/huggingface/datasets/issues/6446 | Speech Commands v2 dataset doesn't match AST-v2 config | Thanks, will keep that in mind. But I tried running `dataset_aligned = dataset.align_labels_with_mapping(model.config.id2label, 'label')`, and received this error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/victor/anaconda3/envs/transformers-v2/lib/python3.9/site-... | ### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,... | 101 | Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug
[According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.