html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/6643 | Faiss GPU index cannot be serialised when passed to trainer | Issue number one seems to be an issue with FAISS indexes not being compatible with copy.deepcopy.
Maybe you try to not remove the columns, e.g. by passing `remove_unused_columns=False` | ### Describe the bug
I am working on a retrieval project and encountering I have encountered two issues in the hugging face faiss integration:
1. I am trying to pass in a dataset with a faiss index to the Huggingface trainer. The code works for a cpu faiss index, but doesn't for a gpu one, getting error:
```
... | 28 | Faiss GPU index cannot be serialised when passed to trainer
### Describe the bug
I am working on a retrieval project and encountering I have encountered two issues in the hugging face faiss integration:
1. I am trying to pass in a dataset with a faiss index to the Huggingface trainer. The code works for a cpu fa... | [
0.33449989557266235,
-0.47561341524124146,
0.08602184057235718,
0.46754151582717896,
0.31379324197769165,
0.012356095016002655,
0.38386812806129456,
0.265895813703537,
0.25768259167671204,
0.3435285985469818,
-0.10524050146341324,
0.07955443859100342,
0.24386811256408691,
0.242916926741600... |
https://github.com/huggingface/datasets/issues/6642 | Differently dataset object saved than it is loaded. | I see now, that I have to use `load_from_disk`, in order to load dataset properly, not `load_dataset`. Why is this behavior split? Why do we need both, `load_dataset` and `load_from_disk`?
Unless answered, I believe this might be helpful for other hf datasets newbies.
Anyway, made a `load_dataset` compatible data... | ### Describe the bug
Differently sized object is saved than it is loaded.
### Steps to reproduce the bug
Hi, I save dataset in a following way:
```
dataset = load_dataset("json",
data_files={
"train": os.path.join(input_folder, f"{task_met... | 89 | Differently dataset object saved than it is loaded.
### Describe the bug
Differently sized object is saved than it is loaded.
### Steps to reproduce the bug
Hi, I save dataset in a following way:
```
dataset = load_dataset("json",
data_files={
... | [
-0.05946504324674606,
-0.28285059332847595,
-0.02661094442009926,
0.6756163239479065,
0.2857491970062256,
-0.0961262434720993,
0.439543217420578,
0.15903890132904053,
0.05517878755927086,
0.25320056080818176,
0.018822377547621727,
0.39496156573295593,
-0.11068474501371384,
0.20706744492053... |
https://github.com/huggingface/datasets/issues/6642 | Differently dataset object saved than it is loaded. | Hi @MFajcik,
You can find information about save_to_disk/load_from_disk in our docs:
- https://huggingface.co/docs/datasets/v2.16.1/en/process#save
- https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Dataset.save_to_disk
- https://huggingface.co/docs/datasets/v2.16.1/en/pack... | ### Describe the bug
Differently sized object is saved than it is loaded.
### Steps to reproduce the bug
Hi, I save dataset in a following way:
```
dataset = load_dataset("json",
data_files={
"train": os.path.join(input_folder, f"{task_met... | 17 | Differently dataset object saved than it is loaded.
### Describe the bug
Differently sized object is saved than it is loaded.
### Steps to reproduce the bug
Hi, I save dataset in a following way:
```
dataset = load_dataset("json",
data_files={
... | [
-0.07127641141414642,
-0.20879535377025604,
-0.031699586659669876,
0.6482542753219604,
0.3350311517715454,
-0.06990046054124832,
0.3910515308380127,
0.1751338392496109,
-0.05000130459666252,
0.24617569148540497,
0.013446759432554245,
0.38260185718536377,
-0.13292083144187927,
0.23237155377... |
https://github.com/huggingface/datasets/issues/6641 | unicodedecodeerror: 'utf-8' codec can't decode byte 0xac in position 25: invalid start byte | Hi @Hughhuh.
I have formatted the issue because it was not easily readable. Additionally, the environment info is incomplete: it seems you did not run the proposed CLI command `datasets-cli env` and essential information is missing: version of `datasets`, version of `pyarrow`,...
With the information you provide... | ### Describe the bug
unicodedecodeerror: 'utf-8' codec can't decode byte 0xac in position 25: invalid start byte
### Steps to reproduce the bug
```
import sys
sys.getdefaultencoding()
'utf-8'
from datasets import load_dataset
print(f"Train dataset size: {len(dataset['train'])}")
print(f"Test datase... | 66 | unicodedecodeerror: 'utf-8' codec can't decode byte 0xac in position 25: invalid start byte
### Describe the bug
unicodedecodeerror: 'utf-8' codec can't decode byte 0xac in position 25: invalid start byte
### Steps to reproduce the bug
```
import sys
sys.getdefaultencoding()
'utf-8'
from datasets imp... | [
-0.21967539191246033,
-0.07185088098049164,
-0.12252059578895569,
0.29539954662323,
0.6274427175521851,
0.05153081566095352,
0.24456419050693512,
0.5634337663650513,
-0.22347673773765564,
0.21558094024658203,
0.1734784096479416,
0.13979580998420715,
-0.08477511256933212,
-0.105809807777404... |
https://github.com/huggingface/datasets/issues/6638 | Cannot download wmt16 dataset | Looks like it works with latest datasets repository
```
- `datasets` version: 2.16.2.dev0
- Platform: Linux-5.15.0-92-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- `huggingface_hub` version: 0.20.3
- PyArrow version: 15.0.0
- Pandas version: 2.0.1
- `fsspec` version: 2023.10.0
```
Could you expla... | ### Describe the bug
As of this morning (PST) 2/1/2024, seeing the wmt16 dataset is missing from opus , could you suggest an alternative?
```
Downloading data files: 0%| | 0/4 [00:00<?, ?it/s]Tra... | 57 | Cannot download wmt16 dataset
### Describe the bug
As of this morning (PST) 2/1/2024, seeing the wmt16 dataset is missing from opus , could you suggest an alternative?
```
Downloading data files: 0%| ... | [
-0.3605242371559143,
0.3179263174533844,
-0.0020504463464021683,
0.38708198070526123,
0.4038747549057007,
0.11385878175497055,
0.2532884478569031,
0.2078506499528885,
-0.027221880853176117,
0.21313408017158508,
0.026451896876096725,
0.03987665846943855,
-0.3029177486896515,
0.0407631471753... |
https://github.com/huggingface/datasets/issues/6637 | 'with_format' is extremely slow when used together with 'interleave_datasets' or 'shuffle' on IterableDatasets | The "torch" formatting is usually fast because we do zero-copy conversion from the Arrow data on your disk to Torch tensors. However IterableDataset shuffling seems to do data copies that slow down the pipeline, and it shuffles python objects instead of Arrow data.
To fix this we need to implement `BufferShuffledExa... | ### Describe the bug
If you:
1. Interleave two iterable datasets together with the interleave_datasets function, or shuffle an iterable dataset
2. Set the output format to torch tensors with .with_format('torch')
Then iterating through the dataset becomes over 100x slower than it is if you don't apply the torch... | 60 | 'with_format' is extremely slow when used together with 'interleave_datasets' or 'shuffle' on IterableDatasets
### Describe the bug
If you:
1. Interleave two iterable datasets together with the interleave_datasets function, or shuffle an iterable dataset
2. Set the output format to torch tensors with .with_forma... | [
-0.3715278208255768,
-0.6691103577613831,
0.02991161122918129,
0.2206290066242218,
0.1115187406539917,
0.06869634240865707,
0.42469462752342224,
0.2994457185268402,
-0.37875697016716003,
0.046866804361343384,
-0.43152329325675964,
0.5638822317123413,
-0.10893043875694275,
-0.30041211843490... |
https://github.com/huggingface/datasets/issues/6624 | How to download the laion-coco dataset | Hi, this dataset has been disabled by the authors, so unfortunately it's no longer possible to download it. | The laion coco dataset is not available now. How to download it
https://huggingface.co/datasets/laion/laion-coco | 18 | How to download the laion-coco dataset
The laion coco dataset is not available now. How to download it
https://huggingface.co/datasets/laion/laion-coco
Hi, this dataset has been disabled by the authors, so unfortunately it's no longer possible to download it. | [
-0.1568743735551834,
-0.2316027730703354,
-0.20348434150218964,
0.22256194055080414,
-0.014091819524765015,
-0.005569830536842346,
0.15324300527572632,
0.07347932457923889,
-0.3041420578956604,
0.11177952587604523,
-0.35119161009788513,
0.17208822071552277,
0.03486046940088272,
0.370873004... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 way al... | ### 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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
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 en... | [
-0.5885023474693298,
-0.2717368006706238,
-0.02212897129356861,
0.053298674523830414,
-0.05288422852754593,
-0.24468955397605896,
0.2883310616016388,
-0.1621348112821579,
-0.05456613004207611,
0.17409399151802063,
0.13106301426887512,
0.20888301730155945,
-0.21015885472297668,
0.1710551083... |
https://github.com/huggingface/datasets/issues/6622 | multi-GPU map does not work | This should now be fixed by https://github.com/huggingface/datasets/pull/6550 and updated with https://github.com/huggingface/datasets/pull/6646
Feel free to re-open if you're still having issues :) | ### Describe the bug
Here is the code for single-GPU processing: https://pastebin.com/bfmEeK2y
Here is the code for multi-GPU processing: https://pastebin.com/gQ7i5AQy
Here is the video showing that the multi-GPU mapping does not work as expected (there are so many things wrong here, it's better to watch the 3-min... | 21 | multi-GPU map does not work
### Describe the bug
Here is the code for single-GPU processing: https://pastebin.com/bfmEeK2y
Here is the code for multi-GPU processing: https://pastebin.com/gQ7i5AQy
Here is the video showing that the multi-GPU mapping does not work as expected (there are so many things wrong here, ... | [
-0.23916076123714447,
-0.6101455688476562,
-0.012014211155474186,
0.15711311995983124,
0.08765722811222076,
-0.22576892375946045,
0.29838287830352783,
0.2880241870880127,
0.21887394785881042,
-0.009799748659133911,
-0.1630682796239853,
0.37424957752227783,
0.46529483795166016,
0.3624591827... |
https://github.com/huggingface/datasets/issues/6620 | wiki_dpr.py error (ID mismatch between lines {id} and vector {vec_id} | Thanks for reporting, @kiehls90.
As this seems an issue with the specific "wiki_dpr" dataset, I am transferring the issue to the corresponding dataset page: https://huggingface.co/datasets/wiki_dpr/discussions/13 | ### Describe the bug
I'm trying to run a rag example, and the dataset is wiki_dpr.
wiki_dpr download and extracting have been completed successfully.
However, at the generating train split stage, an error from wiki_dpr.py keeps popping up.
Especially in "_generate_examples" :
1. The following error occurs in the... | 25 | wiki_dpr.py error (ID mismatch between lines {id} and vector {vec_id}
### Describe the bug
I'm trying to run a rag example, and the dataset is wiki_dpr.
wiki_dpr download and extracting have been completed successfully.
However, at the generating train split stage, an error from wiki_dpr.py keeps popping up.
Es... | [
-0.11199793219566345,
-0.11989374458789825,
0.06897611916065216,
0.34378623962402344,
0.14144492149353027,
0.272450715303421,
0.7210949063301086,
0.322221577167511,
-0.08388248085975647,
0.17388169467449188,
0.5036312937736511,
0.12144693732261658,
0.4004049599170685,
-0.0636330172419548,
... |
https://github.com/huggingface/datasets/issues/6618 | While importing load_dataset from datasets | Hi! Can you please share the error's stack trace so we can see where it comes from? | ### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5 | 17 | While importing load_dataset from datasets
### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5
Hi! Can you please sh... | [
0.025536861270666122,
-0.09608949720859528,
-0.01202814094722271,
0.3080839216709137,
0.20100709795951843,
0.12119016796350479,
0.3076989948749542,
-0.02027885988354683,
0.1638317108154297,
0.16387593746185303,
0.0735689029097557,
0.20870649814605713,
-0.04533758759498596,
0.22486464679241... |
https://github.com/huggingface/datasets/issues/6618 | While importing load_dataset from datasets | We cannot reproduce the issue and we do not have enough information: environment info (need to run `datasets-cli env`), stack trace,...
I am closing the issue. Feel free to reopen it (with additional information) if the problem persists. | ### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5 | 38 | While importing load_dataset from datasets
### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5
We cannot reproduce t... | [
-0.03531074896454811,
-0.05683479458093643,
0.03547011688351631,
0.2452012002468109,
0.1697799116373062,
0.11110762506723404,
0.36294305324554443,
0.012612063437700272,
0.17203670740127563,
0.16812098026275635,
0.05844299495220184,
0.2556520104408264,
-0.012511133216321468,
0.1680121272802... |
https://github.com/huggingface/datasets/issues/6618 | While importing load_dataset from datasets | Yeah 👍
On Tue, 6 Feb 2024 at 2:56 PM, Albert Villanova del Moral <
***@***.***> wrote:
> We cannot reproduce the issue and we do not have enough information:
> environment info (need to run datasets-cli env), stack trace,...
>
> I am closing the issue. Feel free to reopen it (with additional
> information) ... | ### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5 | 96 | While importing load_dataset from datasets
### Describe the bug
cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' this is the error i received
### Steps to reproduce the bug
from datasets import load_dataset
### Expected behavior
No errors
### Environment info
python 3.11.5
Yeah 👍
On Tue, 6 ... | [
-0.050578195601701736,
-0.017661981284618378,
0.050342459231615067,
0.2722196877002716,
0.13460451364517212,
0.1751471757888794,
0.4537127614021301,
-0.04618915542960167,
0.2097955197095871,
0.21549007296562195,
-0.056724414229393005,
0.2692852020263672,
0.06202619522809982,
0.117132060229... |
https://github.com/huggingface/datasets/issues/6612 | cnn_dailymail repeats itself | Hi ! We recently updated `cnn_dailymail` and now `datasets>=2.14` is needed to load it.
You can update `datasets` with
```
pip install -U datasets
``` | ### Describe the bug
When I try to load `cnn_dailymail` dataset, it takes longer than usual and when I checked the dataset it's 3x bigger than it's supposed to be.
Check https://huggingface.co/datasets/cnn_dailymail: it says 287k rows for train. But when I check length of train split it says 861339.
Also I che... | 25 | cnn_dailymail repeats itself
### Describe the bug
When I try to load `cnn_dailymail` dataset, it takes longer than usual and when I checked the dataset it's 3x bigger than it's supposed to be.
Check https://huggingface.co/datasets/cnn_dailymail: it says 287k rows for train. But when I check length of train spli... | [
0.07091887295246124,
-0.30874931812286377,
0.029564790427684784,
0.6589642763137817,
-0.008778862655162811,
0.07012949138879776,
0.4404849112033844,
-0.03583131358027458,
-0.12530608475208282,
0.07747426629066467,
0.24863272905349731,
0.3104358911514282,
-0.21459133923053741,
0.29797145724... |
https://github.com/huggingface/datasets/issues/6610 | cast_column to Sequence(subfeatures_dict) has err | Hi! You are passing the wrong feature type to `cast_column`. This is the fixed call:
```python
ais_dataset = ais_dataset.cast_column("my_labeled_bbox", {"bbox": Sequence(Value(dtype="int64")), "label": ClassLabel(names=["cat", "dog"])})
``` | ### Describe the bug
I am working with the following demo code:
```
from datasets import load_dataset
from datasets.features import Sequence, Value, ClassLabel, Features
ais_dataset = load_dataset("/data/ryan.gao/ais_dataset_cache/raw/1978/")
ais_dataset = ais_dataset["train"]
def add_class(example):
... | 25 | cast_column to Sequence(subfeatures_dict) has err
### Describe the bug
I am working with the following demo code:
```
from datasets import load_dataset
from datasets.features import Sequence, Value, ClassLabel, Features
ais_dataset = load_dataset("/data/ryan.gao/ais_dataset_cache/raw/1978/")
ais_dataset = a... | [
-0.06808821856975555,
-0.24876421689987183,
-0.06157655268907547,
0.01572851836681366,
0.5308370590209961,
0.24775585532188416,
0.4921038746833801,
0.2797869145870209,
0.19714513421058655,
-0.10834234952926636,
0.18487395346164703,
0.22724846005439758,
-0.12083382159471512,
0.3786329329013... |
https://github.com/huggingface/datasets/issues/6610 | cast_column to Sequence(subfeatures_dict) has err | > Hi! You are passing the wrong feature type to `cast_column`. This is the fixed call:
>
> ```python
> ais_dataset = ais_dataset.cast_column("my_labeled_bbox", {"bbox": Sequence(Value(dtype="int64")), "label": ClassLabel(names=["cat", "dog"])})
> ```
thanks | ### Describe the bug
I am working with the following demo code:
```
from datasets import load_dataset
from datasets.features import Sequence, Value, ClassLabel, Features
ais_dataset = load_dataset("/data/ryan.gao/ais_dataset_cache/raw/1978/")
ais_dataset = ais_dataset["train"]
def add_class(example):
... | 31 | cast_column to Sequence(subfeatures_dict) has err
### Describe the bug
I am working with the following demo code:
```
from datasets import load_dataset
from datasets.features import Sequence, Value, ClassLabel, Features
ais_dataset = load_dataset("/data/ryan.gao/ais_dataset_cache/raw/1978/")
ais_dataset = a... | [
-0.06808821856975555,
-0.24876421689987183,
-0.06157655268907547,
0.01572851836681366,
0.5308370590209961,
0.24775585532188416,
0.4921038746833801,
0.2797869145870209,
0.19714513421058655,
-0.10834234952926636,
0.18487395346164703,
0.22724846005439758,
-0.12083382159471512,
0.3786329329013... |
https://github.com/huggingface/datasets/issues/6609 | Wrong path for cache directory in offline mode | I opened https://github.com/huggingface/datasets/pull/6632 to fix this issue. Once it's merged we'll do a new release of `datasets` | ### Describe the bug
Dear huggingfacers,
I'm trying to use a subset of the-stack dataset. When I run the command the first time
```
dataset = load_dataset(
path='bigcode/the-stack',
data_dir='data/fortran',
split='train' )
```
It downloads the files and caches them normally.
Nevertheless, ... | 17 | Wrong path for cache directory in offline mode
### Describe the bug
Dear huggingfacers,
I'm trying to use a subset of the-stack dataset. When I run the command the first time
```
dataset = load_dataset(
path='bigcode/the-stack',
data_dir='data/fortran',
split='train' )
```
It downloads the ... | [
-0.0749596357345581,
-0.17998577654361725,
0.013488084077835083,
0.40448641777038574,
0.08871891349554062,
-0.08352793753147125,
0.22764022648334503,
-0.011365946382284164,
0.15877486765384674,
0.026804141700267792,
0.08159537613391876,
0.05718469247221947,
0.16947974264621735,
-0.03335303... |
https://github.com/huggingface/datasets/issues/6604 | Transform fingerprint collisions due to setting fixed random seed | I don't think the PR fixes the root cause, since it still relies on the `random` library which will often have its seed fixed. I think the builtin `uuid.uuid4()` is a better choice: https://docs.python.org/3/library/uuid.html | ### Describe the bug
The transform fingerprinting logic relies on the `random` library for random bits when the function is not hashable (e.g. bound methods as used in `trl`: https://github.com/huggingface/trl/blob/main/trl/trainer/dpo_trainer.py#L356). This causes collisions when the training code sets a fixed random... | 34 | Transform fingerprint collisions due to setting fixed random seed
### Describe the bug
The transform fingerprinting logic relies on the `random` library for random bits when the function is not hashable (e.g. bound methods as used in `trl`: https://github.com/huggingface/trl/blob/main/trl/trainer/dpo_trainer.py#L356... | [
-0.17063964903354645,
-0.5525232553482056,
0.13183774054050446,
0.25794553756713867,
0.4235225319862366,
-0.03414237126708031,
0.15525653958320618,
0.32109054923057556,
-0.301505446434021,
0.17565158009529114,
-0.04853074997663498,
-0.05344521254301071,
-0.026637185364961624,
0.15088906884... |
https://github.com/huggingface/datasets/issues/6603 | datasets map `cache_file_name` does not work | ```
ds = datasets.Dataset.from_dict(dict(a=[i for i in range(100)]))
ds.map(lambda item: dict(b=item['a'] * 2), cache_file_name="/tmp/whatever-fn") # this worked
ds.map(lambda item: dict(b=item['a'] * 2), cache_file_name="/tmp/whatever-folder/filename") # this failed
ds.map(lambda item: dict(b=item['a'] * 2), cache... | ### Describe the bug
In the documentation `datasets.Dataset.map` arg `cache_file_name` is said to be a string, but it doesn't work.
### Steps to reproduce the bug
1. pick a dataset
2. write a map function
3. do `ds.map(..., cache_file_name='some_filename')`
4. it crashes
### Expected behavior
It will tell you t... | 71 | datasets map `cache_file_name` does not work
### Describe the bug
In the documentation `datasets.Dataset.map` arg `cache_file_name` is said to be a string, but it doesn't work.
### Steps to reproduce the bug
1. pick a dataset
2. write a map function
3. do `ds.map(..., cache_file_name='some_filename')`
4. it cra... | [
-0.1760777235031128,
-0.22184143960475922,
0.028800494968891144,
0.37356340885162354,
0.35459649562835693,
0.26312342286109924,
0.267274409532547,
0.3279058039188385,
0.28685814142227173,
0.11249062418937683,
-0.24395504593849182,
0.4013161063194275,
-0.07068002969026566,
-0.21433073282241... |
https://github.com/huggingface/datasets/issues/6600 | Loading CSV exported dataset has unexpected format | Hi! Parquet is the only format that supports complex/nested features such as `Translation`. So, this should work:
```python
test_dataset = load_dataset("opus100", name="en-fr", split="test")
# Save with .to_parquet()
test_parquet_path = "try_testset_save.parquet"
test_dataset.to_parquet(test_parquet_path)
# L... | ### Describe the bug
I wanted to be able to save a HF dataset for translations and load it again in another script, but I'm a bit confused with the documentation and the result I've got so I'm opening this issue to ask if this behavior is as expected.
### Steps to reproduce the bug
The documentation I've mainly cons... | 44 | Loading CSV exported dataset has unexpected format
### Describe the bug
I wanted to be able to save a HF dataset for translations and load it again in another script, but I'm a bit confused with the documentation and the result I've got so I'm opening this issue to ask if this behavior is as expected.
### Steps to ... | [
0.09366396069526672,
-0.3019144535064697,
0.01882997527718544,
0.3817504048347473,
0.24329303205013275,
0.04965054243803024,
0.3155781030654907,
0.07877146452665329,
0.1349153071641922,
0.09632550179958344,
-0.24815905094146729,
-0.047438669949769974,
0.17620514333248138,
0.211612582206726... |
https://github.com/huggingface/datasets/issues/6599 | Easy way to segment into 30s snippets given an m4a file and a vtt file | Hi! Non-generic data processing is out of this library's scope, so it's downstream libraries/users' responsibility to implement such logic. | ### Feature request
Uploading datasets is straightforward thanks to the ability to push Audio to hub. However, it would be nice if the data (text and audio) could be segmented when being pushed (if not possible already).
### Motivation
It's easy to create a vtt file from an audio file. If there could be auto-segment... | 19 | Easy way to segment into 30s snippets given an m4a file and a vtt file
### Feature request
Uploading datasets is straightforward thanks to the ability to push Audio to hub. However, it would be nice if the data (text and audio) could be segmented when being pushed (if not possible already).
### Motivation
It's ea... | [
-0.6503008008003235,
-0.3339027166366577,
-0.1150284856557846,
-0.06848064064979553,
0.23705491423606873,
-0.31409868597984314,
0.5622479915618896,
0.44512486457824707,
-0.5105156898498535,
0.24014917016029358,
-0.3567482829093933,
-0.04470645636320114,
-0.3566727936267853,
0.3612204492092... |
https://github.com/huggingface/datasets/issues/6598 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3 | I am facing similar issue while reading a csv file from s3. Wondering if somebody has found a workaround. | ### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w... | 19 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3
### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://sta... | [
0.054720330983400345,
-0.37727153301239014,
0.010762028396129608,
0.19273018836975098,
0.1070040762424469,
-0.10652665793895721,
0.39194586873054504,
0.10678614675998688,
0.040453825145959854,
-0.0982540100812912,
0.05330748111009598,
0.23410923779010773,
0.11373165249824524,
0.24079634249... |
https://github.com/huggingface/datasets/issues/6598 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3 | I am facing similar issue while reading a parquet file from s3.
i try with every version between 2.14 to 2.16.1 but it dosen't work | ### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w... | 25 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3
### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://sta... | [
0.054720330983400345,
-0.37727153301239014,
0.010762028396129608,
0.19273018836975098,
0.1070040762424469,
-0.10652665793895721,
0.39194586873054504,
0.10678614675998688,
0.040453825145959854,
-0.0982540100812912,
0.05330748111009598,
0.23410923779010773,
0.11373165249824524,
0.24079634249... |
https://github.com/huggingface/datasets/issues/6598 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3 | Re-define the DownloadConfig might work:
```
class ReviseDownloadConfig(DownloadConfig):
def __post_init__(self, use_auth_token):
if use_auth_token != "deprecated":
warnings.warn(
"'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed i... | ### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w... | 60 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3
### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://sta... | [
0.054720330983400345,
-0.37727153301239014,
0.010762028396129608,
0.19273018836975098,
0.1070040762424469,
-0.10652665793895721,
0.39194586873054504,
0.10678614675998688,
0.040453825145959854,
-0.0982540100812912,
0.05330748111009598,
0.23410923779010773,
0.11373165249824524,
0.24079634249... |
https://github.com/huggingface/datasets/issues/6598 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3 | > Re-define the DownloadConfig might work:
>
> ```
> class ReviseDownloadConfig(DownloadConfig):
> def __post_init__(self, use_auth_token):
> if use_auth_token != "deprecated":
> warnings.warn(
> "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and w... | ### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w... | 66 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3
### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://sta... | [
0.054720330983400345,
-0.37727153301239014,
0.010762028396129608,
0.19273018836975098,
0.1070040762424469,
-0.10652665793895721,
0.39194586873054504,
0.10678614675998688,
0.040453825145959854,
-0.0982540100812912,
0.05330748111009598,
0.23410923779010773,
0.11373165249824524,
0.24079634249... |
https://github.com/huggingface/datasets/issues/6598 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3 | I am currently facing the same issue while using a custom loading script with files located in a remote S3 instance. I was using the `download_custom` functionality but now it is deprecated mentioning that I should use the native S3 loading, which is not working.
As stated before, the library forces the existence o... | ### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w... | 105 | Unexpected keyword argument 'hf' when downloading CSV dataset from S3
### Describe the bug
I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`:
```
TypeError: Session.__init__() got an unexpected keyword argument 'hf'
```
I found a similar issue here: https://sta... | [
0.054720330983400345,
-0.37727153301239014,
0.010762028396129608,
0.19273018836975098,
0.1070040762424469,
-0.10652665793895721,
0.39194586873054504,
0.10678614675998688,
0.040453825145959854,
-0.0982540100812912,
0.05330748111009598,
0.23410923779010773,
0.11373165249824524,
0.24079634249... |
https://github.com/huggingface/datasets/issues/6597 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace | Also note the information in the docstring: https://github.com/huggingface/datasets/blob/9d6d16117a30ba345b0236407975f701c5b288d4/src/datasets/dataset_dict.py#L1582-L1585
> Also accepts `<dataset_name>`, which will default to the namespace of the logged-in user.
This behavior was "reverted" by the PR:
- #6519
... | While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
config_name="default",
commit_message="Convert dataset to Parquet",
commit_descriptio... | 103 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace
While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
... | [
-0.0006192736327648163,
-0.18210406601428986,
0.02426629513502121,
0.1286349594593048,
0.18666674196720123,
-0.11163045465946198,
0.22518950700759888,
0.0718560665845871,
0.0009447559714317322,
0.297110915184021,
-0.012589376419782639,
0.37341806292533875,
-0.13534073531627655,
0.054037474... |
https://github.com/huggingface/datasets/issues/6597 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace | IIUC, this could also be "fixed" by `create_repo("dataset_name")` not defaulting to `create_repo("user/dataset_name")` (when the user's token is available), which would be consistent with the rest of the `HfApi` ops used in the `push_to_hub` implementation. This is a (small) breaking change for `huggingface_hub`, but j... | While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
config_name="default",
commit_message="Convert dataset to Parquet",
commit_descriptio... | 50 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace
While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
... | [
0.015438761562108994,
-0.24919459223747253,
0.09097078442573547,
0.20266905426979065,
0.17012585699558258,
-0.0932801142334938,
0.3342634439468384,
0.12934193015098572,
0.1020367443561554,
0.25048136711120605,
-0.17380006611347198,
0.16911697387695312,
0.13417570292949677,
0.18486534059047... |
https://github.com/huggingface/datasets/issues/6597 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace | Hmm, creating repo with implicit namespace (e.g. `create_repo("dataset_name")`) is a convenient feature used in a lot of integrations. It is not consistent with other HfApi methods specifically because it is the method to create repos. Once the repo is created, the return value provides the explicit repo_id (`namespace... | While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
config_name="default",
commit_message="Convert dataset to Parquet",
commit_descriptio... | 162 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace
While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
... | [
-0.059777870774269104,
-0.036595575511455536,
0.11248326301574707,
0.10316123068332672,
0.32517796754837036,
-0.11299461126327515,
0.4345576763153076,
0.2440657615661621,
0.14013811945915222,
0.3233274817466736,
-0.33410555124282837,
0.31995850801467896,
0.16297808289527893,
0.123080633580... |
https://github.com/huggingface/datasets/issues/6597 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace | As canonical datasets are going to disappear in the following couple of months, I would not make any effort on their support.
I propose reverting #6519, so that the behavior of `push_to_hub` is aligned with the one described in its dosctring: "Also accepts `<dataset_name>`, which will default to the namespace of the... | While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
config_name="default",
commit_message="Convert dataset to Parquet",
commit_descriptio... | 58 | Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace
While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace.
## Steps to reproduce the bug
The command:
```python
commit_info = ds.push_to_hub(
"caner",
... | [
-0.1189185380935669,
-0.051354601979255676,
0.056664083153009415,
0.08923301100730896,
0.2523309290409088,
-0.16499266028404236,
0.24353231489658356,
0.139272078871727,
-0.03309669718146324,
0.23708918690681458,
0.011932861059904099,
0.4353119730949402,
-0.10320340842008591,
0.060031801462... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | Hi ! I think the issue comes from the "float16" features that are not supported yet in Parquet
Feel free to open an issue in `pyarrow` about this. In the meantime, I'd encourage you to use "float32" for your "pooled_prompt_embeds" and "prompt_embeds" features.
You can cast them to "float32" using
```python
fr... | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 64 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq hm. Thank you very much.
Do you think it won't have any impact on the training? That it won't break it or the quality won't degrade because of this?
I need to use it for [SDXL training](https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py) | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 38 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | Increasing the precision should not degrade training (it only increases the precision), but make sure that it doesn't break your pytorch code (e.g. if it expects a float16 instead of a float32 somewhere) | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 33 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq just fyi pyarrow 15.0.0 (just released) supports float16 as the underlying parquetcpp does as well now :) | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 18 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | Oh that's amazing ! (and great timing ^^)
@kopyl can you try to update `pyarrow` and try again ?
Btw @assignUser there seems to be some casting implementations missing with float16 in 15.0.0, e.g.
```
ArrowNotImplementedError: Unsupported cast from int64 to halffloat using function cast_half_float
```
```... | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 58 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | Ah you are right casting is not implemented yet, it's even mentioned in the docs. This pr references the relevant issues if you'd like to track them
https://github.com/apache/arrow/pull/38494 | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 28 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq i just recently found out that it's supported in 15.0.0, but wanted to try it first before telling you...
Trying this right now and it seemingly works (although i need to wait till the end to make sure there is nothing wrong). Will update you when it's finished.
<img width="918" alt="image" src="https://... | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 87 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq also it's strange that there was no error for a dataset with the same features, same data type, but smaller (much smaller).
Altho i'm not sure about this, but chances are the dataset was loaded directly, not `load_from_disk`.... Maybe because of this. | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 43 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | > What does that missing casting implementation mean for my specific case and what does it mean in general?
Nothing for you, just that casting to float16 using `.cast_column("my_column_name", Value("float16"))` raises an error
> Do you know how to push_to_hub with multiple processes?
It's not possible (yet ?).... | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 89 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq thank you very much.
That would be amazing, I need to create a feature request for this :)
By the way, in short, how does hf_transfer improves the upload speed under the hood? | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 34 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6595 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 | @lhoestq i was just able to successfully upload without the dataset with the new pyarrow update and without increasing the precision :) | ### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
1. Map dataset
2. Save to disk
3. Try to upload:
```
import data... | 22 | Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
### Describe the bug
I'm aware of the issue #5695 .
I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16
So i
... | [
-0.2869280278682709,
-0.004440635442733765,
0.1626223623752594,
0.2064199000597,
0.36014461517333984,
-0.21503609418869019,
0.30898433923721313,
0.3791474997997284,
-0.34722834825515747,
0.15772294998168945,
0.01563415676355362,
0.6490371823310852,
-0.3315514028072357,
0.2717442810535431,
... |
https://github.com/huggingface/datasets/issues/6592 | Logs are delayed when doing .map when `docker logs` | Hi! `tqdm` doesn't work well in non-interactive environments, so there isn't much we can do about this. It's best to [disable it](https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/utilities#datasets.disable_progress_bars) in such environments and instead use logging to track progress. | ### Describe the bug
When I run my SD training in a Docker image and then listen to logs like `docker logs train -f`, the progress bar is delayed.
It's updating every few percent.
When you have a large dataset that has to be mapped (like 1+ million samples), it's crucial to see the updates in real-time, not every co... | 32 | Logs are delayed when doing .map when `docker logs`
### Describe the bug
When I run my SD training in a Docker image and then listen to logs like `docker logs train -f`, the progress bar is delayed.
It's updating every few percent.
When you have a large dataset that has to be mapped (like 1+ million samples), it's... | [
-0.5378695130348206,
-0.4685250520706177,
-0.023110568523406982,
-0.14820627868175507,
0.21119484305381775,
-0.05372406914830208,
0.3360010087490082,
0.1327158808708191,
-0.03079982101917267,
0.34662777185440063,
-0.05821093171834946,
0.32053110003471375,
-0.17691850662231445,
0.2248399704... |
https://github.com/huggingface/datasets/issues/6591 | The datasets models housed in Dropbox can't support a lot of users downloading them | Hi! Indeed, Dropbox is not a reliable host. I've just merged https://huggingface.co/datasets/PolyAI/minds14/discussions/24 to fix this by hosting the data files inside the repo. | ### Describe the bug
I'm using the datasets
```
from datasets import load_dataset, Audio
dataset = load_dataset("PolyAI/minds14", name="en-US", split="train")
```
And it seems that sometimes when I imagine a lot of users are accessing the same resources, the Dropbox host fails:
`raise ConnectionError(... | 23 | The datasets models housed in Dropbox can't support a lot of users downloading them
### Describe the bug
I'm using the datasets
```
from datasets import load_dataset, Audio
dataset = load_dataset("PolyAI/minds14", name="en-US", split="train")
```
And it seems that sometimes when I imagine a lot of user... | [
-0.34906232357025146,
0.30475476384162903,
-0.03665465861558914,
0.5930948853492737,
0.2086874097585678,
-0.12326210737228394,
0.3543424904346466,
0.08312840759754181,
0.21345333755016327,
0.14639872312545776,
-0.3872273564338684,
-0.045415136963129044,
-0.1008751168847084,
0.1932447105646... |
https://github.com/huggingface/datasets/issues/6585 | losing DatasetInfo in Dataset.map when num_proc > 1 | Hi ! This issue comes from the fact that `map()` with `num_proc>1` shards the dataset in multiple chunks to be processed (one per process) and merges them. The DatasetInfos of each chunk are then merged together, but for some fields like `dataset_name` it's not been implemented and default to None.
The DatasetInfo m... | ### Describe the bug
Hello and thanks for developing this package!
When I process a Dataset with the map function using multiple processors some set attributes of the DatasetInfo get lost and are None in the resulting Dataset.
### Steps to reproduce the bug
```python
from datasets import Dataset, DatasetInfo... | 65 | losing DatasetInfo in Dataset.map when num_proc > 1
### Describe the bug
Hello and thanks for developing this package!
When I process a Dataset with the map function using multiple processors some set attributes of the DatasetInfo get lost and are None in the resulting Dataset.
### Steps to reproduce the bug... | [
-0.35594162344932556,
-0.10743406414985657,
-0.007776882499456406,
0.6413047313690186,
0.23639819025993347,
0.20442572236061096,
0.1628013253211975,
0.22665777802467346,
0.1708478182554245,
0.36076170206069946,
0.2511095702648163,
0.6130759119987488,
0.12133793532848358,
0.1400332003831863... |
https://github.com/huggingface/datasets/issues/6584 | np.fromfile not supported | @lhoestq
```
Traceback (most recent call last):
File "/home/dongzf/miniconda3/envs/dataset_ai/lib/python3.11/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dongzf/miniconda3/envs/dataset_ai/lib/python3.11/r... | How to do np.fromfile to use it like np.load
```python
def xnumpy_fromfile(filepath_or_buffer, *args, download_config: Optional[DownloadConfig] = None, **kwargs):
import numpy as np
if hasattr(filepath_or_buffer, "read"):
return np.fromfile(filepath_or_buffer, *args, **kwargs)
else:
... | 105 | np.fromfile not supported
How to do np.fromfile to use it like np.load
```python
def xnumpy_fromfile(filepath_or_buffer, *args, download_config: Optional[DownloadConfig] = None, **kwargs):
import numpy as np
if hasattr(filepath_or_buffer, "read"):
return np.fromfile(filepath_or_buffer, *ar... | [
-0.17793171107769012,
-0.15880081057548523,
-0.05569729208946228,
0.1271272450685501,
0.3693588376045227,
-0.17062705755233765,
0.3179435431957245,
0.33320754766464233,
0.2648822069168091,
0.15818357467651367,
-0.043508999049663544,
0.40969282388687134,
0.08633600175380707,
0.3399329781532... |
https://github.com/huggingface/datasets/issues/6584 | np.fromfile not supported | I used this method to read point cloud data in the script
```python
with open(velodyne_filepath,"rb") as obj:
velodyne_data = numpy.frombuffer(obj.read(), dtype=numpy.float32).reshape([-1, 4])
``` | How to do np.fromfile to use it like np.load
```python
def xnumpy_fromfile(filepath_or_buffer, *args, download_config: Optional[DownloadConfig] = None, **kwargs):
import numpy as np
if hasattr(filepath_or_buffer, "read"):
return np.fromfile(filepath_or_buffer, *args, **kwargs)
else:
... | 23 | np.fromfile not supported
How to do np.fromfile to use it like np.load
```python
def xnumpy_fromfile(filepath_or_buffer, *args, download_config: Optional[DownloadConfig] = None, **kwargs):
import numpy as np
if hasattr(filepath_or_buffer, "read"):
return np.fromfile(filepath_or_buffer, *ar... | [
-0.26546770334243774,
-0.1993180811405182,
-0.07483620941638947,
0.15513744950294495,
0.27797940373420715,
-0.26992735266685486,
0.21601547300815582,
0.2230716198682785,
0.18922114372253418,
0.20724515616893768,
0.07521621137857437,
0.3033958673477173,
0.22715912759304047,
0.43538704514503... |
https://github.com/huggingface/datasets/issues/6579 | Unable to load `eli5` dataset with streaming | Hi @haok1402, I have created an issue in the Discussion tab of the corresponding dataset: https://huggingface.co/datasets/eli5/discussions/7
Let's continue the discussion there! | ### Describe the bug
Unable to load `eli5` dataset with streaming.
### Steps to reproduce the bug
This fails with FileNotFoundError: https://files.pushshift.io/reddit/submissions
```
from datasets import load_dataset
load_dataset("eli5", streaming=True)
```
This works correctly.
```
from datasets import lo... | 21 | Unable to load `eli5` dataset with streaming
### Describe the bug
Unable to load `eli5` dataset with streaming.
### Steps to reproduce the bug
This fails with FileNotFoundError: https://files.pushshift.io/reddit/submissions
```
from datasets import load_dataset
load_dataset("eli5", streaming=True)
```
This... | [
-0.3034289479255676,
-0.3791896402835846,
0.007472127676010132,
0.35745131969451904,
0.3565647006034851,
-0.055746518075466156,
0.20355501770973206,
0.06192128360271454,
0.034066811203956604,
0.10098251700401306,
-0.2259358912706375,
0.18525516986846924,
0.0484718419611454,
0.3414548337459... |
https://github.com/huggingface/datasets/issues/6577 | 502 Server Errors when streaming large dataset | Hi! We should be able to avoid this error by retrying to read the data when it happens. I'll open a PR in `huggingface_hub` to address this. | ### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPError: 502 Server Error: Bad Gateway for url: http... | 27 | 502 Server Errors when streaming large dataset
### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPE... | [
-0.226724773645401,
-0.5951709151268005,
0.1581612527370453,
0.3126918077468872,
0.21198134124279022,
-0.14130105078220367,
0.12096945196390152,
0.030741870403289795,
-0.41383641958236694,
-0.19666750729084015,
-0.004069325979799032,
-0.03385835513472557,
-0.0011485004797577858,
0.14881347... |
https://github.com/huggingface/datasets/issues/6577 | 502 Server Errors when streaming large dataset | Thanks for the fix @mariosasko! Just wondering whether "500 error" should also be excluded? I got these errors overnight:
```
huggingface_hub.utils._errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/da
tasets/sanchit-gandhi/concatenated-train-set-label-length-256/resolv... | ### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPError: 502 Server Error: Bad Gateway for url: http... | 49 | 502 Server Errors when streaming large dataset
### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPE... | [
-0.226724773645401,
-0.5951709151268005,
0.1581612527370453,
0.3126918077468872,
0.21198134124279022,
-0.14130105078220367,
0.12096945196390152,
0.030741870403289795,
-0.41383641958236694,
-0.19666750729084015,
-0.004069325979799032,
-0.03385835513472557,
-0.0011485004797577858,
0.14881347... |
https://github.com/huggingface/datasets/issues/6577 | 502 Server Errors when streaming large dataset | Gently pining @mariosasko and @Wauplin - when trying to stream this large dataset from the HF Hub, I'm running into `500 Internal Server Errors` as described above. I'd love to be able to use the Hub exclusively to stream data when training, but this error pops up a few times a week, terminating training runs and causi... | ### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPError: 502 Server Error: Bad Gateway for url: http... | 332 | 502 Server Errors when streaming large dataset
### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPE... | [
-0.226724773645401,
-0.5951709151268005,
0.1581612527370453,
0.3126918077468872,
0.21198134124279022,
-0.14130105078220367,
0.12096945196390152,
0.030741870403289795,
-0.41383641958236694,
-0.19666750729084015,
-0.004069325979799032,
-0.03385835513472557,
-0.0011485004797577858,
0.14881347... |
https://github.com/huggingface/datasets/issues/6577 | 502 Server Errors when streaming large dataset | @sanchit-gandhi thanks for the feedback. I've opened https://github.com/huggingface/huggingface_hub/pull/2026 to make the download process more robust. I believe that you've witness this problem on Saturday due to the Hub outage. Hope the PR will make your life easier though :) | ### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPError: 502 Server Error: Bad Gateway for url: http... | 39 | 502 Server Errors when streaming large dataset
### Describe the bug
When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming:
```
huggingface_hub.utils._errors.HfHubHTTPE... | [
-0.226724773645401,
-0.5951709151268005,
0.1581612527370453,
0.3126918077468872,
0.21198134124279022,
-0.14130105078220367,
0.12096945196390152,
0.030741870403289795,
-0.41383641958236694,
-0.19666750729084015,
-0.004069325979799032,
-0.03385835513472557,
-0.0011485004797577858,
0.14881347... |
https://github.com/huggingface/datasets/issues/6568 | keep_in_memory=True does not seem to work | Seems like I just used the old code which did not have `keep_in_memory=True` argument, sorry.
Although i encountered a different problem – at 97% my python process just hung for around 11 minutes with no logs (when running dataset.map without `keep_in_memory=True` over around 3 million of dataset samples)... | UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :( | 48 | keep_in_memory=True does not seem to work
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
Seems like I just used the old code which did not have `keep_in_memory=True` argument, sorry.
Although i encountered a different problem – at 97% my pyt... | [
-0.5037833452224731,
-0.29181092977523804,
-0.12347069382667542,
0.014672022312879562,
0.30825865268707275,
-0.03274993970990181,
0.06944143772125244,
0.22768080234527588,
0.14811408519744873,
0.21746733784675598,
-0.13731782138347626,
0.2877123951911926,
-0.20459908246994019,
0.2988296151... |
https://github.com/huggingface/datasets/issues/6568 | keep_in_memory=True does not seem to work | Can you open a new issue and provide a bit more details ? What kind of map operations did you run ? | UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :( | 22 | keep_in_memory=True does not seem to work
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
Can you open a new issue and provide a bit more details ? What kind of map operations did you run ? | [
-0.3748677670955658,
-0.4999007284641266,
-0.11895652115345001,
0.28440555930137634,
0.328910768032074,
-0.25697410106658936,
0.14168022572994232,
0.12537908554077148,
0.10821333527565002,
0.3469017744064331,
-0.14063319563865662,
0.25066229701042175,
-0.0918361023068428,
0.297620236873626... |
https://github.com/huggingface/datasets/issues/6568 | keep_in_memory=True does not seem to work | Hey. I will try to find some free time to describe it.
(can't do it now, cause i need to reproduce it myself to be sure about everything, which requires spinning a new Azuree VM, copying a huge dataset to drive from network disk for a long time etc...) | UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :( | 49 | keep_in_memory=True does not seem to work
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
Hey. I will try to find some free time to describe it.
(can't do it now, cause i need to reproduce it myself to be sure about everything, which requires... | [
-0.3008255958557129,
-0.4563167095184326,
-0.10753464698791504,
0.14783333241939545,
0.19342176616191864,
-0.27601516246795654,
0.03683186694979668,
0.1468942016363144,
-0.13899533450603485,
0.2864159941673279,
-0.08614905923604965,
0.16647781431674957,
-0.02673330530524254,
0.308779895305... |
https://github.com/huggingface/datasets/issues/6568 | keep_in_memory=True does not seem to work | @lhoestq loading dataset like this does not spawn 50 python processes:
```
datasets.load_dataset("/preprocessed_2256k/train", num_proc=50)
```
I have 64 vCPU so i hoped it could speed up the dataset loading...
My dataset onlly has images and metadata.csv with text column alongside image file path column | UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :( | 44 | keep_in_memory=True does not seem to work
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
@lhoestq loading dataset like this does not spawn 50 python processes:
```
datasets.load_dataset("/preprocessed_2256k/train", num_proc=50)
```
I ha... | [
-0.4864194393157959,
-0.2658991813659668,
-0.06385074555873871,
0.3380093574523926,
0.3865874409675598,
-0.06995490938425064,
0.20234574377536774,
0.13551144301891327,
0.1304621696472168,
0.05938539654016495,
-0.12590405344963074,
0.12531603872776031,
-0.19034145772457123,
0.39526227116584... |
https://github.com/huggingface/datasets/issues/6568 | keep_in_memory=True does not seem to work | now noticed
```
'Setting num_proc from 50 back to 1 for the train split to disable multiprocessing as it only contains one shard
```
Any way to work around this? | UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :( | 30 | keep_in_memory=True does not seem to work
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
now noticed
```
'Setting num_proc from 50 back to 1 for the train split to disable multiprocessing as it only contains one shard
```
Any way to work ... | [
-0.35788068175315857,
-0.48597970604896545,
-0.05335163325071335,
0.24324163794517517,
0.22478075325489044,
-0.3293013572692871,
0.293274462223053,
0.057879917323589325,
-0.2596440315246582,
0.3796968460083008,
-0.0900946706533432,
-0.006218471564352512,
-0.20374393463134766,
0.60562288761... |
https://github.com/huggingface/datasets/issues/6567 | AttributeError: 'str' object has no attribute 'to' | I think you are reporting an issue with the `transformers` library. Note this is the repository of the `datasets` library. I recommend that you open an issue in their repository: https://github.com/huggingface/transformers/issues
EDIT: I have not the rights to transfer the issue
~~I am transferring your issue to th... | ### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
8 report_to="wandb")
9
---> 10 trainer =... | 49 | AttributeError: 'str' object has no attribute 'to'
### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
... | [
-0.0875849574804306,
-0.32732507586479187,
0.08826398849487305,
0.04437366873025894,
0.5676835179328918,
0.01807335764169693,
0.5729137063026428,
0.4033966660499573,
-0.1749364137649536,
0.3256003260612488,
-0.01173626258969307,
0.22309064865112305,
-0.11257626861333847,
-0.034187655895948... |
https://github.com/huggingface/datasets/issues/6567 | AttributeError: 'str' object has no attribute 'to' | Thanks, I hope someone from transformers library addresses this issue.
On Mon, Jan 8, 2024 at 15:29 Albert Villanova del Moral <
***@***.***> wrote:
> I think you are reporting an issue with the transformers library. Note
> this is the repository of the datasets library. I am transferring your
> issue to their... | ### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
8 report_to="wandb")
9
---> 10 trainer =... | 91 | AttributeError: 'str' object has no attribute 'to'
### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
... | [
-0.021199753507971764,
-0.24903522431850433,
0.09385274350643158,
0.01945025846362114,
0.608004093170166,
0.023181572556495667,
0.601961612701416,
0.4254071116447449,
-0.18105554580688477,
0.3155393600463867,
0.025729499757289886,
0.18778374791145325,
-0.1374654322862625,
-0.15172980725765... |
https://github.com/huggingface/datasets/issues/6567 | AttributeError: 'str' object has no attribute 'to' | @andysingal, I recommend that you open an issue in their repository: https://github.com/huggingface/transformers/issues
I don't have the rights to transfer this issue to their repo. | ### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
8 report_to="wandb")
9
---> 10 trainer =... | 24 | AttributeError: 'str' object has no attribute 'to'
### Describe the bug
```
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>()
... | [
0.07574647665023804,
-0.49297788739204407,
0.09827207028865814,
0.06737039983272552,
0.5980659127235413,
-0.01736157014966011,
0.5761123299598694,
0.3846140205860138,
-0.126826211810112,
0.3702746033668518,
-0.01978471875190735,
0.16745927929878235,
-0.11638883501291275,
-0.063405096530914... |
https://github.com/huggingface/datasets/issues/6566 | I train controlnet_sdxl in bf16 datatype, got unsupported ERROR in datasets | I also see the same error and get passed it by casting that line to float.
so `for x in obj.detach().cpu().numpy()` becomes `for x in obj.detach().to(torch.float).cpu().numpy()`
I got the idea from [this ](https://github.com/kohya-ss/sd-webui-additional-networks/pull/128/files) PR where someone was facing a sim... | ### Describe the bug
```
Traceback (most recent call last):
File "train_controlnet_sdxl.py", line 1252, in <module>
main(args)
File "train_controlnet_sdxl.py", line 1013, in main
train_dataset = train_dataset.map(compute_embeddings_fn, batched=True, new_fingerprint=new_fingerprint)
File "/home/mini... | 51 | I train controlnet_sdxl in bf16 datatype, got unsupported ERROR in datasets
### Describe the bug
```
Traceback (most recent call last):
File "train_controlnet_sdxl.py", line 1252, in <module>
main(args)
File "train_controlnet_sdxl.py", line 1013, in main
train_dataset = train_dataset.map(compute_emb... | [
-0.5037297606468201,
-0.22553570568561554,
-0.013837656006217003,
0.18832498788833618,
0.5082093477249146,
0.14244920015335083,
0.48809462785720825,
0.20407406985759735,
0.4085869789123535,
0.15492914617061615,
0.07041198015213013,
0.09321893006563187,
-0.4428430497646332,
0.28239572048187... |
https://github.com/huggingface/datasets/issues/6565 | `drop_last_batch=True` for IterableDataset map function is ignored with multiprocessing DataLoader | My current workaround this issue is to return `None` in the second element and then filter out samples which have `None` in them.
```python
def merge_samples(batch):
if len(batch['a']) == 1:
batch['c'] = [batch['a'][0]]
batch['d'] = [None]
else:
batch['c'] = [batch['a'][0]]
... | ### Describe the bug
Scenario:
- Interleaving two iterable datasets of unequal lengths (`all_exhausted`), followed by a batch mapping with batch size 2 to effectively merge the two datasets and get a sample from each dataset in a single batch, with `drop_last_batch=True` to skip the last batch in case it doesn't ha... | 59 | `drop_last_batch=True` for IterableDataset map function is ignored with multiprocessing DataLoader
### Describe the bug
Scenario:
- Interleaving two iterable datasets of unequal lengths (`all_exhausted`), followed by a batch mapping with batch size 2 to effectively merge the two datasets and get a sample from e... | [
-0.29564836621284485,
-0.06441427022218704,
-0.03195449337363243,
0.10420336574316025,
-0.08406766504049301,
-0.06830044090747833,
0.6586073637008667,
0.20464757084846497,
0.2394964098930359,
0.41045916080474854,
-0.027380546554923058,
0.37076354026794434,
-0.16182705760002136,
-0.24033497... |
https://github.com/huggingface/datasets/issues/6563 | `ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py) | <del>Installing `datasets` from `main` did the trick so I guess it will be fixed in the next release.
NVM https://github.com/huggingface/datasets/blob/d26abadce0b884db32382b92422d8a6aa997d40a/src/datasets/utils/info_utils.py#L5 | ### Describe the bug
Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore.
```text
+ python /home/trainer/sft_train.py --model_name cognitivecomputations/dolphin-2.2.1-mistral-7b --dataset_name wasertech/OneOS --load_in_4bit --use_peft --batch_... | 20 | `ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py)
### Describe the bug
Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore.
```text
+ python /home/trainer/sft_train.py -... | [
-0.05503560230135918,
-0.5703759789466858,
-0.049042440950870514,
0.15788184106349945,
0.35627633333206177,
-0.001315772533416748,
0.15832090377807617,
0.3560461699962616,
0.14925932884216309,
0.24469123780727386,
-0.12720777094364166,
0.24285440146923065,
-0.3056066632270813,
0.2356676608... |
https://github.com/huggingface/datasets/issues/6563 | `ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py) | Ha yes I had pinned `tokenizers` to an old version so it downgraded `huggingface_hub`. Note to myself keep HuggingFace modules relatively close together chronologically release wise. | ### Describe the bug
Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore.
```text
+ python /home/trainer/sft_train.py --model_name cognitivecomputations/dolphin-2.2.1-mistral-7b --dataset_name wasertech/OneOS --load_in_4bit --use_peft --batch_... | 26 | `ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py)
### Describe the bug
Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore.
```text
+ python /home/trainer/sft_train.py -... | [
-0.05503560230135918,
-0.5703759789466858,
-0.049042440950870514,
0.15788184106349945,
0.35627633333206177,
-0.001315772533416748,
0.15832090377807617,
0.3560461699962616,
0.14925932884216309,
0.24469123780727386,
-0.12720777094364166,
0.24285440146923065,
-0.3056066632270813,
0.2356676608... |
https://github.com/huggingface/datasets/issues/6561 | Document YAML configuration with "data_dir" | In particular, I would like to have an example of how to replace the following configuration (from https://huggingface.co/docs/hub/datasets-manual-configuration#splits)
```
---
configs:
- config_name: default
data_files:
- split: train
path: "data/*.csv"
- split: test
path: "holdout/*.csv"
---... | See https://huggingface.co/datasets/uonlp/CulturaX/discussions/15#6597e83f185db94370d6bf50 for reference | 41 | Document YAML configuration with "data_dir"
See https://huggingface.co/datasets/uonlp/CulturaX/discussions/15#6597e83f185db94370d6bf50 for reference
In particular, I would like to have an example of how to replace the following configuration (from https://huggingface.co/docs/hub/datasets-manual-configuration#splits... | [
-0.25297054648399353,
-0.16030719876289368,
0.08084334433078766,
0.01818813756108284,
0.23896117508411407,
0.40161141753196716,
0.35298290848731995,
0.054908137768507004,
0.02272459864616394,
0.16462379693984985,
0.03208034858107567,
0.038590166717767715,
0.06359585374593735,
0.42989635467... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | Hi ! The "allenai--c4" config doesn't exist (this naming schema comes from old versions of `datasets`)
You can load it this way instead:
```python
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4', data_files={'train': 'en/c4-train.00000-of-01024.j... | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 39 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5463299751281738,
0.4556008577346802,
-0.028695188462734222,
0.31439143419265747,
0.14552806317806244,
0.10748518258333206,
0.3114596903324127,
0.3529205620288849,
0.18226903676986694,
0.20120525360107422,
0.26887527108192444,
0.6102458834648132,
-0.13644933700561523,
-0.173140048980712... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | > Hi ! The "allenai--c4" config doesn't exist (this naming schema comes from old versions of `datasets`)
>
> You can load it this way instead:
>
> ```python
> from datasets import load_dataset
> cache_dir = 'path/to/your/cache/directory'
> dataset = load_dataset('allenai/c4', data_files={'train': 'en/c4-train.... | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 57 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5519500374794006,
0.4501832127571106,
-0.026410797610878944,
0.31397899985313416,
0.1435113251209259,
0.11366923898458481,
0.30293819308280945,
0.34828346967697144,
0.18301017582416534,
0.20341314375400543,
0.2682672142982483,
0.610930323600769,
-0.13823647797107697,
-0.1882187426090240... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | > Hi ! The "allenai--c4" config doesn't exist (this naming schema comes from old versions of `datasets`)
>
> You can load it this way instead:
>
> ```python
> from datasets import load_dataset
> cache_dir = 'path/to/your/cache/directory'
> dataset = load_dataset('allenai/c4', data_files={'train': 'en/c4-train.... | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 66 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5519500374794006,
0.4501832127571106,
-0.026410797610878944,
0.31397899985313416,
0.1435113251209259,
0.11366923898458481,
0.30293819308280945,
0.34828346967697144,
0.18301017582416534,
0.20341314375400543,
0.2682672142982483,
0.610930323600769,
-0.13823647797107697,
-0.1882187426090240... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | > It will only load the first file (`data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}` only mentions one file)
Then what if we want to load the whole dataset? | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 24 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5195451974868774,
0.4359716773033142,
-0.03762417659163475,
0.4032086133956909,
0.08961062133312225,
0.12800565361976624,
0.2900764048099518,
0.357012540102005,
0.2538490295410156,
0.17035071551799774,
0.2692887485027313,
0.4973995089530945,
-0.07483157515525818,
-0.16819150745868683,
... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | There is a "en" subset that you can load (see the list in the "subset" dropdown at https://huggingface.co/datasets/allenai/c4)
```python
dataset = load_dataset('allenai/c4', 'en', split="train")
```
alternatively you can specify all the the files yourself using a glob pattern (or a list):
```python
dataset ... | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 48 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5332023501396179,
0.4475707411766052,
-0.02019970305263996,
0.37194621562957764,
0.19092465937137604,
0.11722461134195328,
0.2830864489078522,
0.3326078951358795,
0.21562661230564117,
0.18558022379875183,
0.22029191255569458,
0.5096813440322876,
-0.10790932923555374,
-0.0879640206694603... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | > There is a "en" subset that you can load (see the list in the "subset" dropdown at https://huggingface.co/datasets/allenai/c4)
>
> ```python
> dataset = load_dataset('allenai/c4', 'en', split="train")
> ```
>
> alternatively you can specify all the the files yourself using a glob pattern (or a list):
>
> `... | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 77 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.539141833782196,
0.4383901357650757,
-0.016469020396471024,
0.37437009811401367,
0.19551949203014374,
0.11849003285169601,
0.27739185094833374,
0.33246397972106934,
0.2065124362707138,
0.18691867589950562,
0.22070816159248352,
0.5093801021575928,
-0.11679225414991379,
-0.093754820525646... |
https://github.com/huggingface/datasets/issues/6559 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default'] | The latest version of `datasets` seems to have broken my dataset for my users (see this Hugging Face issue: https://huggingface.co/datasets/umarbutler/open-australian-legal-corpus/discussions/3). I changed it by renaming my dataset's config to `default` instead of `train` and then updating my dataset card accordingly. | ### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir)
```
the script su... | 40 | Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
### Describe the bug
python script is:
```
from datasets import load_dataset
cache_dir = 'path/to/your/cache/directory'
dataset = load_dataset('allenai/c4','allenai--c4', data_files=... | [
-0.5256090760231018,
0.5471895933151245,
-0.017053216695785522,
0.2616460919380188,
0.06457291543483734,
0.12793949246406555,
0.39994513988494873,
0.2325417548418045,
0.20851348340511322,
0.10307827591896057,
0.2211834341287613,
0.4839916527271271,
-0.1482439637184143,
-0.11514364928007126... |
https://github.com/huggingface/datasets/issues/6558 | OSError: image file is truncated (1 bytes not processed) #28323 | You can add
```python
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
```
after the imports to be able to read truncated images. | ### Describe the bug
```
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[24], line 28
23 return example
25 # Filter the dataset
26 # filtered_dataset = dataset.filter(contains_number... | 22 | OSError: image file is truncated (1 bytes not processed) #28323
### Describe the bug
```
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[24], line 28
23 return example
25 # Filter the da... | [
-0.32767024636268616,
-0.31357795000076294,
-0.2601441442966461,
0.10543316602706909,
0.24383753538131714,
0.03358200937509537,
0.23733660578727722,
0.4668816328048706,
0.08176538348197937,
0.19741711020469666,
0.05436500906944275,
0.06374156475067139,
-0.0667787417769432,
0.07968476414680... |
https://github.com/huggingface/datasets/issues/6554 | Parquet exports are used even if revision is passed | I don't think this bug is a thing ? Do you have some code that leads to this issue ? | We should not used Parquet exports if `revision` is passed.
I think this is a regression. | 20 | Parquet exports are used even if revision is passed
We should not used Parquet exports if `revision` is passed.
I think this is a regression.
I don't think this bug is a thing ? Do you have some code that leads to this issue ? | [
0.002480335533618927,
-0.3371050953865051,
-0.11629633605480194,
0.2475796490907669,
0.059505149722099304,
-0.4397580325603485,
0.18885040283203125,
0.1329137235879898,
-0.14280694723129272,
0.3566570281982422,
0.39088529348373413,
0.49041175842285156,
0.31143370270729065,
0.03027014620602... |
https://github.com/huggingface/datasets/issues/6552 | Loading a dataset from Google Colab hangs at "Resolving data files". | This bug comes from the `huggingface_hub` library, see: https://github.com/huggingface/huggingface_hub/issues/1952
A fix is provided at https://github.com/huggingface/huggingface_hub/pull/1953. Feel free to install `huggingface_hub` from this PR, or wait for it to be merged and the new version of `huggingface_hub` t... | ### Describe the bug
Hello,
I'm trying to load a dataset from Google Colab but the process hangs at `Resolving data files`:

It is happening when the `_get_origin_metadata` definition is invoked:
```python
d... | 39 | Loading a dataset from Google Colab hangs at "Resolving data files".
### Describe the bug
Hello,
I'm trying to load a dataset from Google Colab but the process hangs at `Resolving data files`:

It is happening... | [
-0.19339001178741455,
-0.11780481785535812,
0.030357111245393753,
0.40891027450561523,
0.09424535930156708,
-0.07610063254833221,
0.26371240615844727,
0.041114334017038345,
0.03373466059565544,
0.24775008857250214,
-0.11173560470342636,
0.43298277258872986,
0.038215383887290955,
-0.0427219... |
https://github.com/huggingface/datasets/issues/6549 | Loading from hf hub with clearer error message | Maybe we can add a helper message like `Maybe try again using "hf://path/without/resolve"` if the path contains `/resolve/` ?
e.g.
```
FileNotFoundError: Unable to find 'hf://datasets/HuggingFaceTB/eval_data/resolve/main/eval_data_context_and_answers.json'
It looks like you used parts of the URL of the file fro... | ### Feature request
Shouldn't this kinda work ?
```
Dataset.from_json("hf://datasets/HuggingFaceTB/eval_data/resolve/main/eval_data_context_and_answers.json")
```
I got an error
```
File ~/miniconda3/envs/datatrove/lib/python3.10/site-packages/datasets/data_files.py:380, in resolve_pattern(pattern, base_path, al... | 86 | Loading from hf hub with clearer error message
### Feature request
Shouldn't this kinda work ?
```
Dataset.from_json("hf://datasets/HuggingFaceTB/eval_data/resolve/main/eval_data_context_and_answers.json")
```
I got an error
```
File ~/miniconda3/envs/datatrove/lib/python3.10/site-packages/datasets/data_files.... | [
0.20661447942256927,
-0.25089365243911743,
0.036134157329797745,
0.3289875388145447,
0.2908267378807068,
-0.08821079134941101,
0.07552529871463776,
0.5636871457099915,
0.05773193761706352,
0.03372180461883545,
-0.1777096390724182,
0.16017933189868927,
0.1350436806678772,
0.1739737540483474... |
https://github.com/huggingface/datasets/issues/6548 | Skip if a dataset has issues | It looks like a transient DNS issue. It should work fine now if you try again.
There is no parameter in load_dataset to skip failed downloads. In your case it would have skipped every single subsequent download until the DNS issue was resolved anyway. | ### Describe the bug
Hello everyone,
I'm using **load_datasets** from **huggingface** to download the datasets and I'm facing an issue, the download starts but it reaches some state and then fails with the following error:
Couldn't reach https://huggingface.co/datasets/wikimedia/wikipedia/resolve/4cb9b0d719291f1a10... | 44 | Skip if a dataset has issues
### Describe the bug
Hello everyone,
I'm using **load_datasets** from **huggingface** to download the datasets and I'm facing an issue, the download starts but it reaches some state and then fails with the following error:
Couldn't reach https://huggingface.co/datasets/wikimedia/wikip... | [
-0.1359976828098297,
-0.533832311630249,
0.022321667522192,
0.354861319065094,
0.39993828535079956,
0.1268063485622406,
-0.1406777948141098,
0.2254844754934311,
0.08940263092517853,
0.329720139503479,
0.44224339723587036,
0.13631819188594818,
0.05722913518548012,
-0.06314937770366669,
0.... |
https://github.com/huggingface/datasets/issues/6542 | Datasets : wikipedia 20220301.en error | Hi ! We now recommend using the `wikimedia/wikipedia` dataset, can you try loading this one instead ?
```python
wiki_dataset = load_dataset("wikimedia/wikipedia", "20231101.en")
``` | ### Describe the bug
When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist.
### Steps to reproduce the bug
1.I tried downloading directly.
```python
wiki_dataset = load_dataset("wikipedia", "20220301.en")
```
An exception occurre... | 23 | Datasets : wikipedia 20220301.en error
### Describe the bug
When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist.
### Steps to reproduce the bug
1.I tried downloading directly.
```python
wiki_dataset = load_dataset("wikipedia",... | [
-0.01856963522732258,
0.2129669189453125,
-0.015666021034121513,
0.3313210606575012,
0.11043630540370941,
0.1983100175857544,
0.2993718981742859,
0.352083683013916,
0.21328437328338623,
0.07992018014192581,
0.1257115602493286,
0.11823546886444092,
0.016085345298051834,
-0.0669085904955864,... |
https://github.com/huggingface/datasets/issues/6542 | Datasets : wikipedia 20220301.en error | This bug has been fixed in `2.16.1` thanks to https://github.com/huggingface/datasets/pull/6544, feel free to update `datasets` and re-run your code :)
```
pip install -U datasets
``` | ### Describe the bug
When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist.
### Steps to reproduce the bug
1.I tried downloading directly.
```python
wiki_dataset = load_dataset("wikipedia", "20220301.en")
```
An exception occurre... | 26 | Datasets : wikipedia 20220301.en error
### Describe the bug
When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist.
### Steps to reproduce the bug
1.I tried downloading directly.
```python
wiki_dataset = load_dataset("wikipedia",... | [
-0.08289992809295654,
0.20689260959625244,
-0.015040656551718712,
0.3366367220878601,
0.1155480146408081,
0.1788325011730194,
0.28936904668807983,
0.349710077047348,
0.22947752475738525,
0.09866955876350403,
0.10366487503051758,
0.15296514332294464,
0.018877802416682243,
-0.007782375440001... |
https://github.com/huggingface/datasets/issues/6541 | Dataset not loading successfully. | This is a problem with your environment. You should be able to fix it by upgrading `numpy` based on [this](https://github.com/numpy/numpy/issues/23570) issue. | ### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to reproduce the bug
## Reproduction
... | 21 | Dataset not loading successfully.
### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to... | [
-0.23438836634159088,
-0.33503007888793945,
0.06285375356674194,
0.43342751264572144,
0.4766222834587097,
-0.10106322169303894,
0.43459418416023254,
0.10951893031597137,
0.12539668381214142,
0.29031625390052795,
-0.3058728873729706,
0.248823881149292,
-0.289297491312027,
-0.003888227045536... |
https://github.com/huggingface/datasets/issues/6541 | Dataset not loading successfully. | Then, this shouldn't throw an error on your machine:
```python
import numpy
numpy._no_nep50_warning
```
If it does, run `python -m pip install numpy` to ensure the correct `pip` is used for the package installation. | ### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to reproduce the bug
## Reproduction
... | 34 | Dataset not loading successfully.
### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to... | [
-0.23438836634159088,
-0.33503007888793945,
0.06285375356674194,
0.43342751264572144,
0.4766222834587097,
-0.10106322169303894,
0.43459418416023254,
0.10951893031597137,
0.12539668381214142,
0.29031625390052795,
-0.3058728873729706,
0.248823881149292,
-0.289297491312027,
-0.003888227045536... |
https://github.com/huggingface/datasets/issues/6541 | Dataset not loading successfully. | Your suggestion to run `python -m pip install numpy` proved to be successful, and my issue has been resolved. I am grateful for your assistance, @mariosasko | ### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to reproduce the bug
## Reproduction
... | 26 | Dataset not loading successfully.
### Describe the bug
When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099)
### Steps to... | [
-0.23438836634159088,
-0.33503007888793945,
0.06285375356674194,
0.43342751264572144,
0.4766222834587097,
-0.10106322169303894,
0.43459418416023254,
0.10951893031597137,
0.12539668381214142,
0.29031625390052795,
-0.3058728873729706,
0.248823881149292,
-0.289297491312027,
-0.003888227045536... |
https://github.com/huggingface/datasets/issues/6540 | Extreme inefficiency for `save_to_disk` when merging datasets | Concatenating datasets doesn't create any indices mapping - so flattening indices is not needed (unless you shuffle the dataset).
Can you share the snippet of code you are using to merge your datasets and save them to disk ? | ### Describe the bug
Hi, I tried to merge in total 22M sequences of data, where each sequence is of maximum length 2000. I found that merging these datasets and then `save_to_disk` is extremely slow because of flattening the indices. Wondering if you have any suggestions or guidance on this. Thank you very much!
###... | 39 | Extreme inefficiency for `save_to_disk` when merging datasets
### Describe the bug
Hi, I tried to merge in total 22M sequences of data, where each sequence is of maximum length 2000. I found that merging these datasets and then `save_to_disk` is extremely slow because of flattening the indices. Wondering if you have... | [
-0.1920756995677948,
-0.4081779420375824,
0.06094741448760033,
0.3518153429031372,
-0.021621081978082657,
0.4255611300468445,
-0.053392019122838974,
0.38267791271209717,
-0.19058670103549957,
-0.006987825036048889,
0.0900208130478859,
0.11778067797422409,
-0.2164081484079361,
0.04947641491... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | Hi ! Are you sure you have `datasets` 2.16 ? I just checked and on 2.16 I can run `from datasets.arrow_writer import SchemaInferenceError` without error | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 25 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | I have the same issue - using with datasets version 2.16.1. Also this is on a kaggle notebook - other people with the same issue also seem to be having it on kaggle? | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 33 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > Hi ! Are you sure you have `datasets` 2.16 ? I just checked and on 2.16 I can run `from datasets.arrow_writer import SchemaInferenceError` without error
Yes, I am sure
```
!pip show datasets
Name: datasets
Version: 2.16.1
Summary: HuggingFace community-driven open-source library of datasets
Home-page: http... | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 76 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > I have the same issue - using with datasets version 2.16.1. Also this is on a kaggle notebook - other people with the same issue also seem to be having it on kaggle?
Don't know about other people. But I am having this issue whose solution I can't find anywhere. And this issue still persists. | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 56 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > I have the same issue now and didn't have this problem around 2 weeks ago.
Same here | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 18 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | I was having the same issue but the datasets version was 2.6.1, after I updated it to latest(2.16), error is gone while importing.
| ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 23 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > I was having the same issue but the datasets version was 2.6.1, after I updated it to latest(2.16), error is gone while importing.
I also have datasets version 2.16, but the error is still there. | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 36 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > > Can you try re-installing `datasets` ?
>
> I tried re-installing. Still getting the same error.
In kaggle I used:
- `%pip install -U datasets`
and then restarted runtime and then everything works fine. | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 36 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > > > Can you try re-installing `datasets` ?
> >
> >
> > I tried re-installing. Still getting the same error.
>
> In kaggle I used:
>
> * `%pip install -U datasets`
> and then restarted runtime and then everything works fine.
Yes, this is working. When I restart the runtime after installing packages, i... | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 78 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > > > > Can you try re-installing `datasets` ?
> > >
> > >
> > > I tried re-installing. Still getting the same error.
> >
> >
> > In kaggle I used:
> >
> > * `%pip install -U datasets`
> > and then restarted runtime and then everything works fine.
>
> Yes, this is working. When I restart the runtime ... | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 98 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
https://github.com/huggingface/datasets/issues/6538 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py) | > > > > > Can you try re-installing `datasets` ?
> > > >
> > > >
> > > > I tried re-installing. Still getting the same error.
> > >
> > >
> > > In kaggle I used:
> > >
> > > * `%pip install -U datasets`
> > > and then restarted runtime and then everything works fine.
> >
> >
> > Yes, this is workin... | ### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
pipeline,
... | 157 | ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
### Describe the bug
While importing from packages getting the error
Code:
```
import os
import torch
from datasets import load_dataset, Dataset
from transf... | [
-0.2569026052951813,
-0.06662440299987793,
-0.055801644921302795,
0.6121094822883606,
0.27489668130874634,
0.06340041011571884,
0.244042307138443,
0.24720148742198944,
-0.019955817610025406,
0.11987872421741486,
-0.1381203830242157,
0.3893900513648987,
-0.1408829241991043,
0.10076155513525... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.