html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
list
https://github.com/huggingface/datasets/issues/4490
Currently, we return a list of Torch tensors if their shapes don't match. If they do, we consolidate them into a single Torch tensor.
Use `torch.nested_tensor` for arrays of varying length in torch formatter
Use `torch.nested_tensor` for arrays of varying length in `TorchFormatter`. The PyTorch API of nested tensors is in the prototype stage, so wait for it to become more mature.
24
Use `torch.nested_tensor` for arrays of varying length in torch formatter Use `torch.nested_tensor` for arrays of varying length in `TorchFormatter`. The PyTorch API of nested tensors is in the prototype stage, so wait for it to become more mature. Currently, we return a list of Torch tensors if their shapes don...
[ -0.2889710068702698, -0.8526349067687988, -0.14302466809749603, 0.35508087277412415, -0.11105504631996155, -0.13796979188919067, 0.7188711166381836, 0.3091638684272766, 0.10368745774030685, 0.289964497089386, -0.056155506521463394, -0.05885275825858116, -0.14566470682621002, -0.09063988178...
https://github.com/huggingface/datasets/issues/4483
Hi @sanderland ! Thanks for reporting :) This is a bug, I opened a PR to fix it. We'll do a new release soon In the meantime you can fix it by specifying in advance that the "label" are integers: ```python import numpy as np ds = Dataset.from_dict( { "text": ["the lazy dog jumps over the quick fox...
Dataset.map throws pyarrow.lib.ArrowNotImplementedError when converting from list of empty lists
## Describe the bug Dataset.map throws pyarrow.lib.ArrowNotImplementedError: Unsupported cast from int64 to null using function cast_null when converting from a type of 'empty lists' to 'lists with some type'. This appears to be due to the interaction of arrow internals and some assumptions made by datasets. T...
102
Dataset.map throws pyarrow.lib.ArrowNotImplementedError when converting from list of empty lists ## Describe the bug Dataset.map throws pyarrow.lib.ArrowNotImplementedError: Unsupported cast from int64 to null using function cast_null when converting from a type of 'empty lists' to 'lists with some type'. This ...
[ -0.3065735697746277, 0.06802213191986084, 0.044756922870874405, 0.33611348271369934, 0.4247966408729553, 0.17650914192199707, 0.4541987180709839, 0.25173136591911316, 0.07251904904842377, 0.041654378175735474, -0.12167290598154068, 0.640252947807312, -0.29536402225494385, -0.47698265314102...
https://github.com/huggingface/datasets/issues/4480
Thanks for reporting ! :) cc @andersjohanandreassen can you take a look at this ? Also @cceyda feel free to open an issue at [BIG-Bench](https://github.com/google/BIG-bench) as well regarding the `AttributeError`
Bigbench tensorflow GPU dependency
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
30
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978523373603821, -0.2681732177734375, -0.07095290720462799, 0.27338629961013794, 0.11652705073356628, -0.19607098400592804, 0.1815137416124344, 0.3102879524230957, 0.4163898229598999, 0.0909041240811348, 0.41509586572647095, 0.24147579073905945, 0.17177842557430267, 0.19702012836933136...
https://github.com/huggingface/datasets/issues/4480
I'm on vacation for the next week, so won't be able to do much debugging at the moment. Sorry for the inconvenience. But I did quickly take a look: **pypi**: I managed to reproduce the above error with the pypi version begin out of date. The version on `https://storage.googleapis.com/public_research_data/bigbenc...
Bigbench tensorflow GPU dependency
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
199
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978523373603821, -0.2681732177734375, -0.07095290720462799, 0.27338629961013794, 0.11652705073356628, -0.19607098400592804, 0.1815137416124344, 0.3102879524230957, 0.4163898229598999, 0.0909041240811348, 0.41509586572647095, 0.24147579073905945, 0.17177842557430267, 0.19702012836933136...
https://github.com/huggingface/datasets/issues/4480
Solved. Yes it works on colab, and somehow magically on my machine too now. hmm not sure what was wrong before I had used a fresh venv both times with just the dataloading code, and tried multiple times. (maybe just a wrong tensorflow version got mixed up somehow) The tensorflow call seems to come from the bigbench si...
Bigbench tensorflow GPU dependency
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
84
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978523373603821, -0.2681732177734375, -0.07095290720462799, 0.27338629961013794, 0.11652705073356628, -0.19607098400592804, 0.1815137416124344, 0.3102879524230957, 0.4163898229598999, 0.0909041240811348, 0.41509586572647095, 0.24147579073905945, 0.17177842557430267, 0.19702012836933136...
https://github.com/huggingface/datasets/issues/4478
Hi ! cc @Rocketknight1 maybe you know better ? I'm not too familiar with `tf.data.experimental.save`. Note that `datasets` uses memory mapping, so depending on your hardware and the disk you are using you can expect performance differences with a dataset loaded in RAM
Dataset slow during model training
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
43
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.36474138498306274, -0.043766990303993225, -0.05178172141313553, 0.16746337711811066, 0.44173726439476013, 0.3758907914161682, 0.1319228708744049, 0.5064499974250793, -0.27916282415390015, -0.04508353769779205, 0.006873022764921188, 0.39136040210723877, -0.2845355272293091, -0.0707944557...
https://github.com/huggingface/datasets/issues/4478
Hi @lehrig, I suspect what's happening here is that our `to_tf_dataset()` method has some performance issues when streaming samples. This is usually not a problem, but they become apparent when streaming a vision dataset into a very small vision model, which will need a lot of sample throughput to saturate the GPU. ...
Dataset slow during model training
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
207
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.36474138498306274, -0.043766990303993225, -0.05178172141313553, 0.16746337711811066, 0.44173726439476013, 0.3758907914161682, 0.1319228708744049, 0.5064499974250793, -0.27916282415390015, -0.04508353769779205, 0.006873022764921188, 0.39136040210723877, -0.2845355272293091, -0.0707944557...
https://github.com/huggingface/datasets/issues/4478
Thanks for the information! I have now updated the training code like so: ``` dataset = load_from_disk(prep_data_dir) train_dataset = dataset["train"][:] validation_dataset = dataset["dev"][:] ... model.fit( train_dataset["pixel_values"], train_dataset["label"], epochs=epochs, valida...
Dataset slow during model training
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
282
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.36474138498306274, -0.043766990303993225, -0.05178172141313553, 0.16746337711811066, 0.44173726439476013, 0.3758907914161682, 0.1319228708744049, 0.5064499974250793, -0.27916282415390015, -0.04508353769779205, 0.006873022764921188, 0.39136040210723877, -0.2845355272293091, -0.0707944557...
https://github.com/huggingface/datasets/issues/4478
Regarding the new long ~5 min. wait introduced by the in-memory dataset update: this might be causing it? https://datascience.stackexchange.com/questions/33364/why-model-fit-generator-in-keras-is-taking-so-much-time-even-before-picking-the For now, my save/load hack is still more performant, even though having more ...
Dataset slow during model training
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
35
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.36474138498306274, -0.043766990303993225, -0.05178172141313553, 0.16746337711811066, 0.44173726439476013, 0.3758907914161682, 0.1319228708744049, 0.5064499974250793, -0.27916282415390015, -0.04508353769779205, 0.006873022764921188, 0.39136040210723877, -0.2845355272293091, -0.0707944557...
https://github.com/huggingface/datasets/issues/4478
That 5 minute wait is quite surprising! I don't have a good explanation for why it's happening, but it can't be an issue with `datasets` or `tf.data` because you're just fitting directly on Numpy arrays at this point. All I can suggest is seeing if you can isolate the issue - for example, does fitting on a smaller data...
Dataset slow during model training
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
101
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.36474138498306274, -0.043766990303993225, -0.05178172141313553, 0.16746337711811066, 0.44173726439476013, 0.3758907914161682, 0.1319228708744049, 0.5064499974250793, -0.27916282415390015, -0.04508353769779205, 0.006873022764921188, 0.39136040210723877, -0.2845355272293091, -0.0707944557...
https://github.com/huggingface/datasets/issues/4477
https://huggingface.co/datasets/fgrezes/WIESP2022-NER The error: ``` Message: Couldn't find a dataset script at /src/services/worker/fgrezes/WIESP2022-NER/WIESP2022-NER.py or any data file in the same directory. Couldn't find 'fgrezes/WIESP2022-NER' on the Hugging Face Hub either: FileNotFoundError: Unable...
Dataset Viewer issue for fgrezes/WIESP2022-NER
### Link _No response_ ### Description _No response_ ### Owner _No response_
152
Dataset Viewer issue for fgrezes/WIESP2022-NER ### Link _No response_ ### Description _No response_ ### Owner _No response_ https://huggingface.co/datasets/fgrezes/WIESP2022-NER The error: ``` Message: Couldn't find a dataset script at /src/services/worker/fgrezes/WIESP2022-NER/WIESP2022-NER.py or...
[ -0.43962544202804565, 0.35058850049972534, -0.05238743871450424, 0.16105763614177704, 0.20944708585739136, 0.12234845757484436, 0.11481288075447083, 0.5527940988540649, 0.29441171884536743, 0.2716502845287323, -0.10764250159263611, -0.05584191158413887, 0.02215057611465454, 0.3795397579669...
https://github.com/huggingface/datasets/issues/4477
Apparently it finds `scoring-scripts/compute_seqeval.py` which matches `**eval*`, a regex that detects a test split. We should probably improve the regex because it's not supposed to catch this kind of files. It must also only check for files with supported extensions: txt, csv, png etc.
Dataset Viewer issue for fgrezes/WIESP2022-NER
### Link _No response_ ### Description _No response_ ### Owner _No response_
44
Dataset Viewer issue for fgrezes/WIESP2022-NER ### Link _No response_ ### Description _No response_ ### Owner _No response_ Apparently it finds `scoring-scripts/compute_seqeval.py` which matches `**eval*`, a regex that detects a test split. We should probably improve the regex because it's not supposed to catc...
[ -0.6337701678276062, 0.3980419933795929, -0.051490094512701035, 0.1942201405763626, 0.18481214344501495, -0.07042685151100159, 0.18268030881881714, 0.5746142268180847, 0.017155073583126068, 0.1291198879480362, -0.08567642420530319, 0.025143995881080627, 0.07798018306493759, 0.4054050743579...
https://github.com/huggingface/datasets/issues/4476
Thanks for opening a discussion :) Note that you can use `.remove_columns(...)` to keep only the ones you're interested in before calling `.to_pandas()`
`to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
23
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.04292154312133789, -0.19340430200099945, -0.06355659663677216, -0.11052875220775604, 0.4232197403907776, 0.28547587990760803, 0.341815710067749, 0.5453054904937744, -0.08412376046180725, 0.1469895988702774, -0.1475682407617569, 0.2461106926202774, -0.09738373011350632, 0.4628264605998993...
https://github.com/huggingface/datasets/issues/4476
Yes I can do that thank you! Do you think that conceptually my example should work? If not, I'm happy to close this issue. If yes, I can start working on it.
`to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
32
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.0814352035522461, -0.22471940517425537, -0.04428848624229431, -0.07012265175580978, 0.4829860329627991, 0.2592376172542572, 0.32011792063713074, 0.5277528762817383, -0.11461810767650604, 0.08535459637641907, -0.09834134578704834, 0.2428560107946396, -0.1069822609424591, 0.457282304763793...
https://github.com/huggingface/datasets/issues/4476
Hi! Instead of `with_format(columns=['a', 'b']).to_pandas()`, use `with_format("pandas", columns=["a", "b"])` for easy conversion of the parts of the dataset to pandas via indexing/slicing. The full code: ```python from datasets import Dataset ds = Dataset.from_dict({'a': [1,2,3], 'b': [5,6,7], 'c': [8,9,10]}) ...
`to_pandas` doesn't take into account format.
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
44
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.04485645145177841, -0.20228271186351776, -0.0691005289554596, -0.10313843190670013, 0.4754519462585449, 0.2802330255508423, 0.31509190797805786, 0.5535861849784851, -0.08521559834480286, 0.1245802789926529, -0.13091030716896057, 0.30377283692359924, -0.10908100008964539, 0.46599143743515...
https://github.com/huggingface/datasets/issues/4467
Hi @mbarnig, thanks for reporting. Please note that is an expected behavior by `pandas` (we use the `pandas` library to parse CSV files): https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html ``` By default the following values are interpreted as NaN: ‘’, ‘#N/A’, ‘#N/A N/A’, ‘#NA’, ‘-1.#IND’, ‘-1.#QN...
Transcript string 'null' converted to [None] by load_dataset()
## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.map(prepare_dataset)` the following error was issued: ``` ...
104
Transcript string 'null' converted to [None] by load_dataset() ## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.m...
[ -0.13774226605892181, -0.03448808193206787, 0.09885755926370621, 0.2633489966392517, 0.17446932196617126, -0.0597958117723465, 0.4891659617424011, 0.2032131850719452, -0.06966762244701385, 0.24052363634109497, 0.07187971472740173, 0.5450977683067322, -0.31626102328300476, -0.12006303668022...
https://github.com/huggingface/datasets/issues/4467
@albertvillanova I also ran into this issue, it had me scratching my head for a while! In my case it was tripped by a literal "NA" comment collected from a user-facing form (e.g., this question does not apply to me). Thankfully this answer was here, but I feel it is such a common trap that it deserves to be noted in th...
Transcript string 'null' converted to [None] by load_dataset()
## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.map(prepare_dataset)` the following error was issued: ``` ...
75
Transcript string 'null' converted to [None] by load_dataset() ## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.m...
[ -0.13774226605892181, -0.03448808193206787, 0.09885755926370621, 0.2633489966392517, 0.17446932196617126, -0.0597958117723465, 0.4891659617424011, 0.2032131850719452, -0.06966762244701385, 0.24052363634109497, 0.07187971472740173, 0.5450977683067322, -0.31626102328300476, -0.12006303668022...
https://github.com/huggingface/datasets/issues/4462
Yup it can also work, and maybe it's simpler this way. Opening a PR to fix bigbench instead of https://github.com/huggingface/datasets/pull/4463
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
20
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `...
[ -0.5403622984886169, -0.3582238554954529, 0.011093199253082275, 0.3671174645423889, 0.05378853157162666, -0.18411806225776672, -0.016961131244897842, 0.4620932936668396, 0.11047035455703735, 0.2697080373764038, 0.2788076400756836, 0.10549093782901764, -0.13502798974514008, 0.30063390731811...
https://github.com/huggingface/datasets/issues/4462
Hi @lhoestq, Thank you for taking a look at this issue, and proposing a solution. Unfortunately, after trying the fix in #4465 I still see the same issue. I think there is some subtlety where the config name gets overwritten somewhere when `BUILDER_CONFIGS`[(link)](https://github.com/huggingface/datasets/blob/m...
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
140
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `...
[ -0.29610374569892883, -0.3113403618335724, 0.09185461699962616, 0.46515586972236633, 0.10660168528556824, -0.11536987870931625, -0.02375384420156479, 0.41597843170166016, -0.0015084221959114075, 0.23245985805988312, 0.39062124490737915, 0.08338925242424011, -0.1361638903617859, 0.215622186...
https://github.com/huggingface/datasets/issues/4456
I use below to load a dataset: ``` dataset = datasets.load_dataset("scikit-learn/auto-mpg") df = pd.DataFrame(dataset["train"]) ``` TBH as said, tabular folk split their own dataset, they sometimes have two splits, sometimes three. Maybe somehow avoiding it for tabular datasets might be good for later. (it's just ...
Workflow for Tabular data
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
47
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.24914759397506714, 0.07358601689338684, -0.17000526189804077, -0.305377721786499, 0.17728976905345917, -0.06776809692382812, 0.42263951897621155, 0.4514351785182953, 0.38605937361717224, 0.10520579665899277, -0.23809266090393066, 0.6696105003356934, -0.045445919036865234, 0.711423039436...
https://github.com/huggingface/datasets/issues/4456
is very slow batch access of a dataset (tabular, csv) with many columns to be expected?
Workflow for Tabular data
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
16
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.3924495577812195, 0.142581969499588, -0.20618805289268494, -0.31092119216918945, 0.17349998652935028, -0.06509320437908173, 0.4074798822402954, 0.476745069026947, 0.3228018581867218, 0.07285284250974655, -0.1977047324180603, 0.4234367907047272, -0.04062718525528908, 0.6204624772071838, ...
https://github.com/huggingface/datasets/issues/4456
~20k! I was surprised batch loading with as few as 32 samples was really slow. I was speculating the columnar format was the cause -- or do you see good performance with this approx size of tabular data?
Workflow for Tabular data
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
38
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.46042805910110474, 0.1133049726486206, -0.1820477396249771, -0.3295387029647827, 0.15158623456954956, -0.11306460946798325, 0.5216745138168335, 0.555488109588623, 0.36490398645401, 0.08977174013853073, -0.23160475492477417, 0.36944133043289185, -0.06016451492905617, 0.6334140300750732, ...
https://github.com/huggingface/datasets/issues/4456
20k can be a lot for a columnar format but maybe we can optimize a few things. It would be cool to profile the code to see if there's an unoptimized part of the code that slows everything down. (it's also possible to kill the job when it accesses the batch, it often gives you the traceback at the location where t...
Workflow for Tabular data
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
65
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.5319507122039795, 0.1494992971420288, -0.16880440711975098, -0.3950576186180115, 0.1730159968137741, -0.11785046756267548, 0.4159073829650879, 0.6188480257987976, 0.23808670043945312, 0.14929939806461334, -0.1270848512649536, 0.5348947644233704, -0.11217895150184631, 0.7199983596801758,...
https://github.com/huggingface/datasets/issues/4456
@wconnell I'm not sure what you mean by my secret, I load them into a numpy array 😁 An example dataset is [here](https://portal.gdc.cancer.gov/repository?facetTab=files&filters=%7B%22content%22%3A%5B%7B%22content%22%3A%7B%22field%22%3A%22cases.project.project_id%22%2C%22value%22%3A%5B%22TCGA-CESC%22%5D%7D%2C%22op%...
Workflow for Tabular data
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
40
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.2944684624671936, 0.20129653811454773, -0.20636378228664398, -0.3129572868347168, 0.1077779158949852, -0.022809386253356934, 0.3471594452857971, 0.512153685092926, 0.2690311074256897, 0.014075249433517456, -0.2577993869781494, 0.644679844379425, -0.018886499106884003, 0.6671987175941467...
https://github.com/huggingface/datasets/issues/4453
I understand that the issue is that a remote file (URL) is being loaded as a local file. Right @albertvillanova @lhoestq? ``` Message: [Errno 2] No such file or directory: 'https://raw.githubusercontent.com/YaxinCui/ABSADataset/main/SemEval2015Task12Corrected/train/restaurants_train.xml' ```
Dataset Viewer issue for Yaxin/SemEval2015
### Link _No response_ ### Description _No response_ ### Owner _No response_
32
Dataset Viewer issue for Yaxin/SemEval2015 ### Link _No response_ ### Description _No response_ ### Owner _No response_ I understand that the issue is that a remote file (URL) is being loaded as a local file. Right @albertvillanova @lhoestq? ``` Message: [Errno 2] No such file or directory: 'https://...
[ -0.36048150062561035, -0.09974002838134766, 0.03963509947061539, 0.3893769681453705, 0.30747321248054504, -0.012752808630466461, 0.36254945397377014, 0.4017370343208313, 0.19438964128494263, 0.19511659443378448, -0.0998489260673523, -0.13383278250694275, -0.03990103304386139, 0.00724914669...
https://github.com/huggingface/datasets/issues/4453
`xml.dom.minidom.parse` is not supported in streaming mode. I opened a PR here to fix it: https://huggingface.co/datasets/Yaxin/SemEval2015/discussions/1 Please review the PR @WithYouTo and let me know if it works !
Dataset Viewer issue for Yaxin/SemEval2015
### Link _No response_ ### Description _No response_ ### Owner _No response_
29
Dataset Viewer issue for Yaxin/SemEval2015 ### Link _No response_ ### Description _No response_ ### Owner _No response_ `xml.dom.minidom.parse` is not supported in streaming mode. I opened a PR here to fix it: https://huggingface.co/datasets/Yaxin/SemEval2015/discussions/1 Please review the PR @WithYouTo a...
[ -0.6567184925079346, -0.29029327630996704, 0.032815828919410706, 0.10222393274307251, 0.45500925183296204, 0.07929104566574097, 0.2346872091293335, 0.3523229658603668, 0.002139054238796234, 0.07027015835046768, -0.16250789165496826, -0.0590725876390934, -0.004859443753957748, 0.19624042510...
https://github.com/huggingface/datasets/issues/4452
Thanks for reporting @santhnm2. We are fixing it. Data owners updated their URLs recently. We have to align with them, otherwise you do not download anything (that is why ignore_verifications does not work).
Trying to load FEVER dataset results in NonMatchingChecksumError
## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but then that raised a `json.decoder.JSONDecodeError`. ## Steps to r...
33
Trying to load FEVER dataset results in NonMatchingChecksumError ## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but ...
[ 0.0550927072763443, 0.077585369348526, -0.008319493383169174, 0.31545305252075195, 0.2888714671134949, 0.2061210423707962, 0.011998279020190239, 0.28212788701057434, 0.09228768944740295, -0.005048975348472595, -0.08238840848207474, 0.3470882773399353, 0.08012965321540833, 0.038685917854309...
https://github.com/huggingface/datasets/issues/4452
Hello! Is there any update on this? I am having the same issue 6 months later.
Trying to load FEVER dataset results in NonMatchingChecksumError
## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but then that raised a `json.decoder.JSONDecodeError`. ## Steps to r...
16
Trying to load FEVER dataset results in NonMatchingChecksumError ## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but ...
[ 0.0550927072763443, 0.077585369348526, -0.008319493383169174, 0.31545305252075195, 0.2888714671134949, 0.2061210423707962, 0.011998279020190239, 0.28212788701057434, 0.09228768944740295, -0.005048975348472595, -0.08238840848207474, 0.3470882773399353, 0.08012965321540833, 0.038685917854309...
https://github.com/huggingface/datasets/issues/4448
Hi! The [datasets_sql](https://github.com/mariosasko/datasets_sql) package lets you easily find distinct rows in a dataset (an example with `SELECT DISTINCT` is in the readme). Deduplication is (still) not part of the official API because it's hard to implement for datasets bigger than RAM while only using the native P...
New Preprocessing Feature - Deduplication [Request]
**Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature that allows one to easily deduplicate a dataset can be...
55
New Preprocessing Feature - Deduplication [Request] **Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature...
[ -0.32169586420059204, -0.19249098002910614, -0.13818921148777008, -0.0009353850036859512, 0.010670578107237816, 0.06374205648899078, -0.16842463612556458, 0.4268960952758789, -0.3562065362930298, 0.2864800691604614, 0.033036284148693085, 0.6406443119049072, 0.015022825449705124, 0.03057126...
https://github.com/huggingface/datasets/issues/4448
Here is an example using the [datasets_sql](https://github.com/mariosasko/datasets_sql) mentioned ```python from datasets_sql import query dataset = load_dataset("imdb", split="train") # If you dont have an id column just add one by enumerating dataset=dataset.add_column("id", range(len(dataset))) id_co...
New Preprocessing Feature - Deduplication [Request]
**Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature that allows one to easily deduplicate a dataset can be...
79
New Preprocessing Feature - Deduplication [Request] **Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature...
[ -0.3220907151699066, -0.25996506214141846, -0.11233964562416077, -0.1455613076686859, -0.041646551340818405, 0.17948183417320251, -0.042900871485471725, 0.5064103603363037, -0.2167433500289917, 0.25526025891304016, 0.04862026125192642, 0.7056494951248169, -0.025995448231697083, 0.120662175...
https://github.com/huggingface/datasets/issues/4443
If I understand correctly, this is due to the key `split` missing in the line https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L41 of the script. Maybe @albertvillanova could confirm.
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
23
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ If I understand correctly, this is due to the key `split` missing in the line https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L41 of the scr...
[ -0.4877675473690033, -0.009561300277709961, -0.027109254151582718, 0.21573343873023987, -0.002669239416718483, -0.018462032079696655, 0.31159085035324097, 0.49369075894355774, 0.09518523514270782, 0.34265655279159546, -0.10089869797229767, 0.34676045179367065, -0.04341097176074982, 0.42545...
https://github.com/huggingface/datasets/issues/4443
Indeed there are several issues in this dataset loading script. The one pointed out by @severo: for the default configuration "crops": https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L244 - The download manager downloads `_URL` - But `_URL` is not defined: https://huggingfa...
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
89
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Indeed there are several issues in this dataset loading script. The one pointed out by @severo: for the default configuration "crops": https://huggingface.co/datasets/openclimat...
[ -0.49909669160842896, 0.16815868020057678, 0.017822805792093277, 0.3069019317626953, 0.18004804849624634, -0.19324204325675964, 0.25078320503234863, 0.34333258867263794, 0.15782637894153595, 0.20260143280029297, -0.01697523705661297, 0.355290025472641, -0.24884039163589478, 0.2113908827304...
https://github.com/huggingface/datasets/issues/4443
Would anyone want to submit a Hub PR (or open a Discussion for the authors to be aware) to this dataset? https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
22
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Would anyone want to submit a Hub PR (or open a Discussion for the authors to be aware) to this dataset? https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km
[ -0.47888457775115967, -0.12609851360321045, -0.013959676027297974, 0.4152287244796753, 0.2487771213054657, -0.04992657154798508, 0.17155572772026062, 0.30341410636901855, 0.12617847323417664, 0.37934812903404236, 0.06974154710769653, 0.38414856791496277, -0.38796260952949524, 0.26192033290...
https://github.com/huggingface/datasets/issues/4443
Hi, I'm the main author for that dataset, so I'll work on updating it! I was working on debugging some stuff awhile ago, which is what broke it.
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
28
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Hi, I'm the main author for that dataset, so I'll work on updating it! I was working on debugging some stuff awhile ago, which is what broke it.
[ -0.5738492608070374, 0.1628468930721283, -0.02706141769886017, 0.2232922613620758, 0.1607818454504013, -0.16488921642303467, 0.3728414475917816, 0.33478960394859314, 0.030218206346035004, 0.358832448720932, 0.10171962529420853, 0.4052571654319763, -0.30441999435424805, 0.18825724720954895,...
https://github.com/huggingface/datasets/issues/4443
I've opened a Discussion page, so that we can ask/answer and propose fixes until the script works properly: https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/discussions/1 CC: @julien-c @jacobbieker
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
22
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ I've opened a Discussion page, so that we can ask/answer and propose fixes until the script works properly: https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/discussions...
[ -0.6805048584938049, 0.13112309575080872, -0.034379757940769196, 0.14878618717193604, 0.1187773048877716, -0.26213058829307556, 0.4099895656108856, 0.5005980134010315, 0.1396161913871765, 0.475028395652771, 0.1202249825000763, 0.4043653905391693, -0.23169159889221191, 0.3663712739944458, ...
https://github.com/huggingface/datasets/issues/4439
To have some context, please see: - #4145 Please, also note that we have recently made some fixes to the script, which are in our GitHub master branch but not yet released: - #4422 - #4425 - #4436
TIMIT won't load after manual download: Errors about files that don't exist
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
38
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059201836585999, -0.22342459857463837, 0.07193804532289505, 0.07531800121068954, 0.14005011320114136, 0.04869232326745987, -0.008748826570808887, 0.28026828169822693, -0.4940365254878998, -0.046522632241249084, -0.12519964575767517, 0.06427094340324402, -0.09158709645271301, 0.38499060...
https://github.com/huggingface/datasets/issues/4439
Thanks Albert! I'll try pulling `datasets` from the git repo instead of PyPI, and/or just wait for the next release.
TIMIT won't load after manual download: Errors about files that don't exist
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
20
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059201836585999, -0.22342459857463837, 0.07193804532289505, 0.07531800121068954, 0.14005011320114136, 0.04869232326745987, -0.008748826570808887, 0.28026828169822693, -0.4940365254878998, -0.046522632241249084, -0.12519964575767517, 0.06427094340324402, -0.09158709645271301, 0.38499060...
https://github.com/huggingface/datasets/issues/4439
I'm closing this issue then. Please, feel free to reopen it again if the problem persists.
TIMIT won't load after manual download: Errors about files that don't exist
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
16
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059201836585999, -0.22342459857463837, 0.07193804532289505, 0.07531800121068954, 0.14005011320114136, 0.04869232326745987, -0.008748826570808887, 0.28026828169822693, -0.4940365254878998, -0.046522632241249084, -0.12519964575767517, 0.06427094340324402, -0.09158709645271301, 0.38499060...
https://github.com/huggingface/datasets/issues/4435
Hi! `datasets` caches every modification/loading, so you can either rerun the pipeline up to the `map` call or use `Dataset.from_file(modified_dataset)` to load the dataset directly from the cache file.
Load a local cached dataset that has been modified
## Describe the bug I have loaded a dataset as follows: ``` d = load_dataset("emotion", split="validation") ``` Afterwards I make some modifications to the dataset via a `map` call: ``` d.map(some_update_func, cache_file_name=modified_dataset) ``` This generates a cached version of the dataset on my local syst...
29
Load a local cached dataset that has been modified ## Describe the bug I have loaded a dataset as follows: ``` d = load_dataset("emotion", split="validation") ``` Afterwards I make some modifications to the dataset via a `map` call: ``` d.map(some_update_func, cache_file_name=modified_dataset) ``` This gener...
[ -0.10946318507194519, 0.20976385474205017, 0.043923985213041306, 0.27229607105255127, -0.10988180339336395, 0.2734679579734802, 0.2665169835090637, 0.23619264364242554, 0.3935368061065674, -0.0964834988117218, -0.20715487003326416, 0.5455154776573181, 0.15295083820819855, -0.35195195674896...
https://github.com/huggingface/datasets/issues/4430
Hi! Our versioning is based on Git revisions (the `revision` param in `load_dataset`), so you can just replace the old URL with the new one and open a PR :). I can also give you some pointers if needed.
Add ability to load newer, cleaner version of Multi-News
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
39
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.25977861881256104, 0.07839743793010712, -0.07855795323848724, -0.0819428339600563, -0.20508751273155212, 0.01227957010269165, 0.3276054561138153, 0.25817999243736267, 0.04155851900577545, 0.008546791970729828, -0.14024871587753296, 0.297592431306839, -0.071114182472229, 0.24845165014266...
https://github.com/huggingface/datasets/issues/4430
@mariosasko Awesome thanks! I will do that. Looks like this new version of the data is not available as a zip but as three files (train/dev/test). How is this usually handled in HF Datasets, should `_URL` be a dict with keys `train`, `val`, `test` perhaps?
Add ability to load newer, cleaner version of Multi-News
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
45
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.14610444009304047, 0.1121358871459961, -0.05282749608159065, -0.10732278972864151, -0.3316488265991211, 0.04110220819711685, 0.3071531653404236, 0.27340206503868103, 0.07105779647827148, 0.014758873730897903, -0.3001972436904907, 0.17131143808364868, -0.031777478754520416, 0.25049948692...
https://github.com/huggingface/datasets/issues/4430
Yes! Let me help you with more detailed instructions. In the first step, we need to update the URLs. One of the possible dictionary structures is as follows: ```python _URLs = { "train": {"src": "https://drive.google.com/uc?export=download&id=1wHAWDOwOoQWSj7HYpyJ3Aeud8WhhaJ7P", "tgt": "https://drive.google.co...
Add ability to load newer, cleaner version of Multi-News
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
141
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.18265467882156372, 0.11264395713806152, -0.1060779020190239, -0.059532131999731064, -0.14160315692424774, 0.06452855467796326, 0.3196960389614105, 0.2980671525001526, 0.06817612051963806, -0.0320388600230217, -0.223332941532135, 0.25480762124061584, -0.2140781581401825, 0.27223256230354...
https://github.com/huggingface/datasets/issues/4430
Awesome! Thanks for the detailed help, that was straightforward with your instruction. However, I think I am being blocked by this issue: https://github.com/huggingface/datasets/issues/4428
Add ability to load newer, cleaner version of Multi-News
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
23
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.16652271151542664, -0.023137792944908142, -0.08440633118152618, -0.06071221083402634, -0.12671568989753723, 0.07482264935970306, 0.27272406220436096, 0.1991414725780487, 0.03011709451675415, 0.021155238151550293, -0.18743842840194702, 0.25123003125190735, -0.08516965061426163, 0.2855845...
https://github.com/huggingface/datasets/issues/4426
Hi! Indeed the column is missing, but you shouldn't get an error? Have you made some modifications (locally) to the loading script? I've opened a PR to add the missing columns to the script.
Add loading variable number of columns for different splits
**Is your feature request related to a problem? Please describe.** The original dataset `blended_skill_talk` consists of different sets of columns for the different splits: (test/valid) splits have additional data column `label_candidates` that the (train) doesn't have. When loading such data, an exception occurs at ...
34
Add loading variable number of columns for different splits **Is your feature request related to a problem? Please describe.** The original dataset `blended_skill_talk` consists of different sets of columns for the different splits: (test/valid) splits have additional data column `label_candidates` that the (train) ...
[ -0.09027803689241409, -0.25853195786476135, -0.04823269322514534, 0.14931337535381317, 0.5014793872833252, 0.1622214913368225, 0.49423903226852417, 0.32031023502349854, 0.3934253454208374, 0.26074033975601196, -0.02070031687617302, 0.3569556474685669, -0.20773378014564514, 0.66405755281448...
https://github.com/huggingface/datasets/issues/4422
@bhaddow we have also made a fix so that you don't have to convert to uppercase the file extensions of the LDC data. Would you mind checking if it works OK now for you and reporting if there are any issues? Thanks.
Cannot load timit_asr data set
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
42
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.11117308586835861, -0.30005010962486267, 0.1034209355711937, 0.5051802396774292, 0.2615533173084259, 0.09815874695777893, 0.2501973509788513, 0.1571473628282547, -0.37703633308410645, -0.0910198837518692, -0.11314660310745239, 0.4798597991466522, -0.06322315335273743, 0.1777580827474594...
https://github.com/huggingface/datasets/issues/4422
Hi @albertvillanova -It loads fine on a copy of the data from deepai - although I have to remove the copies of the .WAV files (with extension .WAV,wav). On a copy of the data that was obtained from the LDC, the glob still fails to find the files. The LDC copy looks like it was copied from CD, in 2004, so the structure...
Cannot load timit_asr data set
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
70
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.12274271994829178, -0.28387555480003357, 0.1144011914730072, 0.4197504222393036, 0.24682125449180603, 0.013538047671318054, 0.165388822555542, 0.16519832611083984, -0.3571569323539734, 0.010910574346780777, -0.19361963868141174, 0.3952460289001465, -0.13379549980163574, 0.09354632347822...
https://github.com/huggingface/datasets/issues/4422
Ah, if I change the train/ and test/ directories to TRAIN/ and TEST/ then it works!
Cannot load timit_asr data set
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
16
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.11325675249099731, -0.1866350919008255, 0.1286192238330841, 0.45976269245147705, 0.3614991307258606, 0.14569057524204254, 0.29637110233306885, 0.19808867573738098, -0.41009682416915894, -0.04298719763755798, -0.13189560174942017, 0.4366247355937958, -0.07331914454698563, 0.1259033232927...
https://github.com/huggingface/datasets/issues/4422
Thanks for your investigation and report, @bhaddow. I'm adding another fix for the TRAIN/train and TEST/test directory names.
Cannot load timit_asr data set
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
18
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.1291273683309555, -0.21241924166679382, 0.11182957142591476, 0.4780868589878082, 0.33608144521713257, 0.13902869820594788, 0.30126523971557617, 0.2019008994102478, -0.3761821985244751, -0.030975304543972015, -0.1314440369606018, 0.4844800531864166, -0.08096903562545776, 0.17010253667831...
https://github.com/huggingface/datasets/issues/4420
If you call `metric.compute` in a distributed setup like yours, then `metric.compute` is called in each process. `metric.compute` first calls `metric.add_batch`, and it looks like your error appears at that stage. To make sure that all the processes have started writing their predictions/references at the same time,...
Metric evaluation problems in multi-node, shared file system
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
134
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.12264673411846161, -0.2954719662666321, 0.07963364571332932, 0.36486613750457764, 0.06217046082019806, -0.33320352435112, 0.3804206848144531, 0.10030759871006012, 0.15679141879081726, 0.28335040807724, -0.17039158940315247, 0.10685501992702484, -0.18573760986328125, -0.35841667652130127...
https://github.com/huggingface/datasets/issues/4420
We've finally been able to isolate the problem, it wasn't a timing problem, but rather a file locking one. The locks produced by calling `flock` where not visible between nodes (so the master node couldn't check other node's locks nor the other way around). We are now having issues with the pre-processing in our ...
Metric evaluation problems in multi-node, shared file system
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
207
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.12264673411846161, -0.2954719662666321, 0.07963364571332932, 0.36486613750457764, 0.06217046082019806, -0.33320352435112, 0.3804206848144531, 0.10030759871006012, 0.15679141879081726, 0.28335040807724, -0.17039158940315247, 0.10685501992702484, -0.18573760986328125, -0.35841667652130127...
https://github.com/huggingface/datasets/issues/4420
Cool, I'm glad you managed to make evaluation work :) I'm not completely aware of the differences between lockf and flock, but I've read somewhere that flock is preferable over lockf in multithreading and multiprocessing situations. Here we definitely are in such a situation so unless it is super important I don't t...
Metric evaluation problems in multi-node, shared file system
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
58
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.12264673411846161, -0.2954719662666321, 0.07963364571332932, 0.36486613750457764, 0.06217046082019806, -0.33320352435112, 0.3804206848144531, 0.10030759871006012, 0.15679141879081726, 0.28335040807724, -0.17039158940315247, 0.10685501992702484, -0.18573760986328125, -0.35841667652130127...
https://github.com/huggingface/datasets/issues/4420
> * We had to change slightly the `_check_all_processes_locks` method so that the main process (i.e. process 0) didn't check it's own lock (because `lockf` permits recursive locks and thus checking it only replaced the current lock with a new one). Hi @panserbjorn , Can you share your `_check_all_processes_locks` fu...
Metric evaluation problems in multi-node, shared file system
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
51
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.12264673411846161, -0.2954719662666321, 0.07963364571332932, 0.36486613750457764, 0.06217046082019806, -0.33320352435112, 0.3804206848144531, 0.10030759871006012, 0.15679141879081726, 0.28335040807724, -0.17039158940315247, 0.10685501992702484, -0.18573760986328125, -0.35841667652130127...
https://github.com/huggingface/datasets/issues/4420
``` def _check_all_processes_locks(self): expected_lock_file_names = [ os.path.join(self.data_dir, f"{self.experiment_id}-{self.num_process}-{process_id}.arrow.lock") for process_id in range(self.num_process) ] #for expected_lock_file_name in expected_lock_file_name...
Metric evaluation problems in multi-node, shared file system
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
386
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.12264673411846161, -0.2954719662666321, 0.07963364571332932, 0.36486613750457764, 0.06217046082019806, -0.33320352435112, 0.3804206848144531, 0.10030759871006012, 0.15679141879081726, 0.28335040807724, -0.17039158940315247, 0.10685501992702484, -0.18573760986328125, -0.35841667652130127...
https://github.com/huggingface/datasets/issues/4419
Hi! If the only goal is to improve readability, it's better to use `assertTupleEqual` than `assertSequenceEqual` for Python tuples. Also, note that this function is called internally by `assertEqual`, but I guess we can accept a PR to be more verbose.
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
41
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unitt...
[ -0.11732056736946106, 0.17830224335193634, -0.20074079930782318, -0.21944288909435272, 0.1580921709537506, 0.19009245932102203, 0.1293112337589264, 0.25092411041259766, 0.16732598841190338, 0.057909298688173294, 0.2828996479511261, 0.30522239208221436, -0.16012735664844513, -0.091681405901...
https://github.com/huggingface/datasets/issues/4419
Hi @mariosasko, right! I'll update the issue title/desc with `assertTupleEqual` even though as you said it seems to be internally using `assertEqual` so I'm not sure whether it's worth it or not... https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTupleEqual
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
33
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unitt...
[ -0.09673640131950378, 0.1710253208875656, -0.20067518949508667, -0.21332508325576782, 0.1338782012462616, 0.18414105474948883, 0.16805149614810944, 0.25515982508659363, 0.1901084929704666, 0.08620882779359818, 0.2700817584991455, 0.3010592758655548, -0.13259567320346832, -0.104680404067039...
https://github.com/huggingface/datasets/issues/4417
Hi ! As mentioned on the [forum](https://discuss.huggingface.co/t/how-to-wrap-a-generator-with-hf-dataset/18464), the simplest for now would be to define a [dataset script](https://huggingface.co/docs/datasets/dataset_script) which can contain your generator. But we can also explore adding something like `ds = Dataset....
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
34
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@lhoestq , hey i did as you instructed, but sadly i cannot get pass through the download_manager, as i dont have anything to download. i was skipping the ` def _split_generators(self, dl_manager):` function. but i cannot get around it. I get a `NotImplementedError: ` the following is my code for the same: ``...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
311
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@lhoestq , just to make things clear ... the following is my original code, thats not in the HF dataset loading script: ``` import functools import seqio import tensorflow as tf import t5.data from datasets import load_from_disk from t5.data import postprocessors from t5.data import preprocessors from t...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
264
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
I like the idea of having `Dataset.from_iterable(iterable)` in the API. The only problem is that we also want to make this part cachable, which is tricky if `iterable` is a generator. Some resources on this issue: * https://github.com/uqfoundation/dill/issues/311 * https://stackoverflow.com/questions/7180212/why-...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
55
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
For the caching maybe we can have `Dataset.from_generator` as TF and pickle+hash the generator function (not the generator object itself) ? And then keep `Dataset.from_iterable` fo pickable objects like lists
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
30
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@lhoestq, @mariosasko do you too have any examples where the dataset is a generator and needs to be wrapped into hf dataset ?
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
23
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@lhoestq, following to my previous question ... what possibly could be done in this [link1](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627404) [link2](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627593) case? do you have any ideas?
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
22
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@lhoestq +1 for the `Dataset.from_generator` idea. Having thought about it, let's avoid adding `Dataset.from_iterable` to the API since dictionaries are technically iteralbles ("iterable" is a broad term in Python), and we already provide `Dataset.from_dict`. And for lists maybe we can add `Dataset.from_list` simila...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
46
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
Hi @StephennFernandes! To fix the issues in the copied code, rename `generate_examples` to` _generate_examples` and add one level of indentation as this is a method of `GeneratorBasedBuilder` and define `_split_generators` as follows (again as a method of `GeneratorBasedBuilder): ```python def _split_generators(s...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
94
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
I have a problem which I think is very similar: I would like to "stream" data to a HF Array (memory-mapped) Dataset, where the final size of the dataset is unknown, but could be much larger than what fits into memory. What I want to end up with is an Array Dataset which I can open using `Dataset.load_from_disk(dataset...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
288
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
Hi @johann-petrak! You can pass the features directly to ArrowWriter's initializer like so `ArrowWriter(..., features=features)`. And the reason why I prefer `Dataset.from_generator` over `Dataset.from_iterable` is mentioned in one of my previous comments.
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
32
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
@mariosasko so at the moment we still have to create a fake `Dataset` first and then use `ArrowWriter` to write an actual dataset? I'm using the latest version of `datasets` on pypi but my final file is always empty. Is there anything wrong with the code below? ```python total = 0 with ArrowWriter(path=str...
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
100
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
This works for me if I then (actually I also close the writer: `writer.close()`) open the Arrow file as a dataset using `ds=Dataset.from_file(final_data_path)` then `ds.save_to_disk(somedir)`. The Dataset created that way contains the expected examples.
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
34
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
Oh thanks. That did the trick I believe. Shouldn't ArrowWriter have a context manager that does these operations?
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
18
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
You can just use `Dataset.from_file` to get your dataset, no need to do an extra `save_to_disk` somewhere else ;)
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
19
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
I was thinking that `save_to_disk` is necessary when one wants to re-use that dataset as a proper HF dataset later, no? At least what I wanted to achieve is create a dataset that can be opened like any other local or remote dataset.
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
43
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4417
`save_to_disk`/`load_from_disk` is indeed more general, e.g. it supports datasets that consist in several files, and saves some extra info in a dataset_info.json file (description, citation, split sizes, etc.) If you have one single file it's fine to simply do `.from_file()`
how to convert a dict generator into a huggingface dataset.
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
40
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.235661119222641, -0.5294448733329773, 0.023818112909793854, 0.32638654112815857, 0.4359237253665924, -0.018439464271068573, 0.05949625372886658, 0.28777268528938293, 0.22911548614501953, 0.24235454201698303, -0.29775530099868774, 0.10299660265445709, -0.223959282040596, 0.51331812143325...
https://github.com/huggingface/datasets/issues/4413
Thanks for reporting @dgcnz. I have checked that the dataset works fine in streaming mode. Additionally, other datasets containing timestamps are properly rendered by the viewer: https://huggingface.co/datasets/blbooks I have tried to force the refresh of the preview, but the endpoint is not responsive: Connec...
Dataset Viewer issue for ett
### Link https://huggingface.co/datasets/ett ### Description Timestamp is not JSON serializable. ``` Status code: 500 Exception: Status500Error Message: Type is not JSON serializable: Timestamp ``` ### Owner No
48
Dataset Viewer issue for ett ### Link https://huggingface.co/datasets/ett ### Description Timestamp is not JSON serializable. ``` Status code: 500 Exception: Status500Error Message: Type is not JSON serializable: Timestamp ``` ### Owner No Thanks for reporting @dgcnz. I have ch...
[ -0.5047903656959534, -0.05860711634159088, 0.1008872240781784, 0.29437345266342163, 0.21842654049396515, 0.025439172983169556, 0.11922284960746765, 0.2589572072029114, -0.1350618600845337, -0.048149749636650085, -0.05734701827168465, 0.3107840418815613, 0.023056313395500183, 0.400074064731...
https://github.com/huggingface/datasets/issues/4413
I've just resent the refresh of the preview to the new endpoint, without success. CC: @severo
Dataset Viewer issue for ett
### Link https://huggingface.co/datasets/ett ### Description Timestamp is not JSON serializable. ``` Status code: 500 Exception: Status500Error Message: Type is not JSON serializable: Timestamp ``` ### Owner No
16
Dataset Viewer issue for ett ### Link https://huggingface.co/datasets/ett ### Description Timestamp is not JSON serializable. ``` Status code: 500 Exception: Status500Error Message: Type is not JSON serializable: Timestamp ``` ### Owner No I've just resent the refresh of the previ...
[ -0.3851516842842102, -0.03509615361690521, 0.05032581090927124, 0.1976417899131775, 0.15729430317878723, 0.0369236022233963, 0.1590062826871872, 0.23904189467430115, -0.08219031989574432, 0.058536283671855927, -0.16762402653694153, 0.3958730101585388, 0.05189485847949982, 0.465336978435516...
https://github.com/huggingface/datasets/issues/4407
Thanks for reporting, @jiangwy99. I guess this could be addressed only once we fix our issue with irresponsive backend endpoint. CC: @severo
Dataset Viewer issue for conll2012_ontonotesv5
### Link https://huggingface.co/datasets/conll2012_ontonotesv5 ### Description Dataset viewer outage. ### Owner No
22
Dataset Viewer issue for conll2012_ontonotesv5 ### Link https://huggingface.co/datasets/conll2012_ontonotesv5 ### Description Dataset viewer outage. ### Owner No Thanks for reporting, @jiangwy99. I guess this could be addressed only once we fix our issue with irresponsive backend endpoint. CC: @severo
[ -0.38620665669441223, 0.08108992874622345, -0.09578670561313629, 0.3273921310901642, 0.3828921318054199, -0.03852462023496628, 0.20774337649345398, 0.30019551515579224, -0.12860912084579468, 0.30680859088897705, -0.03723742812871933, 0.23106642067432404, 0.13674232363700867, 0.241943299770...
https://github.com/huggingface/datasets/issues/4407
Fixed, thanks for the patience. The issue was the amount of RAM allowed to extract the first rows of the dataset was not sufficient.
Dataset Viewer issue for conll2012_ontonotesv5
### Link https://huggingface.co/datasets/conll2012_ontonotesv5 ### Description Dataset viewer outage. ### Owner No
24
Dataset Viewer issue for conll2012_ontonotesv5 ### Link https://huggingface.co/datasets/conll2012_ontonotesv5 ### Description Dataset viewer outage. ### Owner No Fixed, thanks for the patience. The issue was the amount of RAM allowed to extract the first rows of the dataset was not sufficient.
[ -0.41428637504577637, -0.029562100768089294, -0.12167947739362717, 0.6412821412086487, 0.27363911271095276, 0.0490301251411438, 0.0372454971075058, 0.34508517384529114, -0.11032357811927795, 0.38756823539733887, -0.017788341268897057, 0.12961792945861816, 0.12334315478801727, 0.14620369672...
https://github.com/huggingface/datasets/issues/4405
And if the problem is that the way I am to construct the {Entity Type: list of spans} makes entity types without any spans hard to handle, is there a better way to meet the demand? Although I have verified that to make entity types without any spans to behave like `entity_chunk[label] = [[""]]` can perform normally, I ...
[TypeError: Couldn't cast array of type] Cannot process dataset in v2.2.2
## Describe the bug I am trying to process the [conll2012_ontonotesv5](https://huggingface.co/datasets/conll2012_ontonotesv5) dataset in `datasets` v2.2.2 and am running into a type error when casting the features. ## Steps to reproduce the bug ```python import os from typing import ( List, Dict, ) f...
67
[TypeError: Couldn't cast array of type] Cannot process dataset in v2.2.2 ## Describe the bug I am trying to process the [conll2012_ontonotesv5](https://huggingface.co/datasets/conll2012_ontonotesv5) dataset in `datasets` v2.2.2 and am running into a type error when casting the features. ## Steps to reproduce the...
[ -0.11359875649213791, 0.011210978031158447, -0.07485068589448929, 0.3162180781364441, 0.5376299023628235, 0.2893626093864441, 0.2985489070415497, 0.4198731780052185, -0.03577930107712746, -0.12284418940544128, -0.02414940670132637, 0.36882901191711426, -0.3538203835487366, 0.27202379703521...
https://github.com/huggingface/datasets/issues/4404
Hi! You can already use `dset.builder_name` and `dset.config_name` for that purpose. And when it comes to versioning, it's better to use `dset._fingerprint` than the `version` attribute as the former represents a deterministic hash that encodes all the mutable ops executed on a dataset, and the latter stays the same un...
Dataset should have a `.name` field
**Is your feature request related to a problem? Please describe.** If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}` Without some way of concisely identifying a dat...
56
Dataset should have a `.name` field **Is your feature request related to a problem? Please describe.** If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}` Without s...
[ -0.29665282368659973, 0.12201660871505737, -0.048052772879600525, -0.03259022906422615, 0.2650943100452423, 0.03471323847770691, 0.4459410011768341, 0.15255677700042725, 0.02036166936159134, 0.296608567237854, 0.2530673146247864, 0.34521162509918213, -0.29373615980148315, 0.464842230081558...
https://github.com/huggingface/datasets/issues/4404
@mariosasko Can we make ._fingerprint not private? seems a critical component for tracking how a model was generated to ensure reproducibility.
Dataset should have a `.name` field
**Is your feature request related to a problem? Please describe.** If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}` Without some way of concisely identifying a dat...
21
Dataset should have a `.name` field **Is your feature request related to a problem? Please describe.** If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}` Without s...
[ -0.1970365047454834, 0.24319148063659668, -0.03853265568614006, 0.04517091065645218, 0.20022286474704742, 0.020661264657974243, 0.544182300567627, 0.14952224493026733, -0.050047069787979126, 0.25675851106643677, 0.21265888214111328, 0.2247089296579361, -0.22967159748077393, 0.4341292977333...
https://github.com/huggingface/datasets/issues/4401
Thanks for reporting, @OmarAlaaeldein. Datasets hosted at Google Drive give problems quite often due to a change in their service: - #3786 Related to: - #3906 I'm having a look.
"NonMatchingChecksumError" when importing 'spider' dataset
## Describe the bug When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('spider') ``` ## Expected results Dataset object ## Actual results NonMatchingChecksumError: Check...
30
"NonMatchingChecksumError" when importing 'spider' dataset ## Describe the bug When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('spider') ``` ## Expected results Dataset...
[ -0.0728672593832016, 0.011863410472869873, -0.09626885503530502, 0.22605806589126587, 0.26523756980895996, 0.11008340120315552, 0.0807940885424614, 0.22677576541900635, 0.23012036085128784, 0.18859881162643433, -0.21560409665107727, -0.12109020352363586, 0.08781085908412933, 0.176054745912...
https://github.com/huggingface/datasets/issues/4401
We have made a Pull Request to replace the Google Drive URL. This fix will be accessible in our next `datasets` library release. In the meantime, once the PR merged into master, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/dat...
"NonMatchingChecksumError" when importing 'spider' dataset
## Describe the bug When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('spider') ``` ## Expected results Dataset object ## Actual results NonMatchingChecksumError: Check...
96
"NonMatchingChecksumError" when importing 'spider' dataset ## Describe the bug When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('spider') ``` ## Expected results Dataset...
[ -0.16684070229530334, -0.05323569476604462, -0.08334950357675552, 0.2363290935754776, 0.3664659261703491, 0.09414324164390564, -0.1123274564743042, 0.25241246819496155, 0.3305857181549072, 0.250454306602478, -0.2705611288547516, -0.01750059984624386, 0.09989340603351593, 0.2392159402370453...
https://github.com/huggingface/datasets/issues/4400
I tried in this way. ```python from datasets import load_dataset dataset = load_dataset(path="wikitext", name="wikitext-103-v1", split="train") ```
load dataset wikitext-2-raw-v1 failed. Could not reach wikitext-2-raw-v1.py.
## Describe the bug Could not reach wikitext-2-raw-v1.py ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("wikitext-2-raw-v1") ``` ## Expected results Download `wikitext-2-raw-v1` dataset successfully. ## Actual results ``` File "load_datasets.py", line 13, in <m...
16
load dataset wikitext-2-raw-v1 failed. Could not reach wikitext-2-raw-v1.py. ## Describe the bug Could not reach wikitext-2-raw-v1.py ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("wikitext-2-raw-v1") ``` ## Expected results Download `wikitext-2-raw-v1` dataset suc...
[ -0.19624409079551697, -0.30115416646003723, -0.09524711221456528, 0.15761296451091766, 0.33065301179885864, 0.10222268849611282, 0.3503398597240448, 0.3770029544830322, 0.17281058430671692, 0.10918273031711578, 0.18630556762218475, 0.2885552942752838, -0.08020064234733582, 0.20845200121402...
https://github.com/huggingface/datasets/issues/4399
Ok, so ``` os.path.basename("/home/user/") ``` gives `''` while ``` os.path.basename("/home/user") ``` gives `user`. The code should check if the last char is a slash.
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./data/some-dataset/", name="some-name") ``` ## Expected results The...
24
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name ## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./...
[ -0.3629179298877716, 0.3889208137989044, 0.03788638114929199, 0.39080625772476196, 0.3633107841014862, -0.08149309456348419, 0.482936829328537, 0.5021458864212036, 0.1143285483121872, 0.4106295704841614, 0.07893923670053482, 0.2901754379272461, 0.008577000349760056, -0.05256218835711479, ...
https://github.com/huggingface/datasets/issues/4399
I came through the same issue , just removing the last slash in the dataset path fixed it for me, may be this repo moderators could accept this as an accepted answer atleast if this could not be integrated > The fix is: > > ``` > "name": os.path.basename(self.path[:-1] if self.path[-1] == "/" else self.path) > ...
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./data/some-dataset/", name="some-name") ``` ## Expected results The...
74
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name ## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./...
[ -0.3629179298877716, 0.3889208137989044, 0.03788638114929199, 0.39080625772476196, 0.3633107841014862, -0.08149309456348419, 0.482936829328537, 0.5021458864212036, 0.1143285483121872, 0.4106295704841614, 0.07893923670053482, 0.2901754379272461, 0.008577000349760056, -0.05256218835711479, ...
https://github.com/huggingface/datasets/issues/4399
@mariosasko here we go: https://github.com/huggingface/datasets/pull/4967 TBH I haven't tested it yet, but should work, since this is a basic change.
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./data/some-dataset/", name="some-name") ``` ## Expected results The...
20
LocalDatasetModuleFactoryWithoutScript extracts invalid builder name ## Describe the bug Trying to load a local dataset raises an error indicating that the config builder has to have a name. No error should be reported, since the call is completly valid. ## Steps to reproduce the bug ```python load_dataset("./...
[ -0.3629179298877716, 0.3889208137989044, 0.03788638114929199, 0.39080625772476196, 0.3633107841014862, -0.08149309456348419, 0.482936829328537, 0.5021458864212036, 0.1143285483121872, 0.4106295704841614, 0.07893923670053482, 0.2901754379272461, 0.008577000349760056, -0.05256218835711479, ...
https://github.com/huggingface/datasets/issues/4398
It works if we either remove the `ds = ds.cast_column("id", Value("int32"))` line from the code above, or if instead calling `ds.remove_columns()` we remove the columns inside each mapping as `ds.map(..., remove_columns=[...])` instead of right after the mapping. Both of those solutions seem to fix the issue, so the...
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add...
138
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug ...
[ -0.0749594196677208, -0.12038036435842514, 0.0488252267241478, 0.1968027502298355, 0.35314062237739563, 0.20017775893211365, 0.5984070301055908, 0.2834172546863556, 0.42076170444488525, 0.16230274736881256, -0.03843837231397629, 0.27761584520339966, 0.13197092711925507, -0.4079357087612152...
https://github.com/huggingface/datasets/issues/4398
FYI the main reason I want to use `dataset.remove_columns` rather than the function inside `dataset.map` is because according to the 🤗 Datasets documentation, it's faster. "🤗 Datasets also has a [Dataset.remove_columns()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.Datase...
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add...
52
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug ...
[ -0.0749594196677208, -0.12038036435842514, 0.0488252267241478, 0.1968027502298355, 0.35314062237739563, 0.20017775893211365, 0.5984070301055908, 0.2834172546863556, 0.42076170444488525, 0.16230274736881256, -0.03843837231397629, 0.27761584520339966, 0.13197092711925507, -0.4079357087612152...
https://github.com/huggingface/datasets/issues/4398
Here I'm presenting all the scenarios so that you can further investigate the issue: - ✅ `cast_column` -> `map` with `remove_columns` -> `map` with `remove_columns` -> `add_faiss_index` ```python from transformers import DPRContextEncoder, DPRContextEncoderTokenizer import torch torch.set_grad_enab...
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add...
335
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug ...
[ -0.0749594196677208, -0.12038036435842514, 0.0488252267241478, 0.1968027502298355, 0.35314062237739563, 0.20017775893211365, 0.5984070301055908, 0.2834172546863556, 0.42076170444488525, 0.16230274736881256, -0.03843837231397629, 0.27761584520339966, 0.13197092711925507, -0.4079357087612152...
https://github.com/huggingface/datasets/issues/4398
So on, I've created #4411 so as to fix the bug with `remove_columns` under certain conditions before `add_faiss_index`, which means that the scenarios not working above are already working fine.
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add...
30
Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue. ## Describe the bug ...
[ -0.0749594196677208, -0.12038036435842514, 0.0488252267241478, 0.1968027502298355, 0.35314062237739563, 0.20017775893211365, 0.5984070301055908, 0.2834172546863556, 0.42076170444488525, 0.16230274736881256, -0.03843837231397629, 0.27761584520339966, 0.13197092711925507, -0.4079357087612152...
https://github.com/huggingface/datasets/issues/4394
I tried to make the dataset much more smaller (100000 rows) , then the speed became `33.88it/s` from`8.62s/it`. It's nearly 200 times... Do you have any idea? Thank you!
trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can ru...
29
trainer became extremely slow after reload dataset by `load_from_disk` ## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow....
[ -0.38637229800224304, -0.2197624295949936, 0.03526882082223892, 0.31798744201660156, 0.4394131004810333, -0.030463814735412598, 0.2910068929195404, 0.21080441772937775, -0.0378287248313427, -0.004966996610164642, 0.053092993795871735, 0.30472028255462646, -0.07701042294502258, 0.0318399667...
https://github.com/huggingface/datasets/issues/4394
Similar issue: https://github.com/huggingface/transformers/issues/8818 I changed `RandomSampler` to `SequentialSampler` in the `trainer.py`, but the speed didn't become faster.
trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can ru...
17
trainer became extremely slow after reload dataset by `load_from_disk` ## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow....
[ -0.38637229800224304, -0.2197624295949936, 0.03526882082223892, 0.31798744201660156, 0.4394131004810333, -0.030463814735412598, 0.2910068929195404, 0.21080441772937775, -0.0378287248313427, -0.004966996610164642, 0.053092993795871735, 0.30472028255462646, -0.07701042294502258, 0.0318399667...
https://github.com/huggingface/datasets/issues/4394
I changed ``` tokenized_datasets = load_from_disk( "/pathto/dataset" ) ``` to ``` tokenized_datasets = load_from_disk( "/pathto/dataset", keep_in_memory=True ) ``` and obtained normal speed. It's seems that the problem is on the os's speed limit.
trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can ru...
33
trainer became extremely slow after reload dataset by `load_from_disk` ## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow....
[ -0.38637229800224304, -0.2197624295949936, 0.03526882082223892, 0.31798744201660156, 0.4394131004810333, -0.030463814735412598, 0.2910068929195404, 0.21080441772937775, -0.0378287248313427, -0.004966996610164642, 0.053092993795871735, 0.30472028255462646, -0.07701042294502258, 0.0318399667...
https://github.com/huggingface/datasets/issues/4394
Hi ! Currently `save_to_disk` saves one big Arrow file, which causes some slow downs. This has been discussed in #3735 and we'll implement sharding pretty soon to solve this For now you can try splitting and saving your dataset in several Arrow files. Then you can load them one by one and use `concatenate_datasets` ...
trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can ru...
66
trainer became extremely slow after reload dataset by `load_from_disk` ## Describe the bug Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow....
[ -0.38637229800224304, -0.2197624295949936, 0.03526882082223892, 0.31798744201660156, 0.4394131004810333, -0.030463814735412598, 0.2910068929195404, 0.21080441772937775, -0.0378287248313427, -0.004966996610164642, 0.053092993795871735, 0.30472028255462646, -0.07701042294502258, 0.0318399667...
https://github.com/huggingface/datasets/issues/4386
Hi @StevenTang1998, We have fixed the issue: - #4389 The fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by installing `datasets` from our GitHub repo: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
Bug for wiki_auto_asset_turk from GEM
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
40
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdi...
[ -0.18773408234119415, -0.16692706942558289, -0.10573576390743256, 0.30183249711990356, 0.3303748369216919, -0.023430325090885162, 0.7409370541572571, 0.5015616416931152, 0.13661862909793854, 0.16635805368423462, 0.23086711764335632, 0.44556236267089844, 0.05331121385097504, -0.252789080142...
https://github.com/huggingface/datasets/issues/4386
Thanks for your reply!! And the totto dataset has the same problem. The url should be change to [https://storage.googleapis.com/totto-public/totto_data.zip](https://storage.googleapis.com/totto-public/totto_data.zip).
Bug for wiki_auto_asset_turk from GEM
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
19
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdi...
[ -0.18773408234119415, -0.16692706942558289, -0.10573576390743256, 0.30183249711990356, 0.3303748369216919, -0.023430325090885162, 0.7409370541572571, 0.5015616416931152, 0.13661862909793854, 0.16635805368423462, 0.23086711764335632, 0.44556236267089844, 0.05331121385097504, -0.252789080142...
https://github.com/huggingface/datasets/issues/4386
Hi again @StevenTang1998, I don't see any problem when loading `totto` dataset: ```python In [4]: import datasets ...: ds = datasets.load_dataset("totto") Downloading builder script: 5.58kB [00:00, 5.33MB/s] ...
Bug for wiki_auto_asset_turk from GEM
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
134
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdi...
[ -0.18773408234119415, -0.16692706942558289, -0.10573576390743256, 0.30183249711990356, 0.3303748369216919, -0.023430325090885162, 0.7409370541572571, 0.5015616416931152, 0.13661862909793854, 0.16635805368423462, 0.23086711764335632, 0.44556236267089844, 0.05331121385097504, -0.252789080142...
https://github.com/huggingface/datasets/issues/4381
Hi @NouamaneTazi, thanks for reporting. Please note that both datasets are cached in the same directory because their loading builder classes have the same name: `class MTOP(datasets.GeneratorBasedBuilder)`. You should name their builder classes differently, e.g.: - `MtopDomain` - `MtopIntent`
Bug in caching 2 datasets both with the same builder class name
## Describe the bug The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`. If you delete this cache folder and flip the order how you load the two datas...
39
Bug in caching 2 datasets both with the same builder class name ## Describe the bug The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`. If you dele...
[ -0.08650783449411392, 0.08367842435836792, -0.0589413046836853, 0.6786138415336609, 0.31771767139434814, 0.10972484946250916, 0.2886146306991577, 0.12417120486497879, -0.02660297229886055, 0.2158886343240738, -0.1844620555639267, 0.07770814001560211, -0.01940946653485298, -0.14339840412139...
https://github.com/huggingface/datasets/issues/4381
Hi @NouamaneTazi, please note that after our fix: - #4388 we do not consider the class name anymore, but the name of the file where the loading builder class is implemented.
Bug in caching 2 datasets both with the same builder class name
## Describe the bug The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`. If you delete this cache folder and flip the order how you load the two datas...
31
Bug in caching 2 datasets both with the same builder class name ## Describe the bug The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`. If you dele...
[ -0.08650783449411392, 0.08367842435836792, -0.0589413046836853, 0.6786138415336609, 0.31771767139434814, 0.10972484946250916, 0.2886146306991577, 0.12417120486497879, -0.02660297229886055, 0.2158886343240738, -0.1844620555639267, 0.07770814001560211, -0.01940946653485298, -0.14339840412139...
https://github.com/huggingface/datasets/issues/4379
Just an additional insight, the latest dill (either 0.3.5 or 0.3.5.1) also broke the hashing/fingerprinting of any mapping function. For example: ``` from datasets import load_dataset d = load_dataset("rotten_tomatoes") d.map(lambda x: x) ``` Returns the standard non-dillable error: ``` Parameter 'functi...
Latest dill release raises exception
## Describe the bug As reported by @sgugger, latest dill release is breaking things with Datasets. ``` ______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________ self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None def get(self, timeout=None): s...
53
Latest dill release raises exception ## Describe the bug As reported by @sgugger, latest dill release is breaking things with Datasets. ``` ______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________ self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None ...
[ -0.3517942726612091, 0.1288585364818573, -0.04145275801420212, -0.16158165037631989, 0.011071356013417244, -0.09084878116846085, 0.5198794007301331, 0.4270176291465759, -0.24617327749729156, 0.1492128223180771, -0.26004141569137573, 0.4605545103549957, -0.3196330964565277, -0.3636211454868...
https://github.com/huggingface/datasets/issues/4379
Thanks a lot @gugarosa for the insight: we will incorporate it in our CI as regression testing for future dill releases.
Latest dill release raises exception
## Describe the bug As reported by @sgugger, latest dill release is breaking things with Datasets. ``` ______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________ self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None def get(self, timeout=None): s...
21
Latest dill release raises exception ## Describe the bug As reported by @sgugger, latest dill release is breaking things with Datasets. ``` ______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________ self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None ...
[ -0.35840731859207153, -0.09504136443138123, -0.03661259263753891, -0.04726063087582588, 0.0013209395110607147, -0.11222012341022491, 0.4333984851837158, 0.38221433758735657, -0.2754599452018738, 0.17403002083301544, -0.23343408107757568, 0.32401785254478455, -0.24538388848304749, -0.242786...