html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
list
https://github.com/huggingface/datasets/issues/1610
shuffle does not accept seed
Hi Thomas thanks for reponse, yes, I did checked it, but this does not work for me please see ``` (internship) rkarimi@italix17:/idiap/user/rkarimi/dev$ python Python 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more inform...
Hi I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
134
shuffle does not accept seed Hi I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq Hi Thomas thanks for reponse, yes, I did checked it, but this does ...
[ -0.3611407876, -0.2253297567, -0.0523425788, 0.1002613902, 0.2563579679, -0.1110155135, 0.1722034067, 0.0852962434, -0.005713487, 0.3612517715, 0.1441082954, 0.3828557432, -0.2792430222, 0.4236414731, -0.3170936108, 0.1824319661, 0.1758907735, 0.0246535353, 0.0966964886, -0.218...
https://github.com/huggingface/datasets/issues/1610
shuffle does not accept seed
Thanks for reporting ! Indeed it looks like an issue with `suffle` on `DatasetDict`. We're going to fix that. In the meantime you can shuffle each split (train, validation, test) separately: ```python shuffled_train_dataset = data["train"].shuffle(seed=42) ```
Hi I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
36
shuffle does not accept seed Hi I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq Thanks for reporting ! Indeed it looks like an issue with `suffl...
[ -0.1347802728, -0.2200723886, -0.072142154, 0.0236784965, 0.2914152741, 0.0666156635, 0.1913044006, 0.1325147003, -0.1194048673, 0.3138945699, 0.1347433031, 0.3167940974, -0.3220254481, 0.3731395304, -0.2299949676, 0.0033440047, 0.112275131, -0.0262984671, 0.1395088881, -0.0770...
https://github.com/huggingface/datasets/issues/1609
Not able to use 'jigsaw_toxicity_pred' dataset
Hi @jassimran, The `jigsaw_toxicity_pred` dataset has not been released yet, it will be available with version 2 of `datasets`, coming soon. You can still access it by installing the master (unreleased) version of datasets directly : `pip install git+https://github.com/huggingface/datasets.git@master` Please let me...
When trying to use jigsaw_toxicity_pred dataset, like this in a [colab](https://colab.research.google.com/drive/1LwO2A5M2X5dvhkAFYE4D2CUT3WUdWnkn?usp=sharing): ``` from datasets import list_datasets, list_metrics, load_dataset, load_metric ds = load_dataset("jigsaw_toxicity_pred") ``` I see below error: >...
46
Not able to use 'jigsaw_toxicity_pred' dataset When trying to use jigsaw_toxicity_pred dataset, like this in a [colab](https://colab.research.google.com/drive/1LwO2A5M2X5dvhkAFYE4D2CUT3WUdWnkn?usp=sharing): ``` from datasets import list_datasets, list_metrics, load_dataset, load_metric ds = load_dataset("jigsaw...
[ -0.1765046716, -0.0736372247, -0.0608392805, 0.2410437912, 0.3765498102, 0.2648485005, 0.1960250586, 0.0077843121, -0.1372361928, 0.1830357313, -0.2765670419, 0.3002050519, -0.095456101, 0.0872111395, -0.1608524472, 0.153254047, 0.0479024798, 0.2332412302, -0.1677390784, 0.2624...
https://github.com/huggingface/datasets/issues/1600
AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
Hi @david-waterworth! As indicated in the error message, `load_dataset("csv")` returns a `DatasetDict` object, which is mapping of `str` to `Dataset` objects. I believe in this case the behavior is to return a `train` split with all the data. `train_test_split` is a method of the `Dataset` object, so you will need ...
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_split(test_size=0.1) ``` > AttributeError: 'DatasetDict' object has no at...
76
AttributeError: 'DatasetDict' object has no attribute 'train_test_split' The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_sp...
[ -0.0721843392, -0.132310912, -0.0861677527, 0.2685682476, 0.3532629609, 0.1787520796, 0.4272958934, 0.3118065596, 0.3319099545, 0.1663208306, 0.2769959569, 0.183303237, -0.2980107963, 0.3075741827, -0.0338940583, -0.2959111929, 0.0081044091, 0.1070962176, 0.123797603, -0.030034...
https://github.com/huggingface/datasets/issues/1600
AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
Thanks, that's working - the same issue also tripped me up with training. I also agree https://github.com/huggingface/datasets/issues/767 would be a useful addition.
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_split(test_size=0.1) ``` > AttributeError: 'DatasetDict' object has no at...
22
AttributeError: 'DatasetDict' object has no attribute 'train_test_split' The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_sp...
[ -0.1846861541, -0.1984479278, -0.0545879155, 0.2467513233, 0.395375073, 0.1030241624, 0.4267280102, 0.3831034005, 0.3261992931, 0.1956540197, 0.1507683545, 0.064065516, -0.2686588764, 0.4507167339, 0.0584372878, -0.3567761183, 0.0626722574, 0.1936276555, 0.0607812554, 0.0350720...
https://github.com/huggingface/datasets/issues/1600
AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
> ```python > dataset_dict = load_dataset(`'csv', data_files='data.txt') > dataset = dataset_dict['split name, eg train'] > dataset.train_test_split(test_size=0.1) > ``` I am getting error like KeyError: 'split name, eg train' Could you please tell me how to solve this?
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_split(test_size=0.1) ``` > AttributeError: 'DatasetDict' object has no at...
37
AttributeError: 'DatasetDict' object has no attribute 'train_test_split' The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong? ``` from datasets import load_dataset dataset = load_dataset('csv', data_files='data.txt') dataset = dataset.train_test_sp...
[ -0.1205271408, -0.2044598013, -0.1178738698, 0.3427509964, 0.2748531103, 0.2128632963, 0.417621702, 0.2791912258, 0.3849132359, 0.1766942739, 0.2599658966, 0.2442349344, -0.3558095098, 0.4015853703, -0.1800406575, -0.3566973209, 0.0676721632, 0.2050317228, 0.2042681426, -0.0092...
https://github.com/huggingface/datasets/issues/1594
connection error
This happen quite often when they are too many concurrent requests to github. i can understand it’s a bit cumbersome to handle on the user side. Maybe we should try a few times in the lib (eg with timeout) before failing, what do you think @lhoestq ?
Hi I am hitting to this error, thanks ``` > Traceback (most recent call last): File "finetune_t5_trainer.py", line 379, in <module> main() File "finetune_t5_trainer.py", line 208, in main if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO File "finetune_t5_tr...
47
connection error Hi I am hitting to this error, thanks ``` > Traceback (most recent call last): File "finetune_t5_trainer.py", line 379, in <module> main() File "finetune_t5_trainer.py", line 208, in main if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO ...
[ -0.3293082416, -0.1345845014, -0.2016927004, 0.3231748044, 0.5001866817, -0.1886006892, 0.160273701, 0.2997073829, -0.3055783808, 0.1561733186, 0.0126572419, -0.0056442851, 0.2251012176, 0.1642648578, -0.0455742627, -0.0660550222, -0.2141919136, 0.0516920127, -0.1668696553, 0.1...
https://github.com/huggingface/datasets/issues/1594
connection error
Hi @lhoestq thank you for the modification, I will use`script_version="master"` for now :), to my experience, also setting timeout to a larger number like 3*60 which I normally use helps a lot on this.
Hi I am hitting to this error, thanks ``` > Traceback (most recent call last): File "finetune_t5_trainer.py", line 379, in <module> main() File "finetune_t5_trainer.py", line 208, in main if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO File "finetune_t5_tr...
34
connection error Hi I am hitting to this error, thanks ``` > Traceback (most recent call last): File "finetune_t5_trainer.py", line 379, in <module> main() File "finetune_t5_trainer.py", line 208, in main if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO ...
[ -0.3293082416, -0.1345845014, -0.2016927004, 0.3231748044, 0.5001866817, -0.1886006892, 0.160273701, 0.2997073829, -0.3055783808, 0.1561733186, 0.0126572419, -0.0056442851, 0.2251012176, 0.1642648578, -0.0455742627, -0.0660550222, -0.2141919136, 0.0516920127, -0.1668696553, 0.1...
https://github.com/huggingface/datasets/issues/1593
Access to key in DatasetDict map
Indeed that would be cool Also FYI right now the easiest way to do this is ```python dataset_dict["train"] = dataset_dict["train"].map(my_transform_for_the_train_set) dataset_dict["test"] = dataset_dict["test"].map(my_transform_for_the_test_set) ```
It is possible that we want to do different things in the `map` function (and possibly other functions too) of a `DatasetDict`, depending on the key. I understand that `DatasetDict.map` is a really thin wrapper of `Dataset.map`, so it is easy to directly implement this functionality in the client code. Still, it'd be n...
24
Access to key in DatasetDict map It is possible that we want to do different things in the `map` function (and possibly other functions too) of a `DatasetDict`, depending on the key. I understand that `DatasetDict.map` is a really thin wrapper of `Dataset.map`, so it is easy to directly implement this functionality i...
[ 0.0123614157, -0.0980539173, -0.1504415125, 0.0315881483, 0.1485254765, 0.0519787185, 0.2157811671, 0.1856267899, 0.2782225013, 0.1137607694, 0.0187769849, 0.6971396804, -0.194628343, 0.3624712825, 0.007596151, 0.1261142492, -0.0822672322, 0.1726017892, 0.2597609758, 0.02008043...
https://github.com/huggingface/datasets/issues/1591
IWSLT-17 Link Broken
Sorry, this is a duplicate of #1287. Not sure why it didn't come up when I searched `iwslt` in the issues list.
``` FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz ```
22
IWSLT-17 Link Broken ``` FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz ``` Sorry, this is a duplicate of #1287. Not sure why it didn't come up when I searched `iwslt` in the issues list.
[ 0.0006845954, -0.4732923508, -0.0473029763, -0.0252456423, -0.0723720342, -0.1377998739, 0.4260438383, 0.2196720093, 0.0861582309, -0.0510081835, 0.1014911309, 0.011178067, 0.2341247052, 0.1399887949, 0.068584688, 0.331543684, 0.1696379036, -0.059176974, -0.2145910114, 0.064907...
https://github.com/huggingface/datasets/issues/1590
Add helper to resolve namespace collision
I was thinking about using something like [importlib](https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly) to over-ride the collision. **Reason requested**: I use the [following template](https://github.com/jramapuram/ml_base/) repo where I house all my datasets as a submodule.
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
29
Add helper to resolve namespace collision Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. I was thinking about using something like [importlib](https://do...
[ -0.1569453329, 0.0858053789, -0.0459536798, 0.27503708, 0.1614482105, -0.047106944, 0.1879467666, 0.2351544946, 0.139972806, 0.0676214769, -0.1060151979, 0.072631672, -0.3794683814, 0.365108341, 0.1478729546, -0.0800851658, 0.1018499359, 0.0871385857, -0.1015022993, 0.227035805...
https://github.com/huggingface/datasets/issues/1590
Add helper to resolve namespace collision
Alternatively huggingface could consider some submodule type structure like: `import huggingface.datasets` `import huggingface.transformers` `datasets` is a very common module in ML and should be an end-user decision and not scope all of python ¯\_(ツ)_/¯
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
34
Add helper to resolve namespace collision Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. Alternatively huggingface could consider some submodule type str...
[ -0.0202238001, -0.265224427, -0.0927192569, 0.1554597616, 0.3644936383, -0.1625666618, 0.2206047922, 0.1671949625, 0.0891769454, 0.2554261684, -0.2716358304, 0.1697729081, -0.2384688258, 0.2573795915, 0.0592854209, -0.2396575809, 0.0753817186, 0.1970057487, -0.3191303611, 0.087...
https://github.com/huggingface/datasets/issues/1590
Add helper to resolve namespace collision
It also wasn't initially obvious to me that the samples which contain `import datasets` were in fact importing a huggingface library (in fact all the huggingface imports are very generic - transformers, tokenizers, datasets...)
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
34
Add helper to resolve namespace collision Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. It also wasn't initially obvious to me that the samples which co...
[ -0.1716235131, -0.0543319136, -0.1060905978, 0.1661169231, 0.320076555, -0.2631008923, 0.2233147621, 0.2214925885, 0.115214631, 0.3468361497, -0.217707321, 0.0769942552, -0.2270480245, 0.2291831821, 0.0510891974, -0.0967996046, 0.1414093822, 0.1882733256, -0.3230444789, 0.09567...
https://github.com/huggingface/datasets/issues/1585
FileNotFoundError for `amazon_polarity`
Hi @phtephanx , the `amazon_polarity` dataset has not been released yet. It will be available in the coming soon v2of `datasets` :) You can still access it now if you want, but you will need to install datasets via the master branch: `pip install git+https://github.com/huggingface/datasets.git@master`
Version: `datasets==v1.1.3` ### Reproduction ```python from datasets import load_dataset data = load_dataset("amazon_polarity") ``` crashes with ```bash FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amazon_polarity/amazon_polarity.py ``` and ...
45
FileNotFoundError for `amazon_polarity` Version: `datasets==v1.1.3` ### Reproduction ```python from datasets import load_dataset data = load_dataset("amazon_polarity") ``` crashes with ```bash FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amaz...
[ -0.3479878008, -0.4079696238, -0.159430027, 0.1468011439, 0.3409613073, 0.1245035976, 0.1368295699, 0.0708825141, -0.0147827342, 0.2100148648, -0.0304769687, -0.085696727, -0.2752963305, 0.0079954779, -0.083372511, -0.1797064096, 0.0836885422, 0.1474184245, -0.1062063351, 0.144...
https://github.com/huggingface/datasets/issues/1581
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
Thanks for reporting ! You can override the directory in which cache file are stored using for example ``` ENV HF_HOME="/root/cache/hf_cache_home" ``` This way both `transformers` and `datasets` will use this directory instead of the default `.cache`
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`: ``` $ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data ...
37
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permissio...
[ -0.2601942718, 0.1537580043, -0.0879162699, 0.1361189336, 0.0533820763, 0.0593198873, 0.6560067534, 0.1960314214, 0.1612776518, -0.0136701129, -0.3051158786, -0.1683907062, -0.0324438885, -0.5109063387, -0.025965713, -0.2055932879, 0.0551736914, -0.067634657, -0.310154736, -0.1...
https://github.com/huggingface/datasets/issues/1581
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
> Thanks for reporting ! > You can override the directory in which cache file are stored using for example > > ``` > ENV HF_HOME="/root/cache/hf_cache_home" > ``` > > This way both `transformers` and `datasets` will use this directory instead of the default `.cache` can we disable caching directly?
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`: ``` $ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data ...
50
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permissio...
[ -0.2601942718, 0.1537580043, -0.0879162699, 0.1361189336, 0.0533820763, 0.0593198873, 0.6560067534, 0.1960314214, 0.1612776518, -0.0136701129, -0.3051158786, -0.1683907062, -0.0324438885, -0.5109063387, -0.025965713, -0.2055932879, 0.0551736914, -0.067634657, -0.310154736, -0.1...
https://github.com/huggingface/datasets/issues/1581
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
Hi ! Unfortunately no since we need this directory to load datasets. When you load a dataset, it downloads the raw data files in the cache directory inside <cache_dir>/downloads. Then it builds the dataset and saves it as arrow data inside <cache_dir>/<dataset_name>. However you can specify the directory of your ch...
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`: ``` $ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data ...
68
Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permissio...
[ -0.2601942718, 0.1537580043, -0.0879162699, 0.1361189336, 0.0533820763, 0.0593198873, 0.6560067534, 0.1960314214, 0.1612776518, -0.0136701129, -0.3051158786, -0.1683907062, -0.0324438885, -0.5109063387, -0.025965713, -0.2055932879, 0.0551736914, -0.067634657, -0.310154736, -0.1...
https://github.com/huggingface/datasets/issues/1541
connection issue while downloading data
could you tell me how I can avoid download, by pre-downloading the data first, put them in a folder so the code does not try to redownload? could you tell me the path to put the downloaded data, and how to do it? thanks @lhoestq
Hi I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. t...
45
connection issue while downloading data Hi I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout...
[ -0.2348406166, -0.0264184196, -0.1684959531, 0.3393735886, 0.4391575158, -0.1407122761, 0.1563981771, 0.3509826064, -0.2138077319, 0.0685085803, -0.0208969619, -0.1096859202, 0.0704353005, 0.536991179, -0.1515040547, -0.2388877273, -0.1877328008, 0.0280614402, -0.2314401865, 0....
https://github.com/huggingface/datasets/issues/1541
connection issue while downloading data
Does your instance have an internet connection ? If you don't have an internet connection you'll need to have the dataset on the instance disk. To do so first download the dataset on another machine using `load_dataset` and then you can save it in a folder using `my_dataset.save_to_disk("path/to/folder")`. Once the...
Hi I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. t...
63
connection issue while downloading data Hi I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout...
[ -0.2348406166, -0.0264184196, -0.1684959531, 0.3393735886, 0.4391575158, -0.1407122761, 0.1563981771, 0.3509826064, -0.2138077319, 0.0685085803, -0.0208969619, -0.1096859202, 0.0704353005, 0.536991179, -0.1515040547, -0.2388877273, -0.1877328008, 0.0280614402, -0.2314401865, 0....
https://github.com/huggingface/datasets/issues/1514
how to get all the options of a property in datasets
In a dataset, labels correspond to the `ClassLabel` feature that has the `names` property that returns string represenation of the integer classes (or `num_classes` to get the number of different classes).
Hi could you tell me how I can get all unique options of a property of dataset? for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks
31
how to get all the options of a property in datasets Hi could you tell me how I can get all unique options of a property of dataset? for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming ...
[ -0.3508511782, -0.527657032, -0.0328901447, 0.3197905421, -0.0088524371, 0.1327081621, 0.0669212714, 0.0627552643, -0.1925354302, 0.2703047693, -0.2775320411, 0.299058646, -0.2552961409, 0.1220930293, -0.0826282874, 0.2548772395, -0.1904511601, 0.1400500089, -0.0914770961, -0.3...
https://github.com/huggingface/datasets/issues/1514
how to get all the options of a property in datasets
I think the `features` attribute of the dataset object is what you are looking for: ``` >>> dataset.features {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), 'idx': Va...
Hi could you tell me how I can get all unique options of a property of dataset? for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks
42
how to get all the options of a property in datasets Hi could you tell me how I can get all unique options of a property of dataset? for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming ...
[ -0.2287428975, -0.7055011392, 0.0021906481, 0.3662376702, 0.0509749539, 0.1418877393, 0.026728237, 0.0608513542, -0.1547131389, 0.269069165, -0.4087379873, 0.2562119961, -0.2511259615, 0.410497129, -0.0019403531, 0.1533519179, -0.1557466835, 0.1335606128, -0.1536470056, -0.2861...
https://github.com/huggingface/datasets/issues/1478
Inconsistent argument names.
Also for the `Accuracy` metric the `accuracy_score` method should have its args in the opposite order so `accuracy_score(predictions, references,,,)`.
Just find it a wee bit odd that in the transformers library `predictions` are those made by the model: https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61 While in many datasets metrics they are the ground truth labels: https://github.com/huggingface/datasets/blob/c3f5...
19
Inconsistent argument names. Just find it a wee bit odd that in the transformers library `predictions` are those made by the model: https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61 While in many datasets metrics they are the ground truth labels: https://github.com...
[ 0.2731815577, -0.3669870198, 0.0105246622, 0.2615754008, 0.4064150751, -0.2207672447, 0.2435522974, -0.0329289772, -0.1960492432, 0.0497914106, -0.1712592095, 0.1103998572, 0.0239898134, 0.1010814384, -0.013367963, -0.3983659744, 0.0884955525, -0.1208067462, -0.2717052996, -0.2...
https://github.com/huggingface/datasets/issues/1478
Inconsistent argument names.
Thanks for pointing this out ! 🕵🏻 Predictions and references should indeed be swapped in the docstring. However, the call to `accuracy_score` should not be changed, it [signature](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html#sklearn.metrics.accuracy_score) being: ``` skle...
Just find it a wee bit odd that in the transformers library `predictions` are those made by the model: https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61 While in many datasets metrics they are the ground truth labels: https://github.com/huggingface/datasets/blob/c3f5...
49
Inconsistent argument names. Just find it a wee bit odd that in the transformers library `predictions` are those made by the model: https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61 While in many datasets metrics they are the ground truth labels: https://github.com...
[ 0.2569318414, -0.4395508468, -0.0103001464, 0.1632705778, 0.4465913773, -0.2115411907, 0.1434418559, -0.0334952772, 0.0414285064, 0.0814789832, -0.0405132025, 0.1803877652, -0.0548594669, 0.1349071711, 0.0187774468, -0.410030067, 0.1643258929, -0.1507950127, -0.2882173359, -0.2...
https://github.com/huggingface/datasets/issues/1452
SNLI dataset contains labels with value -1
I believe the `-1` label is used for missing/NULL data as per HuggingFace Dataset conventions. If I recall correctly SNLI has some entries with no (gold) labels in the dataset.
``` import datasets nli_data = datasets.load_dataset("snli") train_data = nli_data['train'] train_labels = train_data['label'] label_set = set(train_labels) print(label_set) ``` **Output:** `{0, 1, 2, -1}`
30
SNLI dataset contains labels with value -1 ``` import datasets nli_data = datasets.load_dataset("snli") train_data = nli_data['train'] train_labels = train_data['label'] label_set = set(train_labels) print(label_set) ``` **Output:** `{0, 1, 2, -1}` I believe the `-1` label is used for missing/NULL data a...
[ 0.235130012, -0.490634501, -0.1780145019, 0.3363342285, 0.2337825596, 0.0211007278, 0.3015909195, 0.2003284991, 0.0807730183, 0.2864295244, -0.2351151109, 0.3536292911, -0.2061206698, 0.278016597, 0.0497124344, 0.008970324, 0.2335755229, 0.3703632355, 0.062043298, -0.4029215574...
https://github.com/huggingface/datasets/issues/1444
FileNotFound remotly, can't load a dataset
This dataset will be available in version-2 of the library. If you want to use this dataset now, install datasets from `master` branch rather. Command to install datasets from `master` branch: `!pip install git+https://github.com/huggingface/datasets.git@master`
```py !pip install datasets import datasets as ds corpus = ds.load_dataset('large_spanish_corpus') ``` gives the error > FileNotFoundError: Couldn't find file locally at large_spanish_corpus/large_spanish_corpus.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/large_spa...
34
FileNotFound remotly, can't load a dataset ```py !pip install datasets import datasets as ds corpus = ds.load_dataset('large_spanish_corpus') ``` gives the error > FileNotFoundError: Couldn't find file locally at large_spanish_corpus/large_spanish_corpus.py, or remotely at https://raw.githubusercontent.com/...
[ -0.3270968795, -0.3888711631, -0.0211853217, 0.3421649337, 0.3611238599, 0.053929776, -0.0934887081, 0.2128611505, -0.0617656372, 0.2608965635, -0.3553180397, 0.173086524, 0.0300489254, -0.1594369411, 0.0316852219, 0.0206081849, -0.0119563872, 0.0681065843, 0.0414807722, -0.098...
https://github.com/huggingface/datasets/issues/1422
Can't map dataset (loaded from csv)
Please could you post the whole script? I can't reproduce your issue. After updating the feature names/labels to match with the data, everything works fine for me. Try to update datasets/transformers to the newest version.
Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes. Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to class...
35
Can't map dataset (loaded from csv) Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes. Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert...
[ -0.0363202319, -0.0493307561, 0.0591483638, 0.1960301846, 0.3175802231, 0.1296345741, 0.6318863034, 0.3784268498, 0.2701598406, -0.0147233317, -0.2211088985, 0.2637647688, -0.0631852672, -0.0150064491, -0.0317862108, -0.2046317607, 0.1337798536, 0.2118779421, -0.1829669178, -0....
https://github.com/huggingface/datasets/issues/1422
Can't map dataset (loaded from csv)
Actually, the problem was how `tokenize` function was defined. This was completely my side mistake, so there are really no needs in this issue anymore
Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes. Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to class...
25
Can't map dataset (loaded from csv) Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes. Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert...
[ -0.0363202319, -0.0493307561, 0.0591483638, 0.1960301846, 0.3175802231, 0.1296345741, 0.6318863034, 0.3784268498, 0.2701598406, -0.0147233317, -0.2211088985, 0.2637647688, -0.0631852672, -0.0150064491, -0.0317862108, -0.2046317607, 0.1337798536, 0.2118779421, -0.1829669178, -0....
https://github.com/huggingface/datasets/issues/1324
❓ Sharing ElasticSearch indexed dataset
Hello @pietrolesci , I am not sure to understand what you are trying to do here. If you're looking for ways to save a dataset on disk, you can you the `save_to_disk` method: ```python >>> import datasets >>> loaded_dataset = datasets.load("dataset_name") >>> loaded_dataset.save_to_disk("/path/on/your/disk") ```...
Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was w...
73
❓ Sharing ElasticSearch indexed dataset Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200....
[ -0.1429359764, -0.0638308078, -0.1649869084, 0.1157821044, -0.2390128821, 0.181620419, 0.2375487238, 0.0645312443, 0.1375181824, 0.2632859647, -0.2542995811, 0.1102019921, -0.0403490514, -0.1499139369, 0.1162046567, 0.2783809602, 0.1407320052, -0.0522754788, 0.160981223, -0.115...
https://github.com/huggingface/datasets/issues/1324
❓ Sharing ElasticSearch indexed dataset
Hi @SBrandeis, Thanks a lot for picking up my request. Maybe I can clarify my use-case with a bit of context. Say I have the IMDb dataset. I create an ES index on it. Now I can save and reload the dataset from disk normally. Once I reload the dataset, it is easy to retrieve the ES index on my machine. I was wonderin...
Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was w...
98
❓ Sharing ElasticSearch indexed dataset Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200....
[ -0.1988600045, 0.1247479841, -0.1196777523, 0.0339190513, -0.399158448, 0.1631871909, 0.268971175, 0.0641193911, 0.0988282338, 0.2021004409, -0.2281738371, 0.158411473, 0.0233796742, -0.0414418913, -0.0148404278, 0.3394413888, 0.0893098637, 0.0631406233, 0.1103469133, -0.124294...
https://github.com/huggingface/datasets/issues/1324
❓ Sharing ElasticSearch indexed dataset
Thanks for the clarification. I am not familiar with ElasticSearch, but if I understand well you're trying to migrate your data along with the ES index. My advice would be to check out ES documentation, for instance, this might help you: https://www.elastic.co/guide/en/cloud/current/ec-migrate-data.html Let me k...
Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was w...
48
❓ Sharing ElasticSearch indexed dataset Hi there, First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing. **Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200....
[ -0.1457760334, -0.0453470536, -0.1310749203, 0.0862376317, -0.3029542267, 0.144063279, 0.1689628363, 0.0394940749, 0.0905101523, 0.1678370684, -0.224799633, 0.1182385683, 0.03831679, -0.0483014174, 0.0813873634, 0.2858946323, 0.2005698383, -0.0846780986, 0.1571805328, -0.176148...
https://github.com/huggingface/datasets/issues/1299
can't load "german_legal_entity_recognition" dataset
Please if you could tell me more about the error? 1. Please check the directory you've been working on 2. Check for any typos
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co...
24
can't load "german_legal_entity_recognition" dataset FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition...
[ -0.2461107671, -0.2954850793, -0.0401218869, 0.4629744887, 0.1347416043, 0.0751199275, 0.1829095036, 0.2415545732, 0.2743230462, 0.0843391716, -0.1621889174, -0.2467780411, -0.0410385393, 0.2271581441, 0.1816770732, -0.3239539564, -0.0226875953, 0.043106284, 0.1395510584, -0.24...
https://github.com/huggingface/datasets/issues/1299
can't load "german_legal_entity_recognition" dataset
> Please if you could tell me more about the error? > > 1. Please check the directory you've been working on > 2. Check for any typos Error happens during the execution of this line: dataset = load_dataset("german_legal_entity_recognition") Also, when I try to open mentioned links via Opera I have errors "40...
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co...
77
can't load "german_legal_entity_recognition" dataset FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition...
[ -0.1284619421, -0.0970662758, -0.0301718768, 0.5242336988, 0.2877425849, 0.1380865574, 0.1956094354, 0.2292720228, 0.187809214, 0.180879578, -0.3449554145, -0.1354648471, 0.0454050004, 0.2386659682, 0.110738188, -0.3510171175, -0.101647675, 0.00415419, 0.1530085355, -0.16965842...
https://github.com/huggingface/datasets/issues/1299
can't load "german_legal_entity_recognition" dataset
Hello @nataly-obr, the `german_legal_entity_recognition` dataset has not yet been released (it is part of the coming soon v2 release). You can still access it now if you want, but you will need to install `datasets` via the master branch: `pip install git+https://github.com/huggingface/datasets.git@master` Pleas...
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co...
52
can't load "german_legal_entity_recognition" dataset FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition...
[ -0.2871352732, -0.2293046415, -0.0558741987, 0.3209627271, 0.1926872432, 0.1035038307, 0.1227493882, 0.2395579368, 0.2547087669, -0.0033333669, -0.1283260584, -0.1231846437, -0.0620686263, 0.3180631995, 0.1877842396, -0.3089743853, 0.0005010169, 0.0151750203, 0.0721769184, -0.1...
https://github.com/huggingface/datasets/issues/1290
imdb dataset cannot be downloaded
Hi @rabeehk , I am unable to reproduce your problem locally. Can you try emptying the cache (removing the content of `/idiap/temp/rkarimi/cache_home_1/datasets`) and retry ?
hi please find error below getting imdb train spli: thanks ` datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")` errors ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and preparing dataset imdb/plain_text (d...
25
imdb dataset cannot be downloaded hi please find error below getting imdb train spli: thanks ` datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")` errors ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and ...
[ -0.4860098064, 0.0299126841, -0.1837319434, 0.2636172473, 0.3486503363, 0.3077560961, 0.315705359, 0.4439667165, 0.2162811905, 0.0212678369, -0.0990766212, -0.0724211708, -0.0315421484, 0.1580999941, -0.0292216484, -0.1209030524, -0.1767853349, 0.0127702858, -0.1587821096, 0.01...
https://github.com/huggingface/datasets/issues/1290
imdb dataset cannot be downloaded
Hi, thanks, I did remove the cache and still the same error here ``` >>> a = datasets.load_dataset("imdb", split="train") cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 1...
hi please find error below getting imdb train spli: thanks ` datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")` errors ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and preparing dataset imdb/plain_text (d...
115
imdb dataset cannot be downloaded hi please find error below getting imdb train spli: thanks ` datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")` errors ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and ...
[ -0.4860098064, 0.0299126841, -0.1837319434, 0.2636172473, 0.3486503363, 0.3077560961, 0.315705359, 0.4439667165, 0.2162811905, 0.0212678369, -0.0990766212, -0.0724211708, -0.0315421484, 0.1580999941, -0.0292216484, -0.1209030524, -0.1767853349, 0.0127702858, -0.1587821096, 0.01...
https://github.com/huggingface/datasets/issues/1287
'iwslt2017-ro-nl', cannot be downloaded
Looks like the data has been moved from its original location to google drive New url: https://drive.google.com/u/0/uc?id=12ycYSzLIG253AFN35Y6qoyf9wtkOjakp&export=download
Hi I am trying `>>> datasets.load_dataset("iwslt2017", 'iwslt2017-ro-nl', split="train")` getting this error thank you for your help ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and preparing dataset iwsl_t217/iwslt2017-ro-nl (downlo...
17
'iwslt2017-ro-nl', cannot be downloaded Hi I am trying `>>> datasets.load_dataset("iwslt2017", 'iwslt2017-ro-nl', split="train")` getting this error thank you for your help ``` cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Downloading and preparin...
[ -0.3419766724, -0.3006092608, -0.1523726732, 0.2706140578, 0.2139090449, 0.21579656, 0.2569400966, 0.365054369, 0.1976392716, -0.020129649, -0.0654520616, -0.1176216304, 0.1440993994, -0.0291721784, -0.151821062, -0.269972682, -0.0663300306, 0.1131049097, -0.1293237656, 0.04223...
https://github.com/huggingface/datasets/issues/1286
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
I remember also getting the same issue for several other translation datasets like all the iwslt2017 group, this is blokcing me and I really need to fix it and I was wondering if you have an idea on this. @lhoestq thanks,.
Hi I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help {'epoch': 20.0} 100%|████████████████████████████...
41
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted Hi I am getting this error when evaluating on wm...
[ -0.0197354052, -0.7191826701, 0.0039324821, 0.349367857, 0.4842422307, 0.0076736747, 0.242444396, 0.1216882989, -0.2513459325, 0.3279395998, -0.0821482614, -0.1225549281, -0.121334061, 0.3986017108, 0.0242617242, -0.255679369, -0.0995946005, 0.0782152489, -0.3232805729, 0.18504...
https://github.com/huggingface/datasets/issues/1286
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
maybe there is an empty line or something inside these datasets? could you tell me why this is happening? thanks
Hi I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help {'epoch': 20.0} 100%|████████████████████████████...
20
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted Hi I am getting this error when evaluating on wm...
[ -0.0197354052, -0.7191826701, 0.0039324821, 0.349367857, 0.4842422307, 0.0076736747, 0.242444396, 0.1216882989, -0.2513459325, 0.3279395998, -0.0821482614, -0.1225549281, -0.121334061, 0.3986017108, 0.0242617242, -0.255679369, -0.0995946005, 0.0782152489, -0.3232805729, 0.18504...
https://github.com/huggingface/datasets/issues/1286
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
I just checked and the wmt16 en-ro doesn't have empty lines ```python from datasets import load_dataset d = load_dataset("wmt16", "ro-en", split="train") len(d) # 610320 len(d.filter(lambda x: len(x["translation"]["en"].strip()) > 0)) # 610320 len(d.filter(lambda x: len(x["translation"]["ro"].strip()) > 0)) ...
Hi I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help {'epoch': 20.0} 100%|████████████████████████████...
59
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted Hi I am getting this error when evaluating on wm...
[ -0.0197354052, -0.7191826701, 0.0039324821, 0.349367857, 0.4842422307, 0.0076736747, 0.242444396, 0.1216882989, -0.2513459325, 0.3279395998, -0.0821482614, -0.1225549281, -0.121334061, 0.3986017108, 0.0242617242, -0.255679369, -0.0995946005, 0.0782152489, -0.3232805729, 0.18504...
https://github.com/huggingface/datasets/issues/1286
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
Hi @lhoestq I am not really sure which part is causing this, to me this is more related to dataset library as this is happening for some of the datassets below please find the information to reprodcue the bug, this is really blocking me and I appreciate your help ## Environment info - `transformers` version: 3....
Hi I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help {'epoch': 20.0} 100%|████████████████████████████...
1,524
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted Hi I am getting this error when evaluating on wm...
[ -0.0197354052, -0.7191826701, 0.0039324821, 0.349367857, 0.4842422307, 0.0076736747, 0.242444396, 0.1216882989, -0.2513459325, 0.3279395998, -0.0821482614, -0.1225549281, -0.121334061, 0.3986017108, 0.0242617242, -0.255679369, -0.0995946005, 0.0782152489, -0.3232805729, 0.18504...
https://github.com/huggingface/datasets/issues/1285
boolq does not work
here is the minimal code to reproduce `datasets>>> datasets.load_dataset("boolq", "train") the errors ``` `cahce dir /idiap/temp/rkarimi/cache_home_1/datasets cahce dir /idiap/temp/rkarimi/cache_home_1/datasets Using custom data configuration train Downloading and preparing dataset boolq/train (download:...
Hi I am getting this error when trying to load boolq, thanks for your help ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock Traceback (most recent call last): File "finetune_t5_trainer.py", line 274, in <module> main() File "finetune_t5_trainer.py", line 147, ...
115
boolq does not work Hi I am getting this error when trying to load boolq, thanks for your help ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock Traceback (most recent call last): File "finetune_t5_trainer.py", line 274, in <module> main() File "finetune_t5_...
[ -0.2191430479, -0.2052229494, -0.1021826491, 0.0568044744, 0.0433856957, 0.0777706653, 0.3575465381, 0.2529197633, 0.2545485198, -0.0290935487, -0.1371182948, 0.3180468678, -0.2989821732, 0.435960114, -0.0375268608, -0.010443829, -0.2001053989, 0.0617069043, 0.0194577407, 0.125...
https://github.com/huggingface/datasets/issues/1285
boolq does not work
This has been fixed by #881 this fix will be available in the next release soon. If you don't want to wait for the release you can actually load the latest version of boolq by specifying `script_version="master"` in `load_dataset`
Hi I am getting this error when trying to load boolq, thanks for your help ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock Traceback (most recent call last): File "finetune_t5_trainer.py", line 274, in <module> main() File "finetune_t5_trainer.py", line 147, ...
39
boolq does not work Hi I am getting this error when trying to load boolq, thanks for your help ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock Traceback (most recent call last): File "finetune_t5_trainer.py", line 274, in <module> main() File "finetune_t5_...
[ -0.2191430479, -0.2052229494, -0.1021826491, 0.0568044744, 0.0433856957, 0.0777706653, 0.3575465381, 0.2529197633, 0.2545485198, -0.0290935487, -0.1371182948, 0.3180468678, -0.2989821732, 0.435960114, -0.0375268608, -0.010443829, -0.2001053989, 0.0617069043, 0.0194577407, 0.125...
https://github.com/huggingface/datasets/issues/1167
❓ On-the-fly tokenization with datasets, tokenizers, and torch Datasets and Dataloaders
We're working on adding on-the-fly transforms in datasets. Currently the only on-the-fly functions that can be applied are in `set_format` in which we transform the data in either numpy/torch/tf tensors or pandas. For example ```python dataset.set_format("torch") ``` applies `torch.Tensor` to the dataset entries ...
Hi there, I have a question regarding "on-the-fly" tokenization. This question was elicited by reading the "How to train a new language model from scratch using Transformers and Tokenizers" [here](https://huggingface.co/blog/how-to-train). Towards the end there is this sentence: "If your dataset is very large, you c...
63
❓ On-the-fly tokenization with datasets, tokenizers, and torch Datasets and Dataloaders Hi there, I have a question regarding "on-the-fly" tokenization. This question was elicited by reading the "How to train a new language model from scratch using Transformers and Tokenizers" [here](https://huggingface.co/blog/ho...
[ -0.0571535118, -0.0378621221, 0.0511645451, -0.0909031034, 0.1780219972, -0.0221669544, 0.5987791419, 0.0828894153, -0.3151783347, -0.0732152686, 0.1041464582, 0.2624969184, -0.2840219736, 0.0880035758, 0.1834014356, -0.0820700675, 0.2904807925, 0.0297531877, 0.1173341498, 0.17...
https://github.com/huggingface/datasets/issues/1110
Using a feature named "_type" fails with certain operations
Thanks for reporting ! Indeed this is a keyword in the library that is used to encode/decode features to a python dictionary that we can save/load to json. We can probably change `_type` to something that is less likely to collide with user feature names. In this case we would want something backward compatible th...
A column named `_type` leads to a `TypeError: unhashable type: 'dict'` for certain operations: ```python from datasets import Dataset, concatenate_datasets ds = Dataset.from_dict({"_type": ["whatever"]}).map() concatenate_datasets([ds]) # or simply Dataset(ds._data) ``` Context: We are using datasets to persi...
74
Using a feature named "_type" fails with certain operations A column named `_type` leads to a `TypeError: unhashable type: 'dict'` for certain operations: ```python from datasets import Dataset, concatenate_datasets ds = Dataset.from_dict({"_type": ["whatever"]}).map() concatenate_datasets([ds]) # or simply D...
[ 0.0078380601, -0.2019328624, 0.0335743465, -0.0459200665, 0.3190199137, 0.1368781477, 0.4551842809, 0.4090700746, 0.1596743315, 0.0305587463, 0.4140093327, 0.4669059217, 0.0361164957, 0.5192950368, -0.3772079647, -0.0860041454, 0.1542394161, -0.056000717, -0.0117229205, 0.20655...
https://github.com/huggingface/datasets/issues/1103
Add support to download kaggle datasets
Hey, I think this is great idea. Any plan to integrate kaggle private datasets loading to `datasets`?
We can use API key
17
Add support to download kaggle datasets We can use API key Hey, I think this is great idea. Any plan to integrate kaggle private datasets loading to `datasets`?
[ -0.0929649994, -0.053583961, -0.3102498353, -0.0035683082, 0.1154251322, -0.0199873988, 0.2132153213, 0.1274613738, 0.4255772233, 0.1014181226, -0.2042620778, 0.6420331597, -0.0812082514, 0.8870471716, 0.0586068034, 0.035789147, 0.1376737207, 0.1102096364, 0.1666733325, 0.20185...
https://github.com/huggingface/datasets/issues/1064
Not support links with 302 redirect
> Hi ! > This kind of links is now supported by the library since #1316 I updated links in TLC datasets to be the github links in this pull request https://github.com/huggingface/datasets/pull/1737 Everything works now. Thank you.
I have an issue adding this download link https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz it might be because it is not a direct link (it returns 302 and redirects to aws that returns 403 for head requests). ``` r.head("https://github.com/jitkapat/thailitcorpus/releases/downlo...
37
Not support links with 302 redirect I have an issue adding this download link https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz it might be because it is not a direct link (it returns 302 and redirects to aws that returns 403 for head requests). ``` r.head("https://github.com...
[ -0.088968657, -0.2517875135, -0.0088747125, -0.1504717618, 0.1692059636, -0.0146815926, -0.0734716952, 0.3519242704, 0.0370437801, -0.0853565633, -0.1462336034, 0.1753970832, -0.0085471682, 0.0927392766, 0.1950140148, -0.2360425442, -0.0524223633, -0.0261494536, -0.0826821402, ...
https://github.com/huggingface/datasets/issues/1046
Dataset.map() turns tensors into lists?
A solution is to have the tokenizer return a list instead of a tensor, and then use `dataset_tok.set_format(type = 'torch')` to convert that list into a tensor. Still not sure if bug.
I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists! ```import datasets import torch from datasets import load_dataset ...
32
Dataset.map() turns tensors into lists? I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists! ```import datasets import torch from datasets import load_dataset ...
[ -0.0905342847, -0.17366229, -0.1339070797, 0.2130297273, 0.2162035406, 0.2193656117, 0.4914948344, 0.3712694347, 0.2574450076, -0.0263977516, -0.1461350173, 0.6802523136, -0.1003027707, -0.4164583683, 0.1840577424, 0.0253589116, 0.2943930626, 0.0346807316, -0.0507985279, -0.277...
https://github.com/huggingface/datasets/issues/1046
Dataset.map() turns tensors into lists?
It is expected behavior, you should set the format to `"torch"` as you mentioned to get pytorch tensors back. By default datasets returns pure python objects.
I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists! ```import datasets import torch from datasets import load_dataset ...
26
Dataset.map() turns tensors into lists? I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists! ```import datasets import torch from datasets import load_dataset ...
[ -0.0905342847, -0.17366229, -0.1339070797, 0.2130297273, 0.2162035406, 0.2193656117, 0.4914948344, 0.3712694347, 0.2574450076, -0.0263977516, -0.1461350173, 0.6802523136, -0.1003027707, -0.4164583683, 0.1840577424, 0.0253589116, 0.2943930626, 0.0346807316, -0.0507985279, -0.277...
https://github.com/huggingface/datasets/issues/1004
how large datasets are handled under the hood
This library uses Apache Arrow under the hood to store datasets on disk. The advantage of Apache Arrow is that it allows to memory map the dataset. This allows to load datasets bigger than memory and with almost no RAM usage. It also offers excellent I/O speed. For example when you access one element or one batch ...
Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, than...
90
how large datasets are handled under the hood Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the ...
[ -0.0588864908, -0.4006500542, -0.0841394439, 0.4953400493, -0.0051893401, -0.041041296, 0.2562441826, 0.082638599, 0.4370154738, 0.1028492302, -0.151943922, 0.0303451736, -0.1056117117, -0.0217183009, 0.1242288202, 0.0616417229, 0.0395505093, -0.112102896, -0.6995665431, 0.1022...
https://github.com/huggingface/datasets/issues/1004
how large datasets are handled under the hood
How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory. EDIT: My fault! I had not seen the `dataloader_num_workers` in `Traini...
Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, than...
68
how large datasets are handled under the hood Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the ...
[ -0.1215674952, -0.4438161254, -0.1115840226, 0.4983532131, 0.0678833053, -0.1806739569, 0.1971503943, -0.0075912951, 0.4332485795, 0.0732880235, -0.1071145907, 0.2367631197, -0.1338436753, 0.0458659716, -0.0414700247, -0.0014342527, 0.0602206364, -0.0184701793, -0.6697026491, 0...
https://github.com/huggingface/datasets/issues/1004
how large datasets are handled under the hood
> How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory. Loading arrow data from disk is done with memory-mapping. This allows...
Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, than...
192
how large datasets are handled under the hood Hi I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the ...
[ -0.1094140187, -0.4308578372, -0.0871282369, 0.4903816879, 0.0192652456, -0.2002979517, 0.171061933, 0.0366568044, 0.4349530041, 0.0388859622, -0.1141781434, 0.25518924, -0.1232735738, 0.0230297893, -0.0365433358, -0.0497362167, 0.0786581859, -0.0328219272, -0.6193566322, 0.103...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
Looks like the google drive download failed. I'm getting a `Google Drive - Quota exceeded` error while looking at the downloaded file. We should consider finding a better host than google drive for this dataset imo related : #873 #864
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
40
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
It is working now, thank you. Should I leave this issue open to address the Quota-exceeded error?
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
17
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
I've looked into it and couldn't find a solution. This looks like a Google Drive limitation.. Please try to use other hosts when possible
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
24
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
The original links are google drive links. Would it be feasible for HF to maintain their own servers for this? Also, I think the same issue must also exist with TFDS.
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
31
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
It's possible to host data on our side but we should ask the authors. TFDS has the same issue and doesn't have a solution either afaik. Otherwise you can use the google drive link, but it it's not that convenient because of this quota issue.
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
45
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
Okay. I imagine asking every author who shares their dataset on Google Drive will also be cumbersome.
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
17
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
Not as long as the data is stored on GG drive unfortunately. Maybe we can ask if there's a mirror ? Hi @JafferWilson is there a download link to get cnn dailymail from another host than GG drive ? To give you some context, this library provides tools to download and process datasets. For CNN DailyMail the data a...
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
84
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/996
NotADirectoryError while loading the CNN/Dailymail dataset
Thanks for the link @mrazizi ! Apparently the original authors don't host the dataset themselves ("for legal reasons", source [here](https://github.com/abisee/cnn-dailymail/issues/9)).
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... ---------------------------------------...
20
NotADirectoryError while loading the CNN/Dailymail dataset Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642...
[ -0.1502869725, 0.0138756949, 0.0027154593, 0.2634352744, 0.477457583, 0.0598455593, 0.4901822805, 0.3076287508, -0.2510555387, 0.2567768395, -0.3245877326, -0.0494808815, -0.483774662, -0.1979144365, 0.0145918233, 0.0012004753, -0.1768812239, 0.1828713417, -0.1539244801, -0.087...
https://github.com/huggingface/datasets/issues/993
Problem downloading amazon_reviews_multi
Hi @hfawaz ! This is working fine for me. Is it a repeated occurence? Have you tried from the latest verion?
Thanks for adding the dataset. After trying to load the dataset, I am getting the following error: `ConnectionError: Couldn't reach https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json ` I used the following code to load the dataset: `load_dataset( dataset_name, ...
21
Problem downloading amazon_reviews_multi Thanks for adding the dataset. After trying to load the dataset, I am getting the following error: `ConnectionError: Couldn't reach https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json ` I used the following code to load the dataset: `l...
[ -0.3760578334, -0.0687170401, -0.1512159258, 0.3995555639, 0.221829012, 0.0871828422, 0.2271227986, 0.0012162201, -0.1954255253, -0.1700541973, -0.1386819631, 0.0604706407, 0.1707973182, 0.0332736149, 0.0018726948, 0.0242818333, 0.0877759531, -0.1517890543, -0.0853416994, 0.024...
https://github.com/huggingface/datasets/issues/988
making sure datasets are not loaded in memory and distributed training of them
my implementation of sharding per TPU core: https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/trainers/t5_trainer.py#L316 my implementation of dataloader for this case https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/tasks/tasks....
Hi I am dealing with large-scale datasets which I need to train distributedly, I used the shard function to divide the dataset across the cores, without any sampler, this does not work for distributed training and does not become any faster than 1 TPU core. 1) how I can make sure data is not loaded in memory 2) in cas...
16
making sure datasets are not loaded in memory and distributed training of them Hi I am dealing with large-scale datasets which I need to train distributedly, I used the shard function to divide the dataset across the cores, without any sampler, this does not work for distributed training and does not become any fast...
[ -0.2850976884, -0.446924597, -0.101640828, 0.2859597802, 0.0856815726, -0.1491081566, 0.2383990735, -0.1465864331, 0.0240799375, 0.4799138606, 0.0181804691, -0.3488182425, 0.0343002304, 0.0275095385, 0.060448233, 0.0179704316, 0.1120214686, 0.3357721269, -0.3774603009, -0.21436...
https://github.com/huggingface/datasets/issues/961
sample multiple datasets
here I share my dataloader currently for multiple tasks: https://gist.github.com/rabeehkarimimahabadi/39f9444a4fb6f53dcc4fca5d73bf8195 I need to train my model distributedly with this dataloader, "MultiTasksataloader", currently this does not work in distributed fasion, to save on memory I tried to use iterative d...
Hi I am dealing with multiple datasets, I need to have a dataloader over them with a condition that in each batch data samples are coming from one of the datasets. My main question is: - I need to have a way to sample the datasets first with some weights, lets say 2x dataset1 1x dataset2, could you point me how I c...
109
sample multiple datasets Hi I am dealing with multiple datasets, I need to have a dataloader over them with a condition that in each batch data samples are coming from one of the datasets. My main question is: - I need to have a way to sample the datasets first with some weights, lets say 2x dataset1 1x dataset2...
[ -0.3916405141, -0.0641561598, -0.071513541, 0.1802323163, 0.0308314264, -0.1964397579, 0.3828042448, -0.0021055916, 0.3755801618, 0.3051428795, 0.0210494213, 0.1671251804, -0.1992869675, 0.2304516584, -0.063853465, -0.185749948, 0.1219989136, 0.1643289775, -0.531196475, 0.00547...
https://github.com/huggingface/datasets/issues/937
Local machine/cluster Beam Datasets example/tutorial
I tried to make it run once on the SparkRunner but it seems that this runner has some issues when it is run locally. From my experience the DirectRunner is fine though, even if it's clearly not memory efficient. It would be awesome though to make it work locally on a SparkRunner ! Did you manage to make your proce...
Hi, I'm wondering if https://huggingface.co/docs/datasets/beam_dataset.html has an non-GCP or non-Dataflow version example/tutorial? I tried to migrate it to run on DirectRunner and SparkRunner, however, there were way too many runtime errors that I had to fix during the process, and even so I wasn't able to get eit...
62
Local machine/cluster Beam Datasets example/tutorial Hi, I'm wondering if https://huggingface.co/docs/datasets/beam_dataset.html has an non-GCP or non-Dataflow version example/tutorial? I tried to migrate it to run on DirectRunner and SparkRunner, however, there were way too many runtime errors that I had to fix d...
[ -0.3029165864, -0.2597850561, -0.0041647139, 0.0888216719, 0.0611686856, -0.22946015, 0.2730875015, -0.1252959669, 0.1471408755, 0.2653597891, 0.179332301, 0.292142421, -0.4641710222, 0.6944865584, 0.2492862642, -0.527098, 0.3334581554, -0.1199866384, 0.0216185246, -0.231568723...
https://github.com/huggingface/datasets/issues/919
wrong length with datasets
Also, I cannot first convert it to torch format, since huggingface seq2seq_trainer codes process the datasets afterwards during datacollector function to make it optimize for TPUs.
Hi I have a MRPC dataset which I convert it to seq2seq format, then this is of this format: `Dataset(features: {'src_texts': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 10) ` I feed it to a dataloader: ``` dataloader = DataLoader( train_dataset, ...
26
wrong length with datasets Hi I have a MRPC dataset which I convert it to seq2seq format, then this is of this format: `Dataset(features: {'src_texts': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 10) ` I feed it to a dataloader: ``` dataloader = DataLoader( ...
[ -0.0898994133, -0.3192078769, -0.0323941521, 0.6070462465, 0.2765781581, -0.0336131081, 0.4790801406, 0.07050246, -0.5328692794, 0.2078111172, 0.1901033223, -0.1201387122, 0.0139269419, 0.3443427086, 0.0675096288, -0.2707992196, 0.0643084198, 0.1787357181, -0.101614818, -0.0089...
https://github.com/huggingface/datasets/issues/915
Shall we change the hashing to encoding to reduce potential replicated cache files?
This is an interesting idea ! Do you have ideas about how to approach the decoding and the normalization ?
Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the finge...
20
Shall we change the hashing to encoding to reduce potential replicated cache files? Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or ...
[ 0.0579879247, 0.1647049934, -0.0206481833, -0.0999957323, 0.2292942852, -0.0559270233, 0.2166691571, 0.4347034693, -0.2473880649, -0.1617706418, 0.0097894771, -0.0496321842, -0.1669542789, 0.2896748483, 0.209227711, 0.1215444058, 0.1424437612, 0.1846171618, -0.4095785618, -0.06...
https://github.com/huggingface/datasets/issues/915
Shall we change the hashing to encoding to reduce potential replicated cache files?
@lhoestq I think we first need to save the transformation chain to a list in `self._fingerprint`. Then we can - decode all the current saved datasets to see if there is already one that is equivalent to the transformation we need now. - or, calculate all the possible hash value of the current chain for comparison so...
Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the finge...
191
Shall we change the hashing to encoding to reduce potential replicated cache files? Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or ...
[ 0.1285302937, 0.0863640457, -0.0490874611, -0.0772109181, 0.1253058016, -0.0536653697, 0.2214978635, 0.4482249916, -0.1249616519, -0.040037632, -0.1387324631, 0.0334733538, -0.1281397045, 0.3592910171, 0.2445241362, -0.0045850147, -0.0214299187, 0.1100232005, -0.4076028764, -0....
https://github.com/huggingface/datasets/issues/897
Dataset viewer issues
Thanks for reporting ! cc @srush for the empty feature list issue and the encoding issue cc @julien-c maybe we can update the url and just have a redirection from the old url to the new one ?
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. T...
38
Dataset viewer issues I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is e...
[ -0.218693465, 0.2789270282, -0.0264326781, 0.2816512883, -0.0023903761, 0.1115044877, 0.2981254458, 0.2988632917, -0.1956239045, 0.064759165, -0.0076386943, 0.2664062977, -0.3950023353, 0.0988746807, -0.1122843847, -0.2007791549, 0.0220980067, -0.0146626187, 0.0232192297, -0.09...
https://github.com/huggingface/datasets/issues/897
Dataset viewer issues
Ok, I redirected on our side to a new url. ⚠️ @srush: if you update the Streamlit config too to `/datasets/viewer`, let me know because I'll need to change our nginx config at the same time
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. T...
36
Dataset viewer issues I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is e...
[ -0.218693465, 0.2789270282, -0.0264326781, 0.2816512883, -0.0023903761, 0.1115044877, 0.2981254458, 0.2988632917, -0.1956239045, 0.064759165, -0.0076386943, 0.2664062977, -0.3950023353, 0.0988746807, -0.1122843847, -0.2007791549, 0.0220980067, -0.0146626187, 0.0232192297, -0.09...
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`. See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, ...
27
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ ...
[ 0.2298386842, -0.4676935375, -0.1091863215, 0.3930574656, 0.0112236068, -0.0073930719, 0.2414545119, 0.0436260849, 0.1704822779, 0.1277209073, -0.1480690837, 0.4359345734, 0.2361755222, 0.2945677042, -0.0669525713, -0.0988029391, 0.2758643329, -0.0747677311, -0.193099767, -0.11...
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Thanks. This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, ...
28
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ ...
[ 0.2184680551, -0.3172186315, -0.1545520872, 0.4096398354, 0.0198082365, 0.0022648871, 0.1813224703, 0.1284824014, 0.1204209551, 0.1107621789, -0.0894265473, 0.5233135819, 0.3309743404, 0.2051908821, -0.1097116247, -0.0653211847, 0.3139225543, -0.0546333604, -0.0289820209, -0.07...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype. With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [unde...
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
85
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.1616062224, 0.0108413659, -0.0666190162, 0.1772313863, 0.3133355081, 0.0057716575, 0.5568302274, 0.1153364331, -0.139741689, 0.0790206864, 0.1618121564, 0.061189115, -0.2482873648, 0.2882795334, 0.1433377117, -0.4168107808, 0.1650114506, 0.2572269142, 0.0553815588, 0.1130092...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype. Meaning it can't be nested under `Sequence`? If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
45
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.1496906132, 0.0466833338, -0.0832266286, 0.1190684512, 0.2730077803, 0.1201473102, 0.6236192584, 0.1325295568, 0.0004307908, 0.1169991717, 0.2726795375, 0.2137200534, -0.148215428, 0.0873370543, 0.149497956, -0.3523186743, 0.2304176539, 0.3752020597, 0.1984270066, 0.08082573...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately.. That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects. We already have an ExtensionArray that allows us to use them as column types but not for subtypes. Maybe we can extend it, I haven't experimented with that yet
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
48
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.0212208349, 0.1621367931, 0.0191255026, 0.1933746189, 0.3534960747, 0.1465557516, 0.6769053936, 0.10014157, -0.1353633255, 0.1697501242, 0.1754417419, 0.2483869344, -0.2187326103, -0.0489065833, 0.1682208478, -0.4851905704, 0.1346690357, 0.3015387654, 0.0228546597, 0.0704351...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool So please consider this issue as a feature request for: ``` Array3D(shape=(None, 137, 2), dtype="float32") ``` its a way to represent videos, poses, and other cool sequences
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
28
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.1195075586, 0.2424519807, -0.0825230628, 0.0961941257, 0.3023030758, -0.080791913, 0.6678082347, 0.1274506748, -0.4523449838, 0.2668215036, 0.3651506603, 0.1533163488, -0.2551758289, 0.1488412023, 0.2744106948, -0.4257724583, 0.1371486187, 0.5718722939, 0.1896607578, 0.11347...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either... ``` pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 ```
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
23
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.1600918621, 0.1551733166, -0.1365800947, 0.2011847198, 0.2378048599, 0.0024270953, 0.5615334511, 0.0813985988, -0.1561108381, 0.1868874431, 0.3679439127, 0.1477243751, -0.1952097118, -0.0751515552, 0.1982176602, -0.3740196824, 0.1051323339, 0.4515883923, 0.0958151743, 0.0815...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes. You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741). Let me know if it works. I haven't investigated yet on https://github.com/huggingface/dataset...
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
67
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.2213131338, 0.1979759783, -0.0157015957, 0.3644230962, 0.3536315262, 0.0121850483, 0.5489982367, 0.1765437424, -0.2264504135, 0.2063269168, 0.2152809948, 0.2304820567, -0.1810272783, 0.0037144457, 0.2849796414, -0.376332581, 0.1525055319, 0.3805986941, 0.0335736498, 0.136076...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus) Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
37
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.3745763302, 0.1280582547, -0.047619734, 0.2082385123, 0.2405513525, -0.0033119617, 0.4983980656, 0.147462815, -0.293283999, 0.1866018325, 0.2814417481, -0.053964451, -0.1909174323, -0.1175016835, 0.2229364216, -0.2851467729, 0.1425436884, 0.3723787963, 0.004917278, 0.0282002...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
42
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.1500291824, 0.2067140341, -0.0467008874, 0.2796336114, 0.445869118, -0.0149024278, 0.6093958616, 0.1298002303, -0.3220184445, 0.1937068254, 0.2713235021, 0.3150213957, -0.1662632525, -0.1340915263, 0.2840393484, -0.3528668284, 0.1987506002, 0.4137445688, -0.0261278078, 0.053...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq, Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays? e.g.: `datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))` `Array3D(shape=(None, 137, 2), dtype="float32")`
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
29
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.208444491, 0.003985228, -0.0901309699, 0.0411785282, 0.352728337, -0.036300946, 0.6182533503, 0.0921266899, -0.1956912428, 0.1928669363, 0.2420265973, 0.047521852, -0.279655993, 0.0491818786, 0.2426550686, -0.3445934057, 0.2176742405, 0.4056480825, 0.1302120388, 0.0160454344...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
38
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ -0.0987304822, 0.2157685757, -0.0361895859, 0.1980811208, 0.3335243762, -0.0148138162, 0.6729160547, 0.0941131935, -0.2653336823, 0.1920523643, 0.330093652, 0.2847846746, -0.1851582378, -0.0952649415, 0.2423299849, -0.3900927305, 0.1759408563, 0.4636601806, 0.0826878995, 0.0519...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update. I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here? I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [Array...
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
224
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ 0.0081768557, 0.1172870174, -0.1061085984, 0.2801862657, 0.4025133848, -0.0643154979, 0.5933445692, 0.1092594266, -0.2332408428, 0.220736444, 0.127590552, 0.3022359014, -0.2472838312, -0.0211959574, 0.2019217014, -0.3135284781, 0.0890401751, 0.5067414641, 0.0488855503, -0.02731...
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this ! Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint). Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to. Feel free to open a PR to...
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and ...
164
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets...
[ 0.0811185241, 0.0660869926, -0.0749658123, 0.1997889429, 0.5059946775, -0.0620561317, 0.6662254333, 0.2228147835, -0.2351689935, 0.2103942782, 0.2033907026, 0.3141409755, -0.167916283, 0.1519095451, 0.1614727825, -0.5264514685, 0.1352110654, 0.4473286569, -0.0370462425, 0.08682...
https://github.com/huggingface/datasets/issues/883
Downloading/caching only a part of a datasets' dataset.
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger. This makes the task impossible with limited memory resources.
Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir
40
Downloading/caching only a part of a datasets' dataset. Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir I think it would be a very hel...
[ -0.2596470118, 0.0176626891, -0.1444136202, 0.0560274906, 0.0052094171, 0.1932339668, 0.0714359656, 0.4244526923, -0.2096627504, 0.1225839853, -0.1673960537, -0.3112490475, 0.0382804051, 0.3431015909, 0.2733543813, 0.3157153726, -0.0449595042, 0.444539547, -0.0135878082, 0.1797...
https://github.com/huggingface/datasets/issues/880
Add SQA
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/r...
16
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.c...
[ -0.0640090555, -0.2312076539, -0.2099179178, -0.1210695505, 0.0999144614, -0.1975829452, 0.0337971449, 0.3069657087, 0.1483601928, 0.0562702194, -0.1675564051, -0.0026327705, -0.0712608621, 0.544383049, 0.1500165761, -0.104553394, 0.0272177476, 0.1428323239, -0.2944612801, 0.07...
https://github.com/huggingface/datasets/issues/880
Add SQA
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings: ``` import pandas as ...
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/r...
185
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.c...
[ -0.0640090555, -0.2312076539, -0.2099179178, -0.1210695505, 0.0999144614, -0.1975829452, 0.0337971449, 0.3069657087, 0.1483601928, 0.0562702194, -0.1675564051, -0.0026327705, -0.0712608621, 0.544383049, 0.1500165761, -0.104553394, 0.0272177476, 0.1428323239, -0.2944612801, 0.07...
https://github.com/huggingface/datasets/issues/879
boolq does not load
Hi ! It runs on my side without issues. I tried ```python from datasets import load_dataset load_dataset("boolq") ``` What version of datasets and tensorflow are your runnning ? Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful.
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset d...
47
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42...
[ -0.314242512, -0.129666537, -0.1398147494, 0.2243655324, 0.0898045152, 0.0106670866, 0.4253871441, 0.3031973839, 0.4457687736, -0.1245955974, -0.0860084891, 0.3309849501, -0.1855682731, 0.4824475944, 0.0417107344, -0.0254135858, -0.1236410141, 0.083775565, -0.0132114785, -0.067...
https://github.com/huggingface/datasets/issues/879
boolq does not load
hey i do the exact same commands. for me it fails i guess might be issues with caching maybe? thanks best rabeeh On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <notifications@github.com> wrote: > Hi ! It runs on my side without issues. I tried > > from datasets import load_datasetload_dataset("boolq") > > What version...
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset d...
117
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42...
[ -0.314242512, -0.129666537, -0.1398147494, 0.2243655324, 0.0898045152, 0.0106670866, 0.4253871441, 0.3031973839, 0.4457687736, -0.1245955974, -0.0860084891, 0.3309849501, -0.1855682731, 0.4824475944, 0.0417107344, -0.0254135858, -0.1236410141, 0.083775565, -0.0132114785, -0.067...
https://github.com/huggingface/datasets/issues/879
boolq does not load
Could you check if it works on the master branch ? You can use `load_dataset("boolq", script_version="master")` to do so. We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset d...
43
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42...
[ -0.314242512, -0.129666537, -0.1398147494, 0.2243655324, 0.0898045152, 0.0106670866, 0.4253871441, 0.3031973839, 0.4457687736, -0.1245955974, -0.0860084891, 0.3309849501, -0.1855682731, 0.4824475944, 0.0417107344, -0.0254135858, -0.1236410141, 0.083775565, -0.0132114785, -0.067...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> neat feature I dint get these clearly, can you please elaborate like how to work on these
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks thomwolf and julien-c I'm still confusion on what you guys said, I have solved the problem as follows: 1. read the csv file using pandas from s3 2. Convert to dictionary key as column name and values as list column data 3. convert it to Dataset using `from datasets import Dataset` `train_dataset ...
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
55
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
We were brainstorming around your use-case. Let's keep the issue open for now, I think this is an interesting question to think about.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
23
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> We were brainstorming around your use-case. > > Let's keep the issue open for now, I think this is an interesting question to think about. Sure thomwolf, Thanks for your concern
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
32
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
I agree it would be cool to have that feature. Also that's good to know that pandas supports this. For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
45
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Any updates on this issue? I face a similar issue. I have many parquet files in S3 and I would like to train on them. To be honest I even face issues with only getting the last layer embedding out of them.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
42
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Hi dorlavie, You can find one solution that i have mentioned above, that can help you. And there is one more solution also which is downloading files locally
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
28
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> Hi dorlavie, > You can find one solution that i have mentioned above, that can help you. > And there is one more solution also which is downloading files locally mahesh1amour, thanks for the fast reply Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB). In addition, due to s...
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
68
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset` boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html) ```python import boto3 s3 = boto3.client('s3') s3.download_file('BUCKET_NAME', 'OBJEC...
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
46
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks @philschmid for the suggestion. As I mentioned in the previous comment, due to security issues I can not save the data locally. I need to read it from S3 and process it directly. I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in t...
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
61
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ? Or is it the use of the `boto3` library that is not allowed in your case ?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files...
37
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_fi...
[ -0.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.16631174...