html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/757
CUDA out of memory
Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you try not to use `map` and only the data collator instead ? The data collator is supposed to pad to the longest sequence in each batch afaik, instead of padding to 512. Also cc @sgugger
In your dataset ,cuda run out of memory as long as the trainer begins: however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
52
CUDA out of memory In your dataset ,cuda run out of memory as long as the trainer begins: however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK. Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you t...
[ -0.3538850247859955, -0.06870394200086594, -0.14324304461479187, 0.3057076930999756, 0.5980898141860962, -0.03018004447221756, 0.4453640580177307, 0.29573512077331543, -0.062140610069036484, 0.4082167148590088, 0.21726582944393158, 0.05362294986844063, -0.07481823116540909, 0.1507744789123...
https://github.com/huggingface/datasets/issues/751
Error loading ms_marco v2.1 using load_dataset()
There was a similar issue in #294 Clearing the cache and download again the dataset did the job. Could you try to clear your cache and download the dataset again ?
Code: `dataset = load_dataset('ms_marco', 'v2.1')` Error: ``` `--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-16-34378c057212> in <module>() 9 10 # Downloading and loading a data...
31
Error loading ms_marco v2.1 using load_dataset() Code: `dataset = load_dataset('ms_marco', 'v2.1')` Error: ``` `--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-16-34378c057212> in <module>() ...
[ 0.010368578135967255, 0.11118978261947632, -0.10002531111240387, 0.3606889843940735, 0.4273393750190735, 0.051914773881435394, 0.2879602611064911, 0.5654805898666382, 0.012548446655273438, 0.32172828912734985, -0.01228133961558342, 0.5649033784866333, -0.022834379225969315, 0.2471561878919...
https://github.com/huggingface/datasets/issues/751
Error loading ms_marco v2.1 using load_dataset()
I was able to load the dataset successfully, I'm pretty sure it's just a cache issue that you have. Let me know if clearing your cache fixes the problem
Code: `dataset = load_dataset('ms_marco', 'v2.1')` Error: ``` `--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-16-34378c057212> in <module>() 9 10 # Downloading and loading a data...
29
Error loading ms_marco v2.1 using load_dataset() Code: `dataset = load_dataset('ms_marco', 'v2.1')` Error: ``` `--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-16-34378c057212> in <module>() ...
[ -0.012936439365148544, 0.10301141440868378, -0.12283335626125336, 0.31225723028182983, 0.3983420729637146, 0.05211146920919418, 0.2968254089355469, 0.5685592889785767, 0.02055712789297104, 0.3210778832435608, -0.04697874188423157, 0.5231748819351196, 0.06325164437294006, 0.1900868117809295...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
Small poll @thomwolf @yjernite @lhoestq @JetRunner @qiweizhen . As stated in the XGLUE paper: https://arxiv.org/pdf/2004.01401.pdf , for each of the 11 down-stream tasks training data is only available in English, whereas development and test data is available in multiple different language *cf.* here: ![Screen...
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
105
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance Small poll @thomwolf @yjernite @lh...
[ -0.14286890625953674, 0.009927898645401001, -0.049109846353530884, 0.16983136534690857, -0.07714338600635529, -0.2269946038722992, 0.3096126317977905, -0.005992542952299118, -0.11064082384109497, 0.02658906579017639, -0.09334714710712433, -0.10927967727184296, 0.06421408802270889, 0.364154...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
In this case we should have named splits, so config `ner` has splits `train`, `validation`, `test-en`, `test-ar`, `test-bg`, etc... This is more in the spirit of the task afaiu, and will avoid making users do the filtering step themselves when testing different models or different configurations of the same model.
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
50
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance In this case we should have named s...
[ -0.4026004374027252, -0.09584897756576538, -0.10031981766223907, -0.14071565866470337, -0.14861799776554108, -0.134750097990036, 0.2657963037490845, 0.31443333625793457, 0.013364069163799286, 0.18667291104793549, -0.17175130546092987, 0.08897803723812103, -0.0634426549077034, 0.34141707420...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
I see your point! I think this would be quite feasible to do and makes sense to me as well! In the paper results are reported per language, so it seems more natural to do it this way. Good for me @yjernite ! What do the others think? @lhoestq
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
49
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance I see your point! I think this ...
[ -0.030935566872358322, -0.01574518531560898, -0.12588994204998016, -0.1005203127861023, -0.1579119861125946, -0.17087551951408386, 0.5267760157585144, 0.005605854094028473, 0.023872986435890198, 0.09561340510845184, -0.07178405672311783, 0.004015203565359116, -0.029220227152109146, 0.26419...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
Okey actually not that easy to add things like `test-de` to `datasets` => this would be the first dataset to have this. See: https://github.com/huggingface/datasets/pull/802
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
24
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance Okey actually not that easy to add ...
[ -0.18463359773159027, -0.2418595552444458, -0.18476511538028717, -0.13035108149051666, -0.05181726813316345, 0.006996557116508484, 0.25056347250938416, 0.11135900020599365, 0.1802295297384262, 0.1449396312236786, -0.1167488843202591, 0.10126715153455734, 0.04857286438345909, 0.390577197074...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
IMO we should have one config per language. That's what we're doing for xnli, xtreme etc. Having split names that depend on the language seems wrong. We should try to avoid split names that are not train/val/test. Sorry for late response on this one
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
44
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance IMO we should have one config per l...
[ -0.14622530341148376, -0.17611265182495117, -0.0905722826719284, 0.012351930141448975, -0.024125974625349045, -0.17038288712501526, 0.46442821621894836, 0.22930054366588593, 0.006415035575628281, 0.1897844523191452, -0.07842179387807846, -0.012321033515036106, 0.06371531635522842, 0.317359...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
@lhoestq agreed on having one config per language, but we also need to be able to have different split names and people are going to want to use hyphens, so we should at the very least warn them why it's failing :) E.g. for ANLI with different stages of data (currently using underscores) or https://www.tau-nlp.org/comm...
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
61
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance @lhoestq agreed on having one confi...
[ -0.20009134709835052, -0.15228064358234406, -0.10690848529338837, -0.11235316097736359, -0.07928083091974258, -0.20000174641609192, 0.5592647790908813, 0.16035184264183044, 0.12979504466056824, 0.19726751744747162, -0.04726753383874893, 0.054989662021398544, 0.0048436010256409645, 0.307424...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
Really cool dataset 👍 btw. does Transformers support all 11 tasks 🤔 would be awesome to have a xglue script (like the "normal" glue one)
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
25
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance Really cool dataset 👍 btw. does Tr...
[ -0.360988587141037, -0.24304813146591187, -0.13333892822265625, -0.10879018902778625, -0.04881957918405533, -0.15857115387916565, 0.40233317017555237, 0.10787023603916168, 0.1723627895116806, 0.04421283304691315, -0.03236386179924011, 0.016761094331741333, -0.13741041719913483, 0.331393301...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
Just to make sure this is what we want here. If we add one config per language, this means that this dataset ends up with well over 100 different configs most of which will have the same `train` split. The train split is always in English. Also, I'm not sure whether it's better for the user to be honest. I thin...
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
107
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance Just to make sure this is what we w...
[ -0.1910264790058136, 0.053199976682662964, -0.07769244909286499, 0.010843414813280106, 0.03872804343700409, -0.080675408244133, 0.5347978472709656, 0.037728287279605865, -0.02048022486269474, 0.14164426922798157, -0.11443264782428741, 0.06805206835269928, -0.18432913720607758, 0.2480088621...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
Oh yes right I didn't notice the train set was always in english sorry. Moreover it seems that the way this dataset is used is to pick a pretrained multilingual model, fine-tune it on the english train set and then evaluate on each test set (one per language). So to better fit the usual usage of this dataset, I agree...
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
122
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance Oh yes right I didn't notice the tr...
[ -0.18502937257289886, -0.01326674222946167, -0.14869073033332825, 0.0019629821181297302, 0.0076411571353673935, 0.04465591907501221, 0.5710828304290771, 0.22784382104873657, 0.07958218455314636, -0.006703287363052368, -0.09681880474090576, 0.038820620626211166, -0.1122409924864769, 0.26150...
https://github.com/huggingface/datasets/issues/749
[XGLUE] Adding new dataset
According to the table in https://huggingface.co/datasets/xglue, Urdu only exists for POS and XNLI in XGLUE - not for summarization
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance
19
[XGLUE] Adding new dataset XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf). I'm planning on adding the dataset to the library myself in a couple of weeks. Also tagging @JetRunner @qiweizhen in case I need some guidance According to the table in https://h...
[ -0.20333586633205414, -0.04770759493112564, -0.12803979218006134, 0.01597890630364418, -0.07033900171518326, -0.006555661559104919, 0.17706628143787384, 0.049845851957798004, -0.14813797175884247, 0.029338039457798004, -0.14510439336299896, -0.061940889805555344, 0.33779048919677734, 0.288...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Thank you ! Could you provide a csv file that reproduces the error ? It doesn't have to be one of your dataset. As long as it reproduces the error That would help a lot !
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
36
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.05317020043730736, 0.07086680829524994, -0.00346352718770504, 0.3629570007324219, 0.24475929141044617, 0.2201901376247406, 0.42531803250312805, 0.3036741614341736, 0.3109278380870819, 0.050986096262931824, -0.06706379354000092, 0.2354821264743805, -0.0957934781908989, -0.021896334365010...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
I think another good example is the following: ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sts-dev.csv"], delimiter="\t", column_names=["one", "two", "three", "four", "score", "sentence1", "sentence2"], script_version="master")` ` Displayed error `CSV parse error: Expe...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
72
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.09010697901248932, 0.017113178968429565, 0.016796283423900604, 0.38810068368911743, 0.2925541400909424, 0.21158838272094727, 0.3847278356552124, 0.22975926101207733, 0.22242270410060883, 0.08985844254493713, -0.10132811963558197, 0.2565504014492035, -0.0943535715341568, 0.03823219984769...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi, seems I also can't read csv file. I was trying with a dummy csv with only three rows. ``` text,label I hate google,negative I love Microsoft,positive I don't like you,negative ``` I was using the HuggingFace image in Paperspace Gradient (datasets==1.1.3). The following code doesn't work: ``` from datas...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
141
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.011862795799970627, 0.08087868988513947, -0.019371110945940018, 0.4624464511871338, 0.289131760597229, 0.1691018044948578, 0.3954823315143585, 0.2487926483154297, 0.2549249231815338, 0.12202344834804535, -0.18819203972816467, 0.22736765444278717, -0.13542701303958893, -0.015302996151149...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
This is because load_dataset without `split=` returns a dictionary of split names (train/validation/test) to dataset. You can do ```python from datasets import load_dataset dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",") print(dataset["train"][0]) ``` Or if y...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
55
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.09202475845813751, 0.05643486976623535, 0.003914400935173035, 0.37216055393218994, 0.24199052155017853, 0.2112511396408081, 0.5301392674446106, 0.39489901065826416, 0.2474181056022644, 0.06873513013124466, -0.14504015445709229, 0.27287960052490234, -0.17804279923439026, 0.08538153767585...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Good point Design question for us, though: should `load_dataset` when no split is specified and only one split is present in the dataset (common use case with CSV/text/JSON datasets) return a `Dataset` instead of a `DatsetDict`? I feel like it's often what the user is expecting. I break a bit the paradigm of a uniqu...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
89
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.05377553403377533, 0.1033460944890976, 0.019004840403795242, 0.36122775077819824, 0.18078327178955078, -0.00425131618976593, 0.5432189702987671, 0.22249911725521088, 0.33720913529396057, -0.0036188438534736633, -0.023761773481965065, 0.30691850185394287, -0.031763963401317596, 0.1189180...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications. I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas. For the other datasets ton the other hand...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
73
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.04469136893749237, 0.024346962571144104, -0.004884656518697739, 0.4194362759590149, 0.14631280303001404, 0.14585036039352417, 0.4632933437824249, 0.2901494801044464, 0.3439598083496094, 0.05064517259597778, -0.135013148188591, 0.22953149676322937, -0.11264533549547195, 0.074318476021289...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Thanks for your quick response! I'm fine with specifying the split as @lhoestq suggested. My only concern is when I'm loading from python dict or pandas, the library returns a dataset instead of a dictionary of datasets when no split is specified. I know that they use a different function `Dataset.from_dict` or `Datase...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
78
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.07806084305047989, 0.05840359628200531, 0.023300252854824066, 0.41484856605529785, 0.13612830638885498, 0.1216801181435585, 0.5085967779159546, 0.2503664791584015, 0.3603423833847046, -0.034915730357170105, -0.13859696686267853, 0.32225480675697327, -0.07130829244852066, 0.1254664659500...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
``` from datasets import load_dataset dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split=['train', 'test']) ``` I was running the above line, but got this error. ```ValueError: Unknown split "test". Should be one of ['train'].``` The data is amazon product data. I...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
78
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ 0.0013096518814563751, 0.051712602376937866, -0.019382333382964134, 0.40136444568634033, 0.2351076751947403, 0.22222983837127686, 0.5522069931030273, 0.321109801530838, 0.23970013856887817, -0.036393582820892334, -0.14609751105308533, 0.22432377934455872, -0.02505701780319214, 0.1022293493...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi ! the `split` argument in `load_dataset` is used to select the splits you want among the available splits. However when loading a csv with a single file as you did, only a `train` split is available by default. Indeed since `data_files='./amazon_data/Video_Games_5.csv'` is equivalent to `data_files={"train": './...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
123
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.12369906902313232, 0.05452743172645569, 0.004668474197387695, 0.3440145254135132, 0.22386324405670166, 0.2072243094444275, 0.555758535861969, 0.3320879340171814, 0.22926655411720276, 0.0723566859960556, -0.12198485434055328, 0.18936602771282196, -0.09884051978588104, 0.05809963494539261...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
> In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications. > I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas. > > For the other datasets ton the ot...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
107
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.06853368133306503, 0.019808262586593628, 0.012349866330623627, 0.416345477104187, 0.15476343035697937, 0.1310771405696869, 0.5161144137382507, 0.33483368158340454, 0.32836660742759705, 0.07457056641578674, -0.11742229014635086, 0.2238827645778656, -0.13035759329795837, 0.077280975878238...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
> Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. > > `from datasets import load_dataset` > `dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")` > > Displayed error: > `... ArrowI...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
319
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.030013779178261757, 0.16949120163917542, 0.02353612706065178, 0.27145469188690186, 0.2753947079181671, 0.17931675910949707, 0.404525488615036, 0.27959492802619934, 0.2873069941997528, 0.015039555728435516, -0.04852303862571716, 0.34998244047164917, -0.12127359956502914, -0.0681237503886...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi @kauvinlucas You can use the latest versions of `datasets` to do this. To do so, just `pip install datasets` instead of `nlp` (the library was renamed) and then ```python from datasets import load_dataset dataset = load_dataset('csv', data_files='sample_data.csv')
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
38
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.03190924972295761, 0.09989118576049805, 0.0016063451766967773, 0.3416559100151062, 0.2253115475177765, 0.18575218319892883, 0.3781753182411194, 0.284349650144577, 0.30763310194015503, -0.004604443907737732, -0.07362975925207138, 0.33380237221717834, -0.12021180242300034, -0.036175377666...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi I'm having a different problem with loading local csv. ```Python from datasets import load_dataset dataset = load_dataset('csv', data_files='sample.csv') ``` gives `ValueError: Specified named and prefix; you can only specify one.` error versions: - datasets: 1.1.3 - python: 3.9.6 - py...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
42
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.05010125786066055, 0.078890860080719, -0.02207377552986145, 0.34020841121673584, 0.22076629102230072, 0.1807747185230255, 0.45851796865463257, 0.2670554220676422, 0.2990829050540924, 0.10055480897426605, -0.15667478740215302, 0.28780168294906616, -0.06055677682161331, -0.045883938670158...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Oh.. I figured it out. According to issue #[42387](https://github.com/pandas-dev/pandas/issues/42387) from pandas, this new version does not accept None for both parameters (which was being done by the repo I'm testing). Dowgrading Pandas==1.0.4 and Python==3.8 worked
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
35
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ 0.024177130311727524, 0.12562057375907898, 0.030674844980239868, 0.31969934701919556, 0.2818751633167267, 0.13472792506217957, 0.4705212414264679, 0.34931454062461853, 0.272031307220459, -0.01025901734828949, -0.1092105358839035, 0.29390451312065125, -0.04485129192471504, -0.02656774222850...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi, I got an `OSError: Cannot find data file. ` when I tried to use load_dataset with tsv files. I have checked the paths, and they are correct. versions - python: 3.7.9 - datasets: 1.1.3 - pyarrow: 2.0.0 - transformers: 4.2.2 ~~~ data_files = {"train": "train.tsv", "test",: "test.tsv"} datasets = load_...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
229
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.12203827500343323, 0.13535374402999878, -0.004957998171448708, 0.40937280654907227, 0.3437596559524536, 0.15759095549583435, 0.49117106199264526, 0.3018617033958435, 0.24092987179756165, 0.07781319320201874, -0.12081131339073181, 0.31133249402046204, -0.22293387353420258, 0.016172962263...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi ! It looks like the error stacktrace doesn't match with your code snippet. What error do you get when running this ? ``` data_files = {"train": "train.tsv", "test",: "test.tsv"} datasets = load_dataset("csv", data_files=data_files, delimiter="\t") ``` can you check that both tsv files are in the same folder ...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
57
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.1632082462310791, 0.1201280802488327, -0.020389921963214874, 0.37119436264038086, 0.29089295864105225, 0.19067391753196716, 0.3376259505748749, 0.30880627036094666, 0.25583553314208984, 0.10500704497098923, -0.1869196742773056, 0.20546771585941315, -0.15934325754642487, 0.06117948889732...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi @lhoestq, Below is the entire error message after I move both tsv files to the same directory. It's the same with I got before. ``` /projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that ...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
311
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.071382537484169, 0.036321982741355896, -0.02468651533126831, 0.5199026465415955, 0.3269374370574951, 0.19283992052078247, 0.44621872901916504, 0.3241173326969147, 0.2243308424949646, 0.04281388968229294, -0.019541950896382332, 0.26659682393074036, -0.03721670061349869, 0.039765164256095...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi ! Can you try running this into a python shell directly ? ```python import os from datasets import load_dataset data_files = {"train": "train.tsv", "test": "test.tsv"} assert all(os.path.isfile(data_file) for data_file in data_files.values()), "Couln't find files" datasets = load_dataset("csv", data_fil...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
56
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.006285965442657471, 0.06183341145515442, 0.00043598003685474396, 0.34390467405319214, 0.25248807668685913, 0.17513391375541687, 0.5055188536643982, 0.3278368413448334, 0.383930504322052, 0.00752035528421402, -0.09473074972629547, 0.2648680806159973, -0.09982787072658539, -0.009366573765...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi @lhoestq, Below is what I got from terminal after I copied and run your code. I think the files themselves are good since there is no assertion error. ``` Using custom data configuration default-df627c23ac0e98ec Downloading and preparing dataset csv/default (download: Unknown size, generated: Unknown size,...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
160
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.07662072777748108, 0.09206579625606537, -0.0017136894166469574, 0.4262591600418091, 0.2603352665901184, 0.17576563358306885, 0.38547465205192566, 0.28411194682121277, 0.26407116651535034, 0.03102608025074005, -0.1189909353852272, 0.2788830101490021, -0.055752672255039215, 0.043607085943...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache. By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ? You can also try to change the cache directory by passing `cach...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
58
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.08710876107215881, 0.10206978023052216, 0.0059990473091602325, 0.43149203062057495, 0.21857941150665283, 0.2184785008430481, 0.42929020524024963, 0.2389688640832901, 0.3231711983680725, 0.024806827306747437, -0.1687798947095871, 0.23847609758377075, -0.110129214823246, -0.09334153681993...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
Thank you!! @lhoestq For some reason, I don't have the default path for datasets to cache, maybe because I work from a remote system. The issue solved after I pass the `cache_dir` argument to the function. Thank you very much!!
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
40
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.08596587181091309, 0.09212014079093933, 0.005469232797622681, 0.39305925369262695, 0.27935895323753357, 0.19947373867034912, 0.4239513874053955, 0.25634220242500305, 0.312151163816452, 0.009807854890823364, -0.10004007816314697, 0.28330424427986145, -0.09020110964775085, -0.069262400269...
https://github.com/huggingface/datasets/issues/743
load_dataset for CSV files not working
> Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache. > > By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ? You can also try to change the cache directory by passing ...
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ` Displayed error: ` ... ArrowInva...
135
load_dataset for CSV files not working Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets. ` from datasets import load_dataset ` ` dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master") ...
[ -0.14044484496116638, 0.08314011991024017, -0.02031908556818962, 0.40277332067489624, 0.19893652200698853, 0.18822187185287476, 0.45552143454551697, 0.2276151329278946, 0.36947762966156006, 0.10430470108985901, -0.08280753344297409, 0.25976642966270447, -0.07921983301639557, -0.14901956915...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Thanks for reporting. In theory since the dataset script is just made to yield examples to write them into an arrow file, it's not supposed to create memory issues. Could you please try to run this exact same loop in a separate script to see if it's not an issue with `PIL` ? You can just copy paste what's inside `...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
96
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Here's an equivalent loading code: ```python images_path = "PHOENIX-2014-T-release-v3/PHOENIX-2014-T/features/fullFrame-210x260px/train" for dir_path in tqdm(os.listdir(images_path)): frames_path = os.path.join(images_path, dir_path) np_frames = [] for frame_name in os.listdir(frames_path): ...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
75
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
I've had similar issues with Arrow once. I'll investigate... For now maybe we can simply use the images paths in the dataset you want to add. I don't expect to fix this memory issue until 1-2 weeks unfortunately. Then we can just update the dataset with the images. What do you think ?
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
53
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
If it's just 1-2 weeks, I think it's best if we wait. I don't think it is very urgent to add it, and it will be much more useful with the images loaded rather than not (the images are low resolution, and thus papers using this dataset actually fit the entire video into memory anyway) I'll keep working on other datas...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
65
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Ok found the issue. This is because the batch size used by the writer is set to 10 000 elements by default so it would load your full dataset in memory (the writer has a buffer that flushes only after each batch). Moreover to write in Apache Arrow we have to use python objects so what's stored inside the ArrowWriter's ...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
97
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Thanks, that's awesome you managed to find the problem. About the 32 bits - really? there isn't a way to serialize the numpy array somehow? 32 bits would take 4 times the memory / disk space needed to store these videos. Please let me know when the batch size is customizable and I'll try again!
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
55
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
The 32 bit integrers are only used in the writer's buffer because Arrow doesn't take numpy arrays correctly as input. On disk it's stored as uint8 in arrow format ;)
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
30
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
> I don't expect to fix this memory issue until 1-2 weeks unfortunately. Hi @lhoestq not to rush of course, but I was wondering if you have a new timeline so I know how to plan my work around this :)
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
41
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Alright it should be good now. You just have to specify `_writer_batch_size = 10` for example as a class attribute of the dataset builder class.
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
25
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
I added it, but still it consumes as much memory https://github.com/huggingface/datasets/pull/722/files#diff-2e0d865dd4a60dedd1861d6f8c5ed281ded71508467908e1e0b1dbe7d2d420b1R66 Did I not do it correctly?
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
17
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Yes you did it right. Did you rebase to include the changes of #828 ? EDIT: looks like you merged from master in the PR. Not sure why you still have an issue then, I will investigate
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
37
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Sorry for the delay, I was busy with the dataset sprint and the incredible amount of contributions to the library ^^' What you can try to do to find what's wrong is check at which frequency the arrow writer writes all the examples from its in-memory buffer on disk. This happens [here](https://github.com/huggingface/...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
128
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
I had the same issue. It works for me by setting `DEFAULT_WRITER_BATCH_SIZE = 10` of my dataset builder class. (And not `_writer_batch_size` as previously mentioned). I guess this is because `_writer_batch_size` is overwritten in `__init__` (see [here](https://github.com/huggingface/datasets/blob/0e2563e5d5c2fc193ea27...
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
37
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/741
Creating dataset consumes too much memory
Yes the class attribute you can change is `DEFAULT_WRITER_BATCH_SIZE`. Otherwise in `load_dataset` you can specify `writer_batch_size=`
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, base_path, split): """ Yields examp...
16
Creating dataset consumes too much memory Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue. Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400): ```python def _generate_examples(self, ...
[ -0.2472246289253235, -0.048452310264110565, -0.0161761324852705, 0.2615474462509155, 0.18142792582511902, 0.20232373476028442, 0.14100605249404907, 0.28364327549934387, -0.09369175136089325, 0.2016248106956482, 0.4972400367259979, 0.14902545511722565, -0.2346247434616089, 0.006733531132340...
https://github.com/huggingface/datasets/issues/737
Trec Dataset Connection Error
Thanks for reporting. That's because the download url has changed. The old url now redirects to the new one but we don't support redirection for downloads. I'm opening a PR to update the url
**Datasets Version:** 1.1.2 **Python Version:** 3.6/3.7 **Code:** ```python from datasets import load_dataset load_dataset("trec") ``` **Expected behavior:** Download Trec dataset and load Dataset object **Current Behavior:** Get a connection error saying it couldn't reach http://cogcomp.org/Data/...
34
Trec Dataset Connection Error **Datasets Version:** 1.1.2 **Python Version:** 3.6/3.7 **Code:** ```python from datasets import load_dataset load_dataset("trec") ``` **Expected behavior:** Download Trec dataset and load Dataset object **Current Behavior:** Get a connection error saying it couldn'...
[ -0.24363957345485687, 0.10745978355407715, -0.014968900009989738, 0.15051591396331787, 0.38006794452667236, -0.1288014054298401, 0.27454155683517456, 0.3322344422340393, -0.20466133952140808, 0.1162949949502945, -0.19129391014575958, 0.25811171531677246, 0.07228124886751175, -0.16582342982...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
Thanks for reporting. That's a bug indeed. Apparently only the `data_files` parameter is taken into account right now in `DatasetBuilder._create_builder_config` but it should also be the case for `config_kwargs` (or at least the instantiated `builder_config`)
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
35
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = ...
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
63
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
```ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})``` Gives the output ```Using custom data configuration default-5c8ae7c208631aca``` and the code hangs there.
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
20
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
> `ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})` > > Gives the output `Using custom data configuration default-5c8ae7c208631aca` > > and the code hangs there. Have you solved it? I met this problem too!
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
34
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
Can you Ctrl+C to kill the process and share the stacktrace here ? It should show at which location in the code it was hanging
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
25
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1 pip install -q datasets==2.6.1
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
21
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/730
Possible caching bug
> I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1 pip install -q datasets==2.6.1 Thanks, it works for me
The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(dataset[0]) ``` produc...
27
Possible caching bug The following code with `test1.txt` containing just "🤗🤗🤗": ``` dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1") print(dataset[0]) dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8") print(da...
[ 0.06326085329055786, -0.1689581423997879, -0.1356962025165558, 0.3066900372505188, 0.3663589358329773, -0.08226624876260757, 0.21097038686275482, 0.19322779774665833, -0.08093328773975372, 0.14596495032310486, -0.052267737686634064, 0.061048440635204315, 0.17751987278461456, -0.05598509311...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi try, to provide more information please. Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version).
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
38
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
> Hi try, to provide more information please. > > Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version). I have update the description, sorry for the incomplete issue by mistake.
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
53
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi, I have manually downloaded the compressed dataset `openwebtext.tar.xz' and use the following command to preprocess the examples: ``` >>> dataset = load_dataset('/home/admin/workspace/datasets/datasets-master/datasets-master/datasets/openwebtext', data_dir='/home/admin/workspace/datasets') Using custom data confi...
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
87
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
NonMatchingChecksumError: Checksums didn't match for dataset source files: i got this issue when i try to work on my own datasets kindly tell me, from where i can get checksums of train and dev file in my github repo
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
39
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi, I got the similar issue for xnli dataset while working on colab with python3.7. `nlp.load_dataset(path = 'xnli')` The above command resulted in following issue : ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip'] ```...
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
44
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/726
"Checksums didn't match for dataset source files" error while loading openwebtext dataset
Says fixed but I'm still getting it. command: dataset = load_dataset("ted_talks_iwslt", language_pair=("en", "es"), year="2014",download_mode="force_redownload") got: Using custom data configuration en_es_2014-35a2d3350a0f9823 Downloading and preparing dataset ted_talks_iwslt/en_es_2014 (download: 2.15 K...
Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/op...
52
"Checksums didn't match for dataset source files" error while loading openwebtext dataset Hi, I have encountered this problem during loading the openwebtext dataset: ``` >>> dataset = load_dataset('openwebtext') Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, p...
[ -0.4920600950717926, 0.03898797929286957, -0.059488266706466675, 0.3662634491920471, 0.2443767637014389, -0.03378767520189285, 0.13654375076293945, 0.5504936575889587, -0.00061076320707798, -0.06028178334236145, -0.06665407121181488, -0.03101109154522419, 0.023808903992176056, 0.3648075759...
https://github.com/huggingface/datasets/issues/724
need to redirect /nlp to /datasets and remove outdated info
Should be fixed now: ![image](https://user-images.githubusercontent.com/35882/95917301-040b0600-0d78-11eb-9655-c4ac0e788089.png) Not sure I understand what you mean by the second part?
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had t...
16
need to redirect /nlp to /datasets and remove outdated info It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked...
[ 0.2948439121246338, 0.11055658757686615, -0.06337518990039825, 0.10946282744407654, -0.07132752984762192, 0.035395585000514984, -0.26029959321022034, 0.6290496587753296, -0.2917526364326477, -0.4541856050491333, -0.1458728164434433, 0.21951068937778473, 0.29476043581962585, 0.0850121453404...
https://github.com/huggingface/datasets/issues/724
need to redirect /nlp to /datasets and remove outdated info
Thank you! > Not sure I understand what you mean by the second part? Compare the 2: * https://huggingface.co/datasets/wikihow * https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all Can you see the difference? 2nd has formatting, 1st doesn't.
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had t...
31
need to redirect /nlp to /datasets and remove outdated info It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked...
[ 0.33476942777633667, -0.03131116181612015, -0.02454305626451969, 0.12239257991313934, -0.11466503143310547, 0.045322418212890625, -0.3248897194862366, 0.6779080629348755, -0.43325114250183105, -0.5133861303329468, -0.15811605751514435, 0.030890051275491714, 0.2777538299560547, 0.0370306223...
https://github.com/huggingface/datasets/issues/724
need to redirect /nlp to /datasets and remove outdated info
For context, those are two different pages (not an old vs new one), one is from the dataset viewer (you can browse data inside the datasets) while the other is just a basic reference page displayed some metadata about the dataset. For the second one, we'll move to markdown parsing soon, so it'll be formatted better.
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had t...
56
need to redirect /nlp to /datasets and remove outdated info It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all should probably redirect to: https://huggingface.co/datasets/wikihow also for some reason the new information is slightly borked...
[ 0.1384783685207367, 0.023690417408943176, -0.09799982607364655, 0.028966564685106277, -0.05199545621871948, 0.04589784890413284, -0.13160447776317596, 0.49615195393562317, -0.13756324350833893, -0.20727436244487762, -0.14076820015907288, 0.34675824642181396, 0.2411792278289795, 0.071461431...
https://github.com/huggingface/datasets/issues/723
Adding pseudo-labels to datasets
Nice ! :) It's indeed the first time we have such contributions so we'll have to figure out the appropriate way to integrate them. Could you add details on what they could be used for ?
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generations on an existing dataset, what is ...
36
Adding pseudo-labels to datasets I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generatio...
[ 0.35087189078330994, -0.13396556675434113, 0.06405717134475708, 0.014674365520477295, 0.11721920222043991, 0.04259362071752548, 0.24841487407684326, -0.05569251999258995, -0.14547522366046906, -0.04287610948085785, -0.22757695615291595, 0.0762307345867157, -0.1649908721446991, 0.5450239777...
https://github.com/huggingface/datasets/issues/723
Adding pseudo-labels to datasets
A new configuration for those datasets should do the job then. Note that until now datasets like xsum only had one configuration. It means that users didn't have to specify the configuration name when loading the dataset. If we add new configs, users that update the lib will have to update their code to specify the de...
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generations on an existing dataset, what is ...
65
Adding pseudo-labels to datasets I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generatio...
[ 0.29980844259262085, -0.13442707061767578, 0.10647694766521454, -0.04210367798805237, 0.1416296362876892, 0.03859053552150726, 0.33537033200263977, -0.06112482026219368, -0.1213265061378479, 0.012237444519996643, -0.23087550699710846, 0.10576275736093521, -0.1279502660036087, 0.50048655271...
https://github.com/huggingface/datasets/issues/723
Adding pseudo-labels to datasets
Oh yes why not. I'm more in favor of this actually since pseudo labels are things that users (not dataset authors in general) can compute by themselves and share with the community
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generations on an existing dataset, what is ...
32
Adding pseudo-labels to datasets I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generatio...
[ 0.2814163565635681, -0.0320717915892601, 0.0793316662311554, -0.008558839559555054, 0.08331117033958435, 0.030321389436721802, 0.3540933430194855, -0.11276215314865112, -0.18462742865085602, 0.025800861418247223, -0.22456905245780945, 0.061626579612493515, -0.11643076688051224, 0.507089734...
https://github.com/huggingface/datasets/issues/723
Adding pseudo-labels to datasets
![image](https://user-images.githubusercontent.com/6045025/96045248-b528a380-0e3f-11eb-9124-bd55afa031bb.png) I assume I should (for example) rename the xsum dir, change the URL, and put the modified dir somewhere in S3?
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generations on an existing dataset, what is ...
22
Adding pseudo-labels to datasets I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generatio...
[ 0.38241830468177795, -0.05905160307884216, 0.057578425854444504, 0.0074141062796115875, 0.13427871465682983, 0.013138100504875183, 0.2963201105594635, -0.1217542290687561, -0.21988365054130554, -0.043527841567993164, -0.27877530455589294, 0.08048360049724579, -0.08394201099872589, 0.512279...
https://github.com/huggingface/datasets/issues/723
Adding pseudo-labels to datasets
You can use the `datasets-cli` to upload the folder with your version of xsum with the pseudo labels. ``` datasets-cli upload_dataset path/to/xsum ```
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generations on an existing dataset, what is ...
23
Adding pseudo-labels to datasets I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo. Since pseudo-labels are just a large model's generatio...
[ 0.3005569577217102, -0.08655238151550293, 0.07898759841918945, 0.012747697532176971, 0.13790151476860046, 0.04259231686592102, 0.2965247631072998, -0.0892709493637085, -0.1311771273612976, 0.0045274123549461365, -0.2615562379360199, 0.1170213520526886, -0.1018751785159111, 0.50301033258438...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
We only support http by default for downloading. If you really need to use ftp, then feel free to use a library that allows to download through ftp in your dataset script (I see that you've started working on #722 , that's awesome !). The users will get a message to install the extra library when they load the dataset...
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
120
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.27778035402297974, 0.0965271145105362, -0.02943287417292595, 0.28272587060928345, -0.04885689169168472, 0.06269551068544388, -0.21937058866024017, 0.4863719046115875, 0.2671806216239929, 0.004616722464561462, -0.06453939527273178, 0.1767718642950058, -0.1338641196489334, 0.0276906508952...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
Also maybe it coud be interesting to have a direct support of ftp inside the `datasets` library. Do you know any good libraries that we might consider adding as a (optional ?) dependency ?
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
34
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.3274756669998169, 0.05987010896205902, -0.016492934897542, 0.2534114420413971, -0.08063249289989471, 0.09111251682043076, -0.38278359174728394, 0.47498199343681335, 0.2600124180316925, -0.012885406613349915, 0.06837397813796997, 0.09324309974908829, -0.12189710885286331, 0.0611721277236...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
Downloading an `ftp` file is as simple as: ```python import urllib urllib.urlretrieve('ftp://server/path/to/file', 'file') ``` I believe this should be supported by the library, as its not using any dependency and is trivial amount of code.
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
35
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.2455560714006424, -0.005682460963726044, 0.011401008814573288, 0.268014520406723, -0.08103978633880615, 0.05635697394609451, -0.34725886583328247, 0.4960227310657501, 0.21058440208435059, 0.055927690118551254, 0.005422070622444153, 0.1040768250823021, -0.1624983847141266, -0.00030066259...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
I know its unorthodox, but I added `ftp` download support to `file_utils` in the same PR https://github.com/huggingface/datasets/pull/722 So its possible to understand the interaction of the download component with the ftp download ability
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
33
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.20793147385120392, -0.09989284723997116, -0.020252997055649757, 0.3010156452655792, 0.004464121535420418, 0.03847813606262207, -0.35531243681907654, 0.3622781038284302, 0.19003504514694214, -0.0035544931888580322, -0.03681350499391556, 0.021745072677731514, 0.015500792302191257, -0.0038...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
@hoanganhpham1006 yes. See pull request https://github.com/huggingface/datasets/pull/722 , it has a loader for this dataset, mostly ready. There's one issue that delays it being merged - https://github.com/huggingface/datasets/issues/741 - regarding memory consumption.
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
30
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.2078174203634262, -0.1362145096063614, 0.022339701652526855, 0.3684147596359253, -0.04260282218456268, 0.0941680446267128, -0.4160579442977905, 0.4587388038635254, 0.24659869074821472, -0.021978706121444702, -0.10486697405576706, 0.05492999777197838, -0.17395712435245514, 0.040617130696...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
The problem which I have now is that this dataset seems does not allow to download? Can you share it with me pls
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
23
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.21959105134010315, -0.11206912994384766, -0.024619316682219505, 0.38348954916000366, -0.05260268598794937, 0.11773990839719772, -0.3828476071357727, 0.41394472122192383, 0.23226287961006165, 0.022305600345134735, -0.014095796272158623, 0.0171897504478693, -0.1022190973162651, 0.03190904...
https://github.com/huggingface/datasets/issues/721
feat(dl_manager): add support for ftp downloads
The dataset loader is not yet ready, because of that issue. If you want to just download the dataset the old-fashioned way, just go to: https://www-i6.informatik.rwth-aachen.de/ftp/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz (the ftp link is now broken, and its available over https)
I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz" dl_manager.do...
37
feat(dl_manager): add support for ftp downloads I am working on a new dataset (#302) and encounter a problem downloading it. ```python # This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/ _URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoen...
[ -0.28215113282203674, -0.021540746092796326, -0.008781099691987038, 0.2353300005197525, -0.07501132041215897, 0.0881376639008522, -0.2813766896724701, 0.460962176322937, 0.23764503002166748, 0.021310284733772278, 0.019712865352630615, 0.07932388037443161, -0.11204049736261368, 0.0288052130...
https://github.com/huggingface/datasets/issues/720
OSError: Cannot find data file when not using the dummy dataset in RAG
Same issue here. I will be digging further, but it looks like the [script](https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py#L132) is attempting to open a file that is not downloaded yet. ``` 99dcbca09109e58502e6b9271d4d3f3791b43f61f3161a76b25d2775ab1a4498.lock ``` ``` --------...
## Environment info transformers version: 3.3.1 Platform: Linux-4.19 Python version: 3.7.7 PyTorch version (GPU?): 1.6.0 Tensorflow version (GPU?): No Using GPU in script?: Yes Using distributed or parallel set-up in script?: No ## To reproduce Steps to reproduce the behaviour...
387
OSError: Cannot find data file when not using the dummy dataset in RAG ## Environment info transformers version: 3.3.1 Platform: Linux-4.19 Python version: 3.7.7 PyTorch version (GPU?): 1.6.0 Tensorflow version (GPU?): No Using GPU in script?: Yes Using distributed or parallel set...
[ -0.225868821144104, -0.048717595636844635, 0.012397438287734985, 0.10525498539209366, 0.37066686153411865, -0.06985393166542053, 0.33231642842292786, 0.26923006772994995, 0.01551273837685585, 0.3250916004180908, -0.1394265741109848, 0.21765241026878357, -0.06373469531536102, -0.32198175787...
https://github.com/huggingface/datasets/issues/720
OSError: Cannot find data file when not using the dummy dataset in RAG
An update on my end. This seems like a transient issue. Reran the script from scratch overnight with no errors.
## Environment info transformers version: 3.3.1 Platform: Linux-4.19 Python version: 3.7.7 PyTorch version (GPU?): 1.6.0 Tensorflow version (GPU?): No Using GPU in script?: Yes Using distributed or parallel set-up in script?: No ## To reproduce Steps to reproduce the behaviour...
20
OSError: Cannot find data file when not using the dummy dataset in RAG ## Environment info transformers version: 3.3.1 Platform: Linux-4.19 Python version: 3.7.7 PyTorch version (GPU?): 1.6.0 Tensorflow version (GPU?): No Using GPU in script?: Yes Using distributed or parallel set...
[ -0.225868821144104, -0.048717595636844635, 0.012397438287734985, 0.10525498539209366, 0.37066686153411865, -0.06985393166542053, 0.33231642842292786, 0.26923006772994995, 0.01551273837685585, 0.3250916004180908, -0.1394265741109848, 0.21765241026878357, -0.06373469531536102, -0.32198175787...
https://github.com/huggingface/datasets/issues/709
How to use similarity settings other then "BM25" in Elasticsearch index ?
Datasets does not use elasticsearch API to define custom similarity. If you want to use a custom similarity, the best would be to run a curl request directly to your elasticsearch instance (see sample hereafter, directly from ES documentation), then you should be able to use `my_similarity` in your configuration passed...
**QUESTION : How should we use other similarity algorithms supported by Elasticsearch other than "BM25" ?** **ES Reference** https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-similarity.html **HF doc reference:** https://huggingface.co/docs/datasets/faiss_and_ea.html **context :** =...
88
How to use similarity settings other then "BM25" in Elasticsearch index ? **QUESTION : How should we use other similarity algorithms supported by Elasticsearch other than "BM25" ?** **ES Reference** https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-similarity.html **HF doc reference:*...
[ -0.10997957736253738, -0.6802700757980347, -0.04501506686210632, -0.039937131106853485, -0.1662629097700119, 0.051654644310474396, -0.18381747603416443, 0.22279547154903412, 0.44525662064552307, 0.13827165961265564, -0.34139057993888855, -0.1468978375196457, 0.06352023780345917, -0.2089972...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
Facing a similar issue here. My model using SQuAD dataset takes about 1h to process with in memory data and more than 2h with datasets directly.
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
26
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
Thanks for the tip @thomwolf ! I did not see that flag in the docs. I'll try with that.
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
19
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
We should add it indeed and also maybe a specific section with all the tips for maximal speed. What do you think @lhoestq @SBrandeis @yjernite ?
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
26
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
By default the datasets loaded with `load_dataset` live on disk. It's possible to load them in memory by using some transforms like `.map(..., keep_in_memory=True)`. Small correction to @thomwolf 's comment above: currently we don't have the `keep_in_memory` parameter for `load_dataset` AFAIK but it would be nice t...
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
51
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
Great! Thanks a lot. I did a test using `map(..., keep_in_memory=True)` and also a test using in-memory only data. ```python features = dataset.map(tokenize, batched=True, remove_columns=dataset['train'].column_names) features.set_format(type='torch', columns=['input_ids', 'token_type_ids', 'attention_mask']) ...
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
170
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
I am having the same issue here. When loading from memory I can get the GPU up to 70% util but when loading after mapping I can only get 40%. In disk: ``` book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:20%]') book_corpus = book_corpus.map(encode, batc...
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
247
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
There is a way to increase the batches read from memory? or multiprocessed it? I think that one of two or it is reading with just 1 core o it is reading very small chunks from disk and left my GPU at 0 between batches
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
45
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/708
Datasets performance slow? - 6.4x slower than in memory dataset
My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks.
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower....
21
Datasets performance slow? - 6.4x slower than in memory dataset I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset. Now, this is expected I guess, due to memory mapping data using arrow files, and you do...
[ -0.3806666433811188, -0.042408622801303864, -0.03140971064567566, 0.4377957582473755, 0.10050874948501587, 0.12637382745742798, 0.013655014336109161, 0.30718183517456055, 0.09141014516353607, -0.07309862971305847, -0.06624182313680649, 0.30112794041633606, -0.0139892203733325, -0.274288773...
https://github.com/huggingface/datasets/issues/707
Requirements should specify pyarrow<1
@punitaojha, certainly. Feel free to work on this. Let me know if you need any help or clarity.
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinni...
18
Requirements should specify pyarrow<1 I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having insta...
[ -0.2744113802909851, -0.20904040336608887, 0.015252858400344849, 0.18003463745117188, 0.04734569787979126, -0.061974477022886276, 0.039089590311050415, 0.18513691425323486, -0.04468001425266266, 0.05690273642539978, -0.050833068788051605, 0.29233604669570923, -0.005038904957473278, 0.07317...
https://github.com/huggingface/datasets/issues/707
Requirements should specify pyarrow<1
Hello @mathcass 1. I did fork the repository and clone the same on my local system. 2. Then learnt about how we can publish our package on pypi.org. Also, found some instructions on same in setup.py documentation. 3. Then I Perplexity document link that you shared above. I created a colab link from there keep ...
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinni...
103
Requirements should specify pyarrow<1 I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having insta...
[ -0.20867182314395905, -0.2492392361164093, 0.010470625013113022, 0.1431630253791809, -0.13511915504932404, -0.136764794588089, 0.06010923534631729, 0.17778384685516357, -0.07222632318735123, 0.18768423795700073, -0.1349501609802246, 0.39214077591896057, -0.010591569356620312, 0.20251555740...
https://github.com/huggingface/datasets/issues/707
Requirements should specify pyarrow<1
Thanks for looking at this @punitaojha and thanks for sharing the notebook. I just tried to reproduce this on my own (based on the environment where I had this issue) and I can't reproduce it somehow. If I run into this again, I'll include some steps to reproduce it. I'll close this as invalid. Thanks again.
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinni...
56
Requirements should specify pyarrow<1 I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having insta...
[ -0.26007241010665894, -0.22944605350494385, 0.04454609379172325, 0.2166784554719925, 0.07497298717498779, -0.06393042951822281, -0.0022502876818180084, 0.1691177934408188, -0.012705547735095024, 0.06574329733848572, 0.020896822214126587, 0.29015490412712097, -0.011995836161077023, 0.016585...
https://github.com/huggingface/datasets/issues/707
Requirements should specify pyarrow<1
I am sorry for hijacking this closed issue, but I believe I was able to reproduce this very issue. Strangely enough, it also turned out that running `pip install "pyarrow<1" --upgrade` did indeed fix the issue (PyArrow was installed in version `0.14.1` in my case). Please see the Colab below: https://colab.resear...
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinni...
52
Requirements should specify pyarrow<1 I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error, ``` module 'pyarrow' has no attribute 'PyExtensionType' ``` I traced it back to datasets having insta...
[ -0.2761940062046051, -0.1401243954896927, 0.034747667610645294, 0.16038575768470764, 0.04856133460998535, -0.042708687484264374, 0.026622667908668518, 0.19843684136867523, -0.05828021839261055, 0.06005023792386055, 0.001563002821058035, 0.2838503420352936, -0.004442532546818256, 0.03769784...
https://github.com/huggingface/datasets/issues/705
TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'
Hi ! Thanks for reporting :) Indeed this is an issue on the `datasets` side. I'm creating a PR
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 3.3.1 (installed from master) - `datasets` version: 1.0.2 (installed as a dependency from transformers) ...
19
TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit' ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 3.3.1 (installed from ma...
[ -0.29192715883255005, -0.6131455898284912, -0.05387753248214722, 0.07242836058139801, 0.5358546376228333, 0.051285676658153534, 0.5790154337882996, 0.3014283776283264, 0.28852659463882446, 0.1793082058429718, -0.034908540546894073, 0.16951847076416016, -0.042311180382966995, -0.11918780207...
https://github.com/huggingface/datasets/issues/699
XNLI dataset is not loading
also i tried below code to solve checksum error `datasets-cli test ./datasets/xnli --save_infos --all_configs` and it shows ``` 2020-10-02 07:06:16.588760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 Traceback (most recent call last): ...
`dataset = datasets.load_dataset(path='xnli')` showing below error ``` /opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 36 if len(bad_urls) > 0: 37 error_msg = "Checksums didn't match" + for_verifi...
170
XNLI dataset is not loading `dataset = datasets.load_dataset(path='xnli')` showing below error ``` /opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 36 if len(bad_urls) > 0: 37 error_msg = "Check...
[ -0.281051903963089, 0.14010050892829895, -0.09117168188095093, 0.12604497373104095, 0.22666780650615692, -0.24099740386009216, 0.30729180574417114, 0.42818447947502136, 0.08965209126472473, -0.06145189702510834, -0.019094593822956085, 0.47371339797973633, 0.18641607463359833, 0.11768046766...
https://github.com/huggingface/datasets/issues/699
XNLI dataset is not loading
Hi ! Yes the download url changed. It's updated on the master branch. I'm doing a release today to fix that :)
`dataset = datasets.load_dataset(path='xnli')` showing below error ``` /opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 36 if len(bad_urls) > 0: 37 error_msg = "Checksums didn't match" + for_verifi...
22
XNLI dataset is not loading `dataset = datasets.load_dataset(path='xnli')` showing below error ``` /opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 36 if len(bad_urls) > 0: 37 error_msg = "Check...
[ -0.154536634683609, 0.32822030782699585, -0.06746263056993484, 0.1016501933336258, 0.11844582855701447, -0.08490347117185593, 0.11391429603099823, 0.35178589820861816, -0.08381587266921997, -0.13450516760349274, -0.07374466210603714, 0.35109320282936096, 0.20486924052238464, 0.050640188157...
https://github.com/huggingface/datasets/issues/690
XNLI dataset: NonMatchingChecksumError
Thanks for reporting. The data file must have been updated by the host. I'll update the checksum with the new one.
Hi, I tried to download "xnli" dataset in colab using `xnli = load_dataset(path='xnli')` but got 'NonMatchingChecksumError' error `NonMatchingChecksumError Traceback (most recent call last) <ipython-input-27-a87bedc82eeb> in <module>() ----> 1 xnli = load_dataset(path='xnli') 3 frames /usr...
21
XNLI dataset: NonMatchingChecksumError Hi, I tried to download "xnli" dataset in colab using `xnli = load_dataset(path='xnli')` but got 'NonMatchingChecksumError' error `NonMatchingChecksumError Traceback (most recent call last) <ipython-input-27-a87bedc82eeb> in <module>() ----> 1 xnli = lo...
[ -0.25861361622810364, 0.25621089339256287, 0.03577624633908272, 0.17244897782802582, -0.006708342581987381, -0.03667508810758591, 0.08086847513914108, 0.406707227230072, 0.1755126714706421, 0.23367857933044434, -0.21354615688323975, 0.30520403385162354, -0.018766384571790695, -0.0720468610...
https://github.com/huggingface/datasets/issues/690
XNLI dataset: NonMatchingChecksumError
I'll do a release in the next few days to make the fix available for everyone. In the meantime you can load `xnli` with ``` xnli = load_dataset('xnli', script_version="master") ``` This will use the latest version of the xnli script (available on master branch), instead of the old one.
Hi, I tried to download "xnli" dataset in colab using `xnli = load_dataset(path='xnli')` but got 'NonMatchingChecksumError' error `NonMatchingChecksumError Traceback (most recent call last) <ipython-input-27-a87bedc82eeb> in <module>() ----> 1 xnli = load_dataset(path='xnli') 3 frames /usr...
49
XNLI dataset: NonMatchingChecksumError Hi, I tried to download "xnli" dataset in colab using `xnli = load_dataset(path='xnli')` but got 'NonMatchingChecksumError' error `NonMatchingChecksumError Traceback (most recent call last) <ipython-input-27-a87bedc82eeb> in <module>() ----> 1 xnli = lo...
[ -0.34403806924819946, 0.2931840419769287, -0.00019777752459049225, 0.14771169424057007, 0.04289952665567398, -0.016493290662765503, 0.06692826747894287, 0.433577299118042, 0.1969796121120453, 0.26154205203056335, -0.19293852150440216, 0.39781928062438965, -0.038058191537857056, -0.00336113...
https://github.com/huggingface/datasets/issues/687
`ArrowInvalid` occurs while running `Dataset.map()` function
Hi ! This is because `encode` expects one single text as input (str), or one tokenized text (List[str]). I believe that you actually wanted to use `encode_batch` which expects a batch of texts. However this method is only available for our "fast" tokenizers (ex: BertTokenizerFast). BertJapanese is not one of them...
It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error. Code: ```python # train_ds = Dataset(features: { # 'title': Value(dtype='string', id=None), # 'score': Value(dtype='float64', id=Non...
128
`ArrowInvalid` occurs while running `Dataset.map()` function It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error. Code: ```python # train_ds = Dataset(features: { # 'title': Value(dtype='st...
[ -0.3730498254299164, 0.020999237895011902, -0.10263197124004364, -0.016630016267299652, 0.11070314794778824, 0.1678619086742401, 0.12684766948223114, 0.3861757814884186, -0.19624215364456177, 0.11606305837631226, 0.2094029188156128, 0.6037943959236145, -0.11678694933652878, 0.0404953658580...
https://github.com/huggingface/datasets/issues/687
`ArrowInvalid` occurs while running `Dataset.map()` function
Thank you very much for the kind and precise suggestion! I'm looking forward to seeing BertJapaneseTokenizer built into the "fast" tokenizers. I tried `map` with multiprocessing as follows, and it worked! ```python # There was a Pickle problem if I use `lambda` for multiprocessing def encode(examples): re...
It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error. Code: ```python # train_ds = Dataset(features: { # 'title': Value(dtype='string', id=None), # 'score': Value(dtype='float64', id=Non...
61
`ArrowInvalid` occurs while running `Dataset.map()` function It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error. Code: ```python # train_ds = Dataset(features: { # 'title': Value(dtype='st...
[ -0.3730498254299164, 0.020999237895011902, -0.10263197124004364, -0.016630016267299652, 0.11070314794778824, 0.1678619086742401, 0.12684766948223114, 0.3861757814884186, -0.19624215364456177, 0.11606305837631226, 0.2094029188156128, 0.6037943959236145, -0.11678694933652878, 0.0404953658580...