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/6392 | `push_to_hub` is not robust to hub closing connection | Opened a PR to retry in case S3 raises HTTP 500. Will also retry on any `ConnectionError` (connection reset by peer, connection lost,...). Hopefully this should make the upload process more robust to transient errors. | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 35 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | I still get the same error, using `push_to_hub`. Using `git lfs` and pushing the files solved it for me. | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 19 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6392 | `push_to_hub` is not robust to hub closing connection | @BEpresent the fix has not been released yet. You can expect a release of `huggingface_hub` (with this fix) today or tomorrow :) | ### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/... | 22 | `push_to_hub` is not robust to hub closing connection
### Describe the bug
Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error:
```
Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it]
Traceback (most recent call last):
File ... | [
-0.528481662273407,
-0.36381134390830994,
-0.0648718848824501,
0.1819303035736084,
0.3242589235305786,
-0.20704445242881775,
0.17081214487552643,
0.30811524391174316,
-0.03854181617498398,
-0.02296958863735199,
-0.19621892273426056,
0.1802101880311966,
0.17350462079048157,
0.04469935595989... |
https://github.com/huggingface/datasets/issues/6389 | Index 339 out of range for dataset of size 339 <-- save_to_file() | I managed a workaround eventually but I don't know what it was (I made a lot of changes to seq2seq). I'll try to include generating code in the future. (If I close, I don't know if you see it. Feel free to close; I'll re-open if I encounter it again (if I can)). | ### Describe the bug
When saving out some Audio() data.
The data is audio recordings with associated 'sentences'.
(They use the audio 'bytes' approach because they're clips within audio files).
Code is below the traceback (I can't upload the voice audio/text (it's not even me)).
```
Traceback (most recent call ... | 53 | Index 339 out of range for dataset of size 339 <-- save_to_file()
### Describe the bug
When saving out some Audio() data.
The data is audio recordings with associated 'sentences'.
(They use the audio 'bytes' approach because they're clips within audio files).
Code is below the traceback (I can't upload the voice ... | [
-0.20405082404613495,
-0.13199618458747864,
0.0418323390185833,
0.3329991102218628,
0.1603625863790512,
0.040948398411273956,
0.18478554487228394,
0.6422512531280518,
-0.32589685916900635,
0.2800062894821167,
-0.2070019245147705,
-0.11669192463159561,
-0.0634903535246849,
-0.20047287642955... |
https://github.com/huggingface/datasets/issues/6387 | How to load existing downloaded dataset ? | Feel free to use `dataset.save_to_disk(...)`, then scp the directory containing the saved dataset and reload it on your other machine using `dataset = load_from_disk(...)` | Hi @mariosasko @lhoestq @katielink
Thanks for your contribution and hard work.
### Feature request
First, I download a dataset as normal by:
```
from datasets import load_dataset
dataset = load_dataset('username/data_name', cache_dir='data')
```
The dataset format in `data` directory will be:
```
... | 24 | How to load existing downloaded dataset ?
Hi @mariosasko @lhoestq @katielink
Thanks for your contribution and hard work.
### Feature request
First, I download a dataset as normal by:
```
from datasets import load_dataset
dataset = load_dataset('username/data_name', cache_dir='data')
```
The datase... | [
-0.38434189558029175,
-0.18714743852615356,
0.028252407908439636,
0.29588982462882996,
0.0300181582570076,
-0.0012776851654052734,
0.0376729816198349,
0.051743220537900925,
0.2660690248012543,
0.2200259566307068,
-0.39227333664894104,
0.226503387093544,
-0.003428894095122814,
0.70206922292... |
https://github.com/huggingface/datasets/issues/6386 | Formatting overhead | Ah I think the `line-profiler` log is off-by-one and it is in fact the `extract_batch` method that's taking forever. Will investigate further. | ### Describe the bug
Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due to creating new inst... | 22 | Formatting overhead
### Describe the bug
Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is du... | [
-0.1778520941734314,
-0.23078471422195435,
0.025065481662750244,
0.25016093254089355,
0.352225124835968,
-0.017558205872774124,
0.33603307604789734,
0.12893395125865936,
-0.38654667139053345,
-0.01701246201992035,
0.26500627398490906,
0.41242772340774536,
-0.407465398311615,
0.148731008172... |
https://github.com/huggingface/datasets/issues/6385 | Get an error when i try to concatenate the squad dataset with my own dataset | The `answers.text` field in the JSON dataset needs to be a list of strings, not a string.
So, here is the fixed code:
```python
from huggingface_hub import notebook_login
from datasets import load_dataset
notebook_login("mymailadresse", "mypassword")
squad = load_dataset("squad", split="train[:5000]")
sq... | ### Describe the bug
Hello,
I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last):
Cell In[9], line 1
concatenated_dataset = concatenate_datasets([train_dataset, dataset1])
File ~\ana... | 126 | Get an error when i try to concatenate the squad dataset with my own dataset
### Describe the bug
Hello,
I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last):
Cell In[9], line 1
concate... | [
-0.2219334989786148,
-0.18991577625274658,
0.01059049740433693,
0.1274256855249405,
0.24476584792137146,
0.16857564449310303,
0.34185561537742615,
0.2883612811565399,
-0.36836960911750793,
-0.008571848273277283,
-0.1195424348115921,
0.4824564456939697,
0.2559688985347748,
0.118566699326038... |
https://github.com/huggingface/datasets/issues/6382 | Add CheXpert dataset for vision | Hey @SauravMaheshkar ! Just responded to your email.
_For transparency, copying part of my response here:_
I agree, it would be really great to have this and other BenchMD datasets easily accessible on the hub.
I think the main limiting factor is that the ChexPert dataset is currently hosted on the Stanford AIMI... | ### Feature request
### Name
**CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison**
### Paper
https://arxiv.org/abs/1901.07031
### Data
https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2
### Motivation
CheXpert is one of the fund... | 126 | Add CheXpert dataset for vision
### Feature request
### Name
**CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison**
### Paper
https://arxiv.org/abs/1901.07031
### Data
https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2
### Motiv... | [
-0.29031574726104736,
-0.3038105368614197,
-0.0994907021522522,
-0.07802537083625793,
-0.1168287992477417,
0.011799797415733337,
0.2542487680912018,
0.46563079953193665,
0.16077257692813873,
0.38705962896347046,
-0.07608377188444138,
0.09143740683794022,
-0.25393328070640564,
0.44283720850... |
https://github.com/huggingface/datasets/issues/6382 | Add CheXpert dataset for vision | Hi @katielink , I would also love to be on board and contribute to this loading script/project if it is still being developed. I'm interested because I personally would like to gain access to the CheXpert dataset and am facing some weird issues, so I'd like to sort it out for me, and potentially others. Please keep me ... | ### Feature request
### Name
**CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison**
### Paper
https://arxiv.org/abs/1901.07031
### Data
https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2
### Motivation
CheXpert is one of the fund... | 66 | Add CheXpert dataset for vision
### Feature request
### Name
**CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison**
### Paper
https://arxiv.org/abs/1901.07031
### Data
https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2
### Motiv... | [
-0.18617236614227295,
-0.33047187328338623,
-0.0778864175081253,
-0.07536779344081879,
-0.021564718335866928,
-0.1062064915895462,
0.06507609039545059,
0.41927891969680786,
0.10648073256015778,
0.2968033254146576,
0.09117300808429718,
0.04682562127709389,
-0.3325173556804657,
0.52854573726... |
https://github.com/huggingface/datasets/issues/6376 | Caching problem when deleting a dataset | I did not store it at the time but I'll try to re-do a mwe next week to get it again | ### Describe the bug
Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail.
### Steps to reproduce the bug
1. Create a dataset with n features per row
2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)`
3. Go on the hub, delete the repo at `YOUR_PATH`
4. Update... | 21 | Caching problem when deleting a dataset
### Describe the bug
Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail.
### Steps to reproduce the bug
1. Create a dataset with n features per row
2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)`
3. Go on the hub... | [
-0.1756400167942047,
-0.159572035074234,
-0.042584605515003204,
0.3126745820045471,
0.015762338414788246,
-0.061480168253183365,
0.2875652313232422,
0.29687827825546265,
0.1976938396692276,
-0.02228972315788269,
0.17500972747802734,
0.17467543482780457,
0.008161112666130066,
0.181025967001... |
https://github.com/huggingface/datasets/issues/6376 | Caching problem when deleting a dataset | I haven't managed to reproduce this issue using a [notebook](https://colab.research.google.com/drive/1m6eduYun7pFTkigrCJAFgw0BghlbvXIL?usp=sharing) that follows the steps to reproduce the bug. So, I'm closing it.
But feel free to re-open it if you have a better reproducer. | ### Describe the bug
Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail.
### Steps to reproduce the bug
1. Create a dataset with n features per row
2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)`
3. Go on the hub, delete the repo at `YOUR_PATH`
4. Update... | 34 | Caching problem when deleting a dataset
### Describe the bug
Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail.
### Steps to reproduce the bug
1. Create a dataset with n features per row
2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)`
3. Go on the hub... | [
-0.09146806597709656,
-0.13599276542663574,
-0.007731502875685692,
0.34520483016967773,
-0.07417577505111694,
-0.020083677023649216,
0.3198855519294739,
0.2709158957004547,
0.19415223598480225,
-0.04379042983055115,
0.20972491800785065,
0.16039232909679413,
-0.0297585129737854,
0.139097705... |
https://github.com/huggingface/datasets/issues/6371 | `Dataset.from_generator` should not try to download from HF GCS | Indeed, setting `try_from_gcs` to `False` makes sense for `from_generator`.
We plan to deprecate and remove `try_from_hf_gcs` soon, as we can use Hub for file hosting now, but this is a good temporary fix.
| ### Describe the bug
When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_prepare`](https://github.com/huggingface/datasets/blob/main/src/datas... | 33 | `Dataset.from_generator` should not try to download from HF GCS
### Describe the bug
When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_pre... | [
-0.2489262819290161,
-0.3623087704181671,
0.012908432632684708,
0.22330991923809052,
0.23133699595928192,
-0.1925211250782013,
0.11532324552536011,
0.0788823589682579,
0.08868762850761414,
0.2864634096622467,
0.08888959884643555,
0.050307635217905045,
0.14478154480457306,
-0.04127001762390... |
https://github.com/huggingface/datasets/issues/6370 | TensorDataset format does not work with Trainer from transformers | I figured it out. I found that `Trainer` does not work with TensorDataset even though the document says it uses it. Instead, I ended up creating a dictionary and converting it to a dataset using `dataset.Dataset.from_dict()`.
I will leave this post open for a while. If someone knows a better approach, please leave a... | ### Describe the bug
The model was built to do fine tunning on BERT model for relation extraction.
trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `torch.utils.data.TensorDataset`
However, in the document, the req... | 55 | TensorDataset format does not work with Trainer from transformers
### Describe the bug
The model was built to do fine tunning on BERT model for relation extraction.
trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `... | [
-0.037874482572078705,
-0.35188788175582886,
0.05201185122132301,
0.4861847162246704,
0.4192972183227539,
-0.058090053498744965,
0.6545384526252747,
0.43648284673690796,
-0.1592070311307907,
-0.005944959819316864,
-0.25915589928627014,
0.32222017645835876,
-0.13267779350280762,
-0.25136771... |
https://github.com/huggingface/datasets/issues/6370 | TensorDataset format does not work with Trainer from transformers | Only issues directly related to the HF datasets library should be reported here. ~So, I'm transferring this issue to the `transformers` repo.~ I'm not a `transformers` maintainer, so GitHub doesn't let me transfer it there :(. This means you need to do it manually. | ### Describe the bug
The model was built to do fine tunning on BERT model for relation extraction.
trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `torch.utils.data.TensorDataset`
However, in the document, the req... | 44 | TensorDataset format does not work with Trainer from transformers
### Describe the bug
The model was built to do fine tunning on BERT model for relation extraction.
trainer.train() returns an error message ```TypeError: vars() argument must have __dict__ attribute``` when it has `train_dataset` generated from `... | [
-0.037874482572078705,
-0.35188788175582886,
0.05201185122132301,
0.4861847162246704,
0.4192972183227539,
-0.058090053498744965,
0.6545384526252747,
0.43648284673690796,
-0.1592070311307907,
-0.005944959819316864,
-0.25915589928627014,
0.32222017645835876,
-0.13267779350280762,
-0.25136771... |
https://github.com/huggingface/datasets/issues/6369 | Multi process map did not load cache file correctly | The inconsistency may be caused by the usage of "update_fingerprint" and setting "trust_remote_code" to "True."
When the tokenizer employs "trust_remote_code," the behavior of the map function varies with each code execution. Even if the remote code of the tokenizer remains the same, the result of "asher.hexdigest()" ... | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


![1698820501568]... | [
-0.37588390707969666,
-0.5878850221633911,
0.0327877476811409,
0.44652533531188965,
0.30833303928375244,
-0.06708860397338867,
0.384670615196228,
-0.023024436086416245,
0.11546272039413452,
-0.1306910514831543,
0.03220495581626892,
0.18396373093128204,
0.011364773847162724,
-0.160188257694... |
https://github.com/huggingface/datasets/issues/6369 | Multi process map did not load cache file correctly | The issue may be related to problems previously discussed in GitHub issues [#3847](https://github.com/huggingface/datasets/issues/3847) and [#6318](https://github.com/huggingface/datasets/pull/6318).
This arises from the fact that tokenizer.tokens_trie._tokens is an unordered set, leading to varying hash results:
`v... | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


![1698820501568]... | [
-0.37588390707969666,
-0.5878850221633911,
0.0327877476811409,
0.44652533531188965,
0.30833303928375244,
-0.06708860397338867,
0.384670615196228,
-0.023024436086416245,
0.11546272039413452,
-0.1306910514831543,
0.03220495581626892,
0.18396373093128204,
0.011364773847162724,
-0.160188257694... |
https://github.com/huggingface/datasets/issues/6369 | Multi process map did not load cache file correctly | We now sort `set` and `dict` items to make their hashes deterministic (install from `main` with `pip install git+https://github.com/huggingface/datasets` to test this). Consequently, this should also make the `tokenizer.tokens_trie`'s hash deterministic. Feel free to re-open the issue if this is not the case. | ### Describe the bug
When I was training model on Multiple GPUs by DDP, the dataset is tokenized multiple times after main process.


![1698820501568]... | [
-0.37588390707969666,
-0.5878850221633911,
0.0327877476811409,
0.44652533531188965,
0.30833303928375244,
-0.06708860397338867,
0.384670615196228,
-0.023024436086416245,
0.11546272039413452,
-0.1306910514831543,
0.03220495581626892,
0.18396373093128204,
0.011364773847162724,
-0.160188257694... |
https://github.com/huggingface/datasets/issues/6364 | ArrowNotImplementedError: Unsupported cast from string to list using function cast_list | You can use the following code to load this CSV with the list values preserved:
```python
from datasets import load_dataset
import ast
converters = {
"contexts" : ast.literal_eval,
"ground_truths" : ast.literal_eval,
}
ds = load_dataset("csv", data_files="golden_dataset.csv", converters=converters)
... | Hi,
I am trying to load a local csv dataset(similar to explodinggradients_fiqa) using load_dataset. When I try to pass features, I am facing the mentioned issue.
CSV Data sample(golden_dataset.csv):
Question | Context | answer | groundtruth
"what is abc?"... | 38 | ArrowNotImplementedError: Unsupported cast from string to list using function cast_list
Hi,
I am trying to load a local csv dataset(similar to explodinggradients_fiqa) using load_dataset. When I try to pass features, I am facing the mentioned issue.
CSV Data sample(golden_dataset.csv):
Question | ... | [
-0.02789284475147724,
-0.23731251060962677,
-0.11266927421092987,
0.09196687489748001,
0.6726945638656616,
-0.07634042203426361,
0.19831758737564087,
0.24670052528381348,
0.289915531873703,
0.11488265544176102,
0.06941308081150055,
0.4706839621067047,
-0.1396898776292801,
0.041423946619033... |
https://github.com/huggingface/datasets/issues/6363 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL | I think the code hangs on the `accelerator.main_process_first()` context manager exit. To verify this, you can append a print statement to the end of the `accelerator.main_process_first()` block.
If the problem is in `with_transform`, it would help if you could share the error stack trace printed when you interr... | ### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate launch train_text_to_image_sdxl.py --pretrained_model_name_or_path=$MODEL_NAME --... | 53 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL
### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate... | [
-0.2909313142299652,
-0.4494292140007019,
0.03063831478357315,
0.10455915331840515,
0.7972440719604492,
-0.06378240138292313,
0.38594141602516174,
0.08792949467897415,
-0.1931465119123459,
0.4078894853591919,
0.08595011383295059,
0.1558985412120819,
0.01676599122583866,
-0.0726517587900161... |
https://github.com/huggingface/datasets/issues/6363 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL | @mariosasko yes the problem seems to be to exit from accelerator.main_process_first(). Is there any known problem? | ### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate launch train_text_to_image_sdxl.py --pretrained_model_name_or_path=$MODEL_NAME --... | 16 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL
### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate... | [
-0.2909313142299652,
-0.4494292140007019,
0.03063831478357315,
0.10455915331840515,
0.7972440719604492,
-0.06378240138292313,
0.38594141602516174,
0.08792949467897415,
-0.1931465119123459,
0.4078894853591919,
0.08595011383295059,
0.1558985412120819,
0.01676599122583866,
-0.0726517587900161... |
https://github.com/huggingface/datasets/issues/6363 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL | NCCL debug info I get below output, if it helps.
```
11/09/2023 13:36:44 - INFO - __main__ - Distributed environment: MULTI_GPU Backend: nccl
Num processes: 2
Process index: 1
Local process index: 1
Device: cuda:1
Mixed precision type: fp16
Detected kernel version 5.4.0, which is below the recommended mini... | ### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate launch train_text_to_image_sdxl.py --pretrained_model_name_or_path=$MODEL_NAME --... | 620 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL
### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate... | [
-0.2909313142299652,
-0.4494292140007019,
0.03063831478357315,
0.10455915331840515,
0.7972440719604492,
-0.06378240138292313,
0.38594141602516174,
0.08792949467897415,
-0.1931465119123459,
0.4078894853591919,
0.08595011383295059,
0.1558985412120819,
0.01676599122583866,
-0.0726517587900161... |
https://github.com/huggingface/datasets/issues/6363 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL | I don't know what the issue was, but after going through the thread here I loved the issue with https://github.com/huggingface/accelerate/issues/314#issuecomment-1565259831 | ### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate launch train_text_to_image_sdxl.py --pretrained_model_name_or_path=$MODEL_NAME --... | 20 | dataset.transform() hangs indefinitely while finetuning the stable diffusion XL
### Describe the bug
Multi-GPU fine-tuning the stable diffusion X by following https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/README_sdxl.md hangs indefinitely.
### Steps to reproduce the bug
accelerate... | [
-0.2909313142299652,
-0.4494292140007019,
0.03063831478357315,
0.10455915331840515,
0.7972440719604492,
-0.06378240138292313,
0.38594141602516174,
0.08792949467897415,
-0.1931465119123459,
0.4078894853591919,
0.08595011383295059,
0.1558985412120819,
0.01676599122583866,
-0.0726517587900161... |
https://github.com/huggingface/datasets/issues/6360 | Add support for `Sequence(Audio/Image)` feature in `push_to_hub` | This issue stems from https://github.com/huggingface/datasets/blob/6d2f2a5e0fea3827eccfd1717d8021c15fc4292a/src/datasets/table.py#L2203-L2205
I'll address it as part of https://github.com/huggingface/datasets/pull/6283.
In the meantime, this should work
```python
import pyarrow as pa
from datasets import Ima... | ### Feature request
Allow for `Sequence` of `Image` (or `Audio`) to be embedded inside the shards.
### Motivation
Currently, thanks to #3685, when `embed_external_files` is set to True (which is the default) in `push_to_hub`, features of type `Image` and `Audio` are embedded inside the arrow/parquet shards, instead ... | 58 | Add support for `Sequence(Audio/Image)` feature in `push_to_hub`
### Feature request
Allow for `Sequence` of `Image` (or `Audio`) to be embedded inside the shards.
### Motivation
Currently, thanks to #3685, when `embed_external_files` is set to True (which is the default) in `push_to_hub`, features of type `Image... | [
-0.25505995750427246,
-0.5069049000740051,
-0.11654670536518097,
0.14346197247505188,
-0.07700435072183609,
-0.09264016151428223,
0.16396303474903107,
0.22163426876068115,
-0.26074954867362976,
0.17967528104782104,
0.046998895704746246,
0.2636188864707947,
-0.43620237708091736,
0.161912024... |
https://github.com/huggingface/datasets/issues/6359 | Stuck in "Resolving data files..." | Most likely, the data file inference logic is the problem here.
You can run the following code to verify this:
```python
import time
from datasets.data_files import get_data_patterns
start_time = time.time()
get_data_patterns("/path/to/img_dir")
end_time = time.time()
print(f"Elapsed time: {end_time - start_t... | ### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going on in this part?
From my understa... | 74 | Stuck in "Resolving data files..."
### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going... | [
-0.23090432584285736,
0.04058679938316345,
-0.10604538023471832,
0.3675360679626465,
0.26099058985710144,
0.13373824954032898,
0.34540849924087524,
0.47421908378601074,
-0.103665292263031,
0.11970353126525879,
0.16956420242786407,
0.35598453879356384,
0.16056932508945465,
-0.18263034522533... |
https://github.com/huggingface/datasets/issues/6359 | Stuck in "Resolving data files..." | Hi, @mariosasko, you are right; data file inference logic is extremely slow.
I have done a similar test, that is I modify the source code of datasets/load.py to measure the cost of two suspicious operations:
```python
def get_module(self) -> DatasetModule:
base_path = Path(self.data_dir or "").expanduser(... | ### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going on in this part?
From my understa... | 99 | Stuck in "Resolving data files..."
### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going... | [
-0.20949207246303558,
0.16295254230499268,
-0.089963898062706,
0.41622066497802734,
0.1465522199869156,
0.10716231912374496,
0.29013460874557495,
0.4450823664665222,
-0.0868699848651886,
0.10743390768766403,
0.1154012456536293,
0.3833845555782318,
0.2073964923620224,
-0.2878904342651367,
... |
https://github.com/huggingface/datasets/issues/6359 | Stuck in "Resolving data files..." | Furthermore, what's my current workaround about this problem? Should I save it by `save_to_disk()` and load dataset through `load_from_disk`? | ### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going on in this part?
From my understa... | 19 | Stuck in "Resolving data files..."
### Describe the bug
I have an image dataset with 300k images, the size of image is 768 * 768.
When I run `dataset = load_dataset("imagefolder", data_dir="/path/to/img_dir", split='train')` in second time, it takes 50 minutes to finish "Resolving data files" part, what's going... | [
-0.2394726723432541,
-0.006857842206954956,
-0.12425394356250763,
0.3820541501045227,
0.29293787479400635,
0.18949264287948608,
0.2625264823436737,
0.4045516550540924,
-0.05470214784145355,
0.03535817563533783,
0.22675296664237976,
0.37057727575302124,
0.1320248246192932,
-0.19226370751857... |
https://github.com/huggingface/datasets/issues/6358 | Mounting datasets cache fails due to absolute paths. | You may be able to make it work by tweaking some environment variables, such as [`HF_HOME`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/environment_variables#hfhome) or [`HF_DATASETS_CACHE`](https://huggingface.co/docs/datasets/cache#cache-directory). | ### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some data
2. Mount the dataset folder into a docker contain... | 18 | Mounting datasets cache fails due to absolute paths.
### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some ... | [
-0.00010101497173309326,
0.028453528881072998,
0.08273068070411682,
0.13505098223686218,
0.2485959678888321,
0.023464784026145935,
0.11947569251060486,
0.21675466001033783,
0.04908518120646477,
0.09170399606227875,
-0.07647697627544403,
0.08717944473028183,
-0.2398335188627243,
-0.33649626... |
https://github.com/huggingface/datasets/issues/6358 | Mounting datasets cache fails due to absolute paths. | > You may be able to make it work by tweaking some environment variables, such as [`HF_HOME`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/environment_variables#hfhome) or [`HF_DATASETS_CACHE`](https://huggingface.co/docs/datasets/cache#cache-directory).
I am already doing this. The problem ... | ### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some data
2. Mount the dataset folder into a docker contain... | 78 | Mounting datasets cache fails due to absolute paths.
### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some ... | [
0.053802523761987686,
0.05613522231578827,
0.08096805214881897,
0.06797809898853302,
0.24285449087619781,
-0.015263363718986511,
0.10982007533311844,
0.2052084505558014,
0.030880846083164215,
0.05656001716852188,
-0.1255323439836502,
0.11960484832525253,
-0.24449746310710907,
-0.3772183954... |
https://github.com/huggingface/datasets/issues/6358 | Mounting datasets cache fails due to absolute paths. | I'm unable to reproduce this with the cache
```bash
export HF_CACHE=$PWD/hf_cache
python -c "import datasets; datasets.load_dataset('imdb')"
```
imported inside a dummy container that is built from
```bash
FROM python:3.9
WORKDIR /usr/src/app
RUN pip install datasets
COPY ./hf_cache ./hf_cache
ENV HF... | ### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some data
2. Mount the dataset folder into a docker contain... | 73 | Mounting datasets cache fails due to absolute paths.
### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some ... | [
0.013612482696771622,
0.2874358296394348,
0.03356706723570824,
0.1214243620634079,
0.17181260883808136,
0.09251292794942856,
0.31584393978118896,
0.2463112771511078,
0.07502943277359009,
0.01845831423997879,
0.024602744728326797,
0.11198750883340836,
-0.14733338356018066,
-0.64198559522628... |
https://github.com/huggingface/datasets/issues/6358 | Mounting datasets cache fails due to absolute paths. | @mariosasko Same problem: the absolute paths written into the cache still have the old cache directory. Like:
{'bytes': None, 'path': 'E:\\work-20240321\\datasets\\downloads\\extracted\\9752883596854dc57e01c74cc3f494b2ba63754dadd9e77f9d1932deddbd2273\\58f33a03-026f-4adc-b69f-b89d16b9f35a.webp'}
When I move this ... | ### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some data
2. Mount the dataset folder into a docker contain... | 58 | Mounting datasets cache fails due to absolute paths.
### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some ... | [
0.011259403079748154,
0.37163111567497253,
0.024076316505670547,
0.03639822453260422,
0.23385226726531982,
0.05079390108585358,
0.23201219737529755,
0.22075273096561432,
-0.07462278008460999,
-0.022126778960227966,
-0.0031440728344023228,
0.18851961195468903,
-0.21793341636657715,
-0.71697... |
https://github.com/huggingface/datasets/issues/6358 | Mounting datasets cache fails due to absolute paths. | Sorry, the reply on this thread escaped my attention. The problem with @mariosasko's attempted reproduction is the absolute path `./hf_cache` is the same in the host system and the docker container, so naturally the paths would be correct. Modifying the docker image as below should reproduce the error...
```
FROM ... | ### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some data
2. Mount the dataset folder into a docker contain... | 98 | Mounting datasets cache fails due to absolute paths.
### Describe the bug
Creating a datasets cache and mounting this into, for example, a docker container, renders the data unreadable due to absolute paths written into the cache.
### Steps to reproduce the bug
1. Create a datasets cache by downloading some ... | [
-0.03243767470121384,
0.3068828284740448,
0.026575930416584015,
0.028484337031841278,
0.20578259229660034,
0.03505914658308029,
0.24988776445388794,
0.27949628233909607,
0.05382830277085304,
0.05413994938135147,
0.043213509023189545,
0.14124047756195068,
-0.19221186637878418,
-0.6428014039... |
https://github.com/huggingface/datasets/issues/6354 | `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` | I am having issues as well with this.
However, the error I am getting is :
`RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more information, see SPA... | ### Describe the bug
Looks like `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` if I'm not missing anything.
Also, returns not consistent error messages, which probably depend on the nondeterministic order of worker executions
Some exampes I've encountered:
```
File "/l... | 62 | `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader`
### Describe the bug
Looks like `IterableDataset.from_spark` does not support multiple workers in pytorch `Dataloader` if I'm not missing anything.
Also, returns not consistent error messages, which probably depend on the nonde... | [
-0.287352055311203,
-0.16247232258319855,
-0.0674358606338501,
0.5066514015197754,
-0.03184514492750168,
-0.3001956045627594,
0.7239212393760681,
-0.012372933328151703,
-0.012353291735053062,
0.030812695622444153,
0.00817926973104477,
0.44511735439300537,
-0.0035252394154667854,
0.01594754... |
https://github.com/huggingface/datasets/issues/6353 | load_dataset save_to_disk load_from_disk error | I'm using the latest datasets and fsspec , but still got this error!
datasets : Version: 2.13.0
fsspec Version: 2023.10.0
```
File "/home/guoby/app/Anaconda3-2021.05/envs/news/lib/python3.8/site-packages/datasets/load.py", line 1892, in load_from_disk
return DatasetDict.load_from_disk(dataset_path, ke... | ### Describe the bug
datasets version: 2.10.1
I `load_dataset `and `save_to_disk` sucessfully on windows10( **and I `load_from_disk(/LLM/data/wiki)` succcesfully on windows10**), and I copy the dataset `/LLM/data/wiki`
into a ubuntu system, but when I `load_from_disk(/LLM/data/wiki)` on ubuntu, something weird ha... | 83 | load_dataset save_to_disk load_from_disk error
### Describe the bug
datasets version: 2.10.1
I `load_dataset `and `save_to_disk` sucessfully on windows10( **and I `load_from_disk(/LLM/data/wiki)` succcesfully on windows10**), and I copy the dataset `/LLM/data/wiki`
into a ubuntu system, but when I `load_from_dis... | [
-0.30200204253196716,
0.007541432976722717,
0.07424837350845337,
0.3547016978263855,
0.3853200078010559,
0.19839993119239807,
0.3081058859825134,
0.09688109159469604,
0.03803102299571037,
0.08450604230165482,
-0.020637651905417442,
0.3757514953613281,
0.020783403888344765,
0.05820037424564... |
https://github.com/huggingface/datasets/issues/6352 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.") | +1
```
Found cached dataset csv (file:///home/ubuntu/.cache/huggingface/datasets/theSquarePond___csv/theSquarePond--XXXXX-bbf0a8365d693d2c/0.0.0/eea64c71ca8b46dd3f537ed218fc9bf495d5707789152eb2764f5c78fa66d59d)
---------------------------------------------------------------------------
NotImplementedError ... | I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune_llm/lib/python3.9/site-packages/datasets/load.py", line 1804, in load_dataset
ds = builder_instance.as_dataset(split=split, verific... | 183 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune... | [
-0.2605902850627899,
-0.20326261222362518,
-0.04139673337340355,
0.2912046015262604,
0.2911195158958435,
0.308462530374527,
0.2381640374660492,
0.4173070788383484,
0.42362433671951294,
-0.02376396954059601,
0.1007637083530426,
0.09992359578609467,
-0.0672031044960022,
-0.000481255352497100... |
https://github.com/huggingface/datasets/issues/6352 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.") | +1
```
Found cached dataset csv ([file://C:/Users/Shady/.cache/huggingface/datasets/knkarthick___csv/knkarthick--dialogsum-cd36827d3490488d/0.0.0/6954658bab30a358235fa864b05cf819af0e179325c740e4bc853bcc7ec513e1](file:///C:/Users/Shady/.cache/huggingface/datasets/knkarthick___csv/knkarthick--dialogsum-cd36827d349048... | I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune_llm/lib/python3.9/site-packages/datasets/load.py", line 1804, in load_dataset
ds = builder_instance.as_dataset(split=split, verific... | 175 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune... | [
-0.2221677154302597,
-0.21753457188606262,
-0.05269873887300491,
0.3149648904800415,
0.2889442443847656,
0.30626943707466125,
0.2462483048439026,
0.4402700960636139,
0.4070063531398773,
-0.022960200905799866,
0.0835910364985466,
0.12875190377235413,
-0.07824687659740448,
0.0178323481231927... |
https://github.com/huggingface/datasets/issues/6352 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.") | This error stems from a breaking change in `fsspec`. It has been fixed in the latest `datasets` release (`2.14.6`). Updating the installation with `pip install -U datasets` should fix the issue.
| I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune_llm/lib/python3.9/site-packages/datasets/load.py", line 1804, in load_dataset
ds = builder_instance.as_dataset(split=split, verific... | 31 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune... | [
-0.3686904311180115,
-0.10481403768062592,
0.0012889057397842407,
0.19462135434150696,
0.27150213718414307,
0.0910445973277092,
0.062022943049669266,
0.3505299985408783,
0.38558274507522583,
0.036840327084064484,
0.15493632853031158,
0.20195272564888,
-0.0501236766576767,
0.288500994443893... |
https://github.com/huggingface/datasets/issues/6352 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.") | > Which version of `fsspec` and OS are you using ?
`fsspec-2023.10.0` and Windows 10, guess fsspec version too old... | I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune_llm/lib/python3.9/site-packages/datasets/load.py", line 1804, in load_dataset
ds = builder_instance.as_dataset(split=split, verific... | 20 | Error loading wikitext data raise NotImplementedError(f"Loading a dataset cached in a {type(self._fs).__name__} is not supported.")
I was trying to load the wiki dataset, but i got this error
traindata = load_dataset('wikitext', 'wikitext-2-raw-v1', split='train')
File "/home/aelkordy/.conda/envs/prune... | [
-0.3441484570503235,
-0.22284260392189026,
-0.025703147053718567,
0.29061275720596313,
0.32129019498825073,
0.1246219351887703,
0.11653044819831848,
0.2996569871902466,
0.4202099144458771,
0.058271002024412155,
0.10787539184093475,
0.12942950427532196,
-0.047553956508636475,
0.318003147840... |
https://github.com/huggingface/datasets/issues/6350 | Different objects are returned from calls that should be returning the same kind of object. | `load_dataset` returns a `DatasetDict` object unless `split` is defined, in which case it returns a `Dataset` (or a list of datasets if `split` is a list). We've discussed dropping `DatasetDict` from the API in https://github.com/huggingface/datasets/issues/5189 to always return the same type in `load_dataset` and sup... | ### Describe the bug
1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]')
2. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir)
The only difference I would expect these cal... | 82 | Different objects are returned from calls that should be returning the same kind of object.
### Describe the bug
1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]')
2. dataset = load_dataset("togethercomputer/RedPajama-Data-... | [
0.06545893847942352,
-0.35832342505455017,
-0.04736258089542389,
0.5416802763938904,
0.15500493347644806,
-0.27208203077316284,
0.2597041428089142,
0.1721973568201065,
0.10662184655666351,
0.15586799383163452,
-0.15613964200019836,
0.3137839734554291,
-0.04439723119139671,
0.36528387665748... |
https://github.com/huggingface/datasets/issues/6350 | Different objects are returned from calls that should be returning the same kind of object. | > `load_dataset` returns a `DatasetDict` object unless `split` is defined, in which case it returns a `Dataset` (or a list of datasets if `split` is a list). We've discussed dropping `DatasetDict` from the API in #5189 to always return the same type in `load_dataset` and support datasets without (explicit) splits. IIRC... | ### Describe the bug
1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]')
2. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir)
The only difference I would expect these cal... | 153 | Different objects are returned from calls that should be returning the same kind of object.
### Describe the bug
1. dataset = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", cache_dir=training_args.cache_dir, split='train[:1%]')
2. dataset = load_dataset("togethercomputer/RedPajama-Data-... | [
0.06662899255752563,
-0.18669447302818298,
-0.08955490589141846,
0.5604850649833679,
0.058910273015499115,
-0.2986443340778351,
0.28418490290641785,
0.21379871666431427,
0.12141832709312439,
0.16319361329078674,
-0.01704932190477848,
0.4322667717933655,
-0.04269428178668022,
0.269218444824... |
https://github.com/huggingface/datasets/issues/6349 | Can't load ds = load_dataset("imdb") | I'm unable to reproduce this error. The server hosting the files may have been down temporarily, so try again. | ### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",download_mode="force_redownload")` as we... | 19 | Can't load ds = load_dataset("imdb")
### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",d... | [
-0.3720936179161072,
0.03497987985610962,
-0.05937010422348976,
0.5213472247123718,
0.4125431180000305,
0.14905023574829102,
0.34063559770584106,
0.12810684740543365,
0.6659700870513916,
0.07853175699710846,
-0.1272825449705124,
0.14698426425457,
-0.03618498519062996,
0.06833238154649734,
... |
https://github.com/huggingface/datasets/issues/6349 | Can't load ds = load_dataset("imdb") | I am getting the following error:
Env: Python3.10
datasets: 2.10.1
Linux: Amazon Linux2
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instanc... | ### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",download_mode="force_redownload")` as we... | 134 | Can't load ds = load_dataset("imdb")
### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",d... | [
-0.3400319814682007,
0.0037206560373306274,
-0.08301885426044464,
0.5072858333587646,
0.3482735753059387,
0.13206663727760315,
0.31678318977355957,
0.05768486484885216,
0.589535653591156,
0.023881785571575165,
0.017912935465574265,
0.19759416580200195,
-0.04222168028354645,
0.1094679906964... |
https://github.com/huggingface/datasets/issues/6347 | Incorrect example code in 'Create a dataset' docs | This was fixed in https://github.com/huggingface/datasets/pull/6247. You can find the fix in the `main` version of the docs | ### Describe the bug
On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect.
Currently, examples are:
``` python
from datasets import ImageFolder
dataset = load_dataset("imagefolder", data_dir="/path/to/pokemon")
```
and
``` python... | 17 | Incorrect example code in 'Create a dataset' docs
### Describe the bug
On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect.
Currently, examples are:
``` python
from datasets import ImageFolder
dataset = load_dataset("imagefolder",... | [
0.10520043969154358,
-0.31855326890945435,
-0.024814145639538765,
0.4940106272697449,
0.09755571186542511,
-0.024004079401493073,
0.3480845093727112,
-0.0857214480638504,
0.09643733501434326,
0.09243975579738617,
-0.1433933675289154,
0.171068012714386,
-0.07363741099834442,
0.3230212032794... |
https://github.com/huggingface/datasets/issues/6333 | Support fsspec 2023.10.0 | Hi @albertvillanova @lhoestq
I believe the pull request that pins the fsspec version (https://github.com/huggingface/datasets/pull/6331) was merged by mistake. Another fix for the issue was merged on the same day an hour apart. See https://github.com/huggingface/datasets/pull/6334
I'm now having an issue in my p... | Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381 | 60 | Support fsspec 2023.10.0
Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381
Hi @albertvillanova @lhoestq
I believe the pul... | [
-0.3055720031261444,
-0.3316722512245178,
-0.06892885267734528,
0.08399096131324768,
0.1788211464881897,
-0.22656306624412537,
-0.08412584662437439,
0.24305778741836548,
-0.11625458300113678,
0.43162983655929565,
0.14748883247375488,
0.23408645391464233,
0.06694773584604263,
0.633312582969... |
https://github.com/huggingface/datasets/issues/6333 | Support fsspec 2023.10.0 | Hi @tomscholz,
Thanks for pointing this out. I think you are right.
I am doing some cross-checks and fixing it. | Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381 | 20 | Support fsspec 2023.10.0
Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381
Hi @tomscholz,
Thanks for pointing this out. I ... | [
-0.23591981828212738,
-0.333761066198349,
-0.12830422818660736,
0.07966715842485428,
0.36585384607315063,
-0.3130488991737366,
0.06623788923025131,
0.12028428912162781,
0.02420186623930931,
0.3996662497520447,
0.10560925304889679,
0.11766967922449112,
0.08764316141605377,
0.421243250370025... |
https://github.com/huggingface/datasets/issues/6333 | Support fsspec 2023.10.0 | Hi again, @tomscholz.
After a more cautious investigation, I think the pin is OK because there are other reasons for it. Chronologically:
- #6331
- #6334
- #6336
- #6337
The reason is that after version 2023.10.0, they changed again the behavior of their `glob` function. See: https://github.com/huggingface... | Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381 | 75 | Support fsspec 2023.10.0
Once root issue is fixed, remove temporary pin of fsspec < 2023.10.0 introduced by:
- #6331
Related to issue:
- #6330
As @ZachNagengast suggested, the issue might be related to:
- https://github.com/fsspec/filesystem_spec/pull/1381
Hi again, @tomscholz.
After a more cautious inv... | [
-0.22064712643623352,
-0.45426133275032043,
-0.058803774416446686,
0.1850799173116684,
0.2825242280960083,
-0.35852766036987305,
0.0379960760474205,
0.14722241461277008,
0.05086889490485191,
0.4707432985305786,
0.003786351764574647,
0.0504310205578804,
0.0073102423921227455,
0.606605231761... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | I also encountered a similar error below.
Appreciate the team could shed some light on this issue.
```
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
[/home/ubuntu/work/EveryDream2trainer/prepare_dataset.ipyn... | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 588 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https:... | [
-0.39628320932388306,
-0.05229165405035019,
0.08950150012969971,
0.22059626877307892,
0.2076960951089859,
-0.055555298924446106,
0.11532983183860779,
0.16825377941131592,
-0.1815401017665863,
0.2266598641872406,
-0.04434133321046829,
0.20201539993286133,
-0.05889022350311279,
0.46524885296... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | Thanks for reporting and for the investigation, @ZachNagengast! :hugs:
We are investigating the root cause of the issue. In the meantime, we are going to pin fsspec < 2023.10.0. | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 29 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https:... | [
-0.4481064975261688,
-0.09368028491735458,
0.0792476087808609,
0.21370616555213928,
0.2142108976840973,
-0.08358772844076157,
0.07893045991659164,
0.2109934687614441,
-0.11809469759464264,
0.23674732446670532,
-0.02385362982749939,
0.1587570756673813,
-0.07089689373970032,
0.46412703394889... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | You can also update `datasets`:
```
pip install -U datasets
```
It will also update `fsspec` to use the right version | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 21 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https:... | [
-0.48434939980506897,
-0.09176091849803925,
0.06091989204287529,
0.20084676146507263,
0.20000620186328888,
-0.06782553344964981,
0.0504738949239254,
0.21000048518180847,
-0.08580006659030914,
0.21352165937423706,
-0.019064806401729584,
0.21504388749599457,
-0.0560278594493866,
0.4682954847... |
https://github.com/huggingface/datasets/issues/6327 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)` | You can clone the `togethercomputer/RedPajama-Data-1T-Sample` repo and load the dataset with `load_dataset("path/to/cloned_repo")` to use it offline. | ### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to reproduce the bug
I've downloaded the dataset and save it to the cache dir in advance. My hope is loadi... | 16 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)`
### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to re... | [
-0.3336906135082245,
-0.10643303394317627,
0.10457676649093628,
0.33565467596054077,
0.19966669380664825,
0.007022768259048462,
0.2094419002532959,
0.368282288312912,
0.07302562892436981,
0.0012070611119270325,
0.15766353905200958,
0.28006258606910706,
-0.20167630910873413,
-0.123002327978... |
https://github.com/huggingface/datasets/issues/6327 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)` | @mariosasko Thank you for your kind reply! I'll try it as a workaround.
Does that mean that currently it's not supported to simply load with a short name? | ### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to reproduce the bug
I've downloaded the dataset and save it to the cache dir in advance. My hope is loadi... | 28 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)`
### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to re... | [
-0.3336906135082245,
-0.10643303394317627,
0.10457676649093628,
0.33565467596054077,
0.19966669380664825,
0.007022768259048462,
0.2094419002532959,
0.368282288312912,
0.07302562892436981,
0.0012070611119270325,
0.15766353905200958,
0.28006258606910706,
-0.20167630910873413,
-0.123002327978... |
https://github.com/huggingface/datasets/issues/6327 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)` | It is, but manually downloading repo files to the cache can easily lead to failure (the HF cache is not meant to be modified by a user besides deleting the files 🙂), as in your case. Hence, the clone + `load_dataset("path/to/cloned_repo")` workflow should be used instead. | ### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to reproduce the bug
I've downloaded the dataset and save it to the cache dir in advance. My hope is loadi... | 46 | FileNotFoundError when trying to load the downloaded dataset with `load_dataset(..., streaming=True)`
### Describe the bug
Hi, I'm trying to load the dataset `togethercomputer/RedPajama-Data-1T-Sample` with `load_dataset` in streaming mode, i.e., `streaming=True`, but `FileNotFoundError` occurs.
### Steps to re... | [
-0.3336906135082245,
-0.10643303394317627,
0.10457676649093628,
0.33565467596054077,
0.19966669380664825,
0.007022768259048462,
0.2094419002532959,
0.368282288312912,
0.07302562892436981,
0.0012070611119270325,
0.15766353905200958,
0.28006258606910706,
-0.20167630910873413,
-0.123002327978... |
https://github.com/huggingface/datasets/issues/6324 | Conversion to Arrow fails due to wrong type heuristic | Unlike Pandas, Arrow is strict with types, so converting the problematic strings to ints (or ints to strings) to ensure all the values have the same type is the only fix.
JSON support has been requested in Arrow [here](https://github.com/apache/arrow/issues/32538), but I don't expect this to be implemented soon.
... | ### Describe the bug
I have a list of dictionaries with valid/JSON-serializable values.
One key is the denominator for a paragraph. In 99.9% of cases its a number, but there are some occurences of '1a', '2b' and so on.
If trying to convert this list to a dataset with `Dataset.from_list()`, I always get
`ArrowI... | 97 | Conversion to Arrow fails due to wrong type heuristic
### Describe the bug
I have a list of dictionaries with valid/JSON-serializable values.
One key is the denominator for a paragraph. In 99.9% of cases its a number, but there are some occurences of '1a', '2b' and so on.
If trying to convert this list to a d... | [
-0.13682858645915985,
-0.0849025696516037,
0.04728252813220024,
0.1811200976371765,
0.4715588092803955,
-0.02025952935218811,
0.2181389331817627,
0.3003547191619873,
-0.2322428673505783,
-0.14563103020191193,
0.018225114792585373,
0.5438292622566223,
-0.03047063946723938,
-0.01941782981157... |
https://github.com/huggingface/datasets/issues/6324 | Conversion to Arrow fails due to wrong type heuristic | > Unlike Pandas, Arrow is strict with types, so converting the problematic strings to ints (or ints to strings) to ensure all the values have the same type is the only fix.
>
> JSON support has been requested in Arrow [here](https://github.com/apache/arrow/issues/32538), but I don't expect this to be implemented soo... | ### Describe the bug
I have a list of dictionaries with valid/JSON-serializable values.
One key is the denominator for a paragraph. In 99.9% of cases its a number, but there are some occurences of '1a', '2b' and so on.
If trying to convert this list to a dataset with `Dataset.from_list()`, I always get
`ArrowI... | 121 | Conversion to Arrow fails due to wrong type heuristic
### Describe the bug
I have a list of dictionaries with valid/JSON-serializable values.
One key is the denominator for a paragraph. In 99.9% of cases its a number, but there are some occurences of '1a', '2b' and so on.
If trying to convert this list to a d... | [
-0.12485140562057495,
-0.08872374147176743,
0.048213306814432144,
0.1975042223930359,
0.4978136420249939,
-0.03315114974975586,
0.2346266508102417,
0.3139345049858093,
-0.23804928362369537,
-0.1408151537179947,
0.036657921969890594,
0.5494911074638367,
-0.01877802237868309,
-0.018783397972... |
https://github.com/huggingface/datasets/issues/6320 | Dataset slice splits can't load training and validation at the same time | The expression "train+test" concatenates the splits.
The individual splits as separate datasets can be obtained as follows:
```python
train_ds, test_ds = load_dataset("<dataset_name>", split=["train", "test"])
train_10pct_ds, test_10pct_ds = load_dataset("<dataset_name>", split=["train[:10%]", "test[:%10]"])
``` | ### Describe the bug
According to the [documentation](https://huggingface.co/docs/datasets/v2.14.5/loading#slice-splits) is should be possible to run the following command:
`train_test_ds = datasets.load_dataset("bookcorpus", split="train+test")`
to load the train and test sets from the dataset.
However ex... | 31 | Dataset slice splits can't load training and validation at the same time
### Describe the bug
According to the [documentation](https://huggingface.co/docs/datasets/v2.14.5/loading#slice-splits) is should be possible to run the following command:
`train_test_ds = datasets.load_dataset("bookcorpus", split="train+... | [
-0.1274546980857849,
-0.10093508660793304,
-0.006819600239396095,
0.2601417899131775,
0.14704042673110962,
0.0743088349699974,
0.36141279339790344,
0.2438858300447464,
-0.18307751417160034,
-0.059660643339157104,
-0.34035390615463257,
0.15651771426200867,
-0.009768162854015827,
0.590785622... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | Hi! Instead of processing a single example at a time, you should use the batched `map` for the best performance (with `num_proc=1`) - the fast tokenizers can process a batch's samples in parallel in that scenario.
E.g., the following code in Colab takes an hour to complete:
```python
# !pip install datasets transf... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 73 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.6239004135131836,
0.08061408996582031,
0.04081982001662254,
0.1330556571483612,
0.13826404511928558,
0.09867329150438309,
0.29760390520095825,
0.24050724506378174,
-0.13583961129188538,
-0.11661165952682495,
-0.06945446133613586,
0.7371477484703064,
-0.0846540704369545,
-0.3263972997665... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | Batched is far worse. A single batch of 1000 took hours and that was only 1%
On Thu, Oct 19, 2023, 2:26 PM Mario Šaško ***@***.***> wrote:
> Hi! You should use the batched map for the best performance (with
> num_proc=1) - the fast tokenizers can process a batch's samples in
> parallel.
>
> E.g., the follow... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 125 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.6426339745521545,
0.04849672317504883,
0.04157610610127449,
0.15280389785766602,
0.1293145716190338,
0.12522852420806885,
0.2616434097290039,
0.26831841468811035,
-0.0994161069393158,
-0.12657509744167328,
-0.08454816043376923,
0.7016134262084961,
-0.09337522089481354,
-0.37069940567016... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | Which specific version of datasets are you using?
What is the architecture of your colab setup? Ram? Cores? OS?
On Thu, Oct 19, 2023, 2:27 PM pensive introvert ***@***.***>
wrote:
> Batched is far worse. A single batch of 1000 took hours and that was only
> 1%
>
>
> On Thu, Oct 19, 2023, 2:26 PM Mario Š... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 163 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.6481049656867981,
0.1093885749578476,
0.024797633290290833,
0.10106495022773743,
0.08798329532146454,
0.12319757789373398,
0.27200227975845337,
0.2651054859161377,
-0.12835367023944855,
-0.05704154074192047,
-0.05525711178779602,
0.6183359026908875,
-0.12706321477890015,
-0.236743330955... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | from functools import partial
import transformers
from datasets import load_dataset, concatenate_datasets, load_from_disk
model_name_or_path="/opt/data/data/daryl149/llama-2-7b-chat-hf"
output_dir="/opt/data/data/LongLoRA/checkpoints"
cache_dir="/opt/data/data/LongLoRA/cache"
model_max_length=16384
IGNORE_IN... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 170 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.616814374923706,
0.08000026643276215,
0.05563323572278023,
0.20444926619529724,
0.2958586812019348,
0.12437405437231064,
0.24875850975513458,
0.32366257905960083,
-0.1093851774930954,
-0.13184751570224762,
-0.1938907504081726,
0.6695700883865356,
-0.06927613914012909,
-0.416785508394241... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | I changed the tokenizer to one without "Fast suffix, and something changed.
The fraction, although still slowed a lot at 80% was able to get over the
finish line of 100%
I have to do more testng, see if the whole set can be processed
On Thu, Oct 19, 2023 at 3:03 PM pensive introvert <
***@***.***> wrote:
... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 290 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5819020867347717,
0.1289406716823578,
0.0338994599878788,
0.1653226912021637,
0.20738402009010315,
0.16037055850028992,
0.23931463062763214,
0.2981029748916626,
-0.0631772056221962,
-0.18398551642894745,
-0.10214296728372574,
0.6148467063903809,
-0.09060708433389664,
-0.3609416484832763... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | So, using LlamaTokenizerFast was the problem. Changing it to LlamaTokenizer
fixed things,
On Thu, Oct 19, 2023 at 4:04 PM pensive introvert <
***@***.***> wrote:
> I changed the tokenizer to one without "Fast suffix, and something
> changed. The fraction, although still slowed a lot at 80% was able to get
> o... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 327 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5650827884674072,
0.09585903584957123,
0.027538016438484192,
0.1539459228515625,
0.2159012407064438,
0.12963399291038513,
0.1675928235054016,
0.3100391626358032,
-0.058931659907102585,
-0.16628910601139069,
-0.0986693724989891,
0.6297377943992615,
-0.07801163196563721,
-0.36615476012229... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | Indeed, the tokenizer is super slow. Perhaps @ArthurZucker knows the reason why.
([This](https://colab.research.google.com/drive/1VgeurX-4Fl2X6aBQTwh_X4kuQKZ6K9L1?usp=sharing) simplified Colab can be used to reproduce the behavior) | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 22 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5410917401313782,
0.13085025548934937,
0.02908456325531006,
0.10091862082481384,
0.17967469990253448,
0.05452760308980942,
0.20677468180656433,
0.29399803280830383,
-0.11034286022186279,
-0.12849880754947662,
-0.007839667610824108,
0.5993678569793701,
-0.07884654402732849,
-0.3236668109... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | same issue here
sample to reproduce: https://github.com/philschmid/document-ai-transformers/blob/main/training/donut_sroie.ipynb
with following map line
https://github.com/philschmid/document-ai-transformers/blob/main/training/donut_sroie.ipynb
If I directly iterate over the dataset and call the mapping method, i... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 65 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5472962260246277,
0.10284571349620819,
0.048736561089754105,
0.10942547023296356,
0.15640124678611755,
0.11435630172491074,
0.3405648171901703,
0.3313934803009033,
-0.005229780450463295,
-0.20240150392055511,
-0.09187207370996475,
0.5996779203414917,
0.029872702434659004,
-0.36817768216... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | @ewfian
> If I directly iterate over the dataset and call the mapping method, it is very fast
`Dataset.map` must also convert the images into bytes to write them to an Arrow file (the write itself takes some time, too).
You can make the `map` faster by manually converting the images into an "arrow-compatible... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 111 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5075655579566956,
0.08682601153850555,
0.024711739271879196,
0.1470145881175995,
0.13376808166503906,
0.17092403769493103,
0.23593094944953918,
0.40974125266075134,
-0.07565194368362427,
-0.19754506647586823,
-0.0014710905961692333,
0.6998307704925537,
-0.0015345802530646324,
-0.3838915... |
https://github.com/huggingface/datasets/issues/6319 | Datasets.map is severely broken | The problem I had was to do with map using fork and copying locks from the
parent process in acquired state. I ended up changing the context to use
forkserver instead.
On Wed, Nov 29, 2023, 10:04 PM Mario Šaško ***@***.***> wrote:
> @ewfian <https://github.com/ewfian>
>
> If I directly iterate over the data... | ### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end one process appears to be doing s... | 208 | Datasets.map is severely broken
### Describe the bug
Regardless of how many cores I used, I have 16 or 32 threads, map slows down to a crawl at around 80% done, lingers maybe until 97% extremely slowly and NEVER finishes the job. It just hangs.
After watching this for 27 hours I control-C out of it. Until the end... | [
-0.5738915801048279,
0.08227013051509857,
0.013978973031044006,
0.1817040741443634,
0.16029150784015656,
0.1183599904179573,
0.19462908804416656,
0.38573363423347473,
-0.019563358277082443,
-0.21568922698497772,
-0.020148243755102158,
0.6655285358428955,
-0.05103825777769089,
-0.4103527665... |
https://github.com/huggingface/datasets/issues/6317 | sentiment140 dataset unavailable | We have opened an issue in the corresponding Hub dataset: https://huggingface.co/datasets/sentiment140/discussions/3
Let's continue the discussion there. | ### Describe the bug
loading the dataset using load_dataset("sentiment140") returns the following error
ConnectionError: Couldn't reach http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip (error 403)
### Steps to reproduce the bug
Run the following code (version should not matter).
```
from data... | 16 | sentiment140 dataset unavailable
### Describe the bug
loading the dataset using load_dataset("sentiment140") returns the following error
ConnectionError: Couldn't reach http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip (error 403)
### Steps to reproduce the bug
Run the following code (version sh... | [
-0.36286142468452454,
0.09124588966369629,
-0.06191832944750786,
0.33838099241256714,
0.03561168909072876,
0.05036896467208862,
0.032025910913944244,
0.3190338909626007,
0.07944399118423462,
0.15020957589149475,
-0.22294215857982635,
-0.07228591293096542,
0.09144505858421326,
0.26312017440... |
https://github.com/huggingface/datasets/issues/6311 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146 | Thanks for reporting! We've spotted the bugs with the `array.values` handling and are fixing them in https://github.com/huggingface/datasets/pull/6283 (should be part of the next release). | ### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.features import Sequence, Value
def add_new_path(example):
example["ais_bbox"] =... | 24 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146
### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.fe... | [
-0.2292919158935547,
-0.11489831656217575,
-0.023203877732157707,
0.2161572426557541,
0.52309250831604,
0.17112043499946594,
0.4404307007789612,
0.480095773935318,
0.3566000461578369,
0.00043483078479766846,
0.3617156744003296,
0.27310362458229065,
-0.14019718766212463,
-0.0546885728836059... |
https://github.com/huggingface/datasets/issues/6311 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146 | > Thanks for reporting! We've spotted the bugs with the `array.values` handling and are fixing them in #6283 (should be part of the next release).
i encounter another exception while cast_column to type `Sequence(feature={"points": Array2D(shape=(-1, 2), dtype="int64"), "label": ClassLabel(num_classes=num_classes, n... | ### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.features import Sequence, Value
def add_new_path(example):
example["ais_bbox"] =... | 440 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146
### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.fe... | [
-0.2292919158935547,
-0.11489831656217575,
-0.023203877732157707,
0.2161572426557541,
0.52309250831604,
0.17112043499946594,
0.4404307007789612,
0.480095773935318,
0.3566000461578369,
0.00043483078479766846,
0.3617156744003296,
0.27310362458229065,
-0.14019718766212463,
-0.0546885728836059... |
https://github.com/huggingface/datasets/issues/6311 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146 | `Incompatible storage type for extension<arrow.py_extension_type<Array2DExtensionType>>: expected list<item: list<item: double>>, got list<item: double>`
if i change `Array2D(shape=(-1, 2), dtype="int64")` to `Sequence(Value("int64"))` , every thing goes well. but my data is 2D int list | ### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.features import Sequence, Value
def add_new_path(example):
example["ais_bbox"] =... | 32 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146
### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.fe... | [
-0.2292919158935547,
-0.11489831656217575,
-0.023203877732157707,
0.2161572426557541,
0.52309250831604,
0.17112043499946594,
0.4404307007789612,
0.480095773935318,
0.3566000461578369,
0.00043483078479766846,
0.3617156744003296,
0.27310362458229065,
-0.14019718766212463,
-0.0546885728836059... |
https://github.com/huggingface/datasets/issues/6311 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146 | i test Sequence(ClassLabel) is ok if one column is label list. but it is not ok in nested column such as `Sequence(feature= {"points": Sequence(Value("int32")), "label": Sequence(ClassLabel(num_classes....)))`. in this case i need override ClassLabels. encode_example as i given above. | ### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.features import Sequence, Value
def add_new_path(example):
example["ais_bbox"] =... | 38 | cast_column to Sequence with length=4 occur exception raise in datasets/table.py:2146
### Describe the bug
i load a dataset from local csv file which has 187383612 examples, then use `map` to generate new columns for test.
here is my code :
```
import os
from datasets import load_dataset
from datasets.fe... | [
-0.2292919158935547,
-0.11489831656217575,
-0.023203877732157707,
0.2161572426557541,
0.52309250831604,
0.17112043499946594,
0.4404307007789612,
0.480095773935318,
0.3566000461578369,
0.00043483078479766846,
0.3617156744003296,
0.27310362458229065,
-0.14019718766212463,
-0.0546885728836059... |
https://github.com/huggingface/datasets/issues/6308 | module 'resource' has no attribute 'error' | This (Windows) issue was fixed in `fsspec` in https://github.com/fsspec/filesystem_spec/pull/1275. So, to avoid the error, update the `fsspec` installation with `pip install -U fsspec`. | ### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\arrow... | 23 | module 'resource' has no attribute 'error'
### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda... | [
-0.3986870348453522,
-0.19148093461990356,
-0.1268882006406784,
0.32005441188812256,
0.6016739010810852,
-0.017334021627902985,
0.11214491724967957,
0.3475210964679718,
-0.19669869542121887,
0.06287278980016708,
0.03923971951007843,
0.44196373224258423,
-0.10753018409013748,
-0.14714841544... |
https://github.com/huggingface/datasets/issues/6308 | module 'resource' has no attribute 'error' | > This (Windows) issue was fixed in `fsspec` in [fsspec/filesystem_spec#1275](https://github.com/fsspec/filesystem_spec/pull/1275). So, to avoid the error, update the `fsspec` installation with `pip install -U fsspec`.
after I run `pip install -U fsspec`
it occurs a new error:
```
ERROR: pip's dependency resolv... | ### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\arrow... | 77 | module 'resource' has no attribute 'error'
### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda... | [
-0.3986870348453522,
-0.19148093461990356,
-0.1268882006406784,
0.32005441188812256,
0.6016739010810852,
-0.017334021627902985,
0.11214491724967957,
0.3475210964679718,
-0.19669869542121887,
0.06287278980016708,
0.03923971951007843,
0.44196373224258423,
-0.10753018409013748,
-0.14714841544... |
https://github.com/huggingface/datasets/issues/6308 | module 'resource' has no attribute 'error' | The `fsspec<2023.9.0` upper bound will be removed in the next release. The `ResourceError` fix is also present in version 2023.6.0, so use that version in the meantime (`pip install fsspec==2023.6.0`). | ### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\arrow... | 30 | module 'resource' has no attribute 'error'
### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda... | [
-0.3986870348453522,
-0.19148093461990356,
-0.1268882006406784,
0.32005441188812256,
0.6016739010810852,
-0.017334021627902985,
0.11214491724967957,
0.3475210964679718,
-0.19669869542121887,
0.06287278980016708,
0.03923971951007843,
0.44196373224258423,
-0.10753018409013748,
-0.14714841544... |
https://github.com/huggingface/datasets/issues/6308 | module 'resource' has no attribute 'error' | > The `fsspec<2023.9.0` upper bound will be removed in the next release. The `ResourceError` fix is also present in version 2023.6.0, so use that version in the meantime (`pip install fsspec==2023.6.0`).
thanks for reply! | ### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\arrow... | 34 | module 'resource' has no attribute 'error'
### Describe the bug
just run import:
`from datasets import load_dataset`
and then:
```
File "C:\ProgramData\anaconda3\envs\py310\lib\site-packages\datasets\__init__.py", line 22, in <module>
from .arrow_dataset import Dataset
File "C:\ProgramData\anaconda... | [
-0.3986870348453522,
-0.19148093461990356,
-0.1268882006406784,
0.32005441188812256,
0.6016739010810852,
-0.017334021627902985,
0.11214491724967957,
0.3475210964679718,
-0.19669869542121887,
0.06287278980016708,
0.03923971951007843,
0.44196373224258423,
-0.10753018409013748,
-0.14714841544... |
https://github.com/huggingface/datasets/issues/6306 | pyinstaller : OSError: could not get source code | more information:
```
File "text2vec\__init__.py", line 8, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02... | ### Describe the bug
I ran a package with pyinstaller and got the following error:
### Steps to reproduce the bug
```
...
File "datasets\__init__.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_an... | 232 | pyinstaller : OSError: could not get source code
### Describe the bug
I ran a package with pyinstaller and got the following error:
### Steps to reproduce the bug
```
...
File "datasets\__init__.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<fr... | [
-0.3243013620376587,
0.07443602383136749,
-0.07170708477497101,
0.27683454751968384,
0.45608454942703247,
-0.2089208960533142,
0.5486599802970886,
0.31559062004089355,
-0.38898351788520813,
0.24571013450622559,
0.06605983525514603,
0.40918031334877014,
-0.2875104546546936,
0.16560865938663... |
https://github.com/huggingface/datasets/issues/6306 | pyinstaller : OSError: could not get source code | > > '
>
> thanks,I solve it.it's about pyinstaller.
I encountered the same error, how to solve it? | ### Describe the bug
I ran a package with pyinstaller and got the following error:
### Steps to reproduce the bug
```
...
File "datasets\__init__.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_an... | 19 | pyinstaller : OSError: could not get source code
### Describe the bug
I ran a package with pyinstaller and got the following error:
### Steps to reproduce the bug
```
...
File "datasets\__init__.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<fr... | [
-0.3243013620376587,
0.07443602383136749,
-0.07170708477497101,
0.27683454751968384,
0.45608454942703247,
-0.2089208960533142,
0.5486599802970886,
0.31559062004089355,
-0.38898351788520813,
0.24571013450622559,
0.06605983525514603,
0.40918031334877014,
-0.2875104546546936,
0.16560865938663... |
https://github.com/huggingface/datasets/issues/6303 | Parquet uploads off-by-one naming scheme | You can find the reasoning behind this naming scheme [here](https://github.com/huggingface/transformers/pull/16343#discussion_r931182168).
This point has been raised several times, so I'd be okay with starting with `00001-` (also to be consistent with the `transformers` sharding), but I'm not sure @lhoestq agrees. | ### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/assets/1981179/3ffa2144-7c9a-446f-b521-a5e9db71... | 39 | Parquet uploads off-by-one naming scheme
### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/asse... | [
0.2461010068655014,
-0.06340612471103668,
0.08091813325881958,
0.5036107301712036,
0.0656275749206543,
-0.12215182185173035,
0.30422115325927734,
-0.0827028900384903,
-0.20878209173679352,
0.15902912616729736,
0.3500998020172119,
0.2090575397014618,
0.11546854674816132,
0.28047600388526917... |
https://github.com/huggingface/datasets/issues/6303 | Parquet uploads off-by-one naming scheme | We start at 0 in `datasets` for consistency with Apache Spark, Apache Beam, Dask and others.
Also note `transformers` isn't a good reference on this topic. I talked with the maintainers when they added shards but it was already released this way. Though we found that there is a backward-compatible way in `transforme... | ### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/assets/1981179/3ffa2144-7c9a-446f-b521-a5e9db71... | 67 | Parquet uploads off-by-one naming scheme
### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/asse... | [
0.2461010068655014,
-0.06340612471103668,
0.08091813325881958,
0.5036107301712036,
0.0656275749206543,
-0.12215182185173035,
0.30422115325927734,
-0.0827028900384903,
-0.20878209173679352,
0.15902912616729736,
0.3500998020172119,
0.2090575397014618,
0.11546854674816132,
0.28047600388526917... |
https://github.com/huggingface/datasets/issues/6303 | Parquet uploads off-by-one naming scheme | Makes sense to start at 0 for plenty of good reasons so I'm on board.
What about the second part `-of-0000X`? With single commit PR #6269 just getting merged, there was a note about issues with 100+ file edits https://github.com/huggingface/datasets/pull/6269#issuecomment-1755428581.
That would be my last remain... | ### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/assets/1981179/3ffa2144-7c9a-446f-b521-a5e9db71... | 93 | Parquet uploads off-by-one naming scheme
### Describe the bug
I noticed this numbering scheme not matching up in a different project and wanted to raise it as an issue for discussion, what is the actual proper way to have these stored?
<img width="425" alt="image" src="https://github.com/huggingface/datasets/asse... | [
0.2461010068655014,
-0.06340612471103668,
0.08091813325881958,
0.5036107301712036,
0.0656275749206543,
-0.12215182185173035,
0.30422115325927734,
-0.0827028900384903,
-0.20878209173679352,
0.15902912616729736,
0.3500998020172119,
0.2090575397014618,
0.11546854674816132,
0.28047600388526917... |
https://github.com/huggingface/datasets/issues/6302 | ArrowWriter/ParquetWriter `write` method does not increase `_num_bytes` and hence datasets not sharding at `max_shard_size` | `writer._num_bytes` is updated every `writer_batch_size`-th call to the `write` method (default `writer_batch_size` is 1000 (examples)). You should be able to see the update by passing a smaller `writer_batch_size` to the `load_dataset_builder`.
We could improve this by supporting the string `writer_batch_size` vers... | ### Describe the bug
An example from [1], does not work when limiting shards with `max_shard_size`.
Try the following example with low `max_shard_size`, such as:
```python
builder.download_and_prepare(output_dir, storage_options=storage_options, file_format="parquet", max_shard_size="10MB")
```
The reason f... | 59 | ArrowWriter/ParquetWriter `write` method does not increase `_num_bytes` and hence datasets not sharding at `max_shard_size`
### Describe the bug
An example from [1], does not work when limiting shards with `max_shard_size`.
Try the following example with low `max_shard_size`, such as:
```python
builder.downlo... | [
-0.21688030660152435,
-0.3292511999607086,
0.040966447442770004,
0.35702747106552124,
-0.010449700057506561,
-0.27933287620544434,
0.17836816608905792,
-0.0648273378610611,
-0.11833849549293518,
0.050891727209091187,
0.21760523319244385,
0.06464846432209015,
-0.09433761984109879,
0.3187028... |
https://github.com/huggingface/datasets/issues/6294 | IndexError: Invalid key is out of bounds for size 0 despite having a populated dataset | It looks to be the same issue as the one reported in https://discuss.huggingface.co/t/indexerror-invalid-key-16-is-out-of-bounds-for-size-0.
Can you check the length of `train_dataset` before the `train_sampler = self._get_train_sampler()` (and after `_remove_unused_columns`) line? | ### Describe the bug
I am encountering an `IndexError` when trying to access data from a DataLoader which wraps around a dataset I've loaded using the `datasets` library. The error suggests that the dataset size is `0`, but when I check the length and print the dataset, it's clear that it has `1166` entries.
### Step... | 29 | IndexError: Invalid key is out of bounds for size 0 despite having a populated dataset
### Describe the bug
I am encountering an `IndexError` when trying to access data from a DataLoader which wraps around a dataset I've loaded using the `datasets` library. The error suggests that the dataset size is `0`, but when I... | [
-0.18687252700328827,
0.07448828220367432,
-0.002622341737151146,
0.4387749433517456,
0.024677205830812454,
0.019086070358753204,
0.5693432092666626,
0.3245086371898651,
0.3602715730667114,
0.28707557916641235,
0.16168469190597534,
0.13154318928718567,
-0.33575332164764404,
0.1425438225269... |
https://github.com/huggingface/datasets/issues/6292 | how to load the image of dtype float32 or float64 | Hi! Can you provide a code that reproduces the issue?
Also, which version of `datasets` are you using? You can check this by running `python -c "import datasets; print(datasets.__version__)"` inside the env. We added support for "float images" in `datasets 2.9`. | _FEATURES = datasets.Features(
{
"image": datasets.Image(),
"text": datasets.Value("string"),
},
)
The datasets builder seems only support the unit8 data. How to load the float dtype data? | 41 | how to load the image of dtype float32 or float64
_FEATURES = datasets.Features(
{
"image": datasets.Image(),
"text": datasets.Value("string"),
},
)
The datasets builder seems only support the unit8 data. How to load the float dtype data?
Hi! Can you provide a code that reproduces the... | [
-0.3456231355667114,
-0.29850059747695923,
-0.10477250814437866,
0.6033201217651367,
0.5083119869232178,
0.19768941402435303,
0.3276609778404236,
0.18763965368270874,
0.057742077857255936,
0.025699377059936523,
-0.12851518392562866,
-0.02217003144323826,
-0.14426586031913757,
0.21751561760... |
https://github.com/huggingface/datasets/issues/6290 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`) | Yea I think waiting for #6269 would be best, or branching from it. For reference, this [PR](https://github.com/LAION-AI/Discord-Scrapers/pull/2) is progressing pretty well which will do similar using the hf hub for our LAION dataset bot https://github.com/LAION-AI/Discord-Scrapers/pull/2. | ### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675... | 35 | Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
### Feature request
Have the possibility to do `ds.push_to_hub(..., append=True)`.
### Motivation
Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and
this [comment](https://huggin... | [
-0.21518024802207947,
-0.2871015667915344,
0.014854181557893753,
-0.12502898275852203,
-0.19088557362556458,
-0.23461312055587769,
-0.04710112139582634,
0.16226696968078613,
0.1339527815580368,
0.12089086323976517,
-0.12534348666667938,
0.473788857460022,
-0.1289740651845932,
0.54919511079... |
https://github.com/huggingface/datasets/issues/6288 | Dataset.from_pandas with a DataFrame of PIL.Images | A duplicate of https://github.com/huggingface/datasets/issues/4796.
We could get this for free by implementing the `Image` feature as an extension type, as shown in [this](https://colab.research.google.com/drive/1Uzm_tXVpGTwbzleDConWcNjacwO1yxE4?usp=sharing) Colab (example with UUIDs).
| Currently type inference doesn't know what to do with a Pandas Series of PIL.Image objects, though it would be nice to get a Dataset with the Image type this way | 27 | Dataset.from_pandas with a DataFrame of PIL.Images
Currently type inference doesn't know what to do with a Pandas Series of PIL.Image objects, though it would be nice to get a Dataset with the Image type this way
A duplicate of https://github.com/huggingface/datasets/issues/4796.
We could get this for free by im... | [
-0.4201357066631317,
-0.12456884235143661,
-0.008254965767264366,
0.2601349353790283,
0.02428399957716465,
0.02930574119091034,
0.4310658276081085,
0.14413626492023468,
0.020406007766723633,
0.05679570138454437,
-0.16976913809776306,
0.2837598919868469,
-0.09335252642631531,
0.357803076505... |
https://github.com/huggingface/datasets/issues/6288 | Dataset.from_pandas with a DataFrame of PIL.Images | +1 to this
Calling this line with a df that contains a PIL image (as they are returned from load_dataset)
`ds = Dataset.from_pandas(df)`
Results in this error:
`ArrowInvalid: ('Could not convert <PIL.PngImagePlugin.PngImageFile image mode=RGB size=1024x1024 at 0x2B41F2D70> with type PngImageFile: did not recognize ... | Currently type inference doesn't know what to do with a Pandas Series of PIL.Image objects, though it would be nice to get a Dataset with the Image type this way | 60 | Dataset.from_pandas with a DataFrame of PIL.Images
Currently type inference doesn't know what to do with a Pandas Series of PIL.Image objects, though it would be nice to get a Dataset with the Image type this way
+1 to this
Calling this line with a df that contains a PIL image (as they are returned from load_datas... | [
-0.39113590121269226,
-0.08419013023376465,
0.009003248065710068,
0.47536325454711914,
0.03804018348455429,
0.024845942854881287,
0.40055185556411743,
0.1446915566921234,
0.023611709475517273,
0.012867182493209839,
0.030200783163309097,
0.42527854442596436,
-0.026122398674488068,
0.3030453... |
https://github.com/huggingface/datasets/issues/6287 | map() not recognizing "text" | There is no "text" column in the `amazon_reviews_multi`, hence the `KeyError`. You can get the column names by running `dataset.column_names`. | ### Describe the bug
The [map() documentation](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.map) reads:
`
ds = ds.map(lambda x: tokenizer(x['text'], truncation=True, padding=True), batched=True)`
I have been trying to reproduce it in my code as:
`tokenizedData... | 20 | map() not recognizing "text"
### Describe the bug
The [map() documentation](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.map) reads:
`
ds = ds.map(lambda x: tokenizer(x['text'], truncation=True, padding=True), batched=True)`
I have been trying to reproduce it i... | [
-0.03713569417595863,
-0.4495868980884552,
0.08712789416313171,
0.33627527952194214,
0.29069268703460693,
0.08487576991319656,
0.42338332533836365,
-0.010057713836431503,
-0.004521019756793976,
-0.03180064260959625,
-0.08329253643751144,
0.4743609130382538,
-0.07211458683013916,
0.13524591... |
https://github.com/huggingface/datasets/issues/6285 | TypeError: expected str, bytes or os.PathLike object, not dict | You should be able to load the images by modifying the `load_dataset` call like this:
```python
dataset = load_dataset("imagefolder", data_dir="/content/datasets/PotholeDetectionYOLOv8-1")
```
The `imagefolder` builder expects the image files to be in `path/label/image_file` (e.g. .`.../train/dog/image_1.jpg`), s... | ### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datasets/PotholeDetectionYOLOv8-1/valid/",
"test": "/content/dat... | 62 | TypeError: expected str, bytes or os.PathLike object, not dict
### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datase... | [
-0.08925792574882507,
-0.10927554965019226,
0.02457590028643608,
0.3565119504928589,
0.6146429181098938,
0.0515189990401268,
0.21652664244174957,
0.3238774836063385,
0.15098141133785248,
0.20537450909614563,
0.06611388176679611,
0.4783129096031189,
-0.4957769811153412,
0.12190315872430801,... |
https://github.com/huggingface/datasets/issues/6285 | TypeError: expected str, bytes or os.PathLike object, not dict | > You should be able to load the images by modifying the `load_dataset` call like this:
>
> ```python
> dataset = load_dataset("imagefolder", data_dir="/content/datasets/PotholeDetectionYOLOv8-1")
> ```
>
> The `imagefolder` builder expects the image files to be in `path/label/image_file` (e.g. .`.../train/dog/... | ### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datasets/PotholeDetectionYOLOv8-1/valid/",
"test": "/content/dat... | 81 | TypeError: expected str, bytes or os.PathLike object, not dict
### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datase... | [
-0.08925792574882507,
-0.10927554965019226,
0.02457590028643608,
0.3565119504928589,
0.6146429181098938,
0.0515189990401268,
0.21652664244174957,
0.3238774836063385,
0.15098141133785248,
0.20537450909614563,
0.06611388176679611,
0.4783129096031189,
-0.4957769811153412,
0.12190315872430801,... |
https://github.com/huggingface/datasets/issues/6285 | TypeError: expected str, bytes or os.PathLike object, not dict | As explained in my previous comment, you need to define metadata files to load the labels or update the paths to be in the format `train/label/image` (`train- image /n -labels` is not supported by the loader). | ### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datasets/PotholeDetectionYOLOv8-1/valid/",
"test": "/content/dat... | 36 | TypeError: expected str, bytes or os.PathLike object, not dict
### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datase... | [
-0.08925792574882507,
-0.10927554965019226,
0.02457590028643608,
0.3565119504928589,
0.6146429181098938,
0.0515189990401268,
0.21652664244174957,
0.3238774836063385,
0.15098141133785248,
0.20537450909614563,
0.06611388176679611,
0.4783129096031189,
-0.4957769811153412,
0.12190315872430801,... |
https://github.com/huggingface/datasets/issues/6285 | TypeError: expected str, bytes or os.PathLike object, not dict | I downloaded my file after annotating using roboflow . It gives train-
images, labels , test- images, labels , valid- images, labels . I hope it
gives you an idea of the dataset . Please advise on this dataset
On Tue, Oct 10, 2023 at 18:12 Mario Šaško ***@***.***> wrote:
> As explained in my previous comment, ... | ### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datasets/PotholeDetectionYOLOv8-1/valid/",
"test": "/content/dat... | 125 | TypeError: expected str, bytes or os.PathLike object, not dict
### Describe the bug
my dataset is in form : train- image /n -labels
and tried the code:
```
from datasets import load_dataset
data_files = {
"train": "/content/datasets/PotholeDetectionYOLOv8-1/train/",
"validation": "/content/datase... | [
-0.08925792574882507,
-0.10927554965019226,
0.02457590028643608,
0.3565119504928589,
0.6146429181098938,
0.0515189990401268,
0.21652664244174957,
0.3238774836063385,
0.15098141133785248,
0.20537450909614563,
0.06611388176679611,
0.4783129096031189,
-0.4957769811153412,
0.12190315872430801,... |
https://github.com/huggingface/datasets/issues/6280 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64)) | Thanks for the quick response @mariosasko! I just installed your branch via `poetry add 'git+https://github.com/huggingface/datasets#fix-array_values'` and I can confirm it works on the example provided.
Follow up question for you, should `None`s be supported in these types of features as they are in others?
For... | ### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map
for rank, done, content... | 234 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/... | [
-0.014731254428625107,
-0.6136934757232666,
0.010602861642837524,
0.060643985867500305,
0.6919259428977966,
0.2248995304107666,
0.3206327557563782,
0.5348024964332581,
0.30549949407577515,
0.07003726065158844,
0.22057761251926422,
0.4219731390476227,
-0.24774019420146942,
-0.15707002580165... |
https://github.com/huggingface/datasets/issues/6280 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64)) | This part of PyArrow is buggy and inconsistent regarding features implemented across the types, so the only option is to operate on the Arrow buffer level to fix issues such as the above one. | ### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map
for rank, done, content... | 34 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/... | [
-0.014731254428625107,
-0.6136934757232666,
0.010602861642837524,
0.060643985867500305,
0.6919259428977966,
0.2248995304107666,
0.3206327557563782,
0.5348024964332581,
0.30549949407577515,
0.07003726065158844,
0.22057761251926422,
0.4219731390476227,
-0.24774019420146942,
-0.15707002580165... |
https://github.com/huggingface/datasets/issues/6280 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64)) | Ok - can you take the POC I did [here](https://github.com/huggingface/datasets/commit/15443098e9ce053943172f7ec6fce3769d7dff6e)? Happy to turn this into an actual PR but would appreciate feedback on the implementation before I take another pass! | ### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map
for rank, done, content... | 30 | Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
### Describe the bug
I have a dataset with an embedding column, when I try to map that dataset I get the following exception:
```
Traceback (most recent call last):
File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/... | [
-0.014731254428625107,
-0.6136934757232666,
0.010602861642837524,
0.060643985867500305,
0.6919259428977966,
0.2248995304107666,
0.3206327557563782,
0.5348024964332581,
0.30549949407577515,
0.07003726065158844,
0.22057761251926422,
0.4219731390476227,
-0.24774019420146942,
-0.15707002580165... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | This is exactly what I was looking for. It would also be very useful for me :-) | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 17 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The c... | [
-0.513129472732544,
-0.40810614824295044,
-0.14537034928798676,
-0.032330162823200226,
-0.21823559701442719,
0.07741650193929672,
0.5759503245353699,
0.15358036756515503,
0.10522647202014923,
0.22356858849525452,
-0.09468692541122437,
0.23621876537799835,
-0.41731104254722595,
0.1028554514... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | This issue is really smashing the selling point of HF datasets... The only workaround I've found so far is to create a customized IterableDataloader which improves the loading speed to some extent.
For example I've a HF dataset `dt_train` with `len(dt_train) == 1M`. Using plain DataLoader is extremely slow:
```
%%... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 240 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The c... | [
-0.5315183997154236,
-0.20455409586429596,
-0.08869335055351257,
-0.10651478171348572,
-0.18674591183662415,
0.12562188506126404,
0.5776188373565674,
0.32193389534950256,
0.14985226094722748,
0.1092345267534256,
-0.3930847644805908,
0.13741210103034973,
-0.24423231184482574,
-0.11716812849... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | I can confirm that @zhh210's solution works with `num_workers=0`. However, for my use case, this was still slower than tokenizing on the fly through a collator and leveraging multiple workers in the dataloder.
@lhoestq I think this is an important use case (e.g., streaming from a large dataset, online or stored on d... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 65 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The c... | [
-0.5507500767707825,
-0.18806041777133942,
-0.13860377669334412,
-0.16400682926177979,
-0.16954900324344635,
-0.11123514175415039,
0.7082952260971069,
0.14553016424179077,
0.08327986299991608,
0.20728567242622375,
-0.059562839567661285,
0.15164726972579956,
-0.38221803307533264,
0.10908728... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | I guess it can be implemented using a batched`.map()` under the hood that returns a single item containing the input batch.
In the meantime you can use this:
```python
def batch(unbatched: dict[str, list]) -> dict[str, list]:
return {k: [v] for k, v in unbatched}
batched_dataset = dataset.map(batch, batc... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 73 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The c... | [
-0.49269795417785645,
-0.3898637294769287,
-0.1762053668498993,
-0.1279391646385193,
-0.1045372486114502,
0.11119938641786575,
0.49365925788879395,
0.1932072788476944,
0.15270878374576569,
0.10424447059631348,
-0.1615661084651947,
0.3079584538936615,
-0.424785315990448,
0.1613137573003769,... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | If no one else is planning to work on this, I can take it on. I'll wait until next week, and if no one has started a PR by then, I'll go ahead and open one. | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 36 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The c... | [
-0.5193303823471069,
-0.3607630729675293,
-0.16439995169639587,
-0.029069118201732635,
-0.19876064360141754,
0.06552300602197647,
0.5762870907783508,
0.1743568480014801,
0.12109002470970154,
0.21001002192497253,
-0.11969920992851257,
0.23910537362098694,
-0.3752928078174591,
0.076350212097... |
https://github.com/huggingface/datasets/issues/6277 | FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either. | `evaluate.load("paws-x", "es")` throws the error because there is no such metric in the `evaluate` lib.
So, this is unrelated to our lib. | ### Describe the bug
I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows:
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub eit... | 22 | FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either.
### Describe the bug
I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follow... | [
-0.18073666095733643,
-0.12753760814666748,
0.06361949443817139,
0.07010312378406525,
0.42050766944885254,
0.13324666023254395,
0.19292797148227692,
0.4627462923526764,
0.15083874762058258,
0.3782460689544678,
-0.019545741379261017,
0.13660338521003723,
-0.07175438106060028,
0.091070853173... |
https://github.com/huggingface/datasets/issues/6276 | I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error | Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue:
```python
if __name__ == "__main__":
common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
```
Otherwise, the only solution is to set `num_... | ### Describe the bug
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post
https://huggingface.co/blog/fine-tune-whisper
I tried google collab and it works but because I'm on the free version the training ... | 38 | I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error
### Describe the bug
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post
https://hugg... | [
-0.051130261272192,
-0.2417573183774948,
0.10620422661304474,
0.22932501137256622,
0.3709268569946289,
0.16901478171348572,
0.17301952838897705,
0.3357461094856262,
0.06762860715389252,
0.22165203094482422,
-0.40414491295814514,
0.15247990190982819,
-0.10573375225067139,
0.2656455636024475... |
https://github.com/huggingface/datasets/issues/6276 | I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error | > Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue:
>
> ```python
> if __name__ == "__main__":
> common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
> ```
>
> Otherwise, the only solutio... | ### Describe the bug
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post
https://huggingface.co/blog/fine-tune-whisper
I tried google collab and it works but because I'm on the free version the training ... | 100 | I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error
### Describe the bug
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post
https://hugg... | [
-0.051130261272192,
-0.2417573183774948,
0.10620422661304474,
0.22932501137256622,
0.3709268569946289,
0.16901478171348572,
0.17301952838897705,
0.3357461094856262,
0.06762860715389252,
0.22165203094482422,
-0.40414491295814514,
0.15247990190982819,
-0.10573375225067139,
0.2656455636024475... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.