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/6906 | irc_disentangle - Issue with splitting data | I still find out that there are some strange bug in v2.15.0 of datasets. it seems like that the *.arrow file cannot be established. it may be an index of the subsets. well I still try to debug it. but, one of the most efficient way may be using the google colab to build this index in the ~/huggingface/datasets, and tha... | ### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset('irc_disentangle')
ds
#... | 69 | irc_disentangle - Issue with splitting data
### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = d... | [
-0.1607564091682434,
-0.12835319340229034,
-0.03919059410691261,
0.5721808671951294,
-0.06806319952011108,
0.062165386974811554,
0.42442840337753296,
0.2841145098209381,
0.25551173090934753,
0.24333840608596802,
-0.06968239694833755,
0.14003582298755646,
-0.13992339372634888,
0.09073927253... |
https://github.com/huggingface/datasets/issues/6906 | irc_disentangle - Issue with splitting data | Yeah I did try what you suggested and it didn’t work. I was able to get it
on a local from someone who access the dataset in the past. Let me know
when you end up fixing this bug.
On Tue, Jun 11, 2024 at 10:33 PM Vincent Lau ***@***.***>
wrote:
> I still find out that there are some strange bug in v2.15.0 of d... | ### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset('irc_disentangle')
ds
#... | 162 | irc_disentangle - Issue with splitting data
### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = d... | [
-0.11062994599342346,
-0.20289093255996704,
-0.020420651882886887,
0.5355083346366882,
-0.01568976789712906,
0.027922704815864563,
0.40039125084877014,
0.27474549412727356,
0.3411843776702881,
0.2529586851596832,
-0.13087789714336395,
0.21824510395526886,
-0.07574411481618881,
0.1518655568... |
https://github.com/huggingface/datasets/issues/6906 | irc_disentangle - Issue with splitting data | Could you please provide more information, as required by the Bug template: https://github.com/huggingface/datasets/issues/new?assignees=&labels=&projects=&template=bug-report.yml
Without all that information, it is very difficult for us to understand the underlying issue and to give a pertinent answer.
What are ... | ### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset('irc_disentangle')
ds
#... | 89 | irc_disentangle - Issue with splitting data
### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = d... | [
-0.058951303362846375,
-0.29593199491500854,
-0.0023607350885868073,
0.5987377762794495,
0.011229859665036201,
0.017998501658439636,
0.46196457743644714,
0.32676392793655396,
0.331938773393631,
0.21582576632499695,
-0.04904395341873169,
0.23178730905056,
-0.05281625688076019,
0.14836469292... |
https://github.com/huggingface/datasets/issues/6906 | irc_disentangle - Issue with splitting data | We have made the following fixes:
- [Fix source data URL](https://huggingface.co/datasets/jkkummerfeld/irc_disentangle/discussions/4)
- [Convert dataset to Parquet](https://huggingface.co/datasets/jkkummerfeld/irc_disentangle/discussions/5) | ### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset('irc_disentangle')
ds
#... | 16 | irc_disentangle - Issue with splitting data
### Describe the bug
I am trying to access your database through python using "datasets.load_dataset("irc_disentangle")" and I am getting this error message:
ValueError: Instruction "train" corresponds to no data!
### Steps to reproduce the bug
import datasets
ds = d... | [
-0.02859576605260372,
-0.22506079077720642,
-0.026607561856508255,
0.6058424711227417,
0.04811711609363556,
0.004391923546791077,
0.3899601399898529,
0.3061465919017792,
0.19714923202991486,
0.2205083668231964,
-0.02636583335697651,
0.28163039684295654,
-0.07801733911037445,
0.154011383652... |
https://github.com/huggingface/datasets/issues/6903 | Add the option of saving in parquet instead of arrow | No, it does not save the metadata json.
We have to recode all meta json load/save
with another custome functions.
save_to_disk
and load should have option with
“Parquet” instead of “arrow”
since “arrow” is never user for production
(only parquet).
Thanks !
> On May 17, 2024, at 5:38, Frédéric Branch... | ### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### Motivation
because arrow is not used for Production Big... | 98 | Add the option of saving in parquet instead of arrow
### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### ... | [
-0.2602289021015167,
0.25236329436302185,
-0.08383029699325562,
0.1211492270231247,
0.11433389037847519,
-0.14599336683750153,
0.055254269391298294,
0.21268214285373688,
-0.23365715146064758,
0.050044991075992584,
0.1188136637210846,
0.8451120853424072,
-0.17672879993915558,
0.211130380630... |
https://github.com/huggingface/datasets/issues/6903 | Add the option of saving in parquet instead of arrow | Ok,
What about loading ?
Should we do in 2 steps ?
> On Jun 14, 2024, at 1:09, Quentin Lhoest ***@***.***> wrote:
>
>
> You can use to_parquet and ds.info.write_to_directory() to save the dataset info
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving th... | ### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### Motivation
because arrow is not used for Production Big... | 63 | Add the option of saving in parquet instead of arrow
### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### ... | [
-0.4148215651512146,
0.05486324429512024,
-0.13479964435100555,
0.21776516735553741,
0.14533403515815735,
-0.1493590623140335,
0.15330255031585693,
0.2757137715816498,
0.057868171483278275,
0.31751492619514465,
0.09430436044931412,
0.6173985600471497,
-0.012661146931350231,
0.3191124200820... |
https://github.com/huggingface/datasets/issues/6903 | Add the option of saving in parquet instead of arrow | Isn’t easier to combine both
into load_dataset and save_dataset
with parquet options.
2) another question,
How can we download large dataset into disk directly without loading all in memory (!)
> On Jun 14, 2024, at 19:54, Quentin Lhoest ***@***.***> wrote:
>
>
> Yes, and there is DatasetInfo.from_... | ### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### Motivation
because arrow is not used for Production Big... | 79 | Add the option of saving in parquet instead of arrow
### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### ... | [
-0.5679495930671692,
0.04482512176036835,
-0.11140307784080505,
0.22289925813674927,
0.19645869731903076,
-0.03018975630402565,
-0.04859768971800804,
0.34565630555152893,
0.01152343675494194,
0.2370610237121582,
0.0372697189450264,
0.5357140302658081,
-0.0758049339056015,
0.209399476647377... |
https://github.com/huggingface/datasets/issues/6903 | Add the option of saving in parquet instead of arrow | `load_dataset` doesn't load the dataset in memory, it progressively writes to disk in Arrow format and then memory maps the Arrow files. This allows to load datasets bigger than memory and without filling your RAM | ### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### Motivation
because arrow is not used for Production Big... | 35 | Add the option of saving in parquet instead of arrow
### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### ... | [
-0.5085446238517761,
-0.04656665772199631,
-0.13971364498138428,
0.270813524723053,
0.21689365804195404,
-0.0961124524474144,
0.0268910750746727,
0.24537453055381775,
0.043092723935842514,
0.23568403720855713,
0.07143481075763702,
0.494878888130188,
-0.09851767867803574,
0.1642365157604217... |
https://github.com/huggingface/datasets/issues/6903 | Add the option of saving in parquet instead of arrow | Sure.
How memory map is managed ?
Managed by the OS ?
Why the need of save_dataset() ?
> On Jun 15, 2024, at 0:06, Quentin Lhoest ***@***.***> wrote:
>
>
> load_dataset doesn't load the dataset in memory, it progressively writes to disk in Arrow format and then memory maps the Arrow files. This allows... | ### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### Motivation
because arrow is not used for Production Big... | 93 | Add the option of saving in parquet instead of arrow
### Feature request
In dataset.save_to_disk('/path/to/save/dataset'),
add the option to save in parquet format
dataset.save_to_disk('/path/to/save/dataset', format="parquet"),
because arrow is not used for Production Big data.... (only parquet)
### ... | [
-0.4061277210712433,
-0.07804780453443527,
-0.15096910297870636,
0.3015359044075012,
0.17626085877418518,
-0.01711559295654297,
0.01719146966934204,
0.16975663602352142,
0.1115928441286087,
0.2302323579788208,
0.08540602028369904,
0.5447483658790588,
-0.1307019293308258,
-0.006384987384080... |
https://github.com/huggingface/datasets/issues/6900 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example | It shouldn't be difficult, I think it's just a matter of adding the missing fields from `self.config.features` in `example` here: before it iterates on image_field_names and audio_field_names. A missing field should have a value set to None
https://github.com/huggingface/datasets/blob/768cb35ede5a6c35fa7545aa3671f3e... | reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 109, in _generate_examples
example[field_name] = {"path": example["_... | 38 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example
reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/web... | [
0.25792214274406433,
-0.18959563970565796,
-0.07479274272918701,
0.0006574913859367371,
-0.0015557631850242615,
0.10873619467020035,
0.34772181510925293,
0.27355822920799255,
0.12412917613983154,
-0.008390381932258606,
0.17592963576316833,
0.19717289507389069,
-0.14997316896915436,
0.39989... |
https://github.com/huggingface/datasets/issues/6900 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example | @lhoestq So like this then?
```
def _generate_examples(self, tar_paths, tar_iterators):
image_field_names = [
field_name for field_name, feature in self.info.features.items() if isinstance(feature, datasets.Image)
]
audio_field_names = [
field_name for field_... | reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 109, in _generate_examples
example[field_name] = {"path": example["_... | 132 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example
reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/web... | [
0.1758723258972168,
-0.21770384907722473,
-0.1031029224395752,
0.07011441141366959,
0.021451488137245178,
0.002216920256614685,
0.3708716332912445,
0.26003575325012207,
0.13557389378547668,
0.040011271834373474,
0.3267216682434082,
0.2618832290172577,
-0.17561253905296326,
0.23694916069507... |
https://github.com/huggingface/datasets/issues/6900 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example | Yup this is the solution !
```python
for field_name in all_field_names:
if field_name not in example:
example[field_name] = None
``` | reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 109, in _generate_examples
example[field_name] = {"path": example["_... | 20 | [WebDataset] KeyError with user-defined `Features` when a field is missing in an example
reported at https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions/discussions/1
```
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/web... | [
0.3126630485057831,
-0.23326580226421356,
-0.09404422342777252,
-0.03234681487083435,
-0.03845921903848648,
0.09963660687208176,
0.3824291229248047,
0.3597545325756073,
0.18889564275741577,
-0.04843384027481079,
0.41676995158195496,
0.20619578659534454,
-0.0827454999089241,
0.4317778646945... |
https://github.com/huggingface/datasets/issues/6897 | datasets template guide :: issue in documentation YAML | Hello, @bghira.
Thanks for reporting. Please note that the text originating the error is not supposed to be valid YAML: it contains the instructions to generate the actual YAML content, that should replace the instructions comment.
On the other hand, I agree that it is not nice to have that YAML error message at ... | ### Describe the bug
There is a YAML error at the top of the page, and I don't think it's supposed to be there
### Steps to reproduce the bug
1. Browse to [this tutorial document](https://github.com/huggingface/datasets/blob/main/templates/README_guide.md)
2. Observe a big red error at the top
3. The rest of the ... | 74 | datasets template guide :: issue in documentation YAML
### Describe the bug
There is a YAML error at the top of the page, and I don't think it's supposed to be there
### Steps to reproduce the bug
1. Browse to [this tutorial document](https://github.com/huggingface/datasets/blob/main/templates/README_guide.md)
2... | [
0.0628998875617981,
-0.5750184059143066,
0.08095027506351471,
0.06528156995773315,
0.3983103036880493,
0.501067042350769,
0.3459073603153229,
0.14436297118663788,
-0.11757896840572357,
-0.02074657380580902,
0.2931133508682251,
0.1422312706708908,
0.135603666305542,
0.0730132982134819,
0.... |
https://github.com/huggingface/datasets/issues/6897 | datasets template guide :: issue in documentation YAML | thanks albert! i looked at it for a while to figure it out. i think the `raw` view option is the correct way to look at it? | ### Describe the bug
There is a YAML error at the top of the page, and I don't think it's supposed to be there
### Steps to reproduce the bug
1. Browse to [this tutorial document](https://github.com/huggingface/datasets/blob/main/templates/README_guide.md)
2. Observe a big red error at the top
3. The rest of the ... | 27 | datasets template guide :: issue in documentation YAML
### Describe the bug
There is a YAML error at the top of the page, and I don't think it's supposed to be there
### Steps to reproduce the bug
1. Browse to [this tutorial document](https://github.com/huggingface/datasets/blob/main/templates/README_guide.md)
2... | [
0.005896255373954773,
-0.6684544086456299,
0.04609465226531029,
0.2047625333070755,
0.2285977602005005,
0.43979182839393616,
0.33936700224876404,
0.15852387249469757,
-0.06923028081655502,
-0.08908259868621826,
0.28198954463005066,
0.08838176727294922,
0.15670068562030792,
0.14199063181877... |
https://github.com/huggingface/datasets/issues/6891 | Unable to load JSON saved using `to_json` | Hi @DarshanDeshpande,
Please note that the default format of the method `Dataset.to_json` is [JSON-Lines](https://jsonlines.org/): it passes `orient="records", lines=True` to `pandas.DataFrame.to_json`. This format is specially useful for large datasets, since unlike regular JSON files, it does not require loading a... | ### Describe the bug
Datasets stored in the JSON format cannot be loaded using `json.load()`
### Steps to reproduce the bug
```
import json
from datasets import load_dataset
dataset = load_dataset("squad")
train_dataset, test_dataset = dataset["train"], dataset["validation"]
test_dataset.to_json("full_dataset... | 92 | Unable to load JSON saved using `to_json`
### Describe the bug
Datasets stored in the JSON format cannot be loaded using `json.load()`
### Steps to reproduce the bug
```
import json
from datasets import load_dataset
dataset = load_dataset("squad")
train_dataset, test_dataset = dataset["train"], dataset["vali... | [
0.05648532137274742,
0.1627628207206726,
-0.0438183918595314,
0.3540229797363281,
0.39994484186172485,
0.25341832637786865,
0.2940066456794739,
0.5735443234443665,
0.12257605791091919,
-0.001523330807685852,
-0.12310168892145157,
0.6201069355010986,
0.027151502668857574,
0.0723390430212020... |
https://github.com/huggingface/datasets/issues/6887 | FAISS load to None | Hello,
I'm not sure I understand.
The return value of `ds.load_faiss_index` is None as expected.
I see that loading an Index on a dataset that doesn't have an `embedding` column doesn't raise an Issue. Is that the issue?
So `ds` doesn't have an `embedding` column, but we load an index that looks for it. But ... | ### Describe the bug
I've use FAISS with Datasets and save to FAISS.
Then load to save FAISS then no error, then ds to None
```python
ds.load_faiss_index('embeddings', 'my_index.faiss')
```
### Steps to reproduce the bug
# 1.
```python
ds_with_embeddings = ds.map(lambda example: {'embeddings': model(transf... | 64 | FAISS load to None
### Describe the bug
I've use FAISS with Datasets and save to FAISS.
Then load to save FAISS then no error, then ds to None
```python
ds.load_faiss_index('embeddings', 'my_index.faiss')
```
### Steps to reproduce the bug
# 1.
```python
ds_with_embeddings = ds.map(lambda example: {'embe... | [
0.03885560855269432,
-0.4406752288341522,
0.05914180353283882,
0.245367169380188,
0.20897629857063293,
0.07248102873563766,
0.5071743726730347,
0.1786344349384308,
0.8528186082839966,
0.45393699407577515,
0.018829818814992905,
0.10844770073890686,
0.06420552730560303,
-0.07409307360649109,... |
https://github.com/huggingface/datasets/issues/6882 | Connection Error When Using By-pass Proxies | Changing the supplier of the proxy will solve this problem, or you can visit and follow the instructions in https://hf-mirror.com | ### Describe the bug
I'm currently using Clash for Windows as my proxy tunnel, after exporting HTTP_PROXY and HTTPS_PROXY to the port that clash provides🤔, it runs into a connection error saying "Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.19.1/metrics/seqeval/seqeval.py (ConnectionError(M... | 20 | Connection Error When Using By-pass Proxies
### Describe the bug
I'm currently using Clash for Windows as my proxy tunnel, after exporting HTTP_PROXY and HTTPS_PROXY to the port that clash provides🤔, it runs into a connection error saying "Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.19.1... | [
-0.20472918450832367,
-0.37931641936302185,
0.0601181723177433,
0.2547002136707306,
0.047565702348947525,
-0.19099479913711548,
0.08826708048582077,
-0.08290274441242218,
0.14276599884033203,
0.07145500928163528,
0.022649560123682022,
-0.14429670572280884,
0.2713148891925812,
0.40864679217... |
https://github.com/huggingface/datasets/issues/6880 | Webdataset: KeyError: 'png' on some datasets when streaming | The error is caused by malformed basenames of the files within the TARs:
- `15_Cohen_1-s2.0-S0929664620300449-gr3_lrg-b.png` becomes `15_Cohen_1-s2` as the grouping `__key__`, and `0-S0929664620300449-gr3_lrg-b.png` as the additional key to be added to the example
- whereas the intended behavior was to use `15_Cohen_... | reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data: 100%
619M/619M [00:11<00:00, 57.4MB/s]
Generating train sp... | 88 | Webdataset: KeyError: 'png' on some datasets when streaming
reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data:... | [
-0.311941534280777,
-0.2119862288236618,
-0.1765904724597931,
0.1928684115409851,
0.29888659715652466,
0.041977062821388245,
0.16332295536994934,
0.4688340425491333,
0.017786100506782532,
-0.06651580333709717,
-0.092808797955513,
0.0658211037516594,
-0.20402628183364868,
0.1120481416583061... |
https://github.com/huggingface/datasets/issues/6880 | Webdataset: KeyError: 'png' on some datasets when streaming | I reopen it because I think we should try to give a clearer error message with a specific error code.
For now, it's hard for the user to understand where the error comes from (not everybody knows the subtleties of the webdataset filename structure).
(we can transfer it to https://github.com/huggingface/dataset-vi... | reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data: 100%
619M/619M [00:11<00:00, 57.4MB/s]
Generating train sp... | 55 | Webdataset: KeyError: 'png' on some datasets when streaming
reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data:... | [
-0.311941534280777,
-0.2119862288236618,
-0.1765904724597931,
0.1928684115409851,
0.29888659715652466,
0.041977062821388245,
0.16332295536994934,
0.4688340425491333,
0.017786100506782532,
-0.06651580333709717,
-0.092808797955513,
0.0658211037516594,
-0.20402628183364868,
0.1120481416583061... |
https://github.com/huggingface/datasets/issues/6880 | Webdataset: KeyError: 'png' on some datasets when streaming | same with .jpg -> https://huggingface.co/datasets/ProGamerGov/synthetic-dataset-1m-dalle3-high-quality-captions
```
Error code: DatasetGenerationError
Exception: DatasetGenerationError
Message: An error occurred while generating the dataset
Traceback: Traceback (most recent call last):
... | reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data: 100%
619M/619M [00:11<00:00, 57.4MB/s]
Generating train sp... | 135 | Webdataset: KeyError: 'png' on some datasets when streaming
reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data:... | [
-0.311941534280777,
-0.2119862288236618,
-0.1765904724597931,
0.1928684115409851,
0.29888659715652466,
0.041977062821388245,
0.16332295536994934,
0.4688340425491333,
0.017786100506782532,
-0.06651580333709717,
-0.092808797955513,
0.0658211037516594,
-0.20402628183364868,
0.1120481416583061... |
https://github.com/huggingface/datasets/issues/6880 | Webdataset: KeyError: 'png' on some datasets when streaming | More details in the spec (https://docs.google.com/document/d/18OdLjruFNX74ILmgrdiCI9J1fQZuhzzRBCHV9URWto0/edit#heading=h.hkptaq2kct2s)
> The prefix of a file is all directory components of the file plus the file name component up to the first “.” in the file name.
> The last extension (i.e., the portion after the l... | reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data: 100%
619M/619M [00:11<00:00, 57.4MB/s]
Generating train sp... | 99 | Webdataset: KeyError: 'png' on some datasets when streaming
reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data:... | [
-0.311941534280777,
-0.2119862288236618,
-0.1765904724597931,
0.1928684115409851,
0.29888659715652466,
0.041977062821388245,
0.16332295536994934,
0.4688340425491333,
0.017786100506782532,
-0.06651580333709717,
-0.092808797955513,
0.0658211037516594,
-0.20402628183364868,
0.1120481416583061... |
https://github.com/huggingface/datasets/issues/6880 | Webdataset: KeyError: 'png' on some datasets when streaming | OK, the issue is different in the latter case: some files are suffixed as `.jpeg`, and others as `.jpg` :)
Is it a limitation of the webdataset format, or of the datasets library @lhoestq? And could we be able to give a clearer error? | reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data: 100%
619M/619M [00:11<00:00, 57.4MB/s]
Generating train sp... | 44 | Webdataset: KeyError: 'png' on some datasets when streaming
reported at https://huggingface.co/datasets/tbone5563/tar_images/discussions/1
```python
>>> from datasets import load_dataset
>>> ds = load_dataset("tbone5563/tar_images")
Downloading data: 100%
1.41G/1.41G [00:48<00:00, 17.2MB/s]
Downloading data:... | [
-0.311941534280777,
-0.2119862288236618,
-0.1765904724597931,
0.1928684115409851,
0.29888659715652466,
0.041977062821388245,
0.16332295536994934,
0.4688340425491333,
0.017786100506782532,
-0.06651580333709717,
-0.092808797955513,
0.0658211037516594,
-0.20402628183364868,
0.1120481416583061... |
https://github.com/huggingface/datasets/issues/6877 | OSError: [Errno 24] Too many open files | > ulimit -n 8192 can solve this problem
Would there be a systematic way to do this ? The data loading is part of the [MTEB](https://github.com/embeddings-benchmark/mteb) library | ### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load it using the `load_dataset` function I get... | 27 | OSError: [Errno 24] Too many open files
### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load ... | [
-0.4518268406391144,
-0.28309592604637146,
-0.07178039848804474,
0.4186365604400635,
0.15448938310146332,
0.09496546536684036,
0.23318471014499664,
0.40026846528053284,
-0.014156319200992584,
0.32510289549827576,
-0.19934286177158356,
0.011135597713291645,
-0.23308409750461578,
0.115100480... |
https://github.com/huggingface/datasets/issues/6877 | OSError: [Errno 24] Too many open files | > > ulimit -n 8192 can solve this problem
>
> Would there be a systematic way to do this ? The data loading is part of the [MTEB](https://github.com/embeddings-benchmark/mteb) library
I think we could modify the _prepare_split_single function | ### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load it using the `load_dataset` function I get... | 38 | OSError: [Errno 24] Too many open files
### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load ... | [
-0.4518268406391144,
-0.28309592604637146,
-0.07178039848804474,
0.4186365604400635,
0.15448938310146332,
0.09496546536684036,
0.23318471014499664,
0.40026846528053284,
-0.014156319200992584,
0.32510289549827576,
-0.19934286177158356,
0.011135597713291645,
-0.23308409750461578,
0.115100480... |
https://github.com/huggingface/datasets/issues/6877 | OSError: [Errno 24] Too many open files | I fixed it with https://github.com/huggingface/datasets/pull/6893, feel free to re-open if you're still having the issue :) | ### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load it using the `load_dataset` function I get... | 16 | OSError: [Errno 24] Too many open files
### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load ... | [
-0.4518268406391144,
-0.28309592604637146,
-0.07178039848804474,
0.4186365604400635,
0.15448938310146332,
0.09496546536684036,
0.23318471014499664,
0.40026846528053284,
-0.014156319200992584,
0.32510289549827576,
-0.19934286177158356,
0.011135597713291645,
-0.23308409750461578,
0.115100480... |
https://github.com/huggingface/datasets/issues/6877 | OSError: [Errno 24] Too many open files | > I fixed it with #6893, feel free to re-open if you're still having the issue :)
Thanks a lot! | ### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load it using the `load_dataset` function I get... | 20 | OSError: [Errno 24] Too many open files
### Describe the bug
I am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb](https://huggingface.co/datasets/mteb/biblenlp-corpus-mmteb)
When trying to load ... | [
-0.4518268406391144,
-0.28309592604637146,
-0.07178039848804474,
0.4186365604400635,
0.15448938310146332,
0.09496546536684036,
0.23318471014499664,
0.40026846528053284,
-0.014156319200992584,
0.32510289549827576,
-0.19934286177158356,
0.011135597713291645,
-0.23308409750461578,
0.115100480... |
https://github.com/huggingface/datasets/issues/6868 | datasets.BuilderConfig does not work. | I guess the issue is caused by the customization of BuilderConfig that you use from the repo [https://github.com/BeyonderXX/InstructUIE](https://github.com/BeyonderXX/InstructUIE/blob/master/src/uie_dataset.py). You should report to them.
I see you already opened an issue in their repo:
- https://github.com/Beyonde... | ### Describe the bug
I custom a BuilderConfig and GeneratorBasedBuilder.
Here is the code for BuilderConfig
```
class UIEConfig(datasets.BuilderConfig):
def __init__(
self,
*args,
data_dir=None,
instruction_file=None,
instruction_strategy=None,... | 35 | datasets.BuilderConfig does not work.
### Describe the bug
I custom a BuilderConfig and GeneratorBasedBuilder.
Here is the code for BuilderConfig
```
class UIEConfig(datasets.BuilderConfig):
def __init__(
self,
*args,
data_dir=None,
instruction_file=None,... | [
-0.6874491572380066,
0.22365805506706238,
0.019618958234786987,
0.18071717023849487,
0.13669389486312866,
-0.022435389459133148,
0.18786385655403137,
0.03343265503644943,
-0.19063644111156464,
0.21181687712669373,
0.17358554899692535,
0.3953530192375183,
-0.14363087713718414,
-0.0016871523... |
https://github.com/huggingface/datasets/issues/6867 | Improve performance of JSON loader | Thanks! Feel free to ping me for examples. May not respond immediately because we're all busy but would like to help. | As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714
> There are benchmarks that... | 21 | Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-7... | [
-0.03919713571667671,
0.2434317171573639,
-0.17889869213104248,
0.1696496307849884,
0.09725135564804077,
0.08846461027860641,
0.2441028356552124,
0.4211943745613098,
0.5134557485580444,
-0.07182447612285614,
0.08842527121305466,
0.6556617617607117,
-0.03109866753220558,
0.21843014657497406... |
https://github.com/huggingface/datasets/issues/6867 | Improve performance of JSON loader | Hi @natolambert, could you please give some examples of JSON files to benchmark?
Please note that this JSON file (https://huggingface.co/datasets/allenai/reward-bench-results/blob/main/eval-set-scores/Ray2333/reward-model-Mistral-7B-instruct-Unified-Feedback.json) is not in "records" orient; instead it has the follo... | As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714
> There are benchmarks that... | 112 | Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-7... | [
-0.04002209007740021,
0.2650395333766937,
-0.1358243077993393,
0.30585044622421265,
-0.07673455774784088,
0.08662878721952438,
0.10383865237236023,
0.5155295133590698,
0.3769634962081909,
-0.12184146046638489,
0.016211044043302536,
0.693203330039978,
0.02511027827858925,
0.0849677994847297... |
https://github.com/huggingface/datasets/issues/6867 | Improve performance of JSON loader | We use a mix (which is a mess), here's an example with the records orient
https://huggingface.co/datasets/allenai/reward-bench-results/blob/main/best-of-n/alpaca_eval/tulu-13b/OpenAssistant/oasst-rm-2.1-pythia-1.4b-epoch-2.5.json
There are more in that folder, ~40mb maybe? | As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714
> There are benchmarks that... | 24 | Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-7... | [
-0.045264944434165955,
0.34829017519950867,
-0.19149582087993622,
0.3720752000808716,
0.08937397599220276,
0.10532016307115555,
0.16974525153636932,
0.5300548076629639,
0.38451218605041504,
-0.018146663904190063,
-0.07998569309711456,
0.566435694694519,
-0.05782806873321533,
0.168301939964... |
https://github.com/huggingface/datasets/issues/6867 | Improve performance of JSON loader | @albertvillanova here's a snippet so you don't need to click
```
{
"config": "top_p=0.9;temp=1.0",
"dataset_details": "helpful_base",
"id": [
0,
0
],
"model": "allenai/tulu-2-dpo-13b",
"scores": 3.076171875
}
{
"config": "top_p=0.9;temp=1.0",
"dataset_detail... | As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714
> There are benchmarks that... | 207 | Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-7... | [
-0.2909109890460968,
0.18723493814468384,
-0.21109522879123688,
0.18613563477993011,
0.23768350481987,
0.09412505477666855,
0.2980051040649414,
0.541363537311554,
0.3936551809310913,
0.02537570893764496,
-0.09020436555147171,
0.6553610563278198,
0.1419888138771057,
0.24535055458545685,
-... |
https://github.com/huggingface/datasets/issues/6867 | Improve performance of JSON loader | Thanks again for your feedback, @natolambert.
However, strictly speaking, the last file is not in JSON format but in kind of JSON-Lines like format (although not properly either because there are multiple newline characters within each object). Not even pandas can read that file format.
Anyway, for JSON-Lines, I ... | As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714
> There are benchmarks that... | 104 | Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.
The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-7... | [
-0.29499319195747375,
0.25726717710494995,
-0.18426750600337982,
0.1834651231765747,
0.199994757771492,
0.025203242897987366,
0.3841243386268616,
0.4907195568084717,
0.2896990478038788,
-0.06192803382873535,
-0.14312726259231567,
0.5697386264801025,
0.13296867907047272,
0.06747961044311523... |
https://github.com/huggingface/datasets/issues/6866 | DataFilesNotFoundError for datasets in the open-llm-leaderboard | Hi @jerome-white, thnaks for reporting.
However, I cannot reproduce your issue:
```python
>>> from datasets import get_dataset_config_names
>>> get_dataset_config_names("open-llm-leaderboard/details_davidkim205__Rhea-72b-v0.5")
['harness_arc_challenge_25',
'harness_gsm8k_5',
'harness_hellaswag_10',
'harn... | ### Describe the bug
When trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leaderboard almost everyday; yesterday was the first time I started see... | 91 | DataFilesNotFoundError for datasets in the open-llm-leaderboard
### Describe the bug
When trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leade... | [
-0.49482882022857666,
0.3736054599285126,
0.0811573714017868,
0.6338543891906738,
0.08500688523054123,
-0.10712634027004242,
-0.016161341220140457,
0.34829655289649963,
0.10186594724655151,
0.34748297929763794,
0.05879886448383331,
0.21926254034042358,
-0.1991540938615799,
-0.1078597977757... |
https://github.com/huggingface/datasets/issues/6866 | DataFilesNotFoundError for datasets in the open-llm-leaderboard | > Maybe it was just a temporary issue...
Perhaps. I've changed my workflow to use the hub's `HfFileSystem`, so for now this is no longer a blocker for me. I'll reopen the issue if that changes. | ### Describe the bug
When trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leaderboard almost everyday; yesterday was the first time I started see... | 36 | DataFilesNotFoundError for datasets in the open-llm-leaderboard
### Describe the bug
When trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leade... | [
-0.49482882022857666,
0.3736054599285126,
0.0811573714017868,
0.6338543891906738,
0.08500688523054123,
-0.10712634027004242,
-0.016161341220140457,
0.34829655289649963,
0.10186594724655151,
0.34748297929763794,
0.05879886448383331,
0.21926254034042358,
-0.1991540938615799,
-0.1078597977757... |
https://github.com/huggingface/datasets/issues/6864 | Dataset 'rewardsignal/reddit_writing_prompts' doesn't exist on the Hub | Hi @vinodrajendran001, thanks for reporting.
Indeed the dataset no longer exists on the Hub. The URL https://huggingface.co/datasets/rewardsignal/reddit_writing_prompts gives 404 Not Found error. | ### Describe the bug
The dataset `rewardsignal/reddit_writing_prompts` is missing in Huggingface Hub.
### Steps to reproduce the bug
```
from datasets import load_dataset
prompt_response_dataset = load_dataset("rewardsignal/reddit_writing_prompts", data_files="prompt_responses_full.csv", split='train[:80%]... | 22 | Dataset 'rewardsignal/reddit_writing_prompts' doesn't exist on the Hub
### Describe the bug
The dataset `rewardsignal/reddit_writing_prompts` is missing in Huggingface Hub.
### Steps to reproduce the bug
```
from datasets import load_dataset
prompt_response_dataset = load_dataset("rewardsignal/reddit_wri... | [
-0.03555293753743172,
-0.45973971486091614,
-0.0076712388545274734,
0.46709901094436646,
0.15462878346443176,
0.25667402148246765,
0.2523685097694397,
0.18569418787956238,
0.18151366710662842,
0.16432809829711914,
-0.07102049887180328,
0.102827288210392,
-0.05865245312452316,
0.31427040696... |
https://github.com/huggingface/datasets/issues/6858 | Segmentation fault | I downloaded the jsonl file and extract it manually.
The issue seems to be related to pyarrow.json
python3 -q -X faulthandler -c "from datasets import load_dataset; load_dataset('json', data_files='/Users/scampion/Downloads/1998-09.jsonl')"
Generating train split: 0 examples [00:00, ? examples/s]Fatal Pytho... | ### Describe the bug
Using various version for datasets, I'm no more longer able to load that dataset without a segmentation fault.
Several others files are also concerned.
### Steps to reproduce the bug
# Create a new venv
python3 -m venv venv_test
source venv_test/bin/activate
# Install the latest versio... | 242 | Segmentation fault
### Describe the bug
Using various version for datasets, I'm no more longer able to load that dataset without a segmentation fault.
Several others files are also concerned.
### Steps to reproduce the bug
# Create a new venv
python3 -m venv venv_test
source venv_test/bin/activate
# Inst... | [
-0.273857444524765,
0.12453977763652802,
0.029024098068475723,
0.24738529324531555,
0.1829131543636322,
0.0015955716371536255,
0.41411513090133667,
0.4311520457267761,
-0.1906261295080185,
-0.05419503152370453,
0.1505376249551773,
0.5418916940689087,
-0.0870991051197052,
-0.333734720945358... |
https://github.com/huggingface/datasets/issues/6856 | CI fails on Windows for test_delete_from_hub and test_xgetsize_private due to new-line character | After investigation, I have found that when a local file is uploaded to the Hub, the new line character is no longer transformed to "\n": on Windows machine now it is kept as "\r\n".
Any idea why this changed?
CC: @lhoestq | CI fails on Windows for test_delete_from_hub after the merge of:
- #6820
This is weird because the CI was green in the PR branch before merging to main.
```
FAILED tests/test_hub.py::test_delete_from_hub - AssertionError: assert [CommitOperat...\r\n---\r\n')] == [CommitOperat...in/*\n---\n')]
At index 1 ... | 41 | CI fails on Windows for test_delete_from_hub and test_xgetsize_private due to new-line character
CI fails on Windows for test_delete_from_hub after the merge of:
- #6820
This is weird because the CI was green in the PR branch before merging to main.
```
FAILED tests/test_hub.py::test_delete_from_hub - Asserti... | [
-0.020743783563375473,
0.15854910016059875,
-0.02737545594573021,
-0.05879633128643036,
0.2177542895078659,
-0.24898961186408997,
0.4662143588066101,
0.06262174248695374,
0.19253072142601013,
0.33144664764404297,
-0.030337302014231682,
-0.010529213584959507,
0.10585103183984756,
0.24378193... |
https://github.com/huggingface/datasets/issues/6850 | Problem loading voxpopuli dataset | @Namangarg110 @mohsen-goodarzi The bug appears because the number of urls is less than 16 and the algorithm is meant to work on the previously created mode for a single url as stated on line 314: https://github.com/huggingface/datasets/blob/1bf8a46cc7b096d5c547ea3794f6a4b6c31ea762/src/datasets/download/download_manage... | ### Describe the bug
```
Exception has occurred: FileNotFoundError
Couldn't find file at https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/{'en': 'data/en/asr_train.tsv'}
```
Error in logic for link url creation. The link should be https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/da... | 124 | Problem loading voxpopuli dataset
### Describe the bug
```
Exception has occurred: FileNotFoundError
Couldn't find file at https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/{'en': 'data/en/asr_train.tsv'}
```
Error in logic for link url creation. The link should be https://huggingface.co/datase... | [
-0.10406342148780823,
-0.19442743062973022,
-0.0057610925287008286,
0.28873103857040405,
0.33215194940567017,
-0.16237778961658478,
0.1272556334733963,
0.14151842892169952,
0.27067849040031433,
0.2080133557319641,
-0.25937405228614807,
-0.14443744719028473,
-0.1255161613225937,
0.110425673... |
https://github.com/huggingface/datasets/issues/6850 | Problem loading voxpopuli dataset | Thanks for reporting @Namangarg110 and thanks for the investigation @MilanaShhanukova.
Apparently, there is an issue with the download functionality.
I am proposing a fix. | ### Describe the bug
```
Exception has occurred: FileNotFoundError
Couldn't find file at https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/{'en': 'data/en/asr_train.tsv'}
```
Error in logic for link url creation. The link should be https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/da... | 24 | Problem loading voxpopuli dataset
### Describe the bug
```
Exception has occurred: FileNotFoundError
Couldn't find file at https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/{'en': 'data/en/asr_train.tsv'}
```
Error in logic for link url creation. The link should be https://huggingface.co/datase... | [
0.016976218670606613,
-0.12152555584907532,
-0.025779325515031815,
0.3417309522628784,
0.3796597123146057,
-0.11499855667352676,
0.010786697268486023,
0.10583870112895966,
0.31906557083129883,
0.09532859176397324,
-0.19825315475463867,
-0.16082963347434998,
0.05572669580578804,
0.137243136... |
https://github.com/huggingface/datasets/issues/6847 | [Streaming] Only load requested splits without resolving files for the other splits | I'm having a similar issue when using splices:
<img width="947" alt="image" src="https://github.com/huggingface/datasets/assets/28941213/2153faac-e1fe-4b6d-a79b-30b2699407e8">
<img width="823" alt="image" src="https://github.com/huggingface/datasets/assets/28941213/80919eca-eb6c-407d-8070-52642fdcee54">
<img width="... | e.g. [thangvip](https://huggingface.co/thangvip)/[cosmopedia_vi_math](https://huggingface.co/datasets/thangvip/cosmopedia_vi_math) has 300 splits and it takes a very long time to load only one split.
This is due to `load_dataset()` resolving the files of all the splits even if only one is needed.
In `dataset-view... | 33 | [Streaming] Only load requested splits without resolving files for the other splits
e.g. [thangvip](https://huggingface.co/thangvip)/[cosmopedia_vi_math](https://huggingface.co/datasets/thangvip/cosmopedia_vi_math) has 300 splits and it takes a very long time to load only one split.
This is due to `load_dataset()`... | [
-0.5164943933486938,
-0.2733079195022583,
-0.03313096985220909,
0.3817753791809082,
0.12230648845434189,
-0.1887190043926239,
0.17538385093212128,
0.24712230265140533,
0.11154185235500336,
0.04875592142343521,
-0.08848661184310913,
0.14890806376934052,
0.13150809705257416,
0.31572917103767... |
https://github.com/huggingface/datasets/issues/6846 | Unimaginable super slow iteration | In every iteration you load the full "random_input" column in memory, only then to access it's i-th element.
You can try using this instead
a,b=dataset[i]['random_input'],dataset[i]['random_output'] | ### Describe the bug
Assuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset……?Is there something wrong with my iteration?
### Steps to reproduce the bug
```python
import datasets
import time
import random
num_rows = 52000
n... | 25 | Unimaginable super slow iteration
### Describe the bug
Assuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset……?Is there something wrong with my iteration?
### Steps to reproduce the bug
```python
import datasets
import time
... | [
-0.11157979816198349,
-0.3910645842552185,
-0.09469738602638245,
0.18703684210777283,
0.22112862765789032,
0.007039368152618408,
0.23812644183635712,
-0.043871838599443436,
-0.09718349575996399,
0.21295076608657837,
0.21351777017116547,
0.5390519499778748,
0.001966496929526329,
-0.02626883... |
https://github.com/huggingface/datasets/issues/6845 | load_dataset doesn't support list column | I encountered this same issue when loading a customized dataset for ORPO training, in which there were three columns and two of them were lists.
I debugged and found that it might be caused by the type-infer mechanism and because in some chunks one of the columns is always an empty list ([]), it was regarded as ```li... | ### Describe the bug
dataset = load_dataset("Doraemon-AI/text-to-neo4j-cypher-chinese")
got exception:
Generating train split: 1834 examples [00:00, 5227.98 examples/s]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/datasets/builder.py", line 2011, in _prepare_split_single
... | 121 | load_dataset doesn't support list column
### Describe the bug
dataset = load_dataset("Doraemon-AI/text-to-neo4j-cypher-chinese")
got exception:
Generating train split: 1834 examples [00:00, 5227.98 examples/s]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/datasets/builder.p... | [
-0.4311951696872711,
0.1355215311050415,
-0.07370404899120331,
0.33902639150619507,
0.5347718596458435,
0.25930511951446533,
0.6299633979797363,
0.47520458698272705,
0.4229787290096283,
0.07134582847356796,
-0.0033362400718033314,
0.6009827256202698,
-0.17080233991146088,
0.306876003742218... |
https://github.com/huggingface/datasets/issues/6843 | IterableDataset raises exception instead of retrying | Thanks, @mariosasko! Related question (although I guess this is a feature request): could we have some kind of exponential back-off for these retries? Here's my reasoning:
- If a one-time accidental error happens, you should retry immediately and will succeed immediately.
- If the Hub has a small outage on the order ... | ### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggingface/datasets/issues/6172#issuecomment-1794876229). Si... | 150 | IterableDataset raises exception instead of retrying
### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggin... | [
-0.34127748012542725,
-0.04368980973958969,
-0.03248382732272148,
0.030754581093788147,
0.1366526484489441,
-0.10219722241163254,
0.1777607500553131,
-0.1343664675951004,
-0.15274980664253235,
-0.11436350643634796,
-0.037531763315200806,
-0.08118641376495361,
-0.1617305725812912,
0.1365094... |
https://github.com/huggingface/datasets/issues/6843 | IterableDataset raises exception instead of retrying | Oh, I've just remembered that we added retries to the `HfFileSystem` in `huggingface_hub` 0.21.0 (see [this](https://github.com/huggingface/huggingface_hub/blob/61b156a4f2e5fe1a492ed8712b26803e2122bde0/src/huggingface_hub/hf_file_system.py#L703)), so I'll close the linked PR as we don't want to retry the retries :).
... | ### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggingface/datasets/issues/6172#issuecomment-1794876229). Si... | 43 | IterableDataset raises exception instead of retrying
### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggin... | [
-0.34127748012542725,
-0.04368980973958969,
-0.03248382732272148,
0.030754581093788147,
0.1366526484489441,
-0.10219722241163254,
0.1777607500553131,
-0.1343664675951004,
-0.15274980664253235,
-0.11436350643634796,
-0.037531763315200806,
-0.08118641376495361,
-0.1617305725812912,
0.1365094... |
https://github.com/huggingface/datasets/issues/6843 | IterableDataset raises exception instead of retrying | @mariosasko The call you linked indeed points to the implementation I linked in my previous comment, yes, but it has no configurability. Arguably, you want to have this hidden backoff under the hood that catches small network disturbances on the time scale of seconds -- perhaps even with hardcoded limits as is the case... | ### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggingface/datasets/issues/6172#issuecomment-1794876229). Si... | 179 | IterableDataset raises exception instead of retrying
### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggin... | [
-0.34127748012542725,
-0.04368980973958969,
-0.03248382732272148,
0.030754581093788147,
0.1366526484489441,
-0.10219722241163254,
0.1777607500553131,
-0.1343664675951004,
-0.15274980664253235,
-0.11436350643634796,
-0.037531763315200806,
-0.08118641376495361,
-0.1617305725812912,
0.1365094... |
https://github.com/huggingface/datasets/issues/6843 | IterableDataset raises exception instead of retrying | I also have my runs crash a surprising amount due to the dataloader crashing because of the hub, some way to address this would be nice. | ### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggingface/datasets/issues/6172#issuecomment-1794876229). Si... | 26 | IterableDataset raises exception instead of retrying
### Describe the bug
In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggin... | [
-0.34127748012542725,
-0.04368980973958969,
-0.03248382732272148,
0.030754581093788147,
0.1366526484489441,
-0.10219722241163254,
0.1777607500553131,
-0.1343664675951004,
-0.15274980664253235,
-0.11436350643634796,
-0.037531763315200806,
-0.08118641376495361,
-0.1617305725812912,
0.1365094... |
https://github.com/huggingface/datasets/issues/6841 | Unable to load wiki_auto_asset_turk from GEM | Hi! I've opened a [PR](https://huggingface.co/datasets/GEM/wiki_auto_asset_turk/discussions/5) with a fix. While waiting for it to be merged, you can load the dataset from the PR branch with `datasets.load_dataset("GEM/wiki_auto_asset_turk", revision="refs/pr/5")` | ### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call
... | 27 | Unable to load wiki_auto_asset_turk from GEM
### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filena... | [
-0.1644713282585144,
0.025188952684402466,
0.050996411591768265,
0.6145248413085938,
0.43248093128204346,
0.11137401312589645,
0.35678306221961975,
0.29374057054519653,
0.1904025375843048,
0.0366792157292366,
0.23593732714653015,
0.47361600399017334,
-0.23568369448184967,
-0.10596699267625... |
https://github.com/huggingface/datasets/issues/6841 | Unable to load wiki_auto_asset_turk from GEM | Thanks Mario. Still getting the same issue though with the suggested fix
#cat gem_sari.py
import datasets
print (datasets.__version__)
dataset =datasets.load_dataset("GEM/wiki_auto_asset_turk", revision="refs/pr/5")
End up with
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-pa... | ### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call
... | 109 | Unable to load wiki_auto_asset_turk from GEM
### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filena... | [
-0.1644713282585144,
0.025188952684402466,
0.050996411591768265,
0.6145248413085938,
0.43248093128204346,
0.11137401312589645,
0.35678306221961975,
0.29374057054519653,
0.1904025375843048,
0.0366792157292366,
0.23593732714653015,
0.47361600399017334,
-0.23568369448184967,
-0.10596699267625... |
https://github.com/huggingface/datasets/issues/6841 | Unable to load wiki_auto_asset_turk from GEM | Tried that a couple of time. It does download the data fresh but end up with same error. Is there a way to see if its using the right version ? | ### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call
... | 31 | Unable to load wiki_auto_asset_turk from GEM
### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filena... | [
-0.1644713282585144,
0.025188952684402466,
0.050996411591768265,
0.6145248413085938,
0.43248093128204346,
0.11137401312589645,
0.35678306221961975,
0.29374057054519653,
0.1904025375843048,
0.0366792157292366,
0.23593732714653015,
0.47361600399017334,
-0.23568369448184967,
-0.10596699267625... |
https://github.com/huggingface/datasets/issues/6841 | Unable to load wiki_auto_asset_turk from GEM | the datasets version is 2.18.
I wanted to see if the command datasets.load_dataset("GEM/wiki_auto_asset_turk", revision="refs/pr/5") is using the right revision (refs/pr/5).
| ### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call
... | 20 | Unable to load wiki_auto_asset_turk from GEM
### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filena... | [
-0.1644713282585144,
0.025188952684402466,
0.050996411591768265,
0.6145248413085938,
0.43248093128204346,
0.11137401312589645,
0.35678306221961975,
0.29374057054519653,
0.1904025375843048,
0.0366792157292366,
0.23593732714653015,
0.47361600399017334,
-0.23568369448184967,
-0.10596699267625... |
https://github.com/huggingface/datasets/issues/6841 | Unable to load wiki_auto_asset_turk from GEM | The issue is fixed once the fixing PR has been merged and the dataset has been converted to Parquet.
If the problem persists on your side, you should update your `datasets` library:
```shell
pip install -U datasets
```
And if you have already the latest version of `datasets`, then you need to delete the old vers... | ### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call
... | 70 | Unable to load wiki_auto_asset_turk from GEM
### Describe the bug
I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filena... | [
-0.1644713282585144,
0.025188952684402466,
0.050996411591768265,
0.6145248413085938,
0.43248093128204346,
0.11137401312589645,
0.35678306221961975,
0.29374057054519653,
0.1904025375843048,
0.0366792157292366,
0.23593732714653015,
0.47361600399017334,
-0.23568369448184967,
-0.10596699267625... |
https://github.com/huggingface/datasets/issues/6837 | Cannot use cached dataset without Internet connection (or when servers are down) | There are 2 workarounds, tho:
1. Download datasets from web and just load them locally
2. Use metadata directly (temporal solution, since metadata can change)
```
import datasets
from datasets.data_files import DataFilesDict, DataFilesList
data_files_list = DataFilesList(
[
"hf://datasets/allenai/... | ### Describe the bug
I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues).
The problem why I can't use it:
`data_files` argument from `datasets.load_dataset()` function get it updates from the serve... | 93 | Cannot use cached dataset without Internet connection (or when servers are down)
### Describe the bug
I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues).
The problem why I can't use it:
`data_fi... | [
-0.17088213562965393,
0.09447182714939117,
0.08116744458675385,
0.41006356477737427,
0.3210458755493164,
0.06577769666910172,
0.37767836451530457,
0.0363660492002964,
0.2188761830329895,
0.20855626463890076,
0.09173806756734848,
0.13869549334049225,
-0.03013565018773079,
-0.098603710532188... |
https://github.com/huggingface/datasets/issues/6837 | Cannot use cached dataset without Internet connection (or when servers are down) | Hi! You need to set the `HF_DATASETS_OFFLINE` env variable to `1` to load cached datasets offline, as explained in the docs [here](https://huggingface.co/docs/datasets/v2.19.0/en/loading#offline). | ### Describe the bug
I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues).
The problem why I can't use it:
`data_files` argument from `datasets.load_dataset()` function get it updates from the serve... | 22 | Cannot use cached dataset without Internet connection (or when servers are down)
### Describe the bug
I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues).
The problem why I can't use it:
`data_fi... | [
-0.16282786428928375,
-0.0011418312788009644,
0.0749388188123703,
0.3900284171104431,
0.30762583017349243,
0.08525867015123367,
0.37762191891670227,
-0.0045507438480854034,
0.27046650648117065,
0.19738924503326416,
0.08295249938964844,
0.04613589495420456,
-0.0115044629201293,
-0.049671046... |
https://github.com/huggingface/datasets/issues/6837 | Cannot use cached dataset without Internet connection (or when servers are down) | Just tested. It doesn't work, because of the exact problem I described above: hash of dataset config is different.
The only error difference is the reason why it cannot connect to HuggingFace (now it's 'offline mode is enabled')
.
The problem why I can't use it:
`data_files` argument from `datasets.load_dataset()` function get it updates from the serve... | 39 | Cannot use cached dataset without Internet connection (or when servers are down)
### Describe the bug
I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues).
The problem why I can't use it:
`data_fi... | [
-0.1979820877313614,
0.004415258765220642,
0.04450315609574318,
0.4112086296081543,
0.3337099552154541,
0.06295847147703171,
0.3772262632846832,
-0.014828983694314957,
0.238040030002594,
0.1506214141845703,
0.08725883811712265,
0.08241887390613556,
-0.020424801856279373,
-0.023453861474990... |
https://github.com/huggingface/datasets/issues/6833 | Super slow iteration with trivial custom transform | Similar issue in text process
```python
tokenizer=AutoTokenizer.from_pretrained(model_dir[args.model])
train_dataset=datasets.load_from_disk(dataset_dir[args.dataset],keep_in_memory=True)['train']
train_dataset=train_dataset.map(partial(dname2func[args.dataset],tokenizer=tokenizer),batched=True,num_proc =50,re... | ### Describe the bug
Dataset is 10X slower when applying trivial transforms:
```
import time
import numpy as np
from datasets import Dataset, Features, Array2D
a = np.zeros((800, 800))
a = np.stack([a] * 1000)
features = Features({"a": Array2D(shape=(800, 800), dtype="uint8")})
ds1 = Dataset.from_dict({"... | 50 | Super slow iteration with trivial custom transform
### Describe the bug
Dataset is 10X slower when applying trivial transforms:
```
import time
import numpy as np
from datasets import Dataset, Features, Array2D
a = np.zeros((800, 800))
a = np.stack([a] * 1000)
features = Features({"a": Array2D(shape=(800,... | [
-0.3822912871837616,
-0.16365310549736023,
-0.00981970690190792,
-0.05723545700311661,
0.33164602518081665,
0.010098747909069061,
0.5508282780647278,
0.15641410648822784,
0.10445114970207214,
0.037332676351070404,
-0.09431147575378418,
0.6537461280822754,
-0.2805955410003662,
0.12174079567... |
https://github.com/huggingface/datasets/issues/6833 | Super slow iteration with trivial custom transform | The transform currently replaces the numpy formatting.
So you're back to copying data to long python lists which is super slow.
It would be cool for the transform to not remove the formatting in this case, but this requires a few changes in the lib | ### Describe the bug
Dataset is 10X slower when applying trivial transforms:
```
import time
import numpy as np
from datasets import Dataset, Features, Array2D
a = np.zeros((800, 800))
a = np.stack([a] * 1000)
features = Features({"a": Array2D(shape=(800, 800), dtype="uint8")})
ds1 = Dataset.from_dict({"... | 45 | Super slow iteration with trivial custom transform
### Describe the bug
Dataset is 10X slower when applying trivial transforms:
```
import time
import numpy as np
from datasets import Dataset, Features, Array2D
a = np.zeros((800, 800))
a = np.stack([a] * 1000)
features = Features({"a": Array2D(shape=(800,... | [
-0.3285689949989319,
-0.135402649641037,
-0.03535167872905731,
-0.082546666264534,
0.3204980492591858,
0.033024854958057404,
0.46783801913261414,
0.22104917466640472,
0.15049003064632416,
-0.0012368634343147278,
-0.11811057478189468,
0.5683466196060181,
-0.2687753140926361,
0.1582103669643... |
https://github.com/huggingface/datasets/issues/6824 | Winogrande does not seem to be compatible with datasets version of 1.18.0 | Hi ! Do you mean 2.18 ? Can you try to update `fsspec` and `huggingface_hub` ?
```
pip install -U fsspec huggingface_hub
``` | ### Describe the bug
I get the following error when simply running `load_dataset('winogrande','winogrande_xl')`.
I do not have such an issue in the 1.17.0 version.
```Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line... | 23 | Winogrande does not seem to be compatible with datasets version of 1.18.0
### Describe the bug
I get the following error when simply running `load_dataset('winogrande','winogrande_xl')`.
I do not have such an issue in the 1.17.0 version.
```Traceback (most recent call last):
File "<stdin>", line 1, in <modu... | [
-0.7672982811927795,
0.12222111225128174,
0.05378527566790581,
0.08904284238815308,
0.15772297978401184,
0.13006216287612915,
0.45174601674079895,
0.33899053931236267,
-0.04396592080593109,
0.0476512685418129,
0.15696606040000916,
0.5043919682502747,
-0.08829959481954575,
0.148674249649047... |
https://github.com/huggingface/datasets/issues/6814 | `map` with `num_proc` > 1 leads to OOM | Hi ! You can try to reduce `writer_batch_size`. It corresponds to the number of samples that stay in RAM before being flushed to disk | ### Describe the bug
When running `map` on parquet dataset loaded from local machine, the RAM usage increases linearly eventually leading to OOM. I was wondering if I should I save the `cache_file` after every n steps in order to prevent this?
### Steps to reproduce the bug
```
ds = load_dataset("parquet", data... | 24 | `map` with `num_proc` > 1 leads to OOM
### Describe the bug
When running `map` on parquet dataset loaded from local machine, the RAM usage increases linearly eventually leading to OOM. I was wondering if I should I save the `cache_file` after every n steps in order to prevent this?
### Steps to reproduce the bug
... | [
-0.4401771128177643,
-0.40566104650497437,
0.08709584176540375,
0.2516528069972992,
0.11869972199201584,
-0.09441425651311874,
0.20353905856609344,
0.11727042496204376,
0.19048455357551575,
0.1920597404241562,
0.36395880579948425,
0.49853959679603577,
-0.38618892431259155,
0.05605891346931... |
https://github.com/huggingface/datasets/issues/6810 | Allow deleting a subset/config from a no-script dataset | Thanks for your comment, @mariosasko. Or maybe both (in Python and as CLI command)? The Python command would be just the reverse of `push_to_hub`...
I am working on a draft implementation, so we can discuss about the API and UX. | As proposed by @BramVanroy, it would be neat to have this functionality through the API. | 40 | Allow deleting a subset/config from a no-script dataset
As proposed by @BramVanroy, it would be neat to have this functionality through the API.
Thanks for your comment, @mariosasko. Or maybe both (in Python and as CLI command)? The Python command would be just the reverse of `push_to_hub`...
I am working on a d... | [
-0.22531366348266602,
-0.2988707423210144,
-0.15333543717861176,
-0.26405125856399536,
-0.31296950578689575,
-0.010717570781707764,
0.3022577166557312,
0.32436999678611755,
0.22865477204322815,
0.3413943648338318,
-0.06061657518148422,
0.28991472721099854,
-0.39521804451942444,
0.604092836... |
https://github.com/huggingface/datasets/issues/6805 | Batched mapping of existing string column casts boolean to string | This seems to be hardcoded behavior in table.py `array_cast`.
```python
if (
not allow_number_to_str
and pa.types.is_string(pa_type)
and (pa.types.is_floating(array.type) or pa.types.is_integer(array.type))
):
raise TypeError(
f"Couldn't ca... | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | 74 | Batched mapping of existing string column casts boolean to string
### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when... | [
-0.05853521451354027,
-0.1928844004869461,
0.049546901136636734,
-0.00908283144235611,
0.1846773475408554,
0.09128903597593307,
0.5908911824226379,
0.332765132188797,
0.3084041476249695,
0.05234541743993759,
-0.040871575474739075,
0.6944421529769897,
0.05864907428622246,
0.0265546571463346... |
https://github.com/huggingface/datasets/issues/6805 | Batched mapping of existing string column casts boolean to string | I'll gladly create a PR but not sure what the behavior should be.
Should a value returned from map be cast to the current feature?
At the moment this seems very inconsistent since `datetime `is also cast (this would only fix `boolean`) but nested structures are not.
```python
dset = Dataset.from_dict({"a": ["He... | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | 109 | Batched mapping of existing string column casts boolean to string
### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when... | [
-0.0327555388212204,
-0.20743200182914734,
0.06965263187885284,
0.04518108069896698,
0.0458211787045002,
0.06987122446298599,
0.5871598124504089,
0.28447648882865906,
0.357866108417511,
-0.008011311292648315,
0.07180257141590118,
0.5964505076408386,
-0.0023967577144503593,
0.05721408873796... |
https://github.com/huggingface/datasets/issues/6805 | Batched mapping of existing string column casts boolean to string | Indeed, it also makes sense to raise a `TypeError` for temporal and decimal types.
> Is there are reason to cast the value if the user doesn't specify it explicitly?
This is how PyArrow's built-in `cast` behaves - it allows casting from primitive types to strings. Hence, we need `allow_number_to_str` to disallow ... | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | 117 | Batched mapping of existing string column casts boolean to string
### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when... | [
-0.14343000948429108,
-0.04710235446691513,
0.09535335004329681,
0.007400814443826675,
0.309475839138031,
0.06637474149465561,
0.5846834778785706,
0.3394041359424591,
0.0745493620634079,
0.14348801970481873,
-0.07709448039531708,
0.6000705361366272,
-0.05066084861755371,
-0.044704377651214... |
https://github.com/huggingface/datasets/issues/6805 | Batched mapping of existing string column casts boolean to string | Would just `allow_primitive_to_str` work?
This should include all `numeric`, `boolean `and `temporal`formats.
Note that at least in the [ C++ implementation](https://arrow.apache.org/docs/cpp/api/utilities.html#_CPPv410is_numericRK8DataType) `numeric `seems to exclude `boolean`.
[](https://arrow.apache.org/docs/cp... | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | 27 | Batched mapping of existing string column casts boolean to string
### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when... | [
-0.1160435676574707,
-0.13926109671592712,
0.1097707599401474,
-0.10254994034767151,
0.20062807202339172,
0.07319114357233047,
0.5531147122383118,
0.3770013451576233,
0.24099013209342957,
0.041817888617515564,
0.03618139028549194,
0.6365835666656494,
0.009841300547122955,
0.059536390006542... |
https://github.com/huggingface/datasets/issues/6805 | Batched mapping of existing string column casts boolean to string | Indeed, `allow_primitive_to_str` sounds better.
PS: PyArrow's `pa.types.is_primitive` returns `False` for decimal types, but I think is okay for us to treat decimals as primitive types (or we can have `allow_decimal_to_str` to be fully consistent with PyArrow) | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | 36 | Batched mapping of existing string column casts boolean to string
### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when... | [
-0.1349276453256607,
-0.06464986503124237,
0.08175201714038849,
-0.045226141810417175,
0.22103580832481384,
0.06167697161436081,
0.5447356700897217,
0.37978339195251465,
0.13651803135871887,
0.09913846850395203,
-0.034818291664123535,
0.6482187509536743,
0.05565078184008598,
0.007406229153... |
https://github.com/huggingface/datasets/issues/6801 | got fileNotFound | Hi! I'll open a PR on the Hub to fix this, but please use the Hub's [Community tab](https://huggingface.co/datasets/nyanko7/danbooru2023/discussions) to report such issues in the future. | ### Describe the bug
When I use load_dataset to load the nyanko7/danbooru2023 data set, the cache is read in the form of a symlink. There may be a problem with the arrow_dataset initialization process and I get FileNotFoundError: [Errno 2] No such file or directory: '2945000.jpg'
### Steps to reproduce the bug
#code... | 25 | got fileNotFound
### Describe the bug
When I use load_dataset to load the nyanko7/danbooru2023 data set, the cache is read in the form of a symlink. There may be a problem with the arrow_dataset initialization process and I get FileNotFoundError: [Errno 2] No such file or directory: '2945000.jpg'
### Steps to repro... | [
-0.1854178011417389,
-0.30319511890411377,
0.07290211319923401,
0.46887606382369995,
0.08416895568370819,
-0.0029570162296295166,
0.5426899194717407,
0.2829395532608032,
0.4018489420413971,
0.0466868132352829,
0.11722849309444427,
0.09341808408498764,
-0.19445611536502838,
-0.1978476941585... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | Hi !
It's possible to multiple files at once:
```python
data_files = "data/*.jsonl"
# Or pass a list of files
langs = ['ka-ml', 'br-sr', 'ka-pt', 'id-ko', ..., 'fi-ze_zh', 'he-kk', 'ka-tr']
data_files = [f"data/{lang}.jsonl" for lang in langs]
ds = load_dataset("loicmagne/open-subtitles-250-bitext-mining", d... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 76 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | Thanks for your reply, it is indeed much faster, however the result is a dataset where all the subsets are "merged" together, the language pair is lost:
```
DatasetDict({
train: Dataset({
features: ['sentence1', 'sentence2'],
num_rows: 247809
})
})
```
I guess I could add a 'lang' featu... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 62 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | Hi @lhoestq over at https://github.com/embeddings-benchmark/mteb/issues/530 we have started examining these issues and would love to make a PR for datasets if we believe there is a way to improve the speed. As I assume you have a better overview than me @lhoestq, would you be interested in a PR, and might you have an i... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 108 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | Can you retry using `datasets` 2.19 ? We improved a lot the speed of downloading datasets with tons of small files.
```
pip install -U datasets
```
Now this takes 17sec on my side instead of the 17min minutes @loicmagne mentioned :)
```python
>>> %time ds = load_dataset("loicmagne/open-subtitles-250-bitext-... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 92 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | > Can you retry using `datasets` 2.19 ? We improved a lot the speed of downloading datasets with tons of small files.
>
> ```
> pip install -U datasets
> ```
>
> Now this takes 17sec on my side instead of the 17min minutes @loicmagne mentioned :)
>
> ```python
> >>> %time ds = load_dataset("loicmagne/open-s... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 182 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6800 | High overhead when loading lots of subsets from the same dataset | It's the fastest way I think :)
Alternatively you can download the dataset repository locally using [huggingface_hub](https://huggingface.co/docs/huggingface_hub/guides/download) (either via CLI or in python) and load the subsets one by one locally using a for loop as you were doing before (just pass the directory p... | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | 51 | High overhead when loading lots of subsets from the same dataset
### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As p... | [
-0.3364805281162262,
-0.5688940286636353,
-0.09787166118621826,
0.5463959574699402,
-0.1324806660413742,
-0.007739365100860596,
0.07414510101079941,
0.28510570526123047,
0.3549295663833618,
0.07160203158855438,
-0.4010574221611023,
0.19697675108909607,
0.0950620174407959,
0.097148947417736... |
https://github.com/huggingface/datasets/issues/6798 | `DatasetBuilder._split_generators` incomplete type annotation | There is also the [`MockDownloadManager`](https://github.com/JonasLoos/datasets/blob/main/src/datasets/download/mock_download_manager.py#L33), which seems like it might get passed here too. However, to me, it doesn't really seem relevant to the users of the datasets library, so I would just ignore it. What do you think... | ### Describe the bug
The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature:
```python
class DatasetBuilder:
def _split_generators(self, dl_manager: DownloadMan... | 40 | `DatasetBuilder._split_generators` incomplete type annotation
### Describe the bug
The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature:
```python
class DatasetB... | [
-0.263654887676239,
0.07787889242172241,
0.03328349068760872,
0.39026403427124023,
0.226485475897789,
-0.071620874106884,
0.2927022874355316,
0.14622260630130768,
-0.057447630912065506,
-0.030006587505340576,
0.024113286286592484,
0.2629048526287079,
-0.156215637922287,
0.0744917243719101,... |
https://github.com/huggingface/datasets/issues/6798 | `DatasetBuilder._split_generators` incomplete type annotation | The API (`dummy_data` CLI command ) that uses the `MockDownloadManager` has been deprecated, so ignoring it sounds good! | ### Describe the bug
The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature:
```python
class DatasetBuilder:
def _split_generators(self, dl_manager: DownloadMan... | 18 | `DatasetBuilder._split_generators` incomplete type annotation
### Describe the bug
The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature:
```python
class DatasetB... | [
-0.263654887676239,
0.07787889242172241,
0.03328349068760872,
0.39026403427124023,
0.226485475897789,
-0.071620874106884,
0.2927022874355316,
0.14622260630130768,
-0.057447630912065506,
-0.030006587505340576,
0.024113286286592484,
0.2629048526287079,
-0.156215637922287,
0.0744917243719101,... |
https://github.com/huggingface/datasets/issues/6796 | CI is broken due to hf-internal-testing/dataset_with_script | Finally:
- the initial issue seems it was temporary
- there is a different issue now: https://github.com/huggingface/datasets/actions/runs/8627153993/job/23646584590?pr=6797
```
FAILED tests/test_load.py::ModuleFactoryTest::test_HubDatasetModuleFactoryWithParquetExport - datasets.utils._dataset_viewer.DatasetViewer... | CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False = all(<generator object test_load_dataset_distributed_with_scr... | 55 | CI is broken due to hf-internal-testing/dataset_with_script
CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False ... | [
-0.4997487962245941,
0.004399195313453674,
0.029181867837905884,
-0.011295028030872345,
0.2258736789226532,
-0.15919221937656403,
0.3541249632835388,
0.2953513562679291,
0.08836826682090759,
0.2188534140586853,
-0.030934633687138557,
0.23483261466026306,
0.007308386266231537,
0.60864353179... |
https://github.com/huggingface/datasets/issues/6796 | CI is broken due to hf-internal-testing/dataset_with_script | This URL: https://datasets-server.huggingface.co/parquet?dataset=hf-internal-testing/dataset_with_script
raises:
> {"error":"The dataset viewer doesn't support this dataset because it runs arbitrary python code. Please open a discussion in the discussion tab if you think this is an error and tag @lhoestq and @severo.... | CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False = all(<generator object test_load_dataset_distributed_with_scr... | 49 | CI is broken due to hf-internal-testing/dataset_with_script
CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False ... | [
-0.471706748008728,
-0.15549853444099426,
0.026893705129623413,
-0.13122083246707916,
0.05236941576004028,
-0.14564239978790283,
0.4287434220314026,
0.19071753323078156,
0.3088235557079315,
0.30294346809387207,
-0.1492748111486435,
0.2744884192943573,
-0.031457897275686264,
0.5667695999145... |
https://github.com/huggingface/datasets/issues/6796 | CI is broken due to hf-internal-testing/dataset_with_script | OK, I just saw this PR:
- https://github.com/huggingface/dataset-viewer/pull/2689
Once merged and deployed, it should fix the issue. | CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False = all(<generator object test_load_dataset_distributed_with_scr... | 17 | CI is broken due to hf-internal-testing/dataset_with_script
CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False ... | [
-0.5324453711509705,
-0.08422461897134781,
0.017368055880069733,
-0.07246415317058563,
0.2465011328458786,
-0.11196476221084595,
0.3603888154029846,
0.4335522949695587,
0.15042458474636078,
0.33519166707992554,
-0.18170683085918427,
0.1648714393377304,
0.08324290812015533,
0.51768571138381... |
https://github.com/huggingface/datasets/issues/6796 | CI is broken due to hf-internal-testing/dataset_with_script | Once the script-dataset has been allowed in the dataset-viewer, we should fix our test to make the CI pass.
I am addressing this. | CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False = all(<generator object test_load_dataset_distributed_with_scr... | 23 | CI is broken due to hf-internal-testing/dataset_with_script
CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False ... | [
-0.5685020089149475,
-0.028953053057193756,
-0.04315004497766495,
-0.09804169833660126,
0.19765886664390564,
-0.18587946891784668,
0.3800262212753296,
0.3463384211063385,
0.21350279450416565,
0.31035852432250977,
-0.10303186625242233,
0.1566164195537567,
0.13097599148750305,
0.592073440551... |
https://github.com/huggingface/datasets/issues/6791 | `add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1) | I realized I was passing a string column to this instead of float. Is it possible to add a warning or error to prevent users from falsely believing there's a bug? | ### Describe the bug
Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace
```python
214 def replacement_add(self, x):
215 """Adds vectors to the index.
216 The index must be trained before vectors can be added to it.
217 Th... | 31 | `add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1)
### Describe the bug
Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace
```python
214 def replacement_add(self, x):
215 """Adds vectors to the index.
... | [
-0.024560395628213882,
-0.14324170351028442,
0.00876142829656601,
0.12546207010746002,
0.2912639379501343,
0.2699686586856842,
0.5877211689949036,
0.2749163508415222,
0.23181891441345215,
0.37231361865997314,
0.3932422995567322,
0.23768606781959534,
0.05539057403802872,
-0.2544329166412353... |
https://github.com/huggingface/datasets/issues/6791 | `add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1) | Hello!
I agree that we could add some safeguards around the type of `ds[column]`. At least for FAISS, we need the column to be made of embeddings as FAISS doesn't perform the embeddings itself.
I can propose a PR sometime this week. | ### Describe the bug
Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace
```python
214 def replacement_add(self, x):
215 """Adds vectors to the index.
216 The index must be trained before vectors can be added to it.
217 Th... | 42 | `add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1)
### Describe the bug
Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace
```python
214 def replacement_add(self, x):
215 """Adds vectors to the index.
... | [
0.06022581085562706,
-0.1333373785018921,
0.051341500133275986,
0.2815895974636078,
0.27468815445899963,
0.2707841396331787,
0.6786123514175415,
0.29134684801101685,
0.43802809715270996,
0.4102709889411926,
0.198484405875206,
0.3571662902832031,
0.15970808267593384,
-0.052347730845212936,
... |
https://github.com/huggingface/datasets/issues/6789 | Issue with map | Default `writer_batch_size `is set to 1000 (see [map](https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Dataset.map)).
The "tmp1335llua" is probably the temp file it creates while writing to disk.
Maybe try lowering the `writer_batch_size`.
For multi-processing you should prob... | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | 66 | Issue with map
### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive spa... | [
-0.22016489505767822,
-0.1372167468070984,
-0.12085117399692535,
0.2797888517379761,
0.2651703357696533,
0.06365399807691574,
0.048693347722291946,
0.5038878321647644,
0.03614354506134987,
0.47659629583358765,
0.32433271408081055,
0.49251845479011536,
-0.1788398027420044,
-0.16865730285644... |
https://github.com/huggingface/datasets/issues/6789 | Issue with map | Hi @Modexus,
Thank you very much for the help! Yep after playing around with map, I managed to get the parallel processing to work by implementing it like you suggested.
Regarding the temp files, it seems like the temp files just keep growing in size as the map continues. Eventually, once map finishes, the temp f... | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | 171 | Issue with map
### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive spa... | [
-0.22016489505767822,
-0.1372167468070984,
-0.12085117399692535,
0.2797888517379761,
0.2651703357696533,
0.06365399807691574,
0.048693347722291946,
0.5038878321647644,
0.03614354506134987,
0.47659629583358765,
0.32433271408081055,
0.49251845479011536,
-0.1788398027420044,
-0.16865730285644... |
https://github.com/huggingface/datasets/issues/6789 | Issue with map | I'm having a similar issue with the spectrographs taking up an incredibly large amount of space. (i.e. 100GB for 3GB of audio). Is this really normal behavior? | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | 27 | Issue with map
### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive spa... | [
-0.22016489505767822,
-0.1372167468070984,
-0.12085117399692535,
0.2797888517379761,
0.2651703357696533,
0.06365399807691574,
0.048693347722291946,
0.5038878321647644,
0.03614354506134987,
0.47659629583358765,
0.32433271408081055,
0.49251845479011536,
-0.1788398027420044,
-0.16865730285644... |
https://github.com/huggingface/datasets/issues/6789 | Issue with map | Upon taking a look at the hex contents of the mapped dataset files I found that the overwhelming majority of the data contained within them was duplicated junk similar to this. I'm not very familiar with the inner workings of AI but I have to assume this is an inefficient way of storing data at best and a bug at worst.... | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | 62 | Issue with map
### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive spa... | [
-0.22016489505767822,
-0.1372167468070984,
-0.12085117399692535,
0.2797888517379761,
0.2651703357696533,
0.06365399807691574,
0.048693347722291946,
0.5038878321647644,
0.03614354506134987,
0.47659629583358765,
0.32433271408081055,
0.49251845479011536,
-0.1788398027420044,
-0.16865730285644... |
https://github.com/huggingface/datasets/issues/6789 | Issue with map | Same problem, dataset.map takes long time to process 12GB raw audio data and create 200GB cache file. Is there any method can run process(map) during train, instead current run
once and save cache file ? | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | 35 | Issue with map
### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive spa... | [
-0.22016489505767822,
-0.1372167468070984,
-0.12085117399692535,
0.2797888517379761,
0.2651703357696533,
0.06365399807691574,
0.048693347722291946,
0.5038878321647644,
0.03614354506134987,
0.47659629583358765,
0.32433271408081055,
0.49251845479011536,
-0.1788398027420044,
-0.16865730285644... |
https://github.com/huggingface/datasets/issues/6788 | A Question About the Map Function | All data is saved in the arrow format on disk.
If you return a tensor it gets converted to arrow before saving to disk when using map.
To get a tensor when you access data elements you can use `dataset.set_format("pt")`.
Note that this just changes how the data is loaded, not how it is stored. | ### Describe the bug
Hello,
I have a question regarding the map function in the Hugging Face datasets.
The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned example should be of type Torch.ten... | 55 | A Question About the Map Function
### Describe the bug
Hello,
I have a question regarding the map function in the Hugging Face datasets.
The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned... | [
-0.07809469848871231,
-0.5261644721031189,
-0.015050448477268219,
0.2572656571865082,
0.17012904584407806,
0.15750515460968018,
0.288708359003067,
0.19567933678627014,
0.6957500576972961,
0.004863850772380829,
0.029340626671910286,
0.5183698534965515,
-0.04254040867090225,
-0.0635768175125... |
https://github.com/huggingface/datasets/issues/6788 | A Question About the Map Function | > All data is saved in the arrow format on disk. If you return a tensor it gets converted to arrow before saving to disk when using map.
>
> To get a tensor when you access data elements you can use `dataset.set_format("pt")`. Note that this just changes how the data is loaded, not how it is stored.
Thank you ver... | ### Describe the bug
Hello,
I have a question regarding the map function in the Hugging Face datasets.
The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned example should be of type Torch.ten... | 122 | A Question About the Map Function
### Describe the bug
Hello,
I have a question regarding the map function in the Hugging Face datasets.
The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned... | [
-0.09028027206659317,
-0.5382764339447021,
-0.02304200269281864,
0.21255333721637726,
0.1866646707057953,
0.12995660305023193,
0.27998730540275574,
0.1794217824935913,
0.6446641683578491,
0.0019021108746528625,
0.01215516310185194,
0.4794826805591583,
-0.048781126737594604,
-0.055350478738... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | From my current understanding, this timeout is only used when we need to get the results.
One of:
1. All tasks are done
2. One worker died
Your function should work fine and it's definitely a bug if it doesn't. | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 40 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.08302028477191925,
-0.3202267289161682,
-0.12161970138549805,
-0.14132612943649292,
-0.08951155841350555,
-0.1312093585729599,
0.2986030876636505,
0.05766239017248154,
0.26414912939071655,
0.21171939373016357,
0.671402096748352,
0.30782267451286316,
0.020487602800130844,
-0.191791042685... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | When one of the `map`'s worker processes crashes, the linked code re-raises an error from the crash and returns it to the caller.
If your question is how to limit the time of long-running tasks/worker processes, such functionality doesn't exist in `datasets` (yet), which means you need to implement it yourself.
E... | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 152 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.4587858021259308,
-0.22682136297225952,
-0.1437147706747055,
-0.18995685875415802,
-0.07908246666193008,
-0.12760818004608154,
0.34103143215179443,
0.14496548473834991,
0.329811155796051,
0.21523816883563995,
0.48750123381614685,
0.39861777424812317,
-0.20390483736991882,
-0.08528787642... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | > From my current understanding, this timeout is only used when we need to get the results.
>
> One of:
>
> 1. All tasks are done
> 2. One worker died
>
> Your function should work fine and it's definitely a bug if it doesn't.
thanks for responding! can you reproduce the stuck with the above example code? | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 61 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.05328620970249176,
-0.32660120725631714,
-0.1180211752653122,
-0.11633157730102539,
-0.06923969835042953,
-0.09220893681049347,
0.2910594046115875,
0.06648428738117218,
0.2722051441669464,
0.21976447105407715,
0.6478757262229919,
0.3284038007259369,
0.0023593828082084656,
-0.15714636445... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | > When one of the `map`'s worker processes crashes, the linked code re-raises an error from the crash and returns it to the caller.
>
> If your question is how to limit the time of long-running tasks/worker processes, such functionality doesn't exist in `datasets` (yet), which means you need to implement it yourself... | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 224 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.41645127534866333,
-0.24910253286361694,
-0.13754624128341675,
-0.16449712216854095,
-0.06373206526041031,
-0.1262134611606598,
0.3471662402153015,
0.15491218864917755,
0.32826536893844604,
0.21145561337471008,
0.4979971647262573,
0.4093160927295685,
-0.17273324728012085,
-0.10743519663... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | > thanks for responding! However, I don't think we should use signal in the context of multiprocessing since sometimes it will crash one process and raise the following error
The above code has `try/except` to catch the error from the handler. Or do you get an error other than `TimeoutError`? | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 50 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.3375905156135559,
-0.3138829469680786,
-0.09935571253299713,
-0.12534309923648834,
-0.15953339636325836,
-0.12933114171028137,
0.42860448360443115,
-0.010126423090696335,
0.24521991610527039,
0.2920992970466614,
0.506821870803833,
0.37501272559165955,
-0.16985999047756195,
-0.1655199974... |
https://github.com/huggingface/datasets/issues/6787 | TimeoutError in map | > > thanks for responding! However, I don't think we should use signal in the context of multiprocessing since sometimes it will crash one process and raise the following error
>
> The above code has `try/except` to catch the error from the handler. Or do you get an error other than `TimeoutError`?
yup, it will r... | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | 81 | TimeoutError in map
### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function... | [
-0.34850868582725525,
-0.31877267360687256,
-0.0801568329334259,
-0.10421864688396454,
-0.13138437271118164,
-0.15662577748298645,
0.3912196457386017,
-0.020958110690116882,
0.14485031366348267,
0.3016989827156067,
0.496257483959198,
0.3947380483150482,
-0.14380799233913422,
-0.14730437099... |
https://github.com/huggingface/datasets/issues/6783 | AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook | Hi! You can fix this by updating the `datasets` package with `pip install -U datasets` and restarting the notebook.
| ### Describe the bug
# problem
I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20.
## code for resampling
```
from datasets import load_dataset, Audio
from transformers import AutoFeatureExtractor
from transformers imp... | 19 | AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook
### Describe the bug
# problem
I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20.
## code for resampling
```
from datasets import load_datas... | [
-0.22040624916553497,
0.02457261085510254,
-0.03590615093708038,
0.00249418243765831,
0.4256819486618042,
-0.05877440422773361,
0.38796424865722656,
0.31887146830558777,
-0.18779487907886505,
0.3352118730545044,
-0.2983803451061249,
0.683189332485199,
-0.2616359293460846,
0.252659529447555... |
https://github.com/huggingface/datasets/issues/6783 | AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook | Kaggle removed the problematic `datasets==2.1.0` pin last week, so I'm closing this issue (now it pre-installs the latest version). | ### Describe the bug
# problem
I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20.
## code for resampling
```
from datasets import load_dataset, Audio
from transformers import AutoFeatureExtractor
from transformers imp... | 19 | AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook
### Describe the bug
# problem
I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20.
## code for resampling
```
from datasets import load_datas... | [
-0.22040624916553497,
0.02457261085510254,
-0.03590615093708038,
0.00249418243765831,
0.4256819486618042,
-0.05877440422773361,
0.38796424865722656,
0.31887146830558777,
-0.18779487907886505,
0.3352118730545044,
-0.2983803451061249,
0.683189332485199,
-0.2616359293460846,
0.252659529447555... |
https://github.com/huggingface/datasets/issues/6782 | Image cast_storage very slow for arrays (e.g. numpy, tensors) | This may be a solution that only changes `cast_storage` of `Image`.
However, I'm not totally sure that the assumptions hold that are made about the `ListArray`.
```python
elif pa.types.is_list(storage.type):
from .features import Array3DExtensionType
def get_shapes(arr):
shape = ()
wh... | Update: see comments below
### Describe the bug
Operations that save an image from a path are very slow.
I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` before being converted to a numpy array again.
`pylist` is alread... | 325 | Image cast_storage very slow for arrays (e.g. numpy, tensors)
Update: see comments below
### Describe the bug
Operations that save an image from a path are very slow.
I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` befo... | [
-0.20979847013950348,
-0.07302135229110718,
-0.0948244035243988,
0.2252599000930786,
0.46149539947509766,
0.0019903481006622314,
0.2881958782672882,
0.21179988980293274,
0.04564521089196205,
0.21190133690834045,
-0.1347082406282425,
0.47250670194625854,
-0.1871844381093979,
-0.567169308662... |
https://github.com/huggingface/datasets/issues/6782 | Image cast_storage very slow for arrays (e.g. numpy, tensors) | This actually applies to all arrays (numpy or tensors like in torch), not only from external files.
```python
import numpy as np
import datasets
ds = datasets.Dataset.from_dict(
{"image": [np.random.randint(0, 255, (2048, 2048, 3), dtype=np.uint8)]},
features=datasets.Features({"image": datasets.Image(d... | Update: see comments below
### Describe the bug
Operations that save an image from a path are very slow.
I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` before being converted to a numpy array again.
`pylist` is alread... | 42 | Image cast_storage very slow for arrays (e.g. numpy, tensors)
Update: see comments below
### Describe the bug
Operations that save an image from a path are very slow.
I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` befo... | [
-0.20979847013950348,
-0.07302135229110718,
-0.0948244035243988,
0.2252599000930786,
0.46149539947509766,
0.0019903481006622314,
0.2881958782672882,
0.21179988980293274,
0.04564521089196205,
0.21190133690834045,
-0.1347082406282425,
0.47250670194625854,
-0.1871844381093979,
-0.567169308662... |
https://github.com/huggingface/datasets/issues/6778 | Dataset.to_csv() missing commas in columns with lists | Hello!
This is due to how pandas write numpy arrays to csv. [Source](https://stackoverflow.com/questions/54753179/to-csv-saves-np-array-as-string-instead-of-as-a-list)
To fix this, you can convert them to list yourselves.
```python
df = ds.to_pandas()
df['int'] = df['int'].apply(lambda arr: list(arr))
df.to_c... | ### Describe the bug
The `to_csv()` method does not output commas in lists. So when the Dataset is loaded back in the data structure of the column with a list is not correct.
Here's an example:
Obviously, it's not as trivial as inserting commas in the list, since its a comma-separated file. But hopefully there... | 64 | Dataset.to_csv() missing commas in columns with lists
### Describe the bug
The `to_csv()` method does not output commas in lists. So when the Dataset is loaded back in the data structure of the column with a list is not correct.
Here's an example:
Obviously, it's not as trivial as inserting commas in the list... | [
-0.008384395390748978,
-0.13903416693210602,
-0.12325026094913483,
0.19654807448387146,
0.28234148025512695,
0.42689791321754456,
0.4133239984512329,
0.25605615973472595,
0.48126405477523804,
-0.1573658138513565,
0.12567222118377686,
0.4118981659412384,
0.2057298719882965,
-0.0987256988883... |
https://github.com/huggingface/datasets/issues/6777 | .Jsonl metadata not detected | @mariosasko it says metadata.csv not found
<img width="1150" alt="image" src="https://github.com/huggingface/datasets/assets/81643693/3754980c-6185-4413-88fa-b499bcdd4195">
dataset = load_dataset('/dataset',metadata.csv)
| workspace
|| source code
| dataset
| |-- images
| |-- metadata.csv
| |-- metadata.js... | ### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular pattern on the front there is a white... | 113 | .Jsonl metadata not detected
### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular patter... | [
-0.04014730453491211,
0.3537839353084564,
-0.0807504653930664,
0.6944766044616699,
0.15412485599517822,
0.035916633903980255,
0.17984703183174133,
0.3550626337528229,
-0.1673462837934494,
-0.13054195046424866,
0.16933415830135345,
0.49628689885139465,
-0.2693973183631897,
-0.09884150326251... |
https://github.com/huggingface/datasets/issues/6777 | .Jsonl metadata not detected | Loading more than one image per row with `imagefolder` is not supported currently. You can subscribe to https://github.com/huggingface/datasets/issues/5760 to see when it will be.
Instead, you can load the dataset with `Dataset.from_generator`:
```python
import json
from datasets import Dataset, Value, Image, Fea... | ### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular pattern on the front there is a white... | 93 | .Jsonl metadata not detected
### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular patter... | [
-0.04014730453491211,
0.3537839353084564,
-0.0807504653930664,
0.6944766044616699,
0.15412485599517822,
0.035916633903980255,
0.17984703183174133,
0.3550626337528229,
-0.1673462837934494,
-0.13054195046424866,
0.16933415830135345,
0.49628689885139465,
-0.2693973183631897,
-0.09884150326251... |
https://github.com/huggingface/datasets/issues/6777 | .Jsonl metadata not detected | hi Thanks for sharing this, Actually I was trying with a webdataset format of the data as well and it did'nt work. Could you share how i can create Dataset object from webdataset format of this data? | ### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular pattern on the front there is a white... | 37 | .Jsonl metadata not detected
### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular patter... | [
-0.04014730453491211,
0.3537839353084564,
-0.0807504653930664,
0.6944766044616699,
0.15412485599517822,
0.035916633903980255,
0.17984703183174133,
0.3550626337528229,
-0.1673462837934494,
-0.13054195046424866,
0.16933415830135345,
0.49628689885139465,
-0.2693973183631897,
-0.09884150326251... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.