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
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2170 | Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date | It seems that this can be fixed from user's end by including a `date` argument, like this:
`dataset = datasets.load_dataset('wikipedia', '20200501.en', date='20210420')`
You can get available dates from [here](https://dumps.wikimedia.org/enwiki/).
This is not a proper fix however as all the files will still have '20200501' in their file names. | Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides
```
20201220/ 02-Feb-2021 01:36 -
20210101/ 21-Feb-2021 01:26 -
20210120/ 02-Mar-2021 01:25 -
20210201/ 21-Mar-2021 01:26 -
20210220/ 02-Apr-2021 01:26 -
20210301/ 03-Mar-2021 08:10 -
20210320/ 21-Mar-2021 18:13 -
20210401/ 03-Apr-2021 10:08 -
latest/ 03-Apr-2021 10:08 -
```
However, the wikipedia dataset provided in the library, only supports the following configs, none of which are applicable anymore when disregarding the cached datasets:
```
ValueError: BuilderConfig 20210401.ko not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
The cached datasets:
```
% aws s3 --no-sign-request --endpoint-url https://storage.googleapis.com ls s3://huggingface-nlp/cache/datasets/wikipedia/
PRE 20200501.de/
PRE 20200501.en/
PRE 20200501.fr/
PRE 20200501.frr/
PRE 20200501.it/
PRE 20200501.simple/
``` | 48 | Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date
Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides
```
20201220/ 02-Feb-2021 01:36 -
20210101/ 21-Feb-2021 01:26 -
20210120/ 02-Mar-2021 01:25 -
20210201/ 21-Mar-2021 01:26 -
20210220/ 02-Apr-2021 01:26 -
20210301/ 03-Mar-2021 08:10 -
20210320/ 21-Mar-2021 18:13 -
20210401/ 03-Apr-2021 10:08 -
latest/ 03-Apr-2021 10:08 -
```
However, the wikipedia dataset provided in the library, only supports the following configs, none of which are applicable anymore when disregarding the cached datasets:
```
ValueError: BuilderConfig 20210401.ko not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
The cached datasets:
```
% aws s3 --no-sign-request --endpoint-url https://storage.googleapis.com ls s3://huggingface-nlp/cache/datasets/wikipedia/
PRE 20200501.de/
PRE 20200501.en/
PRE 20200501.fr/
PRE 20200501.frr/
PRE 20200501.it/
PRE 20200501.simple/
```
It seems that this can be fixed from user's end by including a `date` argument, like this:
`dataset = datasets.load_dataset('wikipedia', '20200501.en', date='20210420')`
You can get available dates from [here](https://dumps.wikimedia.org/enwiki/).
This is not a proper fix however as all the files will still have '20200501' in their file names. | [
-0.0480471551,
0.3399815559,
-0.0221921876,
0.0315802284,
-0.3193788826,
0.1565126628,
0.3078281581,
0.5392643809,
0.1764219552,
0.1010855809,
-0.0753563195,
0.0723982453,
0.2024514973,
-0.244992435,
-0.1113701165,
-0.1828337014,
0.0309122205,
0.0772669464,
-0.1100763455,
-0.2934592664,
-0.1943481863,
0.1416632831,
-0.2975399196,
-0.1001334265,
-0.1351924092,
0.1282682717,
-0.1212268397,
-0.1731770933,
-0.2367631644,
-0.2825133204,
0.2279290259,
0.2149962038,
0.2150950283,
0.2445407063,
-0.00011261,
-0.0224173162,
0.4396786988,
-0.072915554,
-0.6998183131,
0.3375675082,
-0.4934144914,
-0.2081647664,
-0.2113410681,
-0.2803381681,
0.0249619707,
0.0599015094,
0.1523052454,
-0.0141652022,
0.2861970365,
0.1448762268,
0.236097306,
-0.0227917042,
0.2254755348,
-0.1685298085,
0.3714102805,
0.3139844239,
-0.1705527306,
-0.1458382457,
-0.3366082609,
-0.0145524461,
-0.0803969502,
0.521631062,
-0.0483495146,
-0.2389980108,
0.1012653485,
-0.1834845841,
-0.1664306223,
-0.1672367752,
0.4476560056,
0.3567124605,
0.5580336452,
-0.1420495063,
-0.1736140698,
0.0477034673,
-0.2691886425,
-0.3119944632,
0.3322286606,
0.1879581511,
-0.0743199363,
0.0867363736,
0.0434377342,
-0.1867394447,
-0.1235560402,
0.4326097667,
-0.2945710421,
0.6903668642,
0.0475941747,
-0.0200514346,
-0.2650397122,
-0.0862204209,
-0.0129315443,
-0.3165672421,
0.0335618965,
0.34125489,
0.104611516,
-0.1992748529,
-0.034066353,
0.1706590801,
0.1952961385,
-0.2298510373,
-0.1247055009,
0.1728710234,
0.1436998695,
-0.0844557211,
0.2835512161,
-0.2561606765,
0.2181192636,
0.1479286402,
0.4882197678,
0.3513463736,
-0.1992554963,
-0.0234842245,
0.3428488672,
0.0529366955,
-0.0747673661,
-0.1216739342,
0.1743232161,
-0.339659363,
0.1949050426,
0.1505921036,
0.1067214832,
-0.312746048,
-0.3135461807,
0.3275849819,
-0.172352761,
0.0550003573,
-0.0030667994,
-0.1820926666,
-0.1246303096,
-0.1386278421,
-0.152630046,
-0.0057442659,
0.1183300465,
0.1284082532,
0.2885451019,
-0.1358133554,
0.3161966801,
0.2317121774,
-0.099132739,
0.1145830154,
-0.1741473079,
0.0152742099,
0.2022370696,
0.3797018826,
0.0382675603,
0.1678478718,
-0.1536103636,
-0.245058313,
-0.3076087236,
-0.090903379,
-0.2692334056,
0.0034935609,
-0.3159881532,
0.2036645263,
0.130901143,
0.0235931091,
0.0376101583,
0.1419022679,
0.1953949481,
-0.2002362013,
0.0092894034,
-0.0318657719,
-0.0295628551,
-0.1204092354,
0.2662154436,
0.1527360529,
-0.1783031523,
-0.1148427203,
-0.0741790682,
0.3705843985,
0.1859224737,
0.1107273325,
-0.0983730704,
0.0929736495,
-0.1122707278,
-0.2385081053,
0.2569865584,
-0.0488516651,
-0.2477300316,
-0.142287761,
0.5185169578,
0.1292573065,
-0.0351005308,
-0.18898426,
0.5140385628,
-0.2660748959,
0.0054180948,
0.1362959296,
0.1500753462,
-0.0966952294,
-0.1010835618,
-0.3323806822,
0.0940828174,
-0.1349019855,
0.5809416771,
-0.0463305302,
0.3364217579,
0.6471562386,
0.3777390122,
0.0675283596,
0.2076515555,
0.3722667098,
-0.118263863,
-0.089594245,
0.2840394378,
-0.2195201069,
-0.3384566009,
0.2157474756,
-0.1119536981,
0.1423027366,
0.0572794043,
-0.2991663218,
-0.2290914059,
0.0036072414,
-0.157815516,
-0.1922062486,
0.2709795833,
0.1160459593,
0.2696572542,
0.3821338415,
0.0707483888,
-0.2911678851,
-0.08037512,
0.0224435683,
-0.1743043214,
0.2483406663,
-0.3143911064,
0.0948143601,
0.0104762921,
0.1629975885,
0.2624759674,
0.0467961282,
0.1376545131,
-0.1132880002,
0.1075479612,
0.124856703,
-0.0343470052,
0.0228770077,
0.2571223378,
-0.2377166301,
0.1016276926,
0.3862402141,
-0.0660330877,
-0.1089660302,
-0.3348834515,
0.2010369599,
0.3396966457,
-0.00818168,
-0.0962738693,
-0.0002624821,
0.2850741446,
-0.0728483647,
0.1175118685,
-0.49122715,
-0.1852971911,
0.2930183411,
-0.1906875968,
0.0877466053,
-0.0946008116,
0.2002779841,
0.6361350417,
-0.0283580292,
0.036068242,
0.3035473228,
-0.3020725846,
-0.385316968,
0.3101590276,
-0.1874304116,
-0.3706718981,
0.179065451,
0.2985031903,
-0.1842727661,
-0.1911595017,
-0.1008625627,
0.3368106782,
0.054680232,
0.2021882832,
0.0554030426,
0.3110336959,
0.2944014966,
-0.3105646074,
0.1880519837,
-0.1699728817,
0.0856258795,
-0.0013888974,
-0.0112572582,
-0.5644826293,
0.0784606785,
0.1482225209,
-0.0970540196,
-0.5503880978,
-0.6236142516,
0.2578136027,
0.0797467455,
-0.1217808947,
0.1836832911,
-0.2991445959,
0.2259609252,
0.1115834713,
0.2293130904,
-0.3595900536,
-0.3663402498,
-0.1580596119,
0.0799810141,
0.0267515425,
-0.1627446711,
0.2104153037,
-0.1402298063,
-0.5127970576,
-0.4433473349,
-0.6245266795,
0.3214212358,
-0.0778711811,
-0.0595680736,
0.1482466757,
0.2876195014,
0.0446175821,
-0.3598259389,
-0.0445624813,
-0.0845200419,
-0.0961179808,
-0.1044830307,
-0.340677917,
0.2404454947,
-0.0595720112,
0.1670759469,
-0.1340950727,
-0.195346877,
-0.1555747837,
0.4140329957,
0.0772173554,
0.2195165604,
-0.0850672275,
-0.3220020235,
0.0055806744,
0.2085998654,
-0.412655443,
-0.3447982669,
0.5001904964,
-0.329472512,
-0.3419498801,
0.169386819,
-0.0701691732,
-0.0787319914,
0.016380934,
-0.4505987763,
0.1796373427,
0.0271937046,
0.378849715,
0.3891837001,
-0.0260347202,
0.2755754888,
0.0348582789,
-0.0446545109,
-0.0865289643,
0.0076207058,
-0.1113863587,
-0.0580647103,
0.3612659276,
0.1532097608,
0.0982784033,
0.0466851331,
0.9649457932,
0.1296078116,
0.1752610356,
0.2703442574,
0.0933702961,
0.4229117632,
-0.296841979,
0.0313477181,
0.0888591558,
0.0506778918,
0.1441746801,
0.2668757737,
0.1142918766,
-0.3368983269,
0.0401475653,
-0.0561866276,
-0.1404115409,
-0.4507346749,
-0.2183956951,
0.1395624429,
0.1739777029,
0.2208257169,
0.1641785353,
-0.3181211352,
-0.4052611887,
0.3040075004,
0.164418444,
0.0470858254,
0.1440109909,
-0.2075386047,
0.1267807484,
-0.587955296,
0.1699391156,
-0.0450910367,
0.0630307794,
-0.1274251044,
0.0217735227,
-0.0962825492,
0.0595287383,
-0.0420550629,
-0.2388565987,
0.2718629539,
0.269174099,
0.0239769667,
-0.1405699253,
0.0205693915,
-0.0479288287,
0.1030627862,
0.2742249966,
0.2927271426,
-0.3884564936,
-0.1339468807,
0.4520691931,
0.3149457872,
-0.1313462257,
0.0320046693,
0.1103870347,
-0.1165559292,
-0.1930276006,
-0.3179681599,
0.0428569578,
0.1488126069,
-0.2054591477,
0.1010597274,
-0.212136656,
0.0956856161,
-0.000582799,
-0.0347554237,
0.1180445552,
0.3438919783,
-0.0756222829,
-0.0243574921,
0.2225069255,
0.136365056,
-0.0072099087,
0.0231024567,
-0.0037992529,
-0.1215569898,
-0.2037765086,
-0.0587102398,
0.1997333914,
-0.0520160273,
0.01658196,
-0.0443900749,
0.0522499457,
-0.1027558744,
-0.2034797519,
-0.1904219091,
-0.0853029341,
-0.3912640512,
0.0338613018,
0.4699327052,
-0.034334898,
0.0513628647,
0.3707814515,
0.2155044377,
-0.4664896131,
0.3854549527,
0.2939127088,
0.8347741365,
0.1898767352,
0.1881595105,
0.1820240021,
0.1101786196,
0.3675714135,
0.0527265295,
0.052154161,
-0.1155317202,
0.0753990486,
-0.0228813235,
0.3158734441,
-0.0470613576,
-0.2119175047,
-0.1470108181,
0.3688458204,
-0.1156376079,
0.495500654,
-0.0295314938,
0.1209016517,
0.0672805831,
-0.1079186946,
-0.2309718877,
0.1545196623,
0.1146322042,
0.2068964541,
-0.1153965667,
-0.0914430395,
0.2895861268,
-0.175103724,
-0.4062296748,
-0.095672749,
0.0261742529,
0.3426237106,
-0.0390425548,
-0.2834783494,
-0.2238360494,
0.3323225975,
0.2916027904,
0.097584784,
-0.0602430925,
0.1861874759,
-0.2744441628,
-0.2148988694,
-0.1029837728,
0.1444680989,
0.0479052141,
-0.1917315871,
-0.0940224007,
0.2343392819,
-0.2672804296,
-0.3892904222,
-0.1091277599,
-0.0915105641,
-0.174540773,
0.314199537,
-0.0561185852,
-0.0780315325,
-0.1603641361,
-0.4524395466,
0.1582750231,
-0.1562500596,
0.269826591,
0.0558286831,
-0.0296713039,
-0.1778584719,
-0.2163667977,
0.3298384845,
0.0466845781,
0.1715167463,
0.6110987663,
0.2423768342,
-0.331379205,
-0.158551693,
-0.1488042623,
-0.3503170609,
-0.1226207167,
0.002759642,
-0.41304636,
0.0118887667,
-0.1797312349,
0.376756072,
0.0177583862,
-0.2951875031,
-0.1263605207,
-0.3745445609,
-0.0287251957,
0.2725765407,
-0.1091432273,
0.0510792769,
0.164790228,
-0.0170249976,
-0.1053795293,
0.1381783634,
-0.3056141436,
0.087761268,
0.0292148273,
0.1146588027,
-0.2499316186,
-0.0376226045,
-0.175876528,
-0.067905128,
0.1059219465,
-0.1951119006,
0.0084636565,
-0.2114464641,
-0.2095863968,
0.134888202,
-0.0234818924,
-0.0472017042,
-0.0292445011,
-0.1437856257,
-0.099653542,
-0.2585893571,
0.0201122127,
0.067235373,
0.07666976,
0.2918256223,
0.3037974834,
0.0459491089,
0.0538116917,
0.0972011462,
0.1759547591,
0.5515087247,
0.0319132321,
0.3699146509,
-0.0455828793,
-0.102063261,
-0.1002445221,
0.2322751284,
-0.5310224295,
-0.1332031786,
0.661831975,
-0.0191818513,
-0.1777706742,
0.5489700437,
0.0790042579,
-0.0890685543,
-0.0443040244,
-0.1241973564,
-0.0672596619,
0.2155482471,
-0.41518116,
-0.1710608304,
0.335305959,
0.0469870567,
0.1376530677,
0.0936239362,
0.2512537241,
-0.4399034679,
0.2132672668,
0.2694576681,
0.088052012,
-0.222190991,
0.3708512187,
0.2173083574,
0.1169306561,
0.2881012857,
-0.0560482666,
0.1715094894,
-0.0184213147,
-0.0354764722,
0.254760623,
0.1002267525,
0.3619262874,
0.0141444439,
0.2070835829,
-0.2588254511,
0.3600999415,
0.2614315152,
-0.0748910606,
0.180595696,
0.204503119,
-0.4046829939,
0.3852649331,
0.0291204844,
-0.3738871813,
0.2746956944,
-0.1384234428,
-0.2239904851,
-0.2610629201,
-0.2730076909,
0.254485935,
0.0904906243,
0.1310507059,
-0.3175445795,
0.2628819942,
0.014609674,
-0.1453615129,
-0.2687104046,
0.6404508352,
-0.1838210076,
0.3839748502,
-0.1375796497,
0.0341052562,
-0.0687103048,
-0.0616260283,
0.0359619297,
0.0860249773,
0.220284909,
-0.1411448419,
-0.1487488896,
0.0484407358,
-0.0286179949,
-0.1927867681,
-0.1696990728,
0.0362558402,
0.0899393931,
-0.2654729486,
0.3961621523,
0.1518196613,
-0.1117655262,
-0.5383562446,
0.2200966328,
0.139857769,
0.0246105324,
-0.2256581336,
0.0294106472,
-0.1924505085,
0.3682516217,
0.0251920745,
-0.0331525207,
-0.0186042339,
0.1754931957,
0.0818287507,
0.354049176,
-0.1348264366,
0.1112555265,
0.0014081914,
0.2195780277,
0.3295509517,
-0.302410841,
0.0246562343,
-0.3585800529,
-0.2694025934,
-0.1162966937,
-0.4224758744,
-0.1305842698,
0.3918168843,
0.356528163,
0.1863862872,
-0.0947761834,
0.2789002359,
-0.2075871378,
0.0550675802,
-0.0140283806,
-0.3055956662,
0.035951484,
0.1721837223,
0.149193719,
-0.2695628107,
-0.4008761942,
0.3634433746,
-0.1732610911,
0.0856610686,
-0.0778291225,
0.0711338297,
0.2079634368,
0.043358501,
-0.0263940673,
0.212843284,
-0.0716938749,
-0.2881037891,
-0.3227165937,
-0.1422348171,
0.1642450392,
0.03664314,
0.156123206,
-0.3485836089,
0.2843594849,
-0.0423891917,
-0.1827996522,
-0.0463383459,
0.7152363658,
-0.0573211759,
0.1616110355,
-0.2237076759,
0.0877660662,
-0.0971618891,
0.1019452289,
0.2723842859,
0.1690088212,
-0.1890601218,
0.1129489765,
-0.0942369699,
-0.509919405,
0.0974451229,
-0.4027143717,
-0.4580301642,
-0.3972792327,
-0.0640225708,
0.0765794218,
0.1758397818,
-0.2468995899,
0.0494570173,
0.3798075914,
-0.2447843701,
0.039963983,
0.0038365456,
-0.0131431716,
0.1720324606,
-0.0883938819,
0.201559037,
0.0890821069,
-0.4260407686,
-0.5251038671,
-0.2948701084
] |
https://github.com/huggingface/datasets/issues/2166 | Regarding Test Sets for the GEM datasets | Hi @vyraun ! The test references for CommonGen are not publicly available: you can reach out to the original dataset authors if you would like to ask for them, but we will not be releasing them as part of GEM (March 31st was the release date for the test set inputs, references are incidentally released for some of the test sets but shouldn't really be used for benchmark submissions)
cc @sebastiangehrmann | @yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)?
e.g.
```
from datasets import load_dataset
DATASET_NAME="common_gen"
data = load_dataset("gem", DATASET_NAME)
```
The test set doesn't have the target or references.
```
data['test'][0]
{'concept_set_id': 0, 'concepts': ['drill', 'field', 'run', 'team'], 'gem_id': 'common_gen-test-0', 'gem_parent_id': 'common_gen-test-0', 'references': [], 'target': ''}
```
| 71 | Regarding Test Sets for the GEM datasets
@yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)?
e.g.
```
from datasets import load_dataset
DATASET_NAME="common_gen"
data = load_dataset("gem", DATASET_NAME)
```
The test set doesn't have the target or references.
```
data['test'][0]
{'concept_set_id': 0, 'concepts': ['drill', 'field', 'run', 'team'], 'gem_id': 'common_gen-test-0', 'gem_parent_id': 'common_gen-test-0', 'references': [], 'target': ''}
```
Hi @vyraun ! The test references for CommonGen are not publicly available: you can reach out to the original dataset authors if you would like to ask for them, but we will not be releasing them as part of GEM (March 31st was the release date for the test set inputs, references are incidentally released for some of the test sets but shouldn't really be used for benchmark submissions)
cc @sebastiangehrmann | [
-0.3199133873,
-0.0961248577,
-0.1973159611,
0.1844350994,
-0.0919599235,
0.1184664592,
0.2837320864,
0.3940262496,
-0.105286561,
-0.0161251649,
0.1892586499,
0.2699713111,
-0.3344812989,
0.1294026822,
-0.0042846617,
0.2062072158,
0.0137711419,
0.0532654114,
-0.1366806626,
-0.1827851385,
-0.003042103,
0.2782806754,
-0.1043491662,
0.0674218982,
-0.4564504921,
-0.2105981857,
-0.1491962671,
0.1274922043,
-0.0292936619,
-0.2702153623,
0.3068471551,
0.1725851893,
-0.1328515112,
0.4753214419,
-0.0001048454,
-0.0924756527,
0.2723984718,
-0.1354857981,
-0.2651567757,
-0.3887259662,
-0.3688610494,
-0.0995732024,
-0.0375090614,
-0.1074555367,
-0.1079824939,
-0.0469905846,
-0.1061155796,
-0.483830303,
0.0354258008,
0.2401732653,
0.2840696573,
0.3282464445,
-0.0739153847,
-0.225685209,
0.1541748941,
-0.2887516916,
-0.2577031851,
0.2372087389,
0.0459525697,
0.0304735824,
0.2049217522,
0.108431153,
0.0687663034,
0.1535713673,
0.1378138065,
0.1191928238,
-0.0138433753,
-0.3732498288,
-0.1442778409,
0.2480444163,
0.6280165315,
-0.3502286077,
-0.4814593196,
-0.1563063711,
-0.2806763649,
-0.0516628549,
0.0232111756,
0.2364027351,
-0.1203916073,
0.1719745696,
-0.328542769,
-0.3881801665,
0.000927453,
-0.2865283787,
0.1206908152,
0.0589679554,
-0.070002526,
-0.1194068938,
-0.0599664412,
-0.0071772807,
-0.1204128414,
-0.1025010422,
-0.1917669028,
0.0383690521,
-0.3621033132,
-0.4651753306,
-0.1759571731,
-0.1125509515,
0.3332553506,
0.4292491376,
0.5199065208,
0.1588803083,
-0.1818335503,
0.1502230316,
0.3433413506,
0.1893132776,
0.3401161134,
-0.1188677102,
0.1506562531,
-0.0951438248,
-0.1557406187,
0.2906401753,
-0.0817787498,
-0.156580314,
-0.0089309048,
0.1021689251,
0.0856286809,
-0.1682280153,
-0.2093772739,
0.1630993485,
0.2056977898,
-0.2603708804,
-0.1541116536,
0.1218303367,
-0.0569118224,
-0.1605733037,
-0.3958010077,
0.1040321365,
-0.1188626364,
-0.3285262883,
-0.1978199631,
0.0562762432,
0.0054478976,
0.067554161,
0.1492599249,
-0.2012850493,
0.4375044107,
-0.0745780766,
0.231679365,
-0.0567056313,
0.3254747093,
-0.0189854559,
0.0689289346,
0.2251050025,
-0.0693525076,
0.2178828865,
-0.0323818512,
-0.1107460409,
-0.3100336492,
0.3561430275,
-0.1294671595,
-0.1646642834,
0.3178627789,
0.2424751371,
-0.621073246,
-0.2433422953,
-0.302115649,
0.4153851271,
-0.0981870741,
-0.204107523,
-0.0203388836,
-0.1193991378,
0.0682354718,
-0.2143627703,
0.3045639396,
0.1103173569,
-0.1111431569,
-0.0800723881,
0.2217066288,
-0.0407885425,
0.0517825782,
0.0540544391,
-0.0427652858,
-0.2430050671,
-0.0572339259,
0.1736020297,
0.3769559264,
-0.1589791626,
-0.1349401027,
-0.0331569016,
-0.2171144187,
-0.1006628945,
0.1498171538,
-0.0805037543,
0.1672932804,
-0.137440145,
-0.1856817007,
0.1218449697,
-0.2028915435,
0.0184546616,
-0.4238103032,
-0.2053613067,
0.3437218666,
-0.0682143942,
0.0103605157,
-0.2939473391,
0.0078068441,
0.0155278975,
0.1362077892,
0.1302017421,
-0.1227961406,
0.2104592025,
0.1868477762,
-0.3276841342,
0.0944223851,
-0.0963011384,
-0.1995022744,
0.339889884,
0.3615363836,
0.1620859206,
0.6675425768,
-0.1309025139,
-0.3988662958,
0.1048481986,
-0.1167536676,
-0.2448290288,
0.1276992708,
0.0224816278,
0.0640116781,
-0.0409487598,
-0.2648722827,
-0.1205671877,
-0.2782311141,
-0.0588955805,
0.1076682061,
0.4514986575,
-0.1003344133,
-0.0928503498,
0.1537715793,
0.0597490594,
-0.0592309125,
-0.1679746807,
-0.0449835919,
0.2149650753,
0.2345023304,
0.3967011273,
0.5926070213,
0.4832263291,
0.1302340478,
-0.4008482397,
0.0054557109,
-0.1421519071,
-0.0121015375,
0.0782556161,
-0.0040945606,
0.5423492193,
-0.0047590863,
-0.0244004913,
0.1844101548,
-0.0400172845,
0.0160120875,
0.0228387825,
-0.1425107867,
0.0788013488,
0.006102792,
-0.2962937355,
-0.1734935194,
0.0747587234,
-0.1455050856,
0.1093975976,
0.3203472793,
0.0163726918,
-0.0421180092,
0.0658584833,
-0.0669592321,
-0.3520914614,
-0.0452131964,
0.2316673249,
0.2718406022,
0.2748387456,
0.5183138847,
-0.1675247699,
0.0718114153,
0.1177206337,
0.2747018039,
0.1620257199,
0.3612321317,
0.064138785,
0.0139864841,
-0.0303532928,
0.0787398741,
0.0004978483,
0.2543189228,
-0.0126079796,
-0.265535444,
-0.1824517101,
-0.0529924817,
0.4955040812,
-0.1487339884,
-0.2569100559,
-0.2974275947,
-0.1817663461,
0.1917514652,
-0.2066354305,
0.1184529811,
0.1440541595,
-0.1022748053,
0.1683878154,
-0.3601234257,
-0.0104559017,
-0.3628832996,
-0.2907294631,
-0.06913165,
0.249756217,
0.0202233158,
-0.1943964064,
0.5272142291,
-0.0249318797,
-0.0333685875,
0.0251068622,
-0.338087678,
-0.0206468161,
-0.2334229052,
0.6151625514,
-0.0213522166,
0.1114931926,
-0.1227339134,
-0.0504871272,
0.1510165483,
-0.367094487,
-0.2025052905,
-0.4389242232,
0.039420452,
0.1674711406,
0.0141838696,
-0.7287324667,
-0.3139707446,
-0.1364333481,
0.0277883019,
0.0781335458,
0.0207948964,
0.0937435329,
-0.0762842894,
-0.0136158792,
0.2463950962,
0.1230632812,
-0.1112484336,
-0.2469578385,
0.0709658563,
-0.2565822303,
-0.283436656,
0.0082686618,
-0.2342487723,
0.536931932,
-0.2553294003,
-0.4300383925,
0.1072039232,
0.1385034472,
0.1700685024,
0.3131313324,
-0.3208165467,
-0.0004077039,
0.0782384723,
-0.2634629905,
-0.2218332589,
-0.2145446241,
0.019222606,
0.1301261932,
0.000141353,
0.2200949788,
-0.0504713431,
0.1129410863,
1.2106735706,
0.3273592293,
-0.2195056826,
0.0636020377,
-0.1927154213,
0.0751803741,
-0.0221978854,
-0.1251813918,
-0.1512248069,
0.0874210894,
-0.1855770797,
0.1736411899,
0.2079458833,
-0.0467275381,
-0.1202274263,
0.0999013409,
-0.2788952887,
-0.0751181692,
-0.2139843404,
-0.3132947981,
0.1975210756,
0.11571569,
-0.1154131144,
-0.0477226786,
-0.1013533175,
-0.0383366644,
0.1806687415,
0.0133106811,
-0.1800633967,
-0.5068641305,
-0.0113039501,
-0.0431137122,
0.2794255614,
0.0795167908,
0.1619375646,
-0.1619587392,
-0.0535288751,
-0.032980375,
-0.1330486983,
-0.035549432,
-0.3102977872,
0.0261688139,
0.1630442888,
-0.2168927342,
-0.0081143128,
0.0866063684,
0.0115357172,
0.0566010065,
0.4807618558,
-0.0489895865,
0.049759075,
-0.3707193434,
0.0235235095,
0.0425222628,
-0.1889982373,
0.2285550386,
-0.161023587,
-0.1048053354,
-0.1623285115,
0.0350556783,
0.0179960504,
-0.0748317465,
-0.5981103778,
-0.1424155086,
0.1041495949,
0.0443028435,
0.4162409604,
-0.0220274497,
0.2759788036,
0.2045426369,
0.4596999586,
0.4485515058,
-0.1858808547,
0.0823456571,
0.3713402152,
-0.079893373,
0.3677319884,
0.0714712515,
-0.1460966319,
0.5774687529,
0.2619873285,
0.0281138588,
-0.1851834506,
-0.1039744318,
-0.2885439098,
-0.3033469617,
0.1477826834,
0.1347529888,
0.0864684358,
-0.2001958936,
-0.6305391192,
0.1975010335,
0.201025039,
-0.3536801338,
0.3593757451,
-0.0789746493,
0.0408885777,
0.0714414194,
0.0161139052,
0.7185252905,
0.0311300177,
0.0408374742,
-0.0633678436,
-0.0831394345,
-0.0582952648,
-0.1969097406,
-0.065012157,
-0.4512870312,
-0.3052610457,
0.0646354705,
-0.2399986386,
0.0965369642,
0.0461731255,
0.0533528738,
0.213725239,
0.0748994276,
-0.0926877931,
-0.0279137846,
0.1169244647,
0.1915013343,
0.2568719685,
0.0779552534,
0.1929308921,
0.0691704005,
0.176772356,
0.1489315927,
-0.0896162987,
-0.2012273222,
-0.3708190024,
-0.5176168084,
-0.0316122621,
-0.0510130748,
-0.1126781702,
0.0256289523,
-0.4053789973,
0.2161780149,
0.5042459369,
0.169002682,
-0.0211101472,
-0.094054237,
0.2346984595,
-0.2069260031,
0.1775067896,
0.2685365677,
0.2643986642,
0.298704505,
-0.1736251563,
-0.2950648367,
0.223908186,
-0.2379510105,
0.1217779964,
-0.2031571567,
-0.0356721394,
0.2882804275,
-0.2387649566,
0.1726542413,
0.0429667458,
-0.0536634289,
-0.2230572104,
0.2215284705,
0.1827586889,
-0.0591838323,
0.1484224945,
0.2733096182,
-0.1622297168,
-0.0331391692,
0.3201951087,
0.1813632399,
-0.0981438681,
0.4658165276,
-0.0653996617,
-0.0376857817,
-0.392532289,
0.3945835531,
0.3197171092,
-0.1613172591,
0.1343162507,
-0.0827923939,
0.0819563642,
0.1526439339,
0.5572664142,
0.3154765964,
0.0091168638,
-0.1529155821,
-0.1201263517,
-0.0160593167,
0.0721239001,
-0.3067626357,
0.4167077243,
-0.1884611547,
-0.5972597003,
0.0360753089,
0.2838351727,
-0.4220010638,
0.0986538008,
-0.1859423071,
0.1016609669,
0.1157085747,
0.0426249355,
0.3107925057,
0.0213167313,
0.2126504481,
-0.2934311628,
-0.1701075435,
-0.3000239134,
-0.0817709789,
0.1047786325,
-0.1281003952,
0.0412932709,
-0.3866675198,
0.0008957816,
-0.0565718301,
-0.0235376116,
0.0773107409,
-0.1803405285,
0.0496796146,
0.4335502088,
0.1328221858,
0.1139929295,
-0.0313409604,
0.0987035483,
0.0590459518,
0.6497113705,
0.054071717,
0.1072618589,
0.2401762605,
-0.1176839843,
-0.0970345512,
0.1032773405,
0.0982732102,
-0.1566590071,
0.2506427765,
-0.1824529171,
0.1813055724,
0.1521576196,
0.3487758338,
-0.0782394409,
-0.2179409564,
0.1871302128,
0.0157741681,
0.2566326261,
-0.0791183636,
-0.1002468914,
0.1507935822,
0.0553887002,
0.1126983389,
0.1759257913,
0.5118080378,
-0.0121668326,
0.1419254988,
0.1605205685,
0.2285175622,
-0.2283697128,
0.3504424393,
-0.1774767339,
-0.0784472823,
0.039711535,
0.1137494594,
0.0338493101,
0.1301724613,
-0.147146076,
0.1198163107,
0.688067615,
0.3455753326,
-0.0218679756,
0.002970523,
-0.1939596236,
0.2410520315,
-0.1361925751,
0.1080641299,
0.041365914,
0.0950076133,
0.6839947701,
-0.0069866753,
0.1802155972,
-0.2407151908,
-0.2542262673,
0.0474338457,
-0.046839837,
0.1862073094,
-0.3324166834,
-0.2405877411,
-0.0999501422,
-0.0467077084,
0.1115543842,
0.291716516,
-0.0582830049,
0.1853185147,
-0.1413295716,
0.3238018453,
0.2330871969,
-0.0464065671,
-0.2948653996,
0.2250227928,
-0.0163238309,
-0.0854441151,
0.1405865848,
0.3934528828,
0.3710736036,
-0.1066668928,
-0.3742782772,
-0.2025521249,
0.040325027,
-0.1668347269,
-0.0226204079,
0.3400896788,
-0.115489617,
-0.3748773038,
0.3489949107,
0.2770541608,
-0.0606161319,
-0.0007213239,
0.1701217294,
-0.1206800193,
-0.2029058784,
0.540869534,
0.0171920527,
-0.0640411973,
-0.0150460377,
0.0213841423,
-0.3221752048,
-0.2637946606,
0.381533891,
-0.0299415141,
-0.0720608309,
-0.0675548762,
0.1355534345,
-0.0533798523,
0.4942825139,
-0.0191160161,
0.3656120896,
-0.2919707,
-0.1607236117,
-0.2264884263,
0.0716512427,
0.5041435361,
0.1339229345,
0.1225117818,
0.0957559943,
0.1908081174,
0.1724907756,
0.1969133317,
-0.2208016962,
-0.086912334,
0.3794533312,
-0.421350807,
-0.0196721833,
-0.3491999209,
0.1296291798,
0.0191063564,
0.0250670183,
-0.1146987602,
-0.2825494111,
-0.0121561699,
-0.2955873013,
-0.2437653691,
0.4059179425,
0.056193281,
0.4025734663,
-0.1456016898,
0.8773339391,
0.0132250525,
-0.1577972472,
-0.0052942517,
-0.4694606066,
0.170876056,
-0.0260080229,
-0.2699877918,
0.0613113679,
-0.0630878136,
-0.0651203394,
-0.0958215967,
-0.2657927871,
0.0501175709,
0.0394809432,
-0.0188561417,
-0.2808689773,
-0.1967352778,
-0.0119319223,
0.2182395458,
0.2776321769,
-0.059858758,
0.1244898438,
-0.1524224281,
0.0226656273,
0.4759707749,
0.0715651438,
0.0338383093,
-0.4323129058,
0.2209641188,
0.227264449,
-0.0178587288,
-0.4435825348,
-0.1076603308,
0.5402591825,
0.1289529353,
-0.0759137869,
0.1978559643,
0.3213534653,
0.1204362065,
-0.0154199293,
0.159460023,
-0.3088411093,
0.073769398,
-0.1196222901,
-0.05943501
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Hi,
a HF dataset can be converted to a Torch Dataset with a simple wrapper as follows:
```python
from torch.utils.data import Dataset
class HFDataset(Dataset):
def __init__(self, dset):
self.dset = dset
def __getitem__(self, idx):
return self.dset[idx]
def __len__(self):
return len(self.dset)
train_ds = HFDataset(train_ds)
```
@lhoestq Since the Arrow Dataset already provides `__getitem__` and `__len__`, I think we could use the [virtual subclass](https://docs.python.org/3/library/abc.html#abc.ABCMeta.register) mechanism from the `abc` module to elegantly solve this issue. This mechanism would allow the Arrow Dataset to be used in place of the Torch Dataset because the `isinstance(instance of Arrow Dataset, TorchDataset)` check would return True (DeepSpeed has this check [here](https://github.com/microsoft/DeepSpeed/blob/ab5534fc4c0f8ca21ada321f9730d723aa31288b/deepspeed/runtime/engine.py#L823)).
And it requires a minimal change in the `arrow_dataset.py` file:
```python
if config.TORCH_AVAILABLE:
from torch.utils.data import Dataset as TorchDataset
TorchDataset.register(Dataset)
``` | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 124 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
Hi,
a HF dataset can be converted to a Torch Dataset with a simple wrapper as follows:
```python
from torch.utils.data import Dataset
class HFDataset(Dataset):
def __init__(self, dset):
self.dset = dset
def __getitem__(self, idx):
return self.dset[idx]
def __len__(self):
return len(self.dset)
train_ds = HFDataset(train_ds)
```
@lhoestq Since the Arrow Dataset already provides `__getitem__` and `__len__`, I think we could use the [virtual subclass](https://docs.python.org/3/library/abc.html#abc.ABCMeta.register) mechanism from the `abc` module to elegantly solve this issue. This mechanism would allow the Arrow Dataset to be used in place of the Torch Dataset because the `isinstance(instance of Arrow Dataset, TorchDataset)` check would return True (DeepSpeed has this check [here](https://github.com/microsoft/DeepSpeed/blob/ab5534fc4c0f8ca21ada321f9730d723aa31288b/deepspeed/runtime/engine.py#L823)).
And it requires a minimal change in the `arrow_dataset.py` file:
```python
if config.TORCH_AVAILABLE:
from torch.utils.data import Dataset as TorchDataset
TorchDataset.register(Dataset)
``` | [
-0.2578474879,
-0.2652202249,
0.092290543,
0.3382237554,
0.192244038,
0.2227147222,
-0.0302730072,
0.3457019925,
-0.1513580084,
-0.188662976,
-0.3486477137,
0.3248992264,
-0.1942693293,
-0.1420533508,
0.1868404895,
-0.2680390775,
0.1673271507,
-0.077385366,
-0.2466961443,
-0.1544104815,
-0.1386657953,
-0.1202889681,
0.0764638335,
0.0747126862,
0.0671004131,
0.0934039652,
0.0947783962,
0.1692147702,
-0.02370576,
-0.337891221,
0.2977358401,
0.0648861676,
0.5751038194,
0.256147325,
-0.0001273231,
0.2760317624,
0.0935582295,
-0.0755772665,
0.0312797278,
-0.0670312718,
-0.0523283929,
-0.0347760618,
0.1930178851,
-0.1016476452,
-0.3808219433,
-0.5978335738,
-0.1727227271,
-0.5317307115,
0.0468850732,
0.4796394408,
0.0522027947,
0.2359524667,
-0.0159183871,
0.0726410523,
0.2887392342,
-0.0978339612,
-0.1821517348,
0.148915112,
0.0003683611,
0.1105436981,
-0.1440717429,
0.1899664551,
-0.1628381908,
-0.0048649842,
0.4622427523,
-0.1983771324,
-0.3828522861,
-0.1405876279,
-0.1110376045,
0.4482494295,
0.1785308719,
-0.3304381371,
-0.1622342169,
0.0913781896,
-0.0402276628,
-0.1471041888,
-0.3329950869,
0.1591298878,
0.0133267641,
0.1457210481,
0.0341933444,
-0.0348539278,
-0.1720399857,
0.0566781685,
0.1703048944,
0.2567844987,
0.1148064509,
0.2005094886,
0.112234965,
-0.300560683,
0.4763330519,
-0.2886343598,
0.019953426,
-0.1253504902,
-0.1023315564,
-0.0023473466,
-0.3257407844,
-0.0770284459,
0.426595211,
0.1055245325,
0.3500560522,
0.3115788698,
-0.1508317292,
0.0488586389,
-0.0783412755,
-0.1055725664,
0.1002683938,
0.2584199607,
-0.006784766,
-0.2417300344,
0.0126303378,
0.2741790414,
-0.055022154,
-0.3046225607,
0.0989656374,
-0.0002229946,
-0.1225693151,
-0.1470835358,
-0.2946825027,
-0.0963819996,
-0.3344506621,
0.0045024571,
0.1658028662,
0.1950968802,
-0.0069166804,
0.1559907943,
0.4160035551,
0.5736425519,
-0.2732746601,
-0.0442830324,
0.0392627269,
0.1037560254,
-0.0204074867,
-0.2133429796,
-0.0619506016,
-0.189514786,
0.0589852855,
-0.0272747092,
-0.1381995976,
0.2087249607,
0.4373682141,
-0.1368234009,
0.2677769363,
0.0341864191,
0.0437850058,
0.0107279103,
0.3737202287,
0.4464446306,
-0.2962799668,
0.2520724833,
-0.3542587757,
-0.2294124663,
-0.0299934484,
0.0291098841,
0.1518907696,
-0.3381065428,
-0.259678483,
0.344129771,
-0.0471922345,
0.0570965633,
0.0422881134,
-0.452269733,
-0.3920985162,
-0.1631955057,
0.2866369188,
0.2642969787,
-0.4543378055,
-0.108259283,
0.0669647977,
-0.1349181533,
0.1149815544,
0.2226644605,
-0.2385525107,
-0.02123769,
-0.3799106181,
-0.1190298498,
0.5021681786,
-0.3953182101,
0.0504108556,
0.0612167045,
0.1370861828,
-0.0883587971,
0.061323572,
0.060831774,
-0.1293748468,
-0.1211573407,
0.1777420193,
0.1931716055,
-0.1514971554,
-0.227832675,
-0.1285723895,
-0.1981905252,
0.3369713724,
-0.0489434302,
0.201785326,
0.2132309079,
-0.1483509243,
-0.316142112,
0.2712275982,
-0.0189265497,
0.1627958715,
0.2168646604,
-0.2954395711,
0.1737280339,
-0.0513660125,
0.1118236184,
0.0711632669,
0.1300419271,
0.0647763535,
0.0738747641,
0.1080076545,
0.0362749845,
-0.1997979134,
0.180322051,
-0.1132474542,
0.0170494653,
-0.0658318251,
-0.0846983418,
-0.1495209485,
-0.2479619682,
-0.0476653501,
0.2230947912,
-0.4051268995,
0.1576888561,
-0.5375214219,
0.2642347217,
0.1351725012,
0.1516148299,
-0.0461900122,
0.2652027607,
0.0887986943,
0.0306283925,
-0.1722034663,
0.2192763537,
0.0369969532,
-0.0704304352,
0.2098778933,
0.2918403447,
0.1083689108,
-0.9760198593,
0.4055995643,
0.4391724467,
0.1616522521,
-0.02631988,
-0.065494284,
0.7372553349,
0.2774629891,
0.300027281,
-0.0249513257,
0.0133369351,
0.0203086548,
0.1796130538,
-0.2465768605,
0.0484424047,
-0.1590320319,
0.0646578297,
0.3350358903,
-0.0673670098,
-0.260027796,
0.0720836595,
-0.0637838468,
-0.0697548538,
0.0892393738,
0.2696090043,
-0.542937994,
-0.0200525858,
0.2840874791,
-0.1175014377,
0.2478156388,
0.1257989705,
0.2453288287,
0.0192361344,
-0.1548355669,
0.1166771278,
0.3136955798,
0.1029243916,
0.3733651638,
-0.0712379143,
0.0262524784,
-0.0605894513,
-0.2755175531,
-0.0274271574,
-0.1287210137,
-0.1086192429,
-0.4903781414,
0.2309372574,
-0.3518225551,
0.047706861,
-0.3123166263,
-0.1259673387,
0.0694136992,
-0.1767661124,
-0.1042160615,
-0.029503962,
0.1408048719,
0.1130038947,
-0.4155537486,
-0.2949006557,
0.1695127338,
-0.4143009186,
0.0517661311,
-0.1680519283,
-0.1829597354,
-0.0821089298,
0.1017923206,
-0.0141248051,
0.323454082,
0.2352628708,
-0.0364732146,
-0.4555360675,
-0.1237671822,
0.0857318714,
-0.168225944,
0.1182562783,
0.166330874,
0.0459986217,
0.2455702722,
0.0315163322,
0.0844995007,
0.0641368479,
-0.0313022248,
0.0945116058,
-0.406016022,
0.1735189706,
0.3860552609,
-0.1754048467,
-0.3225275278,
-0.2034179419,
-0.4023961723,
0.0576416962,
0.0536066703,
-0.0176008772,
0.3570225835,
0.1686807275,
0.2799851596,
-0.0048592305,
-0.1254454851,
-0.0701353252,
0.376388222,
-0.0555459298,
-0.2689596415,
-0.1432138681,
-0.3228365481,
0.2073332816,
0.3074095249,
-0.3161614537,
0.0621643327,
-0.2311657667,
0.3600255549,
0.0136123896,
-0.025062779,
0.3019003868,
-0.1703787148,
0.1023959666,
-0.1909871846,
-0.2149832249,
-0.0230281055,
-0.2790467441,
0.2952264845,
0.3544195294,
0.4846106172,
-0.1506828368,
1.0412963629,
-0.0465683267,
-0.3697220981,
0.3973764479,
-0.1264252216,
0.1498181373,
-0.1833271384,
-0.2263840139,
-0.1105485559,
-0.2265173197,
0.28025195,
0.0799791142,
-0.1003461406,
-0.1705221087,
0.0693359748,
0.1214485466,
-0.0306393839,
-0.1660862565,
0.2329552472,
-0.8961449862,
0.0176863652,
0.0021338924,
0.1300477237,
-0.3229353726,
0.0231791362,
0.0732280463,
0.2152176201,
0.148313731,
0.1805100143,
-0.3862238228,
0.2053111196,
-0.2371466756,
0.4286136627,
0.0562744364,
0.4741943181,
0.1464484036,
-0.1573111266,
-0.0251614433,
-0.0147807337,
0.2404377013,
-0.1279581785,
-0.0947266892,
0.0771028399,
-0.092151843,
-0.5414339304,
-0.0246007647,
0.0846696049,
-0.119492054,
-0.14289698,
-0.0692430884,
-0.148365885,
-0.3878344595,
0.0475906581,
-0.0577730127,
-0.0982007608,
0.3453834057,
-0.007009285,
-0.2675893307,
0.0000851678,
-0.0048481692,
0.1122532189,
-0.0689448342,
-0.1097264737,
-0.2179275006,
-0.4557944834,
-0.0097421836,
0.2941733301,
-0.2002432346,
0.2585790753,
-0.1388326883,
0.0753414407,
-0.1527344584,
0.284992069,
0.2438028902,
0.4379944801,
-0.1970746219,
-0.2902017832,
0.0096693123,
0.3952714503,
0.3297529519,
0.1525485963,
-0.1225216985,
0.2307648063,
0.0732722059,
-0.2015489787,
-0.359308213,
0.0972258374,
0.2285036147,
0.0436526015,
-0.3781015873,
-0.5780892372,
0.7419283986,
0.2688183486,
0.1454409361,
0.1953776926,
0.3553936779,
-0.3011115789,
0.617040813,
0.3395322561,
0.986790657,
-0.0691075847,
0.3258782923,
0.0542066097,
-0.2959994078,
0.072105132,
-0.0504340082,
-0.0582278594,
-0.4126887023,
-0.1477096975,
-0.1338686943,
-0.1622089446,
0.0057247458,
0.0689142495,
0.3153634965,
0.178028509,
-0.074458383,
-0.038391266,
0.0962403789,
0.0723688751,
-0.1790566742,
-0.2455154955,
0.0499620885,
0.1340460926,
-0.1460221559,
0.0349263921,
0.0267109498,
-0.2325409353,
-0.2148471624,
-0.0474875756,
-0.0926458612,
0.0968859494,
-0.4661186635,
0.1713735908,
-0.1045227572,
-0.7122536302,
0.3375079632,
0.2854367495,
0.3511964977,
-0.1926303208,
-0.1350197941,
0.1517781466,
0.3961052299,
-0.0373025127,
0.0267663617,
-0.2233530581,
0.410679698,
0.1068917289,
0.035352882,
0.0175529774,
-0.0071001756,
-0.3052245975,
-0.3145099282,
-0.124523595,
0.5930755138,
-0.2820000947,
-0.3719063699,
0.2380302995,
-0.0927092955,
-0.0675931498,
0.0090436777,
0.0696064308,
-0.1106253937,
-0.0107093854,
0.1345486045,
-0.3021260202,
0.0600139387,
0.3590591848,
0.2400670946,
0.3162533343,
0.3917660713,
0.1692464799,
-0.0556957684,
-0.006532182,
0.297560364,
1.0077921152,
-0.2458745837,
-0.0099411784,
-0.1170473918,
-0.1609710008,
0.1037979126,
-0.1634287834,
0.0081032151,
-0.0553748049,
-0.1087674499,
-0.1185111329,
-0.4555995464,
0.0748565793,
-0.406106621,
0.2491325736,
-0.1225531623,
0.0172260664,
-0.321131587,
0.0155156432,
-0.1448335052,
0.1127303615,
0.2651411593,
0.1370836347,
-0.1197654605,
0.1266105175,
0.0069291415,
0.1773063689,
0.0005028855,
0.0791049153,
-0.1828221679,
-0.1051899865,
-0.2731461227,
0.1961015314,
0.0683135837,
-0.1551604271,
0.0994857624,
-0.2853500247,
-0.2229065448,
-0.0364949927,
0.1683730334,
0.2067489326,
0.0059140739,
0.2294742167,
0.3034992218,
-0.0259206425,
-0.2105906308,
0.0383491106,
0.3125868142,
0.3946983516,
-0.0605469719,
0.096547544,
-0.1757989228,
-0.2931242883,
-0.3873529732,
0.1752182543,
0.47208184,
0.0273499489,
0.2311716229,
-0.0398829728,
0.1024806425,
-0.2299896032,
0.229842335,
0.3792033195,
-0.0611142665,
0.0471938141,
0.0231120735,
-0.0648274869,
-0.3075178564,
-0.0568649396,
-0.3594820201,
-0.4126644433,
0.0003114071,
0.1142258272,
0.0826150998,
0.6105095744,
-0.1618747562,
-0.2463418394,
0.0081117423,
-0.2925340831,
-0.0741096586,
0.4579828382,
0.2106726468,
0.0325754471,
0.3636945188,
0.0911525264,
0.3156626821,
0.2562748194,
0.3217665553,
0.9033666849,
0.5328705907,
0.0519999526,
0.4340226948,
-0.3633099496,
-0.2659889162,
0.2342759818,
0.1408530623,
0.2021420747,
0.1176667586,
0.4040744901,
-0.0051705553,
-0.4713332653,
0.0642770752,
0.0514753535,
0.0454387292,
-0.3815630376,
-0.1736594886,
0.0116795162,
-0.3381461501,
-0.1598158628,
-0.3009898067,
-0.2025421262,
-0.0273908339,
0.1743182987,
-0.0134381112,
-0.104021892,
0.0547179691,
0.2319034189,
-0.1501418054,
-0.0429550745,
0.0767044947,
-0.0977956057,
-0.0906880572,
0.0501101576,
0.2382851839,
0.179313153,
0.0387451649,
-0.3101732731,
-0.0302371625,
0.5008479357,
-0.1578502357,
0.2633667886,
-0.1167042926,
0.0330312699,
-0.0895638168,
0.3350347281,
-0.0045014331,
0.0456660055,
-0.0018744688,
-0.0360820554,
-0.0118330652,
-0.0806543604,
0.4686771035,
0.0381001271,
0.0139764966,
-0.1736446917,
0.0824353471,
-0.2970457375,
-0.1447715461,
0.6065624952,
-0.1959426403,
0.1275312454,
0.039456442,
-0.0156108905,
-0.0559970848,
0.2712174654,
0.2909680307,
0.0128566269,
-0.4178179502,
0.0564241447,
-0.2842059135,
-0.0600479506,
-0.0816402808,
0.0632247627,
-0.0166598763,
0.005641642,
0.3884032369,
0.019981971,
-0.0046378351,
-0.037249729,
0.2183651179,
0.4570040107,
0.0243275873,
-0.2359935343,
-0.1582073569,
0.3439808786,
-0.0470925309,
-0.3401725888,
-0.1834382564,
0.2665218413,
-0.0988295525,
0.0416923054,
-0.2853512466,
0.5871299505,
-0.0558393225,
0.3612971306,
0.0134538198,
0.4425632954,
-0.193512544,
0.0562471896,
0.0560613088,
-0.0514195748,
-0.4351494312,
0.1867741942,
-0.168394804,
0.324901998,
-0.0179734919,
-0.2146580219,
-0.0555232875,
0.1130814925,
-0.0192127507,
-0.4831695557,
-0.3689864278,
0.5198542476,
-0.3363096714,
0.0545218475,
0.2158738375,
0.540563345,
0.1599619091,
0.2815883458,
-0.2493225634,
-0.197788626,
0.5602644086,
0.087946482,
-0.0127671035,
0.1000927463,
-0.0909549817,
0.2509335577,
0.0842076465,
-0.3041745424,
-0.1044750437,
0.13969028,
-0.2259104699,
0.081753999,
0.1331896484,
0.2929913402,
0.2363058478,
-0.3110002875,
0.4001901746,
0.1546285897,
0.0743894055,
-0.1339149624,
-0.289806366
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Interesting ! Thanks for sharing this @mariosasko . I like the idea
This looks like something we should add IMO | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 20 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
Interesting ! Thanks for sharing this @mariosasko . I like the idea
This looks like something we should add IMO | [
-0.2704310417,
-0.3552312553,
0.0578338318,
0.3274024725,
0.1308026314,
0.2287475765,
-0.0746708885,
0.3752877116,
-0.1519821733,
-0.2421407998,
-0.3885170817,
0.3905746937,
-0.2419558614,
0.0159072392,
0.1749467105,
-0.3065535724,
0.221538499,
0.0879760385,
-0.2604884207,
-0.1844495237,
-0.1150371209,
-0.0907217711,
0.0623861402,
0.106624268,
0.0754080787,
0.0218768306,
0.0603697151,
0.1361697465,
-0.0912096798,
-0.3727337122,
0.1620190442,
0.0805814713,
0.6023118496,
0.2542228699,
-0.000129465,
0.121409528,
0.047135666,
-0.1353147477,
0.1333481371,
-0.0648842379,
-0.1909477115,
-0.0160529204,
0.1982824504,
-0.1445406675,
-0.312500447,
-0.5852587223,
-0.0864551589,
-0.3302888274,
0.1317973286,
0.5674700141,
0.0448211096,
0.2532967925,
0.041130323,
0.0413688459,
0.2709914744,
-0.1340616494,
-0.1894198805,
0.0514472276,
-0.0449579656,
0.1564192325,
-0.1868777573,
0.1760748327,
-0.1330002099,
0.0261194035,
0.355538547,
-0.308077544,
-0.3637714088,
-0.1833694875,
-0.0535962284,
0.5436588526,
0.2123095393,
-0.2470741719,
-0.0536052547,
0.1764545292,
-0.0406478234,
-0.1832194179,
-0.4047421217,
0.2438121587,
-0.0344791375,
0.1389832944,
-0.0193720944,
-0.2209190875,
-0.1599254757,
0.0496584252,
0.2337449342,
0.3325106204,
0.086325109,
0.1720975041,
0.2195574045,
-0.3176526427,
0.4350480437,
-0.2300879806,
0.0136854947,
-0.1905346513,
-0.0844796151,
-0.0536002181,
-0.3678520918,
-0.0870003849,
0.4450830519,
0.0914299637,
0.1940549314,
0.3110406101,
-0.1877271384,
0.0876534656,
-0.1655004621,
-0.2114877105,
0.1320844591,
0.2368788123,
0.0151885748,
-0.2638652921,
-0.035054706,
0.2685379386,
-0.1065921262,
-0.4033828676,
0.0268639196,
0.0132906968,
-0.1553602964,
-0.1946212202,
-0.1789072752,
-0.2201950252,
-0.2744256258,
-0.041535262,
0.0255341642,
0.2432052344,
-0.0197861232,
0.0324828029,
0.2451163828,
0.6499622464,
-0.1770290732,
-0.1200618446,
0.0231893156,
0.1186213642,
-0.0104449084,
-0.1782734841,
-0.0901772156,
-0.1836856455,
0.083110258,
-0.0311976876,
-0.2837876379,
0.1042147428,
0.3755453527,
-0.1094040126,
0.2886728048,
0.0350889452,
0.1142900214,
0.0078265462,
0.2785114944,
0.4119475484,
-0.3310033381,
0.2717519999,
-0.5120925903,
-0.1923476309,
-0.1678928733,
0.0259818044,
0.1766341925,
-0.339081794,
-0.4178645909,
0.3362239301,
0.0006458695,
0.1393369287,
0.011186569,
-0.4340931475,
-0.3783959746,
-0.1909058541,
0.1955822855,
0.2619057298,
-0.3799597323,
-0.1437560618,
0.145368129,
-0.1773047745,
0.210976854,
0.314445734,
-0.2082757503,
0.0645734444,
-0.4396535456,
-0.0454901494,
0.6284145117,
-0.3011911809,
0.1494973898,
0.1173238084,
0.1322221905,
-0.2706713378,
0.1166472733,
-0.0181615036,
-0.0784451813,
-0.0447087884,
0.1449571103,
0.2285380661,
-0.130937323,
-0.1571484208,
-0.1241617128,
-0.3072409928,
0.4866385162,
-0.0557225272,
0.2174059153,
0.2946625054,
-0.1126181111,
-0.2794393003,
0.326938808,
-0.0687173828,
0.138354674,
0.2432398796,
-0.3034929633,
0.0261791088,
-0.0794049054,
0.1094832048,
0.1647336483,
-0.0427012146,
0.0162464529,
0.0033797659,
0.0795036033,
0.0811145678,
-0.2249484658,
0.1649550498,
-0.1156475842,
0.0749072656,
-0.0818222016,
-0.0752738938,
-0.1724804342,
-0.1560640931,
-0.0423296429,
0.2044191658,
-0.3709312379,
0.1121348813,
-0.5358003378,
0.2550238967,
0.0991599187,
0.1160597876,
0.0869626626,
0.2077862471,
0.0999309942,
0.0034457012,
-0.1313251406,
0.1819620878,
0.003800449,
0.0547714494,
0.3907217979,
0.3828902841,
0.0789415315,
-1.0408308506,
0.3747018576,
0.423089087,
0.1125189811,
-0.1140041649,
-0.0838938653,
0.704898119,
0.1983750165,
0.2045112401,
-0.0233918615,
-0.0807896182,
0.0893390104,
0.127587676,
-0.2039732188,
0.045054242,
-0.095814988,
-0.0324645229,
0.2899932861,
-0.0298491232,
-0.3910630345,
-0.0265777837,
0.0611635037,
0.0086546196,
0.0978103206,
0.3565205038,
-0.5009666085,
-0.1333935112,
0.2598283887,
-0.3266511858,
0.1245564446,
0.1496167183,
0.1668120921,
0.0315003172,
-0.0519471392,
0.0357633345,
0.2676288486,
-0.0245049782,
0.4564777911,
0.0383479595,
0.0988225266,
-0.0827441737,
-0.3403329253,
0.0135743031,
-0.1481551379,
-0.0426874124,
-0.4770849347,
0.1296865493,
-0.3740545809,
-0.107713379,
-0.3232432306,
0.0160601586,
0.0922945589,
-0.0635077581,
-0.1585213691,
-0.0373835675,
0.2656473219,
0.1264511198,
-0.4192355275,
-0.2399657816,
0.2190296948,
-0.2623649836,
-0.0459455401,
-0.1887426972,
-0.0797469392,
-0.0820251852,
0.0914016664,
0.0161286537,
0.2941830754,
0.1412696689,
0.1444801092,
-0.4242696166,
-0.1420471519,
0.0025839587,
-0.0993425623,
0.0697793737,
0.1595064551,
0.1411955506,
0.2244948,
0.0567411184,
0.04318434,
0.0411017351,
-0.0407088175,
0.1077583805,
-0.4161676764,
0.1413839757,
0.4955778122,
-0.1301068962,
-0.3275339305,
-0.2123827338,
-0.368506372,
0.0493370667,
0.1444419771,
-0.1609322131,
0.3607034087,
0.1027720198,
0.1735191047,
-0.0248913914,
-0.0694723055,
-0.0942183211,
0.3464502096,
-0.0777982324,
-0.2930302024,
-0.1745947599,
-0.2663949728,
0.1151688024,
0.1990528405,
-0.3448432684,
0.1793664545,
-0.1567096859,
0.3103542626,
-0.0029995763,
-0.051529441,
0.3110347092,
-0.1472958475,
0.1452462226,
-0.1825830042,
-0.2098715454,
-0.0008985777,
-0.1738930941,
0.3357551396,
0.436291039,
0.4567355216,
-0.2110413462,
0.9687734246,
-0.0148854367,
-0.3842709363,
0.5177223086,
-0.1633143127,
0.1034207791,
-0.1918203384,
-0.2534877956,
-0.0386901386,
-0.0802293792,
0.3667732179,
0.0974167436,
-0.1248236597,
-0.1807951331,
0.086501196,
0.1067032143,
-0.105373092,
-0.0593370497,
0.2345706373,
-0.8194180131,
-0.0726822913,
0.0025317953,
-0.0068365741,
-0.2437284291,
-0.0556775406,
0.0777244344,
0.3136203587,
0.2601489425,
0.2205913067,
-0.3707067072,
0.1837079823,
-0.2120571882,
0.3850879967,
-0.052843906,
0.4841068387,
0.1041782871,
-0.0641128644,
0.0318519324,
-0.0306218024,
0.3866946101,
-0.1875585616,
-0.091401808,
0.0194153171,
-0.0259632058,
-0.4439343512,
-0.0057256389,
0.041316539,
-0.0433616713,
-0.1164483801,
0.1831142604,
-0.154675439,
-0.3596232533,
-0.0006947223,
0.0029348726,
-0.1138093174,
0.2737462819,
0.0768159926,
-0.2045682371,
0.0357518345,
0.0536897741,
-0.0164441224,
-0.0990001932,
-0.1160665154,
-0.2233146727,
-0.476624161,
0.0645196289,
0.2487378716,
-0.2038893402,
0.1920404881,
-0.0786589608,
-0.0404601283,
-0.2650974691,
0.2962012291,
0.2615866959,
0.2747354805,
-0.2695291042,
-0.1795161366,
-0.0120419636,
0.3011473715,
0.3822055161,
0.0853859186,
-0.0686251968,
0.2815309763,
0.0628932491,
-0.0958310813,
-0.3378953636,
0.1491990834,
0.2903028429,
-0.0034240391,
-0.5377705693,
-0.4617137909,
0.7115876675,
0.2423549742,
0.1123873815,
0.2173787504,
0.2269867212,
-0.2727288902,
0.7211722732,
0.221656248,
1.1427097321,
-0.1634586006,
0.3277300894,
-0.0689028427,
-0.3151944876,
0.1440818906,
-0.1366243809,
-0.0438571647,
-0.5092169642,
-0.1337457895,
-0.1724205613,
-0.2102555335,
0.0005091142,
0.1115139648,
0.3066328168,
0.1736797988,
-0.0907345191,
-0.0430987515,
0.0739058331,
0.1339904964,
-0.0127219912,
-0.215222314,
-0.0496791378,
0.0812612176,
-0.2455009371,
0.0428516567,
0.0226382315,
-0.316778481,
-0.0857655108,
-0.0128049469,
-0.0629138872,
0.1333409995,
-0.3916155696,
0.2086815238,
-0.1020074636,
-0.7172005177,
0.2480069846,
0.3210868537,
0.3370933831,
-0.1327755004,
-0.1462030411,
0.1636067033,
0.4743584394,
-0.1735899597,
-0.0122843357,
-0.0925387666,
0.2693700492,
0.0069935406,
-0.0051270598,
0.0592468418,
0.0436880551,
-0.3624277115,
-0.3166553676,
-0.1638200581,
0.4906710088,
-0.246634528,
-0.5456699729,
0.2004902512,
-0.0626043305,
-0.049250517,
-0.0078770798,
0.0940498412,
-0.0801143572,
0.0802998096,
0.2769868374,
-0.358997941,
0.0691730976,
0.384699285,
0.1874383688,
0.3788059056,
0.378767401,
0.1662435681,
-0.0843460858,
-0.0581624843,
0.2729901969,
0.8475378752,
-0.2112777978,
-0.055037003,
-0.1017797887,
-0.066724427,
0.1764791757,
-0.1538365483,
-0.0242772531,
-0.0107918261,
-0.001059424,
-0.1684326679,
-0.3776629269,
-0.0094204023,
-0.5037516952,
0.2098776996,
0.0322901905,
-0.065500088,
-0.3649933934,
0.0716209561,
-0.130860582,
0.1892534792,
0.2305908054,
0.1327001303,
-0.1198966578,
0.1519487649,
-0.0308757834,
0.1419835538,
-0.0059041926,
0.0213199332,
-0.1980636716,
-0.1242233142,
-0.2340458632,
0.2140558064,
0.1016511396,
-0.1233233735,
0.1085514128,
-0.2530790865,
-0.2654301822,
0.0349138118,
0.1609393805,
0.2066157758,
0.0862390548,
0.2973313034,
0.3402447104,
-0.1025864854,
-0.2123933285,
0.0754838437,
0.3458487689,
0.3790524006,
-0.1384808868,
0.110797137,
-0.1813203841,
-0.2900878489,
-0.3661790192,
0.1722218841,
0.5551641583,
0.0176630337,
0.2392830849,
-0.0788115934,
0.142516762,
-0.242007494,
0.2221852094,
0.3790281117,
-0.1063595861,
0.0677399263,
0.0594038591,
-0.0754962489,
-0.2994277477,
-0.038504146,
-0.2173160613,
-0.3141105175,
-0.0723760054,
0.0272179302,
0.1255372763,
0.5410740972,
-0.1436741799,
-0.2965468466,
0.0447993763,
-0.3451572359,
-0.1395789981,
0.3816303313,
0.2292928547,
0.0080816867,
0.367834121,
0.235091418,
0.3199836314,
0.1539043188,
0.4099700153,
0.849285841,
0.6417722702,
0.0754529908,
0.4385546744,
-0.4119923413,
-0.3295013607,
0.2571870983,
0.1432523727,
0.1258505583,
0.1502239704,
0.4933292568,
0.1703613251,
-0.56659621,
0.0716961697,
0.1914037317,
0.0346361175,
-0.4513969421,
-0.130215168,
0.0413923152,
-0.3098056316,
-0.1244272292,
-0.3104373813,
-0.1233871803,
-0.0551061295,
0.2258518785,
0.0566277653,
-0.0724426657,
0.1049895659,
0.2062294781,
-0.1139232442,
-0.0713276863,
0.1549411416,
-0.1350672245,
-0.0542063639,
0.0578977503,
0.1662690789,
0.2439157665,
-0.0082276268,
-0.3018835187,
-0.0454337336,
0.4646237791,
-0.1645204574,
0.3403024971,
-0.0736194998,
0.2081259191,
-0.1007426232,
0.3429597616,
-0.0059631742,
0.0626548082,
0.1354296505,
0.0287160818,
-0.0066623637,
0.018063698,
0.248131603,
0.1146363392,
0.0294340272,
-0.1742190868,
-0.011242982,
-0.3586731851,
-0.0496008433,
0.669164896,
-0.2396360636,
0.1143990532,
0.0804412141,
-0.0062691201,
-0.0650274605,
0.1841633022,
0.3714640439,
0.1079924479,
-0.3948980868,
0.0223799739,
-0.1956924796,
0.0392695256,
0.0264249127,
0.1066623777,
-0.0834691823,
-0.0030418751,
0.3395577073,
0.000231112,
-0.0614799224,
-0.0334356055,
0.2042382509,
0.5422482491,
0.0192905925,
-0.1077275872,
-0.2591681778,
0.3638246655,
-0.1441085786,
-0.3204356134,
-0.0903424472,
0.2091026008,
-0.0847721323,
-0.0010738651,
-0.2335557044,
0.5360314846,
-0.0856617987,
0.3362798989,
-0.0733784214,
0.4900249839,
-0.2959280014,
0.1195823252,
0.173921138,
-0.0841972679,
-0.4016540945,
0.2119207084,
-0.0927228108,
0.2605181932,
-0.002979907,
-0.13208884,
-0.0440985076,
0.1206763685,
-0.1207278222,
-0.4478740394,
-0.2386040986,
0.4975052178,
-0.2389293462,
-0.0964185819,
0.2845883667,
0.4631787241,
0.1880175769,
0.2012935877,
-0.1608357728,
-0.1496620625,
0.5671271086,
0.1585634649,
-0.0479429439,
0.0831966773,
-0.1093914136,
0.2654270232,
0.0603676252,
-0.3633694053,
-0.1027079299,
0.1557670832,
-0.2713347971,
0.1184528098,
0.2174607068,
0.2340916842,
0.2719826996,
-0.3003628552,
0.4093896747,
0.2130360901,
0.0507341996,
-0.2739739418,
-0.3515225351
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @mariosasko
Thx for your code!
It perfectly works with a small modification for HF NLP dataset:
```
original_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds = HFDataset(train_ds['train']) # needs splitting
``` | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 28 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
@mariosasko
Thx for your code!
It perfectly works with a small modification for HF NLP dataset:
```
original_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds = HFDataset(train_ds['train']) # needs splitting
``` | [
-0.2263560146,
-0.33357355,
0.0703147426,
0.3271582723,
0.1331762373,
0.1971443146,
-0.0642954111,
0.3733651042,
-0.13911888,
-0.2662571073,
-0.3984828591,
0.3849839568,
-0.1794497967,
-0.0095808413,
0.1554361135,
-0.3008969426,
0.1781212091,
0.0767289549,
-0.2033019066,
-0.2192836553,
-0.0984738544,
-0.0496378727,
0.0211215261,
0.1258828044,
0.0060907002,
0.0596896112,
0.0468231253,
0.2068378031,
-0.0479724966,
-0.3290066719,
0.1856229901,
0.0352226719,
0.5887832642,
0.254622221,
-0.0001306744,
0.1232330352,
0.0475135334,
-0.1539010853,
0.110260725,
-0.1059944704,
-0.1251385063,
-0.0374400094,
0.1923869401,
-0.1235966533,
-0.352724731,
-0.5381261706,
-0.0982353911,
-0.290035069,
0.1821317375,
0.5682999492,
0.0439835675,
0.2380840182,
-0.000174009,
0.0502139963,
0.2654595673,
-0.1158188879,
-0.1378009021,
0.0770623386,
-0.0951836407,
0.1144735515,
-0.2686014175,
0.1428050548,
-0.1503308266,
0.0720830262,
0.3074948192,
-0.3364240825,
-0.4187690914,
-0.1907431334,
-0.0029427595,
0.5164997578,
0.1975762993,
-0.2164663821,
-0.0486002713,
0.1461014599,
-0.1083507091,
-0.1705802977,
-0.36707443,
0.2305694968,
-0.0336457044,
0.1331619769,
0.0374291874,
-0.1993557364,
-0.158677578,
0.097532995,
0.2056352347,
0.3252080977,
0.0735002905,
0.1826858073,
0.2181076556,
-0.3050099313,
0.3931111097,
-0.2096297592,
-0.0322053991,
-0.178420648,
-0.1522558331,
-0.0226953309,
-0.3895274401,
-0.0581792817,
0.4548135102,
0.0893322229,
0.1379812658,
0.3401526213,
-0.1559868306,
0.0358811878,
-0.1179901361,
-0.1961133778,
0.1375551075,
0.2798590362,
-0.0167927034,
-0.3020297885,
-0.0787241459,
0.2333448827,
-0.0840415657,
-0.4121387005,
0.0535194799,
0.0179045033,
-0.1774985641,
-0.2150648534,
-0.2046912014,
-0.2606699169,
-0.2944224477,
-0.0563339442,
0.0382382199,
0.2656324804,
0.0401876941,
0.0500874668,
0.1952549368,
0.6915662885,
-0.2502999008,
-0.1751054525,
0.0112742456,
0.1056318358,
-0.0220320784,
-0.1828760952,
-0.1040799692,
-0.2147392929,
0.1593292803,
-0.00578037,
-0.2855864763,
0.1035445929,
0.3521378934,
-0.1735322624,
0.2845811844,
0.0553727485,
0.1202841625,
0.0789880604,
0.3318805993,
0.3952589929,
-0.304681927,
0.2600636482,
-0.5100747943,
-0.2010752112,
-0.198196888,
0.0106507344,
0.150317803,
-0.2748128176,
-0.4242849648,
0.3067436218,
0.0271711554,
0.1364006996,
0.0167121962,
-0.4317054152,
-0.3108108044,
-0.1870918274,
0.2145444155,
0.2237267196,
-0.3245927393,
-0.1132328063,
0.1227967888,
-0.1630421728,
0.232423529,
0.3118994832,
-0.2270777971,
0.093680039,
-0.4663158953,
0.0080994749,
0.6656393409,
-0.3257719576,
0.1022588238,
0.1635375172,
0.0983478799,
-0.2311870307,
0.1086591929,
-0.0553931072,
-0.0797104388,
-0.0385859609,
0.1303542703,
0.2308632731,
-0.094621554,
-0.1622788161,
-0.1658532172,
-0.2639196515,
0.5142814517,
-0.0872295052,
0.234876141,
0.3476693928,
-0.0908901617,
-0.2052476406,
0.3716837466,
-0.041416578,
0.1036918759,
0.2142172754,
-0.3256300092,
0.0535458475,
-0.0730226412,
0.0921152607,
0.1350723207,
-0.0252536386,
0.0498598143,
-0.0339628346,
0.0881130099,
0.1063460708,
-0.2813718915,
0.1484550238,
-0.1486710459,
0.0176728256,
-0.1103213131,
-0.067754373,
-0.202536419,
-0.1761351973,
-0.0231411941,
0.2861521244,
-0.3305152655,
0.1278511137,
-0.4923219979,
0.2535890043,
0.067513369,
0.1056313142,
0.1362592429,
0.1969211251,
0.1536069959,
-0.0305048749,
-0.1565907151,
0.2011707127,
0.0490444638,
0.009148607,
0.3590289056,
0.2326786816,
0.0966183767,
-1.0042270422,
0.3522103131,
0.4355177879,
0.1550198197,
-0.1452270746,
-0.0021774685,
0.6890770793,
0.2010133117,
0.2365344614,
-0.0610622019,
-0.0508690514,
0.0942550227,
0.1049326509,
-0.1251613349,
0.0396527834,
-0.0850839019,
-0.0466093458,
0.275845021,
-0.0639290512,
-0.399749577,
-0.0149445543,
0.154749006,
-0.0097324979,
0.0751003921,
0.3563733995,
-0.5196489096,
-0.1247845218,
0.3244450092,
-0.354701668,
0.1424796432,
0.1628666669,
0.1763054281,
0.0010705405,
-0.0438612774,
0.019941479,
0.2627768815,
0.0312215034,
0.4762643874,
0.0328029357,
0.1253219098,
-0.0937409401,
-0.3203769922,
0.0578692816,
-0.1390544623,
-0.0352985077,
-0.4970812798,
0.1807904243,
-0.406814158,
-0.1239833236,
-0.2987780571,
-0.0224419814,
0.0396811031,
-0.1091321185,
-0.2386260033,
0.0302584246,
0.3040400743,
0.0953089744,
-0.4173562229,
-0.3343814611,
0.2197838873,
-0.257561475,
-0.0490854718,
-0.152148068,
-0.1422959417,
-0.0792502463,
0.0874340013,
0.0642263591,
0.2967347801,
0.1606132984,
0.117771633,
-0.3894570768,
-0.1165062934,
0.0104811843,
-0.1332975924,
0.0998921469,
0.1726037264,
0.1334910393,
0.1722556353,
0.0761117637,
0.0592288747,
0.0346763097,
-0.0320950001,
0.1489343047,
-0.3590315282,
0.1663263738,
0.4372861981,
-0.1095227227,
-0.2783697546,
-0.2167599797,
-0.382625699,
0.0475437418,
0.1732872576,
-0.1151547208,
0.3042676151,
0.1316341907,
0.2117643654,
-0.075867489,
-0.1215799898,
-0.0538331345,
0.3606455922,
-0.0776256621,
-0.3281582892,
-0.1559720337,
-0.2494733483,
0.0884208307,
0.2179973572,
-0.3521412313,
0.159341976,
-0.1564198136,
0.3416547775,
-0.05534802,
-0.0349267945,
0.3035983145,
-0.1843937635,
0.1471060514,
-0.2114260346,
-0.2488058656,
0.0613300242,
-0.1483647227,
0.3629365265,
0.3649741411,
0.4517160356,
-0.1608111262,
0.9838788509,
-0.030314628,
-0.3359045982,
0.5201299191,
-0.1261214316,
0.0862393454,
-0.2030794024,
-0.2672267556,
-0.0298657604,
-0.0799618363,
0.4489378929,
0.1056019515,
-0.1356224269,
-0.1475100815,
0.0822238699,
0.0455771089,
-0.1306184381,
-0.0661000982,
0.2251465917,
-0.8449302316,
-0.1056759432,
0.0727218464,
0.0569751337,
-0.2449699044,
-0.0726716071,
0.0564685985,
0.3254697621,
0.2142678052,
0.2519317865,
-0.3784075379,
0.173453629,
-0.2046070844,
0.4338723421,
-0.0459956788,
0.5219185948,
0.1248014346,
-0.0683135539,
0.0906445533,
-0.0323840305,
0.477512002,
-0.1738085151,
-0.0706753209,
0.0359209441,
-0.0255810656,
-0.4465416074,
0.0172571577,
0.0562238097,
0.0697536767,
-0.0893029422,
0.1419758052,
-0.1395870596,
-0.4577146173,
-0.0526842922,
0.0157329943,
-0.0781969503,
0.2679592371,
0.0275435839,
-0.2418016046,
0.0301985275,
0.0325046368,
0.0150481267,
-0.0481002592,
-0.1440619379,
-0.2042285502,
-0.4858336449,
0.0070129777,
0.2883122265,
-0.1957109421,
0.2373308539,
-0.088448748,
-0.0736438707,
-0.2873156071,
0.3368115127,
0.2056098729,
0.2770308852,
-0.1854194105,
-0.1713094264,
0.0132958889,
0.2324945778,
0.3811322153,
0.0995614752,
-0.0634262338,
0.2771748006,
0.0227151066,
-0.0596835017,
-0.3146492541,
0.194328621,
0.31712538,
-0.0140809407,
-0.5217673779,
-0.4427950382,
0.6736052632,
0.1517963409,
0.1031016558,
0.1824989915,
0.290576458,
-0.2887245119,
0.6902831793,
0.192305997,
1.0491652489,
-0.1496043652,
0.309143126,
-0.0192483217,
-0.3549841046,
0.1914818436,
-0.0620064773,
-0.0127192773,
-0.5064070225,
-0.0988874361,
-0.1696775258,
-0.1890802979,
0.0456676371,
0.1084338054,
0.3459701538,
0.2118413597,
-0.1081130505,
-0.035630811,
0.0932142064,
0.1610935628,
0.0246001836,
-0.2186435312,
-0.0476579517,
0.0867053941,
-0.2787377238,
0.1409862936,
0.0454185866,
-0.3511816263,
-0.1316141039,
-0.0653837994,
-0.0387333557,
0.1358406842,
-0.3878105879,
0.191280812,
-0.0955749229,
-0.7221960425,
0.3027080595,
0.2570642829,
0.3729011416,
-0.1525344402,
-0.075971894,
0.1517222971,
0.4544077814,
-0.1220791712,
-0.0165471137,
-0.1029009297,
0.2754592597,
0.0021331508,
-0.0121418964,
0.0144781722,
0.0496025346,
-0.354049623,
-0.307518959,
-0.1008297354,
0.4927372336,
-0.282471031,
-0.5382117033,
0.1809413731,
-0.028042892,
-0.0404094905,
-0.0311694071,
0.0760164633,
-0.1006562933,
0.0231765751,
0.2196099758,
-0.357734412,
0.0479488745,
0.3908986747,
0.2444619387,
0.3545529544,
0.4260513484,
0.1283818185,
-0.0747564733,
-0.0551733822,
0.2427577525,
0.7975460291,
-0.2431238443,
-0.0955934376,
-0.0828487054,
-0.0964283198,
0.1759670377,
-0.1229591444,
-0.1000612751,
0.0187574029,
-0.0037023902,
-0.2240096927,
-0.3872652054,
-0.0501670241,
-0.5921086073,
0.1292786002,
0.0445955992,
0.009589877,
-0.3298638165,
0.1190788746,
-0.1190347373,
0.1844639182,
0.2547360361,
0.1583483219,
-0.1665885001,
0.1188054755,
-0.0005615889,
0.1166002378,
-0.0072354442,
0.0770438462,
-0.1851375997,
-0.1235980839,
-0.243299678,
0.2295062542,
0.0940970927,
-0.1306686252,
0.075133875,
-0.2411135584,
-0.2445299029,
0.0727363601,
0.1853951365,
0.1755367517,
0.1117695272,
0.3480854332,
0.3641876578,
-0.0677337348,
-0.2277561873,
0.0497228727,
0.3066649735,
0.3425446451,
-0.1606394649,
0.1104380414,
-0.1617767215,
-0.2147650719,
-0.4247931242,
0.1144339219,
0.5022955537,
-0.0028916562,
0.1857272387,
-0.1026444212,
0.1288242638,
-0.2557850182,
0.1771662384,
0.3922424316,
-0.065269582,
-0.0092792735,
0.0954938754,
-0.09238258,
-0.317599386,
-0.0011594878,
-0.2000229657,
-0.3673343658,
-0.1038195789,
0.0687588826,
0.1370667666,
0.554526329,
-0.1259821057,
-0.3066506386,
0.0544887222,
-0.3451065719,
-0.1011897177,
0.4092555046,
0.1976183504,
0.0214366838,
0.3924002051,
0.2195708454,
0.2428042293,
0.228448987,
0.3846335113,
0.828275919,
0.6093140244,
0.0693634003,
0.4093188047,
-0.4392863214,
-0.3943212032,
0.2902413309,
0.1612641066,
0.0955128968,
0.090938665,
0.5308842659,
0.1345909983,
-0.6116361022,
0.1243948564,
0.141716972,
0.0394368581,
-0.3871904314,
-0.072066538,
0.094241187,
-0.336030066,
-0.168939054,
-0.3047469258,
-0.1319286227,
-0.0257734861,
0.2366738915,
0.0376941413,
-0.0770480558,
0.0455886088,
0.1857755929,
-0.1383960098,
-0.0701647624,
0.1703160703,
-0.1693471521,
-0.0163692869,
0.108986415,
0.122243382,
0.220677942,
-0.0236988124,
-0.308642298,
-0.1027005464,
0.4592531919,
-0.1692235917,
0.3425979614,
-0.0366073437,
0.2029953003,
-0.0599706098,
0.3750295043,
-0.0327131338,
0.0678918138,
0.1241497099,
0.040582519,
0.0066334368,
-0.0242573917,
0.3539984822,
0.0674851984,
0.0228486247,
-0.1710182875,
-0.0509919897,
-0.3561062217,
-0.0426159874,
0.5597943664,
-0.2557032704,
0.1359279156,
0.0525569022,
-0.0106770191,
-0.1017213613,
0.1591458619,
0.3113597929,
0.1135584489,
-0.3916856349,
0.0128196236,
-0.2028858215,
0.0193146318,
-0.0143975792,
0.0728561729,
-0.0521283075,
-0.0008850163,
0.3236848414,
-0.052913636,
-0.088276051,
-0.0321373791,
0.2348826975,
0.4995104074,
0.045416072,
-0.1006598026,
-0.3244433403,
0.3683189154,
-0.1543813348,
-0.3648245633,
-0.052497346,
0.2208978087,
-0.1017182246,
0.0308081936,
-0.213762477,
0.5447204113,
-0.0581348166,
0.2709106505,
-0.0344842337,
0.4849646688,
-0.2545778155,
0.1276672632,
0.1671371013,
-0.0664453134,
-0.4173105657,
0.1933079809,
-0.1038348228,
0.3298134804,
-0.0180291161,
-0.0523740314,
-0.0486999378,
0.1613539755,
-0.1031829268,
-0.3979180157,
-0.2104851902,
0.5480270386,
-0.2608940303,
-0.0680657998,
0.3363810778,
0.5139483809,
0.1706795394,
0.2059372663,
-0.2271482646,
-0.1567138135,
0.5854464769,
0.1026790366,
-0.0993436053,
0.1165448278,
-0.0490630418,
0.3045934141,
0.0171859078,
-0.3708271086,
-0.1677887738,
0.1889812499,
-0.2670776546,
0.1175100952,
0.2422826439,
0.2049198002,
0.2456113845,
-0.2822862864,
0.3716868162,
0.2165392041,
0.0090610497,
-0.1876171529,
-0.3382448256
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @lhoestq Sadly, from Python 3.7 onwards `torch.utils.data.Dataset` doesn't support the virtual subclass mechanism due to `typing.Generic` type no longer having `abc.ABCMeta` as its metaclass.
With that in mind, another option is to remove a direct type check (`isinstance(dataset, torch.utils.data.Dataset)`) in `deepspeed.initalize` and to rewrite the checks in a manner similar to `torch.utils.data.DataLoader` ([link](https://github.com/pytorch/pytorch/blob/b80c6f863f2327c712c478f67c248b94d66b65ac/torch/utils/data/dataloader.py#L197-L239)). This is exactly why the `DataLoader` works with arbitrary objects that provide `__getitem__` and `__len__` (and in our case, the `ArrowDataset`). By doing so, their code wouldn't be any stricter in comparison to the `DataLoader`.
So if you agree, I can open an issue in their repo and fix this if they like the idea. | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 108 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
@lhoestq Sadly, from Python 3.7 onwards `torch.utils.data.Dataset` doesn't support the virtual subclass mechanism due to `typing.Generic` type no longer having `abc.ABCMeta` as its metaclass.
With that in mind, another option is to remove a direct type check (`isinstance(dataset, torch.utils.data.Dataset)`) in `deepspeed.initalize` and to rewrite the checks in a manner similar to `torch.utils.data.DataLoader` ([link](https://github.com/pytorch/pytorch/blob/b80c6f863f2327c712c478f67c248b94d66b65ac/torch/utils/data/dataloader.py#L197-L239)). This is exactly why the `DataLoader` works with arbitrary objects that provide `__getitem__` and `__len__` (and in our case, the `ArrowDataset`). By doing so, their code wouldn't be any stricter in comparison to the `DataLoader`.
So if you agree, I can open an issue in their repo and fix this if they like the idea. | [
-0.1920575798,
-0.2704024911,
0.0988815427,
0.3232179284,
0.2382786423,
0.1883172244,
-0.0456599332,
0.36336869,
-0.1526026875,
-0.229176119,
-0.2917282581,
0.392419517,
-0.2503359616,
-0.1537751704,
0.1516398787,
-0.2407063842,
0.1811587662,
0.0032428373,
-0.269872725,
-0.199164629,
-0.1094513237,
-0.1029924303,
0.0290849209,
0.0508620925,
0.0944085568,
0.1040173545,
0.0816431791,
0.180815652,
-0.1128339991,
-0.3632009625,
0.3348354697,
0.0631518438,
0.5683202744,
0.3380849361,
-0.0001285924,
0.2495382726,
0.1516093165,
-0.0954125449,
-0.048618108,
0.0058682924,
-0.031099176,
-0.1078799888,
0.253795892,
-0.079368934,
-0.2585175037,
-0.6241518259,
-0.1227699295,
-0.5026622415,
0.0664019212,
0.4283711016,
0.0463511944,
0.3282434344,
0.012055615,
0.0952221006,
0.2861973047,
-0.0377572328,
-0.1647086442,
0.1939542741,
0.0586130619,
0.1633570343,
-0.1833062768,
0.0865228549,
-0.1490783393,
0.0236565694,
0.468111068,
-0.2537770271,
-0.3934954703,
-0.1979158968,
-0.1612958759,
0.5067215562,
0.2559038997,
-0.3469007909,
-0.224012211,
0.0779632106,
-0.0618264526,
-0.1476532966,
-0.2178596705,
0.1044943482,
-0.0763133764,
0.0751041621,
0.0757468194,
0.0165289249,
-0.1876957715,
0.101066269,
0.1476613581,
0.1680387259,
0.1117823571,
0.1688790172,
0.1994537115,
-0.3436611295,
0.3780581355,
-0.2171821743,
0.0021821919,
-0.1452049762,
-0.10317792,
-0.1081251577,
-0.3531706035,
-0.1528616101,
0.3830358386,
0.1301050484,
0.345394969,
0.3318165541,
-0.227763027,
0.0814988092,
-0.0249897446,
-0.1177565828,
0.1623562276,
0.2724096477,
0.0154547058,
-0.1962263733,
0.0820427686,
0.2925752401,
-0.1423641443,
-0.3170525432,
0.1186281666,
0.0623505712,
-0.1232673302,
-0.1359725595,
-0.1813090146,
-0.1504852027,
-0.2349579185,
0.0214678627,
0.1157316491,
0.1644119322,
-0.0010169542,
0.218442589,
0.3691661358,
0.5446548462,
-0.2553103268,
-0.1770914346,
0.0780243427,
0.1107358783,
-0.0750111416,
-0.2217588276,
0.0215197951,
-0.1792357713,
0.0170283094,
-0.0673138872,
-0.1304965317,
0.3081124723,
0.2849659622,
-0.1399291009,
0.264092356,
0.0662935749,
-0.084204033,
0.0411606804,
0.3640844822,
0.4290800989,
-0.325301528,
0.2448958755,
-0.336720258,
-0.1767986864,
-0.1608816236,
0.0041707088,
0.1324419826,
-0.3356069922,
-0.3940815926,
0.1987403184,
0.0049036411,
0.0119571239,
0.0823147967,
-0.5586113334,
-0.2367928177,
-0.1953953356,
0.2141402215,
0.2105926871,
-0.4652600884,
-0.1148304194,
-0.0323482044,
-0.1110007092,
0.1935071647,
0.3073974252,
-0.2178397775,
-0.0256790332,
-0.3970096409,
-0.0204565469,
0.5086791515,
-0.2867497802,
0.0247856472,
0.1531433016,
0.1048126593,
-0.0957697257,
0.1215049252,
0.046464324,
-0.0526720211,
-0.1397289634,
0.1875390708,
0.1678766608,
-0.1229541153,
-0.272919029,
-0.106838569,
-0.2577286661,
0.3619751036,
-0.0371052735,
0.1300511807,
0.2110430747,
-0.1213669106,
-0.2831215858,
0.2862467468,
-0.0242851004,
0.1068463996,
0.1502740085,
-0.2012931257,
0.1783108711,
0.0183902327,
0.023305757,
0.0052241944,
0.1541561931,
0.0099738473,
0.0297071654,
-0.0348643884,
0.0375262387,
-0.1254972816,
0.1646586955,
-0.035510011,
0.0571014546,
-0.0778035223,
-0.0694771409,
-0.2363842428,
-0.2742440701,
-0.1225568727,
0.0787644982,
-0.4409389794,
0.1783936769,
-0.5549846888,
0.1552928984,
0.171251893,
0.1183065027,
-0.0533447824,
0.2489912063,
0.0549136326,
-0.0293418579,
-0.1652686298,
0.1796413362,
0.1238951311,
-0.0634167641,
0.2238180637,
0.2895558178,
0.0666511506,
-0.8759515882,
0.338619113,
0.4776408076,
0.1758343577,
-0.0606289394,
-0.0306878332,
0.6746484637,
0.2699238658,
0.2855539918,
-0.0329920761,
-0.0099478494,
0.0626340508,
0.2108588666,
-0.2279219329,
0.0115737459,
-0.1417209953,
0.1783376634,
0.2537430823,
0.038324818,
-0.2435817569,
0.0231188294,
0.0286006164,
-0.10752929,
0.1185364127,
0.3567154109,
-0.5336503386,
-0.0171269123,
0.2257865816,
-0.1542962641,
0.2203962356,
0.0797829404,
0.248636052,
-0.057324484,
-0.1059991419,
0.0514931194,
0.3088961542,
0.0781626031,
0.3587369621,
-0.0323417,
0.0559456348,
-0.0559261888,
-0.3572991192,
0.0482363999,
-0.1054939479,
-0.0915641338,
-0.5114278793,
0.2086583078,
-0.4489865601,
0.0558846518,
-0.3178323209,
-0.1146087945,
-0.0138480524,
-0.1688976735,
-0.1546976566,
0.019716179,
0.1207129285,
0.1362331063,
-0.4001927972,
-0.1381531954,
0.2074005455,
-0.4670455158,
0.0483381413,
-0.128605783,
-0.239218533,
-0.1104202792,
0.1444948912,
-0.1327436566,
0.2613071203,
0.2039717883,
0.0211456381,
-0.4411427081,
-0.1653217077,
0.0843042657,
-0.1655035615,
0.0724383444,
0.2261061221,
0.07665921,
0.3106868267,
-0.0076398221,
0.0699216947,
-0.0379851535,
-0.0956489071,
0.1708254963,
-0.3793531656,
0.2229392081,
0.371114552,
-0.1360008717,
-0.3164052963,
-0.2379696667,
-0.3310388625,
0.0463844426,
0.1217816472,
-0.008948911,
0.3633456528,
0.1398112476,
0.2525962889,
0.0753095374,
-0.0746524557,
-0.0394739993,
0.4306190312,
0.0210849028,
-0.3091744781,
-0.1776057482,
-0.354142338,
0.1667935401,
0.3370669484,
-0.3112228513,
0.0742642805,
-0.2507445514,
0.3438513279,
0.0475704558,
-0.0304727294,
0.3099017739,
-0.1462944299,
0.0725222081,
-0.2030640095,
-0.1782545745,
-0.0180774778,
-0.2516230941,
0.3121643066,
0.3920452297,
0.4929166734,
-0.1153865084,
1.0432754755,
-0.1220423728,
-0.5147121549,
0.4142386615,
-0.1147441491,
0.1429580301,
-0.1226014122,
-0.2998678088,
-0.0853664055,
-0.290165633,
0.2939032912,
0.0313189067,
-0.1601835489,
-0.2480983883,
0.1413032562,
0.185430795,
-0.0607377328,
-0.1736499816,
0.3794941902,
-0.8608568311,
-0.0809376985,
-0.0547404066,
0.1458548754,
-0.3503080606,
-0.04429527,
0.0788314193,
0.2806055844,
0.1299969107,
0.1442872286,
-0.2763812244,
0.1273887604,
-0.1922661215,
0.492819488,
0.0262336489,
0.6061601639,
0.1682635397,
-0.2415482849,
-0.0266087744,
-0.0479808711,
0.3368050754,
-0.1201387793,
-0.0284863003,
0.1070725694,
-0.1537740678,
-0.5539864302,
-0.0416316092,
-0.0091987662,
0.0008518627,
-0.0880938545,
-0.0115806367,
-0.2062878162,
-0.349507153,
-0.0042239181,
-0.0204432085,
-0.0742840767,
0.2395646721,
-0.0618916936,
-0.175676465,
0.015379874,
-0.0085254367,
0.1251471639,
-0.0059991619,
-0.1849315166,
-0.1844236106,
-0.4665316045,
-0.0728021637,
0.3193196356,
-0.1954095662,
0.2066608071,
-0.0913768932,
-0.0270612035,
-0.1993327141,
0.3776907027,
0.3188765049,
0.4460637569,
-0.195857957,
-0.3145861924,
0.108774431,
0.357434392,
0.3197105825,
0.1772995144,
-0.1695220619,
0.2552002668,
0.1032039002,
-0.165640071,
-0.3990432322,
0.1485096067,
0.3337714672,
-0.0139878476,
-0.3849737346,
-0.5564724803,
0.753857553,
0.3035255671,
0.1560623795,
0.3382980525,
0.2668631375,
-0.2794844508,
0.5248181224,
0.4079273641,
1.0512199402,
-0.0509788468,
0.3578881025,
0.0595654473,
-0.1912045628,
0.1738313437,
-0.0342134349,
0.0107818982,
-0.4742812216,
-0.1591960937,
-0.1777701378,
-0.1990581453,
0.080750905,
0.0677637383,
0.3001704216,
0.1468987465,
-0.1568984985,
0.1233605221,
0.1443849951,
0.1370035857,
-0.2108579427,
-0.2943648994,
0.0387035683,
0.0807716548,
-0.1526234895,
0.0323703066,
0.0839411169,
-0.2476135343,
-0.1776065528,
-0.0623994619,
-0.1743372232,
0.0983656496,
-0.3862041831,
0.2085451484,
-0.0430510007,
-0.6213807464,
0.3718840182,
0.2089667767,
0.3346464038,
-0.207217142,
-0.1145252958,
0.0898870826,
0.4293411672,
-0.0604891181,
-0.0188371744,
-0.1988706589,
0.4383513331,
0.1158379167,
0.1028566211,
-0.004148033,
0.0040066894,
-0.3716756999,
-0.1788452566,
-0.1418670565,
0.4884430468,
-0.3600061238,
-0.3033033609,
0.0732415318,
-0.1057724506,
-0.0269546695,
-0.0135334907,
0.0660571754,
-0.0794529617,
-0.0298246648,
0.2205513418,
-0.3070404232,
0.1049225479,
0.3794660866,
0.2592765689,
0.2761075199,
0.4509204626,
0.1658734232,
-0.0842059553,
-0.0840315819,
0.2752795219,
0.9381100535,
-0.2417881042,
0.1131499782,
-0.0707231537,
-0.1823949367,
0.100925751,
-0.1334838122,
0.105553098,
0.0117175421,
-0.1784545779,
-0.200799793,
-0.473012507,
0.1066849381,
-0.4885846376,
0.2522221208,
-0.1127747819,
-0.0003832429,
-0.2478295267,
0.0050856997,
-0.1294638216,
0.1128218919,
0.2081627697,
0.0766923651,
-0.1583956331,
0.1341679394,
-0.0013007933,
0.1834421009,
-0.037318483,
0.1008871421,
-0.2249793559,
-0.0719660223,
-0.2094804943,
0.2116008103,
0.0788346156,
-0.0487045236,
0.1003224999,
-0.2600997686,
-0.2248565406,
-0.0455037914,
0.1009885967,
0.0768970773,
-0.0250031184,
0.3361884356,
0.397480011,
-0.0176141877,
-0.2065618038,
0.0856436715,
0.2487571537,
0.4111220539,
-0.0284356084,
0.0919957384,
-0.1686860025,
-0.2521202266,
-0.3187126517,
0.2463507801,
0.4437051415,
0.0474104285,
0.2199504673,
-0.0745142102,
0.0695229694,
-0.3206497431,
0.2149879336,
0.4866546392,
-0.057818763,
-0.0545588024,
-0.011421348,
-0.0757068768,
-0.270547241,
-0.0455033742,
-0.2741253972,
-0.3820185065,
0.0093017993,
0.0925432891,
0.1122254655,
0.5620797276,
-0.0893051624,
-0.2566854656,
0.0706408024,
-0.2954812944,
-0.0283846501,
0.457387656,
0.1571799219,
0.0178326722,
0.4557400644,
0.1562420577,
0.3069687784,
0.2131176591,
0.3235087991,
0.8402162194,
0.5083609223,
0.0241860878,
0.4163287878,
-0.4468281269,
-0.1702665091,
0.376199007,
0.2840807438,
0.1153380424,
0.1381603926,
0.4704504013,
-0.041248478,
-0.4836515784,
0.0164680183,
-0.014305138,
0.0409529135,
-0.3381248415,
-0.3427489996,
-0.0142063713,
-0.4155671597,
-0.2136502415,
-0.3284616768,
-0.1840656549,
-0.0310500059,
0.1535820365,
-0.0573645458,
-0.2048218697,
0.0162402987,
0.1845859736,
-0.1490477771,
-0.0861730725,
0.0984740406,
-0.0619471706,
-0.0533340313,
0.084401615,
0.1812230647,
0.2301817983,
0.1560849696,
-0.3443410993,
-0.0796006694,
0.3975013196,
-0.1332998425,
0.2858161032,
-0.0066147638,
0.0329288952,
-0.0504835248,
0.3187769651,
-0.0040305406,
0.0654800832,
0.0210265089,
-0.0072603608,
0.0509192869,
-0.0689640343,
0.5326979756,
0.1324303746,
0.0325451456,
-0.1482273489,
0.0540763102,
-0.3688841462,
-0.1557071656,
0.6477060914,
-0.1662310213,
0.1110666171,
0.0502602458,
-0.0144341132,
-0.0233092569,
0.3688513339,
0.3647026718,
0.0189683493,
-0.346632719,
0.0738323778,
-0.3001278639,
0.0229693018,
-0.0210431051,
0.0045118397,
0.0339847095,
0.0613772608,
0.5213208199,
0.0317593478,
-0.0474657603,
0.0604747608,
0.1181070507,
0.387195766,
-0.0312983841,
-0.2424383312,
-0.1258313358,
0.3430367708,
-0.1222836077,
-0.3957669735,
-0.0955140218,
0.1792184561,
-0.0882430896,
0.0777845234,
-0.3348727226,
0.6279919147,
0.002823839,
0.396513164,
0.0139708566,
0.4773536921,
-0.1456068456,
-0.0347252972,
0.0490613393,
-0.0706803575,
-0.4631294608,
0.2110555172,
-0.1499648541,
0.3279793262,
-0.0359973498,
-0.1442196965,
-0.1181406677,
0.1551755518,
-0.1119901091,
-0.4463452101,
-0.3844428062,
0.5214523673,
-0.3229981065,
-0.0472746082,
0.1672799736,
0.4711970091,
0.1661393046,
0.2436235398,
-0.2501744032,
-0.216193065,
0.5785570145,
-0.0363399684,
-0.1052247435,
0.0236456953,
-0.0473429188,
0.2287591845,
0.191190213,
-0.3108549714,
-0.1146499142,
0.1373115629,
-0.2019243091,
0.1190904453,
0.1711319387,
0.2146116942,
0.2068582624,
-0.3751350939,
0.4397038817,
0.1238741651,
0.0825855434,
-0.2764617801,
-0.3310404122
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | That makes sense ! Feel free to open an issue on their repo and discuss this idea | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 17 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
That makes sense ! Feel free to open an issue on their repo and discuss this idea | [
-0.2620017529,
-0.3059776723,
0.0482734777,
0.3386889994,
0.1174888909,
0.2266670763,
-0.0971869156,
0.3648380339,
-0.1662657112,
-0.2185194641,
-0.3497871161,
0.3944827914,
-0.2521584332,
-0.0014387334,
0.1679954827,
-0.2934632897,
0.2071099728,
0.0787693486,
-0.2426628768,
-0.2180522978,
-0.1317136437,
-0.0721177757,
0.0561505891,
0.109901607,
0.0453759022,
0.0387692563,
0.0631338954,
0.1353648901,
-0.1149804741,
-0.3563358188,
0.2166968882,
0.0383350365,
0.5877936482,
0.2521916628,
-0.0001278631,
0.1164886057,
0.0586812235,
-0.1147669107,
0.1068664864,
-0.0929905474,
-0.1743740737,
-0.0208213553,
0.2010276914,
-0.1319154799,
-0.3075418174,
-0.5764232278,
-0.0690183938,
-0.3266128302,
0.1039488092,
0.5637230873,
0.0582139045,
0.2589322925,
0.0555239804,
0.0262064654,
0.3165858388,
-0.1475577652,
-0.1901792437,
0.0691052005,
-0.0712912604,
0.1284111142,
-0.1900318116,
0.1756014526,
-0.1578794122,
0.0448203385,
0.3596788943,
-0.3286313415,
-0.3591730297,
-0.1928060651,
-0.0682305321,
0.5270512104,
0.2203394622,
-0.213513419,
-0.038955301,
0.1802362353,
-0.0732753798,
-0.1967220008,
-0.3787534237,
0.1982637942,
-0.0162512735,
0.1270778924,
-0.0345080122,
-0.2056982368,
-0.1423497051,
0.0715839118,
0.1724095494,
0.3733925223,
0.0766008347,
0.1745888293,
0.2233615816,
-0.3262198269,
0.4041499197,
-0.2009279281,
0.0032961485,
-0.1929718256,
-0.1247140467,
-0.032815326,
-0.3565467298,
-0.0698654577,
0.4570574462,
0.1322320104,
0.2172507495,
0.3089170456,
-0.1965117604,
0.0849978104,
-0.167461887,
-0.2068860233,
0.1313790083,
0.2410634458,
0.0171280354,
-0.2703808248,
-0.0161323994,
0.2712001204,
-0.1041058302,
-0.3959655762,
0.0039963429,
0.0003853232,
-0.1091184244,
-0.2102987915,
-0.1964521408,
-0.2079261243,
-0.2684627175,
-0.0502487682,
0.0188780669,
0.2163887918,
-0.0120289195,
0.0506807379,
0.2428292185,
0.6414880753,
-0.2044617385,
-0.0972007886,
0.0029478644,
0.0924842581,
-0.010186892,
-0.1769013107,
-0.0899687037,
-0.1499867439,
0.1072870046,
-0.031997975,
-0.2831276953,
0.1549774706,
0.3588210642,
-0.0977347493,
0.2597133219,
0.0583751872,
0.0769044012,
0.0361858383,
0.290176779,
0.4265044332,
-0.3359182179,
0.266028136,
-0.5100520849,
-0.1835342348,
-0.1684627384,
0.042454876,
0.1579410881,
-0.3772466481,
-0.4059724212,
0.3280165195,
-0.0173316877,
0.1169558689,
0.0617809445,
-0.4518920183,
-0.3373081684,
-0.1928305328,
0.1911066025,
0.2245468944,
-0.3925149739,
-0.129161641,
0.1234333962,
-0.1684449315,
0.2170877159,
0.3301726878,
-0.215997234,
0.0313050039,
-0.4144068062,
-0.0111344242,
0.629561305,
-0.2943708003,
0.1210269853,
0.0977080911,
0.1029668227,
-0.2821546793,
0.1250988394,
-0.019588165,
-0.1065175757,
-0.037088383,
0.1584385931,
0.226947844,
-0.1056131795,
-0.1747417003,
-0.1187011227,
-0.3208870292,
0.4772759676,
-0.0665616319,
0.2013026029,
0.2817780375,
-0.1068626717,
-0.2452244908,
0.3179293871,
-0.0725183338,
0.1154311374,
0.2461643666,
-0.2807467878,
0.0252962057,
-0.0772581473,
0.1072369665,
0.130611971,
-0.0304073412,
0.0351779722,
0.0028213183,
0.0903307274,
0.0697007999,
-0.2287646532,
0.1778739542,
-0.1092271507,
0.044742737,
-0.0674026161,
-0.0622881465,
-0.1602267772,
-0.1794357449,
-0.0604319833,
0.183125779,
-0.3872933984,
0.1212606579,
-0.5793858767,
0.2193062007,
0.0925743356,
0.1212816089,
0.0703063607,
0.2091720253,
0.1279127449,
-0.0046754717,
-0.1303330064,
0.1874115616,
-0.0221341029,
0.0734140724,
0.3958807588,
0.3856072724,
0.0828465298,
-1.0582393408,
0.3952002525,
0.4471332431,
0.1119965687,
-0.0961245745,
-0.0695654154,
0.6733708978,
0.1918670535,
0.2059759796,
-0.0288746245,
-0.0767914206,
0.1104536355,
0.1275684088,
-0.2036572695,
0.0659689158,
-0.0860862061,
-0.0166579261,
0.3008365333,
-0.0184974987,
-0.3902417421,
-0.0255355015,
0.1084869727,
0.0096155815,
0.0751611218,
0.345094502,
-0.5225222111,
-0.1504496187,
0.2817339599,
-0.3142382205,
0.1200882569,
0.1677170694,
0.2351464331,
0.0198724251,
-0.0947348699,
-0.0013716272,
0.2785582542,
-0.0029330484,
0.4571767151,
0.014075648,
0.0845481381,
-0.0685099214,
-0.3553756475,
0.0135917235,
-0.159493506,
-0.0283023771,
-0.4566037953,
0.1471642703,
-0.4094292223,
-0.1325121671,
-0.2963462174,
-0.0165242031,
0.0800619349,
-0.0948296338,
-0.1525071412,
-0.0411936343,
0.2538252771,
0.0888529792,
-0.4279691279,
-0.2591482103,
0.2284208685,
-0.2501128912,
-0.0765269399,
-0.1794053912,
-0.1035006046,
-0.0624711215,
0.09335199,
0.0121557154,
0.2956860363,
0.1202920005,
0.1410050094,
-0.4283613265,
-0.1182046458,
0.0054060719,
-0.1314726919,
0.0446435809,
0.1953772902,
0.1535256207,
0.1918289065,
0.0539569668,
0.0574833378,
0.0092917662,
-0.0366963521,
0.1131214499,
-0.4322035909,
0.1673467308,
0.4726242721,
-0.1572844982,
-0.3136515617,
-0.2182982862,
-0.3373823464,
0.0825213864,
0.141890645,
-0.1249805167,
0.3699385822,
0.149887383,
0.1845363379,
-0.017783897,
-0.0911418274,
-0.0760117769,
0.3449491262,
-0.063673161,
-0.297172606,
-0.1309770346,
-0.2379547209,
0.1214395165,
0.2287799716,
-0.3549236655,
0.1684112549,
-0.1870062649,
0.3227963448,
0.0330061726,
-0.0170315169,
0.3250392079,
-0.1784802675,
0.1134303659,
-0.1828920692,
-0.2321368754,
-0.010938311,
-0.1593891531,
0.3865181506,
0.4134480953,
0.4659545124,
-0.2001303732,
0.9793555737,
-0.0141025931,
-0.3777908683,
0.5141610503,
-0.1381686032,
0.108369112,
-0.1941892505,
-0.2245257646,
-0.0368072875,
-0.1004951075,
0.3606391549,
0.0945611745,
-0.1277507693,
-0.1838702559,
0.1019634008,
0.1188516244,
-0.1341589987,
-0.0463944487,
0.2515120208,
-0.8417857289,
-0.1052170619,
0.015522805,
-0.0152480882,
-0.2573598027,
-0.0736725628,
0.0508032925,
0.2974080741,
0.222778827,
0.211764425,
-0.4028937221,
0.1966191381,
-0.2293698341,
0.4388888776,
-0.081273213,
0.4864447117,
0.097540766,
-0.0795007795,
0.0515803844,
-0.064575769,
0.3845903575,
-0.1764781475,
-0.1200193763,
0.0444982946,
-0.0103807952,
-0.43254143,
0.0031333365,
0.0112127988,
-0.0199566223,
-0.0984149203,
0.1689682305,
-0.1514189094,
-0.3656143248,
0.0058573782,
0.0054318109,
-0.0978403538,
0.3364621699,
0.0604639091,
-0.260717988,
0.0461717993,
0.0432054587,
-0.0223429985,
-0.0855614692,
-0.1329710931,
-0.2263629735,
-0.4594125152,
0.0577055402,
0.2551598549,
-0.2010527104,
0.2151522934,
-0.1025257632,
-0.0914754793,
-0.2516610324,
0.3307197392,
0.2434744537,
0.3105362356,
-0.2324685901,
-0.1777085513,
0.0115961321,
0.3291950822,
0.3991323709,
0.1161221042,
-0.0486038439,
0.2798426151,
0.072690405,
-0.1082514375,
-0.3122853339,
0.1556280851,
0.3349762559,
-0.0060934764,
-0.5391888618,
-0.4697952271,
0.7293048501,
0.2588545084,
0.1164350212,
0.1840455383,
0.2263997346,
-0.2593998015,
0.6836550832,
0.247606948,
1.1105140448,
-0.1505963206,
0.3254759312,
-0.0553830415,
-0.3049471378,
0.1974315643,
-0.1390774399,
-0.037284594,
-0.4860218763,
-0.1130751967,
-0.174011305,
-0.2028863281,
0.0212465636,
0.125173077,
0.3290602267,
0.1844540387,
-0.077312775,
-0.0389896519,
0.0793219507,
0.1365743577,
-0.0199589767,
-0.1847101301,
-0.0652615055,
0.1012166515,
-0.2433094084,
0.0594141968,
0.0162274707,
-0.3013004959,
-0.1052427217,
-0.0508494712,
-0.0633060262,
0.129634887,
-0.3991996348,
0.1822523922,
-0.0962810963,
-0.7509376407,
0.2139519751,
0.2963104546,
0.3420211077,
-0.1596007347,
-0.1480834484,
0.1683668494,
0.4576702118,
-0.1613237411,
-0.001321969,
-0.0938169956,
0.2785464823,
0.002078976,
0.0218585953,
0.0619201176,
0.0477989838,
-0.3985951543,
-0.3425132334,
-0.1530278176,
0.4711924195,
-0.2364469916,
-0.5164052844,
0.2092845887,
-0.0526448525,
-0.0617273226,
0.0075550918,
0.1004682034,
-0.0716268271,
0.0738548636,
0.2897488773,
-0.3646853566,
0.0436400063,
0.3805156946,
0.2072926462,
0.3583518863,
0.3787144423,
0.1604646146,
-0.0877012312,
-0.0713326707,
0.2488455921,
0.8871482015,
-0.244599387,
-0.0749845803,
-0.099450998,
-0.0787957683,
0.2101041675,
-0.1447382569,
0.0072235381,
0.0007948961,
-0.0470402017,
-0.1608394384,
-0.3713756204,
0.0323584899,
-0.5008923411,
0.2149920464,
0.0250552204,
-0.0857818127,
-0.3493963778,
0.0549622066,
-0.1430901587,
0.1865428239,
0.2190352827,
0.1205223128,
-0.1012579203,
0.1273958683,
-0.0131588215,
0.1512589455,
0.0032076719,
0.0194387678,
-0.1998086274,
-0.1410712302,
-0.2307724655,
0.2048525214,
0.103601642,
-0.1494741291,
0.0814374834,
-0.2535156608,
-0.2487974465,
0.0392639115,
0.1388668418,
0.1848521233,
0.1014313772,
0.2950353026,
0.3234408498,
-0.062592417,
-0.1849877387,
0.0561651625,
0.3580038249,
0.3486046493,
-0.1593196392,
0.1167337671,
-0.1748819053,
-0.2942558825,
-0.3523997962,
0.1472953558,
0.524092555,
0.0277558975,
0.2010699958,
-0.0655577555,
0.1321327686,
-0.2486329675,
0.2128687203,
0.4067129195,
-0.0934371799,
0.0560361519,
0.0784912184,
-0.0621012785,
-0.3087409437,
-0.0584250204,
-0.206604138,
-0.3107798696,
-0.0911206454,
0.0011049863,
0.1392414868,
0.5642009377,
-0.1139528304,
-0.2999233603,
0.0501894541,
-0.3612249792,
-0.1178286821,
0.4179738462,
0.1900860518,
0.0165005419,
0.3872240782,
0.2478433698,
0.320335418,
0.1747993082,
0.3979457915,
0.8507422805,
0.6488265991,
0.0659124479,
0.4314876497,
-0.3954395652,
-0.3699273169,
0.2533232868,
0.1470923424,
0.1307242662,
0.1713158041,
0.5190115571,
0.136867404,
-0.543613553,
0.0644956604,
0.176017046,
0.0215305127,
-0.432962954,
-0.1627660245,
0.044673495,
-0.3134480417,
-0.1461360902,
-0.3626265526,
-0.1190506592,
-0.0226941314,
0.1918983012,
0.0151508879,
-0.0894165337,
0.1009464338,
0.1629137397,
-0.1449506432,
-0.058366809,
0.1631774902,
-0.1606595069,
-0.0456530303,
0.050352402,
0.1854741424,
0.2472784966,
-0.0190693736,
-0.2948696017,
-0.0716006085,
0.4638658464,
-0.1851459444,
0.3130325973,
-0.049470637,
0.1871950179,
-0.112567842,
0.3059996963,
0.0126174837,
0.0503679849,
0.1502807438,
0.0073727462,
0.0001856919,
-0.0016841656,
0.28256163,
0.0821027681,
0.009857378,
-0.1640132219,
-0.0108399959,
-0.3895701468,
-0.0628781319,
0.6542884707,
-0.2125017941,
0.1270782501,
0.069713302,
0.0010597869,
-0.0440518372,
0.1833191663,
0.3698516488,
0.1064888984,
-0.3608697057,
0.0290927012,
-0.2346724719,
0.0396540053,
0.0235652979,
0.1058870926,
-0.0842463598,
-0.0097634187,
0.3654392958,
0.0080630099,
-0.0615911074,
-0.0478134714,
0.1948834211,
0.5103927851,
0.025161121,
-0.1059496626,
-0.257679224,
0.3504762948,
-0.1483098119,
-0.3171130419,
-0.0563677959,
0.2402729988,
-0.0793897137,
-0.0301050041,
-0.230763644,
0.5451130867,
-0.058687225,
0.3227193356,
-0.0544057228,
0.5014357567,
-0.284473747,
0.1069042832,
0.1247164384,
-0.0837069303,
-0.4017590284,
0.2189140171,
-0.1264357716,
0.2732658684,
0.0107221631,
-0.1001704931,
-0.0257067177,
0.1373888552,
-0.1320916116,
-0.4687431455,
-0.2303670496,
0.4813535511,
-0.2396201044,
-0.1400440484,
0.2907842696,
0.4693763256,
0.2053033859,
0.1607206762,
-0.167655915,
-0.1560053974,
0.5634088516,
0.153796941,
-0.041071821,
0.0822811052,
-0.1121463552,
0.3160586953,
0.0659187064,
-0.3561657965,
-0.1133613512,
0.1487045735,
-0.2926997244,
0.128111735,
0.2271983027,
0.241016224,
0.2620629966,
-0.3164123893,
0.4251031578,
0.219457671,
0.0516382679,
-0.2475767285,
-0.3496404588
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @y-rokutan Hi, now if you install `deepspeed` from master (this feature will be available in the next official release), the code should work without subclassing. Let us know if you still have any issues. | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 34 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
@y-rokutan Hi, now if you install `deepspeed` from master (this feature will be available in the next official release), the code should work without subclassing. Let us know if you still have any issues. | [
-0.2635490298,
-0.3762310743,
0.085872449,
0.3691845834,
0.1816752553,
0.3435536325,
-0.0518242046,
0.4010280073,
-0.1650427282,
-0.2584496439,
-0.3508141637,
0.3204567134,
-0.2445641458,
0.0142730158,
0.1966751069,
-0.3255870044,
0.2107606679,
0.0282449163,
-0.2117950916,
-0.2563451231,
-0.2183754146,
-0.066005744,
0.0091976365,
0.1386983395,
-0.0008856729,
0.0312693156,
0.0924516246,
0.1584642231,
-0.1116144881,
-0.3660577238,
0.2941600084,
0.0659786761,
0.660908103,
0.2473993152,
-0.000130302,
0.1516996473,
0.0485580713,
-0.0997548029,
0.1597803384,
-0.0868280455,
-0.2239151895,
0.0278999489,
0.2070777267,
-0.1289737225,
-0.4146136642,
-0.6126391292,
-0.0347189195,
-0.3231691718,
0.1267072558,
0.4520293176,
0.0357436389,
0.1441906989,
0.0045101354,
0.0439589545,
0.2477653623,
-0.1934700161,
-0.185425818,
0.0936608016,
-0.0743704587,
0.1410135925,
-0.2250965387,
0.0856282189,
-0.1529570669,
0.0256860442,
0.4744637012,
-0.3056494296,
-0.3226051629,
-0.2647329569,
-0.0733930692,
0.5432501435,
0.2157950252,
-0.2298211306,
-0.1046039984,
0.1822218746,
-0.0550586656,
-0.2311101109,
-0.3596682847,
0.2333776504,
0.0170588791,
0.130522728,
0.0112074707,
-0.1299146116,
-0.1863082349,
0.0875597969,
0.2806097865,
0.3632273078,
0.0851095989,
0.1512034684,
0.2155206352,
-0.2419123501,
0.3436706066,
-0.2262788713,
0.0070464951,
-0.1812537313,
-0.1346874982,
-0.0533127785,
-0.3148995936,
-0.0849066526,
0.378130734,
0.1288090944,
0.1740026623,
0.3770180345,
-0.127242282,
0.0730316713,
-0.1347579509,
-0.1246929318,
0.2171280384,
0.2373772413,
0.0385419987,
-0.2505723238,
-0.0205382872,
0.2715170681,
-0.1502737403,
-0.2897742987,
-0.0468761809,
0.0514923371,
-0.1515408754,
-0.176536873,
-0.1665543318,
-0.1864982694,
-0.3177582622,
-0.0514318794,
0.0475088917,
0.2343058586,
0.0550108291,
0.0473901257,
0.2683136761,
0.6924920678,
-0.2033871263,
-0.1185872778,
0.0322334133,
0.1174830794,
-0.0959678218,
-0.1980101913,
-0.0800253451,
-0.1564628631,
0.0190546755,
0.0263230838,
-0.3015543222,
0.1301092952,
0.3758251369,
-0.0996757075,
0.2288137376,
0.0459039882,
0.0318005383,
0.073763907,
0.378996551,
0.4413584471,
-0.3008754551,
0.2715043724,
-0.4328230917,
-0.2426428944,
-0.1156902015,
-0.0130986981,
0.1889715046,
-0.2756025195,
-0.4165626466,
0.3720363677,
0.0163511019,
0.1343854517,
0.0108786365,
-0.4601106644,
-0.4295719862,
-0.1702983528,
0.2251150906,
0.1835810691,
-0.4052044153,
-0.1438091248,
0.0620039552,
-0.1478807628,
0.2841462195,
0.2974843681,
-0.1768796146,
0.0165127888,
-0.3843536079,
-0.0178854112,
0.5604595542,
-0.2282062918,
0.1074001566,
0.1166638881,
0.1041467115,
-0.2193724811,
0.1730725765,
0.0408263765,
-0.0429625809,
-0.0621206686,
0.1227763742,
0.2229842544,
-0.1218197569,
-0.2111683339,
-0.104038693,
-0.2291266322,
0.4387815893,
-0.0603314117,
0.2165647894,
0.3418135941,
-0.1543977261,
-0.2581010163,
0.3750075102,
-0.0382851362,
0.1416976899,
0.2198248357,
-0.2698798776,
0.1213156357,
-0.0675662309,
0.0889883861,
0.20086281,
0.0510115363,
0.0607856773,
0.0659813806,
0.1656823903,
0.0506543294,
-0.1664160788,
0.1074290574,
-0.1352769136,
0.0021150967,
-0.1062232628,
-0.0797213614,
-0.2741824687,
-0.2691039443,
-0.0904031247,
0.234027788,
-0.4500226676,
0.1428388655,
-0.5754762888,
0.1612209082,
0.1305392385,
0.1429699361,
0.0562031865,
0.1802557409,
0.0934508741,
-0.0646033436,
-0.1435523182,
0.2007335126,
0.0485011265,
-0.0976663381,
0.3783786893,
0.2502433062,
0.0699367449,
-1.0497535467,
0.3432000279,
0.4532096088,
0.0923510268,
-0.1317551732,
-0.0381978825,
0.6848374605,
0.2695319057,
0.2214424908,
-0.0369540788,
-0.0438537747,
0.0043837535,
0.1337313503,
-0.2001353204,
0.0169994161,
-0.1230773181,
-0.0709822401,
0.26629439,
-0.0146303708,
-0.3610472381,
-0.0365436003,
0.0466164351,
-0.0357977636,
0.1359191537,
0.3326889575,
-0.5043028593,
-0.0583157986,
0.2491914481,
-0.1609595269,
0.124128066,
0.1438812912,
0.2088501304,
0.0072890641,
-0.1011402309,
0.0282053631,
0.2873183489,
0.0236929301,
0.3778467178,
-0.0637540594,
-0.0188887939,
-0.0708829984,
-0.3746266067,
0.0985848233,
-0.1449113786,
-0.06932991,
-0.4895896316,
0.1309630871,
-0.4484528899,
-0.0711473674,
-0.2224131376,
-0.0177481286,
0.0441774167,
-0.0495124906,
-0.1779142171,
-0.0210452881,
0.2825017273,
0.1720361561,
-0.4338255823,
-0.2607578039,
0.20051305,
-0.2989144921,
0.0215103924,
-0.1439201385,
-0.1155606061,
-0.0867559314,
0.1291494519,
-0.0038977491,
0.260984391,
0.159406364,
0.0566517971,
-0.2899436355,
-0.1649594158,
-0.0274353921,
-0.2137407511,
0.1000062227,
0.1556866318,
0.1725541502,
0.1556281149,
0.0278072003,
0.1050843075,
0.0160125736,
-0.0390336104,
0.0990425795,
-0.3585255742,
0.1676232666,
0.4255627096,
-0.1689361781,
-0.2158082873,
-0.2354132831,
-0.3735866845,
0.030824272,
0.1254537106,
-0.132686168,
0.2924016416,
0.0698177069,
0.2185608298,
0.004667257,
-0.0764476135,
-0.074327834,
0.3837733269,
-0.0212695375,
-0.3230699301,
-0.1505276859,
-0.2576109767,
0.1067478806,
0.1544962078,
-0.3151590824,
0.1952719092,
-0.2176486999,
0.2480794042,
0.0706431717,
-0.1014247388,
0.3441770375,
-0.1542803049,
0.1413187236,
-0.1726018786,
-0.2886224687,
0.0019522298,
-0.1891166717,
0.3890923858,
0.3815205097,
0.569965899,
-0.1861282736,
0.9883282781,
-0.0373089202,
-0.331283778,
0.5028916597,
-0.0849157274,
0.0929303691,
-0.1694966853,
-0.3107756376,
-0.0327686258,
-0.1209058166,
0.3107081056,
0.113940753,
-0.1250901967,
-0.1988016963,
0.113459006,
0.1678773314,
-0.018129563,
-0.051773645,
0.2330697328,
-0.8297377825,
-0.0912512764,
-0.0216025878,
0.1228052154,
-0.2273716629,
-0.0501350276,
0.0121531654,
0.3278549016,
0.1979078352,
0.2163317353,
-0.3806886673,
0.1577456146,
-0.2193292081,
0.4085029364,
-0.0704609081,
0.4912367463,
0.0933742598,
-0.0949968845,
0.0861581564,
0.0220691413,
0.3633368313,
-0.1793455482,
-0.0308415852,
0.1117617413,
-0.126121521,
-0.4755628109,
-0.0558811724,
0.0296043642,
-0.0462330282,
-0.0690714121,
0.0467013977,
-0.1427494735,
-0.4097146392,
0.0651430711,
-0.1442107111,
-0.0870092288,
0.2494538724,
-0.0412375368,
-0.217896238,
0.0369092822,
0.0778646693,
0.0283410028,
-0.0556216203,
-0.1522569954,
-0.2364593148,
-0.4242435992,
-0.0366364568,
0.3029747903,
-0.2355099916,
0.2133250684,
-0.0416625366,
-0.0484552048,
-0.2323366255,
0.307742238,
0.2700439394,
0.2854972482,
-0.201543197,
-0.1715504676,
0.088080585,
0.3263979852,
0.4192617238,
0.1228458807,
-0.1259829402,
0.2496307492,
0.0854066089,
-0.1699385047,
-0.3876942992,
0.1204574779,
0.3908454478,
0.000513909,
-0.5109207034,
-0.5484150052,
0.7228652835,
0.2101601958,
0.1095936671,
0.181074053,
0.1794042587,
-0.2531597614,
0.6627234817,
0.2255906314,
1.1227080822,
-0.156725809,
0.3088032305,
-0.0989399552,
-0.2254080176,
0.1381103545,
-0.0955762863,
0.0803965479,
-0.4583059251,
-0.2231974453,
-0.216809988,
-0.1797728688,
0.0752977952,
0.1701574177,
0.353069663,
0.1755509824,
-0.112994723,
0.0249554794,
0.1306479126,
0.1007461697,
-0.0128153134,
-0.2109474093,
-0.0458245613,
0.0714129955,
-0.1820752323,
0.0481948555,
0.0235541463,
-0.3256039917,
-0.0910584778,
-0.0490230992,
-0.0971547589,
0.1439703256,
-0.3985097408,
0.2058294713,
-0.1375066787,
-0.7237474918,
0.3812142611,
0.3280154169,
0.3723201156,
-0.1627025753,
-0.0940277055,
0.1356171817,
0.390124768,
-0.1575117707,
-0.0386422388,
-0.1192774922,
0.2890609205,
0.0428449959,
0.0100758364,
-0.0111497417,
0.0320057273,
-0.4106138945,
-0.3022832274,
-0.1543991268,
0.4988344908,
-0.2720611095,
-0.4807466269,
0.1492036581,
-0.0385665707,
-0.0865037516,
-0.0084986454,
0.0408655256,
-0.1314419806,
0.0605039783,
0.2716688514,
-0.358628124,
0.03402403,
0.4236022234,
0.2787996829,
0.4550120234,
0.3825230896,
0.2173407823,
-0.0311765224,
-0.0744187981,
0.313380152,
0.9300653934,
-0.1052510366,
-0.0382370688,
-0.0390762053,
-0.1128381118,
0.2114229053,
-0.1719280928,
0.0587478764,
0.0183192771,
-0.0646202415,
-0.1465443224,
-0.3974837363,
0.0350997671,
-0.5616657138,
0.2371180803,
-0.0131259263,
-0.0443717986,
-0.2860126197,
0.1106180176,
-0.1105932742,
0.1045892313,
0.1652838737,
0.1090121269,
-0.0535767302,
0.1778022647,
0.0395169444,
0.1697932035,
-0.0288616717,
0.0214286726,
-0.2437856048,
-0.0856212676,
-0.2043778747,
0.2034529299,
0.1092089564,
-0.0705146492,
0.1099067852,
-0.2208592296,
-0.3213773668,
0.0353785381,
0.1673648208,
0.1290809959,
0.0602772906,
0.3388200402,
0.3320459425,
-0.099220857,
-0.2505177259,
0.0117369331,
0.2476688027,
0.3977491558,
-0.1052654609,
0.0479071364,
-0.1343840063,
-0.2938899994,
-0.3598109484,
0.128237009,
0.4391293824,
0.0138458833,
0.240182057,
-0.1184678674,
0.133988589,
-0.2098092884,
0.2071190625,
0.3725750744,
0.0018702038,
0.0330050252,
-0.0609830879,
-0.0930860341,
-0.3016679287,
-0.0422551259,
-0.1800866723,
-0.3002391458,
-0.0902883857,
0.0289974958,
0.1032246053,
0.5535040498,
-0.1385715604,
-0.2539671957,
0.0602765791,
-0.3215010166,
-0.0014768514,
0.4246537983,
0.1985870302,
0.0489681475,
0.4345268905,
0.2401871681,
0.3080205321,
0.267652452,
0.474352479,
0.8348218799,
0.5884382725,
0.0774727538,
0.3680679798,
-0.4591238201,
-0.2820628881,
0.3882306218,
0.1568261534,
0.079039298,
0.0688010156,
0.5054252744,
0.0001397489,
-0.6188645363,
0.015946921,
0.0685021132,
0.0143840453,
-0.3718110025,
-0.2234377563,
0.0995887816,
-0.2777833641,
-0.1721456647,
-0.3405423462,
-0.1036870033,
-0.0677407905,
0.1796114296,
-0.0009894256,
-0.0781409815,
-0.0416694507,
0.1533588618,
-0.1269314438,
-0.0614898577,
0.1845899522,
-0.2294325233,
-0.0330863111,
0.0950708911,
0.1865214258,
0.1773937345,
0.0341179073,
-0.2639220655,
-0.0837149844,
0.4728595316,
-0.146254912,
0.3952938318,
-0.0573397316,
0.22481592,
-0.0314531177,
0.3200480938,
-0.0349095501,
0.0801533833,
0.0922416076,
0.0229729488,
0.0439744107,
-0.0226469692,
0.3486644626,
0.0821724534,
0.0068172528,
-0.1428257674,
0.0078710755,
-0.3138802946,
-0.0179930013,
0.6848991513,
-0.2469415218,
0.0772481486,
0.0536720157,
-0.0274706967,
-0.0573344566,
0.2777770758,
0.3100699782,
-0.0601118952,
-0.386831224,
-0.0088445628,
-0.2415477186,
0.0332231633,
0.0033745489,
0.1420803219,
-0.0431405157,
-0.037394803,
0.4060944021,
-0.0286311563,
-0.0117790755,
-0.0328299068,
0.1235854998,
0.526784718,
0.0577882007,
-0.0698456392,
-0.2128750831,
0.3947786987,
-0.1954042763,
-0.2832946777,
-0.0827918276,
0.1895260364,
-0.1277543306,
0.1008321568,
-0.2137656212,
0.5065088272,
-0.1021380201,
0.3509515822,
-0.0359174423,
0.5236029029,
-0.25780797,
0.1195465624,
0.1606184095,
-0.0764292106,
-0.4228772223,
0.2357124239,
-0.1327614486,
0.3454508483,
-0.0522754192,
-0.1511161178,
-0.0333354399,
0.1769847572,
-0.0893200934,
-0.4472343028,
-0.2921126485,
0.5438432693,
-0.3005522788,
-0.0901237056,
0.3235525787,
0.4553420842,
0.1936603338,
0.1463962495,
-0.1793060452,
-0.1881176829,
0.5304230452,
0.08597368,
-0.0885764584,
0.0214537643,
-0.0912611634,
0.2373922616,
0.1098614708,
-0.2435685247,
-0.144995153,
0.0951248556,
-0.190358445,
0.046983391,
0.2565310895,
0.2410611808,
0.2134907097,
-0.2993457317,
0.3301890492,
0.1673752666,
0.0171648543,
-0.2032990903,
-0.3716497421
] |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Worth mentioning that any function that expects a `torch..Dataset` (like `torch..DataLoader`) will fail a mypy-esque typecheck if a `datasets.Dataset` is passed, even though it implements the interface correctly (I think). The virtual subclass idea was a good one- I wonder if there's another workaround given the Generic issue. What we're really talking about is something similar to the structural subtyping semantics that `typing.Protocol` defines. If `torch..DataLoader` accepted anything that supports `__getitem__` and `__len__` methods this would be much easier. Not sure if there's a way to do this without the wrapper from the perspective of `datasets`. | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
| 96 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
args=args,
model=model,
model_parameters=[p for p in model.parameters() if p.requires_grad],
training_data=train_ds)
```
but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
Worth mentioning that any function that expects a `torch..Dataset` (like `torch..DataLoader`) will fail a mypy-esque typecheck if a `datasets.Dataset` is passed, even though it implements the interface correctly (I think). The virtual subclass idea was a good one- I wonder if there's another workaround given the Generic issue. What we're really talking about is something similar to the structural subtyping semantics that `typing.Protocol` defines. If `torch..DataLoader` accepted anything that supports `__getitem__` and `__len__` methods this would be much easier. Not sure if there's a way to do this without the wrapper from the perspective of `datasets`. | [
-0.2078216225,
-0.2331487536,
0.1384680122,
0.2725794911,
0.2668263912,
0.1537621319,
-0.0031081163,
0.3240683377,
-0.0748967007,
-0.2203993797,
-0.3576210439,
0.3906596303,
-0.2636039555,
0.1052082479,
0.2797997296,
-0.2113584876,
0.1772635579,
-0.0501310118,
-0.165951252,
-0.1595478654,
-0.1771482229,
-0.1184021756,
0.0547708683,
0.0935722142,
0.1425068825,
0.0650049821,
0.0786018074,
0.2379956096,
-0.1792035848,
-0.2768820822,
0.3760771453,
0.1968695223,
0.4361509979,
0.1904754788,
-0.0001295324,
0.2556095421,
0.1330811232,
-0.1514339298,
-0.0350119099,
0.0231360607,
-0.0956848338,
-0.0058042025,
0.1660962403,
-0.0608774498,
-0.2630536854,
-0.6010503769,
-0.0813810304,
-0.3644054532,
-0.0128701376,
0.358464092,
0.0206216704,
0.3547854424,
0.0011108147,
0.0559760593,
0.2998209,
0.0063134781,
-0.1517213434,
0.0891333893,
-0.1101553738,
0.1564469934,
-0.2003158182,
0.0171441417,
-0.1828865707,
-0.0504501835,
0.4789531529,
-0.2569850981,
-0.4116526246,
-0.1110196561,
-0.1148878932,
0.539031744,
0.1896055043,
-0.3263987005,
-0.295281589,
0.0647178888,
-0.1126727387,
-0.1941777468,
-0.2395133674,
0.0374426022,
0.0168022849,
0.1477459073,
0.118909508,
-0.0822053254,
-0.148433879,
0.1507811546,
0.1586575359,
0.1897278279,
0.0554304235,
0.2007674873,
0.1981997937,
-0.366404742,
0.3242425025,
-0.2328347415,
-0.0055379649,
-0.1253768355,
-0.018496003,
-0.1147721484,
-0.2362644374,
0.0687464029,
0.4641352594,
0.0720359236,
0.1962966472,
0.4362740219,
-0.3657403588,
0.1652646363,
-0.003540202,
-0.1884426326,
0.1268772483,
0.3190461397,
0.013615001,
-0.186561808,
0.1171433777,
0.2503778636,
-0.0632266179,
-0.1424945295,
-0.0214006323,
0.0687722415,
-0.0095406352,
-0.137675643,
-0.1544180363,
-0.2173981667,
-0.2425920367,
0.0071894,
0.1731629074,
0.1989183128,
0.0464286618,
0.2016893178,
0.3246087134,
0.5662383437,
-0.29752478,
-0.1407990605,
0.038650196,
0.0852945745,
-0.0998169929,
-0.2087254524,
-0.0367851891,
-0.1110671312,
-0.1289437264,
0.0083112381,
-0.0774280578,
0.2705900967,
0.2934509218,
0.0112030013,
0.2924000323,
-0.0088665402,
-0.0506426357,
0.0339933708,
0.359298408,
0.3019105196,
-0.3759590983,
0.1356443316,
-0.4547364414,
-0.1987842172,
-0.0828807577,
-0.0187600665,
0.0401502624,
-0.2016353309,
-0.3906704783,
0.2585842311,
-0.0183180328,
-0.0244554207,
0.0184877217,
-0.4866313934,
-0.3768115044,
-0.2238228768,
0.2163504362,
0.1883437485,
-0.4176261127,
-0.181893602,
0.04400713,
-0.1981692761,
0.1914092302,
0.2892554998,
-0.2226308137,
-0.0521310084,
-0.3271152973,
0.0597643517,
0.5643672943,
-0.1906432658,
-0.0303817764,
0.1291261166,
0.1200062931,
-0.0039580427,
0.0622877218,
0.0052821492,
-0.0918733403,
-0.1014155075,
0.2198943794,
0.2000403404,
-0.1793324947,
-0.2974883914,
-0.1309360862,
-0.2400946915,
0.2908290923,
-0.1476477683,
0.1456654519,
0.2855873704,
-0.1942011863,
-0.2734147012,
0.3236292303,
-0.0721279606,
0.1452771872,
0.0780831054,
-0.2897860706,
0.3068273365,
0.0280977096,
-0.0039132535,
0.1166117489,
0.1188357994,
0.0460415632,
0.080118753,
0.0156896133,
-0.1031301916,
-0.1284840554,
0.1592290848,
-0.0084318202,
0.128455475,
-0.0995794982,
0.0432030335,
-0.3955700696,
-0.248241052,
-0.1125765592,
0.080000706,
-0.3220636249,
0.1985421628,
-0.6167336106,
0.1133344993,
0.1474820077,
0.15288122,
-0.0825846717,
0.2855972648,
0.0134974578,
-0.0205441546,
-0.0565256178,
0.2021770328,
0.2115098089,
-0.0618811175,
0.1903974712,
0.3349084854,
0.0072288006,
-0.8401792645,
0.3379889727,
0.4151421785,
0.1432084292,
-0.1016326621,
-0.0548336245,
0.7059512734,
0.2606230676,
0.2426979244,
-0.0817963555,
-0.0120583652,
0.0649007857,
0.1966553628,
-0.3872089982,
-0.0461580642,
-0.2101976275,
0.057300318,
0.2363510132,
0.1334767491,
-0.3134967387,
0.0263525806,
0.1032711118,
-0.1176701561,
0.2139063478,
0.322941035,
-0.3895616829,
0.0043240441,
0.2237345129,
-0.1559785306,
0.1782519817,
0.1281372011,
0.236518681,
-0.0146142747,
-0.1825610995,
0.0960274115,
0.2678771317,
0.1079960838,
0.2084410489,
-0.1348014921,
-0.0106521435,
-0.0330478549,
-0.316788584,
0.1150292009,
-0.2100257128,
-0.2024738938,
-0.6494216919,
0.2454881519,
-0.6444998384,
-0.1679468751,
-0.2117986083,
-0.1283809543,
0.0738043413,
-0.1325406432,
-0.1838202178,
-0.161039114,
0.1574228406,
0.1804307699,
-0.4207698405,
-0.0876197368,
0.1453915387,
-0.3617408872,
0.1635014415,
-0.1736216694,
-0.1349203587,
-0.1402756125,
0.1672247648,
-0.011636937,
0.3143471777,
0.2745059431,
-0.074964948,
-0.2894775271,
-0.2304532379,
0.1569883674,
-0.1682231128,
0.105120942,
0.417994827,
0.1087099761,
0.257650435,
-0.0116584096,
0.1355408132,
0.0952820554,
-0.1142036095,
0.1711759269,
-0.3422294557,
0.1466587335,
0.2856684923,
-0.0005157138,
-0.2711349428,
-0.2474179119,
-0.1315760761,
-0.1056087017,
0.1040345058,
0.105223164,
0.2524413466,
0.077270776,
0.1599099189,
0.0024248462,
-0.1160767376,
-0.1452410221,
0.2762696743,
0.0449745953,
-0.196149826,
-0.2027568221,
-0.3262168765,
0.1203269884,
0.3483854532,
-0.1995396912,
0.1215454713,
-0.0880672336,
0.2964407206,
0.1406214982,
-0.0328141451,
0.2701463699,
-0.0281769689,
0.1190587878,
-0.2390899956,
-0.2776739001,
-0.0470407605,
-0.3374872804,
0.2847623229,
0.5173729062,
0.4786026776,
-0.1577198952,
0.8596715331,
-0.0879078433,
-0.408898741,
0.4252448976,
-0.1249099597,
0.1847854406,
-0.1103778183,
-0.4013189077,
-0.0969167501,
-0.2668889761,
0.2396329343,
0.091408886,
-0.1537973136,
-0.2068273425,
0.1639366597,
0.1523766369,
-0.0264300592,
-0.261315465,
0.4399175048,
-0.867520988,
-0.1050402671,
-0.0578202531,
0.0795483068,
-0.3812009692,
0.0011202202,
0.0686210766,
0.285852313,
0.116615124,
0.1581165493,
-0.3939725757,
0.105940178,
-0.1882929802,
0.4757520854,
0.0191638488,
0.5118654966,
0.0879120603,
-0.172658965,
-0.0696582422,
0.0268168803,
0.2896454632,
-0.2780470848,
-0.0805944353,
0.1641324759,
-0.0390397757,
-0.5347518325,
0.0066224551,
-0.0439321212,
0.1003813148,
-0.0451429263,
0.1103134975,
-0.2395057827,
-0.3378883004,
0.0294973664,
-0.055375509,
-0.0326878391,
0.2306824923,
-0.1315284371,
-0.2091809511,
0.0484419763,
-0.003078528,
0.1165323332,
-0.1095058471,
-0.1023848504,
-0.2505788803,
-0.4138955772,
-0.0436239094,
0.3718595207,
-0.2287891358,
0.2082284093,
-0.0586986877,
-0.0537226386,
-0.2406348884,
0.4764308333,
0.2851334512,
0.3794772029,
-0.3600585759,
-0.3047218025,
0.0356576331,
0.3138696849,
0.4174479842,
0.1876986623,
-0.1444204897,
0.3934048712,
0.1332853884,
-0.211507082,
-0.5201489925,
0.1842912436,
0.3328475356,
-0.0139124747,
-0.4928368032,
-0.6445835829,
0.7689058185,
0.2218128443,
0.0544251539,
0.3121084273,
0.3377507627,
-0.3339826167,
0.6794017553,
0.2577802539,
1.0996054411,
-0.034668155,
0.3274339437,
-0.0318781734,
-0.1232233569,
0.2990595698,
-0.0514366254,
0.0374188647,
-0.3626796007,
-0.1920160502,
-0.2310723215,
-0.1870167553,
-0.0066353395,
0.1129603684,
0.1887162179,
0.1578837335,
-0.2065264732,
0.0865202621,
0.1863580048,
0.1434388906,
-0.1430527866,
-0.3133463562,
-0.0725741982,
0.0737976059,
-0.2018470615,
-0.0247667041,
0.0696132332,
-0.2688631713,
-0.1569670439,
-0.0939248279,
-0.1439600289,
0.0402992815,
-0.4678854644,
0.1700503826,
0.0067250771,
-0.438885659,
0.3773153424,
0.217798546,
0.3210292757,
-0.0840631127,
-0.1062160209,
0.0549591035,
0.3936534226,
-0.0869995505,
-0.0647537857,
-0.1884711832,
0.4313010871,
0.1897946745,
0.0387758799,
-0.1223746091,
0.0134797236,
-0.2651400566,
-0.3395311534,
-0.1420839578,
0.5508431792,
-0.4496558309,
-0.3465374708,
0.0302718598,
0.0008457357,
-0.0114155244,
-0.034391731,
0.0881356895,
-0.0147054857,
0.0936478078,
0.2609140575,
-0.3039740622,
0.0750020221,
0.3815476596,
0.1440955549,
0.341843158,
0.3346380591,
0.1366578043,
-0.085872069,
-0.0354809053,
0.3121764958,
0.993911922,
-0.1061719432,
0.0196710508,
-0.1317870021,
-0.2180091739,
0.0851488188,
-0.2070147991,
0.1507610828,
0.0491244383,
-0.1872909963,
-0.1722064316,
-0.3375899196,
0.255020082,
-0.3870525062,
0.2985133827,
-0.079473637,
0.2165443897,
-0.3035987318,
0.0311466977,
-0.1346674263,
0.0342317373,
0.1797301173,
0.070511803,
-0.0291186385,
0.205908075,
0.0574300401,
0.0696488991,
-0.0349053219,
0.0624162853,
-0.1884784847,
-0.0458089001,
-0.291415751,
0.2247946411,
0.0019303458,
0.0069706189,
0.2205763608,
-0.1755090058,
-0.2088712901,
-0.1003459245,
0.0976728946,
0.0996842906,
0.0047064903,
0.3070245683,
0.3442033827,
0.0926195234,
-0.1428005248,
0.0978468135,
0.33703807,
0.4264217615,
-0.089403823,
0.0438060649,
-0.202993229,
-0.2533399761,
-0.1870264858,
0.3083281219,
0.5461505055,
0.0302509107,
0.1883122921,
0.0196394231,
0.0237199347,
-0.2299457639,
0.2487044185,
0.565882802,
-0.0058658225,
0.0509622246,
-0.0675120801,
-0.1053528637,
-0.2270376384,
-0.0321213417,
-0.0863208622,
-0.3270875216,
-0.013116315,
0.1574243456,
0.0161944535,
0.5776233077,
-0.1346446872,
-0.3196708262,
0.0066967141,
-0.2881910503,
-0.0220316146,
0.5073308945,
0.0964722112,
0.0737788826,
0.3497417867,
0.1650416702,
0.3461247683,
0.2299320102,
0.436855346,
0.7877063751,
0.4616095126,
0.1401690692,
0.4382707179,
-0.5139478445,
-0.1959019303,
0.4214675426,
0.2564809024,
0.2017281204,
0.0750503168,
0.616107285,
-0.06001544,
-0.4812819958,
0.1460745186,
0.1253001541,
0.0005471921,
-0.4632920027,
-0.3377987146,
-0.0295963809,
-0.4231978655,
-0.2846584916,
-0.3085644841,
-0.1266381443,
-0.0241932198,
0.0743195564,
0.0771805346,
-0.1394358724,
-0.0729415789,
0.0746722743,
-0.0849188194,
-0.1124606282,
0.113289848,
-0.1118324697,
-0.0214532781,
0.1088947803,
0.1355240941,
0.2491074055,
0.092375353,
-0.2736177444,
-0.0808618665,
0.3471688032,
-0.1542700529,
0.2459330708,
-0.1530474275,
0.0572595932,
-0.0728864446,
0.3427267075,
-0.063010402,
0.0821188241,
-0.0155275557,
-0.0536867492,
0.0572771765,
-0.0625021011,
0.5547098517,
0.1199889556,
0.0866110325,
-0.1235127747,
0.059316989,
-0.4033989906,
-0.1010095552,
0.6918373704,
-0.0552565604,
0.1558540016,
0.0879932195,
-0.0238863584,
0.0356972814,
0.3571385443,
0.2786397338,
-0.0012064464,
-0.3143781424,
0.0869770646,
-0.2824188173,
0.0191218313,
-0.0538675189,
0.0133892689,
0.0472503789,
0.0194258206,
0.5246508121,
-0.0339058153,
-0.0880303532,
-0.0512896329,
0.17099154,
0.3318525851,
0.0924045742,
-0.2448705435,
-0.174009636,
0.2448078394,
-0.0757260472,
-0.3458244205,
-0.1614001244,
0.3107137382,
-0.119850032,
0.0009034481,
-0.2722067833,
0.4618012309,
-0.1719903201,
0.3024440706,
0.0348051377,
0.5514163375,
-0.2409496903,
-0.0486091524,
0.1155573428,
-0.0889049917,
-0.4955529869,
0.2672635615,
-0.1680184901,
0.2821672261,
-0.0952110067,
-0.1633876264,
-0.1532776803,
0.1078040972,
-0.043883197,
-0.4155340791,
-0.3930428326,
0.558059454,
-0.3865449727,
-0.1510735452,
0.1841353029,
0.5083805919,
0.140949294,
0.2737410963,
-0.1228885129,
-0.2094221562,
0.5849864483,
0.0536791533,
0.0076910136,
-0.0119050452,
-0.1061063409,
0.1365031749,
0.1702828258,
-0.3620129228,
-0.1443609446,
0.1439763159,
-0.2070524991,
0.0495487675,
0.1811148673,
0.2289019227,
0.1970973462,
-0.4207517505,
0.447078377,
0.196485728,
0.0416077115,
-0.1021854579,
-0.3120924234
] |
https://github.com/huggingface/datasets/issues/2162 | visualization for cc100 is broken | This looks like an issue with the cc100 dataset itself but not sure
Did you try loading cc100 on your machine ? | Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
| 22 | visualization for cc100 is broken
Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
This looks like an issue with the cc100 dataset itself but not sure
Did you try loading cc100 on your machine ? | [
-0.5656794906,
-0.2004437,
-0.0850356147,
0.1293198764,
0.2095072567,
-0.0013309878,
0.1641537398,
0.1368133426,
-0.065923512,
0.4231900871,
-0.052365154,
0.2377000004,
0.1289269328,
0.4269972742,
-0.0176099669,
-0.2411685884,
0.053290084,
0.4060421288,
-0.3985905647,
0.0212525502,
0.0434119143,
0.0523336455,
-0.1739804298,
-0.0693606213,
-0.1812585294,
-0.2919966877,
-0.0957442001,
0.1488847435,
-0.2506376505,
-0.4322844446,
0.0609966479,
0.1807222515,
0.1114195511,
0.3614212573,
-0.0000948288,
0.0520825833,
0.3273299634,
0.1721240282,
-0.1750351191,
0.1617922783,
-0.3436122537,
-0.0873224586,
0.2742395103,
-0.0548349358,
-0.1783530265,
0.191107586,
-0.020406561,
-0.0307971258,
0.3275452852,
-0.2472634912,
0.4222187996,
0.2349866182,
0.0398905054,
-0.3050335944,
-0.1605333686,
0.1931784302,
-0.1131921411,
0.1625884324,
0.1607862711,
-0.0157569572,
-0.0894082636,
0.2910954058,
0.193740353,
-0.0065567452,
0.0340784043,
-0.1106692553,
-0.0367661081,
-0.2360448539,
0.2474203855,
0.0474842936,
0.4210410714,
0.0793647841,
0.1486471891,
0.1815606654,
-0.0695402697,
-0.6380499005,
0.157004118,
0.1009480655,
0.0964076594,
0.2430050969,
-0.3762997687,
-0.0677688643,
-0.201734364,
-0.0138397999,
-0.2421447933,
-0.1251513213,
-0.2139436752,
0.0061437436,
0.0715349242,
0.0346729383,
-0.0787408277,
0.2379068732,
-0.3031326234,
-0.0922411531,
-0.2987857759,
-0.0159615874,
0.1302256584,
0.4907619953,
0.0583911687,
0.1188846081,
0.3125005364,
0.1956056803,
0.2119923085,
0.2065151781,
0.1031227037,
0.0831063986,
-0.2976171374,
0.1005256474,
0.4791635275,
0.3510070145,
-0.0793912783,
-0.2592625618,
-0.1165815741,
-0.2494165152,
-0.1120597497,
-0.0014787614,
0.0683398694,
-0.194302544,
-0.2914254367,
0.0996229276,
0.0628406927,
0.1832073629,
0.0965738073,
0.441155225,
0.0086651091,
0.1357435435,
0.0215742998,
0.1259841919,
-0.1545628011,
-0.2653725147,
-0.2535618246,
-0.093774423,
-0.2249137014,
-0.0452788062,
0.1392562985,
-0.3511641622,
0.1486140341,
0.2843304574,
0.2438905835,
-0.0997052044,
-0.0786503926,
0.0231302362,
-0.084118031,
0.2223770022,
0.0920143574,
-0.0371531248,
0.13593252,
-0.0663183331,
0.340128541,
-0.1389587522,
-0.1046523303,
-0.1058119386,
-0.3097949922,
0.3111564517,
-0.0393325537,
0.0318807252,
-0.1348149329,
0.0415362865,
0.0054448103,
-0.0063715079,
-0.1271550804,
0.0690328702,
-0.0485788733,
-0.1065334827,
0.2176986635,
0.2176951319,
-0.5703334808,
0.0275733843,
-0.1413708776,
-0.1999801844,
0.0043480396,
0.1873579919,
-0.1815029681,
-0.0876337588,
-0.1811661124,
-0.0983161181,
-0.1626345068,
-0.2828269303,
-0.3876279593,
0.1866452396,
-0.0017750687,
-0.0798950046,
-0.1160929352,
-0.2375923842,
0.2893234491,
-0.0153163616,
-0.3430398405,
-0.2110935599,
0.0176126994,
-0.0127845937,
-0.2409082353,
-0.2167171836,
0.0838878751,
-0.0764977038,
0.1479021162,
0.1105544344,
0.172535181,
-0.2935750782,
0.2661367357,
-0.1485100091,
0.1161039546,
0.0912746787,
0.2704188526,
-0.1600846499,
-0.1128767654,
-0.0416107774,
-0.06741032,
0.0204777494,
0.0606135912,
0.2716893852,
0.0396321863,
-0.0088669425,
-0.2549170256,
-0.0335104913,
-0.334120065,
-0.1676505506,
0.3803722262,
0.0921689197,
-0.2315764874,
0.0005184641,
-0.0421156846,
0.1758343428,
0.0126304617,
0.0483752675,
0.1761738956,
0.3433649838,
-0.275255084,
-0.0637720451,
0.1673241705,
-0.0719603151,
0.2455673963,
-0.1013278514,
-0.1643160582,
0.4407146275,
-0.148603186,
0.4009417593,
0.1041890234,
-0.1629091054,
0.3613378704,
-0.6228359938,
0.110934779,
-0.087021783,
0.0760377049,
0.1592279524,
-0.0845578313,
-0.0961330757,
0.0773144439,
-0.0738332197,
-0.0045657954,
0.19051148,
0.2280789763,
0.003077483,
-0.0194357205,
-0.2421625704,
0.1882214546,
0.2159339339,
0.3058046997,
-0.1830741614,
-0.3681039512,
0.1584586352,
0.1430667043,
0.1536124796,
0.0109323878,
-0.0728268623,
-0.349860847,
0.0213346258,
0.3850712478,
0.0080433339,
-0.1321379095,
0.1849577427,
-0.0770443007,
0.0816132426,
-0.1488430649,
-0.0276765618,
0.0297796968,
-0.0575453229,
0.3187333345,
0.0401707217,
0.017340187,
-0.1541345268,
-0.536929667,
0.0395915657,
0.0058500329,
0.2060566694,
-0.2513284385,
-0.0886816755,
-0.3233673871,
-0.1130414754,
0.2310753614,
0.0394949839,
0.092284508,
-0.2377570122,
0.0139978332,
0.1969210207,
-0.1181682423,
0.262460798,
0.0012002344,
0.2136727571,
0.0281768497,
0.5410408974,
-0.2618633509,
-0.1442387551,
-0.1840661615,
0.2897135615,
0.0871279463,
-0.079061158,
0.1842189133,
-0.0810152516,
0.2908612788,
-0.1730747819,
-0.3851380646,
0.2910664082,
-0.1283417493,
0.1904563308,
-0.0026752376,
0.2665263414,
-0.3870862126,
-0.0203627944,
0.1880903095,
-0.0413361713,
-0.0606840923,
-0.003181289,
-0.0159591809,
-0.3020133376,
-0.2241058797,
0.0751425922,
-0.1735681295,
-0.3436997235,
0.038450595,
0.1464443654,
0.0640091598,
0.1747079939,
0.2289256155,
-0.0979765207,
0.1481276751,
-0.0595276095,
-0.3003804982,
-0.597405076,
0.1632574499,
-0.5660868287,
-0.4630775452,
0.1409202516,
0.1243425682,
0.4092951119,
0.0419116095,
-0.3749949932,
0.1733651608,
-0.0801888257,
-0.0343607031,
0.1711720973,
-0.116088897,
0.1028821617,
0.1523434669,
-0.2272925228,
-0.1422840953,
-0.2734929919,
-0.0979777053,
-0.1062643826,
0.1159404665,
-0.2867873311,
0.0807190165,
0.1047688946,
0.4419478178,
0.1123189926,
-0.0741321892,
0.4239269793,
-0.0862236321,
0.5601350069,
-0.1611283869,
-0.3377251029,
0.1469471157,
-0.1507561505,
-0.0988628119,
0.2195906043,
0.0591340475,
-0.3533902168,
-0.3039925992,
0.0354866572,
-0.2814317048,
-0.2238368243,
-0.3538104892,
0.0835169479,
0.251774013,
0.0645771101,
0.2820883691,
0.1081139073,
-0.1622389257,
0.1294880509,
0.120091565,
0.0353276394,
-0.141487807,
-0.4134142697,
-0.2049739808,
-0.3734685183,
0.1895397753,
-0.1099826992,
-0.0502123572,
-0.1996528506,
-0.084204413,
0.0514094159,
-0.1056897044,
0.3423097134,
-0.0683498681,
-0.0004605077,
0.0954742655,
-0.173204124,
0.0656740814,
0.0295125227,
-0.1048088297,
0.1432253718,
-0.1582612842,
-0.1050963402,
0.0037604396,
0.0784187391,
0.1847961247,
0.0099395886,
-0.1699628979,
-0.0204204954,
-0.0938849077,
0.0978900418,
-0.2449438572,
-0.2076078355,
-0.2207292914,
-0.0100954613,
-0.2272651941,
-0.2661875486,
-0.1380920708,
-0.3244820535,
0.0185239818,
0.4938953221,
0.3863054514,
-0.0652047843,
0.0860120058,
0.2924593687,
0.3374375403,
0.3303753138,
0.3128891289,
0.1370006204,
-0.2071924806,
0.2908004522,
-0.1313316375,
0.0928650796,
0.2617785931,
0.04302679,
-0.0152972285,
0.210018903,
0.2225784361,
-0.3074875772,
0.1980712116,
0.2529597282,
0.1679595411,
-0.4825792015,
0.0580451712,
0.3693290055,
0.0141712632,
-0.0597245358,
0.1262945086,
0.2100714296,
-0.0813221857,
-0.1351284981,
0.1255880892,
0.7209932208,
0.0001050574,
-0.2122115493,
0.1130356193,
-0.1008675322,
0.3043752909,
0.0424391069,
0.0194628686,
-0.2817113698,
-0.266710937,
-0.0736097842,
0.0370209888,
0.2209497988,
-0.0685556382,
-0.2538509071,
0.055441387,
-0.1838661879,
0.3419277072,
-0.0456508175,
-0.049699448,
0.0574328154,
-0.0669078678,
0.0541138798,
0.3630205691,
-0.0797083303,
0.09391132,
-0.2961657047,
0.0133892875,
0.0031088612,
0.067056641,
-0.242905125,
0.092019923,
-0.2276488692,
0.1686824113,
-0.192302078,
-0.5009311438,
0.1603827178,
0.0637819618,
0.0975629687,
0.3254849613,
-0.3234696388,
0.402299583,
-0.0457816273,
-0.1814327091,
-0.1833238751,
0.3055182397,
0.0101980725,
-0.1501730531,
-0.1779602915,
0.1741855145,
0.1115858853,
-0.01943212,
0.0475309715,
0.1179088354,
0.1931284666,
-0.0222879872,
0.192667827,
0.0071363095,
0.0033140234,
-0.3757094145,
0.2785083652,
-0.0511806011,
0.0666461363,
-0.0360997692,
0.434473902,
0.0669223219,
-0.115967758,
0.0637563318,
-0.1367862523,
-0.1317866147,
0.1777618825,
0.2601834834,
-0.2765629888,
-0.3988589942,
-0.0656846315,
0.1571886986,
-0.2817641795,
0.0723020881,
0.0805478096,
0.007747944,
0.0140639246,
0.3513556123,
0.1392953545,
-0.16858311,
-0.0723091811,
-0.2136257738,
-0.4982853234,
-0.0773468837,
-0.2293805182,
0.2354178578,
0.1222248897,
0.2731162906,
0.0696443617,
0.0219161287,
-0.4724563062,
-0.0437903143,
-0.1993094236,
-0.0929690823,
0.1779615283,
-0.0277196839,
0.0122172665,
-0.1333376914,
0.2816726267,
0.2427574098,
-0.1752961874,
-0.3853916526,
-0.0153470058,
0.0214831568,
0.0950369015,
-0.3926618397,
0.17593427,
0.2973403037,
-0.0333292522,
-0.0578468256,
0.0739079937,
-0.1647579521,
0.0900410935,
0.0186313093,
-0.2337355763,
-0.0474629402,
0.0239735395,
-0.1795483828,
0.2719548345,
0.2520772517,
-0.0699140728,
-0.0998035744,
0.1286892444,
-0.1220529601,
0.1165040061,
0.1664457768,
-0.0365913212,
0.1958781034,
0.4097905457,
-0.2700434625,
0.26723665,
0.0104015507,
0.3953762352,
0.0123087922,
0.0397566333,
0.0226720609,
0.1892243624,
0.435575515,
-0.2832295001,
0.1362298429,
0.002419031,
0.006533213,
0.2610806227,
-0.1032956168,
0.2708556652,
-0.1254642159,
-0.0617531613,
0.0812322199,
0.3503270447,
-0.1907883734,
0.3412300348,
0.4016756117,
-0.0528334305,
0.1506223083,
0.0642256066,
0.2355762571,
-0.0181958545,
0.434591502,
-0.1618885994,
-0.0179000106,
0.1488091201,
0.1640520692,
0.220247522,
-0.1720550209,
0.0562383048,
0.1335778087,
-0.1476081461,
-0.011550107,
0.1621236205,
0.4196669161,
0.0223252457,
-0.3306178749,
-0.3100750446,
0.1664958745,
-0.1759344488,
0.1114475429,
-0.4876583219,
-0.192987442,
-0.0160592999,
0.1783456802,
0.0034387312,
0.0139337303,
0.3328842521,
-0.0348721147,
-0.0487205647,
-0.5029996634,
0.083743453,
0.2177888155,
0.2639811337,
0.024269484,
0.2061740607,
0.2265586257,
-0.0002995365,
0.1532241851,
0.4285949469,
0.3149453104,
0.0677119792,
0.035915073,
-0.0532670692,
0.1089604944,
-0.2051904351,
0.0273425188,
-0.1149927676,
0.2129641324,
0.0950714424,
0.1885062903,
0.2647567987,
-0.2827624083,
0.0825788751,
-0.021689659,
0.216379568,
-0.1022083089,
-0.3874951005,
-0.2982395291,
-0.0977331027,
-0.0861079469,
-0.3890850842,
-0.333291322,
0.1323380768,
0.2015293837,
-0.2986508906,
0.0781790316,
-0.3521552384,
0.1648677289,
0.0640511438,
0.4023211002,
0.243168503,
0.200789243,
-0.1250181049,
-0.4483350217,
-0.3504097462,
0.1526515037,
0.1033010781,
-0.0398855545,
-0.3057733476,
0.0511861928,
0.0918322057,
0.1235853583,
0.4952952564,
0.0001788725,
0.1944515556,
-0.0594195686,
-0.2752924562,
0.1799763888,
0.00946193,
0.0195161384,
-0.1272804588,
-0.0661200657,
0.2582794726,
-0.0021932956,
0.2210865319,
-0.1490803063,
0.2031292021,
-0.4349626899,
-0.2029469609,
0.3208515644,
0.1792406887,
0.3766890168,
-0.1100783497,
-0.0005271658,
-0.0858118087,
-0.2289456874,
-0.0935202464,
0.249244228,
0.2223967463,
0.3229877055,
0.1318790466,
-0.1263434291,
-0.029087102,
0.0493219607,
0.2770045996,
0.340512991,
-0.2955280542,
0.1076350808,
0.0787425786,
-0.2278829515,
0.259473145,
0.1059646457,
-0.0409700014,
-0.075564824,
-0.192196995,
-0.3657118678,
0.1892423183,
-0.2603744864,
-0.3046206832,
-0.0842140093,
-0.0746046007,
0.3660801053,
-0.0851082057,
-0.2530285418,
0.0696018562,
0.0732704476,
-0.1121165976,
-0.0957399532,
0.365701586,
-0.0892179087,
-0.0652137175,
0.1243475229,
0.5360301137,
0.3529992402,
-0.188002333,
0.047364749,
-0.0968635529
] |
https://github.com/huggingface/datasets/issues/2162 | visualization for cc100 is broken | Hi
loading works fine, but the viewer only is broken
thanks
On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***>
wrote:
> This looks like an issue with the cc100 dataset itself but not sure
> Did you try loading cc100 on your machine ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2162#issuecomment-814793809>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMRUO33JSOYGT6RETWLTHQWNLANCNFSM42IUOR6Q>
> .
>
| Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
| 80 | visualization for cc100 is broken
Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
Hi
loading works fine, but the viewer only is broken
thanks
On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***>
wrote:
> This looks like an issue with the cc100 dataset itself but not sure
> Did you try loading cc100 on your machine ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2162#issuecomment-814793809>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMRUO33JSOYGT6RETWLTHQWNLANCNFSM42IUOR6Q>
> .
>
| [
-0.489233166,
-0.2571880221,
-0.0154401315,
0.1678070128,
0.2279230058,
0.0367417149,
0.1436954886,
0.0804586262,
-0.0384784043,
0.3180071712,
-0.1425654143,
0.2456280887,
0.141941756,
0.4538695514,
0.0949074328,
-0.32065925,
0.1359130591,
0.3763964772,
-0.4416948259,
0.0868925974,
0.055828996,
0.1035451367,
-0.1063320711,
-0.1049202383,
-0.1652603596,
-0.2434974164,
-0.1958785653,
0.2551199496,
-0.2148870528,
-0.4934452176,
0.0909603089,
0.2749294639,
0.1034730971,
0.3986739814,
-0.0001022205,
0.04995564,
0.3971209228,
0.1768861264,
-0.2313631922,
-0.0155353975,
-0.3341017663,
-0.0857341588,
0.3056443632,
0.0706030354,
-0.0899704769,
0.1896808147,
-0.0461140536,
-0.0780905932,
0.4632005394,
-0.3263450861,
0.3314779997,
0.1898194849,
0.2163903862,
-0.2356245667,
-0.231793642,
0.3152168393,
-0.1130146906,
0.3244767785,
0.1339668185,
0.0188409034,
-0.1388453543,
0.2810085714,
0.1435002387,
-0.0581775792,
0.2358363718,
-0.1443403959,
-0.1305724829,
-0.2075547427,
0.131921187,
0.1367862821,
0.4491753876,
-0.0257945247,
0.0039737769,
0.1525940299,
-0.1334012002,
-0.7048447728,
0.2510018647,
0.0759367943,
0.1342732012,
0.2552891672,
-0.4646978974,
-0.0914588943,
-0.1806109101,
-0.0053145485,
-0.2083681524,
-0.2731879354,
-0.2704399228,
0.0497460477,
0.0847372562,
0.0378440991,
-0.1317541003,
0.2829218507,
-0.3070277274,
-0.0304719359,
-0.3326731622,
-0.023337869,
0.0595652349,
0.6086739302,
0.1661483049,
0.1431819201,
0.262011975,
0.1786368936,
0.1625328362,
0.1637372524,
0.187071085,
0.1150898412,
-0.2575578094,
0.0041041509,
0.3975898623,
0.394667238,
-0.0249197558,
-0.237785086,
-0.1014920697,
-0.1884735078,
-0.27395311,
-0.0525202267,
0.0503011383,
-0.256316185,
-0.2835171223,
0.0952256322,
-0.0298538413,
0.2155107707,
0.1024070308,
0.4667978585,
-0.0222321749,
0.1667990685,
-0.056511227,
0.0894866437,
-0.1122333109,
-0.2835863531,
-0.1714644432,
-0.1027710736,
-0.2645994425,
0.09699063,
0.1056803763,
-0.5895858407,
0.1090204716,
0.3119138479,
0.2893698514,
-0.150876686,
-0.2520391345,
0.0349121578,
-0.1531485617,
0.2180145085,
-0.0182141606,
-0.0133199021,
0.1382206976,
-0.0576599874,
0.2959642708,
-0.1241454706,
-0.1790525466,
-0.1323901713,
-0.2980606258,
0.1988736391,
-0.2029175162,
0.0301479567,
-0.2107235938,
0.1286043078,
-0.0801800713,
-0.0655267909,
-0.1545431018,
0.1827646792,
-0.0919290558,
-0.0699687898,
0.2726302147,
0.3414156139,
-0.6863189936,
0.0113490755,
-0.2106214315,
-0.2142640948,
-0.1314729154,
0.222207427,
-0.153587997,
-0.2164105624,
-0.1873218715,
-0.1039628461,
-0.3795118332,
-0.3386239111,
-0.3993170559,
0.2244600356,
0.0147254439,
0.1020727307,
-0.162457034,
-0.3465771079,
0.2197380215,
-0.1073613092,
-0.4080573022,
-0.3395631015,
0.0483305901,
-0.0906974748,
-0.2202286571,
-0.2207836211,
-0.0248325765,
-0.1567666531,
0.0327054448,
0.0524214767,
0.2398312092,
-0.2631927431,
0.2512973547,
-0.1058089435,
0.0842959285,
0.1203728691,
0.2442515939,
-0.0352901779,
-0.038981095,
-0.0316406339,
-0.1632593572,
0.09352801,
0.1100456044,
0.1650072336,
0.0794902742,
0.0177722871,
-0.287153542,
0.0784740895,
-0.2831758559,
-0.2864535153,
0.2292663455,
-0.0078503061,
-0.2204866856,
-0.0568298958,
-0.1291802824,
0.282944262,
-0.0350264572,
0.0403469913,
0.0812887326,
0.3608579934,
-0.211771071,
0.0663952902,
0.1169617772,
0.0159761868,
0.2351306826,
-0.1477353424,
-0.1826761961,
0.4865570962,
-0.1353314072,
0.493232131,
0.0639586598,
-0.1806654483,
0.4445701838,
-0.6863838434,
0.1042588949,
-0.1436597407,
0.0319806971,
0.1143552437,
-0.1996469349,
-0.0951006711,
-0.0258607659,
-0.0602661856,
-0.0047644139,
0.3002632558,
0.1752489656,
0.0208751392,
-0.1129435971,
-0.2815241516,
0.3239426613,
0.10328269,
0.3746680319,
-0.1104340032,
-0.3645002544,
0.0944503471,
0.058941666,
0.0663929284,
-0.150560841,
-0.021241853,
-0.4246391952,
0.0587929077,
0.4740259051,
0.0202399436,
-0.1344063133,
0.1091587543,
-0.178477928,
0.1640636027,
-0.114789024,
-0.0054769302,
0.0562664159,
0.0153740207,
0.37797001,
-0.0594745576,
-0.009043918,
-0.0412559547,
-0.4889646471,
-0.0065910881,
-0.0360407531,
0.188435629,
-0.3148462474,
-0.0544638112,
-0.2563505173,
-0.1135908589,
0.1614993662,
-0.0664470941,
-0.0294058882,
-0.2248460799,
-0.1075394526,
0.2443358153,
-0.0882511362,
0.2095919997,
0.0373780727,
0.2259052694,
-0.0769369677,
0.5092436671,
-0.383086741,
-0.0880488306,
-0.1897037923,
0.2072616071,
0.1518358737,
-0.158868283,
0.1316140592,
-0.0541118719,
0.2230404317,
-0.1354922354,
-0.422927022,
0.3513033986,
-0.2789325416,
0.2825936377,
0.0180321857,
0.1744455248,
-0.5256006718,
0.0149825141,
0.2019055784,
-0.0165840518,
-0.0259551425,
-0.0310120545,
0.0307592396,
-0.214937225,
-0.177055791,
0.1357314885,
-0.0972957984,
-0.2872205675,
0.2448734045,
0.1140970588,
0.0695607811,
0.299530834,
0.1981417388,
-0.0053704209,
0.0894732475,
-0.157062158,
-0.2617683709,
-0.6501927972,
0.1145757809,
-0.580360055,
-0.4522838593,
0.1640464514,
0.1833761036,
0.409565419,
0.0223090909,
-0.4418850839,
0.2004330307,
-0.0492388234,
-0.0774395987,
0.1694940925,
-0.2371670306,
-0.0520737767,
0.1274529845,
-0.1467647702,
-0.1221009791,
-0.2460594028,
-0.2049299628,
-0.1848909706,
0.1114115939,
-0.2083914131,
0.1352376938,
0.1887238622,
0.4692262113,
0.3177907169,
0.0179008059,
0.3638766706,
-0.0256513823,
0.6060582995,
-0.0940384492,
-0.3954619169,
0.1610119939,
-0.2635264099,
-0.1106088459,
0.2245450467,
0.1638231277,
-0.2813154757,
-0.3329942822,
-0.0213939771,
-0.1901985407,
-0.2044193447,
-0.4022081792,
-0.0952068493,
0.2365484238,
0.0945556685,
0.3012015522,
0.1872934699,
-0.2381775677,
0.1218914762,
0.2228384465,
0.1378755569,
-0.0563403666,
-0.3333060443,
-0.155025214,
-0.45983091,
0.1912706792,
-0.1192056984,
-0.0245973188,
-0.1621475667,
0.0897185132,
0.0431347191,
-0.1166875064,
0.4323551059,
0.0834420249,
-0.0657964423,
0.02066046,
-0.2793536782,
0.0274508819,
0.1344770193,
0.0036599087,
0.19154194,
-0.1758198291,
0.0077379551,
0.033258643,
-0.0226783287,
0.2441920638,
0.1092426404,
-0.1373887658,
-0.1233559623,
-0.0592083111,
0.087636888,
-0.2600352764,
-0.2787794173,
-0.1868243963,
-0.0090489099,
-0.2768272758,
-0.245365262,
-0.0309767146,
-0.2705956101,
0.1344103217,
0.4063965976,
0.3771794736,
-0.0564550944,
0.1148965061,
0.4774947166,
0.3243747652,
0.3528695107,
0.3981160522,
0.1790293008,
-0.2628019154,
0.1974927336,
-0.0177553464,
0.1450860351,
0.2858127654,
-0.0325285308,
-0.0653768554,
0.3229689896,
0.1560712159,
-0.4014386833,
0.0218194798,
0.2814579904,
0.2107100338,
-0.5869053006,
-0.032011386,
0.4865453839,
0.0425224937,
0.02443715,
0.1429230273,
0.4273274243,
-0.0154761104,
-0.1793303639,
0.219511658,
0.7822974324,
-0.0852203742,
-0.2441664785,
0.1609072536,
-0.0724489018,
0.5282045007,
0.0920657292,
-0.0052013751,
-0.2392442673,
-0.2635154724,
-0.1081514657,
0.0192671679,
0.3487836719,
-0.0347119942,
-0.1978696883,
0.0767207518,
-0.1154655814,
0.3633244038,
0.0274880193,
-0.0209578257,
-0.0317621343,
-0.1243715957,
0.0524063967,
0.2741874158,
-0.0710232332,
0.1198069677,
-0.320753485,
0.0189971253,
-0.0395038761,
0.0727084577,
-0.4134108126,
0.0668168813,
-0.2139827758,
0.0972498655,
-0.1545442343,
-0.5218371153,
0.3360896409,
0.1267323196,
0.0528154187,
0.3062732816,
-0.404915452,
0.3605418503,
-0.1570578665,
-0.2065268159,
-0.1192581877,
0.3092534244,
0.0769666433,
-0.1147349924,
-0.1159135327,
0.1432216316,
0.0744676664,
0.0528133363,
-0.0045484533,
0.1390680224,
0.1204419136,
-0.0198724028,
0.1986441463,
-0.0818979591,
0.0448005386,
-0.3537905812,
0.1825722009,
-0.023615893,
0.0982243121,
-0.0461268649,
0.3708559275,
0.0440846197,
-0.102562733,
0.089979589,
-0.2272093892,
-0.2361452132,
0.2592032254,
0.3711192608,
-0.2947307229,
-0.2603667378,
-0.0373254605,
0.1620596349,
-0.4218550026,
0.0710400194,
0.0879318342,
0.1964739263,
-0.0413639843,
0.3043956161,
0.1934485435,
-0.2146190107,
0.047755111,
-0.2464825511,
-0.5051091909,
0.0095531894,
-0.2503124475,
0.2647609413,
0.2067698538,
0.3871719837,
0.0558870435,
0.1240465865,
-0.3818437159,
-0.0157489888,
-0.1078448817,
-0.165028125,
0.2736259401,
0.0680392832,
0.0908040181,
-0.1712993681,
0.1991845965,
0.3404521644,
-0.1769586951,
-0.2423435003,
-0.0868765265,
0.0664084777,
0.0810748413,
-0.4429329038,
0.1842289269,
0.2947709858,
0.0168445613,
-0.1007091478,
0.1171609461,
-0.0522598065,
0.1438387632,
-0.0333773568,
-0.2583407164,
-0.0354275592,
-0.0901004374,
-0.1844914407,
0.3827039301,
0.3077847362,
-0.1213061213,
-0.0769077241,
0.0812675953,
-0.1150848344,
0.0831534788,
0.2045482397,
-0.0781325251,
0.1085334569,
0.5183011889,
-0.2559981942,
0.280097425,
-0.0350439213,
0.4954102337,
0.0593208708,
0.0501789227,
0.0827178359,
0.2220927477,
0.2963465452,
-0.2159972638,
0.2225355655,
0.0296188165,
0.0777667239,
0.1235865504,
-0.0978554264,
0.2934840322,
-0.124873355,
-0.02308302,
-0.0129558668,
0.4266717434,
-0.13937141,
0.4329896569,
0.4649490118,
-0.096262686,
0.1818497181,
0.0675550476,
0.2581516504,
-0.0089329984,
0.4877111912,
-0.1989834756,
-0.1394609809,
-0.0077658044,
0.3162933886,
0.1967286617,
-0.2686849833,
-0.007373827,
0.1334371716,
-0.1398730427,
0.0344949998,
0.1266103536,
0.5635012984,
-0.0401281007,
-0.3392047584,
-0.2308546007,
0.1940720826,
-0.0562956817,
0.0696079284,
-0.428520292,
-0.1924722046,
-0.0327324979,
0.2030673325,
-0.0358548723,
-0.0769786015,
0.3292374611,
0.0425865054,
-0.0600818917,
-0.596703589,
0.0047178888,
0.2601428032,
0.3136416078,
0.0291532893,
0.1982821971,
0.2266049534,
0.0434599705,
0.0961249545,
0.4073175788,
0.3040819168,
0.0233556125,
0.1639556736,
-0.0363515429,
0.0734031871,
-0.1477892846,
0.1805893183,
-0.0004243132,
0.1901205331,
0.057721626,
0.2234318554,
0.1660739928,
-0.1932644695,
0.0568626523,
-0.0404096022,
0.350235045,
-0.2300455272,
-0.2944570482,
-0.3778139651,
-0.0521234609,
-0.0427741371,
-0.3763999939,
-0.3126110435,
0.1954145581,
0.2065279931,
-0.3035636544,
0.0059866034,
-0.3602222502,
0.103021808,
0.1652547866,
0.3752546608,
0.3739387691,
0.2587441504,
-0.1840346158,
-0.4179106951,
-0.3763250709,
0.1055428535,
0.121554248,
0.1609397233,
-0.22280626,
-0.0635878295,
0.1066198871,
0.1546382606,
0.40494591,
-0.0531756729,
0.2147497535,
-0.0518630259,
-0.1292673796,
0.1912104338,
-0.0255183354,
0.0425747521,
-0.1327253282,
0.0717549771,
0.3197350502,
0.082547985,
0.0700987577,
-0.2058376968,
0.2681624293,
-0.4323087931,
-0.3078066707,
0.2139191329,
0.2149381787,
0.3701922297,
-0.0298633706,
-0.1319440752,
-0.2877648175,
-0.2584184408,
-0.175584197,
0.2879807055,
0.1683015674,
0.3712054193,
0.0934682339,
-0.2876014709,
-0.0417512879,
0.0986433998,
0.2029402703,
0.374245137,
-0.4230100214,
0.0980167165,
-0.046730876,
-0.2117278725,
0.3160832524,
0.2755284011,
-0.0386101715,
0.0674135163,
-0.2401772738,
-0.325399071,
0.2884452939,
-0.4104402065,
-0.1738005579,
0.0159760602,
-0.0622033067,
0.4638102055,
-0.247846514,
-0.3457041383,
0.0219628569,
0.0650143772,
-0.0513220169,
-0.0197088532,
0.3315579295,
-0.1098205,
-0.0618326701,
0.0984674692,
0.66055125,
0.3390100896,
-0.2001922578,
0.1868811548,
-0.0298750941
] |
https://github.com/huggingface/datasets/issues/2161 | any possibility to download part of large datasets only? | oh, great, really awesome feature to have, thank you very much for the great, fabulous work | Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks | 16 | any possibility to download part of large datasets only?
Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
oh, great, really awesome feature to have, thank you very much for the great, fabulous work | [
-0.4569225609,
-0.4417871237,
-0.1896092445,
0.1484075487,
0.1038996279,
0.1881606877,
-0.2670144737,
0.3661699295,
0.063260667,
0.4351859391,
-0.4470096529,
-0.1280027926,
-0.1039809063,
0.3638651967,
0.1902366877,
-0.0035722197,
-0.1473829001,
0.252376914,
-0.2892188728,
-0.1919610649,
-0.0600634962,
-0.1989704818,
-0.2322040647,
-0.274771452,
0.1167173162,
0.0897205919,
-0.0433795489,
-0.1757755578,
-0.5081451535,
0.098544918,
0.1412110925,
0.2492479384,
0.1027181521,
0.09501075,
-0.0001107031,
-0.4209389389,
0.2668627799,
-0.062578395,
-0.084379755,
-0.0519630536,
-0.2210000902,
0.1284929365,
-0.2507516444,
-0.3328809142,
-0.0196087882,
0.2339521945,
0.1992980987,
0.052537147,
0.1239218414,
0.1056275964,
0.1930297762,
0.1519488245,
-0.0723706558,
-0.1902451962,
0.442543596,
0.0775689855,
-0.0818243846,
0.0459748283,
0.5918857455,
0.2943479121,
0.1667646468,
0.0849434584,
0.1034170613,
0.247348696,
-0.1054593548,
-0.2039708048,
-0.0984309018,
-0.6417448521,
0.2337238193,
0.665956676,
0.6920174956,
0.0556282289,
-0.150616318,
-0.1202964187,
0.0236589685,
-0.1743653119,
-0.2018057704,
0.6123732328,
-0.3871225715,
0.2348982543,
-0.4387526512,
-0.2116995007,
-0.1234645173,
0.2909556329,
-0.301823467,
0.2000409514,
-0.1299531758,
-0.1054303497,
0.4078006446,
0.0596905686,
0.1735429615,
0.1433303207,
-0.1963623613,
0.3420017958,
-0.1567713916,
-0.5366549492,
-0.1837791055,
0.2887184024,
0.5101741552,
0.2040085495,
0.1140416712,
0.1894533336,
-0.018494755,
-0.1015852243,
0.5733482838,
-0.1129774377,
-0.3923662901,
0.0809298307,
0.3171567917,
-0.0752294436,
-0.0010934923,
-0.0670257807,
0.0463558994,
0.1651316285,
-0.5736999512,
0.0215231348,
-0.1362495869,
-0.4492545426,
0.094801344,
-0.281965822,
0.3471706808,
0.0344667658,
-0.0805369988,
0.1907562613,
-0.0205790866,
0.0423794463,
-0.4645513892,
-0.1681990325,
-0.0162994564,
-0.1974532008,
-0.0918183476,
0.0224357434,
0.0416282602,
-0.088081561,
0.3229659498,
-0.1877463758,
0.295733124,
-0.1981062889,
0.3834773004,
0.2267551273,
-0.112574473,
-0.2475353926,
-0.0029423761,
0.1985404193,
0.0700588077,
0.1578546762,
-0.2934515178,
0.502081573,
-0.1349245906,
0.3260572553,
-0.2535349429,
-0.2201764733,
-0.0583021976,
0.1515716165,
-0.2562196255,
-0.1333431304,
-0.2288071066,
0.1576194018,
-0.1931795478,
0.0939431414,
0.0799116343,
0.1832103282,
-0.0579356328,
-0.0438143313,
0.0031957659,
-0.0112945959,
-0.1513255686,
-0.0708584711,
-0.1550827175,
-0.2979603112,
0.3592859805,
0.1999576539,
-0.1971529722,
-0.2521311939,
-0.1948242784,
-0.1017803922,
0.2613484263,
0.0787254721,
-0.5193733573,
0.2332689762,
0.0885038823,
-0.268783927,
0.0295889843,
0.1556362361,
0.5315997601,
-0.0201994926,
-0.2623344064,
0.5017805696,
0.0501079373,
0.0913203582,
-0.091664888,
-0.2254311293,
-0.1961182952,
0.2768276334,
0.2638247013,
0.3479861319,
0.4208672047,
-0.0123440698,
0.5024281144,
-0.1851748377,
0.2358276248,
0.0584071539,
0.2728777528,
-0.1755977869,
-0.01432906,
-0.4393557608,
-0.1206989139,
0.1615197062,
-0.096602641,
-0.2584326863,
0.3596480489,
-0.148688823,
0.044729393,
-0.3190501928,
0.2947393358,
-0.0419411846,
-0.0287706554,
-0.2965404391,
0.4093740284,
-0.0676427186,
-0.339335531,
-0.2134833783,
-0.0733158216,
0.0736939088,
0.1995432079,
-0.0110144224,
0.3500835299,
0.2485636026,
0.2441171706,
-0.1814395934,
0.0056323009,
-0.0823098496,
0.0218137633,
0.1309658885,
0.0395605043,
0.1180215701,
0.0199107695,
-0.0270479731,
0.3809483945,
-0.1138068885,
0.0639721528,
0.1126642078,
0.1333450675,
0.0193933118,
-0.4595882297,
0.3454847634,
-0.2954248488,
0.0264131855,
0.1687257141,
-0.0491248742,
0.3897064626,
-0.2340517193,
0.1279967129,
0.0550443493,
0.3604438901,
0.1630963087,
0.0675400943,
-0.0170681328,
-0.2695913613,
-0.1503736079,
0.0879043266,
-0.0890914872,
-0.183701694,
0.2362306565,
-0.2942356169,
0.1283310205,
0.1056607664,
0.1332113892,
0.238462761,
0.2614437938,
0.4191230834,
-0.0596984811,
0.5338894725,
-0.0798916444,
0.0344996788,
-0.1112049967,
-0.2185871154,
0.0271368958,
0.119256936,
-0.2720866799,
-0.1960969716,
0.1185510531,
0.1599406302,
0.1313764602,
0.1610584855,
-0.5328857899,
-0.1614167541,
-0.5867484808,
0.201430738,
0.176557377,
0.0589459129,
-0.0102746505,
0.1366423666,
0.3728678226,
-0.1443714648,
-0.160740599,
-0.0089779021,
0.4862965643,
-0.1067721024,
0.3569282889,
-0.1209159642,
0.0533811264,
0.2583848238,
0.2524825335,
0.0410921127,
0.0816706195,
0.2867900431,
0.1602696776,
-0.1303245723,
-0.4161486626,
-0.0071790642,
0.0893685147,
0.3147810698,
-0.1491580158,
-0.0932760611,
0.2668731809,
-0.0285228714,
0.1035328209,
-0.2054281831,
-0.1214772165,
-0.2091581076,
-0.1441282481,
0.0973672643,
0.0649717376,
-0.2281396538,
0.0051544229,
-0.5068330765,
-0.3248069584,
0.5314695835,
0.3946835399,
0.2537351251,
-0.149475351,
-0.1242601126,
-0.251788944,
-0.3573121727,
-0.4232783318,
-0.1491887271,
-0.782584548,
0.4113962352,
-0.2570545077,
-0.3438841701,
-0.0755721107,
0.1506990492,
-0.1608593315,
0.4088256955,
-0.2474158108,
0.0621278994,
-0.2387612015,
0.0257505253,
0.1554752141,
0.1434169412,
-0.1240389422,
-0.7096167803,
-0.1004809439,
0.1014401391,
0.3139618635,
-0.2614524364,
0.2509830892,
0.3713079691,
-0.0902178511,
-0.1903649271,
0.0399546027,
0.5214745998,
-0.026834745,
0.2538583875,
0.1307036579,
-0.0290281698,
0.0504800826,
-0.0862843692,
0.0495516546,
0.3566075265,
-0.06476596,
-0.2368632555,
0.2402047515,
0.0547216609,
-0.4161048234,
-0.3159684241,
0.0295123849,
0.0245009419,
-0.084243767,
-0.1255429387,
0.0592537746,
-0.1105322167,
0.1262479275,
-0.089026168,
0.0932172611,
-0.2466397285,
0.1455630958,
-0.0436631925,
0.2179508358,
-0.1918684542,
-0.5488734841,
-0.0880175009,
-0.3732868433,
0.0275455136,
-0.0887911618,
-0.2204170376,
0.1540471911,
0.011821718,
0.2002578974,
0.1046785414,
0.5495656729,
0.1924214959,
0.0441885777,
-0.1874066889,
-0.1772263348,
0.0666360855,
0.076356031,
-0.051613044,
-0.0296916198,
0.1616585404,
-0.1188298762,
-0.3217069209,
0.2123570591,
0.1185414791,
0.3280701041,
-0.1773502976,
-0.1671267301,
0.2144455165,
-0.1191548854,
-0.2957464159,
0.211877808,
-0.0948871598,
-0.1333673,
-0.0956817344,
-0.2035372257,
-0.0976692066,
0.047881078,
-0.0564669445,
-0.0978596807,
0.0401678942,
0.1136266738,
0.4426670671,
0.0353577249,
0.014989269,
0.1644073129,
0.5174334049,
0.2307386994,
0.0437974595,
0.0463364683,
-0.2539513409,
0.0378038846,
0.198009178,
0.0985029265,
0.2301354408,
0.0144508453,
0.3215949833,
-0.1256865263,
0.0775858834,
-0.4251402318,
-0.1687737256,
-0.4518713951,
-0.3695446551,
0.4214906096,
0.0701666549,
0.0333634056,
0.3626654446,
-0.1292976737,
0.1164963022,
-0.1096645519,
-0.0519141443,
0.9109152555,
0.0007669016,
0.0757829025,
-0.4442178905,
0.0725764185,
0.5207019448,
-0.0016885723,
0.0603379384,
-0.2513402998,
-0.4070750475,
-0.1607121527,
-0.044055216,
-0.126913473,
0.1275820583,
-0.0306450184,
0.2152335197,
0.0330466107,
0.0687595159,
-0.1061894447,
0.0132141681,
-0.2566154897,
-0.2052283138,
0.299965173,
0.1174325868,
0.0099960566,
0.4072090387,
-0.0089247664,
-0.0222105552,
0.0564131066,
0.0811624974,
-0.173297599,
0.078212969,
-0.2402405739,
-0.1271180063,
-0.215334177,
-0.1490631998,
0.011920331,
-0.2115805149,
-0.0911345109,
0.2856215835,
-0.4071880579,
0.2673164904,
0.2349706441,
0.1415298879,
-0.0455120839,
0.1702988148,
-0.2451651692,
-0.1385824531,
-0.0636677071,
0.130479008,
0.067514874,
-0.2238562703,
-0.1592643708,
0.1630321294,
-0.001776483,
0.0728847086,
-0.1480658203,
0.147682175,
-0.0107422713,
-0.1184338778,
0.117113173,
0.2189228237,
-0.2218292654,
0.4116453826,
0.2776652575,
-0.1695400476,
-0.3347320855,
0.629933238,
0.2015759349,
-0.2579892576,
-0.0588949658,
-0.0949737057,
-0.2412516624,
-0.2029324323,
0.0254392698,
-0.3619158566,
-0.2489605099,
0.0684149563,
-0.2431002557,
0.2482885569,
-0.1463272721,
0.0954276919,
0.0726270601,
0.006588507,
-0.1642002016,
-0.2006358653,
-0.4192200005,
0.0153943449,
-0.0635220036,
0.2517637312,
-0.2178005427,
0.0093265576,
-0.0072477516,
0.195936799,
-0.2795915902,
0.3235084414,
0.1009354889,
0.1888235211,
0.4417486489,
0.2852601111,
-0.2603090405,
-0.0910108238,
0.0227066949,
0.3770696521,
-0.0110530201,
-0.2271910608,
0.0212862622,
0.1728379279,
0.0746539012,
-0.2443021387,
0.2491172254,
0.0081319101,
-0.1254453659,
0.0937340781,
0.170627743,
0.0679825544,
0.2518122196,
-0.3036059737,
0.51300776,
-0.3523677588,
-0.4174028635,
0.5407015085,
0.0125267403,
0.0838821009,
-0.0037677709,
0.4048580527,
0.1292492598,
-0.0992394015,
-0.1200569645,
-0.2527925372,
0.1453033239,
-0.1895305663,
0.3002200425,
0.3162287176,
0.1649178118,
0.3023349047,
0.2457774282,
0.5084359646,
-0.0152827734,
0.1085115522,
0.434897542,
0.237779066,
-0.231780827,
-0.1498550624,
-0.2036656439,
-0.0485084131,
0.0155828865,
0.0273265168,
-0.0010941409,
-0.2478487194,
-0.0696706548,
-0.2985464334,
0.1178782731,
0.2388333231,
0.0260510128,
0.7074030638,
0.1500035822,
-0.3291203082,
-0.0424697809,
0.1737630963,
0.2074753642,
0.4642716348,
-0.1255781353,
0.2695052028,
0.2516716123,
-0.0656982735,
0.0272628311,
-0.632248342,
0.0490346476,
0.4742780626,
-0.1550250947,
0.1333584636,
0.0281256195,
0.0583109669,
0.1292910129,
-0.061611861,
-0.2436537743,
0.372250706,
0.2169622332,
-0.0386295095,
-0.0611902885,
-0.3569633365,
0.0298324563,
0.4323064983,
-0.0329570472,
-0.3165527582,
0.4121625423,
0.0604240708,
0.0055015893,
-0.1391834319,
0.0401392095,
0.0196077079,
0.1764250547,
-0.4152515829,
-0.1744776517,
-0.0612942725,
-0.0081060473,
0.2978866696,
0.1160275489,
-0.1798854321,
0.100452818,
0.2251486927,
-0.0406418778,
0.11013522,
0.0405047871,
-0.2707312107,
0.0644742027,
0.3029300869,
0.0313112773,
0.4102821052,
0.0723476782,
-0.1175646186,
0.2593789399,
-0.0650701895,
-0.171731174,
-0.3983204663,
-0.2220228761,
0.2776271701,
-0.0164544005,
0.008640172,
-0.1884789765,
-0.0986083597,
0.0294520333,
-0.3627736568,
-0.459348321,
0.2472181618,
0.3025141954,
0.0553996079,
-0.3028543293,
0.4305762947,
0.2326880246,
0.030453369,
-0.103125684,
-0.4151990414,
-0.2457067817,
0.0794977918,
-0.1626463085,
0.2742976546,
-0.0632453039,
0.3734808564,
0.0651797503,
0.333882302,
-0.1283566803,
0.0352490917,
0.0676701888,
0.4144802392,
-0.1857170612,
-0.0640040785,
0.0284607355,
0.5671870112,
-0.0703190714,
-0.4127237499,
0.3753578663,
-0.111104086,
0.0034158151,
0.2319038361,
0.1265772879,
0.0676539391,
-0.2115828842,
0.2716360986,
-0.2187779993,
0.1533120275,
-0.1447098702,
0.1211736351,
0.0287775937,
-0.0959737152,
-0.1997179091,
-0.1962886304,
0.339383781,
-0.1301869601,
0.2296263427,
0.1153039634,
0.0823764354,
0.1041029021,
-0.0554954149,
0.2501113713,
0.036159914,
-0.4684180319,
-0.0568600036,
0.000164612,
0.1268476695,
-0.0011091117,
-0.2792007327,
-0.3743989468,
-0.1956623644,
-0.1279826909,
0.5047436953,
0.023420969,
0.1405041963,
-0.4365864098,
0.2666722536,
0.1913576275,
0.0209440235,
-0.2351933867,
0.1179643795,
0.4022260606,
-0.3174347878,
0.2347786576,
0.2826932669,
0.1425819099,
-0.2283661216,
-0.1481785923,
0.2692001164,
0.3289660215,
-0.3923661411,
-0.2372134626,
-0.2452918291
] |
https://github.com/huggingface/datasets/issues/2161 | any possibility to download part of large datasets only? | We'll work on dataset streaming soon. This should allow you to only load the examples you need ;) | Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks | 18 | any possibility to download part of large datasets only?
Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
We'll work on dataset streaming soon. This should allow you to only load the examples you need ;) | [
-0.4160079956,
-0.4227997065,
-0.0912120342,
0.2210886925,
0.1178916767,
0.2086139768,
-0.2158918232,
0.3746379316,
0.107531555,
0.3137332797,
-0.2778739631,
-0.226484865,
-0.0971202403,
0.3623842895,
0.2786153853,
-0.1379797906,
-0.1310558766,
0.2409259379,
-0.1959341913,
-0.1360585839,
0.0351955518,
-0.3711942434,
-0.1557516754,
-0.2762486637,
0.1072822735,
0.0065382202,
-0.0016222333,
-0.1528019756,
-0.3216456473,
0.1749351174,
0.1286828369,
0.0949424952,
0.2968361378,
0.022531338,
-0.0001144941,
-0.3012692034,
0.3300116956,
-0.2018278092,
-0.2040801942,
-0.0629979819,
-0.3263174295,
0.163317427,
-0.2283703983,
-0.2755314708,
0.055549074,
0.1558894515,
0.1559823751,
-0.0213035066,
0.3270632923,
0.1292211264,
0.1475347281,
0.0527239665,
-0.1914352775,
-0.0762385204,
0.2807139754,
0.1402224153,
0.0194405485,
0.0566958785,
0.6661751866,
0.3004218936,
0.105619669,
0.0831307396,
0.0118728038,
0.1913021356,
-0.0942526683,
-0.3307496607,
-0.1941792667,
-0.6230318546,
0.2782779932,
0.8252422214,
0.6387519836,
0.0939349607,
-0.1760770082,
-0.2948757708,
0.1539802551,
-0.1587239802,
-0.2463076413,
0.6292651296,
-0.3267940283,
0.1728769094,
-0.540204525,
-0.232588619,
-0.1865913868,
0.255645752,
-0.2171285152,
0.0882262662,
-0.0790156648,
-0.0391913094,
0.3143948317,
-0.0377391353,
0.3111807406,
-0.0938631743,
-0.2239781171,
0.1800580174,
-0.2369108349,
-0.3743757308,
-0.32419613,
0.3473263681,
0.3826082051,
0.1467504054,
0.2207316607,
0.1960912943,
0.0698593035,
0.0267216358,
0.4240182042,
-0.173163861,
-0.281411171,
0.2035137862,
0.253169179,
0.0371989012,
0.0458770692,
-0.0351085477,
-0.1992002726,
0.2605751455,
-0.5001296401,
-0.0200256668,
-0.3018490076,
-0.4213239849,
-0.0149690257,
-0.2645726204,
0.1118756086,
0.102868326,
-0.0745218694,
0.177186504,
-0.0060784225,
0.2028244883,
-0.360656172,
0.0311387684,
0.0746800825,
-0.5046662688,
-0.0934190378,
-0.0063180341,
0.0433681756,
0.0493436344,
0.3772119284,
-0.2916144431,
0.3798225522,
-0.135383442,
0.2860986292,
0.1216546893,
-0.0231393259,
-0.1652135104,
-0.0564625189,
0.1320162863,
0.1193647087,
0.195720762,
-0.0756725669,
0.4238184392,
-0.1083751991,
0.3343409896,
-0.1200219691,
-0.2665343583,
0.1457664669,
0.1189231798,
-0.386033386,
-0.080825381,
-0.5248141885,
0.2487919927,
-0.1913019568,
-0.0301387683,
0.010198826,
0.0602894388,
-0.0674410015,
-0.0665500164,
0.237576142,
0.0933560878,
-0.2284576893,
-0.0791617259,
-0.1545650363,
-0.1223681271,
0.3714396358,
0.2702901065,
-0.272164017,
-0.222567603,
-0.1437160075,
-0.205365181,
0.2452468574,
0.0532235205,
-0.4416376948,
0.4437434375,
0.0718868896,
-0.0778924525,
0.0095834099,
0.1884520799,
0.6336510777,
0.0795478225,
-0.2656628489,
0.6198096275,
-0.1294936836,
0.10185536,
-0.0497496128,
-0.2907516658,
-0.1316677928,
0.2972230613,
0.2475745529,
0.3914235234,
0.1908107698,
0.0140923131,
0.3742013574,
-0.2035212964,
0.2755430341,
0.1488897353,
0.1048043445,
-0.1219551414,
-0.1044191793,
-0.332970649,
-0.2455962449,
0.2019155771,
0.1670385301,
-0.5572571158,
0.3659932017,
-0.1457130164,
0.0362954587,
-0.3327441514,
0.3766084313,
0.0140640028,
-0.1043351665,
-0.3237962723,
0.3023699224,
-0.2443419099,
-0.3178132772,
-0.0696165636,
-0.1488310695,
0.0794269741,
0.0792414844,
0.1160819456,
0.416847229,
0.179506585,
0.2777092457,
-0.3217895031,
-0.0120970011,
-0.0677320883,
0.0181380305,
0.1762457937,
0.0013726429,
0.2247813344,
0.1153100207,
-0.0137180258,
0.278360039,
-0.1971494108,
0.0457342453,
0.2255696654,
0.1472245753,
-0.0683516189,
-0.4450111091,
0.3316786885,
-0.2376500219,
0.1782501936,
0.122090131,
0.0174171422,
0.2728701532,
-0.1368840635,
0.0763015077,
0.135009259,
0.450481385,
0.0766144022,
0.2161705941,
-0.0247607566,
-0.4326867163,
-0.2301256061,
-0.0211266074,
-0.2638639808,
-0.2799151242,
0.2115960866,
-0.4132234454,
0.0817955732,
0.188724041,
0.2074568123,
0.0813947469,
0.232884109,
0.3495492935,
-0.0828318745,
0.6517192721,
-0.1666289121,
-0.0071177809,
-0.00037475,
-0.1914359778,
-0.1143669933,
0.0506459139,
-0.2767644823,
-0.076061219,
0.1437414587,
0.2027590424,
0.0762583986,
-0.0086086802,
-0.3400784433,
-0.2441245168,
-0.6714410782,
0.0762960389,
0.1519193798,
0.0577861406,
0.0029210031,
0.0193791352,
0.4107503891,
-0.0264357794,
-0.0868314579,
-0.0315064006,
0.5220623612,
-0.0951065421,
0.2493906915,
-0.1078799963,
-0.0365837887,
0.0866006091,
0.2252971828,
0.112164706,
0.1787577122,
0.2441753447,
-0.023283381,
-0.0803796798,
-0.3961846828,
0.0118820099,
-0.0368465632,
0.3093239069,
-0.0959337354,
-0.177204445,
0.4233988822,
-0.1610395908,
-0.0174166579,
-0.2303727567,
-0.1522229314,
-0.0341775082,
0.022478871,
0.0635859072,
0.2688586414,
-0.169995442,
0.1525308341,
-0.4189008176,
-0.3468064666,
0.3461505473,
0.1341480315,
0.1633358747,
-0.2418625057,
-0.0921134502,
-0.2322885543,
-0.2644002438,
-0.3277679086,
0.0947526768,
-0.8488113284,
0.4130097926,
-0.1486277729,
-0.3536371589,
-0.0303917583,
0.0645908192,
-0.22825858,
0.5403367281,
-0.3521282077,
0.1787142605,
-0.2025310695,
-0.1195928976,
0.1085028127,
0.0318410844,
-0.2324285507,
-0.7003275752,
0.0002425117,
0.0069478024,
0.2122764289,
-0.1871310323,
0.1414141804,
0.38551265,
-0.0612121895,
0.0452304184,
0.1133167148,
0.6742670536,
0.1244413331,
0.1787573248,
0.0296516921,
0.0931015238,
-0.0170452427,
0.0397600271,
0.0937465504,
0.3169903159,
-0.0764260516,
-0.1842020452,
0.1732452959,
0.0769555867,
-0.2560743093,
-0.3300915956,
0.0518583432,
-0.1199234277,
-0.1267181188,
-0.0537189506,
-0.158223927,
-0.0047135251,
0.1484059989,
-0.0204933006,
0.0621156916,
-0.2487459332,
0.0492592715,
0.0287838485,
0.3928292692,
-0.0162777938,
-0.4690265357,
-0.0255298447,
-0.3079203367,
0.0758050606,
-0.0953144804,
-0.1000260413,
0.052210398,
0.1006634608,
0.0733547807,
0.2640864551,
0.3989117444,
0.0156199215,
0.1200766489,
-0.1917632967,
-0.1950031668,
-0.1973485649,
0.0358568169,
-0.0327311233,
-0.0134561565,
0.2429583818,
-0.1197206378,
-0.3848586679,
0.2900090516,
-0.0171890389,
0.4906187952,
-0.0699082464,
-0.1322181076,
0.1803017855,
-0.0493800603,
-0.2061177194,
0.2111075372,
-0.0840541646,
-0.2146126628,
-0.2539411783,
-0.0784404278,
-0.1251192987,
0.1815261245,
0.0560978428,
-0.1242299229,
0.0518864207,
0.134618938,
0.3988800049,
0.1409565359,
0.1178586259,
0.2378040105,
0.4254065156,
0.2991866171,
-0.1155487895,
0.0455166474,
-0.0836472288,
-0.0475635231,
0.1642213315,
0.0294939466,
0.247663334,
0.3052617013,
0.2623026967,
-0.1150100231,
0.1111807749,
-0.4343549013,
-0.1198330522,
-0.4944822192,
-0.6160656214,
0.4447357953,
0.1657910496,
0.0423179604,
0.4265916944,
-0.2824223936,
0.1392947137,
-0.1379766464,
-0.1551315933,
0.7866643071,
-0.0446680225,
0.0566246994,
-0.4420417547,
0.0823451579,
0.4862218201,
0.0888807029,
-0.0156093417,
-0.1864544004,
-0.5498306155,
-0.1266832948,
-0.1424374133,
-0.1348602772,
0.1910954565,
-0.0513050333,
0.3555554152,
-0.1016653329,
0.2523549795,
0.0963889286,
-0.0012904098,
-0.3779740632,
-0.2204286456,
0.0948167443,
0.07605616,
-0.1214836165,
0.3061074615,
-0.0015227987,
-0.0075029335,
-0.0485645495,
0.09611357,
-0.1955920011,
0.2064881325,
-0.3052037656,
-0.1430627108,
-0.3039152324,
-0.140545249,
0.1190784723,
-0.0109744174,
-0.1744749844,
0.1768083125,
-0.3655034602,
0.2938464582,
0.2110077888,
0.1051476523,
-0.0190238971,
0.1918655485,
-0.2770024836,
-0.0221476797,
-0.0550035089,
0.3291869462,
0.0409176387,
-0.1103691384,
-0.1155575886,
-0.0003948038,
0.1025445238,
0.0863655508,
-0.1962901503,
0.0315901525,
0.0739090815,
-0.1351099759,
0.0788361281,
0.1967618614,
-0.1610275656,
0.3221876025,
0.2844256163,
-0.1205342636,
-0.2411418706,
0.5982015729,
0.1175038144,
-0.1930468976,
0.0567226857,
-0.0242088083,
-0.2109339088,
-0.1459591836,
0.1243496761,
-0.2360054851,
-0.1271968484,
-0.0554683171,
-0.2937463522,
0.3160282671,
-0.0912454054,
-0.0532972477,
0.135304451,
-0.0562691018,
-0.0229642298,
-0.2877103686,
-0.372525692,
0.2079889774,
-0.005392415,
0.1750867516,
-0.1430560052,
-0.0372061543,
-0.0696325302,
0.2916401625,
-0.2089210302,
0.3644317091,
0.130409658,
0.2831204534,
0.2882480025,
0.3495227396,
-0.2443479747,
-0.063334927,
-0.0329831429,
0.2173098624,
-0.0284551159,
-0.1330004483,
0.0020385897,
0.1984715164,
0.1089470685,
-0.333796829,
0.1763234735,
-0.1900526881,
-0.099020578,
0.0433452465,
0.1389492601,
-0.0159240887,
0.2052644491,
-0.3531027734,
0.5082848072,
-0.1798095256,
-0.5356279612,
0.4620232582,
-0.117162928,
0.1306310892,
-0.0761516392,
0.3220212162,
0.3210876882,
-0.122415781,
-0.2100388408,
-0.2230063677,
0.2127709687,
-0.1388965547,
0.3544563651,
0.1668494493,
0.3332600892,
0.2461367995,
0.2445178926,
0.5342576504,
-0.0433651432,
0.2196805477,
0.4412214756,
0.2113069147,
-0.0947919413,
0.0131523144,
-0.0713929534,
0.0731759071,
-0.0042211004,
0.0684015602,
-0.0928287879,
-0.3367201388,
-0.180469662,
-0.3591628969,
0.1765956432,
0.249660477,
0.2280018032,
0.7436214685,
0.2074041069,
-0.2657698095,
-0.3291835189,
0.2548860312,
0.1826938689,
0.2631573379,
-0.0423869379,
0.3229689896,
0.1779692471,
-0.000218927,
0.0075090602,
-0.7347242236,
-0.1277994663,
0.5495401621,
-0.0863283724,
0.1695786864,
-0.0750987232,
0.0266849808,
0.129477948,
-0.1292869151,
-0.1657754928,
0.2464841008,
0.2347251177,
0.0446924493,
-0.0985675156,
-0.2884526253,
-0.010883485,
0.4674576819,
0.026497703,
-0.3120700419,
0.2790997624,
0.2482137233,
0.038343519,
-0.2654879987,
-0.0185956601,
0.1521427631,
0.1460034847,
-0.4191281199,
-0.1224380806,
-0.0334552079,
0.0014861107,
0.4145697057,
0.0735967979,
-0.1740531772,
0.0690133348,
0.218470335,
0.0576529726,
0.2066494673,
0.0722353235,
-0.1061973944,
0.0054668789,
0.3811669052,
-0.0179980546,
0.3822940886,
0.0661658496,
-0.11204613,
0.234736979,
-0.152788192,
-0.1883720607,
-0.4321074486,
-0.2551420331,
0.1460383683,
0.0544812419,
-0.0776701644,
-0.1592255682,
-0.0845691636,
0.1961086392,
-0.2716819346,
-0.3965240717,
0.1675685942,
0.3351818621,
0.0275686607,
-0.2927801907,
0.3786402345,
0.2864267826,
0.1504723579,
-0.2301664948,
-0.5346700549,
-0.1499331743,
0.0194740836,
-0.2891178429,
0.303863585,
0.0546504073,
0.1894908398,
0.0181694422,
0.2077966779,
-0.239220351,
0.1931412518,
-0.1128475443,
0.4548942447,
-0.145768553,
-0.1725872159,
-0.049734626,
0.5787014365,
-0.1278288215,
-0.4009833932,
0.3574506044,
-0.0456189774,
-0.0238703322,
0.2780324519,
0.0456855521,
0.0740412399,
-0.2255824506,
0.1281097382,
-0.1869565248,
0.2994701564,
-0.0536472909,
0.123494938,
0.0335418954,
-0.1741550118,
-0.1832647771,
-0.0315529741,
0.1947118491,
-0.0502502173,
0.1012264118,
0.1653435081,
0.0438491218,
0.0073731602,
-0.1048274562,
0.2365268767,
-0.1300775111,
-0.4823199809,
-0.1868064255,
0.1812530756,
0.1828770339,
-0.0484648608,
-0.3840536475,
-0.3502146602,
-0.12702097,
-0.0526525714,
0.5525507331,
-0.1313405931,
0.1620956659,
-0.4143199921,
0.3236409724,
0.2318765819,
0.1669837534,
-0.1339511424,
0.1610230356,
0.4107993543,
-0.3414476812,
0.2553165853,
0.1687321514,
0.2022463083,
-0.1833289266,
-0.1224539354,
0.1712696403,
0.2516165376,
-0.440536797,
-0.2349564433,
-0.331454128
] |
https://github.com/huggingface/datasets/issues/2161 | any possibility to download part of large datasets only? | thanks a lot Quentin, this would be really really a great feature to have
On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***>
wrote:
> We'll work on dataset streaming soon. This should allow you to only load
> the examples you need ;)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ>
> .
>
| Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks | 79 | any possibility to download part of large datasets only?
Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
thanks a lot Quentin, this would be really really a great feature to have
On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***>
wrote:
> We'll work on dataset streaming soon. This should allow you to only load
> the examples you need ;)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ>
> .
>
| [
-0.4333570898,
-0.453487128,
-0.0487323664,
0.2667761445,
0.1081290692,
0.2431802452,
-0.1623354107,
0.4673763812,
0.0734753683,
0.3738211095,
-0.3642460704,
-0.2017759383,
-0.0959115103,
0.4577916563,
0.3195568025,
-0.147272557,
-0.1357190758,
0.2194816917,
-0.2238367796,
-0.1688052118,
0.0174045675,
-0.2593171299,
-0.1123771369,
-0.2532624304,
0.0350643806,
0.0898536891,
-0.0617153682,
-0.0844497383,
-0.3761278689,
0.1701031029,
0.1983957589,
0.2140854299,
0.2366962284,
-0.0048215305,
-0.0001184534,
-0.2889574766,
0.2554899156,
-0.1432122886,
-0.1864688843,
-0.0577486567,
-0.1817247868,
0.1063679755,
-0.2372536957,
-0.2628687918,
-0.0091607207,
0.1348175555,
0.0690666512,
-0.0218831897,
0.3579902351,
0.0345514752,
0.113714166,
0.1012044474,
-0.1499211937,
-0.107581228,
0.272598803,
0.1650010347,
-0.0292275939,
0.0600774027,
0.5326682925,
0.2669932246,
0.129460901,
0.1173669919,
-0.0027755967,
0.2834874988,
-0.0907344893,
-0.1894121468,
-0.2640940249,
-0.6127958894,
0.2104033977,
0.8935747147,
0.5572634935,
0.0032651967,
-0.236548841,
-0.4016394615,
0.1302788258,
-0.3426570892,
-0.1672673225,
0.5966562033,
-0.3093203604,
0.1920765042,
-0.5190603733,
-0.1575799733,
-0.1254056841,
0.2723095119,
-0.2245434225,
-0.0139281712,
-0.1768505573,
-0.0458900295,
0.4784287512,
-0.0008329137,
0.1448494643,
-0.0473281443,
-0.1877049357,
0.2302682698,
-0.2143139988,
-0.4565864205,
-0.2157701552,
0.2906160951,
0.5468569398,
0.247587055,
0.0848187059,
0.1489576995,
-0.0171019547,
-0.0635391772,
0.4915538132,
-0.2148905993,
-0.2800327241,
0.1818934381,
0.3234028518,
0.0830502585,
0.1106130704,
-0.0376578979,
-0.0844545886,
0.2453264296,
-0.5971103311,
-0.012254064,
-0.2203571051,
-0.4416053891,
0.0325089581,
-0.2539960742,
0.1385338753,
0.1137558743,
-0.0686256886,
0.165299207,
0.0227537379,
0.159240365,
-0.3400884271,
0.0705232024,
-0.0038737995,
-0.4409329593,
-0.1329128146,
-0.0432236567,
0.0712559894,
0.1238531843,
0.4013693035,
-0.342019856,
0.3170060515,
-0.1057772189,
0.3391905427,
0.1396169364,
-0.110720031,
-0.1596132964,
-0.0881127864,
0.1561317593,
0.0169003792,
0.2920122743,
-0.0551254191,
0.4835693538,
-0.1643658727,
0.2821947336,
-0.1610150784,
-0.2401706427,
0.1469040215,
0.0407236591,
-0.3738725185,
-0.061870493,
-0.508256495,
0.3586715758,
-0.1699187607,
0.0181913804,
-0.0189900696,
0.1638077945,
-0.2160219401,
-0.0025573135,
0.2322250009,
0.2576270103,
-0.2118472457,
-0.175251931,
-0.1312909126,
-0.139586404,
0.3125016391,
0.3773927987,
-0.2835657299,
-0.2201151997,
-0.2215555906,
-0.0606911555,
0.1919155419,
0.0454828106,
-0.4724434614,
0.3615726531,
0.0099890307,
-0.0307090357,
0.047857143,
0.1477380693,
0.613612771,
0.0301968511,
-0.1679207832,
0.5325425863,
-0.0892710462,
0.080893673,
-0.0496493652,
-0.3678531945,
-0.1579562873,
0.2755126059,
0.1951166242,
0.4164229631,
0.1727065444,
-0.040259432,
0.4430025816,
-0.2201927006,
0.3368227184,
0.1818814874,
0.1613425016,
-0.0847180858,
-0.1551969051,
-0.4076609313,
-0.2964690328,
0.2118468136,
0.1321217269,
-0.4998217523,
0.3217770755,
-0.2148118317,
0.0395305492,
-0.3210994899,
0.4084580839,
0.0056836014,
-0.1502961814,
-0.3171792924,
0.3548722267,
-0.154644385,
-0.3655128181,
-0.0756152421,
-0.1111737341,
0.1478280723,
0.0036148331,
0.1395067722,
0.4277281165,
0.1841938943,
0.2695964277,
-0.2078373283,
0.0122560384,
-0.1331464052,
0.0429859832,
0.1440230608,
-0.0245184526,
0.1365621388,
0.0935289115,
0.0826348737,
0.325661242,
-0.0734844059,
0.0104412036,
0.089477323,
0.108078517,
-0.0458220951,
-0.4931146502,
0.4346592426,
-0.2044018358,
0.1076001003,
0.0549513437,
0.0469648838,
0.2766541541,
-0.1762055904,
0.0548627228,
0.0512985811,
0.4707569182,
0.0086869085,
0.1812574565,
-0.0498719662,
-0.4779138267,
-0.1523170024,
0.095054023,
-0.1897296309,
-0.2867540419,
0.2613024116,
-0.3662055433,
0.1668247283,
0.1373099387,
0.1499003619,
0.1633581221,
0.1919974089,
0.3767033219,
-0.0624542162,
0.6231995821,
-0.1187392473,
-0.055643443,
-0.044418361,
-0.2490234673,
-0.0204354301,
0.0649899617,
-0.1989004761,
-0.133872062,
0.1765612811,
0.1989264041,
0.1194392368,
-0.0303289145,
-0.3401845992,
-0.3156103492,
-0.5664641261,
0.0017027223,
0.1305922866,
-0.0309442654,
0.0081282565,
0.0766008422,
0.4942080379,
-0.0850625783,
-0.1224119291,
0.0192587338,
0.5008318424,
-0.1121079251,
0.218301177,
-0.1350678653,
0.0262116771,
0.1769275665,
0.1761349887,
0.0995413065,
0.1548148096,
0.2831911147,
0.0096906573,
-0.1914437264,
-0.4029518366,
-0.016604865,
0.0456122607,
0.1962954551,
-0.0449831933,
-0.0982209742,
0.3928932548,
-0.1275785565,
0.0537218861,
-0.1555532217,
-0.144616127,
-0.1366893649,
-0.0164343771,
0.056849882,
0.307140857,
-0.2456606776,
0.1228186861,
-0.3954453468,
-0.3361865878,
0.5191754103,
0.2037495673,
0.1333259642,
-0.1553138047,
-0.1250763088,
-0.1931597888,
-0.3779399693,
-0.3520567119,
-0.0067364709,
-0.814429462,
0.3607502878,
-0.1228070408,
-0.3429989517,
-0.0961320922,
0.0406077541,
-0.2655553818,
0.473480165,
-0.4235666692,
-0.0079283742,
-0.2472911328,
0.0260359813,
0.1307427287,
0.0601336174,
-0.0914830714,
-0.7272816896,
0.0136253042,
0.0473925248,
0.0997407287,
-0.169402793,
0.188652277,
0.3197816014,
-0.0790270939,
0.0955646858,
0.0600274093,
0.7942326665,
0.2001703233,
0.2377907634,
0.0253898688,
0.0094835535,
0.1083214059,
-0.0896690637,
0.0220874641,
0.31233114,
-0.0865290985,
-0.1279289871,
0.171114251,
0.0905009881,
-0.1765899509,
-0.2894427478,
0.1126205325,
-0.0648025647,
-0.2297687531,
-0.0853302628,
-0.0360888764,
-0.0486707203,
0.1773182154,
-0.0450429507,
0.1011380032,
-0.2055662721,
0.0768795684,
0.1030451804,
0.4261227846,
-0.0032626847,
-0.5111986995,
0.0256011598,
-0.41514045,
0.0298555903,
-0.1008165404,
-0.1754585057,
0.0461766534,
0.104551971,
0.1455367655,
0.2749372423,
0.6094440818,
0.1287353933,
0.0785775185,
-0.1902300268,
-0.3172527552,
-0.1819414049,
0.0737121478,
-0.0069059716,
-0.0538485684,
0.2234913856,
-0.0362248681,
-0.4989299774,
0.2183306664,
0.1101667807,
0.4760250449,
-0.0809594691,
-0.1244959161,
0.1341005862,
-0.0801892057,
-0.3476271629,
0.2703023255,
-0.0027734921,
-0.1474336535,
-0.2224280834,
-0.1043477356,
-0.078663528,
0.1369884163,
-0.0433473252,
-0.1367670447,
0.0629207715,
0.1720432937,
0.5014216304,
0.2424036115,
0.0527433604,
0.1936716884,
0.5433933735,
0.2950319946,
-0.1828600615,
-0.0381432697,
-0.0484643541,
-0.06363298,
0.2625676394,
-0.0025892241,
0.3213337064,
0.3059742153,
0.2316221744,
-0.192580387,
0.0793707296,
-0.3739944696,
-0.0820898041,
-0.4709224403,
-0.561463356,
0.447544843,
0.2028791457,
0.1062163115,
0.4346661866,
-0.1795486659,
0.1982416958,
-0.1883296221,
-0.2163233906,
0.8998524547,
-0.090333499,
0.1644766033,
-0.4076109231,
0.1434991807,
0.5279066563,
0.0885770321,
0.0377222076,
-0.2836924493,
-0.4837167263,
-0.1054599956,
-0.1152039915,
-0.1306111515,
0.1632207036,
0.0144833885,
0.3080940545,
-0.0136225075,
0.2355788052,
-0.1081839725,
-0.0506039374,
-0.3240155578,
-0.2965845764,
0.0336050056,
0.0432381146,
-0.0538075715,
0.4086192846,
0.0487388186,
-0.0098851295,
-0.0367717482,
-0.0023935568,
-0.2605626285,
0.1173679978,
-0.3374472857,
-0.1653789729,
-0.1736393273,
-0.1403457075,
0.0817820579,
-0.0643987656,
-0.0680084154,
0.2243032455,
-0.4172194004,
0.1950129271,
0.087579228,
0.0486803278,
-0.0289875511,
0.1295097619,
-0.2384094447,
-0.0165445488,
-0.0272005312,
0.2514557242,
0.0822012052,
-0.1809630394,
-0.0513045676,
0.0272662621,
0.0684536472,
0.0034612832,
-0.1599869877,
0.0955807567,
0.1455599964,
-0.1736116856,
0.0297265109,
0.2340492159,
-0.206310153,
0.2809706032,
0.2066078782,
-0.0870755166,
-0.2332040668,
0.6446014643,
0.0592905544,
-0.1178617999,
0.0574287437,
0.0331479199,
-0.1950782537,
-0.1573961675,
0.0382625647,
-0.2670314014,
-0.2920297682,
0.0826943442,
-0.1529106349,
0.3014318645,
-0.166444391,
0.0802087113,
0.1290065348,
-0.0819446966,
-0.0128520392,
-0.2683205009,
-0.3731099665,
0.1780237705,
-0.0694723204,
0.2584632337,
-0.0643847659,
0.0884526372,
-0.1560299397,
0.2733322978,
-0.1831398755,
0.375169158,
0.0650060475,
0.216741249,
0.4075686336,
0.2854743898,
-0.1137748435,
-0.0564872175,
-0.0738375708,
0.3291240036,
-0.1099062115,
-0.1135167778,
-0.0640319064,
0.1994958073,
0.0789245069,
-0.3184597492,
0.3013945818,
-0.0749774575,
-0.175239116,
-0.0162113253,
0.2714852095,
0.0736442357,
0.2812748849,
-0.3258122802,
0.4892232716,
-0.157313928,
-0.5090850592,
0.5505746603,
-0.0986974686,
0.1000481471,
-0.0494873971,
0.3082484007,
0.1302589476,
-0.0771681666,
-0.1866599619,
-0.2183683664,
0.2284556031,
-0.1828157306,
0.3463940024,
0.1696284562,
0.2244617641,
0.3715804815,
0.3263930082,
0.4821105599,
-0.0676551387,
0.2630617917,
0.4612115622,
0.1509506702,
-0.1444545835,
0.0062382333,
-0.0243895389,
0.0559239462,
0.0369054563,
0.0973556191,
-0.0270196255,
-0.2763560116,
-0.111554727,
-0.3886426389,
0.1320343316,
0.2663981318,
0.2323324829,
0.7065258622,
0.1635610312,
-0.2393030077,
-0.1509809792,
0.2523434162,
0.1701167822,
0.253554523,
-0.1003314257,
0.1628602892,
0.0309789591,
-0.0316494964,
-0.058455728,
-0.8065459728,
-0.0191519763,
0.5419052243,
-0.0379740559,
0.1781445742,
-0.1530633122,
0.1885349452,
0.0250428785,
-0.1017908007,
-0.2043035477,
0.3760122061,
0.2479344457,
-0.0519263111,
0.0246596038,
-0.259555161,
0.0205931701,
0.5150588751,
0.0020620266,
-0.3844748735,
0.3281679749,
0.1726402938,
0.0208293535,
-0.3904667497,
-0.0901895836,
0.1719793081,
0.1882952005,
-0.3696430624,
-0.1327727735,
-0.0743302926,
0.0047087227,
0.4083340764,
0.1221460849,
-0.1973830312,
-0.0800894648,
0.3171684742,
0.0733503103,
0.1180299893,
0.1058225259,
-0.1125661507,
0.0590077043,
0.2582850456,
0.0294448845,
0.4560611248,
0.0057618502,
-0.0917913392,
0.1343683004,
-0.1761390716,
-0.1272947937,
-0.5407749414,
-0.2045725137,
0.1228743494,
0.05780055,
-0.1624275893,
-0.1606599092,
0.0118192909,
0.0922973156,
-0.2890815139,
-0.377273649,
0.1872645319,
0.301764667,
0.0084913559,
-0.2976929545,
0.3289003074,
0.3352463245,
0.0406832695,
-0.2348482162,
-0.4091714323,
-0.1602902114,
0.0041140816,
-0.2967252135,
0.3039313853,
0.0120668365,
0.2342776805,
0.0612702817,
0.2136323601,
-0.2468576282,
0.1188303679,
0.0262548961,
0.4117543399,
-0.1158750728,
-0.1725892872,
-0.1143703982,
0.490988493,
-0.0807859674,
-0.3751322627,
0.3062752485,
0.0404986516,
-0.0982872769,
0.253768146,
0.1508229375,
-0.0326509252,
-0.2881295383,
0.1547315121,
-0.1046459302,
0.201262325,
-0.0296062008,
0.0327396393,
-0.0694689825,
-0.1801567078,
-0.3215426207,
-0.0871653706,
0.1265007257,
0.0232675876,
0.0851309299,
0.1031202525,
-0.0183849428,
0.0764909089,
-0.00633951,
0.212814182,
-0.0935363322,
-0.3386486769,
-0.1426964104,
0.1622716635,
0.178421855,
0.0436685681,
-0.3368484974,
-0.2921509445,
-0.0895115063,
-0.1395900398,
0.618489027,
-0.1524661332,
0.1947829574,
-0.3990027905,
0.3505751491,
0.2527207136,
0.0121101737,
-0.2960346937,
0.1454516053,
0.3403012156,
-0.3048077822,
0.2326016128,
0.2621839046,
0.0720755085,
-0.2393235713,
-0.1105467156,
0.3002935946,
0.3226250112,
-0.433445096,
-0.100886561,
-0.3000038862
] |
https://github.com/huggingface/datasets/issues/2161 | any possibility to download part of large datasets only? | Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error:
```
>>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-21-1eedab26cff1> in <module>()
----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
3 frames
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
339 if value is not None:
340 if not hasattr(builder_config, key):
--> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.")
342 setattr(builder_config, key, value)
343
ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key.
```
UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package:
```
!pip install git+https://github.com/huggingface/datasets.git
!pip install datasets[streaming]
``` | Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks | 123 | any possibility to download part of large datasets only?
Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error:
```
>>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-21-1eedab26cff1> in <module>()
----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
3 frames
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
339 if value is not None:
340 if not hasattr(builder_config, key):
--> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.")
342 setattr(builder_config, key, value)
343
ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key.
```
UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package:
```
!pip install git+https://github.com/huggingface/datasets.git
!pip install datasets[streaming]
``` | [
-0.4476093948,
-0.3885074854,
0.0095246946,
0.3701238632,
0.1067442074,
0.1929702312,
-0.0340351164,
0.5148776174,
0.0819870085,
0.2324685901,
-0.4534534812,
-0.1990630925,
-0.1784165055,
0.4000231028,
0.3254312575,
-0.1704495102,
-0.1151954532,
0.1878745407,
-0.0883974954,
-0.1764553189,
-0.0659910068,
-0.0662002787,
-0.1601547301,
-0.1373347342,
0.0878681093,
-0.0127934515,
-0.0002601026,
-0.0606896691,
-0.3952773809,
-0.0482897386,
0.2791904211,
0.1899071783,
0.1114026755,
0.1363452077,
-0.0001268418,
-0.1690049767,
0.3633392751,
-0.1690450907,
-0.3607493639,
-0.1897484213,
-0.1767890304,
0.0864564776,
-0.0258890297,
-0.1968067437,
0.0642867461,
0.0536654741,
0.0196071267,
-0.0202125274,
0.4206507504,
0.0790273398,
0.0756612048,
0.2862712443,
0.1064427122,
0.1084071174,
0.1896715015,
0.1896166056,
0.042421855,
0.1744013429,
0.263699919,
0.2539018989,
0.054478433,
0.267432034,
0.0258966554,
0.3122109175,
0.0494103618,
-0.1832497418,
-0.1826816648,
-0.6686460376,
0.1587406844,
0.6345416307,
0.2820598483,
-0.0176112857,
-0.5097762942,
-0.4816656113,
0.1284910738,
-0.6643294096,
-0.0680878311,
0.6299395561,
-0.4362097681,
0.0515865162,
-0.6224969029,
-0.257705301,
-0.2082428485,
0.3043960929,
-0.1951347291,
0.163715139,
-0.2123504281,
0.1319189966,
0.2644872963,
-0.0100986445,
0.0959199741,
-0.2319995165,
-0.0489966683,
0.3651181459,
-0.1721384674,
-0.3230683506,
-0.1300765723,
0.2823478281,
0.3912603259,
0.2919586599,
-0.0171136949,
0.1264040172,
0.1318631023,
-0.0820956081,
0.5853520632,
-0.1074894443,
-0.3332638741,
0.2814319432,
0.3189248443,
0.3265119493,
0.135591194,
-0.0895510539,
-0.1213615164,
0.2551878989,
-0.3615018725,
-0.0669894442,
0.0641151071,
-0.3408075273,
-0.0459388196,
-0.1280487776,
0.0305281635,
-0.0864464864,
0.000025363,
0.2266819924,
-0.0999817476,
0.2417339832,
-0.2276192755,
0.0628775135,
-0.0823991299,
-0.2827229202,
-0.0952995047,
0.0019260279,
0.1059898213,
0.1242708117,
0.2675987184,
-0.5731207132,
0.3885336816,
-0.1137725934,
0.5026560426,
0.0964688137,
-0.1554784626,
-0.1604900956,
0.0389187224,
0.3139610887,
0.0650515184,
0.4057743847,
0.0124905808,
0.2547515333,
-0.200249508,
0.2239142507,
-0.1098951027,
-0.4199580252,
0.0124074267,
0.0053587751,
-0.3765230775,
-0.0404927358,
-0.397038579,
0.2838449478,
0.0285333209,
0.1067954302,
-0.0624934137,
0.1174524352,
-0.0911437273,
-0.0263898987,
0.3707152009,
0.3494338691,
-0.0923916921,
-0.2054371983,
-0.1573993564,
-0.07376609,
0.2902520299,
0.4422824085,
-0.3034175932,
-0.1268011332,
-0.2115474939,
-0.2598552406,
0.3551360369,
-0.0856346115,
-0.3528119922,
0.3833650053,
0.1783618182,
0.1554276645,
0.1417038292,
-0.0104907295,
0.6427507401,
0.0784270167,
0.016719006,
0.4966118634,
-0.1728042066,
-0.0436565615,
-0.0887444168,
-0.3199158609,
-0.1930648983,
0.3292202652,
0.1675104499,
0.343772769,
-0.0655094832,
0.0158569794,
0.4304686785,
-0.0927520469,
0.4422920644,
0.1339258403,
0.2232975662,
0.0517349951,
-0.2251438498,
-0.4198056459,
-0.3900241852,
0.2023003101,
0.2302108109,
-0.39736408,
0.1322657019,
-0.1938215047,
-0.0703587681,
-0.2523658276,
0.1331310868,
-0.1378819346,
-0.155659318,
-0.1328212321,
0.3140977621,
-0.1343352646,
-0.5509427786,
-0.0244984291,
-0.0420948304,
0.2612621188,
-0.1101007983,
0.2821856737,
0.178155303,
-0.0102131385,
0.2728768885,
-0.159221828,
-0.0508327261,
-0.1912720501,
-0.0481920987,
0.2164039463,
-0.0373283997,
0.0216385443,
-0.1655333936,
0.0964831635,
0.3940750659,
-0.0028957161,
-0.0280514956,
0.1597698778,
0.0947018415,
-0.0528161153,
-0.2889882624,
0.5896885991,
-0.0793756694,
0.1561118662,
0.2797576487,
0.062993452,
0.2583140731,
0.0245997105,
-0.1124245301,
-0.0111213606,
0.3463191986,
-0.1293138415,
0.3581710756,
-0.1327631921,
-0.5334998965,
-0.2308389395,
0.3453399539,
-0.1733858138,
-0.3991056979,
0.2580746412,
-0.2973136902,
0.1224728227,
0.1615038067,
0.0103756776,
0.0803768188,
0.1109910905,
0.3299812675,
0.0556582473,
0.4505045116,
-0.032496728,
0.0974356681,
0.1050538272,
-0.2600083053,
0.0505794473,
0.0576698035,
-0.1339038014,
-0.3236029446,
-0.0294128954,
0.149306342,
0.2342585772,
-0.1711522043,
-0.1821261644,
-0.2360208035,
-0.4625362456,
-0.1564717293,
-0.115861401,
-0.1308815181,
-0.0992544815,
-0.0840451121,
0.6108602285,
0.0186105352,
0.0107477009,
-0.0253541823,
0.1656913012,
0.0254364219,
0.2290915549,
-0.2243381441,
0.0105292564,
0.1550067961,
0.0568730682,
0.1393431276,
-0.0375013202,
0.3074812293,
-0.0599756725,
-0.2525286674,
-0.2569154203,
-0.0906150341,
0.0830259994,
0.0150332199,
-0.0439835191,
0.0417104438,
0.5142203569,
-0.180791989,
-0.1234095469,
0.0148858801,
-0.0761071146,
-0.1766091734,
-0.0104600033,
-0.0691787302,
0.2297688276,
-0.0946159661,
0.041986037,
-0.4150297344,
-0.3144566715,
0.5148339868,
0.3765214384,
0.2471688986,
0.0415060632,
-0.1072000712,
-0.1911927164,
-0.456502378,
-0.1922222972,
0.0175261684,
-0.864130199,
0.3706217706,
-0.0480124392,
-0.2978563607,
0.0169300549,
0.0122652268,
-0.1107024923,
0.364022404,
-0.3850355446,
0.1171998158,
-0.2212019563,
0.206400007,
0.0881160423,
0.1745103896,
0.0010336095,
-0.5461443067,
0.1023331657,
0.0984678864,
0.0187482405,
-0.2533030808,
0.2585523725,
0.2878215015,
-0.1134537309,
0.3037967682,
0.0108646182,
1.0486693382,
0.3577300608,
0.1942339838,
0.1153860763,
-0.0145857986,
0.1851330847,
-0.1911917925,
-0.145861879,
0.3457380831,
-0.0789471418,
-0.0668451488,
0.1051469818,
0.0415117107,
-0.1388583034,
-0.395480901,
0.2484029531,
-0.0438911803,
-0.2528287172,
-0.1172270253,
-0.2193704695,
0.0995957553,
0.0906496719,
0.0542366505,
0.1259043366,
-0.1767573506,
-0.1605111808,
0.2112128437,
0.4497783482,
0.0769431219,
-0.2806781828,
-0.0941866338,
-0.5484695435,
-0.0183812641,
-0.0968111604,
0.0207691789,
0.0716718584,
0.1369583905,
0.1776128113,
0.1999529749,
0.4251607358,
0.0150516843,
-0.0851412416,
-0.1003860086,
-0.39122352,
-0.3792964518,
-0.05833707,
-0.0616399534,
0.0325775333,
0.2290617824,
0.215902999,
-0.5989775658,
0.1283589005,
0.2132703066,
0.4295917153,
-0.0855615512,
-0.0359848961,
-0.1612869203,
-0.2517715096,
-0.4768916368,
0.3392895758,
-0.0018541816,
-0.0085675493,
-0.1374035925,
-0.1114352271,
0.0696499646,
0.2064139098,
-0.033282727,
-0.0765376315,
-0.0547529794,
0.1620873958,
0.5258150101,
0.2096887529,
0.1231717914,
0.1552081704,
0.5412435532,
0.2921208441,
-0.3287690878,
-0.1230676845,
0.1314023435,
0.0337636173,
0.2663975656,
-0.0707629099,
0.2665628493,
0.4561999142,
0.2169490606,
-0.0569784641,
0.043073833,
-0.111779429,
-0.0314423628,
-0.4366401434,
-0.6649061441,
0.183385849,
0.0289564412,
0.1719991416,
0.5021620393,
-0.0893523842,
0.0872228444,
-0.1249870062,
-0.3470996916,
0.8403220773,
0.0230594035,
0.2463888228,
-0.0838517174,
-0.0915785506,
0.4362729788,
0.3076656163,
0.0302493926,
-0.3009408116,
-0.2791677713,
-0.0544980839,
-0.0897180364,
0.0475792363,
0.0608512275,
0.0047927508,
0.4569302201,
0.0234943964,
0.4431340992,
-0.1506612003,
0.09437906,
-0.3789505363,
-0.2833105922,
-0.1951293498,
-0.0439591557,
-0.2036378384,
0.5190585852,
-0.0276787635,
-0.0529741049,
0.0900138989,
-0.1041015536,
-0.2623255551,
-0.0305284224,
-0.311088264,
-0.0773402676,
-0.1820992678,
-0.332074821,
0.0449803583,
-0.2058793306,
-0.1879914105,
0.0597038418,
-0.2648639083,
0.174445793,
0.0788606927,
0.0530683063,
-0.0842141137,
0.1663141549,
-0.1594960243,
-0.0951340422,
-0.0796269327,
0.2896770239,
0.0260673035,
-0.1259271055,
0.0134981535,
-0.0432059392,
0.2284059078,
0.0498596616,
-0.0776966363,
0.0118711051,
-0.0022438166,
-0.247599259,
-0.0125002693,
0.0600458644,
-0.2825705409,
0.2127389461,
0.1388470978,
-0.0268461425,
-0.2350722253,
0.7145008445,
0.0906660184,
0.0234098714,
0.2410630137,
-0.0689658076,
-0.238234818,
-0.0698972791,
0.0650196746,
-0.1627771705,
-0.3265154064,
0.1060188934,
-0.0822250694,
0.4988996387,
-0.3390577435,
0.0803493783,
0.1533049643,
-0.0455193892,
-0.0521168858,
-0.2859503031,
-0.4637410343,
0.2339496166,
-0.0310895499,
0.144718349,
-0.209766373,
0.2193262279,
-0.0144758755,
0.202139616,
-0.1464585662,
0.1956730187,
0.0090668602,
0.2211419344,
0.3122572601,
0.1734318584,
0.0412188172,
0.0369422212,
-0.0457014889,
0.1359826028,
-0.1084388793,
-0.0496177003,
-0.0313956104,
0.2314130217,
0.1327960491,
-0.5099074841,
0.3159249425,
0.0068711857,
-0.3046577275,
0.0213365983,
0.3179291189,
0.0578482747,
0.203161791,
-0.1624802947,
0.4404973686,
-0.0921648666,
-0.4527811706,
0.2782371044,
-0.1194798201,
0.2883816361,
-0.0676691309,
0.2628518641,
0.20848535,
-0.1120107174,
-0.2517090142,
-0.2253291607,
0.0856988281,
-0.1128219068,
0.4809917212,
-0.0277794525,
0.1876185685,
0.2091202736,
0.5395690799,
0.6694286466,
-0.0530167222,
0.2618054152,
0.44467327,
0.0809474513,
-0.1898658574,
0.1110779196,
-0.0003322322,
-0.0231846757,
0.0412072688,
0.0932053179,
-0.104345113,
-0.2828886807,
-0.2034033239,
-0.2817725539,
0.1338913143,
0.2542671561,
0.2420219034,
0.7089779377,
0.1716318429,
-0.1210034564,
0.0419050306,
0.2615546286,
0.1352960169,
0.2326260507,
-0.2285069078,
0.1435537785,
0.0493177362,
0.010253462,
0.028356187,
-0.6977854967,
-0.126225546,
0.3491156995,
0.0734072551,
0.1799189895,
-0.1520057768,
0.2228631973,
-0.0722612888,
-0.0845612958,
-0.2514721751,
0.4807583392,
0.2058863044,
-0.12140809,
-0.050566826,
-0.2208911628,
-0.0029637578,
0.4985957444,
-0.0006189983,
-0.3852561712,
0.3646080494,
0.2382335067,
-0.0054039885,
-0.5793505907,
-0.0796300992,
0.119518064,
0.2672904432,
-0.3746912777,
0.1289030164,
0.1669923514,
0.0234022327,
0.2007476538,
0.2626672387,
0.0054998514,
0.0036873745,
0.1897205561,
0.1832105815,
0.2477823347,
0.0157303642,
-0.0511975251,
0.0728415102,
0.2460761666,
0.1826986372,
0.4314574599,
-0.0748722702,
-0.0686683208,
0.075302802,
-0.1466520429,
-0.2283031791,
-0.5099492669,
0.042351,
-0.1217956319,
-0.0097376853,
-0.1389461756,
-0.1062560976,
-0.16948165,
0.0534893647,
-0.1733477414,
-0.1776192337,
0.0898383036,
0.1535762697,
-0.0405296423,
-0.2815025747,
0.4673684537,
0.30161798,
0.0266280901,
-0.2878843844,
-0.4712395072,
-0.2998331189,
-0.0577356443,
-0.2856626511,
0.177712664,
0.0457237214,
0.3271950781,
-0.1426303983,
0.149818182,
-0.1828515381,
0.0241617355,
0.030470619,
0.434877485,
-0.0860758871,
-0.1851687282,
-0.0583441667,
0.4265658557,
-0.128264904,
-0.2810759544,
0.3487746716,
-0.0216724481,
-0.1689997613,
0.2171523273,
0.1006582528,
0.0364660025,
-0.2001004964,
0.0856567621,
-0.0234421361,
0.3311544657,
-0.0020099438,
-0.0788415074,
0.0014259451,
-0.1774408668,
-0.3367545903,
0.1356219649,
0.0134055717,
0.2751173675,
0.2030149549,
-0.0970653221,
-0.2472082376,
0.2357613593,
-0.0930081233,
-0.195949778,
-0.0243992489,
-0.25969401,
-0.1272241026,
0.2460626066,
0.1297125816,
0.1128144637,
-0.3708872795,
-0.2948183417,
-0.2648234963,
-0.2004150152,
0.7916321754,
-0.2839848697,
-0.0090403445,
-0.3863787353,
0.2918314934,
0.245966509,
-0.0674033165,
-0.3543948233,
0.2752072513,
0.4130686522,
-0.3291515708,
-0.0016189385,
0.271564126,
-0.0741295666,
-0.0661869496,
-0.0646295995,
0.3913559616,
0.2036433518,
-0.4596035779,
-0.108976528,
-0.2307866812
] |
https://github.com/huggingface/datasets/issues/2161 | any possibility to download part of large datasets only? | Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :) | Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks | 19 | any possibility to download part of large datasets only?
Hi
Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :) | [
-0.4722627997,
-0.4255562127,
-0.113186948,
0.1344198585,
0.0880463496,
0.1738645732,
-0.3542889357,
0.3757151663,
-0.0502583832,
0.3286558986,
-0.4129244983,
-0.2279314995,
-0.1485812217,
0.3793703914,
0.2008759379,
-0.0660859942,
-0.1095424294,
0.2192228884,
-0.1483976692,
-0.1135962158,
0.0163902398,
-0.2493555248,
-0.2375251353,
-0.3178961873,
0.2018006593,
0.0277644005,
-0.048513025,
-0.2904223204,
-0.525731802,
0.0757006854,
0.105219245,
0.1233390719,
0.2134259045,
0.1093882471,
-0.000115171,
-0.3466498554,
0.4168189466,
-0.1254799515,
-0.049066294,
-0.1248013452,
-0.3066553771,
0.1304214746,
-0.191124469,
-0.1625906378,
0.0535929538,
0.150136739,
0.2008936256,
0.0695645437,
0.1805627495,
0.1309278607,
0.1482645124,
0.0635441393,
-0.1145860553,
-0.0245388653,
0.2895706296,
0.0678122342,
-0.0297182929,
0.0065404079,
0.500974834,
0.3647524118,
0.1164340898,
0.0436583273,
0.052416075,
0.122604914,
0.0101255635,
-0.3156892657,
-0.1707392335,
-0.6554213762,
0.3526362777,
0.7226451039,
0.6469687223,
0.101222299,
-0.2085971832,
-0.0435764343,
0.1756424457,
-0.2512715459,
-0.1427432448,
0.6370517612,
-0.3258788288,
0.1487773657,
-0.5430157781,
-0.3155019283,
-0.1687670648,
0.3041640818,
-0.2599723041,
0.3214051723,
-0.0001990429,
-0.0499975979,
0.3603448272,
-0.0020154335,
0.2264087796,
0.0228019729,
-0.3124681115,
0.2853651047,
-0.2960835099,
-0.3794878423,
-0.3436780274,
0.2594524324,
0.2998427749,
0.0891990438,
0.1823871732,
0.2357152104,
0.0800664127,
0.0151366312,
0.545142889,
-0.1076174602,
-0.3233257532,
0.0730133429,
0.3837717175,
0.0101133632,
0.1688047349,
-0.0248712339,
-0.0028996011,
0.2587711811,
-0.5076771379,
-0.0003631212,
-0.2615728378,
-0.4713280797,
0.1559981108,
-0.2777479887,
0.1362634748,
0.0707593411,
-0.0810320973,
0.1070662737,
-0.0906699598,
0.2410538942,
-0.4281463027,
-0.0736107826,
0.0975688621,
-0.3220903575,
-0.1091438904,
-0.0105771376,
0.0280526746,
-0.0787925795,
0.2643790841,
-0.5082529783,
0.3371802568,
-0.0795177817,
0.3361349404,
0.1806773096,
-0.1892697215,
-0.1488176137,
-0.0888089463,
0.2145672292,
0.1049946919,
0.2417758256,
-0.2071614414,
0.5045181513,
-0.0368061401,
0.299334228,
-0.1207163557,
-0.2835349441,
0.1389858574,
0.1309600174,
-0.2674580514,
-0.0629858375,
-0.3869693279,
0.2854521573,
-0.1779265255,
0.0000471383,
-0.0142697496,
0.0776573867,
-0.0435368381,
-0.115077883,
0.2379495651,
-0.1307848692,
-0.237314865,
0.0068899542,
-0.1620621681,
-0.1715000123,
0.4258076251,
0.3534019887,
-0.1707286686,
-0.3960531354,
-0.0673998743,
-0.1546261758,
0.2148637325,
0.0437493511,
-0.53869313,
0.3985548317,
0.1317853928,
-0.2564820647,
0.0821296573,
0.1525527239,
0.6344280243,
0.1193680391,
-0.2234909236,
0.550154984,
-0.0589090362,
0.0575008839,
-0.095140405,
-0.3214318454,
-0.2185792178,
0.1635002345,
0.3424955308,
0.4317511916,
0.2950879931,
0.0950776488,
0.4195165038,
-0.0896090269,
0.2856125534,
0.17130211,
0.1827342808,
-0.1341882199,
-0.087441206,
-0.308853507,
-0.087928392,
0.1430227458,
0.1239083931,
-0.3638294041,
0.4067091048,
-0.1922576129,
0.0884808451,
-0.2914107442,
0.4060342014,
-0.0655177087,
-0.0696878806,
-0.1784231216,
0.2960864007,
-0.2208674699,
-0.3730570078,
-0.2006770372,
-0.0802237466,
0.0889414325,
0.0760952607,
0.0453677475,
0.2278525233,
0.1880150735,
0.3012548685,
-0.3396292627,
0.0182827879,
-0.0757412687,
0.0327179655,
0.2482905984,
-0.0751576126,
0.1401790082,
0.0556409061,
0.048232697,
0.4031477869,
-0.1497116387,
-0.0283272266,
0.3423365951,
0.129302606,
-0.0366100632,
-0.3519753218,
0.2771190703,
-0.2177251577,
0.123327747,
0.1699347943,
-0.0022153242,
0.3464895487,
-0.0757290497,
0.0770130083,
0.1272961646,
0.341163516,
0.0372849405,
0.0722669512,
-0.1566409618,
-0.3699496686,
-0.2574923038,
0.0630850345,
-0.1521055698,
-0.262296319,
0.176129818,
-0.3542078733,
0.0377749763,
0.1432310045,
0.1573667526,
0.0434847623,
0.1828322709,
0.500916481,
-0.0189323872,
0.5529600382,
-0.1913036257,
0.0323060863,
0.0135213574,
-0.367751807,
0.0108496975,
0.0776750818,
-0.3239633739,
-0.11856962,
0.2415388972,
0.229101181,
0.1548426151,
0.14947249,
-0.4640164375,
-0.3105860353,
-0.5512291193,
0.1515311897,
0.0502729565,
-0.0246746819,
-0.011874727,
0.0819534734,
0.4645319283,
0.0342576131,
-0.1236093119,
0.0287054349,
0.3785225153,
-0.1320493668,
0.4409331977,
-0.1768302768,
-0.0413002037,
0.2356282622,
0.2211538106,
0.0218225811,
0.027051786,
0.1783609241,
0.0761635154,
-0.0646817014,
-0.3325955868,
-0.0639485791,
-0.0094430754,
0.2617273629,
-0.1962979883,
-0.1334728003,
0.3212759197,
-0.0662329122,
0.0288736597,
-0.216748029,
-0.3117702007,
-0.1400716305,
-0.0669212788,
-0.0051100072,
0.1507520676,
-0.181493938,
0.1428141147,
-0.4396059811,
-0.379042685,
0.3784821033,
0.2214272022,
0.1600245833,
-0.3005807102,
-0.121087946,
-0.1877775043,
-0.2930062413,
-0.438038826,
0.0462033786,
-0.8105819821,
0.3229449987,
-0.1686303169,
-0.3520539999,
0.1457241923,
0.2076429278,
-0.1211160272,
0.4795021415,
-0.4310851693,
0.2508369982,
-0.1192327663,
-0.1019103155,
0.1876684129,
-0.0328270681,
-0.2147149146,
-0.655967772,
-0.0396957099,
0.0308427606,
0.2113587707,
-0.320450604,
0.3215064108,
0.3877237141,
-0.0777191743,
0.0027180449,
0.1230209097,
0.6648045182,
0.0610288903,
0.3236868382,
0.0348336995,
0.1735765487,
0.0390225984,
-0.062672317,
0.0875244364,
0.3505367935,
-0.0765626654,
-0.1801751554,
0.2538129389,
0.0923458934,
-0.3871076703,
-0.4046892524,
-0.0492942296,
0.0556896143,
-0.0435906425,
-0.1042501181,
0.0307583231,
-0.0279365685,
0.1188506633,
0.0599450991,
0.1685607731,
-0.3120357096,
0.0869185552,
0.0748439506,
0.3088528812,
0.0074380436,
-0.3863287568,
-0.1485589147,
-0.3613516092,
0.0631624907,
-0.1004731357,
0.0825573877,
0.0680253729,
0.1643628329,
0.206669569,
0.1446605027,
0.3816035986,
-0.0374659821,
0.0500221811,
-0.1897473633,
-0.2201118618,
-0.0895117074,
0.0268401988,
-0.0417054966,
-0.0965520963,
0.3259876668,
-0.1407380104,
-0.3543406129,
0.288957417,
0.0056221802,
0.3419516385,
-0.0903492868,
-0.0451274142,
0.1183284,
-0.0427907109,
-0.1847223938,
0.2522401214,
-0.2072149813,
-0.1632262766,
-0.1560113281,
-0.1090736389,
-0.0318548642,
0.0216325242,
-0.0828888267,
-0.1000516266,
0.0308272671,
0.0453292616,
0.3428441882,
0.1778290123,
0.0819711015,
0.1284078658,
0.4695058465,
0.3658313155,
-0.1156459004,
0.0867109299,
-0.1306059808,
-0.1015806422,
0.2093816251,
0.0437399447,
0.2808159888,
0.4085552394,
0.2124495655,
-0.0312628336,
0.0622298308,
-0.2949731946,
-0.0941512659,
-0.5202362537,
-0.560161829,
0.310897857,
0.0965798125,
0.0867080539,
0.4958634079,
-0.3096114099,
0.1638137698,
-0.0990544707,
-0.1506309509,
0.8891243339,
0.0754090771,
-0.0064905845,
-0.5325064063,
-0.0284915213,
0.4200170636,
0.0276411548,
0.1356178075,
-0.1975043267,
-0.4614287019,
-0.1423404962,
-0.0167069845,
-0.0932058468,
0.0716486573,
-0.0662965775,
0.3452248573,
0.0734826177,
0.426235348,
0.004112408,
0.0317642465,
-0.3003113866,
-0.1115791127,
0.2346545905,
0.0693436861,
-0.1433303505,
0.3273021281,
-0.0557926632,
-0.0327083431,
0.0900522023,
0.1534623355,
-0.1626334339,
0.1220901459,
-0.2919664681,
-0.1220972165,
-0.4284983873,
-0.2095223814,
-0.0900093466,
-0.1598196775,
-0.1767664552,
0.2245779186,
-0.3927685022,
0.277069062,
0.2208950967,
0.0614601374,
-0.0097397175,
0.2679325938,
-0.300740242,
-0.1530025899,
-0.1218152046,
0.3161702454,
0.016243251,
-0.2604294419,
-0.1198071316,
0.0095501672,
0.0472752713,
0.2062586397,
-0.0787362307,
0.0608955994,
-0.0678575337,
-0.1324035823,
0.0844364688,
0.1405861825,
-0.2451873422,
0.2926476002,
0.2806529999,
-0.2030080855,
-0.3127920628,
0.7061343193,
0.2217416465,
-0.147739023,
-0.0309075247,
-0.0348443761,
-0.2691618502,
-0.1094612777,
0.0344100967,
-0.2847455144,
-0.0970422551,
-0.0436129533,
-0.3754636645,
0.2451201379,
-0.0366512425,
0.0363682248,
0.0863695517,
-0.0098603927,
-0.2653487325,
-0.3093074858,
-0.3473718464,
0.1356408894,
-0.0308898687,
0.133592993,
-0.1747769564,
-0.0131149432,
0.0001688524,
0.2695532441,
-0.2037925124,
0.2694520652,
0.1999197751,
0.2387232333,
0.2172997147,
0.3061383963,
-0.1917401254,
-0.0193988252,
-0.0467093848,
0.2147586346,
-0.0651553199,
-0.1116472036,
0.0771595389,
0.1865223795,
0.1970794201,
-0.3018145561,
0.1085911021,
-0.1156171933,
-0.2113784254,
0.1027678028,
0.176723823,
-0.0382389314,
0.2515651286,
-0.3463002145,
0.591129601,
-0.2328621447,
-0.4693998992,
0.4542547762,
0.0165074915,
0.0974762514,
-0.0787200108,
0.314009577,
0.2915432155,
-0.1683987677,
-0.1722800881,
-0.2812141776,
0.0852772221,
-0.103014566,
0.3749883175,
0.2042786777,
0.3214716911,
0.2236578763,
0.3470144272,
0.5542967319,
0.1461542547,
0.1856752485,
0.4167732894,
0.1880727708,
-0.1497302353,
-0.1000321731,
-0.1143853068,
0.1440720111,
-0.0257478263,
0.0018494492,
-0.0225777812,
-0.3263654113,
-0.0515489168,
-0.2704434097,
0.088849023,
0.1533001363,
0.1793413311,
0.8333566785,
0.1531045437,
-0.2371096164,
-0.1882932931,
0.2068772018,
0.1592478305,
0.373036921,
-0.0479566157,
0.3059627116,
0.3063521385,
-0.0312639959,
0.0032446973,
-0.5970547199,
-0.2141680866,
0.4046419561,
-0.014236806,
0.2092541307,
0.0344609171,
-0.048159223,
-0.0106618656,
-0.0931053162,
-0.1816470176,
0.2660161853,
0.2127106637,
-0.0039873626,
-0.1150408611,
-0.2785248756,
0.1094973385,
0.5113762021,
0.1322316974,
-0.1980443895,
0.2608272433,
0.2490076721,
0.0308740791,
-0.2651608884,
-0.135980159,
0.0332695879,
0.1771012396,
-0.3987110257,
-0.14821738,
0.0234414637,
0.0628860965,
0.4394264221,
0.0644202903,
-0.161428839,
0.0587649681,
0.2105539888,
0.0568033978,
0.1634790748,
0.035556443,
-0.1301718056,
0.0776374117,
0.4430592954,
-0.0092201633,
0.291092664,
0.0585155524,
-0.0959535688,
0.3714146316,
-0.2060941756,
-0.0672066584,
-0.3228954971,
-0.133622691,
0.1930325031,
-0.0391327888,
-0.0094225891,
-0.1811571419,
-0.1606292576,
0.183327958,
-0.3444311023,
-0.4696623087,
0.1643547714,
0.1820181012,
0.0193005409,
-0.2334381193,
0.4481794834,
0.157957226,
0.0105546247,
-0.0990976319,
-0.4864678979,
-0.250387013,
0.0959640294,
-0.1351799816,
0.3514735401,
-0.0042078635,
0.2430803031,
0.0163554251,
0.2670604885,
-0.1235210225,
-0.0131921172,
-0.0454171151,
0.4119948149,
-0.1600769311,
-0.0816616192,
-0.0142871849,
0.5789080858,
-0.1545486748,
-0.2790963948,
0.4436946511,
-0.1308503002,
-0.0096989218,
0.3190699518,
-0.050664261,
0.1381156892,
-0.1956162006,
0.1083929911,
-0.2287507951,
0.1634790152,
-0.1217410862,
0.0967455357,
-0.0047985706,
-0.1323553324,
-0.2796777487,
-0.0493529402,
0.2281524092,
0.080874078,
0.1648786217,
0.0741772354,
0.0168765076,
0.115924865,
-0.1904604584,
0.1538944542,
-0.0167447645,
-0.5041575432,
-0.2152560651,
0.0947388858,
0.1537458748,
-0.0536782853,
-0.2692044675,
-0.5225881338,
-0.1821423024,
-0.0793167502,
0.5730478168,
-0.0971036851,
0.2402117401,
-0.4517634213,
0.1212142557,
0.327809602,
0.186043784,
-0.1825703532,
0.136777401,
0.2774829268,
-0.2497418672,
0.2136401981,
0.1351707578,
0.0612914376,
-0.1135804504,
-0.1727843434,
0.0957113728,
0.3469175994,
-0.4755298793,
-0.2574576735,
-0.2557220459
] |
https://github.com/huggingface/datasets/issues/2160 | data_args.preprocessing_num_workers almost freezes | Hi.
I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks
```
#3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s]
#4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s]
#7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s]
#5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s]
#6: 7%|██████████▏
``` | Hi @lhoestq
I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py
to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up.
thanks | 71 | data_args.preprocessing_num_workers almost freezes
Hi @lhoestq
I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py
to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up.
thanks
Hi.
I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks
```
#3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s]
#4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s]
#7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s]
#5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s]
#6: 7%|██████████▏
``` | [
-0.2514105737,
-0.247919023,
-0.1668762416,
0.0695673451,
0.1297331899,
-0.1807381362,
0.4334704578,
0.0990600809,
-0.3538159132,
0.2440420538,
0.0638779625,
0.2399454266,
0.094116047,
-0.133018896,
-0.0470905676,
0.151622504,
0.1583947241,
0.0112237511,
-0.1086991802,
0.1517176032,
-0.3039164543,
0.2973914146,
-0.1818715185,
-0.1495004743,
-0.372023344,
0.0712005123,
0.1070430055,
-0.0386772715,
0.1266267747,
-0.3786485195,
-0.3722392023,
0.2621736526,
-0.1717151105,
0.3977269232,
-0.0001282334,
0.0551565923,
0.3310018778,
0.334130466,
-0.0993834734,
0.1854704469,
0.5246140361,
-0.3683946431,
0.0892793909,
0.0601532236,
-0.0127816955,
0.0405189767,
-0.0577859208,
-0.102464512,
0.4945963621,
-0.023532629,
0.0106405793,
0.5192909837,
-0.1219602376,
0.2335591167,
-0.3205537498,
0.1153104305,
-0.0788030773,
0.1173702553,
0.4010341167,
0.1973480135,
0.3235230744,
0.1297672093,
-0.1178329885,
-0.0455494784,
-0.0672252476,
0.2181200832,
0.4664078951,
-0.6463080645,
0.2540326715,
0.1169219688,
-0.0574613661,
0.1287366897,
-0.0659620985,
-0.2802684605,
-0.1109626442,
-0.5052871108,
0.0478970148,
-0.2866013944,
-0.0035855179,
-0.0845631957,
-0.1638437063,
-0.034345679,
0.0380556621,
0.0745908543,
0.2919780612,
0.4023819566,
-0.2579994798,
0.1412988305,
0.4859221876,
0.052077014,
-0.1439903975,
-0.2433381975,
0.1748292446,
0.1739306152,
-0.3967979252,
0.0948799849,
-0.2360814661,
0.1659678221,
-0.1208463907,
0.0911726207,
-0.1102679074,
0.5134536028,
0.4665884674,
-0.200427711,
-0.1314333528,
-0.1684509218,
0.0231271684,
-0.393896699,
0.5149443746,
0.0773059502,
0.0125777451,
0.0659774542,
-0.242899105,
-0.5354475975,
0.1613685042,
0.1407512426,
0.0415941812,
-0.1196808144,
0.2090467364,
0.0800719261,
0.1907864958,
-0.2290399373,
0.345423609,
0.3752200902,
-0.2789567709,
0.1992180198,
-0.25752002,
0.0450633653,
-0.5872558355,
-0.0557828024,
0.0518546067,
-0.2311391681,
-0.0153394863,
0.1887837648,
0.2071906179,
-0.2020418048,
0.1966592222,
0.2144078612,
0.6740501523,
-0.4226007164,
0.3631923199,
-0.163664788,
-0.009649815,
0.2447368205,
-0.0727550834,
0.3624314368,
0.0352873281,
0.3586987555,
-0.3110888004,
0.0150672225,
0.0074109631,
-0.2275885195,
0.1634592116,
-0.0480352007,
-0.0323653631,
0.2433684319,
0.0056013404,
0.1432507038,
0.5009930134,
0.3875708878,
0.0300535876,
-0.119535394,
-0.4238316119,
0.0253994539,
0.2834200263,
0.4679893851,
0.5233025551,
-0.0402477346,
-0.036437232,
-0.022538159,
0.7288458943,
0.209470287,
-0.0243389141,
-0.0221087523,
-0.067725569,
0.1443642229,
-0.0810829699,
0.0723260269,
0.056713827,
0.2270412743,
-0.2240653038,
-0.0860364661,
0.2414154261,
0.0726294592,
0.134709999,
-0.0877698287,
0.170047462,
0.1761256158,
0.2823868692,
0.173423335,
-0.2352311313,
0.0146295298,
-0.0128332227,
0.0171706975,
-0.3240710497,
-0.0673820823,
-0.5180613399,
-0.0416162759,
0.0703362003,
0.0054428284,
0.1118420288,
0.1537821442,
-0.0834672749,
0.0560843535,
0.3274909258,
0.0175313633,
-0.1221802533,
-0.0379406102,
-0.3193321824,
0.2669685781,
0.0784633607,
-0.0842261091,
0.0320649184,
0.0909709334,
-0.18675448,
-0.0062121637,
-0.1380515844,
-0.034719646,
0.1920592487,
-0.0670049042,
0.0034457694,
-0.0831285343,
0.0475852042,
0.2688090503,
-0.2574960887,
0.0044196858,
0.0832875147,
-0.1455596089,
-0.1100083366,
0.0941947773,
0.0614342019,
-0.3610613346,
0.016560223,
0.2966278195,
0.1466059983,
0.3110170066,
-0.4479562938,
0.5583022237,
0.2145091295,
0.1290584952,
0.0892318264,
0.0092790863,
0.0217731837,
-0.1451042444,
0.4335660934,
0.4299765825,
-0.2997782826,
0.3906128109,
0.1070607379,
-0.1821052283,
-0.0560041927,
0.2489265352,
-0.2439727038,
-0.0261756703,
0.454087615,
-0.0477516428,
0.2301163971,
0.2223646343,
-0.1836321652,
0.2125936598,
0.1237349585,
0.0111789675,
-0.1703725457,
0.0403763428,
-0.0734567419,
-0.133478865,
-0.249989748,
-0.6115143895,
0.177778095,
-0.0069289315,
-0.0365605503,
-0.0478599966,
0.004238273,
-0.2061081082,
0.2798290551,
0.4372166693,
0.1867597252,
0.171196714,
-0.1949301362,
-0.0732357129,
-0.1825199872,
-0.1297116131,
0.1186934486,
0.167226702,
-0.1895807683,
0.136636585,
-0.2387168258,
0.2938963175,
-0.1662999392,
-0.1849085391,
-0.4397238791,
-0.0257226825,
-0.1499884278,
0.0983167514,
0.0103319585,
0.1029524431,
0.0242337994,
0.0881986097,
-0.1002233922,
0.0622530356,
-0.1612758934,
0.0371609703,
-0.0491181538,
-0.2453038692,
0.2989144921,
0.1687110662,
-0.0080341678,
0.1353287846,
-0.3070052266,
-0.0110726794,
-0.2749912739,
0.1400467455,
0.1708556861,
0.3440093398,
-0.0735170767,
0.1897306591,
0.0009131006,
0.027604701,
0.1006858051,
-0.1594695449,
-0.0642061606,
0.0215209238,
-0.1502987593,
-0.1248288751,
-0.1320843995,
0.0152241066,
-0.2438074052,
-0.189818278,
0.1589919478,
-0.0782174245,
-0.0424328744,
0.1317876279,
-0.0138679314,
0.1339336336,
0.2590211034,
0.1452917904,
-0.1662136018,
-0.0018488208,
0.3186673224,
-0.1028509736,
-0.1215235591,
-0.3235509992,
-0.1072705537,
0.1314615309,
-0.244520694,
-0.0609117448,
-0.0151923895,
-0.5067571402,
-0.2423241287,
-0.172392562,
0.0972388163,
0.4248442054,
-0.0066829533,
-0.0099413823,
0.1922748685,
-0.2269100249,
0.2570295036,
-0.0619240887,
-0.3097358048,
0.1396401078,
0.4708051383,
-0.2967547476,
0.6741129756,
0.0749655291,
-0.1954610646,
0.0505693369,
0.036868982,
-0.1507927775,
-0.0553351119,
-0.0852852315,
0.1318517923,
0.2249402106,
-0.055271551,
0.3454121351,
-0.1059585884,
0.0814154148,
0.126729697,
-0.0824176073,
0.0170044061,
-0.3068867922,
0.3244255483,
0.1441503018,
0.402965337,
-0.0234133508,
0.1108587533,
-0.0862728432,
-0.4016609192,
-0.0962364674,
0.1196676865,
0.2414515764,
-0.169547081,
-0.6161895394,
0.0137219932,
-0.7858523726,
0.3828299642,
-0.045890715,
0.5199118257,
0.1082279384,
0.0056624599,
0.3145134449,
-0.3467054367,
0.7670843601,
0.1822909117,
-0.1279038936,
0.0962367877,
-0.7098243833,
-0.0582466647,
0.0075299907,
-0.092619583,
0.2724970281,
0.3566785157,
0.7060551643,
-0.3017210662,
-0.3776781559,
-0.0767093971,
0.0563515089,
0.0015051836,
-0.4166151881,
-0.4019544423,
0.0501903184,
-0.2863702476,
0.5134525895,
0.0906586796,
0.1405479908,
-0.2109410614,
-0.0332370438,
0.1202219799,
-0.2873510122,
0.4236606956,
0.2079536021,
-0.0913095176,
-0.0237020962,
0.3806827664,
0.4786851406,
-0.2290194631,
0.1489968896,
-0.1707216799,
-0.0779558867,
-0.2364805937,
0.3810602725,
-0.0867979676,
0.5450713634,
0.5472583175,
0.1362943947,
0.4063152671,
0.3780597448,
0.4374059439,
-0.2749788165,
0.1259635836,
0.1547681093,
0.5308868289,
-0.4130480587,
-0.0818805769,
0.1402870417,
0.2081381828,
-0.0229310803,
0.0561510138,
-0.1762443036,
-0.0634083599,
0.207131803,
0.3916881979,
1.1319561005,
-0.3283145726,
0.1856963634,
-0.4327249527,
-0.0603082702,
0.5704897046,
-0.3324196637,
0.2379962504,
-0.3656906784,
-0.2717866302,
0.185022071,
-0.328235805,
0.3038601875,
0.1189039797,
-0.262819171,
0.1521396339,
-0.3306327462,
0.0432289243,
-0.4142541289,
0.3191806972,
0.0404135548,
-0.6195268631,
-0.0495102219,
-0.0282824785,
0.0733610094,
0.2955292761,
-0.1056538597,
0.0835874006,
0.0109437844,
0.0497662351,
0.0896115601,
-0.1360662282,
-0.1693647802,
-0.0388213806,
0.5821490884,
0.032406833,
0.3180071414,
-0.077735506,
0.5598854423,
0.2434165329,
0.0780921653,
-0.0341118351,
-0.1588763446,
-0.1468065679,
-0.0515886098,
-0.0682882294,
0.0123432642,
-0.2124673575,
0.0511398539,
-0.2381156385,
0.082154125,
0.0058844704,
-0.1636517793,
0.0166181326,
0.0232438464,
0.0467579067,
-0.1821014732,
0.3080947995,
-0.3214457333,
-0.116713129,
-0.0423150025,
0.2404100597,
-0.4403893352,
0.3303349614,
-0.0288400054,
-0.1738938093,
-0.1171052679,
0.0892919302,
-0.0264956355,
-0.4030746222,
0.6092653275,
0.2181997895,
-0.2666136324,
-0.0854160264,
-0.2937756777,
-0.1068670675,
-0.3492942154,
0.3741155267,
0.3237867057,
-0.2295300215,
-0.0780587271,
-0.1987001747,
-0.3508916497,
-0.1182244718,
-0.3102805316,
-0.2950766683,
-0.4665011466,
-0.3801027536,
0.0411477461,
0.1233233064,
-0.0471606068,
0.2644370794,
-0.3896648586,
0.0624551177,
-0.078579545,
-0.1725251228,
-0.4062480927,
0.0899814814,
-0.1120751575,
-0.5190096498,
-0.0281905122,
0.1142885163,
-0.0714790747,
0.4420268238,
-0.1587404609,
-0.0638982207,
-0.2271940559,
0.2349817157,
-0.2800930738,
-0.4436422288,
0.3615059853,
0.3001589477,
-0.2331469655,
-0.2703568041,
-0.1595396996,
-0.1643766314,
-0.1993985325,
-0.5072794557,
0.3599972427,
0.1198562533,
0.0199192557,
0.191434592,
-0.0674528182,
-0.0008587727,
0.186486423,
0.3077495992,
0.0294042844,
-0.0558889583,
-0.0084526837,
0.0732791424,
0.6394948959,
-0.3363311887,
0.0188854113,
0.0433637872,
-0.1731338799,
0.1465682834,
-0.0477739386,
0.5118202567,
0.1813317835,
-0.2633014023,
0.3250020146,
-0.0217071902,
0.0180752836,
-0.070040442,
0.186550945,
-0.0227422472,
-0.0238570627,
0.4588426352,
0.3922021985,
0.2405371815,
0.1528816968,
0.25559479,
0.1636410207,
-0.3829540014,
-0.1078642085,
-0.181213811,
-0.015402576,
0.2450422794,
0.4365405142,
0.0375351422,
0.1505812258,
-0.1797698885,
0.1335870922,
0.2507674396,
0.2416341156,
0.4925802946,
-0.1382796466,
-0.2254938781,
-0.4174554348,
0.5522565246,
-0.0057641948,
0.3790929615,
-0.0028129297,
0.3359465003,
-0.0554623976,
-0.0098857712,
-0.174577266,
0.506141603,
-0.1261602491,
-0.4475287795,
0.1426977068,
0.1112098843,
-0.2979696393,
0.0771850571,
0.131866008,
0.0256805122,
-0.0423034616,
0.1080411226,
0.0119534712,
-0.1828673035,
-0.2537563741,
-0.1672242433,
0.2278694957,
-0.0983466581,
0.0125123151,
0.0452597924,
0.0097419852,
-0.0199357662,
-0.0247963034,
0.5128123164,
0.200442791,
-0.1537483186,
0.0811640844,
-0.1068245098,
0.3018485308,
-0.1513088793,
0.4270676374,
0.0419006087,
0.3001247942,
-0.1047821492,
-0.2305850089,
-0.1540284157,
-0.52718997,
-0.0419680327,
-0.0431488305,
0.0332790799,
0.2451082468,
0.1459525079,
-0.1756979674,
-0.2253250778,
0.1532501429,
-0.2153150886,
-0.0614371486,
0.3286036849,
-0.3338752389,
-0.1148734093,
-0.0067681703,
-0.0201614909,
-0.1126108319,
0.6130871177,
-0.0589852482,
0.3415982127,
-0.1647947878,
-0.1436437666,
-0.3964852691,
-0.1860506535,
0.2374785691,
0.3587353528,
0.1647130102,
-0.1060248315,
0.0867481306,
0.0671769902,
-0.0712869465,
-0.3454676867,
-0.0114507796,
0.3094774783,
-0.3384155035,
0.3538842201,
-0.4342475235,
0.0272094458,
0.1970862001,
-0.1175377369,
0.2873232365,
0.1683012098,
-0.1999628842,
-0.3245335519,
0.0758443773,
-0.2453703284,
0.2596362233,
0.0963899791,
0.3184599876,
0.1464158297,
-0.0157890767,
-0.0109737506,
0.0959526896,
0.2608545721,
-0.0697436854,
0.0721196607,
0.1049502343,
-0.1648035645,
-0.1467458457,
-0.1313751489,
-0.2452245355,
0.0567504652,
-0.0118052885,
-0.1745484769,
-0.0568413772,
0.0469127819,
-0.0768704042,
0.2094798833,
0.1592629999,
0.4812907577,
0.2651976645,
-0.0506086722,
-0.322383076,
-0.0804886669,
0.4254730344,
-0.2499651015,
-0.3929426968,
-0.620663166,
0.1766659319,
0.0027142724,
0.1121186465,
-0.2380702645,
-0.1182986051,
0.0157108121,
-0.1303828955,
-0.2840647697,
0.4506077468,
-0.111577563,
-0.2529272735,
-0.2448704243,
0.159426555,
0.1453018785,
0.1756260991,
-0.1135018393,
-0.2562186122
] |
https://github.com/huggingface/datasets/issues/2158 | viewer "fake_news_english" error | Thanks for reporting !
The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly | When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error:
> ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance'
as well as the error Traceback.
| 26 | viewer "fake_news_english" error
When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error:
> ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance'
as well as the error Traceback.
Thanks for reporting !
The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly | [
-0.1493436396,
-0.1812809706,
0.0336433761,
0.3416323662,
0.2343087941,
0.2863432169,
-0.0157953631,
0.2244073898,
0.1654276997,
0.0734672248,
-0.2225703299,
-0.1259511113,
-0.0306418873,
0.3286090493,
-0.0807030946,
-0.2097441852,
0.2249316126,
0.1918755323,
-0.0383204296,
-0.2154149562,
-0.1752157062,
0.2497073412,
-0.2327595055,
0.0332997739,
-0.1657816768,
-0.0056503313,
0.0485554487,
-0.1095095873,
-0.2481060624,
-0.2244536579,
0.2573483288,
-0.0757725164,
0.0078949882,
0.4936812222,
-0.0001168755,
0.0112854308,
0.2621287704,
0.0009632627,
-0.0758977607,
-0.1726918221,
0.1580373645,
-0.5534414053,
0.2592310905,
0.005135471,
-0.1263033897,
-0.6198990345,
0.1344304681,
-0.0443131328,
0.4444803894,
0.4118565321,
0.2116182894,
0.4163540602,
0.4214429855,
0.0597533956,
-0.1707169861,
0.0774006248,
-0.0333689302,
0.2485258281,
-0.1120401472,
0.2506460845,
0.0464386605,
0.3587524593,
-0.0722560734,
-0.167214036,
-0.1182158813,
-0.206066221,
-0.0668229163,
-0.3877579272,
0.065018937,
0.2956513166,
0.2338843048,
-0.1602154225,
-0.1942187995,
-0.1710207015,
-0.0075113098,
0.1529853791,
0.2340551317,
0.3493382931,
0.0310775507,
0.244414106,
0.0891732872,
-0.395540148,
-0.020731438,
0.1518012285,
-0.2865380347,
0.271138519,
-0.2161861658,
0.1463051736,
0.285015285,
-0.1231927946,
0.1981232911,
-0.0080018016,
-0.0066174204,
0.1687795222,
-0.1542185247,
0.0125711607,
0.0683275908,
0.4823486805,
-0.120961532,
-0.4073606431,
-0.4050122797,
0.0087040309,
-0.2241733968,
0.2380544841,
0.0841647983,
0.0210717767,
-0.0141959107,
0.2033030391,
0.1795817614,
0.3211092055,
0.1527704,
0.0679237545,
0.0083032306,
-0.238010332,
-0.4805676937,
-0.3320236206,
0.3121842742,
-0.2570629418,
-0.3029873669,
0.2578766346,
-0.0671018958,
-0.0249173716,
0.0111847594,
0.1829612702,
-0.1553822011,
0.4950963557,
0.2343168408,
0.1126601547,
-0.2211111784,
-0.4079146087,
-0.1736009568,
0.2763746083,
0.0510922186,
-0.1620607674,
-0.0328077786,
-0.6860468388,
0.259198159,
0.1957403719,
0.1480444968,
0.0476567633,
-0.1888782531,
-0.091952242,
-0.220055759,
0.3047615588,
0.1786772609,
0.1318141222,
0.5532685518,
-0.3143091202,
-0.158837378,
0.0255602039,
-0.0247136131,
-0.119381927,
-0.3907496631,
0.137865141,
-0.3698266447,
-0.0951167271,
0.1383287013,
0.195248574,
-0.2921119928,
-0.2234258503,
-0.1163563877,
0.0132628307,
-0.0202199928,
0.0533878915,
0.0504161008,
0.5927078724,
-0.4545463324,
-0.3469184339,
0.0944004655,
-0.2169104815,
0.093540296,
0.1010095328,
-0.0120333638,
-0.0668992028,
-0.167315796,
-0.3382661641,
0.2603875101,
-0.4653259516,
-0.2659335732,
0.3473155499,
0.0669156089,
0.2950735092,
0.1359105557,
-0.1164168268,
-0.2745510042,
0.2345126271,
-0.4540861845,
0.0552113913,
0.0520400181,
-0.0751472712,
-0.2216026187,
-0.2808431089,
0.2575274408,
0.3178926408,
0.1873327345,
0.0692961514,
-0.0543509424,
-0.1554217637,
0.2374705821,
0.1147571057,
0.0038580811,
0.1038566828,
0.104042083,
0.3543663919,
0.0540341251,
0.0027964402,
0.0732586756,
-0.0716020763,
-0.0064707506,
0.2905816436,
-0.1062057912,
-0.233123973,
-0.3494343162,
0.0760536268,
-0.1288509667,
-0.3132869005,
0.0632412508,
0.1411921531,
-0.0140751861,
0.5048754215,
-0.1575292051,
0.2717463076,
-0.1571386009,
0.1240420938,
-0.5752686858,
0.1061152741,
-0.2694678009,
0.1400141418,
0.1747437567,
0.09701664,
-0.034679018,
-0.011221597,
0.0091680204,
0.1916555762,
-0.1517486721,
0.2544415891,
0.1007502154,
0.0872531533,
0.250277102,
-0.4632275999,
0.1977057308,
0.1617234945,
0.1071819663,
0.1465786844,
-0.0417564772,
0.1484864652,
0.0535474904,
0.0759229511,
-0.0791269317,
0.4016435444,
0.3749582767,
0.259193629,
-0.0877761394,
-0.3721303046,
0.4974476695,
-0.1468617171,
0.3775922656,
-0.1414721459,
-0.2833206654,
-0.0737215132,
0.1207565069,
0.0512171686,
0.106010139,
0.2926083505,
-0.2328043431,
0.1253170967,
0.2561498582,
-0.0175860934,
0.1818635911,
0.0954406932,
-0.1969886273,
0.272521019,
0.0246932656,
-0.2398648709,
0.1188208982,
0.0407807082,
-0.1291140914,
-0.0179601517,
-0.1501008272,
-0.0485611744,
-0.5117400885,
0.1247873455,
0.0088859238,
0.2497186959,
-0.3337167203,
0.0810150728,
-0.1943714023,
-0.3811690509,
-0.2097661942,
-0.4099613428,
-0.2709552646,
-0.4224149287,
-0.0119394241,
0.1051779389,
-0.0280014519,
0.3039634228,
-0.0188560449,
0.1006585509,
-0.0498099476,
0.078568466,
-0.227671057,
-0.1652927995,
-0.076151289,
0.1163732335,
0.1672725677,
0.0746079683,
0.1345998645,
-0.5980010629,
0.1774813384,
-0.4021345973,
-0.3951077759,
0.1637868136,
-0.3234318197,
0.4101296663,
0.2941056192,
0.1234953627,
-0.0674273744,
-0.0877375603,
0.250264883,
-0.1842280179,
0.1840977222,
0.0396197736,
-0.1432322115,
-0.1686983854,
0.087331675,
-0.1414390057,
-0.2506596744,
-0.3166326284,
0.2217578888,
0.1017183587,
0.1098300964,
-0.0413943455,
0.1959973574,
0.2456978112,
-0.0987521037,
0.2361411601,
-0.2863525152,
-0.524705112,
0.378311187,
-0.1568010449,
-0.3085817695,
0.2651654184,
0.086008206,
0.1951526403,
-0.4093186855,
-0.7332423925,
-0.2308120877,
-0.1923142076,
-0.0415656641,
0.0334824584,
0.1754432321,
0.1946002692,
0.0358056389,
0.0847484171,
-0.0624022931,
-0.0508441702,
-0.2867296636,
-0.3271093965,
0.0163102075,
-0.0000914514,
0.5346378088,
-0.0564330779,
0.259688437,
0.4661251009,
0.1804061979,
0.396882385,
0.1061624885,
0.7885671854,
0.003306068,
-0.4935969412,
-0.0231897477,
0.1583245695,
0.2208784819,
0.3041406274,
-0.0754183456,
0.2468592376,
-0.5103860497,
-0.3159969747,
-0.3276477456,
-0.1706675142,
-0.2363376468,
-0.1083345264,
0.2060178965,
0.0129449982,
0.0467303172,
0.0787633806,
-0.1366554499,
0.1077704355,
0.3479912877,
0.0770942196,
0.0365452953,
-0.0738064572,
-0.0912137926,
-0.4185932875,
0.3242529631,
-0.2333338261,
0.2012438178,
-0.00088681,
0.1214456037,
0.1684386581,
0.0369144157,
0.7025107145,
0.0302969422,
-0.3258078694,
-0.0525401607,
-0.1223509684,
-0.6611136794,
0.1079374477,
-0.2527155578,
-0.1881040782,
0.0247114282,
0.003436178,
-0.2656265497,
-0.1243872494,
0.4412812591,
0.0804680809,
-0.2095835358,
-0.2385825813,
-0.2916269302,
-0.2214308232,
-0.352542609,
-0.0845472515,
-0.0090305535,
0.0804269835,
-0.0301800985,
0.4483974874,
-0.0971262455,
-0.0236034952,
0.3017003834,
0.0508198775,
0.0081439093,
0.0206427909,
0.0002471538,
0.4754730165,
0.150050804,
-0.0532301366,
0.7757796645,
-0.0631161481,
-0.7709522247,
-0.0753828362,
0.053633105,
0.0531327799,
0.307010144,
-0.1265824586,
0.0274938792,
0.243778497,
0.1017825902,
-0.2109920979,
0.1763731986,
0.3813943863,
0.2676439285,
-0.1815092713,
-0.2140790671,
0.3380758166,
0.1158891693,
0.1463098228,
0.184901014,
0.5283311605,
-0.0841908753,
0.2648404539,
-0.0969957858,
0.9988303781,
0.1961120516,
0.2482182384,
0.4241091907,
-0.2455765307,
0.4833488762,
-0.0700265467,
-0.0292953588,
-0.1444130093,
-0.3055584431,
-0.244955942,
0.0516552366,
0.4823303819,
-0.2462418526,
-0.3096330166,
0.3389141262,
-0.1209043264,
-0.0700879917,
0.1229670942,
0.1574330926,
-0.3809256554,
-0.0709054023,
-0.3266378343,
0.1354926527,
0.0377956368,
0.315882802,
-0.1692901403,
0.1198322996,
0.0187710654,
-0.1505933255,
-0.2882559299,
0.0519959629,
0.0278499741,
0.0180972032,
0.0684051588,
-0.0966805518,
0.2472617626,
0.5656706691,
0.3669230342,
0.18652834,
-0.4858180583,
0.1671655625,
-0.0459157526,
-0.4441525638,
0.1770739257,
0.2046081126,
0.3137392998,
-0.0114796245,
-0.283175528,
0.3268385828,
-0.1206451878,
0.2323894948,
-0.1977337003,
-0.0111094788,
-0.0575117618,
-0.3667593896,
-0.3333869278,
-0.1771247685,
0.0570142865,
-0.1836521775,
0.1110578254,
0.0103436103,
-0.1201192364,
-0.0232843552,
-0.0562228076,
-0.1417723,
-0.2431448996,
0.195931524,
0.0323254615,
0.0144019565,
0.2819171548,
0.2788679898,
-0.3665270805,
-0.1169048771,
0.1877417415,
0.0454839952,
-0.3456626236,
-0.170156002,
0.2914135158,
-0.160686776,
-0.2383990884,
0.0027350215,
0.1746843904,
-0.0411232077,
0.0126882233,
-0.3946432471,
-0.0076745786,
0.1925795078,
0.1038074866,
-0.1245338321,
0.1717467904,
0.2776167691,
0.1337161213,
0.1878320128,
-0.2733458877,
0.3751010001,
-0.1645786762,
-0.030896429,
0.1304588467,
0.231232509,
0.3228490353,
-0.1181520969,
0.0373163074,
0.118798539,
-0.1167220846,
-0.1287345588,
-0.1502198279,
0.125033915,
0.2713000476,
-0.4052730799,
0.2548581362,
0.0848728493,
-0.2070202827,
-0.0313603431,
-0.1952662021,
0.3474891782,
-0.0754380599,
0.1337974966,
0.0290039182,
0.0485039689,
-0.09160202,
-0.0754816756,
-0.0463015363,
0.1908140928,
0.0429234877,
-0.0622405671,
0.0316439196,
0.0093682986,
0.0889626443,
0.2149967104,
0.2068990767,
0.0593179762,
0.313752532,
-0.137127474,
0.1256194264,
0.1611731201,
0.4621785581,
0.2891745269,
-0.4220870733,
0.1494950354,
0.4947496653,
0.0427787825,
-0.544919312,
0.0137340128,
0.2964158654,
-0.0359675772,
0.0966339409,
0.0143321445,
0.1898614168,
0.0388370603,
0.1929154098,
0.1015237644,
0.1329612881,
-0.0326301903,
0.3157618046,
0.2818040252,
-0.1478827447,
0.1104030907,
0.2457274199,
0.1664689928,
-0.0167654958,
0.2051961422,
-0.3525442779,
0.0279041734,
-0.292275995,
0.082524091,
-0.0355524383,
-0.1481754482,
0.2657366693,
0.0649832562,
-0.1496374607,
-0.0404280238,
-0.1202599406,
0.4565218687,
-0.2054386586,
0.0748909861,
-0.2444637567,
0.3438740969,
0.0049216552,
0.0258912146,
0.2523989677,
-0.1254977137,
-0.207785517,
0.0125957131,
0.1929332167,
-0.5256756544,
-0.062693812,
0.0837931111,
-0.1748888642,
-0.4093302488,
-0.0262105446,
0.0982758775,
0.1624489427,
-0.070634447,
0.1652639061,
0.3033758998,
0.008478174,
0.1473619491,
0.6045826077,
0.4527468979,
0.0702115744,
0.1158504486,
0.1578060538,
-0.1719758362,
-0.0460993946,
0.0782890394,
0.2830423713,
-0.0351977535,
0.2945495248,
0.3073827922,
0.1182830855,
-0.2352012843,
-0.1192610562,
-0.0033583378,
0.2711735666,
-0.5004979372,
0.1815780401,
-0.4764452875,
0.102068916,
-0.3031997085,
-0.150398314,
-0.5871674418,
0.2847022712,
0.2014156729,
-0.1557387561,
-0.0761078745,
-0.3292554021,
0.0349971987,
0.1634238809,
0.4378173053,
0.4837255478,
0.3563598692,
-0.2145859003,
-0.3759633899,
-0.6806294322,
0.2766782641,
-0.0359326266,
-0.1828467548,
-0.0877021849,
-0.2423523366,
0.0795428976,
0.2901807725,
-0.1649818271,
0.2002099305,
-0.1299872547,
-0.187060535,
-0.1312099248,
-0.0886712074,
-0.019062642,
0.1277427375,
-0.0501924045,
0.0209723655,
0.2831498981,
-0.0812906027,
0.0103786411,
0.0650068298,
0.1038181931,
-0.3491301835,
-0.2601623237,
0.141842097,
0.3700294197,
0.3323680758,
-0.1182963848,
-0.0788228065,
0.0622203238,
-0.2541967332,
-0.4052440822,
0.4564964473,
0.030065123,
0.1583378911,
-0.3010482788,
-0.5846758485,
-0.0435884148,
0.3900037408,
0.1314127296,
0.1165825203,
-0.4264741242,
0.1334365457,
-0.0666232258,
0.0021296614,
0.1974083185,
0.2926414907,
-0.0800683945,
0.2034484446,
-0.1025539637,
-0.1717099696,
0.4758613408,
-0.2589900792,
0.0350630246,
0.0025696037,
-0.0480374359,
0.237760067,
-0.4223096371,
-0.6009995341,
0.227106303,
0.1251103133,
0.1089572906,
-0.0012158556,
0.1362531483,
-0.2136976272,
-0.037587788,
-0.0279387403,
0.3252096772,
0.3717560172,
-0.1575438678,
0.3425123096,
-0.0167051647
] |
https://github.com/huggingface/datasets/issues/2153 | load_dataset ignoring features | Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples. | First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything.
I'm using datasets 1.5.0

As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work.
Code to reproduce:
```python
import datasets
data_location = "/data/prueba_multiclase"
features = datasets.Features(
{"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])}
)
dataset = datasets.load_dataset(
"csv", data_files=data_location, delimiter="\t", features=features
)
```
Dataset I used:
[prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped)
Thank you! ❤️
| 32 | load_dataset ignoring features
First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything.
I'm using datasets 1.5.0

As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work.
Code to reproduce:
```python
import datasets
data_location = "/data/prueba_multiclase"
features = datasets.Features(
{"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])}
)
dataset = datasets.load_dataset(
"csv", data_files=data_location, delimiter="\t", features=features
)
```
Dataset I used:
[prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped)
Thank you! ❤️
Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples. | [
-0.0856144503,
-0.0304921698,
0.0129401591,
0.2842154205,
0.4256820977,
0.2531651855,
0.6406394839,
-0.053947553,
0.2234635353,
0.0533239692,
0.1543195993,
0.33632496,
-0.1144229174,
0.4599345326,
-0.1519142389,
-0.0312217567,
0.063283667,
0.1389199048,
0.0868092105,
-0.1416219473,
-0.3790288568,
0.0661421344,
-0.381079942,
-0.0748038888,
-0.1995218992,
0.2117883861,
0.0234554764,
0.0719203949,
-0.0297586881,
-0.5245150924,
0.4133904278,
0.2789027989,
0.340085268,
0.251696378,
-0.0001132447,
-0.0907421336,
0.0439933389,
-0.1335795075,
-0.1930739433,
-0.1258172989,
-0.4377949238,
-0.3049480915,
0.293554306,
-0.301836133,
-0.3062900603,
0.1707057506,
-0.264893353,
-0.2134491801,
-0.0529290438,
0.121068038,
0.1923326701,
0.0092528472,
-0.0871034861,
0.1758140177,
0.0143905524,
-0.0617422275,
-0.3258312643,
0.2043392211,
0.185656637,
0.2550999224,
-0.0153445555,
0.2552686334,
-0.2143636048,
0.0363500789,
0.510196805,
-0.1277291328,
-0.0145432996,
-0.3282904625,
0.0238243062,
0.1738418937,
0.7974797487,
-0.2552067637,
-0.4845224619,
-0.2741535008,
0.1363133788,
-0.4022521675,
0.1647412479,
0.0906634331,
0.2678411305,
0.1801911891,
-0.4022528529,
-0.0693215951,
-0.1144453064,
0.0422427207,
0.03134875,
-0.0237453785,
-0.1550962776,
0.1390873939,
-0.1776061803,
-0.0167388599,
0.3612682521,
-0.258615464,
-0.0753732249,
0.2356112003,
-0.2841075957,
0.1693634689,
0.0916745216,
0.1357546747,
0.0742881224,
0.1346579045,
0.0195799395,
0.2739371657,
-0.3180242479,
0.1293332428,
0.1421794146,
-0.0020367689,
0.5196122527,
0.1570584327,
0.198042199,
0.0485060811,
-0.2741858065,
0.0649611875,
-0.1562922597,
-0.0674710125,
0.2910912931,
0.0448108055,
0.1363647878,
-0.3723418117,
-0.1389970332,
0.0318647847,
-0.1400591582,
-0.0162490495,
0.117736049,
0.247484833,
0.0247120149,
0.4246523976,
0.2354547232,
0.2400787175,
-0.287314266,
-0.3280517459,
-0.2301764041,
-0.1649016887,
-0.0516047738,
0.0536997691,
0.4024191201,
0.1722325832,
0.1889075488,
-0.0935542732,
-0.1197240651,
-0.1503176391,
-0.1773234606,
0.0644036159,
-0.0126007712,
0.2159595937,
-0.1039229259,
0.1599553376,
0.1865859479,
-0.2099936754,
0.0202708989,
0.187102586,
-0.2052909136,
-0.0912487283,
0.1930449456,
0.169291541,
-0.3488232791,
-0.0992197916,
-0.4686618447,
0.170880422,
-0.0383037366,
-0.0585592091,
-0.0010498452,
-0.4762669802,
-0.0743916631,
-0.2339223027,
0.3303197324,
0.4801042974,
-0.4956290424,
-0.1252074093,
0.3033341765,
-0.1631097645,
-0.0423818566,
-0.1286754906,
-0.0879168361,
0.1719549745,
-0.095555611,
-0.3004549146,
0.2273969203,
-0.1882334203,
-0.3485090733,
-0.1945336163,
0.0981054604,
0.0058671432,
0.1647297293,
0.3072194457,
-0.0137544135,
0.0016854084,
-0.0981523991,
0.413012445,
0.0815085322,
-0.0161895398,
-0.1648076028,
-0.0039027657,
0.0153039722,
0.32752195,
-0.0128152221,
0.223601833,
0.1535401493,
0.0070147505,
0.1234481558,
-0.2657749951,
0.2417102009,
0.3734299242,
0.0262521114,
0.20919469,
0.0803006515,
-0.0996137559,
-0.4244221449,
0.3336117268,
0.1969467103,
-0.0301370639,
0.0143273454,
-0.133523345,
0.0164890159,
-0.0420471095,
-0.5998296738,
-0.0444381721,
0.0043737027,
0.108143732,
-0.1282559931,
-0.0561453737,
-0.0211242065,
0.2936036885,
-0.2329749763,
0.2568300366,
-0.31755355,
0.0984747931,
0.1104401201,
-0.0933684409,
-0.1049848273,
0.2762143016,
0.3593245745,
-0.2134835869,
-0.1395709068,
0.252053529,
0.2794739008,
-0.2395739853,
-0.0033481417,
0.0503886975,
0.1536208391,
-0.386543721,
0.0303779878,
0.065187566,
0.259544462,
-0.1391370147,
-0.4149834514,
0.4254064858,
-0.1629068106,
0.1436123997,
0.0709127113,
-0.0759840757,
0.3986671269,
-0.0515846573,
-0.1249036044,
-0.0875489265,
0.0120539023,
-0.0065012029,
0.2523194849,
0.2596166432,
-0.4297816753,
0.1778017133,
0.3382619023,
0.0230807718,
-0.0686439201,
-0.0502457917,
-0.17786479,
0.0848932266,
0.215661332,
0.0609677061,
0.249008581,
0.2434667051,
-0.0681901574,
0.0026714073,
-0.0539204776,
-0.0883627608,
0.2646456361,
-0.0272722598,
-0.058592394,
-0.0459215231,
0.1281879395,
0.0731415451,
-0.299120605,
-0.1569281816,
0.0864327624,
-0.054288242,
-0.5587559342,
-0.0162464119,
-0.1895409524,
0.0446084253,
-0.1800447106,
-0.1181467548,
-0.2130717933,
-0.2718035579,
-0.1732321084,
0.3825280368,
0.0305421371,
0.0627367198,
-0.4193842709,
0.107765533,
0.089437522,
-0.541277647,
0.220504418,
0.1355540007,
-0.4152529538,
-0.0298730209,
-0.1084800586,
0.2368007004,
0.2161877155,
-0.1324638873,
0.1083870903,
-0.2184620202,
-0.2653665245,
0.0387861133,
-0.2468204796,
0.045949541,
0.0089159245,
-0.0679904297,
-0.0551450402,
0.1420684904,
0.3785452843,
0.0763235688,
0.0598124154,
0.2437892556,
0.2070721984,
-0.2385056019,
-0.276964128,
-0.5045168996,
-0.1614887416,
-0.3960848153,
0.0413757637,
0.0946871415,
-0.2516450882,
0.1389065534,
0.0573673621,
0.1830510646,
0.280978471,
0.1540103704,
-0.031024741,
-0.2355820686,
0.3494184017,
-0.1501150876,
-0.2869129479,
0.1117156222,
-0.0587877743,
-0.0539900176,
0.0010022674,
-0.3663876951,
0.0889754221,
-0.0896048844,
0.3901560903,
0.2198276073,
0.1605475247,
0.3285785913,
0.2460651845,
0.1037363932,
-0.238999784,
-0.3663344681,
0.0832589343,
-0.0620272942,
0.1914421022,
-0.0777530298,
0.1106809452,
-0.2450101972,
0.3476115465,
-0.0138869584,
0.0028707313,
0.4750260413,
-0.0642097816,
0.2776760757,
-0.1557679623,
-0.2877364159,
0.0507538877,
-0.230325982,
0.0119078886,
0.2468533516,
0.1611823142,
0.0501921661,
-0.2115148455,
0.2637022734,
-0.2098137736,
-0.1581946909,
-0.1451287419,
-0.1216768622,
0.1039791703,
0.0837812871,
0.2170706987,
-0.1675320268,
-0.163167581,
-0.2661849558,
0.2213689834,
-0.0045870999,
0.0102268867,
-0.5514548421,
-0.1828898638,
-0.0553386062,
0.0938134864,
-0.0580312721,
0.1872237623,
0.0261193849,
0.0560868196,
0.0933772847,
0.1057456657,
0.5734021664,
-0.3399973214,
0.2928528786,
0.3923079073,
0.1141812354,
-0.2291169763,
-0.214853406,
-0.1900698543,
-0.102903083,
-0.0881072283,
0.0920740142,
-0.1049288362,
-0.2605795562,
0.1314919144,
0.4926413,
-0.2059614658,
-0.0615345649,
-0.2721273005,
-0.1646255702,
-0.2355959713,
-0.2033087164,
0.0396522358,
0.3704895973,
-0.4324614108,
-0.0091453772,
-0.1053396836,
-0.0523017757,
0.1303984076,
0.2326040566,
0.2224343419,
0.129131183,
0.4058960974,
-0.022981897,
0.0852614865,
0.215470925,
0.7898675799,
-0.0779164135,
-0.9518975616,
0.0684625134,
-0.4182256758,
0.5247335434,
-0.0762836486,
-0.0203663744,
-0.225980565,
-0.0906918347,
-0.0732138008,
-0.2362544835,
0.1195158586,
0.1982824951,
0.1051263958,
-0.4362964928,
-0.5934212804,
0.4223227799,
-0.1847917289,
-0.0875430182,
0.0275152717,
0.0065174922,
-0.5263801217,
0.3839453757,
0.0043081418,
0.5469953418,
-0.0652338564,
0.2061708719,
0.1642442644,
0.132680133,
0.566962719,
0.1644977033,
0.1249313056,
-0.3096994758,
-0.2729043365,
-0.080116868,
-0.046264831,
0.2010449916,
0.5373555422,
-0.1247507632,
0.3956955671,
-0.2290388644,
-0.2270820886,
-0.0035676826,
0.2181621194,
0.371471405,
-0.3578476012,
-0.1528424621,
0.1190252453,
-0.088004671,
0.019283941,
0.0827519521,
0.1017647162,
-0.0791930184,
-0.0693391711,
-0.0784784779,
0.2588511109,
0.0013761069,
0.0804192573,
-0.0061967801,
-0.0992329568,
0.330291301,
0.4486835599,
0.3506100476,
0.1147856116,
-0.1648311615,
0.1178839803,
0.0604453236,
0.1746528,
-0.0124874525,
0.0916749164,
0.458244741,
0.1442277133,
-0.2612520158,
-0.0861605108,
-0.1898118705,
-0.162865147,
-0.0252830945,
-0.08302854,
0.2034987062,
-0.589533627,
-0.2081589997,
-0.14799878,
0.2661502957,
-0.3238858879,
0.1126797795,
0.0957263112,
-0.0205562636,
0.1644135565,
-0.0115257604,
-0.3165321052,
-0.1929320246,
0.2515880466,
-0.045009885,
0.0347444154,
0.5573700666,
0.3530456424,
-0.0319896452,
-0.1456605792,
0.2625564337,
0.3961196542,
-0.3901972175,
-0.1040852591,
0.4095883369,
-0.107069172,
0.2239105999,
0.5827168226,
-0.1966190636,
-0.1878957599,
-0.0146093927,
-0.4081913531,
-0.1960131675,
0.0054685101,
-0.0846169665,
0.1680943817,
0.2236246318,
0.1663226932,
0.2781651318,
-0.2066332251,
-0.2128274292,
-0.1660310626,
-0.2861817777,
0.0190422591,
0.3513839841,
0.347658962,
-0.1403684914,
-0.0089215077,
0.1520303637,
-0.2583583891,
-0.0868979767,
-0.1422886997,
-0.1935821921,
0.1273213029,
0.1429845095,
0.2857293785,
-0.2640103996,
-0.3534659147,
-0.1489560306,
-0.2576415241,
0.1526486129,
0.1386091262,
0.1096445322,
0.4580557346,
-0.3482673466,
0.4155031741,
-0.2080929279,
0.0065495628,
-0.19366166,
-0.0799282864,
0.2459100932,
0.0067641647,
0.1444022655,
0.0632146299,
-0.3804647624,
-0.0384014659,
-0.2331900597,
0.0461411998,
0.2846544385,
-0.394928664,
0.4182244539,
0.3276238441,
0.1750585437,
0.1971659213,
-0.0623289719,
-0.0664044917,
0.1412873119,
0.2240266651,
-0.4584310949,
-0.3629933298,
0.1607581675,
-0.0078137526,
0.0382106677,
0.3136922121,
-0.1171951815,
0.1066635102,
-0.0651333928,
0.0340412445,
0.6418433785,
-0.0415933542,
0.2116552144,
0.3595904112,
-0.0425311178,
0.1777717322,
0.3617372513,
0.3674905598,
-0.0481478572,
0.496902585,
0.0696469173,
0.1143561229,
0.1496314406,
0.3424577415,
-0.1239908934,
-0.4713842571,
0.292988956,
-0.165348053,
-0.2640787661,
0.1471141875,
-0.2910414338,
0.0563965477,
-0.7303275466,
-0.3448591232,
-0.0291982125,
-0.0853533223,
-0.0668612346,
-0.0754414871,
-0.1401507258,
-0.0652367324,
0.2003005296,
-0.1063702106,
-0.0792107731,
-0.1153399944,
0.3415636718,
-0.1385674924,
-0.018449923,
-0.5109072924,
-0.0891851634,
-0.0430594943,
0.1336764991,
-0.0293965396,
0.2339999527,
-0.1749993116,
-0.0956813619,
0.2588127553,
0.0092804739,
0.1054125428,
0.2317334116,
0.1931947321,
-0.1506307721,
-0.3097061515,
-0.0795972794,
-0.1394521743,
0.2378838062,
0.0547458753,
0.2346520275,
0.0977924392,
0.0997681692,
-0.0947733,
0.1536295712,
0.1820671707,
0.1523027718,
-0.3820309639,
0.5445275307,
0.2070106268,
-0.3416914344,
-0.0559776165,
-0.029506892,
-0.1854069978,
-0.08748734,
0.4824199677,
0.0996361375,
0.1188280806,
-0.0049257092,
0.061628215,
0.2064937949,
0.2476282269,
0.277063489,
0.0055530933,
-0.1593337208,
0.3928477466,
-0.7810739279,
0.0616663583,
0.2918814123,
-0.290762037,
0.3185736537,
0.0418269522,
0.3377401531,
-0.0268266313,
-0.0879087076,
0.0872558802,
0.3598930836,
-0.0520294532,
-0.1859559566,
-0.1271455437,
0.0463942252,
0.343532145,
-0.2045232952,
-0.4161462486,
0.2103685588,
-0.0327188894,
-0.0380157158,
0.0165939089,
0.0412061214,
0.2931005061,
-0.0927972794,
0.1887978166,
-0.1301510036,
0.5564447641,
0.0033662331,
0.089399226,
-0.1195807829,
-0.151878953,
-0.0851528496,
0.3002232313,
-0.1061233431,
0.5048052669,
-0.2135786414,
0.1592863649,
-0.160782665,
0.1998844296,
0.3464808762,
0.0126962261,
-0.3018127978,
0.3784745038,
-0.2702768743,
0.1205830574,
0.2680623233,
0.1173256189,
-0.100017488,
0.0406340845,
0.0458656475,
-0.3424757123,
0.2959661484,
-0.4661597311,
-0.3100435138,
-0.1048114821,
0.2468158454,
-0.1140739322,
-0.0544515438,
-0.6054849029,
0.0529159606,
0.4427363873,
-0.0387563184,
-0.5960946679,
0.3080437183,
-0.1771587431,
0.0096861776,
-0.0662131459,
0.2158686668,
-0.0519977883,
-0.0348672122,
0.0966070816,
-0.0649610162
] |
https://github.com/huggingface/datasets/issues/2148 | Add configurable options to `seqeval` metric | Hi @marrodion.
Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement.
Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`:
```python
if scheme:
scheme = importlib.import_module(f"seqeval.scheme.{scheme}")
```
Feel free to create a Pull Request to make this contribution. | Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation).
However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute`
https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109
Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches.
The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases.
It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation.
If that makes sense, I am happy to implement the change. | 61 | Add configurable options to `seqeval` metric
Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation).
However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute`
https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109
Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches.
The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases.
It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation.
If that makes sense, I am happy to implement the change.
Hi @marrodion.
Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement.
Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`:
```python
if scheme:
scheme = importlib.import_module(f"seqeval.scheme.{scheme}")
```
Feel free to create a Pull Request to make this contribution. | [
-0.4404144585,
0.1902092099,
-0.0845154375,
-0.1625579149,
0.0749472752,
-0.1645830125,
0.1490215957,
0.2498327196,
-0.083608374,
0.3530941904,
-0.4670090377,
0.2486551404,
-0.032320369,
0.2693846226,
0.0718923435,
0.3165939748,
-0.2818851769,
-0.0426250286,
0.0006641197,
0.1087298319,
-0.5529808998,
-0.0117784189,
-0.1030307859,
-0.15207313,
0.0609823354,
0.2906384468,
0.0560518652,
-0.0226270631,
-0.1254417002,
-0.528054893,
0.0175920855,
0.4460299313,
-0.2212207019,
-0.0601568706,
-0.0001078837,
-0.1581129879,
0.1689355671,
-0.2260207087,
-0.2090339214,
-0.0844343007,
-0.3633292913,
-0.2911673784,
0.306224674,
-0.2748051286,
0.0388808139,
0.2660090923,
-0.0165568721,
-0.1161661074,
0.0370272286,
0.1991535574,
0.1833565086,
0.118295446,
-0.1218209714,
-0.0621906966,
-0.2097752243,
-0.039351292,
-0.1454711407,
0.3663660884,
0.0825755373,
0.2260624319,
-0.1475080997,
0.0548122525,
-0.0825347826,
-0.2424459904,
0.2761701345,
-0.1193726584,
0.6835111976,
-0.0490721427,
-0.0101482235,
0.3530786037,
0.2922000885,
-0.1381693631,
-0.3030596972,
-0.1382802874,
0.0993464068,
-0.6759466529,
0.1466281563,
-0.0960858539,
-0.1030868515,
-0.0826963335,
-0.1479651034,
-0.0334589295,
-0.3022651374,
0.0747026205,
-0.2574525476,
0.3939169645,
0.1031623036,
-0.0649498329,
0.3541358709,
-0.0873660892,
-0.2809015214,
0.1270284951,
-0.0665888712,
0.165654555,
-0.7408685088,
-0.1477436274,
-0.0183484014,
-0.1815030873,
0.2883765101,
0.1682549119,
0.1724752188,
0.4368014932,
0.2517398298,
0.3541307747,
-0.021023104,
0.343251586,
0.3131861985,
-0.0112347342,
0.2474580258,
0.0248376634,
0.3714901507,
-0.0004125574,
0.009016199,
-0.6599246264,
0.0679209679,
0.115939267,
-0.1485632211,
-0.2398644835,
-0.4179399014,
-0.1582225561,
-0.0586347952,
-0.1113010645,
0.5018103123,
0.1235099882,
-0.1155993789,
-0.0895079523,
0.0192274302,
0.4378793836,
-0.1458705962,
-0.0979549363,
0.016352497,
0.0411670282,
0.2045770437,
0.0621871166,
0.2487522215,
-0.367816329,
0.1303181648,
-0.0490684882,
0.4444540143,
-0.1659912318,
0.1460125297,
0.1006266177,
-0.2069737017,
0.0788968205,
-0.1332622021,
-0.4218547344,
0.0916285813,
-0.2899061441,
-0.4019012749,
-0.0714187622,
-0.1759272516,
-0.476891458,
0.0616528653,
0.2252952307,
-0.5246815085,
-0.0130114239,
-0.0081325751,
0.8326739669,
-0.3221265376,
0.0141440695,
-0.0476214364,
0.1276526153,
-0.4847742319,
-0.0889538974,
0.5480530262,
0.3216398358,
-0.2220312506,
-0.2398313135,
-0.2551138699,
-0.0794139132,
-0.259994328,
-0.2022048086,
-0.0602390394,
0.08373411,
0.0311897025,
-0.0284741987,
0.7662089467,
-0.4222576022,
-0.0210451614,
-0.0803244114,
0.1119458824,
-0.2272858322,
0.1323757768,
-0.037311513,
0.3576788902,
0.0049095936,
0.0843076929,
0.2205338031,
0.1616145223,
-0.261389643,
-0.2668775022,
-0.271186769,
-0.2316746712,
0.1784904748,
0.3956592083,
-0.035116896,
0.3203668296,
-0.0065063741,
-0.2160919309,
-0.0357711427,
0.1151760444,
0.0618474036,
0.2012488395,
-0.1130906716,
0.0918777585,
-0.123412244,
0.060049247,
0.2182962149,
-0.0904195607,
0.0480321683,
0.1216680408,
-0.1127956063,
-0.467936039,
0.0559172891,
-0.1898509711,
0.0555302314,
0.2089474797,
-0.326934129,
-0.0342499986,
0.1159049571,
0.0020939186,
0.091338627,
0.2793192863,
0.0862989426,
-0.0139889047,
-0.0003465281,
0.2114745975,
0.0567867123,
0.2087512761,
0.4165763259,
0.1913336217,
0.2593638301,
-0.1091644093,
0.4110057652,
-0.0502913781,
0.1841281801,
-0.0150860148,
0.5559140444,
0.0683774129,
0.0065894173,
0.0519288033,
-0.0516525544,
0.0611870699,
-0.0641518682,
-0.2367986143,
0.5868173242,
-0.0794756114,
0.2356157154,
-0.3424955904,
0.0648828819,
0.1319375634,
-0.0953313708,
-0.55274266,
-0.3062810004,
0.1004476622,
-0.0132670887,
0.2669742405,
0.0566560403,
0.0582374707,
-0.3772336841,
-0.1556091011,
0.1259268671,
0.1413590461,
0.158171311,
0.0661023036,
-0.2052510232,
0.0382200815,
-0.4662927389,
0.2903064787,
0.2150233388,
0.0154531617,
-0.0470342413,
-0.2343878746,
-0.0794962198,
0.3340310752,
0.1572770327,
0.0158220343,
0.2130635381,
0.3205013275,
-0.2190817595,
-0.3135822117,
-0.0800573602,
0.0409121253,
-0.0422434099,
-0.3572460115,
-0.0943196937,
-0.1978916675,
0.24500072,
0.1717702746,
0.0460354947,
-0.2025748789,
-0.4122639596,
0.5190322995,
0.2028548717,
-0.1720627695,
0.1802854985,
-0.1151276827,
0.331741184,
-0.0443055592,
-0.4356972277,
-0.1409580261,
-0.181772083,
0.0940515772,
0.0956958607,
0.0057356167,
0.1029755995,
0.3749668598,
-0.0675889924,
0.2991304994,
0.0355552435,
-0.6364482641,
-0.0239807032,
0.2268260419,
0.5722037554,
0.1552381665,
-0.4056130648,
-0.0692543164,
-0.0509042814,
0.2231381536,
0.2037606984,
-0.0061179618,
0.413613826,
-0.0609641857,
0.2502989769,
-0.2219781727,
0.0178010017,
0.1000242531,
-0.5327190161,
0.2453565896,
0.0594391897,
-0.0078857411,
0.068622008,
0.1769718528,
0.0562076122,
0.1112414822,
0.1771618575,
-0.1424995214,
0.1927739233,
0.4930686951,
-0.2048596889,
-0.0341395549,
0.0772611052,
-0.2785189748,
0.4551791847,
0.0798747316,
-0.1620341092,
-0.5353204012,
0.3236709833,
0.2179787308,
-0.0605298094,
-0.4171497524,
0.0311843548,
0.1809617728,
0.0233632661,
-0.0555091947,
-0.1814017147,
0.2989302874,
0.1583503336,
0.1338727325,
-0.0115188845,
0.2164410055,
0.165512532,
0.0562133938,
-0.0208810531,
0.2980595827,
0.0986942276,
0.0352464132,
0.2259936482,
0.1511307359,
-0.0841053277,
0.1994832903,
0.3487315476,
-0.1657781601,
0.3828113377,
0.2678938806,
0.1650659293,
-0.2781142592,
-0.1224359572,
0.1228320748,
-0.2981289625,
0.1224510297,
-0.2493657619,
0.2479146719,
-0.1362841278,
-0.0732631609,
-0.3205818534,
-0.050680615,
0.1360851675,
0.3659797311,
-0.0212373082,
0.0480642207,
0.1203468889,
0.2267452627,
-0.1817408055,
0.2449276298,
-0.282235235,
-0.1319660097,
0.1585787684,
0.0025967546,
0.1485467553,
0.0906283632,
0.4362580478,
-0.165489167,
-0.2084531933,
0.1888996065,
-0.0820999444,
-0.5329559445,
0.0356618017,
-0.0349517651,
-0.4825757146,
0.2373022884,
0.2342271209,
-0.6754450202,
-0.0595334806,
0.1215938255,
0.1488144845,
-0.2491260022,
-0.3720697165,
-0.2491948158,
-0.1661503464,
-0.1850426942,
0.1767450869,
-0.0412341096,
0.2086206228,
0.0582409352,
0.0278216433,
-0.23701033,
-0.2062325627,
0.235076949,
0.2506456673,
0.1796318591,
-0.2191856951,
0.2529245615,
0.1343901604,
-0.2753550708,
-0.0382408984,
0.056091819,
0.1188494191,
-0.5144647956,
0.1194530576,
-0.0995482281,
0.4271163642,
-0.0142535577,
-0.0842273608,
0.1047257185,
-0.4169353843,
0.0466159582,
-0.2416337579,
0.2342704535,
0.1022846922,
0.1387835443,
0.0718400255,
-0.2300118804,
0.716165483,
0.0334569924,
-0.3667717278,
-0.3400567174,
-0.194125846,
-0.2762599885,
0.1269840747,
0.5371962786,
0.6189168692,
-0.2297583967,
-0.4230227172,
0.1905958205,
-0.1576028019,
0.1787088066,
-0.2520561814,
0.0649106801,
-0.1693064421,
0.3038469255,
0.1148398668,
0.0961576328,
0.121355921,
0.028585745,
-0.3229551613,
0.2623015344,
-0.0876452923,
-0.1266815364,
0.0731285587,
0.1338579059,
-0.175151065,
-0.3573806286,
-0.1863693446,
0.1556976438,
-0.0601056255,
-0.151775077,
0.0936810821,
-0.117048271,
0.1334588528,
0.0523661152,
0.0779815987,
-0.3301274776,
-0.1485980749,
0.0718111694,
-0.1227506474,
-0.1340820044,
0.1538654268,
0.3677944839,
0.3159068823,
0.250695169,
-0.2192074955,
0.0688009933,
-0.1206844151,
0.4233388603,
0.1289047897,
0.0205713827,
0.0675248578,
-0.1725015193,
-0.025088571,
0.1401517093,
0.0098185865,
-0.2661959231,
0.1412730217,
0.060811732,
0.256672591,
0.0033595262,
0.2854255736,
-0.2257715315,
0.2838929296,
-0.1538016051,
0.1529940218,
0.2556664348,
0.0278820358,
0.2798300385,
-0.0294745546,
-0.2504781783,
-0.022610344,
0.0359692387,
-0.1192768738,
-0.0034109056,
0.1109195799,
-0.5640185475,
-0.026992524,
-0.0785509422,
-0.2152326107,
-0.3589273393,
-0.2481246144,
0.193783462,
0.2345781922,
-0.2313768864,
0.0745706931,
0.372579515,
0.1676900089,
-0.0997103304,
0.0897698924,
-0.1951111257,
-0.0583482832,
0.2283564806,
-0.0534791425,
0.1799024343,
-0.3127805889,
0.1394998282,
-0.3911752105,
0.1289290786,
-0.3697017133,
-0.2773508132,
-0.0878168717,
0.1667948067,
-0.1807760745,
0.1421957314,
-0.0388468914,
0.2374231815,
0.1220599115,
0.0381970182,
-0.4078212082,
-0.150354147,
-0.415782094,
0.1182317957,
-0.2259812504,
0.2852983177,
0.0547873266,
0.1516320705,
-0.1848930717,
-0.3355189562,
-0.1151430681,
0.151224345,
-0.2504039109,
0.0327739343,
-0.0120637584,
0.2532395124,
0.0426804088,
0.0884669945,
0.0761528835,
0.0691100061,
-0.2445203513,
0.4089044034,
-0.426224649,
0.00134452,
0.3232169449,
0.2378901243,
0.1443796158,
-0.2653337717,
0.0735960156,
0.4012957215,
-0.072784178,
0.0548968464,
0.1699570119,
0.2629704177,
0.0851072147,
-0.0324253924,
0.0058321161,
0.2133553028,
-0.2015921474,
0.1152644977,
-0.3776826859,
-0.1356102675,
0.3888047934,
0.4075065851,
0.4992360175,
-0.2398554981,
0.6050268412,
-0.0692227557,
0.0270403866,
0.0179136992,
0.0892326981,
0.1072706208,
-0.1823897511,
0.1261912882,
0.6123809814,
-0.029622294,
0.3305942118,
-0.2045363337,
-0.2899580896,
0.0331652053,
-0.0681628957,
0.2578574419,
0.0157055724,
0.0174081475,
0.2866870463,
0.0368601754,
-0.2332396507,
0.0928656384,
0.0050937454,
0.3247487545,
-0.1984855831,
0.0808283985,
-0.3066544533,
0.0290483534,
0.1574491113,
-0.1903543472,
-0.1305323839,
-0.4349572957,
-0.2236597389,
-0.1116327792,
0.1209932864,
-0.2770493031,
-0.0610653013,
0.0820432901,
0.4553855658,
-0.1370193809,
-0.0792979375,
0.335709393,
0.2150691748,
-0.324267745,
-0.0028111951,
0.1278240532,
0.0335070975,
0.4683331549,
0.3301254213,
0.0862674341,
-0.0277187638,
0.0959933624,
-0.2647824883,
-0.1995583922,
0.0546615273,
-0.256265074,
0.079241097,
0.226807937,
-0.223317802,
0.3783642352,
0.1649145931,
-0.1877299845,
0.2148338407,
-0.3457733989,
0.0238635205,
-0.6392331123,
0.0873930231,
0.4923712611,
0.0124291852,
0.0293331463,
-0.4252647161,
0.0293374117,
-0.3556754887,
-0.1338487118,
-0.0051878593,
0.0981244966,
-0.084345378,
0.1254211068,
0.1143112481,
-0.053897053,
-0.1814901531,
-0.3265300989,
-0.1567296386,
0.1709609032,
-0.6458711028,
0.0052648042,
0.3642018735,
0.0321771204,
0.1904268265,
0.0564563945,
-0.1080869436,
0.4374265075,
-0.2179743201,
-0.3041595221,
0.2744573057,
-0.1127929986,
-0.3386614323,
-0.0245662443,
0.1490684599,
-0.0836661011,
0.0014883857,
0.0283094719,
-0.0002031655,
-0.3106568754,
0.1391765028,
-0.0663408116,
-0.0854627937,
0.3035061955,
0.2935443521,
0.1796827912,
0.1582036018,
0.3154585063,
-0.1380744576,
0.3068931997,
-0.0322092995,
0.0993030444,
-0.1724683493,
-0.0504151955,
-0.1201308966,
0.1211797073,
-0.0257844236,
-0.1413266361,
0.0438551977,
0.5314904451,
0.0005543618,
-0.6094728708,
-0.0070514046,
0.0545104481,
0.1806106269,
0.0297049712,
-0.2594838738,
0.2796798646,
0.210225746,
0.1567272097,
0.0636735633,
-0.1860810071,
0.2762589157,
-0.1737950742,
-0.0388327315,
-0.056223575,
0.3350419998,
0.4395316839,
0.1541653126,
-0.1488436311,
-0.0303661842,
0.4258216918,
0.242317006,
0.1391754746,
0.4387211204,
0.0353353471,
-0.0228176303,
-0.2492279112,
-0.375660032,
0.1360052973,
0.2666220963,
-0.0287332125,
-0.2172954828
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | Hi ! In the arrow file we store all the integers as uint8.
So your arrow file should weigh around `height x width x n_channels x n_images` bytes.
What feature type do your TFDS dataset have ?
If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file.
We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images. | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 114 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
Hi ! In the arrow file we store all the integers as uint8.
So your arrow file should weigh around `height x width x n_channels x n_images` bytes.
What feature type do your TFDS dataset have ?
If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file.
We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images. | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned.
However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes.
Anyway I look forward to the Image feature type in `datasets`. | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 62 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned.
However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes.
Anyway I look forward to the Image feature type in `datasets`. | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | @lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect.
I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR. | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 77 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
@lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect.
I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR. | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | Interesting !
This may be because of the offsets that are stored with the array data.
Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter.
Ideally in your case the floats data should be 220 MB for both Array2D and Array3D | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 80 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
Interesting !
This may be because of the offsets that are stored with the array data.
Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter.
Ideally in your case the floats data should be 220 MB for both Array2D and Array3D | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue. | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 46 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue. | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2146 | Dataset file size on disk is very large with 3D Array | Pyarrow has two types of lists: variable length lists and fixed size lists.
Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets.
In the `datasets` code this is done here:
https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352
To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`.
I believe this would work directly modulo some changes in the numpy conversion here:
https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395 | Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
| 75 | Dataset file size on disk is very large with 3D Array
Hi,
I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8.
The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`.
`{
"description": "",
"citation": "",
"homepage": "",
"license": "",
"features": {
"image": {
"shape": [224, 224, 3],
"dtype": "uint8",
"id": null,
"_type": "Array3D",
}
},
"post_processed": null,
"supervised_keys": null,
"builder_name": "shot_type_image_dataset",
"config_name": "default",
"version": {
"version_str": "0.0.0",
"description": null,
"major": 0,
"minor": 0,
"patch": 0,
},
"splits": {
"train": {
"name": "train",
"num_bytes": 520803408,
"num_examples": 1479,
"dataset_name": "shot_type_image_dataset",
}
},
"download_checksums": {
"": {
"num_bytes": 16940447118,
"checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03",
}
},
"download_size": 16940447118,
"post_processing_size": null,
"dataset_size": 520803408,
"size_in_bytes": 17461250526,
}`
I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk.
I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records.
This might be a problem for large dataset.
Thanks for your help.
Pyarrow has two types of lists: variable length lists and fixed size lists.
Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets.
In the `datasets` code this is done here:
https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352
To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`.
I believe this would work directly modulo some changes in the numpy conversion here:
https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395 | [
-0.1452736109,
-0.1132630259,
-0.1544178575,
0.4201556742,
0.2135637701,
0.1139130071,
0.5066813827,
0.2730787396,
0.0205231383,
0.0358475558,
-0.1937046945,
0.0874153227,
-0.1694585234,
0.315043956,
0.0677503571,
0.1006881222,
-0.0745175779,
0.2513982952,
-0.133478567,
-0.0857202783,
-0.0097006513,
0.0191181395,
-0.0179094784,
-0.183806181,
-0.0615616776,
-0.1613830626,
0.09134911,
-0.0241850186,
-0.0830982924,
0.0797270983,
0.2449781597,
-0.0880119056,
0.1781996191,
0.5363875031,
-0.0001173844,
0.0502766818,
0.1082940102,
-0.1655320674,
0.0791868195,
0.2893507183,
-0.0925557986,
-0.4095061421,
-0.0746668801,
-0.357608676,
0.0769585893,
-0.3249548674,
-0.1521174759,
-0.1535453945,
0.1848899722,
0.0791001692,
0.2110456675,
0.1533052027,
-0.0271132831,
0.4150458872,
0.0993780494,
0.5338883996,
-0.1533456296,
0.1268557757,
-0.1435385346,
0.437201947,
0.0842976049,
0.07955046,
0.1613586396,
0.2877251506,
0.5040501952,
-0.0555177294,
0.2392115891,
-0.2461922318,
0.1298938543,
0.4001128674,
0.8583651185,
-0.2007375807,
-0.1842803955,
-0.3255718946,
-0.1083302125,
-0.0323388539,
0.0225408748,
0.3800635636,
-0.0498899706,
0.0219305512,
-0.6522024274,
-0.1392248124,
-0.2269418985,
0.1455016732,
-0.2136533111,
-0.4809676409,
-0.1380901486,
0.1503390372,
-0.1890009195,
-0.2658366263,
0.2607783675,
-0.3955923915,
0.0734376162,
-0.0997147486,
-0.26596573,
-0.2101806253,
-0.2905139327,
-0.3803426921,
0.3530269861,
-0.1538060606,
-0.0108279893,
-0.1519932449,
-0.3648931682,
-0.147742182,
0.1039848328,
0.3860374391,
-0.4768469632,
-0.1385978758,
-0.1418680102,
-0.2950905859,
-0.0408816896,
-0.0522946417,
-0.2465379983,
-0.09075775,
0.1986331642,
-0.4835402668,
0.063936606,
-0.0618668906,
0.0446808673,
0.0238075182,
0.0864811614,
-0.0952554196,
-0.0751626715,
0.1316529512,
0.1410508603,
0.1352760345,
-0.1400614232,
-0.039204061,
-0.1859154999,
0.0416380018,
-0.122966975,
-0.1046107709,
0.0626310706,
-0.0817553177,
0.1144737899,
0.1505685151,
0.0522913709,
-0.1904568821,
0.0903886333,
0.2001002282,
0.2624740303,
-0.3473195136,
0.4073756635,
0.3550086915,
0.1589062363,
0.1983187348,
-0.285420388,
0.139864713,
-0.1997081041,
0.4944944978,
-0.5467608571,
-0.0453603417,
-0.4173413515,
0.0906219333,
-0.223434478,
-0.0543199517,
-0.5728363991,
0.0097433049,
0.339553237,
-0.1186216548,
0.0678244382,
-0.2173455358,
-0.3785402775,
-0.294359833,
-0.0371542908,
0.0312657803,
-0.7563118339,
0.2612311542,
-0.1514394581,
0.0817361847,
0.1952202916,
0.5952159166,
-0.089951992,
0.4252851009,
-0.4255605936,
-0.0484713018,
0.0430044048,
-0.0384001285,
-0.6611079574,
0.487341404,
0.0706719682,
0.0485029072,
0.1124143898,
0.3201819956,
0.1636859924,
-0.0163750257,
-0.2228289098,
0.3266058862,
0.0910481662,
0.0426692702,
-0.1908327788,
-0.3811231256,
0.0882390738,
0.0459809527,
-0.1374951452,
-0.1405356973,
0.131444931,
0.083487168,
0.2107225806,
-0.1292202473,
0.0360600352,
0.3705857694,
0.2096634358,
-0.2556735873,
-0.0215889607,
0.1423658729,
-0.6317535043,
0.1833809614,
0.2472616285,
-0.4363888502,
0.1557536274,
-0.1044432148,
0.0382066257,
-0.2296465188,
-0.0895895511,
0.2013011873,
0.0237026718,
-0.0005765395,
-0.0091964277,
-0.0104558235,
-0.00859138,
-0.1477525532,
0.1148844883,
-0.1881846488,
-0.4114225805,
0.3561541438,
0.2135653198,
-0.0350420102,
-0.1056868657,
-0.0788613409,
-0.3569895327,
-0.3410832286,
-0.1865351647,
0.0800961778,
0.2511081696,
0.121247828,
-0.0773304179,
0.4837379754,
0.2234308571,
0.0761165917,
0.3378685415,
-0.1210734397,
0.0945777968,
-0.2206154615,
-0.2020522654,
0.2165208012,
-0.1918248236,
0.0659024864,
0.0202881005,
-0.3593148589,
0.2857809067,
0.133305639,
0.1050534695,
-0.2576685548,
-0.0769441873,
0.1929025054,
0.3467421532,
0.2029424608,
0.1076558903,
0.04675382,
0.6398189664,
-0.1667218506,
0.1070182472,
0.364520967,
-0.1265422553,
-0.0783274099,
0.1058711782,
0.2452510595,
0.5257763267,
0.2170312256,
0.0459646583,
-0.0413739458,
0.4925530851,
-0.1443798691,
0.0811915472,
0.0678966269,
0.5235671997,
0.281091094,
0.1602382958,
0.0027564848,
-0.2844557166,
-0.1133065969,
0.2043943703,
0.246566236,
-0.3033527136,
0.1999262571,
-0.1631350666,
-0.2681359351,
-0.0947999731,
0.1902986914,
-0.0601118505,
0.124841474,
-0.3277059495,
-0.1944482177,
0.0251020882,
-0.079767406,
0.1439214647,
0.0847971886,
0.2937845886,
-0.0679316074,
0.2701690495,
0.3433181942,
-0.0878248587,
0.0354878344,
0.4142911434,
-0.1485609412,
0.3000024855,
-0.1635023952,
0.2096655667,
-0.1380711496,
-0.251680851,
0.120453015,
0.0605555922,
0.0706452355,
-0.1095739678,
0.27406618,
-0.1995599419,
0.2018908709,
0.0286065619,
0.0493995249,
-0.2603569031,
0.0002534068,
-0.0481879301,
-0.1286522299,
-0.217470482,
0.0934465304,
-0.2839458287,
-0.050991077,
0.2078642547,
0.1816902012,
0.2575589418,
0.3705633879,
0.1723434031,
0.0412284397,
0.1493280083,
-0.0243311692,
-0.1940805912,
-0.4591633677,
0.1459613591,
-0.028291218,
-0.3725241721,
0.1432911605,
0.0114656426,
0.192036733,
0.2045512199,
-0.6480359435,
-0.039491225,
-0.2930946648,
0.0378666036,
-0.1762448102,
0.1218834519,
0.0200794712,
-0.2159729749,
0.0826532692,
-0.0400288068,
-0.1227324307,
-0.0801261291,
0.1514733434,
0.1209952235,
0.1277422458,
0.538325727,
0.2677577138,
0.4104946554,
0.1294865757,
-0.3016062379,
0.1248358414,
-0.1209925264,
0.3700110614,
-0.2481315434,
0.0517884716,
0.3423664868,
0.1794075072,
-0.2017466575,
0.2401466668,
-0.004897635,
-0.0705832914,
0.3367036283,
0.0287898201,
-0.1383410245,
0.0239062496,
0.1935493201,
-0.0604689978,
0.010493679,
-0.0702694878,
-0.0987723246,
-0.1590379179,
-0.3050754368,
-0.0873736069,
0.1904459894,
0.2198336422,
0.0339710899,
-0.3773391247,
-0.1148497984,
-0.3479646742,
0.1886433065,
-0.1687080562,
0.3023190796,
0.0322839022,
0.2741392255,
0.2475181222,
0.1615710706,
0.9262683392,
-0.0916073397,
0.0714725852,
-0.1972738206,
-0.043567773,
-0.5894111395,
-0.1542812288,
-0.0789643377,
0.0270804558,
-0.0590394698,
0.5538502932,
-0.0631092787,
-0.0686066523,
-0.261759311,
0.2991939187,
-0.3168809414,
-0.3877652287,
-0.2755345404,
-0.2933422327,
-0.1356877089,
-0.3935819864,
0.0199943725,
-0.0869562253,
0.07560011,
-0.3193264008,
-0.2675704062,
-0.1990125328,
0.0541383326,
0.0145461215,
0.3740360737,
0.3435081542,
0.2086752802,
-0.0869257003,
0.3284697831,
0.3661999702,
0.2595767379,
0.0718754977,
0.056867063,
0.2052865773,
-0.2167997062,
0.0861621648,
0.1083561704,
-0.025059035,
-0.2877220809,
-0.0670189112,
0.111989893,
-0.2830276489,
0.1024945974,
0.3718268275,
-0.1586076915,
-0.0864218771,
-0.3929764926,
0.3548668325,
0.0121599892,
0.0940141082,
0.0360053703,
-0.0519519784,
-0.1494734585,
0.1480955333,
0.2831670642,
0.5525887609,
-0.3548775315,
0.3033213019,
0.2974139154,
0.0017680335,
0.0114033073,
-0.0265305545,
-0.1680650264,
-0.1445069313,
-0.3122713864,
0.0030846058,
-0.1878084987,
-0.0254936982,
0.4849461317,
0.1750964522,
0.043912787,
0.2067070305,
0.0071272859,
-0.1149760634,
0.5293211341,
0.2995491028,
-0.2283002287,
0.0325018167,
0.0639347881,
-0.2548326254,
-0.1903491914,
-0.0622591861,
-0.0863795877,
-0.0984941944,
0.221580416,
-0.0403398015,
-0.2126668245,
-0.1238956973,
0.3679514229,
-0.1082211807,
-0.2316223532,
0.1815727353,
0.0838662758,
-0.2010203451,
0.1966230571,
-0.1573187113,
0.1279698908,
0.0030061146,
0.3249220252,
0.1413984746,
-0.1144988537,
-0.0310455188,
-0.0913246647,
0.0234270729,
-0.1943865865,
0.1888038814,
-0.1482694,
-0.0629259497,
0.0454888754,
0.0297896918,
-0.0961101651,
-0.6530035138,
-0.3431920409,
-0.2048238367,
0.4010297954,
0.0805630535,
0.1309610456,
0.212483108,
0.4965967536,
0.0243889224,
-0.3730359972,
-0.1403263658,
0.1895269901,
0.2858308554,
0.1799472868,
0.3866922855,
-0.1341088414,
-0.1365940124,
-0.0709896311,
0.6510818601,
0.1012728736,
-0.1912544221,
-0.0577659197,
-0.0403905585,
0.3169394732,
0.0208148379,
-0.3343826532,
0.1883580536,
-0.0939156711,
-0.3599131405,
-0.2077344507,
-0.1373050362,
0.12147104,
-0.1601490825,
0.2943196297,
0.0504379496,
-0.1864533722,
0.0016885494,
-0.0764312372,
-0.2049330324,
0.1969457418,
0.2957783043,
0.0060843416,
-0.3328678012,
0.0645709634,
-0.0876780227,
-0.2682571411,
-0.0669381544,
-0.1471435726,
-0.1714790463,
-0.1753693521,
0.0967809111,
0.1115375161,
0.1287061572,
-0.2801169753,
0.1016182527,
-0.3750436902,
-0.478846699,
-0.1348807216,
0.1319557577,
-0.0679690018,
-0.0909872502,
0.1033133715,
0.0220808927,
-0.2510058284,
0.0079652546,
0.1416075677,
0.0354231931,
0.2988490462,
0.1892451793,
0.1612935811,
0.1742737889,
0.0425287224,
-0.4761441648,
0.0175631065,
-0.0588391386,
0.099573195,
0.1874169856,
-0.1962639242,
0.2503474355,
0.2590202391,
0.3225478232,
0.1073598936,
-0.4383763075,
-0.2273100764,
-0.0798546672,
0.1225002781,
0.0510140881,
-0.1831586808,
0.1945353895,
0.2868765295,
-0.0688323006,
0.3184705973,
0.23520042,
0.3476955295,
-0.420147717,
0.0468275473,
0.4110743403,
0.0671938285,
-0.1297738105,
0.4717316329,
-0.203624934,
0.0523637608,
0.0846017227,
0.2946646512,
0.1201958805,
0.8587024808,
0.1290913671,
0.1891805083,
0.4139887393,
-0.0303376392,
0.0068450398,
-0.4966721237,
-0.0952326432,
0.1984753162,
-0.1680757552,
0.2741125822,
0.1702120751,
-0.3590528667,
0.1909861714,
-0.3852771819,
-0.2336917371,
-0.0620265454,
-0.2622533441,
0.1335815787,
-0.0030270859,
0.0273251105,
0.1620101631,
0.2371409237,
-0.3845196068,
-0.3014772236,
-0.2461310178,
0.188907966,
-0.2023762912,
0.212477684,
0.4214306176,
0.0444424786,
-0.0315243825,
-0.0391089655,
0.3646276295,
0.0986838937,
0.1010683924,
-0.0881534517,
0.0778104737,
0.130308494,
0.194221735,
0.1864718199,
-0.0245689694,
0.229917556,
-0.0123416828,
-0.063806057,
0.0230799392,
-0.1007114127,
-0.0150634516,
0.1352046877,
0.0769987777,
-0.0195251722,
-0.1023715362,
0.4225894809,
-0.0051350496,
-0.48660025,
-0.0333420075,
-0.4977216721,
-0.0050531668,
-0.0514773242,
0.0287456159,
-0.4116463363,
-0.2353768945,
0.5690824986,
-0.2013362795,
0.2559473515,
0.0774658248,
0.04566155,
-0.6079735756,
0.622748971,
0.1627822071,
0.0933042467,
-0.0685406849,
0.1594238579,
-0.5500156879,
0.030385932,
-0.2166633159,
-0.1015652865,
0.2339971215,
0.4140378237,
-0.0308634285,
-0.0486868396,
0.165085271,
0.0038428793,
-0.1916441321,
0.0894424915,
-0.2841002643,
-0.1390903443,
-0.1443408877,
0.1185548902,
-0.1753247529,
-0.4083873332,
0.3195689023,
-0.0093018096,
-0.0767880157,
-0.1066461131,
0.2173392326,
-0.1415834129,
0.4878295958,
0.4013833404,
-0.0483228453,
0.3463921547,
0.0004340716,
0.0175026767,
0.0451891422,
0.1241302118,
-0.027961934,
0.7077246308,
0.0045385798,
0.140118897,
-0.0876325965,
0.093317233,
0.1183361635,
0.0912862271,
-0.0013898927,
-0.1583743691,
-0.1358545125,
0.0508203544,
-0.1527412236,
0.0265370905,
0.1540857852,
0.1232055426,
0.0315914601,
-0.0814921781,
-0.0285236202,
-0.0700531453,
0.318890512,
0.0257117264,
-0.0847275928,
0.053384617,
-0.0156112611,
-0.02105592,
-0.018730402,
-0.2966990769,
0.2012092918,
0.4706380069,
-0.2481852174,
-0.0093806656,
0.3947988749,
-0.2101586312,
0.0058914782,
-0.0756307617,
0.7668735981,
-0.1517629474,
-0.3578998148,
-0.1258621812,
-0.0418125167
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | That's how I loaded the dataset
```python
from datasets import load_dataset
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
``` | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 17 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
That's how I loaded the dataset
```python
from datasets import load_dataset
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
``` | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | Hi ! It looks like the arrow file in the folder
`/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted.
Can you take a look and check that it's 18.3GB ?
If not, then maybe you need to redownload it:
```python
from datasets import load_dataset
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload")
``` | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 46 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
Hi ! It looks like the arrow file in the folder
`/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted.
Can you take a look and check that it's 18.3GB ?
If not, then maybe you need to redownload it:
```python
from datasets import load_dataset
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload")
``` | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | > Hi ! It looks like the arrow file in the folder
> `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted.
>
> Can you take a look and check that it's 18.3GB ?
>
> If not, then maybe you need to redownload it:
>
> ```python
> from datasets import load_dataset
> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload")
> ```
Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue. | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 113 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
> Hi ! It looks like the arrow file in the folder
> `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted.
>
> Can you take a look and check that it's 18.3GB ?
>
> If not, then maybe you need to redownload it:
>
> ```python
> from datasets import load_dataset
> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload")
> ```
Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue. | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | I just tried on my side and got no issues.
When downloading the dataset again, did it crash at 10.7GB as well ? | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 23 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
I just tried on my side and got no issues.
When downloading the dataset again, did it crash at 10.7GB as well ? | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | > I just tried on my side and got no issues.
> When downloading the dataset again, did it crash at 10.7GB as well ?
Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours? | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 59 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
> I just tried on my side and got no issues.
> When downloading the dataset again, did it crash at 10.7GB as well ?
Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours? | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2144 | Loading wikipedia 20200501.en throws pyarrow related error | I tried using `datasets` from `master` on macos with python 3.7.2
I also have `requests==2.23.0` and `tqdm==4.45.0`. | **Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
| 17 | Loading wikipedia 20200501.en throws pyarrow related error
**Problem description**
I am getting the following error when trying to load wikipedia/20200501.en dataset.
**Error log**
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s]
Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s]
Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data.
Traceback (most recent call last):
File "load_wiki.py", line 2, in <module>
ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache')
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset
ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset
map_tuple=True,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset
in_memory=in_memory,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read
return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files
pa_table = self._read_files(files, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename
pa_table = ArrowReader.read_table(filename, in_memory=in_memory)
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: Expected to be able to read 9176784 bytes for message body, got 4918712
**Detailed version info**
datasets==1.5.0
- dataclasses [required: Any, installed: 0.8]
- dill [required: Any, installed: 0.3.3]
- fsspec [required: Any, installed: 0.8.7]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- huggingface-hub [required: <0.1.0, installed: 0.0.7]
- filelock [required: Any, installed: 3.0.12]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- requests [required: Any, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: Any, installed: 4.49.0]
- importlib-metadata [required: Any, installed: 1.7.0]
- zipp [required: >=0.5, installed: 3.1.0]
- multiprocess [required: Any, installed: 0.70.11.1]
- dill [required: >=0.3.3, installed: 0.3.3]
- numpy [required: >=1.17, installed: 1.17.0]
- pandas [required: Any, installed: 1.1.5]
- numpy [required: >=1.15.4, installed: 1.17.0]
- python-dateutil [required: >=2.7.3, installed: 2.8.0]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
- pyarrow [required: >=0.17.1, installed: 3.0.0]
- numpy [required: >=1.16.6, installed: 1.17.0]
- requests [required: >=2.19.0, installed: 2.24.0]
- certifi [required: >=2017.4.17, installed: 2020.6.20]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.6]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10]
- tqdm [required: >=4.27,<4.50.0, installed: 4.49.0]
- xxhash [required: Any, installed: 2.0.0]
I tried using `datasets` from `master` on macos with python 3.7.2
I also have `requests==2.23.0` and `tqdm==4.45.0`. | [
-0.1041544527,
0.3526459336,
0.0340579785,
0.3633104265,
0.2745774984,
0.1802080125,
0.2762238383,
0.4623250961,
-0.0434875786,
-0.113784194,
0.0247378871,
0.2360218465,
0.1520679891,
-0.1178019345,
0.1841087043,
-0.1683135182,
0.0038772854,
0.0068802559,
0.0847920552,
0.1328445375,
-0.2001203001,
0.1146740988,
-0.1824862957,
0.1555173844,
-0.5857793093,
0.0881163776,
-0.0660177395,
0.0540414676,
0.0833241642,
-0.6138041615,
0.3904818892,
-0.05005401,
0.2010907978,
0.2121308744,
-0.0001204597,
0.0749960765,
0.4643651247,
-0.0041333307,
-0.2960132658,
-0.0811442882,
0.186580047,
-0.0205054749,
0.3180879951,
-0.3607696295,
0.1008785367,
-0.2803394198,
0.224259451,
0.0471993908,
0.1832174808,
0.0086327903,
0.1682859063,
-0.18305327,
0.3375389874,
0.030643668,
0.7112435102,
-0.137468785,
0.0815055147,
0.4424605072,
0.1225970611,
-0.1607156843,
-0.1864349544,
0.2362977266,
-0.2502576709,
0.1203091741,
0.2671836317,
-0.0770428106,
0.3848764598,
-0.200495407,
0.3921532631,
0.267957747,
0.7762548923,
-0.4092204869,
0.1730334163,
-0.2313116044,
-0.0328708924,
-0.0229596365,
0.0938251913,
0.2307372093,
-0.2767693996,
0.0545302145,
0.157185629,
-0.1188709214,
-0.2609153688,
0.301315397,
-0.0642478019,
0.1997204423,
0.1399379224,
0.3910685778,
0.0163353104,
-0.2268838882,
0.0019350685,
0.0632643402,
0.1672584265,
0.2208641618,
-0.3931135535,
0.1072578207,
-0.0683026686,
0.1139045358,
0.3778617978,
-0.1693616956,
-0.0215965156,
0.065941669,
0.2391712517,
0.2064650506,
0.4192266762,
0.1241850555,
-0.323741138,
-0.298722446,
0.2721663117,
0.1988997161,
-0.2542141974,
-0.036441233,
-0.0612121224,
-0.1137952507,
0.1385728866,
-0.1709845066,
0.4291740656,
-0.2699915171,
-0.2205798328,
0.1195768639,
-0.1446800828,
-0.0715673938,
-0.1552302688,
0.386720717,
-0.091678828,
0.242499873,
0.0672105923,
0.0622376949,
-0.1821435392,
-0.1878140122,
0.0057538538,
0.1186778471,
-0.2124673128,
0.1797934473,
0.2939304709,
-0.1538041979,
0.2583540082,
0.1435223669,
-0.1506105512,
-0.1206760928,
0.1700641364,
0.0130382292,
-0.2326724827,
0.3098334372,
0.0075013465,
0.2468720376,
-0.0328952745,
-0.1449697018,
-0.1790343672,
0.3182585239,
-0.2848283648,
-0.5152549744,
-0.2622505724,
0.1209051609,
-0.0116633186,
0.0844509974,
0.1616870165,
0.0576541014,
0.4413492084,
-0.5136591792,
-0.1003229022,
-0.1257848591,
-0.1855282634,
-0.452753216,
0.1706373394,
0.3363129199,
-0.5569392443,
0.0798322484,
-0.0507643074,
0.082403414,
0.2173672915,
0.44500193,
-0.2298558652,
0.1757666171,
-0.165486455,
0.1924014241,
0.1095910743,
-0.3121572435,
-0.5411028862,
0.2140133381,
-0.0612865984,
0.1959041357,
0.0259575248,
0.2906032503,
0.0093368385,
0.1717623025,
0.4052647948,
0.2492508888,
-0.0467649847,
0.0787922069,
-0.4085267484,
-0.3879696131,
0.3385640681,
0.2016661018,
-0.0047451304,
-0.1988982856,
0.1968250573,
0.3221479952,
0.2584795654,
-0.2035794556,
0.1287961602,
0.0218390804,
0.0705180764,
-0.0129470453,
0.2327661663,
-0.2238295376,
-0.4262205064,
0.111445941,
-0.3431402147,
-0.0235896595,
-0.3043866754,
-0.3612284362,
-0.5231872201,
0.0663693473,
-0.1714642346,
-0.2400975823,
0.1150505096,
-0.0613337345,
0.0953497291,
0.2569483519,
0.1027862281,
-0.0896764249,
-0.2042664886,
-0.0175576638,
-0.4030897021,
0.2405166328,
-0.30879879,
-0.1786499321,
-0.0221913215,
0.2451282144,
0.3246084154,
0.1002938449,
0.0431752615,
0.1558431685,
0.1467773765,
0.0931868404,
-0.1324361563,
-0.0177006405,
0.2272263914,
-0.2668781281,
0.204007864,
0.1240447983,
0.1868999153,
-0.2210173756,
0.0509524308,
0.1322415322,
-0.0020000385,
0.1718759388,
-0.0822381526,
-0.0712245181,
0.1570296139,
-0.0034187415,
0.3967844546,
-0.1355208606,
0.2599030137,
0.4711598158,
0.0430018343,
0.103708066,
-0.0057753217,
0.0103609934,
0.1143460944,
-0.0471607372,
0.1531224698,
0.1461277157,
-0.3416619599,
-0.2851568758,
0.2188830972,
-0.144235298,
0.0782737434,
0.0937128589,
0.0280694738,
0.1398482919,
-0.0689810216,
-0.1951030195,
0.1316022128,
-0.1178800687,
0.4590723217,
0.3100675941,
0.3028901517,
-0.0293435901,
-0.3765668869,
0.0593947433,
0.0831140205,
0.3793655932,
-0.304089427,
0.0794887915,
-0.1713321805,
-0.2434593588,
-0.0772665218,
-0.0130453231,
-0.2915109098,
-0.31731534,
0.0815710574,
0.5144314766,
0.0328679085,
0.0099862302,
-0.0540031865,
-0.0480348952,
0.0796882734,
-0.1308918148,
-0.0505059138,
-0.7057310343,
-0.3859114647,
0.0051476108,
0.257486254,
-0.1339792609,
0.2502460778,
-0.0254033934,
-0.1927465647,
-0.3766916096,
-0.5513483286,
-0.0036724557,
-0.1104056016,
0.3178442419,
0.0176331997,
0.395771265,
0.0727887526,
-0.2152883261,
0.2103866637,
0.0130577981,
-0.0248657558,
0.2813801765,
-0.3631691933,
0.084414348,
-0.0089284871,
-0.2284815013,
-0.2832892239,
-0.1489341408,
0.1993965209,
0.0630166382,
0.1870309561,
0.2383008897,
0.0628928244,
0.1012386903,
0.2758947909,
0.0676460415,
-0.3717181683,
-0.160833016,
0.3060971797,
-0.2184318602,
-0.2773067355,
0.1912306547,
0.0027227332,
0.124186188,
0.2216509134,
-0.5899147391,
0.0072065028,
0.0857219249,
0.3271368146,
0.0319639333,
-0.1462096274,
0.23672086,
0.0211271737,
0.0012417912,
0.0620595142,
0.0056531462,
-0.1206232458,
-0.1537074894,
0.1662412286,
0.1140269339,
0.209468022,
0.1647178829,
0.783613801,
0.0867719352,
0.0424955972,
0.4263213873,
-0.1883070618,
0.0635278448,
-0.1462811232,
-0.0966461822,
0.0314844139,
-0.3452982008,
-0.2316503078,
0.123154372,
-0.1210033596,
-0.3868956864,
-0.0544535331,
-0.2450858355,
-0.2544879913,
-0.2394927293,
0.0445746072,
-0.0382834338,
0.3793730438,
0.1044159904,
-0.1685186177,
-0.1514845639,
-0.4425000846,
-0.0287860148,
0.146330893,
-0.0292479265,
-0.0367807969,
-0.1005662009,
-0.202929005,
-0.5161774755,
0.4155936241,
0.2859544158,
0.1105865762,
-0.1718756557,
0.0878227577,
0.447886467,
-0.1853178889,
0.6596494317,
-0.170852676,
0.0438119099,
0.0984821096,
0.1837499738,
-0.7251464725,
-0.0194138419,
0.1475445479,
0.1342767775,
0.2153129727,
-0.1166653931,
-0.5139332414,
0.0979646519,
0.3441001773,
0.3732794523,
-0.0886276066,
-0.1792947501,
-0.1912722886,
-0.376727283,
-0.5138630271,
-0.1649231017,
-0.2111012191,
0.2683067024,
-0.0255610887,
0.0310487226,
0.0503848046,
0.2014783919,
-0.0147319278,
0.2821474969,
0.2859055996,
0.0165022854,
0.0235097278,
0.095930323,
0.0991035029,
0.3470712304,
0.3539324403,
0.2881973088,
-0.0423730724,
-0.0889981687,
0.0853009522,
-0.0638200194,
0.1812103987,
-0.1502871662,
0.0666160733,
-0.0016665532,
-0.1978691071,
-0.0734471753,
-0.1572471559,
0.3747444451,
-0.2212854326,
-0.2982092202,
-0.2389817089,
0.7085090876,
0.1589901596,
-0.0960436612,
0.1231107265,
-0.1088688001,
-0.1373424828,
0.3652407229,
0.1177064329,
0.9276634455,
-0.152206853,
0.3289298415,
0.3286551535,
-0.0396979451,
0.5044323802,
-0.2825069129,
0.1339878887,
-0.4844108522,
0.2856452167,
-0.0108885625,
-0.0980819166,
-0.1546720713,
0.031080991,
-0.1827834398,
0.0733061582,
-0.220705241,
0.0885887519,
0.0106328111,
0.3567405641,
-0.0083509842,
0.1106859744,
-0.0842746198,
0.0562640093,
-0.3195543289,
0.2571130991,
-0.2615229487,
-0.0009581642,
0.0979614854,
-0.1563697159,
-0.4544548988,
0.0785483941,
-0.1875041276,
0.4533363879,
-0.3069438934,
-0.3188786507,
0.0176066197,
0.0598259792,
-0.0411653183,
-0.0937834084,
-0.3611283004,
0.1809432209,
-0.2230478376,
-0.1647404879,
-0.1060880348,
0.0703288466,
0.2264246941,
-0.0705450401,
-0.465046972,
0.3104069531,
-0.0331903212,
-0.2690660357,
-0.1951662451,
0.0056178598,
0.07666336,
-0.1938509792,
-0.15716663,
-0.2530138791,
-0.1191877872,
-0.135808453,
0.0734142438,
-0.1295601428,
0.0084916539,
0.0646590367,
0.0685640052,
-0.3869740367,
0.115559943,
0.4719052613,
0.3767463267,
0.1686640829,
0.6754418612,
0.2683519423,
-0.2663929164,
-0.0136303455,
-0.3504726291,
-0.3611339033,
-0.3933809698,
-0.0750969127,
0.1329659969,
0.4606647491,
-0.2361182123,
0.1057872698,
0.156512633,
-0.1004551128,
0.1289462745,
-0.4669056833,
-0.2856478691,
0.3458830416,
-0.1558522135,
0.2150659561,
0.3333630264,
0.1371670365,
0.0941938534,
0.281773597,
-0.207454592,
0.4754827619,
-0.0808621347,
0.3691470325,
0.1022728235,
-0.1045175567,
-0.1664326936,
0.0043670461,
0.0278087184,
0.0733080655,
-0.0842070431,
-0.1873688549,
-0.0597407557,
0.1769644767,
0.059537109,
-0.206846714,
-0.1221328452,
-0.4088253379,
0.0580775999,
-0.0109870881,
0.3590630889,
0.1042839289,
-0.0777885169,
0.1733734608,
0.1805441082,
0.1427157819,
-0.2289880365,
0.3619519174,
-0.1334511936,
0.3957298994,
0.2669550776,
0.2385377884,
-0.0947236344,
-0.0126238074,
-0.2449380308,
0.0805035084,
0.1154416949,
-0.1886786073,
0.1852279752,
-0.2776902616,
-0.2030885667,
-0.0213788636,
0.0164035428,
0.3396819532,
-0.1417618394,
-0.0548670106,
-0.0608210415,
0.1005869061,
-0.2835874259,
0.0460618772,
0.4852421284,
-0.1776812226,
-0.2785928845,
0.0687627047,
0.5847010612,
-0.0438936055,
0.1663227081,
0.0466530286,
0.2393528074,
0.011582044,
0.0854461342,
0.2219160348,
0.1098192856,
-0.1377401352,
0.0567910857,
0.2720846832,
0.1866964996,
0.4535919428,
-0.1657375544,
0.0975394696,
-0.1927062273,
0.047214251,
-0.1411456466,
-0.3601850271,
0.1597560942,
0.4120801985,
0.1318733096,
0.0065877489,
0.0914899334,
0.3713225722,
0.6368663311,
0.0102784643,
-0.0483852662,
0.3622553647,
-0.1486778855,
-0.1804167479,
-0.2978948057,
-0.3707217872,
0.0285330173,
0.1508211195,
-0.2404497117,
-0.2233103663,
0.2616767287,
0.1858804375,
-0.3208233714,
-0.6472076178,
0.518828094,
0.283164084,
0.1351262927,
-0.2225771695,
0.2115806937,
0.124840118,
-0.0737040043,
0.1012158543,
0.2894662023,
0.6575102806,
0.3211219609,
-0.712247014,
0.0241688192,
-0.1587845087,
0.0964293256,
-0.0956944525,
-0.0255603194,
0.1547428966,
-0.0726351738,
0.2175967991,
0.0557839833,
-0.0313380063,
-0.1637456119,
0.4401105344,
0.0479712225,
-0.2145299464,
-0.2602035999,
-0.1867546588,
-0.2116840631,
0.0047942791,
0.0889467895,
-0.3720792532,
0.2248479128,
0.433929354,
0.0074971151,
0.1416674405,
-0.0861912146,
0.0382656828,
-0.280443877,
0.4323860705,
0.2422128469,
0.1094460115,
-0.4453439415,
-0.2630244195,
-0.6950753331,
0.3619222343,
-0.4275679886,
-0.0046956264,
0.3281985223,
0.1819262356,
-0.2007465065,
0.1665136665,
0.0720967501,
-0.14359653,
-0.1851026416,
0.3347556889,
-0.2243232727,
-0.1052199304,
-0.1288037449,
-0.2936490178,
-0.2516882718,
-0.3236354291,
0.214736402,
-0.1949798465,
-0.0477230549,
-0.2938645184,
-0.1443585008,
0.1363733262,
0.1835708767,
0.508359611,
0.0855288506,
0.6090765595,
0.0791572407,
-0.0309701096,
-0.2001258284,
-0.1561924964,
0.1780349612,
0.2961327136,
0.0426093601,
0.1194768101,
-0.0950098708,
-0.1640060395,
-0.1698605865,
0.5059779286,
-0.0187876094,
0.0761010721,
-0.0015460487,
-0.2256754041,
0.0126299234,
0.3037438691,
-0.1414279044,
0.1818355918,
-0.0693849996,
0.3124790788,
-0.2922696769,
-0.4456368089,
0.4373094738,
-0.428429842,
-0.3710170686,
0.0440438539,
0.1237263009,
-0.1983824223,
-0.1003209129,
-0.3580922782,
0.1454562992,
0.4109818637,
-0.0160897635,
-0.1379519552,
-0.1122563258,
-0.0849025473,
-0.1042080373,
-0.2067106813,
0.0315534696,
0.042001944,
-0.1544649154,
-0.3315708637,
-0.5234955549
] |
https://github.com/huggingface/datasets/issues/2139 | TypeError when using save_to_disk in a dataset loaded with ReadInstruction split | Hi !
I think this has been fixed recently on `master`.
Can you try again by installing `datasets` from `master` ?
```
pip install git+https://github.com/huggingface/datasets.git
``` | Hi,
Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`.
Here is the minimal reproducible example:
```python
from datasets import load_dataset
from datasets import ReadInstruction
data_1 = load_dataset(
"wikiann",
"en",
split="validation",
)
data_1.save_to_disk("temporary_path_1")
print("Save with regular split works.")
data_2 = load_dataset(
"wikiann",
"en",
split=ReadInstruction("validation", to=50, unit="%"),
)
data_2.save_to_disk("temporary_path_2")
```
and the corresponding output:
```
Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9)
Save with regular split works.
Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9)
Traceback (most recent call last):
File "bug.py", line 20, in <module>
data_2.save_to_disk("temporary_path_2")
File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk
json.dump(state, state_file, indent=2, sort_keys=True)
File "/usr/lib/python3.7/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ReadInstruction is not JSON serializable
```
Let me know if there is some misuse from my end.
Thanks in advance.
| 26 | TypeError when using save_to_disk in a dataset loaded with ReadInstruction split
Hi,
Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`.
Here is the minimal reproducible example:
```python
from datasets import load_dataset
from datasets import ReadInstruction
data_1 = load_dataset(
"wikiann",
"en",
split="validation",
)
data_1.save_to_disk("temporary_path_1")
print("Save with regular split works.")
data_2 = load_dataset(
"wikiann",
"en",
split=ReadInstruction("validation", to=50, unit="%"),
)
data_2.save_to_disk("temporary_path_2")
```
and the corresponding output:
```
Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9)
Save with regular split works.
Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9)
Traceback (most recent call last):
File "bug.py", line 20, in <module>
data_2.save_to_disk("temporary_path_2")
File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk
json.dump(state, state_file, indent=2, sort_keys=True)
File "/usr/lib/python3.7/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ReadInstruction is not JSON serializable
```
Let me know if there is some misuse from my end.
Thanks in advance.
Hi !
I think this has been fixed recently on `master`.
Can you try again by installing `datasets` from `master` ?
```
pip install git+https://github.com/huggingface/datasets.git
``` | [
-0.1317064166,
0.2105593234,
0.0438050441,
0.3900920749,
0.3082846105,
0.2542074621,
0.4115678072,
0.218305409,
0.1559665054,
0.0927032307,
-0.1810031384,
0.3821817338,
-0.1831880063,
0.4692059755,
-0.3343833685,
-0.2261848152,
0.1314816028,
0.0324933827,
0.0247838777,
0.1516534537,
-0.2917743921,
0.2401538193,
-0.2096994668,
-0.0722316355,
-0.1023981869,
-0.2237327844,
-0.0900936201,
0.1784161776,
-0.0479017645,
-0.2700757086,
0.4981570244,
-0.0863718018,
0.2484551519,
0.4595010281,
-0.0001193325,
0.2449737191,
0.2752628028,
-0.1217553765,
-0.4869105518,
-0.1442824304,
-0.1124069914,
-0.3307711482,
0.2289601713,
-0.2849004269,
0.2563338578,
0.0324312076,
-0.096720919,
-0.2834963202,
0.5513249636,
-0.1404762268,
0.1310998499,
0.2201006413,
0.2116704881,
-0.0764775947,
-0.0196522325,
0.8181028366,
-0.3116712868,
0.120876424,
-0.1681929529,
0.1594802737,
0.1860607266,
0.1397748888,
0.0775513276,
-0.1289096326,
0.1089105383,
-0.0839566961,
0.041406326,
-0.1637933701,
-0.0721094236,
0.0359595232,
0.6240742803,
-0.2325594276,
-0.541318655,
-0.5269166231,
-0.0988925993,
0.1037317142,
0.1883221567,
0.0515775904,
0.1023937911,
0.1159398109,
-0.0749130026,
-0.1888534129,
-0.1452780366,
-0.0556888208,
-0.0028692717,
-0.3264970779,
-0.2233642936,
0.3309181929,
0.2039164454,
-0.0945511758,
0.1549257338,
-0.203952834,
-0.0927105695,
-0.0095427129,
-0.2591288686,
-0.2582910657,
-0.4630261362,
-0.1182586774,
0.0588772446,
0.2336979806,
0.1081125811,
-0.1332113147,
-0.2215162963,
0.1171840504,
0.6883966923,
0.1997386664,
0.1489497721,
0.4022565782,
0.0291579403,
0.1394938231,
0.005476715,
-0.085648872,
0.1668637544,
-0.0762735307,
0.3958078921,
0.0007775993,
0.2863456607,
-0.110360384,
-0.508464098,
-0.0236416329,
-0.3658468723,
-0.2045274228,
-0.0995764211,
0.1125922129,
0.2994085848,
0.2819694579,
0.1736934185,
0.4408882558,
-0.0008400075,
-0.095121406,
-0.0727199093,
-0.0292542279,
0.0549812615,
0.2533734441,
0.0195076279,
-0.0273442809,
0.0528049506,
0.0067485678,
-0.4714185297,
-0.2150871009,
0.1913161278,
-0.2646385729,
0.0638188794,
0.2851464152,
0.2803843319,
0.1533472836,
0.1773776859,
-0.3570284545,
-0.3106738329,
0.1204815358,
-0.0965004861,
-0.0488859564,
-0.0437003337,
0.0947651863,
-0.126796633,
0.0659136772,
-0.5947524905,
-0.0187632609,
0.4436028898,
-0.2635985315,
-0.0719168559,
-0.228850916,
-0.0116028283,
-0.3403197229,
0.0138407703,
0.4004661441,
-0.3379040062,
-0.0681683272,
-0.216962114,
-0.2334203273,
0.1664639562,
0.4936625361,
-0.0835337117,
0.516941607,
-0.195594281,
0.39820683,
0.158465296,
-0.2379556894,
-0.2000246495,
0.5022701621,
-0.103776969,
0.1734886914,
-0.095255509,
-0.0241524149,
0.4080349505,
-0.1735254526,
0.1406646818,
0.0812347904,
-0.0405477732,
-0.0777479336,
-0.1940616518,
-0.2555300891,
0.1296404451,
0.0126434099,
-0.1006326154,
0.1342630088,
0.12605685,
0.1880756468,
0.3111830354,
-0.0541516505,
0.2493340075,
0.3054506183,
0.1177982166,
-0.1352882087,
-0.1075370312,
-0.0221283324,
-0.3029609323,
-0.0044429619,
0.2780947387,
-0.2112733275,
-0.093490839,
-0.1717114002,
-0.259827584,
0.2303350866,
-0.2763418257,
0.2911274731,
0.052979745,
0.1208054796,
-0.0248322226,
0.2489489764,
-0.0919572189,
0.1896862984,
-0.0352424756,
0.1281066239,
-0.4389438927,
0.4238278568,
-0.040912196,
-0.3451368809,
0.0302611925,
0.0569883622,
0.268772155,
-0.1344339252,
-0.0043100058,
0.3361165226,
0.2367790341,
0.130053103,
-0.2204689831,
-0.0598822869,
0.2161562443,
-0.0719892085,
-0.1192337722,
0.2150161862,
0.3863372207,
-0.1784893572,
-0.1886801273,
0.304178834,
-0.0705869347,
0.1873154938,
0.0063082036,
0.1126228869,
0.0241006128,
-0.0023699063,
-0.0940757021,
-0.4081257582,
0.0147508439,
0.0237156395,
-0.1132688671,
-0.2551981509,
-0.0995126367,
0.1117102653,
0.4493321776,
-0.2675612271,
0.2195765078,
0.0182683151,
-0.1571050137,
-0.0029314067,
-0.0543790609,
0.4611752033,
0.5188763738,
-0.0728522688,
0.2165548056,
-0.1663920432,
0.0560956746,
-0.0409079492,
0.1319316626,
0.1509228647,
0.3151160777,
0.2516275644,
0.0549509861,
0.0588584505,
-0.0803974718,
0.1499338895,
-0.0055814199,
0.1412248164,
-0.404068321,
0.1511811465,
-0.2129685283,
0.3331790864,
-0.1819794476,
-0.2257499397,
0.0959367976,
-0.6485622525,
-0.4150828123,
0.4897370338,
-0.1861346662,
-0.0398071297,
0.0067070392,
-0.042700287,
-0.0165358521,
-0.0674775243,
-0.1246944219,
0.1129420325,
-0.2868055105,
-0.0729240328,
0.2463183254,
-0.2035422027,
0.220684275,
-0.1972498596,
0.0126173524,
-0.2052568644,
0.0368245952,
0.1174177602,
-0.1562769711,
0.1773220152,
0.165235877,
0.2820573449,
0.0242903009,
-0.2725774348,
0.0964506865,
0.1477792859,
-0.1811762601,
0.1133565009,
-0.0025246202,
-0.0518950894,
-0.1257264614,
-0.1589466184,
-0.3489078879,
-0.1871426553,
0.5054353476,
-0.1241578832,
-0.2554840446,
-0.1415616274,
0.1180822402,
0.1391181052,
0.2809078693,
-0.2997901142,
-0.1871421635,
-0.1292021722,
0.3373071551,
-0.0742208287,
-0.1497437209,
0.1376182586,
0.0473867767,
-0.2108743191,
-0.0256524608,
-0.4338178933,
0.2235615253,
-0.1067928225,
0.0417159237,
-0.1858788431,
0.0072098193,
0.2149300426,
0.1670219302,
0.1195028052,
-0.0201799013,
-0.4066405594,
0.274318099,
-0.1029173061,
0.2617072165,
-0.3179400265,
0.3655717671,
0.2267262787,
-0.0936274976,
0.1042673141,
0.1052588746,
0.4074468315,
0.4023137391,
0.2292525619,
-0.2795908749,
-0.0465683267,
-0.0305433869,
-0.4651507735,
-0.3055948913,
-0.0788278133,
0.0058604511,
-0.4329888523,
0.0954166576,
-0.4169626534,
-0.0798512772,
-0.4240088761,
-0.0649455562,
0.0411417186,
0.2644875944,
-0.1293401569,
0.3300026655,
0.1213151515,
0.2686508,
0.085417442,
0.4426593482,
0.3040847778,
-0.0225937441,
-0.6052622199,
-0.3987898231,
-0.1494777352,
0.0851711556,
-0.0030242708,
0.3307609558,
-0.1128202006,
-0.1580197811,
-0.0685727447,
-0.0389400087,
0.5201877356,
-0.051240135,
0.0012258149,
0.191623345,
0.0426359698,
-0.3706859648,
-0.0845858604,
0.1276458353,
0.2611562014,
0.0996296555,
0.7260841727,
-0.2869672775,
0.0848335251,
0.0986011922,
0.3608520329,
-0.2686014473,
-0.260661304,
0.0762177184,
-0.6618024111,
-0.4734541774,
-0.0654044151,
0.0891384408,
0.0840259492,
0.044567652,
0.0613794811,
-0.2863175273,
-0.1974559277,
-0.0309644435,
0.0094021335,
0.2691715658,
-0.1909770668,
0.1744082868,
0.2734710276,
0.078572996,
0.4405233264,
0.4388537407,
-0.014715448,
-0.3525550663,
0.1523870081,
-0.0716159418,
0.0187631007,
0.1555843651,
0.0508778244,
-0.0821263716,
0.0883738101,
-0.2365547121,
-0.4633461237,
-0.1488453001,
0.0904250517,
-0.3374938667,
-0.6183339357,
-0.2228629291,
0.3830708265,
0.0004321646,
0.0913361609,
-0.0558941513,
0.2712636888,
-0.2566221058,
0.4474661946,
0.1223123595,
0.6830675006,
0.0007452299,
0.0854566768,
0.4916388392,
-0.6043206453,
-0.0060890391,
0.1641176939,
-0.0600035153,
-0.4265600741,
0.1930717677,
-0.0806793571,
-0.0681979433,
0.1394302845,
-0.0234507713,
-0.3511236906,
-0.1151927039,
-0.3808242083,
-0.2052473426,
-0.1649699658,
0.1392967254,
-0.4981330633,
-0.3532393873,
-0.1283450723,
0.144077763,
0.009387143,
-0.0194941908,
0.1407400072,
-0.3155274987,
-0.0234527308,
-0.0966571346,
-0.390583545,
0.0247120094,
-0.0757292509,
0.3466627002,
-0.1778201014,
-0.1701760888,
0.2836355269,
0.2573930323,
0.5144732594,
0.0030206626,
-0.0201172233,
-0.1384010911,
-0.279414922,
0.0727890879,
-0.0178479217,
-0.2357199937,
0.4342164993,
0.1702368408,
0.0195975974,
-0.2134182602,
-0.1493427455,
-0.1292096674,
-0.1325329244,
0.0547384284,
-0.2243577242,
-0.5140141249,
-0.2109910697,
-0.1133695915,
0.0389368571,
-0.3093291819,
0.0128057813,
0.1201061085,
-0.0274822935,
0.1266257167,
-0.3678089082,
-0.0474941283,
0.0045270002,
0.3145181835,
0.2062480152,
0.2634673417,
0.6696697474,
-0.0583999455,
-0.1212421507,
-0.2391156405,
0.7491883636,
0.2670486569,
-0.0332004279,
0.3828856349,
-0.356677115,
0.0791085437,
-0.1761878431,
0.2747242153,
0.2144106925,
-0.3028134108,
-0.0459917933,
-0.4061582685,
-0.3587571979,
0.2031571716,
0.0973910913,
0.2266016752,
0.1682343483,
0.1613410413,
-0.2150632292,
-0.0841036439,
-0.1487050205,
-0.0051134061,
-0.234054178,
-0.0138234338,
-0.0079669682,
-0.0616993457,
0.2066635638,
-0.1218831092,
0.052637767,
0.2026420683,
0.0701567456,
-0.0461215302,
-0.1765580922,
0.1328734457,
0.1106578782,
0.0928318873,
-0.1284502596,
-0.2062304765,
0.0730836987,
-0.1389053464,
-0.1202658042,
0.2732169628,
-0.0864550024,
0.1101711169,
-0.0113609405,
0.3906763494,
-0.1400342137,
0.1156814024,
-0.0184725616,
0.1907474399,
-0.0251063202,
0.2376376539,
0.0582985803,
0.030797245,
-0.3982857168,
0.0157232005,
0.3234845698,
0.323972553,
0.2735621333,
-0.5291038752,
0.0136450818,
-0.1279327571,
0.1995224804,
0.304654181,
-0.2359336615,
-0.0323292837,
-0.0842195749,
0.0597508177,
0.237907961,
-0.124497436,
0.3456408679,
-0.3701764643,
-0.2507580519,
0.1945923418,
-0.007536158,
0.226304397,
-0.5040647388,
0.0490178168,
0.573300302,
0.0245195255,
0.2739392817,
0.5586561561,
-0.2972377539,
0.2062016279,
-0.055129353,
-0.0303287972,
0.2992990315,
0.1485150009,
-0.073693499,
0.376968056,
0.2046096474,
0.1215096861,
0.0530817918,
-0.1914532483,
-0.0007976998,
-0.0545354523,
0.1000755131,
0.3828054965,
0.1555069983,
-0.0381456316,
-0.6030409336,
-0.1078897938,
-0.1749637723,
0.0733094215,
-0.2203654796,
-0.0936849564,
-0.0803633556,
-0.2421418875,
-0.0503129773,
-0.0172619633,
-0.1793981344,
-0.1467363089,
0.2449444979,
-0.0521292165,
0.0955898613,
-0.1196796969,
0.0544790626,
0.1570001841,
0.0720024258,
-0.3394527435,
-0.1150503457,
0.0763376802,
-0.0231557358,
-0.0515817367,
0.0262635611,
0.4611830115,
0.2230966091,
-0.299392879,
-0.1687799245,
-0.0456728265,
-0.0893872157,
0.1947804391,
0.1658115089,
-0.2169560641,
0.156227529,
0.5898364782,
0.0546890944,
0.0335575938,
0.2126051188,
0.2061871439,
0.167957738,
-0.1390764117,
0.3739165962,
-0.4525505006,
-0.1057958901,
0.0817321315,
-0.0233932622,
-0.1923721582,
-0.0686579123,
0.2831572294,
-0.0889568776,
0.2677443326,
0.1079684645,
0.03007311,
0.0063133077,
0.4416628182,
0.2064989358,
-0.3510469496,
-0.1622366756,
0.172803849,
-0.1454882175,
-0.1226278245,
-0.0181306247,
0.0106479311,
-0.0071238494,
0.1739094108,
0.1665397286,
0.1428552568,
0.026542332,
0.0155509543,
0.14114061,
0.4424414039,
0.0177942328,
-0.337584883,
0.5128382444,
-0.1091880426,
-0.0130155515,
-0.4200243056,
0.2337830216,
0.361235261,
-0.0040313355,
0.019701317,
-0.0365729518,
-0.0331175849,
0.0064801448,
0.1603881121,
0.4409675598,
0.2313554138,
-0.0048694909,
-0.3268093467,
0.0847199112,
-0.1212449595,
-0.109105587,
0.17395477,
-0.1156606451,
0.778121233,
-0.3791898489,
0.414593786,
-0.2927053273,
-0.2153362632,
-0.0463363342,
0.1783771515,
-0.4962351322,
0.2853752375,
-0.0774828121,
0.0432465412,
0.3445824385,
0.1797282994,
0.0849789679,
0.3774325252,
-0.1755809635,
-0.0792292655,
0.3478641808,
-0.071502246,
-0.3467018008,
0.4105904698,
-0.1564235836,
0.3496383727,
0.2499447614,
-0.6930735111,
-0.0669037327,
0.3843771815,
-0.2654726803,
-0.1002498195,
0.0628133044,
0.2828067839,
-0.1878263503,
0.0814792439,
0.4868473411,
0.0644617453,
-0.2565097809,
0.3085876107,
-0.0935586765
] |
https://github.com/huggingface/datasets/issues/2135 | en language data from MLQA dataset is missing | Hi ! Indeed only the languages of the `translate-train` data are included...
I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ? | Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. | 35 | en language data from MLQA dataset is missing
Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
Hi ! Indeed only the languages of the `translate-train` data are included...
I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ? | [
-0.0344623998,
0.2046835572,
-0.2271873206,
0.2308053672,
0.0578234643,
0.2997930646,
-0.039533522,
-0.0461164117,
-0.149814263,
0.1264655739,
0.1958927363,
-0.1498143673,
0.0673908368,
0.4813949168,
0.2251039743,
-0.2650110722,
-0.0097862715,
-0.0794419944,
-0.1342738867,
-0.4665369689,
0.0198141262,
0.5020958781,
-0.0956804678,
-0.0314680897,
-0.1739676744,
0.1743476689,
-0.3577693105,
0.0911985859,
-0.1458942592,
0.0571777076,
0.1609998643,
-0.3259173334,
0.209735319,
-0.1647292376,
-0.0001091284,
0.0488843732,
0.0214319527,
-0.2748509049,
-0.0866411105,
-0.3655623496,
-0.1191431358,
-0.2956378162,
-0.1769672334,
-0.1298705637,
-0.1838499904,
-0.0736343339,
0.1559997648,
-0.2765036821,
0.1190438271,
0.3667834401,
0.1788884997,
-0.1254621148,
0.1327679753,
-0.2215020061,
0.0960633904,
-0.0015866575,
0.122099191,
0.0806109235,
0.3105128407,
0.042636022,
0.1654581577,
0.517033875,
0.365760684,
-0.1951814145,
-0.2743358612,
0.0918551758,
0.4387051761,
-0.6130284667,
0.2459109724,
0.2323865443,
0.3963027298,
0.0642602816,
-0.2204281688,
-0.0049438202,
0.2352889776,
0.171248123,
0.0973937809,
0.4704558849,
-0.3319164515,
0.2780917883,
-0.1069711521,
-0.5191502571,
-0.093115963,
0.2702252269,
-0.1711806953,
0.2614015639,
0.0409471244,
-0.0682276413,
-0.0980317146,
0.0551038086,
0.1683306545,
0.1132867709,
-0.2043646425,
0.2074110359,
-0.0596286878,
-0.0694436878,
-0.1071815938,
-0.0628478006,
0.0442222208,
-0.3017549217,
-0.4466921091,
0.1175955832,
-0.0982546508,
0.0766117722,
0.2756769955,
-0.0042862925,
0.0451872796,
-0.1117991656,
-0.01827267,
-0.4221896231,
-0.0167215373,
-0.1126442701,
-0.2181788683,
0.0549063198,
-0.611618042,
0.2076262832,
-0.1856242716,
-0.3717592359,
-0.2271018028,
-0.0178470537,
-0.548188448,
-0.1329701394,
-0.0842328966,
0.1708070189,
0.1391260177,
0.1097304448,
0.038719099,
0.087605454,
-0.212708205,
-0.5654237866,
-0.1886694282,
0.2166591436,
-0.2004492879,
-0.2025624067,
-0.006059634,
0.2342913747,
0.4591828287,
-0.198303476,
0.0367988534,
0.0089182816,
0.1423789859,
-0.1521296352,
0.163070932,
0.1273076236,
0.2819874287,
0.1840770543,
-0.0005701379,
-0.2114922404,
0.0147200106,
0.2187460512,
-0.3707553446,
-0.1261292696,
-0.3416649699,
0.2081026286,
-0.0157131422,
-0.2832196951,
0.226871714,
0.7006775141,
-0.0515589975,
0.0173043944,
0.2035378665,
0.0313002504,
-0.0789009631,
0.0856771469,
0.2000349164,
0.2012117058,
-0.6012541652,
-0.4723478854,
0.1324432343,
-0.1496260762,
0.2162728161,
0.334710598,
-0.3081377149,
-0.0056156265,
-0.2851573825,
0.1473449916,
0.3123139739,
-0.0908838362,
-0.3621457815,
0.0711620674,
0.0378511772,
-0.187544629,
-0.1637815982,
0.259378314,
-0.0118396925,
0.1117784977,
0.2610754967,
0.4686017632,
-0.122303538,
-0.1898303032,
-0.1053926423,
-0.2279413193,
0.622326076,
0.2268795818,
0.212640807,
-0.1230187416,
0.1040075198,
0.1111715212,
0.2606935501,
-0.0795063004,
0.1433200091,
0.598533988,
-0.1020626053,
0.0215907004,
0.2536548674,
-0.0001964271,
0.0188053511,
-0.0132763879,
-0.6309726238,
0.2035329044,
0.0095849251,
0.0219988693,
-0.0432280377,
-0.1058529243,
-0.1966769993,
-0.2617296278,
0.1333911717,
-0.2965784073,
-0.0784633532,
0.428941071,
0.0495194644,
-0.0088374726,
-0.2400576919,
-0.131760478,
-0.0592114553,
0.4036953151,
-0.2992994487,
0.0492518321,
0.2209757119,
0.4827620685,
0.0691574365,
-0.0927277803,
-0.0542094968,
-0.0900358707,
-0.0186838694,
0.0758046284,
0.2721095979,
0.1493700445,
0.5323986411,
-0.2613609731,
0.208859995,
0.136531651,
-0.0400513485,
0.0231649876,
-0.0972540826,
0.2465906292,
0.3171752095,
-0.0219423361,
0.0535085388,
0.3447538614,
0.3326197863,
-0.0062590451,
-0.0123572061,
-0.3073705137,
0.3201684356,
-0.0726649389,
0.1365264654,
-0.0757596865,
-0.146940276,
0.2850209773,
0.738704443,
0.1240656599,
0.2098561078,
0.0849575251,
-0.4218397439,
-0.209027797,
0.2971543372,
0.0460441783,
0.0749300942,
0.187748462,
0.3617952466,
-0.0734828413,
0.43989259,
-0.1401206851,
0.2000078559,
0.1594544798,
0.1363022923,
-0.2569343746,
0.0658930317,
-0.0054349648,
-0.4006047845,
0.1530468315,
0.2428845465,
-0.0181932263,
0.1239672452,
0.1371139288,
-0.3840937614,
-0.8181410432,
-0.1210193709,
-0.3285419941,
-0.2786877751,
-0.1606534272,
0.1709368825,
-0.7855650187,
0.0042886524,
0.2437332422,
0.337364614,
-0.0142114302,
-0.1161952913,
0.1168831363,
-0.0756038129,
-0.1245470122,
-0.4825125635,
0.1762279868,
-0.0289322007,
0.1055141613,
0.0067073172,
-0.1609121114,
0.0697349086,
-0.2360586673,
-0.4895128012,
0.1627566516,
-0.033675015,
0.1449295282,
-0.0722272992,
-0.0020545491,
-0.4595687687,
0.0561484434,
0.0869888142,
0.131392777,
-0.3589528799,
-0.0264958702,
-0.1333763152,
-0.0539585128,
-0.0296468306,
-0.4481560588,
-0.7942326069,
0.0471000262,
-0.0254448242,
0.0235762317,
0.0455223881,
-0.0960218683,
-0.1811819524,
-0.0012227433,
-0.0862500444,
-0.0588547289,
-0.4134361446,
-0.1808990389,
0.1929137558,
-0.089289166,
-0.424090445,
0.3333976865,
0.0575139634,
0.1615901887,
-0.2290337384,
-0.4955675304,
-0.2501127124,
0.1038498655,
0.075699918,
-0.2734214962,
-0.0491300821,
0.3173702061,
-0.1497466117,
-0.0121671697,
-0.0257464629,
-0.0596243888,
0.0275727771,
0.2583022118,
0.4377896488,
-0.4849635065,
0.3810781538,
0.2894517481,
0.3349758685,
0.3354424238,
0.1928781122,
0.1851140708,
0.0049765636,
0.2048333585,
0.0775880143,
-0.0939625502,
0.4627105296,
0.0153500689,
0.0678962171,
0.2450257391,
-0.0310825203,
-0.2595216036,
-0.1282049417,
-0.1448741704,
-0.1577751338,
-0.1185042039,
0.0035322143,
-0.3705377579,
0.4462803304,
0.2788816988,
0.2835539877,
0.2334593683,
-0.0040407255,
0.3108601272,
0.0581938028,
0.1092325822,
0.1489845663,
-0.53564924,
-0.6774755716,
-0.4137742519,
0.0178147424,
-0.0460203625,
0.3492564559,
-0.2022686154,
0.3159273267,
0.1282982975,
0.0692241415,
0.6536633372,
-0.1781612039,
-0.3705919981,
-0.0675854757,
0.0320619792,
0.0259084459,
0.02106384,
-0.0673512444,
0.3173506856,
0.5049277544,
-0.1271525919,
-0.0750953406,
-0.1299312562,
0.1897286028,
0.2722418904,
-0.3018901944,
0.2110723406,
-0.0528509542,
-0.2436064482,
-0.1980118006,
-0.0069025438,
0.106741026,
-0.0079731587,
0.0640234351,
-0.0087012304,
0.2498300523,
0.2399796098,
-0.0909940749,
0.0296720956,
0.2414086163,
0.2405935377,
-0.0069447369,
0.1101201624,
0.1675508767,
-0.0403497778,
0.3628754318,
0.1135008857,
-0.3394519389,
0.2700647414,
-0.265173316,
0.3873057663,
0.1473497897,
0.075073801,
-0.0203732252,
0.572080493,
-0.326243341,
0.0356926955,
0.0072493264,
0.1877932847,
0.1163314879,
-0.1971905231,
-0.3613517582,
0.1051107123,
-0.1618571281,
0.1121187583,
-0.2287815809,
-0.0159633607,
-0.1922404915,
0.4723280966,
0.1149991229,
0.8131107688,
0.1729177237,
0.2653673291,
-0.212879166,
-0.1444633305,
0.1843687445,
-0.2363998145,
0.1201045215,
-0.0790588856,
0.0088768853,
-0.2042356879,
0.0908278823,
-0.0466673449,
0.2055428177,
-0.0521628782,
0.3298268616,
0.3807365298,
-0.326946795,
0.1866821796,
0.0681794286,
0.049067907,
-0.1569548845,
-0.1394020617,
0.1233366206,
0.1078926399,
0.4474698901,
-0.1518152207,
-0.1950324476,
0.0474468172,
-0.0101231737,
-0.4358279705,
0.0342399441,
-0.6181282401,
0.2651329637,
-0.2025088817,
-0.4514233172,
0.1985462457,
0.2820284367,
0.3624439836,
0.2047534287,
-0.3248588145,
0.5658940077,
0.2798188031,
-0.0865011513,
0.3733976781,
-0.0790588334,
0.1902606636,
-0.2697785795,
-0.2434543073,
0.2396706492,
-0.2098741531,
0.1143324822,
-0.6147162914,
0.0983327702,
0.0974824876,
0.2014009058,
-0.064361088,
0.3105178773,
0.0140710976,
-0.2111015469,
0.1187827364,
0.3033913672,
-0.045368664,
0.093012251,
0.0480725914,
-0.0674216896,
-0.2774437964,
0.3492661119,
0.2116704881,
-0.1594547033,
0.584169209,
0.1649898887,
0.0130450707,
-0.1773335785,
0.1023616344,
0.0691416562,
-0.1856682003,
-0.2398853302,
0.0521865375,
0.1877983361,
-0.1963648498,
0.1287591308,
-0.0096378261,
-0.2768810689,
-0.131855309,
-0.4883034229,
-0.0330955982,
0.2231066376,
0.0115030985,
-0.2465583682,
0.2071943581,
0.1146186441,
0.1737966388,
-0.0177274477,
-0.2826580405,
0.0990176946,
-0.3407901227,
0.1170908809,
-0.310985893,
-0.02735647,
0.2107981592,
0.0098881768,
0.0411000326,
-0.1670537889,
0.05565615,
-0.1659139395,
0.0944287777,
0.0442336239,
0.1019379273,
0.2109969854,
0.0532390401,
-0.2525967062,
-0.190402925,
0.2619978487,
-0.0674166083,
-0.0279332232,
0.0371682569,
0.2888005078,
-0.0973700956,
-0.0009415625,
-0.2473880947,
0.0661413968,
0.2350030392,
0.1454190165,
0.267419219,
0.2663162947,
0.3570342958,
0.0446497574,
-0.1112375334,
-0.1341848075,
-0.1661471874,
0.0003793646,
0.1076241732,
-0.1778695285,
0.1229846925,
0.1210382357,
-0.1532258838,
0.0044131987,
-0.3717907369,
0.2839586139,
0.4176319838,
0.2205515206,
-0.4797023535,
-0.0664164573,
0.0775193796,
-0.2523565888,
-0.0204069801,
-0.0181944426,
0.4070232809,
0.3347913027,
0.5049909353,
0.1084175482,
-0.086662814,
-0.1322619319,
0.0833304897,
-0.1251879483,
0.0438099205,
0.1171377078,
0.1153698489,
0.1527493,
0.0121640209,
0.4706034958,
0.1794547141,
0.2413919419,
0.3241353333,
0.135787949,
0.0458194613,
-0.119990848,
-0.145676598,
-0.0049321563,
-0.1080215424,
0.1095987186,
0.0138995498,
0.1421698034,
-0.0046584965,
-0.3037821054,
-0.1372006088,
0.2461918592,
-0.2555314898,
0.1096112877,
0.0571778491,
-0.1166889444,
-0.0666643232,
0.064662829,
0.0561559461,
-0.2038899809,
-0.2721971869,
0.2663777471,
-0.2021352649,
-0.0640050694,
-0.0655526072,
0.2139686793,
-0.2533402145,
-0.0913542062,
0.4351052344,
0.0919251218,
-0.1498563439,
0.1068014055,
0.1184949651,
-0.1101509035,
-0.1591196358,
-0.3091268539,
0.0644036308,
0.2533023953,
-0.1815322191,
-0.1403743029,
0.2805758119,
0.5617471933,
0.208931759,
0.2611391544,
0.1185275316,
-0.0966018736,
0.0250889268,
0.2744983733,
0.0262699183,
-0.1715337634,
0.1727128923,
-0.1618004888,
0.0789703429,
-0.4373011887,
-0.1165168658,
-0.4430784583,
-0.03607627,
-0.0994547457,
-0.1601618975,
-0.1082497314,
-0.1452091783,
0.0955013707,
-0.1738532782,
0.29529652,
0.4899109304,
0.28076002,
-0.2185984701,
-0.4658299387,
-0.2478753477,
-0.0861509964,
-0.0069591901,
0.2598723769,
0.0467690751,
0.3083917797,
0.3372924924,
0.2134711146,
0.1028382853,
0.3506151438,
-0.2340524942,
-0.0428215228,
-0.4953739345,
-0.2108683288,
-0.0311656035,
0.4508551061,
-0.0775640532,
0.0645226389,
0.1477774531,
0.1814358383,
-0.0305833034,
-0.2744171023,
-0.3053377867,
-0.0724551305,
0.0184189007,
0.5293850899,
0.1815385818,
0.0855615139,
-0.1395012587,
0.0197933838,
0.1657847315,
-0.3820596635,
-0.0141182486,
0.2694744468,
0.0222816225,
0.0334625132,
-0.0601959489,
-0.1295230091,
0.0392524935,
0.1752390712,
0.0319485329,
-0.1724289805,
-0.3260923326,
0.2349206656,
0.0191378519,
0.1085362062,
0.0108624883,
0.3288311362,
-0.0269603431,
-0.2470645607,
-0.2232986391,
0.1386555731,
0.0727491826,
-0.2553525269,
0.0324017331,
-0.2219074219,
-0.0193354879,
0.0205098558,
-0.0427109413,
-0.270452261,
-0.0044651614,
0.3768492043,
0.1395279616,
0.028606493,
0.243916437,
0.0668071881,
0.1847603619,
-0.1373001337,
0.3015004396,
0.2160290927,
-0.2874206603,
0.055680301,
-0.1076182798
] |
https://github.com/huggingface/datasets/issues/2135 | en language data from MLQA dataset is missing | Hi @lhoestq
thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations | Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. | 57 | en language data from MLQA dataset is missing
Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
Hi @lhoestq
thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations | [
-0.0408194661,
-0.0362209193,
-0.1773767173,
0.3228134513,
0.1323034465,
0.2861717641,
0.0952834561,
0.1073277593,
-0.2343605906,
0.1195359528,
0.0948156267,
0.0513929091,
0.1680395603,
0.5239027739,
0.2062966079,
-0.4014205039,
-0.0716604739,
0.0019191451,
-0.176000163,
-0.353348285,
0.0575277843,
0.4546352923,
-0.1336803883,
0.0977432579,
-0.283597976,
0.0972496122,
-0.4078722298,
0.2086155415,
0.1086852625,
0.0607024319,
0.2069734931,
-0.3061184883,
0.1648245305,
0.0024822867,
-0.0001026441,
0.0339445807,
0.0562222488,
-0.3316810131,
-0.1245713606,
-0.301120162,
-0.2936727703,
-0.1166033372,
-0.1913674176,
-0.2669698,
-0.2100292593,
-0.1600867361,
0.0102597931,
-0.4025420249,
0.2945216894,
0.3969224393,
0.2244401872,
0.0597100817,
0.1115082055,
-0.0750959143,
0.1472626179,
0.0179585833,
0.1538948417,
0.0909610391,
0.1666128784,
0.0342725143,
0.1306976974,
0.5047553778,
0.2061383426,
-0.1100767851,
-0.2966978252,
0.1319011748,
0.2486950457,
-0.6032835245,
0.2411039621,
0.3763130605,
0.5104182959,
-0.0404773429,
-0.2418508083,
-0.1448252648,
-0.0136256944,
0.0993712544,
0.188440606,
0.2149866819,
-0.1208995134,
0.2852534652,
-0.0185190104,
-0.3122232258,
-0.0564261489,
0.1563019603,
-0.4507115483,
0.278114289,
0.0598660856,
-0.0272461157,
-0.2076357007,
0.0720339194,
0.2141709179,
0.0857241452,
-0.2254952192,
0.1790015846,
-0.2212733328,
-0.2123449743,
0.0013371971,
-0.2044260502,
-0.0787948743,
-0.1716720015,
-0.500215888,
0.0687911138,
-0.075840123,
0.0553400666,
0.1506576389,
0.1425787956,
0.0742117465,
-0.0000407556,
-0.0345675163,
-0.5035306215,
-0.1269606203,
-0.1095474362,
-0.0571457706,
-0.0474248976,
-0.5842796564,
0.2645855546,
-0.0489345044,
-0.2018535882,
-0.2747570872,
-0.055736158,
-0.667955935,
-0.2636981308,
-0.1630069762,
0.0584548265,
0.2075796276,
0.1428810954,
0.0831878483,
0.131198138,
-0.322651118,
-0.4529732466,
-0.2833185792,
0.2836949527,
-0.0452452525,
-0.1650167108,
-0.0661568269,
0.2656956911,
0.5278739333,
-0.2556885183,
-0.036610283,
-0.0110004563,
0.0745299011,
-0.1067346632,
0.0769133195,
0.0889597386,
0.1962749511,
0.0763682276,
0.0843274444,
-0.1846405417,
0.015257542,
0.2290403098,
-0.4823005497,
-0.0396409035,
-0.1821138114,
0.2690197527,
-0.1023226008,
-0.2360185236,
0.1503030509,
0.6440027952,
0.1193220466,
-0.0179714672,
0.1329053342,
-0.0403435752,
-0.1953154653,
0.0868195519,
0.2072445154,
0.2232121527,
-0.7090594172,
-0.2352011204,
0.2311969548,
-0.1255778521,
0.0649194568,
0.2192749083,
-0.1816485077,
0.2974401712,
-0.29960078,
0.3631658256,
0.1245925575,
-0.3740582764,
-0.1185467467,
0.2619827688,
0.0106618553,
-0.1634268016,
-0.1058032215,
-0.1710815132,
0.1601079106,
0.031851802,
0.0292902291,
0.3716139495,
-0.2197673917,
-0.1256000847,
-0.1732639819,
-0.1923579127,
0.5057458282,
0.1941698939,
0.164143905,
-0.1853482276,
0.0451192185,
0.1144302413,
0.2556921542,
-0.2323066294,
0.0895540938,
0.4553656876,
-0.1292891204,
-0.0670072958,
0.2314842641,
-0.1167258993,
-0.2401206344,
0.0309546292,
-0.5036654472,
0.2067003101,
-0.0675949827,
0.0471132472,
-0.1141041964,
-0.1690894067,
-0.1501902491,
-0.266376555,
0.2185667604,
-0.1282700002,
-0.150129199,
0.5255804658,
0.1210809574,
-0.0323451087,
0.0362351984,
-0.1084237844,
-0.1963130683,
0.4880463779,
-0.1885196865,
0.031287834,
0.1449316591,
0.3960083127,
0.1007951349,
-0.2371940911,
-0.1993574947,
0.035826914,
0.0104084788,
0.2304917425,
0.0124625359,
-0.0573114753,
0.4358992875,
-0.2884271145,
-0.0393669158,
0.1249902621,
0.0571257137,
-0.0100626722,
-0.1664895117,
0.3173387945,
0.1417890638,
-0.0154543957,
0.0820577741,
0.1560008675,
0.2744920552,
-0.2671563625,
0.1516211927,
-0.2489774227,
0.1365277171,
-0.1008696631,
-0.0263799801,
-0.0152857536,
-0.05003177,
0.3457324505,
0.9597111344,
-0.0387769751,
0.0324346572,
0.1088814661,
-0.2438544929,
-0.2485951483,
0.3327144682,
0.2219968736,
0.3681365252,
0.255066514,
0.278622061,
-0.0596297346,
0.3849780858,
-0.2170823365,
0.2478821278,
0.1016419753,
0.122685492,
-0.0602643341,
0.0111214267,
-0.1178098693,
-0.3725439906,
0.2336734384,
0.2865146697,
0.2004961967,
-0.0297945756,
0.2682924271,
-0.5310759544,
-0.6335399151,
-0.0419789255,
-0.2432367057,
-0.1427949369,
-0.2481586635,
0.27258268,
-0.5574783087,
-0.1085473001,
0.2909506559,
0.4410873652,
-0.0919118226,
-0.1788230091,
0.1353017837,
-0.235432893,
-0.2749876082,
-0.5670453906,
0.2050749511,
0.093192704,
0.1703083813,
0.1206254363,
-0.2440244406,
0.0810178965,
-0.0437350832,
-0.4981173277,
0.1700588316,
-0.2002719939,
0.2816327512,
-0.063529171,
0.0004737147,
-0.4595285654,
-0.0440799557,
0.0705251247,
0.170994699,
-0.3872296214,
0.0093742823,
-0.0262727141,
-0.0521980599,
-0.1576287895,
-0.7814694047,
-0.5482569933,
-0.0636084899,
-0.1323073804,
-0.1232256219,
0.0307010226,
-0.0221329965,
-0.1314076185,
0.0421979651,
0.047283031,
-0.1079868153,
-0.3893262148,
-0.1267874241,
0.143122375,
-0.1554426849,
-0.3047046065,
0.2366575897,
0.0481763296,
0.4225667119,
-0.2196068317,
-0.3472968936,
-0.12046545,
0.0563917123,
0.1077348217,
-0.3534257412,
-0.1191996187,
0.5090578198,
-0.0179277342,
-0.0089257527,
-0.151568234,
0.0382352099,
0.1233565062,
0.2782584131,
0.3899998665,
-0.4099949896,
0.599018991,
0.3242692649,
0.2691345215,
0.1265040636,
0.1426516175,
0.1432936639,
-0.065883033,
0.1140457913,
-0.0823446289,
-0.0694596097,
0.4828376472,
0.0637094304,
0.027254751,
0.4788175225,
-0.0245168135,
-0.1713118404,
-0.1844298691,
-0.187701717,
-0.1659406126,
-0.2019788921,
-0.0622823499,
-0.4325599074,
0.3646170795,
0.2551707029,
0.2961044312,
0.1527627558,
0.0155422213,
0.2142969668,
0.0851206332,
0.2849898636,
0.1448105723,
-0.6591542959,
-0.4503853321,
-0.1865545809,
0.1234263405,
0.0855082124,
0.2387640476,
-0.2729605734,
0.1774847209,
0.2363273948,
0.0362737253,
0.6784836054,
-0.2564088702,
-0.2933884263,
0.0935812816,
0.1132451445,
0.053697072,
0.0061189011,
-0.0851855427,
0.3044100702,
0.3356395066,
-0.0737801418,
-0.2037023008,
-0.2334938943,
0.0725348815,
0.2756064832,
-0.3622871637,
0.0017337159,
0.018309731,
-0.3184655607,
-0.2057560086,
-0.1192359701,
0.2498417497,
-0.0027275945,
0.0554807819,
-0.0868658051,
0.2147666663,
0.0321340077,
-0.0261012837,
0.1267829835,
0.2505825758,
0.0226902738,
-0.0493066646,
-0.0068109552,
0.1330610514,
0.0133359535,
0.1902781576,
-0.0447802097,
-0.1839900166,
0.1142015457,
-0.3886480033,
0.4801162779,
0.1302572787,
-0.0223742556,
0.021153966,
0.2246539891,
-0.1637251675,
-0.0612123422,
-0.056425482,
0.3183375597,
0.0541257635,
-0.0847122669,
-0.2531458139,
0.0157667808,
-0.196872592,
0.0739413425,
-0.1369460225,
-0.0791201368,
-0.3975175321,
0.4556828737,
0.1212806404,
0.7878767848,
0.1390990466,
0.1330156773,
0.1484572142,
-0.2146417797,
0.3469107449,
-0.1996750534,
0.0509755239,
-0.0857910663,
0.080855377,
-0.1684205532,
0.211710766,
-0.0176617336,
0.3485625684,
-0.1559049189,
0.3202445805,
0.3486588895,
-0.2753964067,
0.3074085116,
0.0692009777,
0.220592767,
-0.0945585668,
-0.0573925972,
0.175315693,
0.1122530997,
0.2840490937,
-0.0421050526,
-0.2589123249,
0.0853899121,
-0.058369074,
-0.2240596265,
0.0409721769,
-0.3553408384,
0.210205242,
-0.117331095,
-0.4628443718,
0.3120927513,
0.2903687656,
0.3461303711,
0.1490776837,
-0.2801380455,
0.4850562513,
0.092370145,
0.1833781451,
0.3302986622,
-0.0601474866,
0.4175025821,
-0.219359681,
-0.2475058138,
0.1360425502,
-0.2273777872,
0.1020634547,
-0.650418818,
0.0804629549,
0.0082201948,
0.1127505153,
-0.1060498953,
0.1084769219,
0.0669878572,
-0.2709408104,
0.1626634449,
0.1567841619,
-0.1053353995,
0.2285721749,
-0.1622866243,
-0.0724319816,
-0.1819040924,
0.2074664682,
0.2294251472,
0.0350673981,
0.6079998016,
0.1775730103,
-0.0141878165,
-0.2541285753,
0.1796360463,
-0.0665781349,
-0.3251991868,
-0.0479489118,
0.2189278603,
0.2051670402,
-0.085014455,
0.0971978679,
-0.1367192715,
-0.276906997,
-0.0489876829,
-0.4096364379,
-0.0944940746,
0.2128802389,
-0.033742629,
-0.2400589436,
0.1149060503,
0.3987502158,
0.1066143438,
0.162996769,
-0.3291783929,
0.2155854851,
-0.2183157206,
0.1608194411,
-0.1214571893,
-0.0708763152,
0.2643536329,
-0.0111169703,
0.0817811638,
-0.1284229457,
0.0617267825,
-0.212989971,
-0.0690184459,
0.0385485291,
0.1084224805,
0.1545954049,
0.0985843092,
-0.1769915968,
-0.0905822515,
0.2229058444,
-0.0325190425,
-0.0857414007,
0.0031744367,
0.3812494874,
-0.0563383698,
0.0034466339,
-0.2623742223,
0.019189883,
0.2412518412,
-0.0005892119,
0.1244044378,
0.1977642626,
0.2756617963,
0.0010225967,
-0.2014320344,
-0.2218725532,
-0.1708763242,
0.0243086889,
0.2697990239,
-0.2374150306,
0.0573116057,
0.0547026061,
-0.0651955605,
-0.0607502013,
-0.283990711,
0.2237014025,
0.3925493956,
0.2249377668,
-0.4344300926,
0.0377567746,
0.0820375383,
-0.2965416014,
-0.0091946898,
-0.0663660094,
0.2731381059,
0.2848385274,
0.4747728705,
0.0864745006,
0.1784644276,
-0.2362235934,
0.0068643917,
0.1435353309,
-0.1436454058,
0.1766199619,
0.1010346413,
-0.159758538,
0.0267660189,
0.3241789937,
0.2022080421,
0.2690438628,
0.1170285195,
0.2710114717,
0.068944253,
-0.1939539909,
-0.1826101542,
-0.0439028516,
0.0042055375,
0.008567431,
0.1069432721,
0.223436892,
0.0276103895,
-0.2771238983,
-0.1273938119,
0.337498337,
-0.2935266793,
-0.0225013979,
0.1256628782,
-0.0453941002,
-0.0166811198,
-0.0035407438,
-0.1144257635,
-0.0968776643,
-0.2248787731,
0.2747929692,
-0.2744382322,
0.0866868421,
-0.2334066182,
0.0101315044,
-0.2466109097,
-0.0226037316,
0.5441877842,
0.1120966151,
-0.0789514259,
0.0401857346,
-0.0063091572,
0.0046295738,
-0.1731767952,
-0.3625846803,
-0.0365522914,
0.0442521237,
-0.1444821656,
0.0325332992,
0.4947675169,
0.2612554729,
0.1904446185,
0.2604636252,
0.1738147885,
-0.1475001574,
0.17298159,
0.3002623916,
-0.0797087997,
-0.2932743132,
0.1676612943,
-0.0861580223,
0.076818645,
-0.3240539134,
-0.2529672682,
-0.4617143273,
0.0657513961,
-0.1046209857,
-0.1675475091,
-0.0957541615,
-0.098818697,
0.1194550842,
-0.1426174492,
0.3566012383,
0.34047243,
0.1341147125,
-0.1007144228,
-0.2554681003,
-0.3600755334,
-0.0783691853,
0.0668043569,
0.1585812271,
-0.1292595565,
0.1715531051,
0.4762700796,
0.0464801863,
0.0491877384,
0.1647150666,
-0.0708702952,
-0.05759193,
-0.4569232762,
-0.2759056985,
-0.1950778812,
0.3763601184,
-0.1380445212,
-0.0073044221,
0.1454736143,
0.4115010202,
-0.004712915,
-0.335049659,
-0.0586321279,
0.1186081022,
-0.0255450513,
0.3235162795,
0.32839486,
0.2939723134,
-0.1925687194,
0.2201742679,
0.1869623065,
-0.2465392947,
-0.0961993933,
0.2874063551,
0.0864514783,
0.1841493845,
0.0069166874,
-0.2039061189,
-0.0543045439,
0.2042925805,
0.0147121865,
-0.1221382916,
-0.3691647351,
0.2334661633,
0.027978953,
-0.024818657,
0.2751080096,
0.442638129,
-0.0597258173,
-0.1823959202,
-0.3170246482,
-0.0001685559,
0.1756587327,
-0.2104924023,
-0.1348282248,
0.0475175716,
0.0052325679,
-0.0084623806,
-0.1049582735,
-0.2532360256,
-0.0389873236,
0.4291752577,
0.1130805761,
0.1306876391,
0.45535779,
0.3467689157,
0.1456326544,
-0.0524482951,
0.1252944469,
0.2982234955,
-0.2289769351,
0.1635676324,
-0.1215904355
] |
https://github.com/huggingface/datasets/issues/2135 | en language data from MLQA dataset is missing | I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks. | Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. | 20 | en language data from MLQA dataset is missing
Hi
I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks. | [
-0.0614050813,
-0.0550394766,
-0.1854838282,
0.0839589611,
0.1434617788,
0.2676543891,
0.1858890057,
-0.0415907279,
-0.1807010472,
0.1482945681,
0.2283990234,
0.1972754598,
0.1776254922,
0.3383447528,
0.3166696131,
-0.2478694618,
-0.0484906435,
-0.0179906245,
-0.048479598,
-0.4285930693,
0.0541548654,
0.2352596372,
-0.3574399352,
0.005051957,
-0.2183551639,
0.1566546857,
-0.3980646729,
0.1877371073,
0.0598651618,
-0.1359651983,
0.2692224681,
-0.3328851759,
0.3129376173,
-0.2540804744,
-0.0001056774,
0.0122205457,
0.0811983719,
-0.4159365594,
-0.1993284672,
-0.1626034379,
-0.2880623937,
-0.2823456228,
-0.2393744141,
-0.2648056149,
-0.2193343192,
0.2201203406,
0.3443270326,
-0.5083239079,
0.3320851624,
0.3818938136,
0.1968888491,
0.0395648852,
0.0926605389,
-0.1524075717,
-0.0093363943,
-0.0729985163,
0.1497446597,
-0.0014477923,
0.2738119066,
-0.0678196996,
0.1563993096,
0.408183068,
0.2631128132,
-0.2174045891,
-0.0966821611,
0.1399406344,
0.4089865088,
-0.5473687053,
0.1374905705,
0.0993198231,
0.3717151284,
-0.1057602391,
-0.3758933544,
-0.0194035582,
0.2659440935,
-0.0150940046,
0.1812552512,
0.3444666862,
-0.1382595748,
0.2090099454,
-0.0271233097,
-0.3029957116,
-0.1229962781,
0.1439062357,
-0.3219055235,
0.2777847052,
0.1805320978,
-0.0605956428,
-0.1598591208,
0.1292636395,
0.2392049432,
0.2068474442,
-0.1283606887,
0.2811944187,
-0.3318512142,
-0.2662266493,
-0.0694770291,
-0.1709131896,
-0.0941290706,
-0.3655153215,
-0.3424854875,
0.1182670668,
0.1825283021,
0.0852197036,
0.1651425362,
0.0044158259,
0.2554104626,
0.0712148622,
-0.0691666603,
-0.4249576628,
-0.0405894741,
-0.031613484,
-0.1165061519,
-0.0557381697,
-0.4660691917,
0.3323318958,
-0.0607324913,
-0.239140451,
-0.39663589,
0.0730463564,
-0.6150507331,
-0.0928713828,
-0.0460388064,
0.086048089,
0.0689229295,
-0.0985739902,
-0.0307651628,
0.0924638957,
-0.2274393886,
-0.4822275937,
-0.2362547219,
0.2626547813,
-0.1490529478,
-0.155528903,
-0.0512124002,
0.1021775752,
0.4211605787,
-0.1078577414,
-0.0333039276,
0.0805080086,
0.1542164683,
-0.0777848139,
0.094264403,
-0.0650047138,
0.1820983738,
0.0209611338,
-0.0055974685,
-0.366620928,
0.1188594103,
0.222393468,
-0.5026971102,
-0.086951755,
-0.3409615755,
0.2205949277,
-0.0634132102,
-0.290999949,
0.4000839591,
0.4645343721,
-0.0290917102,
-0.0116884522,
0.191627115,
0.0152747417,
-0.1655333787,
0.0587169752,
0.1839259267,
0.2479294389,
-0.6743544936,
-0.315337956,
0.2034638524,
-0.0352099948,
0.1968293786,
0.230151087,
-0.2615667284,
0.0696141794,
-0.1940801889,
0.1121587902,
0.1704312861,
-0.6116741896,
-0.3677038848,
0.022288179,
-0.0779983401,
-0.3776447475,
-0.1448693424,
0.0998807102,
0.2610707581,
-0.0236980002,
0.2579835951,
0.3530294299,
-0.1783162355,
-0.1971264631,
-0.1738871336,
-0.0527913831,
0.2627728879,
0.3654527366,
0.1484464258,
-0.2631185055,
0.0485103242,
0.1426054686,
0.177953437,
-0.2317246199,
0.1725402027,
0.517867744,
-0.0805442333,
-0.0635040551,
0.058481656,
0.1955312937,
-0.2065801471,
0.0163487718,
-0.7800021768,
0.2138624042,
-0.0132615417,
-0.1210642159,
-0.0612704605,
-0.0453793779,
-0.2260606289,
-0.2495139688,
0.1818478256,
-0.3295171261,
-0.1632549316,
0.3572049439,
0.1028445959,
0.110543713,
-0.1355047077,
0.0349663645,
-0.1937733442,
0.4484162033,
-0.3351693451,
0.0082158642,
0.1537078917,
0.4459814131,
0.1235240847,
-0.0344229713,
-0.0051254556,
-0.0497264452,
-0.0372594967,
0.0708752796,
0.2649092376,
-0.2318826169,
0.5788723826,
-0.3073805273,
0.1909387857,
0.1267111003,
0.0165009759,
0.0356324539,
-0.3685251176,
0.3260649443,
0.2498881668,
-0.2839768529,
0.0070404536,
0.3589637578,
0.1375346333,
-0.145190984,
-0.0582827255,
-0.1105431914,
0.1184331924,
0.0118993241,
0.0044005821,
0.077582337,
-0.1125822738,
0.1153247207,
0.7596581578,
0.2361644655,
0.2454381138,
0.0513624363,
-0.2074975073,
-0.179581061,
0.3047199249,
0.0839872956,
0.2399901599,
0.1667073518,
0.0910314471,
-0.067245461,
0.2820443213,
-0.0970268622,
0.2189872116,
0.0220772978,
0.1279479265,
-0.2176183015,
0.0640214384,
-0.0449229628,
-0.3568542302,
0.0635782704,
0.2387515157,
0.1498513818,
0.0212784689,
0.0785308331,
-0.3708969951,
-0.5073181391,
-0.1364303082,
-0.213895455,
-0.2516544759,
-0.1184656546,
0.2009532899,
-0.7401011586,
0.123137705,
0.3331767619,
0.3358399272,
-0.0423549153,
0.0280855503,
0.0819608122,
0.0098550245,
-0.1406044066,
-0.34906739,
0.1282383054,
-0.0401222073,
-0.0030068401,
-0.0462614708,
0.0058607478,
0.1768616438,
-0.2486251146,
-0.4871397913,
0.0777585134,
0.0057948572,
0.2682495415,
-0.0086446945,
0.0188808423,
-0.7526346445,
0.0099318866,
0.1184596494,
0.2236752957,
-0.3405580521,
-0.1409543902,
-0.1712237149,
-0.1047270298,
-0.0248474814,
-0.6468248367,
-0.7372847199,
0.0305309426,
-0.145903945,
-0.0095175141,
0.0076139541,
0.0457621291,
-0.0772762522,
0.072807692,
-0.039835155,
-0.2196210772,
-0.429032445,
-0.2455874681,
0.2960587144,
-0.0311711598,
-0.3616072834,
0.1702855229,
-0.010329349,
0.453365922,
-0.1900149882,
-0.3280902207,
-0.1765517741,
0.3218614459,
-0.0206320975,
-0.366864264,
-0.0531159751,
0.5032513738,
-0.0359732732,
0.0076296055,
-0.110542126,
-0.2325087339,
0.0713725761,
0.3401712775,
0.5897238255,
-0.5921170712,
0.4528934062,
0.2750667632,
0.2953698933,
0.1158092842,
0.137068063,
0.1581320763,
-0.0287460778,
0.1398792714,
0.1614727676,
-0.1506819874,
0.5780955553,
0.0713340268,
0.0526369847,
0.3350734115,
-0.0279417764,
-0.3929461241,
-0.1691908538,
-0.1285375208,
-0.0786942914,
-0.118191652,
-0.0027433911,
-0.1899477839,
0.3600899577,
0.2566944659,
0.4055579603,
-0.0171050113,
-0.0736013502,
-0.0285911411,
0.0400484316,
0.3247719109,
0.1903121024,
-0.6184052825,
-0.578843236,
-0.1188431978,
0.1225245371,
-0.0285577457,
0.5415173173,
-0.1055407375,
0.202466324,
0.2616970539,
0.1445031911,
0.5555588603,
-0.2430683821,
-0.3454245627,
-0.1314903647,
0.2881119549,
-0.191862151,
0.0003880545,
0.029463606,
0.3925944865,
0.4314257503,
-0.2314027697,
-0.0087483879,
-0.0813296586,
0.3801352382,
-0.0343821272,
-0.2577847838,
0.0386748426,
-0.2340866774,
-0.1954464763,
-0.2207711637,
0.1956866086,
0.0967209637,
-0.1245617047,
0.2882355154,
-0.1875130236,
0.2321536541,
0.1594731361,
-0.0067618769,
0.118830584,
0.2844280005,
0.0932021067,
-0.0574474595,
0.1403885186,
0.2352667153,
-0.0003653439,
0.1646573544,
-0.0287069436,
-0.2687043548,
0.3077230752,
-0.3710044622,
0.6595486403,
0.2251628041,
0.0923564807,
0.1156471968,
0.3028036654,
-0.26511994,
0.0741766095,
-0.2305083275,
0.2964482307,
0.2582292855,
-0.2570075095,
-0.231412068,
-0.0073868358,
-0.0777813941,
0.1871106178,
-0.2283022106,
-0.0687553212,
-0.1671075821,
0.402050674,
0.1825671494,
0.8222819567,
0.041186057,
0.102922,
-0.1251330227,
-0.1052090824,
0.2631603777,
-0.1953304559,
0.2854103148,
-0.2273683101,
-0.0576225258,
-0.1682810932,
0.0172700994,
0.1919310987,
0.400008738,
-0.3338609934,
0.2994181216,
0.3004609048,
-0.1776114702,
0.2175976485,
0.0608495288,
0.0637611225,
-0.2100923061,
-0.3378995061,
0.1408400089,
0.0805336758,
0.3642496467,
-0.2449507564,
-0.1419680268,
0.1068862528,
-0.0784857571,
-0.13260369,
0.0144892065,
-0.3802136481,
0.1874951571,
-0.0113341808,
-0.4910609126,
0.2870211601,
0.4773975611,
0.3643173277,
0.3550558686,
-0.2171394378,
0.5245865583,
0.126266852,
0.0144240083,
0.3423662186,
0.0047786459,
0.2060930729,
-0.2244211584,
-0.3705041111,
0.2566951811,
-0.0961594954,
-0.0323480964,
-0.5521185398,
0.2968835235,
0.1679378152,
0.1947372556,
0.0181636997,
0.0970332772,
0.0722469911,
-0.222266376,
0.1337298155,
0.2241176367,
-0.0378127843,
0.2564707398,
0.1661888659,
-0.1043713018,
-0.1268915087,
0.3687801063,
0.2147458196,
-0.0532689579,
0.5588973165,
0.0592472032,
0.0342613906,
-0.2540688515,
0.1239341348,
-0.0739686638,
-0.1375688016,
-0.262391597,
0.1452251524,
0.1997595131,
-0.0292992946,
-0.2072233558,
-0.0644628182,
-0.3883130252,
-0.062243063,
-0.3872439265,
-0.275288552,
0.0754100233,
-0.1133893058,
-0.1229311451,
0.212404564,
0.1649702638,
0.2495990545,
0.0781826153,
-0.3227564692,
0.167951718,
-0.3973313272,
0.2239513248,
-0.0156786051,
-0.2213270813,
0.1106734201,
-0.1090314165,
0.1154884547,
-0.0890560895,
-0.0444083773,
-0.1464461982,
0.2121854573,
0.055163376,
-0.065109469,
0.2640432119,
0.0133864935,
-0.1056010202,
-0.2285673171,
0.2656400502,
-0.1158115864,
-0.0032507635,
0.0955170244,
0.3260476589,
-0.1100254729,
0.0383170471,
-0.0806024969,
-0.1450045258,
0.3147142529,
-0.0462802015,
0.1328766346,
0.3403071761,
0.2551243007,
-0.036594037,
-0.1440806687,
-0.0459794924,
-0.022745464,
0.2281867117,
0.1698564887,
-0.3522879481,
0.0159065966,
0.1860782504,
-0.2250193357,
-0.0564577468,
-0.303271085,
0.2272311449,
0.3637153804,
0.2269959003,
-0.5343984962,
0.0066713919,
0.2371628582,
-0.1729506552,
-0.0136546195,
0.0114740795,
0.3277379572,
0.2638813257,
0.4061785936,
0.2645319104,
0.1514027566,
-0.3466752768,
0.0302949492,
-0.0275239032,
0.0107520651,
-0.0151054133,
0.2258542478,
-0.1222210452,
-0.012990891,
0.45652318,
0.0838125944,
0.2531341016,
0.3350505233,
0.1993781328,
0.154369235,
-0.1966708899,
-0.2339609265,
0.166522488,
-0.0543207116,
-0.0105108153,
0.1204890162,
0.4063556492,
0.0876703188,
-0.4291985631,
-0.2303833663,
0.1484029144,
-0.4381046891,
0.0428763442,
0.096106194,
-0.0571989976,
0.1284680367,
-0.085421674,
0.0644625723,
-0.0612090193,
-0.2336712778,
0.190664649,
-0.1822257638,
0.1038994417,
0.0218742695,
0.2557958663,
-0.2054531276,
-0.1098105982,
0.3854256868,
-0.1390028745,
-0.1274637729,
0.0623376444,
-0.0519582517,
-0.0155727668,
-0.1701722145,
-0.1637911052,
0.1574180573,
0.1103960499,
-0.16937913,
0.0059027439,
0.3001665473,
0.4074700475,
0.0573102795,
0.1915333867,
0.1729011983,
-0.0654353946,
0.0593618713,
0.2738455534,
-0.0784708261,
-0.1262731701,
-0.0235400647,
0.0622570924,
0.0210810695,
-0.3662448823,
-0.167496115,
-0.380677551,
-0.0889190435,
0.0384860262,
-0.0417641625,
-0.0341718905,
-0.1998295784,
0.1103359908,
-0.1457630843,
0.2659994662,
0.3386377692,
0.0957283676,
-0.15068385,
-0.2072253376,
-0.4805026948,
-0.005846146,
0.0607659072,
0.1942609847,
-0.0576735623,
0.326764524,
0.3132947385,
0.1676271409,
0.2692522705,
0.0158544797,
-0.0096585359,
-0.1015055701,
-0.5356666446,
-0.1428377777,
0.0602539666,
0.3365087807,
-0.0301468726,
-0.0276467204,
0.1668958366,
0.2043226063,
0.009736849,
-0.3536172509,
-0.1598584056,
-0.0763355568,
-0.0097770412,
0.3959162533,
0.0836948752,
0.3392043114,
-0.066899389,
0.1712935716,
0.1589922756,
-0.1978261024,
-0.0206472576,
0.2478118241,
0.1892030984,
0.111244753,
-0.0699779391,
-0.2354996651,
0.0189299528,
0.3167834282,
0.1663196087,
-0.1713154018,
-0.4148258269,
0.3683249354,
0.0656671748,
0.1231915057,
-0.1091120467,
0.232476294,
0.0158610828,
-0.0653181523,
-0.2101468146,
0.0055043749,
0.304430306,
-0.1566052735,
0.0137652056,
-0.3062792718,
0.081097886,
-0.105059959,
0.041187875,
-0.2789291441,
-0.0896051154,
0.3944660723,
0.0517789125,
0.051936157,
0.2999484539,
0.0418103449,
0.1855540425,
-0.1216881126,
0.1529166549,
0.0919363871,
-0.1553379893,
0.1783639193,
-0.1917354912
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | Hi !
Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example:
```python
import pyarrow as pa
import pickle
arr = pa.array([0] * ((4 * 8 << 30) // 64))
table = pa.Table.from_arrays([a], names=["foo"])
pickle.dumps(table) # fails with an OverflowError
pickle.dumps(table, 4) # works !
```
We'll do the change to use `protocol=4`.
Moreover I've also seen other users complain about this error
```
struct.error: 'I' format requires 0 <= number <= 4294967295
```
It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side.
Do you think you can provide a script that reproduces the issue ?
How big is your dataset ? (number of bytes, number of rows)
| Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 134 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
Hi !
Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example:
```python
import pyarrow as pa
import pickle
arr = pa.array([0] * ((4 * 8 << 30) // 64))
table = pa.Table.from_arrays([a], names=["foo"])
pickle.dumps(table) # fails with an OverflowError
pickle.dumps(table, 4) # works !
```
We'll do the change to use `protocol=4`.
Moreover I've also seen other users complain about this error
```
struct.error: 'I' format requires 0 <= number <= 4294967295
```
It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side.
Do you think you can provide a script that reproduces the issue ?
How big is your dataset ? (number of bytes, number of rows)
| [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | Hi!
So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code:
```python
from datasets import Dataset
if __name__ == '__main__':
ton_of_zeroes = [0] * ((12 * 8 << 30) // 64)
large_dataset = Dataset.from_dict({'col': ton_of_zeroes})
print("Start")
large_dataset.map(function=None, num_proc=2)
print("Done - should not print")
```
The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB)
Running this results in the following traceback:
```
Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
Traceback (most recent call last):
File "./crash_multiproc_pickle.py", line 7, in <module>
large_dataset.map(function=None, num_proc=2)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task.
Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash.
But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway. | Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 832 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
Hi!
So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code:
```python
from datasets import Dataset
if __name__ == '__main__':
ton_of_zeroes = [0] * ((12 * 8 << 30) // 64)
large_dataset = Dataset.from_dict({'col': ton_of_zeroes})
print("Start")
large_dataset.map(function=None, num_proc=2)
print("Done - should not print")
```
The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB)
Running this results in the following traceback:
```
Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
Traceback (most recent call last):
File "./crash_multiproc_pickle.py", line 7, in <module>
large_dataset.map(function=None, num_proc=2)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task.
Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash.
But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway. | [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | I just merged a fix #2150 that allows to pickle tables bigger than 4GiB
Feel free to try it on the `master` branch ! | Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 24 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
I just merged a fix #2150 that allows to pickle tables bigger than 4GiB
Feel free to try it on the `master` branch ! | [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | awesome! I started getting this error as well when I tried to tokenize with a longer sequence length | Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 18 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
awesome! I started getting this error as well when I tried to tokenize with a longer sequence length | [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | @prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`.
@lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now | Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 84 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
@prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`.
@lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now | [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2134 | Saving large in-memory datasets with save_to_disk crashes because of pickling | Closing since the original issue was fixed in #2150
Feel free to reopen if you are still experiencing it.
For the other problems, please open separate issues | Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
``` | 27 | Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7.
Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library.
So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method.
When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB).
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 80, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 75, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify
contexts_dataset.save_to_disk(chunked_path)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk
self = pickle.loads(pickle.dumps(self))
OverflowError: cannot serialize a bytes object larger than 4 GiB
```
From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository.
To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk.
Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that.
```
Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last):
File "./tokenize_and_chunkify_in_memory.py", line 94, in <module>
main()
File "./tokenize_and_chunkify_in_memory.py", line 89, in main
tokenize_and_chunkify(config)
File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify
contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get
raise self._value
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks
put(task)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump
self.save(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce
save(state)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict
self._batch_setitems(obj.items())
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems
save(v)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends
save(tmp[0])
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list
self._batch_appends(obj)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends
save(x)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save
self.save_reduce(obj=obj, *rv)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce
save(args)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple
save(element)
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save
f(self, obj) # Call unbound method with explicit self
File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes
self._write_large_bytes(BINBYTES + pack("<I", n), obj)
struct.error: 'I' format requires 0 <= number <= 4294967295
```
Closing since the original issue was fixed in #2150
Feel free to reopen if you are still experiencing it.
For the other problems, please open separate issues | [
-0.3168885708,
0.0995955095,
0.1197799817,
0.3708882928,
0.2521230876,
0.0021296495,
-0.283498019,
0.4639685452,
0.190556705,
0.0964655131,
0.0808834657,
0.5146648884,
-0.3989092708,
0.2905988395,
-0.157480225,
-0.083372362,
0.2200171649,
-0.1045618355,
-0.2615798116,
0.171037212,
-0.2519758046,
-0.1009906158,
0.0205407199,
-0.1659641266,
-0.1712377965,
-0.3141447306,
-0.0271553937,
0.3956104219,
-0.3193681538,
-0.3452962935,
-0.14097628,
-0.2231155485,
0.2281499952,
0.3274106979,
-0.0001218503,
0.0387925431,
0.1374745369,
-0.1475668848,
-0.4962762892,
0.004615189,
0.0253550597,
-0.5504592657,
-0.1945044547,
-0.2504110932,
0.3338276446,
-0.0910537541,
0.1185292602,
-0.3753314316,
0.2385224998,
0.2061813027,
0.1406993419,
0.3183521628,
0.2884151042,
-0.0236259121,
0.0810791999,
0.2532387376,
-0.2371630967,
0.2104444802,
0.2143961191,
0.0940102488,
-0.0697051063,
-0.1063090786,
-0.0489086621,
-0.2752485275,
0.0091197062,
-0.0715227276,
-0.3575344682,
-0.2352927625,
0.1131329164,
0.1359724104,
0.2058555186,
-0.4716518819,
-0.6115642786,
-0.4440332353,
-0.0978168547,
-0.2725955844,
0.0673025399,
0.2560086846,
-0.0856660977,
-0.0091383485,
-0.148708865,
-0.5428616405,
0.065051727,
0.0935428068,
0.3128340542,
-0.2640571892,
-0.2599280775,
0.2104805112,
0.4827491045,
-0.2832580805,
-0.2492697537,
-0.1989862174,
0.0249467045,
-0.0148135442,
-0.0100061819,
-0.1636582166,
-0.0667289346,
-0.0531579703,
0.2876334488,
0.1288197786,
-0.0264492873,
0.1699508876,
-0.3184285164,
-0.0102002434,
0.3466799855,
-0.0542852394,
-0.2104746699,
0.3277972341,
0.3184901774,
0.0511619858,
0.115170382,
0.0862567723,
-0.0244318079,
-0.1946863234,
0.0468378402,
-0.139344871,
0.1426373273,
-0.122171402,
-0.0298000202,
0.1717314422,
-0.1409706324,
0.2041667402,
-0.0327623449,
0.2195822895,
-0.0259778742,
0.0620770678,
-0.2864434421,
0.0794295594,
-0.1583690941,
0.0751292482,
-0.1170246825,
0.1987027973,
0.0240921006,
0.2353448719,
0.1321487576,
0.0247919876,
0.2072652727,
-0.0151788229,
-0.256757021,
0.1097205505,
0.0652008131,
-0.4047948718,
0.1266947836,
0.2791752517,
-0.0430322699,
0.1116224527,
0.0867824405,
0.0422737561,
-0.240793407,
0.1412680894,
0.0091915457,
-0.210431084,
-0.045482371,
0.0081624072,
-0.1934385002,
-0.125914827,
-0.5878512263,
0.0739090815,
0.3553924859,
-0.1766406298,
-0.1262134463,
-0.2640078366,
-0.1701365858,
-0.3441281021,
0.0026653875,
0.3127560616,
-0.3485506773,
0.1430541277,
-0.0181173813,
0.1768347621,
0.504804194,
0.4281788766,
0.017092498,
-0.09400931,
-0.2584462464,
0.4258444607,
0.2039239705,
-0.0345926955,
-0.4821709991,
0.1800987571,
0.0055723181,
-0.0328228511,
-0.128440246,
0.1374110579,
0.0278898664,
-0.0201429594,
-0.0864939541,
0.1751219779,
0.0206467472,
0.188828364,
-0.3232868016,
-0.4281207621,
-0.0569949709,
0.0229821689,
-0.0687386617,
-0.0665231571,
0.043806646,
-0.2526403666,
0.1586154848,
-0.1642065048,
0.2267968506,
0.3692829907,
0.310709089,
-0.1413412392,
-0.2410430759,
-0.2540669143,
-0.3209949732,
0.2904057503,
0.1346237659,
-0.2128847837,
-0.2942925096,
0.0248155445,
-0.0160081163,
0.0344790854,
-0.0461660288,
0.3929960132,
-0.0561229922,
-0.0432412699,
0.2098882049,
0.1974906027,
-0.0971101373,
-0.1669192165,
-0.2190025896,
0.1228189915,
-0.247102797,
0.1366460323,
-0.0582225099,
-0.4469140172,
0.0568947122,
-0.0252150446,
0.011301361,
-0.1903937459,
-0.056796927,
0.1131045744,
0.2439712435,
-0.036153309,
-0.0844452456,
0.1641012579,
0.0477743261,
0.0527438596,
0.1824995577,
-0.017229585,
0.2800436616,
0.0196368862,
-0.1887226701,
0.3480972052,
0.0926225036,
0.1415982693,
0.3416218758,
-0.1152978614,
0.0515541658,
0.0729830787,
0.2104121,
-0.1721232086,
-0.1512311697,
0.1688515991,
0.355353117,
-0.0358188227,
-0.3565801382,
0.0416286699,
0.5232878327,
0.0071559078,
0.4139182866,
0.288895607,
-0.0300788507,
-0.1796032041,
0.0495373309,
0.1489825547,
0.4825510383,
0.0719782263,
0.203198418,
-0.049734205,
0.0984952748,
-0.0927230492,
0.0490240939,
0.1893745214,
0.2143325806,
0.2653186619,
0.1862362027,
-0.0225450322,
-0.3985634744,
0.006851309,
-0.0103279194,
0.2490283102,
-0.1407550275,
0.1229115501,
-0.3488913476,
-0.0930571854,
-0.1756010503,
0.069005169,
-0.0824646875,
-0.3389724195,
-0.2977800965,
0.3980578184,
-0.3791891038,
0.0952736661,
-0.0824061558,
0.2396454513,
0.158845216,
0.0193316173,
0.0811564028,
0.105337061,
-0.1719750911,
-0.0753005892,
0.3932117522,
-0.1783618927,
0.4449948967,
0.2942568958,
-0.2515663803,
-0.5642057061,
-0.009631169,
0.097232528,
-0.0446408652,
0.2913727164,
0.1569106728,
0.2594357431,
-0.0637072548,
0.1674998105,
0.0285899099,
0.1679053158,
-0.2048673928,
-0.0965481102,
0.1249710768,
0.1148410663,
0.0120951869,
-0.1214812994,
-0.3409331143,
-0.3965242803,
0.4174040258,
-0.032572072,
0.1087349877,
0.2555636466,
0.3698807359,
0.3338323534,
0.1646705717,
0.013167535,
-0.079558894,
-0.2006901503,
0.2692922354,
0.073517032,
-0.2851144671,
-0.1685408205,
0.1163952425,
-0.1761889756,
0.1963486224,
-0.2961612046,
0.2146086991,
-0.5010896921,
0.1750910729,
-0.0738696605,
0.1984622777,
0.3098808825,
0.0670661777,
-0.023270715,
0.0926838964,
-0.0622302033,
-0.0249267835,
0.318688184,
0.2138708085,
0.0005781719,
0.2953262925,
0.2987186313,
0.6582241058,
0.1857360899,
-0.2299651057,
0.5270456076,
0.1381636262,
0.2322872132,
-0.2867572904,
-0.1393382996,
0.0083178654,
-0.3838779926,
-0.1529005766,
-0.1136157066,
-0.0768499747,
-0.0046233512,
0.2487111986,
-0.0195938684,
0.195905745,
-0.2433720678,
0.2963943481,
-0.1548439115,
0.0354570746,
-0.0472515598,
0.097138986,
-0.0689581856,
0.0404467843,
0.0264082067,
-0.0312319789,
0.4733628631,
0.0213881005,
-0.2703002095,
-0.0847994164,
-0.6920444369,
0.1975383908,
0.1649115533,
0.4110514522,
-0.0430320762,
-0.3325481713,
-0.1942017525,
-0.0915497318,
0.427323848,
-0.0838774443,
-0.1816160679,
0.1226131618,
-0.0661413819,
-0.370895505,
0.0140268048,
0.045474194,
0.5089051723,
-0.0749645904,
0.6180589795,
-0.2792035341,
0.0359991044,
-0.0625114515,
0.5453643799,
-0.0798202679,
0.0674052238,
-0.1730721742,
-0.3623581231,
-0.4296312034,
0.0478500538,
0.0823840871,
-0.0268803127,
-0.1800901592,
-0.0236998703,
-0.1829954535,
-0.1946382821,
-0.0307063442,
-0.2555563152,
0.1911633909,
-0.2326710522,
0.2806383371,
-0.0800129175,
0.1896321476,
0.6002492905,
0.4785456657,
-0.0664899424,
-0.1000177935,
0.0531214066,
0.2909657657,
0.3145468533,
0.2713967562,
-0.0265567098,
0.1282558143,
0.1029750258,
0.0896631405,
-0.4230405986,
0.2618332505,
0.0376054458,
-0.1594410092,
-0.4124112427,
-0.2001533359,
0.5952425599,
0.2829304934,
0.177811265,
0.1629557461,
0.0327455774,
-0.1113429517,
0.3195307851,
0.0468820184,
0.7377002239,
-0.0492731743,
0.3859348893,
0.1443643868,
-0.1329414994,
0.3299087584,
0.2714163363,
-0.0185040459,
-0.4534932971,
0.0080825863,
0.0699942857,
-0.1160739288,
0.2320920378,
-0.0774206147,
-0.2293434888,
0.2342055142,
-0.2464668304,
-0.3401262164,
-0.2011540085,
0.2974868119,
-0.4525096118,
-0.3228257298,
-0.0318486281,
0.0820499063,
-0.1890281886,
-0.0520338044,
0.0382165872,
-0.0260013696,
-0.1816879809,
0.0875811949,
-0.3797724545,
0.0752622038,
0.0180660598,
0.4964675605,
-0.2078644037,
-0.0943585858,
0.137357682,
0.033301346,
-0.0198605396,
0.1730111241,
-0.1235761568,
-0.1225465238,
-0.192344144,
-0.0259400662,
0.1587091535,
-0.1749721318,
0.3594850302,
0.1130884439,
0.0593728013,
-0.0185118765,
-0.2020334452,
-0.0545756817,
-0.1769027561,
-0.1465854496,
0.0577871241,
-0.2877599001,
-0.623282969,
-0.111554563,
-0.2177122086,
-0.3020793796,
-0.0084354104,
0.2467582524,
0.1524904668,
0.3774371445,
-0.166278556,
-0.0138627607,
-0.096046716,
0.5426025987,
-0.2170470506,
0.364802748,
0.5068679452,
0.1799976081,
-0.2064274251,
-0.1599706411,
0.3782240748,
0.0054585799,
0.1507758051,
0.5503348708,
-0.0991168618,
0.0169375055,
-0.1889045835,
0.2538343966,
0.1505653411,
-0.3707574606,
-0.1609155983,
-0.106463477,
-0.5591669679,
0.2067392319,
0.0927725509,
0.3967386484,
-0.1763738692,
-0.1226243749,
-0.2903542817,
-0.0280071199,
-0.1391881257,
0.1578175575,
-0.2676870823,
0.0016693617,
0.1658403873,
-0.0137935029,
-0.0525890291,
-0.1007535383,
-0.0595299862,
0.1842212379,
-0.0486180596,
-0.0748259574,
-0.0830292851,
0.1172453314,
0.2271108776,
-0.1736914665,
-0.0266163778,
-0.3926927149,
-0.011301809,
-0.1907858998,
0.0279923324,
0.2519241869,
-0.0885427296,
0.1128098741,
0.1268066466,
0.0777302086,
0.2172164321,
0.2322369069,
0.0071798735,
0.2455637157,
0.0233159624,
0.3543139994,
0.23113738,
-0.2054193467,
-0.2343900353,
0.0184835941,
0.2907336652,
0.0028005964,
0.3051241636,
-0.2582035065,
-0.1423428953,
0.2555762231,
0.152525723,
0.6202744842,
-0.1304680407,
-0.2227959037,
0.2998893261,
0.0897814482,
0.0638142303,
-0.3358578682,
0.0940015242,
-0.198531881,
-0.0703842491,
0.0349964797,
-0.1245133728,
0.1647945195,
-0.836609304,
0.0696002021,
0.2907017767,
0.0823388547,
-0.0154764457,
0.1485919505,
0.0258133877,
-0.0169614237,
0.1871798038,
0.0637976229,
0.5537104011,
0.5625142455,
-0.0818327218,
0.6099126339,
0.0296855755,
0.2446463406,
-0.0165887047,
-0.7433125377,
0.1946712434,
0.4049604237,
0.0361097269,
0.2161794454,
0.0082660569,
0.3752157986,
-0.3950867355,
-0.3191030324,
-0.0506718829,
0.2922396064,
-0.3702153862,
-0.2698809206,
0.0688753724,
-0.1035976261,
0.1086752117,
0.3668444753,
-0.2612330317,
-0.0977837965,
0.3455848694,
-0.0249213222,
0.017914081,
-0.1097210944,
0.0959115177,
-0.0420459323,
0.2890909612,
-0.3097182512,
0.0306310058,
0.0174911749,
-0.1720921844,
-0.6128517985,
-0.0106837573,
0.5050379038,
0.2819989622,
-0.1961210519,
-0.0660642982,
0.0685520768,
0.0303373858,
-0.1291407347,
0.0992150381,
-0.1238474101,
0.197000891,
0.4543987215,
-0.0504101962,
-0.0348030403,
-0.0234675221,
0.0882912353,
0.2930335104,
-0.1039108559,
-0.0321990512,
-0.0701632947,
-0.3222336769,
0.1069181263,
0.1219476089,
-0.1603212804,
0.1898337305,
0.568035841,
-0.1474343389,
0.2258224636,
0.088448979,
0.0404938273,
-0.0526780374,
0.7015369534,
0.4067875147,
-0.2560662031,
-0.4636138678,
0.1385056823,
-0.0690151006,
-0.002116519,
-0.2306673527,
0.053631559,
-0.1855026186,
0.137277022,
0.1532154083,
0.0236978605,
-0.2460395396,
0.2859385908,
-0.0149230203,
0.1721998751,
-0.0651212409,
-0.3166812956,
-0.0537015572,
-0.1375623643,
0.0910060331,
-0.6348481178,
0.3538061082,
0.007176504,
-0.0413395278,
-0.1618840545,
-0.14757438,
-0.0180505142,
0.0729032531,
0.5200448632,
0.216836825,
0.2093251199,
-0.2043676972,
-0.4473117292,
0.0667581707,
-0.0612403415,
-0.0172182433,
0.1486824602,
-0.1969655305,
0.5546963811,
-0.1838608682,
0.6516256332,
-0.3728135526,
0.0651056841,
-0.0792423561,
0.0196859483,
0.0209766477,
-0.059398111,
-0.0028047364,
-0.0336449668,
0.1575346589,
0.2505612671,
-0.0595528409,
0.1921726912,
-0.3644734919,
-0.2029281855,
0.4465301335,
0.1169661954,
-0.1790775955,
-0.0937829912,
-0.0345238261,
0.2249453664,
-0.0534385666,
-0.5481230617,
-0.0274886172,
0.2250311822,
0.0066440143,
-0.2915828526,
0.2220803052,
-0.0191372745,
-0.1319442242,
-0.0674830601,
1.1606018543,
-0.264290452,
-0.225251466,
0.2253786772,
-0.0351090953
] |
https://github.com/huggingface/datasets/issues/2133 | bug in mlqa dataset | If you print those questions, you get readable texts:
```python
>>> questions = [
... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
... ]
>>> print(questions)
['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?']
```
I don't think we can change this | Hi
Looking into MLQA dataset for langauge "ar":
```
"question": [
"\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
"\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
]
```
the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
| 111 | bug in mlqa dataset
Hi
Looking into MLQA dataset for langauge "ar":
```
"question": [
"\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
"\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
]
```
the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
If you print those questions, you get readable texts:
```python
>>> questions = [
... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
... ]
>>> print(questions)
['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?']
```
I don't think we can change this | [
-0.1158529744,
-0.2315681726,
-0.2734040916,
0.2112121135,
0.332148701,
0.0711948499,
0.352468878,
0.1213383377,
-0.3227719665,
0.2254538387,
0.0618871227,
0.2817642987,
0.2518622279,
0.25612095,
0.1166764647,
-0.0477858111,
0.1292088181,
0.1794564724,
0.0600871928,
-0.197704643,
-0.196472764,
0.2453737259,
-0.1337223649,
0.0539800338,
-0.0679917783,
-0.0335097462,
-0.0207404252,
0.220893696,
-0.0425397903,
0.083016485,
-0.1433828622,
-0.2492371351,
-0.1639156789,
0.0051753512,
-0.0001021291,
-0.1083842218,
0.1797212809,
-0.0530057847,
-0.2548287809,
0.3303482234,
-0.44334957,
0.0542143062,
-0.3197637498,
-0.3245652914,
-0.1831693351,
-0.1904886216,
-0.0552760363,
-0.5454847813,
0.3158856034,
0.3931446075,
0.3555620015,
0.11692857,
-0.0093527576,
-0.0591304228,
0.2337929904,
-0.0075344387,
0.05328843,
-0.0125402808,
0.0099400161,
-0.0157067906,
0.0644998029,
0.5903978944,
0.1528966576,
-0.0744415745,
-0.2841551602,
0.0947689936,
0.2282182127,
-0.1410571635,
0.3744461536,
0.2255226821,
0.2068460137,
-0.2394517809,
-0.1113860309,
0.0701103657,
0.0387011506,
-0.1902516782,
-0.0511134639,
0.2683145702,
0.0487997942,
0.0880703181,
0.1475321949,
0.1784596592,
-0.1978725493,
0.0273554008,
-0.4308958054,
0.4159487486,
-0.1553923041,
-0.0334864967,
-0.1144850031,
-0.2438467443,
-0.109020032,
0.1160906404,
-0.143109858,
0.1030093208,
-0.1794523895,
-0.1882236898,
-0.1247729138,
0.267688334,
0.0131062865,
-0.0319189094,
0.1373088062,
0.1452643126,
0.2267719656,
-0.055248864,
-0.1274058819,
-0.0103751421,
-0.1002314389,
-0.1150463149,
0.2245229036,
-0.1293275356,
-0.0769748315,
0.0153344311,
0.0609565973,
-0.2191798389,
-0.1487823129,
0.2285619825,
0.1345374435,
-0.140999943,
-0.3242000639,
0.056123402,
-0.3493772447,
0.0548070036,
-0.1677002907,
0.3912611902,
0.2288829386,
-0.0240964089,
-0.1399517357,
-0.0753452107,
-0.1917122453,
-0.3327358365,
-0.3898274601,
0.1255718172,
0.1248719022,
-0.2768226564,
-0.0159337036,
0.3214125335,
0.2155390978,
-0.0244429391,
0.1260243356,
0.0829230249,
0.0949712619,
-0.1912812144,
0.2312820703,
0.2930064797,
-0.1015831903,
-0.0493385382,
-0.0328686871,
-0.0564296395,
0.0095265945,
0.1452572644,
0.0762139186,
0.007934005,
-0.3933086693,
0.3797928989,
0.395275414,
-0.0949568227,
0.1754638553,
0.2335365862,
0.218748033,
0.0496398285,
0.1180229783,
-0.1062785685,
-0.021899689,
-0.1518763006,
0.0634605736,
0.0898391083,
-0.5268483758,
0.0284029264,
-0.368958205,
-0.0933341011,
0.3024435043,
0.3060185015,
0.0991313607,
-0.0708539709,
-0.1700618118,
0.3025595546,
0.1694826633,
-0.0779911429,
-0.3400379717,
0.2042782605,
-0.1599994749,
-0.1875739992,
0.2839229703,
0.2088896483,
-0.1037752926,
-0.0227848683,
0.1018836647,
0.1511970907,
-0.105543457,
0.0276851114,
-0.1231235713,
-0.1423800588,
0.1725801975,
0.0685132891,
-0.2583669424,
-0.1137778237,
0.2595126927,
0.0241773501,
0.3915382326,
-0.0147939241,
-0.0749590024,
0.0135182906,
0.3583312035,
-0.4317682683,
0.1625479162,
-0.0722044855,
-0.3222060502,
-0.2190341502,
-0.609854877,
0.0809969679,
-0.2334307283,
-0.1778639406,
-0.1760998368,
-0.1031844839,
0.0356509015,
0.0966449529,
0.3250930309,
0.1980950385,
-0.0805993378,
0.2429174781,
0.0244630221,
-0.0335511379,
-0.0382364877,
-0.147497043,
-0.3175997138,
0.2270222008,
-0.1953134388,
0.0706108883,
0.1879197359,
0.3434305787,
0.1390684098,
-0.0944975168,
0.1414384693,
0.0136981895,
0.0952923223,
0.289717555,
-0.1747565269,
0.1883359104,
0.2945403457,
-0.258528471,
0.0214190688,
0.3033980131,
0.3104000092,
0.004276887,
-0.1195690036,
0.3716929257,
0.0615127459,
-0.0408309549,
0.0971445888,
0.0294480063,
0.4241670668,
-0.0936101004,
0.1024364606,
-0.5371356606,
0.1689567119,
0.1346678287,
0.2095034271,
0.062408071,
-0.5084816813,
0.4397791028,
0.4208016694,
-0.0966068655,
0.0676752031,
-0.1444754303,
-0.1639986038,
0.0293988306,
0.0471221283,
0.1910907328,
0.2587713003,
0.2780264914,
0.0747868493,
0.0024712824,
-0.0050048465,
-0.4039027095,
0.3473233879,
-0.0582329184,
0.0497225001,
0.2490378767,
0.11405164,
-0.0766904205,
-0.3842310309,
0.1208590418,
-0.0701797679,
0.0866600871,
-0.2455853224,
0.1962551177,
-0.3665638566,
-0.5910028815,
-0.3121286631,
-0.2207446992,
0.1649776846,
-0.2732043564,
0.2837466002,
-0.1319198012,
-0.2716565132,
0.2348254472,
0.1886444837,
0.3562224805,
0.2386365831,
0.2746745646,
-0.3108391166,
-0.0177151728,
-0.1842352897,
0.3107545674,
0.1267086864,
0.2490746826,
0.1786776036,
-0.2989785969,
-0.173029542,
-0.2467731088,
-0.4817384183,
0.0892967954,
-0.0329138227,
0.3612641692,
0.0369145609,
-0.0061599417,
-0.1015347689,
-0.0593847819,
-0.0475921892,
0.1554071456,
-0.3217168748,
-0.0999741405,
-0.1066941321,
-0.0564779155,
-0.2586627603,
-0.5629891157,
-0.2710550725,
-0.1909809858,
-0.0850010142,
-0.0118036987,
0.2423169166,
-0.1813126504,
-0.0354816206,
0.1197238863,
0.0902569741,
-0.0801457614,
-0.3614609838,
0.2991604507,
0.3615005314,
-0.1537981182,
-0.444093883,
-0.138351351,
-0.1057203934,
0.2217349112,
-0.3010008633,
-0.3994614184,
-0.0869593471,
-0.1401094496,
-0.2230981737,
-0.0174844302,
-0.0737693906,
0.2164238393,
-0.1130888164,
-0.2328868657,
-0.0172808357,
-0.198511973,
0.1154637486,
0.1303709894,
0.1697895974,
-0.1722305715,
0.5826886296,
0.0520812236,
0.1483301073,
0.1584415734,
-0.1299767643,
0.1711342633,
-0.1682366431,
0.1268290728,
-0.0480326116,
-0.0453251563,
0.3635537326,
0.1533103734,
-0.0188578628,
0.3690083027,
-0.0572636239,
-0.2640042007,
0.1094784737,
0.0063493554,
-0.0653221533,
-0.1079194397,
0.0292384047,
-0.2916395068,
-0.0198185183,
0.0833588317,
0.0959737897,
0.1944288611,
-0.1557240635,
0.113622956,
0.0154411448,
0.0269194208,
-0.1321804971,
-0.5314320326,
-0.2443504333,
-0.2926122844,
0.3258086145,
0.0728765354,
0.3792930543,
-0.2615156472,
-0.132895574,
0.1868350208,
-0.11858318,
0.581946969,
0.1304206699,
0.1935622394,
0.2138530314,
0.1884210259,
0.0790650398,
0.1521458626,
-0.4665819108,
0.3041167259,
0.1202671453,
0.2619280517,
-0.1860756725,
0.010463438,
0.1320599616,
0.2706114054,
-0.4115586281,
0.0313060842,
-0.320756197,
-0.2958230078,
-0.032988701,
0.148725152,
0.1233903617,
0.3150467277,
-0.0871899948,
-0.0636226758,
-0.1172879636,
-0.4636470675,
0.0457348563,
0.2088249624,
0.3036417961,
-0.080865562,
-0.0717990026,
-0.1067921966,
0.3183943331,
-0.1104693413,
0.3308582306,
0.1301068664,
-0.0969374925,
0.0098022912,
-0.411218375,
0.2951392531,
0.03673115,
-0.1786259711,
-0.0091438005,
0.4109275639,
0.0753106326,
-0.1215832978,
-0.1314014345,
0.0782287121,
0.1548283994,
-0.1019287184,
-0.066370897,
0.210072726,
-0.2370852977,
-0.1019981429,
-0.0266774576,
0.3568891287,
-0.3343980908,
0.4691639543,
0.2304180562,
0.9524284601,
0.2300882339,
0.0048158681,
0.2026657164,
-0.2724694312,
0.0495896377,
0.2469625175,
0.3125798106,
-0.360214293,
0.0808103606,
-0.1237329766,
-0.0259008817,
0.1456839293,
0.268661201,
-0.2391443551,
0.036826767,
-0.0991391465,
0.0187147651,
0.0578458682,
-0.0420077667,
0.0123538161,
0.0667765588,
-0.3098327816,
0.2407770008,
0.1604474634,
-0.1262227297,
-0.1036740094,
-0.1553587168,
0.022990901,
-0.1915266812,
-0.0891859904,
0.0344959684,
-0.4054074883,
0.0044305003,
0.125434652,
-0.3809592724,
-0.1101402193,
0.1247105747,
0.2879431546,
0.1120831072,
0.035570126,
0.1754249632,
0.2798662186,
0.3331297338,
0.2754774094,
0.0300889555,
0.2048372477,
-0.3041776419,
-0.1624443978,
0.2047541589,
0.1176916808,
-0.1924744099,
-0.2655918002,
0.2533447146,
0.0037147421,
0.0201469045,
-0.1261611283,
-0.0415273458,
-0.0486045443,
-0.2539507747,
0.2601625919,
-0.1233115867,
-0.1218635291,
0.3450837433,
-0.0151024349,
-0.2232403308,
-0.1870571673,
0.2631909549,
0.0915401131,
0.2749404311,
0.4604129195,
0.0735991001,
-0.2701103091,
-0.4670406878,
-0.1441356838,
-0.0737692714,
-0.2279803753,
0.1191658005,
-0.1223848909,
-0.2254581004,
-0.0895111114,
0.0805104226,
-0.0582052171,
0.1274324208,
-0.1490082145,
-0.6126043797,
-0.2825823426,
-0.0735411569,
0.0543802604,
0.1607295424,
0.1171974093,
0.0226548295,
-0.1883121133,
0.0475361235,
-0.4655612409,
0.1205716729,
-0.1525132954,
0.06824141,
-0.3576039672,
0.0517572388,
-0.0562355667,
0.1945679784,
0.4125513732,
-0.0648629442,
-0.2503979504,
-0.4053132236,
-0.0830439329,
0.0675585419,
-0.1761306375,
-0.1299040765,
0.0353781395,
-0.0416139662,
-0.2331760824,
0.1856707931,
0.0996722281,
-0.1140602753,
0.0705625564,
0.0362369567,
0.1259873658,
-0.0754713714,
-0.0776160955,
-0.0489322878,
0.1121363342,
-0.1620779783,
0.1734583825,
0.2188942432,
-0.0234116893,
-0.0476467125,
0.3097184002,
-0.1309833825,
-0.0507534146,
0.0357707702,
0.3090591431,
-0.1389125437,
-0.182341069,
0.221316278,
0.0059362403,
0.0923449695,
-0.3267616034,
-0.1344146132,
0.0450520329,
0.4097960889,
-0.5532665849,
-0.0793980733,
0.0638044551,
-0.00846422,
0.1509256214,
0.1421750933,
0.2615838945,
-0.1343315095,
0.126941815,
0.2209290117,
0.3258604109,
-0.2247741669,
-0.1728528291,
0.0507578477,
-0.1218097061,
0.169266358,
0.1125316173,
0.0999645069,
0.1192645207,
0.6916360855,
-0.0437446013,
0.2923964262,
0.1101411507,
0.067982547,
0.0815226808,
0.1393964589,
0.1451891661,
0.4456792772,
-0.2920978069,
0.1568640769,
0.5386683941,
-0.1165414006,
0.20515576,
0.0246808529,
-0.2884279191,
-0.1483183056,
-0.2918516099,
-0.2522683442,
-0.0286989529,
-0.1616625041,
-0.0294934604,
-0.1111191288,
0.0027755313,
0.0421170443,
0.5325811505,
-0.0071830605,
-0.0443250686,
-0.182990253,
-0.0525391996,
-0.0752627999,
-0.0456415266,
-0.1999219507,
0.3746516705,
0.3940323293,
-0.0059072138,
0.2505496442,
-0.0202576481,
0.1869514138,
0.0737287924,
-0.0990661904,
0.0158187542,
-0.1997042447,
-0.2816880345,
-0.184263289,
0.2646847963,
0.1495166421,
0.3046128452,
0.2148524374,
0.3038095534,
-0.2171555907,
0.158008635,
0.5882332921,
0.1517387927,
-0.0693792626,
0.0392127708,
-0.4237434268,
-0.0257010907,
-0.3209614456,
0.0478472561,
-0.2464501709,
0.0778163821,
0.0034497164,
-0.2867470086,
0.1594922245,
0.120161064,
0.1503570378,
0.0604841858,
0.6015753746,
0.1133554876,
-0.066104874,
-0.1337704509,
-0.234667927,
-0.5674969554,
0.1958338171,
0.2363113165,
-0.0519493893,
-0.171332106,
0.3429603577,
0.1597277969,
-0.0710560903,
0.0902100503,
0.0962437019,
-0.0821882337,
-0.0162222181,
-0.412351191,
-0.1067944989,
0.123490192,
0.2328350544,
-0.1281645298,
-0.3708756268,
0.3792414367,
0.0888490081,
0.1948822439,
-0.2314057052,
-0.2158890963,
-0.1824166626,
0.2466815561,
0.0318039507,
0.3799424767,
0.1526885182,
-0.349820435,
0.036198996,
0.1120778024,
0.0147676375,
-0.1114464179,
0.2188644856,
0.2435276955,
0.217315644,
0.1415941864,
0.0435094722,
0.1522724479,
0.4297475219,
0.0463589281,
-0.1174227074,
-0.2635605037,
0.5547001362,
-0.1008021533,
-0.0520820878,
-0.1178274304,
0.139692843,
0.0085181985,
-0.0532909632,
-0.0157468319,
-0.4543576241,
0.3082256615,
-0.5355833769,
-0.2539766133,
-0.0591676943,
0.1182154864,
0.1231308505,
-0.0180410482,
-0.2814458609,
0.0923633426,
0.3500164747,
-0.290909946,
0.1102767289,
0.4204137623,
0.1702207625,
-0.0142799085,
-0.204844445,
0.1536099911,
0.4446440637,
-0.184217006,
-0.0485978909,
-0.4758799374
] |
https://github.com/huggingface/datasets/issues/2133 | bug in mlqa dataset | Hi @dorost1234.
In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values).
Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs).
You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html | Hi
Looking into MLQA dataset for langauge "ar":
```
"question": [
"\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
"\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
]
```
the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
| 121 | bug in mlqa dataset
Hi
Looking into MLQA dataset for langauge "ar":
```
"question": [
"\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?",
"\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?",
"\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?"
]
```
the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
Hi @dorost1234.
In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values).
Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs).
You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html | [
-0.1158529744,
-0.2315681726,
-0.2734040916,
0.2112121135,
0.332148701,
0.0711948499,
0.352468878,
0.1213383377,
-0.3227719665,
0.2254538387,
0.0618871227,
0.2817642987,
0.2518622279,
0.25612095,
0.1166764647,
-0.0477858111,
0.1292088181,
0.1794564724,
0.0600871928,
-0.197704643,
-0.196472764,
0.2453737259,
-0.1337223649,
0.0539800338,
-0.0679917783,
-0.0335097462,
-0.0207404252,
0.220893696,
-0.0425397903,
0.083016485,
-0.1433828622,
-0.2492371351,
-0.1639156789,
0.0051753512,
-0.0001021291,
-0.1083842218,
0.1797212809,
-0.0530057847,
-0.2548287809,
0.3303482234,
-0.44334957,
0.0542143062,
-0.3197637498,
-0.3245652914,
-0.1831693351,
-0.1904886216,
-0.0552760363,
-0.5454847813,
0.3158856034,
0.3931446075,
0.3555620015,
0.11692857,
-0.0093527576,
-0.0591304228,
0.2337929904,
-0.0075344387,
0.05328843,
-0.0125402808,
0.0099400161,
-0.0157067906,
0.0644998029,
0.5903978944,
0.1528966576,
-0.0744415745,
-0.2841551602,
0.0947689936,
0.2282182127,
-0.1410571635,
0.3744461536,
0.2255226821,
0.2068460137,
-0.2394517809,
-0.1113860309,
0.0701103657,
0.0387011506,
-0.1902516782,
-0.0511134639,
0.2683145702,
0.0487997942,
0.0880703181,
0.1475321949,
0.1784596592,
-0.1978725493,
0.0273554008,
-0.4308958054,
0.4159487486,
-0.1553923041,
-0.0334864967,
-0.1144850031,
-0.2438467443,
-0.109020032,
0.1160906404,
-0.143109858,
0.1030093208,
-0.1794523895,
-0.1882236898,
-0.1247729138,
0.267688334,
0.0131062865,
-0.0319189094,
0.1373088062,
0.1452643126,
0.2267719656,
-0.055248864,
-0.1274058819,
-0.0103751421,
-0.1002314389,
-0.1150463149,
0.2245229036,
-0.1293275356,
-0.0769748315,
0.0153344311,
0.0609565973,
-0.2191798389,
-0.1487823129,
0.2285619825,
0.1345374435,
-0.140999943,
-0.3242000639,
0.056123402,
-0.3493772447,
0.0548070036,
-0.1677002907,
0.3912611902,
0.2288829386,
-0.0240964089,
-0.1399517357,
-0.0753452107,
-0.1917122453,
-0.3327358365,
-0.3898274601,
0.1255718172,
0.1248719022,
-0.2768226564,
-0.0159337036,
0.3214125335,
0.2155390978,
-0.0244429391,
0.1260243356,
0.0829230249,
0.0949712619,
-0.1912812144,
0.2312820703,
0.2930064797,
-0.1015831903,
-0.0493385382,
-0.0328686871,
-0.0564296395,
0.0095265945,
0.1452572644,
0.0762139186,
0.007934005,
-0.3933086693,
0.3797928989,
0.395275414,
-0.0949568227,
0.1754638553,
0.2335365862,
0.218748033,
0.0496398285,
0.1180229783,
-0.1062785685,
-0.021899689,
-0.1518763006,
0.0634605736,
0.0898391083,
-0.5268483758,
0.0284029264,
-0.368958205,
-0.0933341011,
0.3024435043,
0.3060185015,
0.0991313607,
-0.0708539709,
-0.1700618118,
0.3025595546,
0.1694826633,
-0.0779911429,
-0.3400379717,
0.2042782605,
-0.1599994749,
-0.1875739992,
0.2839229703,
0.2088896483,
-0.1037752926,
-0.0227848683,
0.1018836647,
0.1511970907,
-0.105543457,
0.0276851114,
-0.1231235713,
-0.1423800588,
0.1725801975,
0.0685132891,
-0.2583669424,
-0.1137778237,
0.2595126927,
0.0241773501,
0.3915382326,
-0.0147939241,
-0.0749590024,
0.0135182906,
0.3583312035,
-0.4317682683,
0.1625479162,
-0.0722044855,
-0.3222060502,
-0.2190341502,
-0.609854877,
0.0809969679,
-0.2334307283,
-0.1778639406,
-0.1760998368,
-0.1031844839,
0.0356509015,
0.0966449529,
0.3250930309,
0.1980950385,
-0.0805993378,
0.2429174781,
0.0244630221,
-0.0335511379,
-0.0382364877,
-0.147497043,
-0.3175997138,
0.2270222008,
-0.1953134388,
0.0706108883,
0.1879197359,
0.3434305787,
0.1390684098,
-0.0944975168,
0.1414384693,
0.0136981895,
0.0952923223,
0.289717555,
-0.1747565269,
0.1883359104,
0.2945403457,
-0.258528471,
0.0214190688,
0.3033980131,
0.3104000092,
0.004276887,
-0.1195690036,
0.3716929257,
0.0615127459,
-0.0408309549,
0.0971445888,
0.0294480063,
0.4241670668,
-0.0936101004,
0.1024364606,
-0.5371356606,
0.1689567119,
0.1346678287,
0.2095034271,
0.062408071,
-0.5084816813,
0.4397791028,
0.4208016694,
-0.0966068655,
0.0676752031,
-0.1444754303,
-0.1639986038,
0.0293988306,
0.0471221283,
0.1910907328,
0.2587713003,
0.2780264914,
0.0747868493,
0.0024712824,
-0.0050048465,
-0.4039027095,
0.3473233879,
-0.0582329184,
0.0497225001,
0.2490378767,
0.11405164,
-0.0766904205,
-0.3842310309,
0.1208590418,
-0.0701797679,
0.0866600871,
-0.2455853224,
0.1962551177,
-0.3665638566,
-0.5910028815,
-0.3121286631,
-0.2207446992,
0.1649776846,
-0.2732043564,
0.2837466002,
-0.1319198012,
-0.2716565132,
0.2348254472,
0.1886444837,
0.3562224805,
0.2386365831,
0.2746745646,
-0.3108391166,
-0.0177151728,
-0.1842352897,
0.3107545674,
0.1267086864,
0.2490746826,
0.1786776036,
-0.2989785969,
-0.173029542,
-0.2467731088,
-0.4817384183,
0.0892967954,
-0.0329138227,
0.3612641692,
0.0369145609,
-0.0061599417,
-0.1015347689,
-0.0593847819,
-0.0475921892,
0.1554071456,
-0.3217168748,
-0.0999741405,
-0.1066941321,
-0.0564779155,
-0.2586627603,
-0.5629891157,
-0.2710550725,
-0.1909809858,
-0.0850010142,
-0.0118036987,
0.2423169166,
-0.1813126504,
-0.0354816206,
0.1197238863,
0.0902569741,
-0.0801457614,
-0.3614609838,
0.2991604507,
0.3615005314,
-0.1537981182,
-0.444093883,
-0.138351351,
-0.1057203934,
0.2217349112,
-0.3010008633,
-0.3994614184,
-0.0869593471,
-0.1401094496,
-0.2230981737,
-0.0174844302,
-0.0737693906,
0.2164238393,
-0.1130888164,
-0.2328868657,
-0.0172808357,
-0.198511973,
0.1154637486,
0.1303709894,
0.1697895974,
-0.1722305715,
0.5826886296,
0.0520812236,
0.1483301073,
0.1584415734,
-0.1299767643,
0.1711342633,
-0.1682366431,
0.1268290728,
-0.0480326116,
-0.0453251563,
0.3635537326,
0.1533103734,
-0.0188578628,
0.3690083027,
-0.0572636239,
-0.2640042007,
0.1094784737,
0.0063493554,
-0.0653221533,
-0.1079194397,
0.0292384047,
-0.2916395068,
-0.0198185183,
0.0833588317,
0.0959737897,
0.1944288611,
-0.1557240635,
0.113622956,
0.0154411448,
0.0269194208,
-0.1321804971,
-0.5314320326,
-0.2443504333,
-0.2926122844,
0.3258086145,
0.0728765354,
0.3792930543,
-0.2615156472,
-0.132895574,
0.1868350208,
-0.11858318,
0.581946969,
0.1304206699,
0.1935622394,
0.2138530314,
0.1884210259,
0.0790650398,
0.1521458626,
-0.4665819108,
0.3041167259,
0.1202671453,
0.2619280517,
-0.1860756725,
0.010463438,
0.1320599616,
0.2706114054,
-0.4115586281,
0.0313060842,
-0.320756197,
-0.2958230078,
-0.032988701,
0.148725152,
0.1233903617,
0.3150467277,
-0.0871899948,
-0.0636226758,
-0.1172879636,
-0.4636470675,
0.0457348563,
0.2088249624,
0.3036417961,
-0.080865562,
-0.0717990026,
-0.1067921966,
0.3183943331,
-0.1104693413,
0.3308582306,
0.1301068664,
-0.0969374925,
0.0098022912,
-0.411218375,
0.2951392531,
0.03673115,
-0.1786259711,
-0.0091438005,
0.4109275639,
0.0753106326,
-0.1215832978,
-0.1314014345,
0.0782287121,
0.1548283994,
-0.1019287184,
-0.066370897,
0.210072726,
-0.2370852977,
-0.1019981429,
-0.0266774576,
0.3568891287,
-0.3343980908,
0.4691639543,
0.2304180562,
0.9524284601,
0.2300882339,
0.0048158681,
0.2026657164,
-0.2724694312,
0.0495896377,
0.2469625175,
0.3125798106,
-0.360214293,
0.0808103606,
-0.1237329766,
-0.0259008817,
0.1456839293,
0.268661201,
-0.2391443551,
0.036826767,
-0.0991391465,
0.0187147651,
0.0578458682,
-0.0420077667,
0.0123538161,
0.0667765588,
-0.3098327816,
0.2407770008,
0.1604474634,
-0.1262227297,
-0.1036740094,
-0.1553587168,
0.022990901,
-0.1915266812,
-0.0891859904,
0.0344959684,
-0.4054074883,
0.0044305003,
0.125434652,
-0.3809592724,
-0.1101402193,
0.1247105747,
0.2879431546,
0.1120831072,
0.035570126,
0.1754249632,
0.2798662186,
0.3331297338,
0.2754774094,
0.0300889555,
0.2048372477,
-0.3041776419,
-0.1624443978,
0.2047541589,
0.1176916808,
-0.1924744099,
-0.2655918002,
0.2533447146,
0.0037147421,
0.0201469045,
-0.1261611283,
-0.0415273458,
-0.0486045443,
-0.2539507747,
0.2601625919,
-0.1233115867,
-0.1218635291,
0.3450837433,
-0.0151024349,
-0.2232403308,
-0.1870571673,
0.2631909549,
0.0915401131,
0.2749404311,
0.4604129195,
0.0735991001,
-0.2701103091,
-0.4670406878,
-0.1441356838,
-0.0737692714,
-0.2279803753,
0.1191658005,
-0.1223848909,
-0.2254581004,
-0.0895111114,
0.0805104226,
-0.0582052171,
0.1274324208,
-0.1490082145,
-0.6126043797,
-0.2825823426,
-0.0735411569,
0.0543802604,
0.1607295424,
0.1171974093,
0.0226548295,
-0.1883121133,
0.0475361235,
-0.4655612409,
0.1205716729,
-0.1525132954,
0.06824141,
-0.3576039672,
0.0517572388,
-0.0562355667,
0.1945679784,
0.4125513732,
-0.0648629442,
-0.2503979504,
-0.4053132236,
-0.0830439329,
0.0675585419,
-0.1761306375,
-0.1299040765,
0.0353781395,
-0.0416139662,
-0.2331760824,
0.1856707931,
0.0996722281,
-0.1140602753,
0.0705625564,
0.0362369567,
0.1259873658,
-0.0754713714,
-0.0776160955,
-0.0489322878,
0.1121363342,
-0.1620779783,
0.1734583825,
0.2188942432,
-0.0234116893,
-0.0476467125,
0.3097184002,
-0.1309833825,
-0.0507534146,
0.0357707702,
0.3090591431,
-0.1389125437,
-0.182341069,
0.221316278,
0.0059362403,
0.0923449695,
-0.3267616034,
-0.1344146132,
0.0450520329,
0.4097960889,
-0.5532665849,
-0.0793980733,
0.0638044551,
-0.00846422,
0.1509256214,
0.1421750933,
0.2615838945,
-0.1343315095,
0.126941815,
0.2209290117,
0.3258604109,
-0.2247741669,
-0.1728528291,
0.0507578477,
-0.1218097061,
0.169266358,
0.1125316173,
0.0999645069,
0.1192645207,
0.6916360855,
-0.0437446013,
0.2923964262,
0.1101411507,
0.067982547,
0.0815226808,
0.1393964589,
0.1451891661,
0.4456792772,
-0.2920978069,
0.1568640769,
0.5386683941,
-0.1165414006,
0.20515576,
0.0246808529,
-0.2884279191,
-0.1483183056,
-0.2918516099,
-0.2522683442,
-0.0286989529,
-0.1616625041,
-0.0294934604,
-0.1111191288,
0.0027755313,
0.0421170443,
0.5325811505,
-0.0071830605,
-0.0443250686,
-0.182990253,
-0.0525391996,
-0.0752627999,
-0.0456415266,
-0.1999219507,
0.3746516705,
0.3940323293,
-0.0059072138,
0.2505496442,
-0.0202576481,
0.1869514138,
0.0737287924,
-0.0990661904,
0.0158187542,
-0.1997042447,
-0.2816880345,
-0.184263289,
0.2646847963,
0.1495166421,
0.3046128452,
0.2148524374,
0.3038095534,
-0.2171555907,
0.158008635,
0.5882332921,
0.1517387927,
-0.0693792626,
0.0392127708,
-0.4237434268,
-0.0257010907,
-0.3209614456,
0.0478472561,
-0.2464501709,
0.0778163821,
0.0034497164,
-0.2867470086,
0.1594922245,
0.120161064,
0.1503570378,
0.0604841858,
0.6015753746,
0.1133554876,
-0.066104874,
-0.1337704509,
-0.234667927,
-0.5674969554,
0.1958338171,
0.2363113165,
-0.0519493893,
-0.171332106,
0.3429603577,
0.1597277969,
-0.0710560903,
0.0902100503,
0.0962437019,
-0.0821882337,
-0.0162222181,
-0.412351191,
-0.1067944989,
0.123490192,
0.2328350544,
-0.1281645298,
-0.3708756268,
0.3792414367,
0.0888490081,
0.1948822439,
-0.2314057052,
-0.2158890963,
-0.1824166626,
0.2466815561,
0.0318039507,
0.3799424767,
0.1526885182,
-0.349820435,
0.036198996,
0.1120778024,
0.0147676375,
-0.1114464179,
0.2188644856,
0.2435276955,
0.217315644,
0.1415941864,
0.0435094722,
0.1522724479,
0.4297475219,
0.0463589281,
-0.1174227074,
-0.2635605037,
0.5547001362,
-0.1008021533,
-0.0520820878,
-0.1178274304,
0.139692843,
0.0085181985,
-0.0532909632,
-0.0157468319,
-0.4543576241,
0.3082256615,
-0.5355833769,
-0.2539766133,
-0.0591676943,
0.1182154864,
0.1231308505,
-0.0180410482,
-0.2814458609,
0.0923633426,
0.3500164747,
-0.290909946,
0.1102767289,
0.4204137623,
0.1702207625,
-0.0142799085,
-0.204844445,
0.1536099911,
0.4446440637,
-0.184217006,
-0.0485978909,
-0.4758799374
] |
https://github.com/huggingface/datasets/issues/2132 | TydiQA dataset is mixed and is not split per language | You can filter the languages this way:
```python
tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english")
```
Otherwise maybe we can have one configuration per language ?
What do you think of this for example ?
```python
load_dataset("tydiqa", "primary_task.en")
``` | Hi @lhoestq
Currently TydiQA is mixed and user can only access the whole training set of all languages:
https://www.tensorflow.org/datasets/catalog/tydi_qa
for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this.
Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot | 39 | TydiQA dataset is mixed and is not split per language
Hi @lhoestq
Currently TydiQA is mixed and user can only access the whole training set of all languages:
https://www.tensorflow.org/datasets/catalog/tydi_qa
for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this.
Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
You can filter the languages this way:
```python
tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english")
```
Otherwise maybe we can have one configuration per language ?
What do you think of this for example ?
```python
load_dataset("tydiqa", "primary_task.en")
``` | [
-0.2592063844,
-0.2352886647,
-0.2044115365,
0.2665457726,
0.2771571577,
-0.0258290023,
0.3412592411,
0.3332073092,
-0.1514982134,
0.0776814744,
-0.334315598,
-0.0462718271,
-0.0167532805,
0.4214196205,
0.0419183187,
-0.3201328218,
-0.1105377153,
0.0581464022,
-0.1372379214,
-0.0098226992,
0.0238347631,
0.1549569219,
-0.1817224026,
0.1316392869,
0.0915517509,
-0.173620984,
-0.0809654668,
-0.0455806404,
0.0590336286,
-0.0585785806,
0.4464206696,
0.1073088795,
0.2670315802,
0.3341661096,
-0.0001084638,
0.1922285259,
-0.0415641516,
-0.3396551609,
0.1110019684,
-0.2360354513,
-0.1122632325,
-0.3174518943,
-0.0924160555,
-0.2043166012,
-0.5365700126,
-0.1827824414,
0.0295535531,
-0.3825771511,
0.3870957494,
0.2981827259,
0.1465834379,
0.1663267314,
-0.1849588752,
0.2282588035,
-0.0572574511,
0.0546518452,
-0.1057086438,
-0.0530425049,
0.595190227,
-0.0774745718,
0.330702424,
0.2777239382,
0.1899046302,
0.0749690682,
-0.4010952711,
0.1116975695,
0.0430989973,
-0.5291083455,
0.0033926794,
0.5172393322,
0.450147897,
0.0541580208,
-0.3280534446,
-0.1335924417,
-0.0303185489,
-0.2640709877,
0.1254834235,
0.3814421594,
-0.1881920099,
0.2486720532,
0.3558287323,
0.08506836,
-0.2625575662,
0.1491753161,
-0.2938212156,
0.3037582338,
-0.0313544869,
0.0603940785,
-0.0548036508,
-0.1423952281,
0.2361637801,
0.2435270548,
0.0689525306,
0.2564908564,
-0.4733612239,
-0.2544717491,
-0.1434989274,
-0.3753200173,
-0.1192740873,
-0.3847774565,
0.1379224658,
0.334066093,
-0.1463012844,
-0.0021053792,
0.2769568264,
-0.0824466124,
0.2340912521,
0.3656902313,
0.2035247087,
-0.106794931,
0.0105767641,
0.0757097676,
-0.1920621693,
-0.3306030035,
-0.4287639558,
0.2712706327,
0.1740672886,
0.0394179411,
-0.3159443736,
-0.1879137903,
-0.1263177842,
-0.2216872275,
0.1088808328,
0.3437949717,
-0.0275605936,
-0.0091707241,
0.0795596987,
0.454248786,
-0.3114555478,
-0.3753988147,
-0.1421311349,
-0.0536271073,
-0.1073865145,
-0.1681631804,
0.084200941,
0.2148738056,
-0.0248489119,
0.0667253211,
-0.0025112974,
-0.1574177444,
0.3517780006,
-0.2013829201,
0.1175369918,
0.0731889829,
0.1900309771,
0.022776939,
0.219159022,
-0.2975354195,
-0.3487256467,
0.0580841266,
-0.2783571482,
-0.2406384498,
0.0743741989,
0.1674491465,
0.3175939322,
0.1445008814,
0.0269592293,
0.7229222059,
0.3423040509,
0.0413439013,
-0.028936008,
0.048603192,
-0.2848920226,
-0.0555129051,
0.2881776392,
0.1628830731,
-0.5802622437,
-0.128179729,
0.2130150199,
-0.322067827,
0.2155667841,
0.2149671316,
-0.1866124421,
0.3718902767,
0.0974324718,
-0.2031816691,
0.7471088171,
-0.2007606924,
-0.3531040251,
0.0390421972,
0.1203384772,
0.11610955,
0.0331044197,
0.069307439,
0.1348559856,
-0.0257895719,
0.2053062171,
0.5336025953,
-0.2365161926,
0.0297368728,
0.044735454,
-0.0627163574,
0.3733543456,
0.4188770652,
-0.0572333224,
-0.2378856242,
-0.0126546845,
0.2349273562,
0.382068783,
-0.1548734009,
0.0942420512,
0.0616838038,
-0.3036396801,
0.1535949111,
0.0307175759,
-0.2157308906,
-0.2534971237,
0.2257354707,
-0.3984827101,
0.2190701962,
0.0171269439,
-0.1806217283,
0.1356499791,
-0.1984939426,
-0.3050171435,
-0.2456896603,
0.1831279099,
-0.1110467315,
0.0207430255,
0.1629616022,
-0.1032502279,
0.0985128582,
-0.1514899731,
-0.080012843,
-0.1922066957,
0.020656893,
0.0212979931,
-0.0716993809,
0.0058191232,
0.2450116724,
-0.1134709567,
-0.2013847381,
-0.0574635044,
-0.0935558453,
0.1642183214,
0.115962632,
-0.1913138032,
-0.2085587531,
0.3557851613,
-0.0733129531,
-0.0767934471,
0.0469789654,
0.0040060473,
-0.1576794684,
0.0584184974,
0.5854185224,
-0.0236306842,
0.2771929801,
0.0699685887,
-0.0590590574,
0.3816145062,
-0.1984384358,
-0.0212120619,
-0.219133094,
0.2769993842,
-0.1963721812,
0.0008179224,
-0.0419193543,
-0.4412219822,
0.1670797914,
0.478967309,
0.1411517709,
0.2277946174,
0.0006078814,
0.3051134944,
0.1892089993,
-0.0941262171,
0.218948245,
0.1907683015,
0.0479791202,
0.2750666738,
-0.1851738989,
0.3741771579,
-0.136242196,
0.0320605896,
-0.1583358645,
0.0158972517,
0.0188287981,
-0.0313220024,
-0.1062834486,
-0.013290707,
0.197589159,
0.1503422707,
0.1288619787,
-0.0227202475,
0.2100905329,
-0.4768430591,
-0.3273684382,
-0.2023429275,
-0.307256788,
0.0733937547,
0.2087885588,
0.2061764151,
-0.4034984708,
-0.1359767318,
0.2662345767,
0.2984234095,
-0.0250987113,
-0.168341279,
-0.175829798,
0.0169532914,
-0.2763133049,
-0.2165088207,
0.179273352,
0.2920337021,
-0.0906245485,
0.2981311083,
-0.3847175539,
-0.2344314605,
0.0706422329,
-0.270739466,
0.0934718177,
-0.2213925123,
0.0547203161,
-0.1595892757,
0.174649477,
0.0280355159,
-0.1556292921,
0.3326017857,
0.2598107755,
-0.1141362414,
0.151902169,
-0.0054757902,
0.1311879307,
0.0371143445,
-0.6562101245,
-0.7368292809,
-0.1958168298,
-0.2545369864,
-0.1273787469,
0.3844643831,
-0.4101476967,
0.0553293861,
-0.1220949739,
0.0513957143,
0.1855768859,
-0.0182750896,
-0.1578797549,
0.130866304,
-0.3448565602,
-0.3513142765,
-0.0799211338,
-0.0584395565,
0.6852424741,
0.0431131311,
-0.1299107373,
0.301107794,
-0.1743428409,
0.0555235967,
-0.131667465,
-0.0169699844,
0.298625052,
-0.0941568986,
0.1243958846,
-0.0248787869,
0.2955362499,
0.1937161833,
-0.2547276616,
0.2401014119,
0.0134680979,
0.3823545575,
0.1917835027,
0.7117959261,
0.2415475845,
-0.0094933063,
0.2683727443,
0.0604744032,
-0.2061231434,
-0.0968331471,
-0.3948803544,
0.0126797436,
0.2939457595,
0.1647690237,
0.263043046,
0.0525143854,
-0.4610901177,
-0.3819299042,
-0.210437879,
-0.3223952353,
-0.4282876849,
0.3108153045,
-0.2334423214,
0.325969547,
-0.1103402227,
-0.1093479916,
0.0415196717,
0.0197686497,
-0.2085599005,
0.2697067857,
-0.2869634628,
0.1213250905,
-0.1540879309,
-0.3814831674,
-0.1956707835,
0.2603662014,
0.0273122303,
0.2598652542,
-0.3271665275,
-0.066776827,
0.2577712834,
0.0129684992,
0.4652479589,
-0.0030341402,
-0.0346146226,
-0.1049608737,
-0.2077573985,
-0.0547854565,
0.0457563512,
-0.1851528138,
-0.0577438213,
0.2859671414,
0.0354526937,
-0.355889529,
-0.3494699895,
-0.193521753,
0.249951452,
-0.4031063914,
0.114970848,
-0.2828822136,
-0.4181503952,
-0.1601432711,
0.3174799681,
0.0429387204,
0.0426312983,
0.0948903039,
-0.3793863952,
-0.2059388459,
0.187684983,
0.0874074399,
0.3865202963,
0.0501489677,
-0.1424169093,
0.2228980362,
-0.0953623652,
-0.2537566423,
0.3669154346,
0.5436351895,
-0.113580659,
-0.5056570172,
0.004433007,
-0.2693909109,
0.4042411149,
0.1753691882,
-0.0647640675,
0.0708354115,
-0.1406499147,
-0.0317508318,
-0.2224085778,
0.2009249181,
0.454495281,
0.2071083933,
-0.6362083554,
-0.5407916307,
0.1689660847,
-0.0918037668,
-0.0340850204,
0.4179159105,
0.1066996455,
-0.3516064286,
0.4943617582,
0.1378393471,
0.8109483719,
-0.290471822,
0.1912714839,
0.0946339145,
0.1352831274,
0.1510022879,
-0.202816233,
-0.089372009,
-0.0699800849,
-0.0036596276,
-0.1287713051,
0.0796495974,
0.2045090199,
0.3761953413,
-0.3296661973,
0.0417621061,
-0.187177971,
-0.5379316807,
0.0161056332,
0.212710768,
-0.2093775868,
-0.1705773622,
-0.2777922153,
0.0850292742,
-0.1662086248,
0.1448354721,
-0.0725890696,
-0.0730763897,
-0.0807036087,
0.0600313097,
-0.1282907277,
-0.0290326737,
-0.3498606682,
-0.1406414956,
-0.1632146388,
-0.5811935663,
0.4124373198,
0.5101850629,
0.3279883265,
0.2206024826,
-0.0412412733,
0.2668743134,
0.1507143974,
0.0529300012,
0.0414051302,
-0.2150479406,
0.1918550581,
-0.0683288127,
-0.3392770886,
0.0616899841,
0.1848705411,
0.2014488429,
-0.1583434045,
0.2512346506,
0.205107525,
-0.1945830882,
-0.1419596076,
0.1469659656,
0.171534881,
-0.0241320264,
0.1722887903,
0.2702117562,
-0.2065199018,
0.1338062733,
-0.2121040821,
-0.2760448158,
-0.1011269763,
-0.3500292003,
0.4322405457,
0.2798496187,
0.4518117011,
0.203809604,
-0.0289553404,
-0.1422359794,
0.3866252899,
0.0002726529,
-0.184775427,
-0.1028969213,
0.3043478429,
0.050091669,
-0.0555191748,
0.2425949872,
-0.2680448294,
-0.1343910545,
-0.0525047891,
-0.3713814914,
-0.0147941094,
0.028418839,
-0.0023854147,
0.0218014512,
0.2537814677,
0.2298241556,
-0.0625416189,
0.6077547073,
-0.2886663973,
-0.0139996707,
-0.0860647112,
0.3429326713,
-0.2048239112,
0.1122022942,
0.1519573927,
0.1797053069,
0.0378548019,
-0.1501204818,
0.0580248982,
-0.3018405139,
-0.176267013,
0.1387176365,
0.0194342304,
0.1557268202,
0.0683935583,
-0.2810461521,
0.0348382741,
-0.1254880875,
0.1631982177,
0.0618571341,
0.1895332634,
0.4650207758,
0.2440119386,
0.1847270727,
-0.2461516857,
0.1380324513,
-0.1916905046,
-0.0349154174,
-0.0188468285,
0.0493477471,
-0.1243450791,
-0.2026321441,
-0.1169791296,
-0.0052632201,
0.1201918721,
-0.1395371258,
-0.1064237282,
0.1043247655,
0.4723400474,
-0.2647072077,
-0.0682182088,
0.2373571098,
-0.0518938377,
0.2495450526,
0.4482099414,
0.178488344,
-0.1083476767,
0.1239553913,
-0.2226426899,
-0.19071199,
0.1714611053,
0.4320273399,
-0.1884320825,
0.2997784913,
0.4383262992,
-0.2500912845,
0.0253663603,
-0.5639306307,
0.1725800186,
0.3753861785,
-0.1560507119,
0.0294164922,
0.2055680901,
-0.1107947752,
-0.0382422544,
-0.0020993885,
-0.2823621035,
0.1047886461,
-0.0546163097,
-0.1241026893,
0.0581859387,
-0.288328141,
-0.3489442468,
-0.0700912997,
-0.0738779828,
-0.0301888194,
0.0473894067,
0.3643286824,
-0.0386862457,
-0.1570385545,
0.0421867743,
0.1285607964,
0.0572405867,
-0.1922878176,
-0.2062017918,
0.0678524598,
-0.0501700789,
-0.1608560085,
0.0136614805,
-0.1735759079,
-0.1209884733,
0.3514297307,
0.0343761668,
-0.0936690792,
0.1517286748,
0.0024564646,
-0.1705124974,
-0.035627611,
0.3725080192,
0.1863262355,
-0.0454810075,
0.0694924295,
0.1435999125,
0.0203578584,
0.0109444633,
-0.3813975453,
0.3755220175,
-0.1406777054,
-0.140124768,
-0.1014748961,
0.3969979286,
0.182282418,
0.3812868297,
0.2599553168,
0.1357993633,
-0.1200288907,
-0.172862336,
0.213891089,
0.005150558,
-0.2243543714,
0.580180943,
-0.1053804532,
0.1787990183,
-0.1761499345,
-0.0352076255,
-0.593629539,
0.0816388726,
0.1742514074,
-0.2596291602,
0.134177655,
-0.2041004002,
0.0519879572,
0.1876396984,
0.366648078,
-0.1925256848,
0.5568440557,
-0.2496998161,
-0.035493806,
-0.2386248559,
0.0994287804,
-0.1303417385,
0.0004956552,
-0.2024938464,
0.2077077627,
0.3562858999,
0.3590288758,
0.1907354146,
-0.2272047102,
0.041161079,
0.3413909674,
-0.2184963226,
-0.0689905435,
-0.4191856682,
0.5319705009,
-0.1182231382,
-0.2942885458,
0.2460459024,
-0.0494288579,
-0.0780366808,
-0.0757017732,
-0.0791643336,
0.3901768029,
0.2521809638,
0.1452970356,
0.2444939464,
0.1770257205,
-0.2114204466,
0.3767091632,
-0.079788968,
0.0217253137,
-0.4029796422,
0.2660863996,
0.2743578553,
0.0599229336,
-0.4111656845,
-0.2919214964,
-0.1245204732,
0.3216746747,
0.014834892,
-0.1471545845,
0.1995239556,
0.0352683067,
0.493817687,
-0.0977457017,
0.3207582533,
0.5601398945,
0.0472072586,
-0.1317712218,
-0.3974680603,
-0.090437226,
0.1011984646,
-0.1274487227,
-0.2460400164,
0.1740920693,
-0.0403297134,
0.0771204308,
0.2812563181,
-0.3595997393,
0.0837731957,
0.3247874379,
-0.1062041819,
0.0207077488,
0.2874742746,
0.3893789053,
-0.1031333432,
-0.2875154316,
0.3336116374,
0.1676432043,
-0.0421697609,
-0.2051715106,
-0.2213902771
] |
https://github.com/huggingface/datasets/issues/2132 | TydiQA dataset is mixed and is not split per language | Hi
thank you very much for the great response, this will be really wonderful
to have one configuration per language, as one need the dataset in majority
of case per language for cross-lingual evaluations.
This becomes also then more close to TFDS format, which is separated per
language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be
really awesome to have.
thanks
On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***>
wrote:
> You can filter the languages this way:
>
> tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english")
>
> Otherwise maybe we can have one configuration per language ?
> What do you think of this for example ?
>
> load_dataset("tydiqa", "primary_task.en")
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA>
> .
>
| Hi @lhoestq
Currently TydiQA is mixed and user can only access the whole training set of all languages:
https://www.tensorflow.org/datasets/catalog/tydi_qa
for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this.
Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot | 145 | TydiQA dataset is mixed and is not split per language
Hi @lhoestq
Currently TydiQA is mixed and user can only access the whole training set of all languages:
https://www.tensorflow.org/datasets/catalog/tydi_qa
for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this.
Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
Hi
thank you very much for the great response, this will be really wonderful
to have one configuration per language, as one need the dataset in majority
of case per language for cross-lingual evaluations.
This becomes also then more close to TFDS format, which is separated per
language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be
really awesome to have.
thanks
On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***>
wrote:
> You can filter the languages this way:
>
> tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english")
>
> Otherwise maybe we can have one configuration per language ?
> What do you think of this for example ?
>
> load_dataset("tydiqa", "primary_task.en")
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA>
> .
>
| [
-0.3552143574,
-0.2323043644,
-0.1865599304,
0.2470621318,
0.305155009,
-0.0820613429,
0.382584095,
0.3362082243,
-0.1914510876,
0.1315777004,
-0.4605716467,
-0.0628385991,
0.0637700111,
0.4531884789,
0.0351660959,
-0.2893123031,
-0.1692790985,
0.098513104,
-0.24431023,
0.0038087622,
0.1467833966,
0.2375837713,
-0.1056774333,
0.0857929662,
0.0535367914,
-0.2327952087,
-0.0800039172,
-0.0570413284,
0.0407806262,
-0.0867751837,
0.4129009545,
0.2202052325,
0.2382608205,
0.3516655266,
-0.000102664,
0.2214548886,
-0.0919179022,
-0.2966122627,
0.086229749,
-0.1834041476,
-0.1013008878,
-0.2273291498,
-0.1310021877,
-0.196181342,
-0.5325118303,
-0.1905818731,
-0.004492336,
-0.345967859,
0.3396966457,
0.2731972337,
0.1980175972,
0.2754566967,
-0.1090015173,
0.159226492,
-0.0758002847,
0.0541529134,
-0.1506027877,
-0.0746899471,
0.4563407898,
-0.052227702,
0.1966010332,
0.2734506726,
0.2479815781,
0.0726509616,
-0.3480714262,
0.0870823488,
-0.0185376946,
-0.4929694235,
0.030890001,
0.6588574052,
0.4845634997,
-0.0275689866,
-0.365047574,
-0.1043432057,
-0.1176581606,
-0.2458571941,
0.1216571182,
0.2802475095,
-0.139641121,
0.3281911612,
0.3242914081,
0.1832718402,
-0.2296530455,
0.1559876651,
-0.3659547865,
0.2008357942,
-0.090799585,
-0.0041713687,
0.0995029509,
-0.1770898253,
0.0782894194,
0.2008457631,
0.0825701579,
0.194704771,
-0.5239602923,
-0.3435079753,
0.0030070404,
-0.4299471676,
0.0216336679,
-0.3731372058,
0.1823281199,
0.3100451827,
-0.2238857597,
-0.020553099,
0.1694972366,
0.0432293117,
0.3170824945,
0.2966724038,
0.1683044732,
-0.0715255514,
0.1160190105,
0.096812211,
-0.1079168692,
-0.246982947,
-0.558966279,
0.1996993124,
0.0861091837,
0.0617254414,
-0.2949923575,
-0.2625299692,
-0.0720700249,
-0.1945291907,
0.1462903321,
0.3152512908,
-0.0117464988,
-0.051672861,
0.0411452465,
0.3388170302,
-0.3357954323,
-0.376080662,
-0.2025690973,
0.0154269049,
-0.0782456025,
-0.1298015267,
0.0722820759,
0.1535935253,
-0.029723959,
0.0980605036,
-0.0132705979,
-0.035359703,
0.2344277501,
-0.1937999278,
0.1276607811,
0.0803779513,
0.1863420159,
0.006922082,
0.1699037254,
-0.3082533181,
-0.2829094827,
-0.0149560412,
-0.139333725,
-0.1989014745,
-0.0089012496,
0.2219691426,
0.178256169,
0.1121171266,
0.0467121303,
0.8153553009,
0.2904576063,
0.0116440933,
-0.0301055387,
0.0303069446,
-0.3385448754,
-0.0141154975,
0.3378117681,
0.17408216,
-0.643666923,
-0.0770445317,
0.3162021935,
-0.3413242102,
0.1643742621,
0.257971853,
-0.184535265,
0.271155864,
0.0388608202,
0.0341992714,
0.5991299748,
-0.1869714409,
-0.3114597201,
0.0683093667,
0.0677101389,
0.0123743489,
0.0292679835,
-0.0617261939,
0.2344319075,
-0.0872585103,
0.099123463,
0.4348346293,
-0.2404679954,
0.0294940695,
-0.0098551335,
-0.120674707,
0.2951942086,
0.353076905,
-0.1855425388,
-0.2928942144,
0.0624752119,
0.2671691477,
0.3282120824,
-0.2255354226,
0.0736837015,
0.1006432399,
-0.267234534,
0.0892195702,
0.0731189698,
-0.233553648,
-0.3995297551,
0.2664974928,
-0.3235734403,
0.2553370893,
0.092784442,
-0.2169159055,
0.1256580204,
-0.2714998126,
-0.1884759665,
-0.2257441282,
0.2386910021,
-0.0153276399,
0.0980969965,
0.1489165127,
-0.1053276956,
-0.0331548005,
-0.2175192684,
-0.1276914477,
-0.2352514118,
-0.0042180871,
0.0115160504,
-0.0245701689,
0.0336271487,
0.205608502,
-0.1945263892,
-0.2773686647,
-0.0686693937,
-0.0554684252,
0.0843355209,
0.1762463748,
-0.1867501587,
-0.0557049736,
0.360755533,
-0.0796793774,
-0.1604561955,
0.0065566045,
-0.0439494662,
-0.134712711,
-0.0142061301,
0.571396172,
-0.0082732113,
0.1534337252,
0.1384377629,
-0.11140012,
0.4390422404,
-0.2118982524,
-0.0669084787,
-0.3066831231,
0.3075171113,
-0.2405391783,
-0.0250524916,
-0.0206582863,
-0.4667215943,
0.2938874662,
0.5241795182,
0.1195418164,
0.2275014669,
0.0260459278,
0.3398801386,
0.1909879744,
-0.0613883771,
0.2351475656,
0.1668779403,
0.1093577072,
0.3604392409,
-0.211672157,
0.3253706396,
-0.1727222651,
0.0418734588,
-0.2282513976,
-0.0006566874,
0.1424651593,
0.0121853277,
-0.0922972932,
-0.1998012811,
0.1816365123,
0.1531480849,
0.1381649524,
0.0138185974,
0.1529121697,
-0.5816357732,
-0.3761357069,
-0.210438922,
-0.2378634959,
0.00631731,
0.248280108,
0.2964660823,
-0.3051171899,
-0.1677929759,
0.3162819743,
0.3392686546,
0.0744112432,
-0.1750605851,
-0.0538644381,
-0.0718546137,
-0.1794318408,
-0.2444063276,
0.2388398349,
0.3472924232,
-0.0135214459,
0.3145675957,
-0.3366046846,
-0.2414301336,
0.0362311602,
-0.3904021978,
0.1810482144,
-0.2720424235,
0.002211397,
-0.146835506,
0.1355129927,
-0.0168854725,
-0.13808994,
0.2735022306,
0.1713930517,
-0.221109733,
0.0685839728,
-0.005578937,
0.1013223678,
-0.1264635921,
-0.6710656285,
-0.5951105952,
-0.2512132227,
-0.1333298534,
-0.2451850325,
0.3593439162,
-0.2196390778,
0.0570240244,
-0.0083576757,
0.0164692048,
0.1544209868,
-0.0893202499,
-0.1075412482,
0.1558356136,
-0.3837590516,
-0.382601738,
-0.1815674603,
-0.0794026405,
0.602825284,
-0.0109306742,
-0.1639606655,
0.1444200277,
-0.2179676741,
0.0313020907,
-0.1359930187,
-0.0464086868,
0.3886909187,
-0.1523512751,
0.0700263008,
-0.0642265603,
0.2101170421,
0.2466240376,
-0.1676120311,
0.1926051676,
0.0213306565,
0.350707829,
0.2853188217,
0.6870269775,
0.2225360125,
-0.0187000539,
0.2611912489,
0.0376181714,
-0.0973069221,
-0.164094463,
-0.3305535018,
0.1045778021,
0.2790670693,
0.2494918853,
0.3200262189,
0.0075698532,
-0.4194731712,
-0.3046821952,
-0.0682021156,
-0.2497382909,
-0.4224902391,
0.2797601819,
-0.1485925168,
0.2589621544,
-0.0807865709,
-0.1201806366,
0.0658531114,
0.0611249134,
-0.1272090822,
0.2753647268,
-0.2356357127,
0.1366680264,
-0.1638369709,
-0.2549641728,
-0.2577464283,
0.2432105541,
0.139321357,
0.1295702755,
-0.4074019492,
-0.0348053984,
0.2553429008,
0.0101974858,
0.4792658091,
-0.0116427029,
0.0334229469,
-0.056810461,
-0.2497849017,
-0.0475509055,
0.0518025309,
-0.2437527627,
-0.2110764235,
0.2786970139,
0.0483306311,
-0.4830059707,
-0.4004103243,
-0.1896266043,
0.221050337,
-0.3180150092,
0.1045719683,
-0.1502378881,
-0.4936716557,
-0.185592711,
0.2497286499,
0.138071537,
0.0737948716,
0.1140900105,
-0.3469449878,
-0.0948422775,
0.0271494165,
0.0746498182,
0.3943497241,
0.0387785472,
0.0003893826,
0.147910133,
-0.0242578946,
-0.3104055226,
0.3375665247,
0.4441434443,
-0.0714128688,
-0.4775907397,
0.0689734891,
-0.2635332942,
0.2257967442,
0.2028360367,
-0.0787838548,
0.0508449264,
-0.1394343674,
-0.0164051279,
-0.2262814194,
0.2664326727,
0.4254595041,
0.2397478223,
-0.4981901646,
-0.3799900413,
0.1270405501,
-0.1661978364,
-0.0188150723,
0.436490804,
0.2236266285,
-0.3434129655,
0.3876723945,
0.1485222131,
0.7250760794,
-0.2446469516,
0.1286917776,
0.1899482012,
0.1315004826,
0.2746508121,
-0.1346434653,
-0.051147189,
-0.0727815703,
-0.0371355228,
-0.0880490765,
0.1354050934,
0.1841683537,
0.3696352541,
-0.2419297993,
-0.0197663214,
-0.0026526076,
-0.3682940304,
0.0759804249,
0.2364654243,
-0.154699713,
-0.2406041026,
-0.2274140567,
0.1521266401,
-0.1377995759,
0.1421950459,
-0.0244999994,
-0.1441589892,
0.0232242197,
0.0637227371,
-0.150936693,
-0.0486020036,
-0.4481599629,
-0.0678944141,
-0.0977499783,
-0.5241670012,
0.4261679053,
0.4877756834,
0.3539228737,
0.1410791278,
-0.0583281182,
0.2123115659,
0.0495105945,
0.1084082425,
-0.0114247082,
-0.2722732127,
0.2864251435,
-0.1215188131,
-0.2456295043,
-0.0700951964,
0.2272703052,
0.1699276567,
-0.058795765,
0.1454829425,
0.0873055235,
-0.1410284042,
-0.0046755369,
0.1079626083,
0.1413408369,
-0.0187477749,
0.2128383666,
0.1345557719,
-0.1931187809,
0.0653738678,
-0.1284160018,
-0.1850830466,
-0.0785556138,
-0.2814275622,
0.3756263256,
0.2322544754,
0.338427484,
0.3050632775,
-0.0658048242,
-0.1704980135,
0.3018070459,
0.0218591187,
-0.2949539125,
-0.0365002975,
0.2810055912,
0.0227461047,
-0.0240750276,
0.303606391,
-0.2841654122,
-0.0699388459,
-0.0845457539,
-0.2926841378,
0.0099826083,
0.0420369916,
-0.1245798394,
0.1054036245,
0.277107954,
0.339100033,
-0.1311745048,
0.5737300515,
-0.3698702157,
0.0058861696,
-0.056549944,
0.2760067582,
-0.1036485806,
0.0499209464,
0.2413436174,
0.1679943204,
0.0667529479,
-0.0381920412,
-0.0351048745,
-0.3488070369,
-0.1829793006,
0.1007537395,
0.0071055191,
0.1759008616,
0.1313995868,
-0.1661436111,
-0.0925510526,
-0.1509744674,
0.2855467796,
-0.0105732875,
0.110922128,
0.4425670207,
0.1738985926,
0.1973275393,
-0.1370545477,
0.0630763248,
-0.0370741226,
-0.0110817263,
-0.0142127229,
0.0821503028,
-0.1756985039,
-0.2209682167,
-0.0653031841,
0.0966947302,
0.1255739331,
-0.1968712807,
-0.1459977478,
0.1183370948,
0.3806867003,
-0.1864888817,
0.0730318576,
0.019579662,
-0.0736096352,
0.1659243852,
0.3901278973,
0.2354633063,
-0.0950924754,
0.0966484174,
-0.1705890894,
-0.1390214413,
0.2327311635,
0.4411736429,
-0.1391788274,
0.297532618,
0.5234043598,
-0.2016006112,
0.023544699,
-0.5701319575,
0.1358401626,
0.3579996228,
-0.2482925206,
0.0147583736,
0.2565578818,
-0.158022359,
0.0489179641,
-0.0746177137,
-0.3017636836,
0.0902374759,
-0.1508255154,
-0.0031720223,
0.1290090382,
-0.4052054882,
-0.3348172307,
-0.0826360285,
-0.1171635389,
-0.0509094298,
0.029620653,
0.3479804993,
-0.0709968507,
-0.1315668225,
0.0349302366,
0.1996857375,
-0.0084867757,
-0.1756474674,
-0.2219953388,
0.0693949386,
-0.0239415858,
-0.074099429,
-0.0412873998,
-0.1026531011,
-0.0720539466,
0.2207168937,
-0.0475665964,
-0.1042254418,
0.0458889976,
-0.0511511974,
-0.1356991827,
0.0019164402,
0.4835407138,
0.2026077509,
-0.086156927,
-0.0192563552,
0.2933413088,
0.0328772068,
-0.1085209846,
-0.2172895223,
0.3303786814,
-0.2242422104,
-0.0797752738,
-0.0526934564,
0.4048779607,
0.1722881645,
0.2607541084,
0.2372877151,
0.1530281901,
-0.1554992944,
-0.1858928502,
0.1608017236,
0.0239322316,
-0.1835129559,
0.4393491149,
-0.0966398418,
0.3170114756,
-0.2066840231,
-0.0554379299,
-0.5749289989,
0.102712974,
0.1962305307,
-0.2680196166,
0.1372487694,
-0.1810086817,
0.1022188216,
0.090945065,
0.4181430042,
-0.1886615306,
0.3962568641,
-0.1188273281,
-0.0018163999,
-0.1924288571,
0.1012449339,
-0.0004210832,
0.1354100406,
-0.2290120721,
0.2973603606,
0.4049985707,
0.3552606404,
0.1729691625,
-0.2654717267,
0.0930187032,
0.2175477594,
-0.2079219967,
0.0469516702,
-0.4969524145,
0.4309386909,
-0.0962750316,
-0.215531826,
0.2567343414,
-0.0382613949,
-0.0408002362,
-0.0768250301,
0.0407431349,
0.3610334694,
0.0791588947,
0.0091053797,
0.2970997989,
0.1525090486,
-0.1799484938,
0.3189997673,
-0.0694285557,
-0.0266433805,
-0.5007230639,
0.2509755194,
0.262211144,
0.1316748112,
-0.3571839929,
-0.3711140752,
-0.1261773109,
0.3362700939,
0.0409441218,
-0.1161233038,
0.2225253135,
0.0758976638,
0.4533269107,
-0.1562906057,
0.3627396226,
0.6081725955,
0.0636257902,
-0.1379100531,
-0.3992078304,
-0.231400311,
0.1343282461,
-0.1640173793,
-0.1833182722,
0.2519249916,
-0.0357956663,
0.1729255468,
0.1860667467,
-0.4305517077,
0.1040732116,
0.2373618186,
-0.1121478677,
-0.0187771711,
0.3154479861,
0.2885212302,
-0.0782675967,
-0.278344363,
0.276237607,
0.264361769,
-0.0876063257,
-0.1760576218,
-0.2279145271
] |
https://github.com/huggingface/datasets/issues/2131 | When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object | Hi ! Thanks for reporting
I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker.
I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue | version: 1.5.0
met a very strange error, I am training large scale language model, and need train on 2 machines(workers).
And sometimes I will get this error `TypeError: 'NoneType' object is not iterable`
This is traceback
```
71 | | Traceback (most recent call last):
-- | -- | --
72 | | File "run_gpt.py", line 316, in <module>
73 | | main()
74 | | File "run_gpt.py", line 222, in main
75 | | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"])
76 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset
77 | | use_auth_token=use_auth_token,
78 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare
79 | | self.download_post_processing_resources(dl_manager)
80 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources
81 | | for split in self.info.splits:
82 | | TypeError: 'NoneType' object is not iterable
83 | | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2)
84 | | Traceback (most recent call last):
85 | | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
86 | | "__main__", mod_spec)
87 | | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
88 | | exec(code, run_globals)
89 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module>
90 | | main()
91 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main
92 | | sigkill_handler(signal.SIGTERM, None) # not coming back
93 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
94 | | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
```
On worker 1 it loads the dataset well, however on worker 2 will get this error.
And I will meet this error from time to time, sometimes it just goes well. | 37 | When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object
version: 1.5.0
met a very strange error, I am training large scale language model, and need train on 2 machines(workers).
And sometimes I will get this error `TypeError: 'NoneType' object is not iterable`
This is traceback
```
71 | | Traceback (most recent call last):
-- | -- | --
72 | | File "run_gpt.py", line 316, in <module>
73 | | main()
74 | | File "run_gpt.py", line 222, in main
75 | | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"])
76 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset
77 | | use_auth_token=use_auth_token,
78 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare
79 | | self.download_post_processing_resources(dl_manager)
80 | | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources
81 | | for split in self.info.splits:
82 | | TypeError: 'NoneType' object is not iterable
83 | | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2)
84 | | Traceback (most recent call last):
85 | | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
86 | | "__main__", mod_spec)
87 | | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
88 | | exec(code, run_globals)
89 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module>
90 | | main()
91 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main
92 | | sigkill_handler(signal.SIGTERM, None) # not coming back
93 | | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
94 | | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
```
On worker 1 it loads the dataset well, however on worker 2 will get this error.
And I will meet this error from time to time, sometimes it just goes well.
Hi ! Thanks for reporting
I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker.
I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue | [
-0.180610165,
-0.4468093514,
0.0129235955,
0.5495147109,
0.11248523,
-0.0091341212,
0.5815146565,
0.2967012227,
0.1129245311,
0.2367111444,
0.3380287588,
0.0173763577,
-0.1162156761,
0.1675734371,
-0.0424106121,
-0.2821591496,
-0.1764216423,
0.0434676856,
-0.2278055698,
-0.214592576,
-0.3433730602,
0.1396665126,
-0.1313172877,
0.1889919639,
-0.5063359141,
-0.4234542847,
-0.1063822731,
-0.0327260941,
0.2665306628,
-0.2152223587,
0.2046148628,
-0.3352004588,
0.1856164485,
0.8994959593,
-0.0001186402,
0.14836061,
0.1208229437,
0.0624538064,
-0.144217521,
-0.4792485535,
0.0836344212,
-0.3793366253,
0.0438947752,
-0.372520566,
-0.1640229821,
-0.1153088138,
0.2508278787,
0.0683692843,
0.0381290093,
0.2097055912,
0.1652570814,
0.337975949,
0.1185290217,
-0.0910866633,
-0.1230918914,
-0.0781753734,
-0.1245810911,
-0.0570694134,
-0.1463325471,
0.2151984274,
0.1408526748,
0.3001520932,
0.0600434877,
0.0522123612,
-0.0947403908,
-0.0429642685,
0.568238616,
-0.4400096238,
0.0403890982,
0.343416959,
0.0855883956,
0.0078647155,
-0.2014049888,
-0.1323599815,
0.1542742699,
-0.1182245314,
0.1847371012,
0.3629116416,
-0.05310506,
0.1500604004,
-0.130046621,
-0.0676269457,
-0.2308021635,
0.0534001775,
-0.1115097031,
0.0901556537,
-0.1316499412,
0.4046879113,
0.1569738686,
0.0425375514,
0.144668445,
-0.1151812673,
0.1561762989,
0.0373052917,
-0.4768413007,
-0.2667486072,
0.084166348,
-0.1505969316,
-0.1545931846,
-0.1207952723,
0.1211866736,
-0.179251492,
-0.1328290701,
0.3402726948,
0.2215323895,
-0.2089682817,
-0.0280372091,
0.0667776391,
0.1572731286,
-0.144043237,
-0.344897747,
0.0656589717,
-0.1234234795,
-0.3975609243,
0.0672158971,
0.3313923776,
0.5509838462,
0.0814337581,
-0.2558072507,
-0.3254729211,
-0.4844891727,
0.0634807572,
0.1591974646,
0.0715999752,
-0.0215618294,
0.7668600082,
-0.1380041391,
0.1425332576,
-0.2015487403,
-0.4433030486,
-0.1509105563,
0.2117179632,
-0.2316481769,
0.0988812819,
-0.0608812012,
0.0209043473,
-0.0537676327,
0.0669299364,
0.0066236043,
-0.067547515,
0.254997462,
-0.6412527561,
0.0265085474,
0.2047789842,
0.1866110563,
0.1211188436,
0.1911761612,
-0.0848484635,
-0.1786594838,
0.0570020564,
-0.4990596771,
-0.2644453049,
-0.043509122,
0.071315296,
0.1389943361,
0.2218966782,
0.0635314733,
0.1517141312,
0.5338413715,
-0.0446070991,
0.0414085947,
-0.3242381215,
-0.3369708955,
-0.3063195646,
-0.3215332329,
0.4540400803,
0.0853606462,
-0.0651733726,
0.2063796967,
-0.0580662638,
0.3713685274,
0.4545201659,
0.0005991639,
0.0837390721,
-0.1234112307,
0.0138953775,
0.2660520673,
-0.239911586,
0.0215653628,
0.4763099551,
-0.4028794467,
0.0788716078,
0.3922179639,
-0.0496554449,
-0.2771502435,
-0.0372722037,
0.1895169169,
0.3423951566,
-0.0628310591,
0.0093414271,
-0.2271397263,
-0.0792751685,
0.4815945327,
-0.1569289118,
0.3270475268,
0.0703963935,
-0.0276754815,
-0.1134375706,
0.2275328338,
-0.347068429,
-0.0631327778,
0.1020135805,
0.2154043615,
-0.1462946683,
0.0686947182,
-0.1687207967,
-0.2463462204,
0.0542071387,
-0.1364752054,
0.1516543478,
0.2225849181,
-0.0803483278,
0.234983176,
-0.2266498655,
-0.2233918011,
0.0553605296,
0.0752303749,
0.3720036745,
-0.2636728287,
0.1632022858,
0.0245805234,
0.0021456403,
-0.390448302,
-0.2759418488,
-0.1010344699,
0.2078496814,
-0.0291658957,
-0.1070366055,
-0.0839111432,
0.2642500103,
0.4416569173,
-0.2129090726,
0.2406531274,
0.1404102445,
-0.1080904976,
0.0494446121,
-0.0524049588,
0.1803079396,
0.3580483198,
-0.1872617155,
-0.1409418732,
0.2008779198,
0.134698838,
-0.1484242529,
0.3699089885,
0.4953469038,
0.0905212611,
0.2097525448,
0.0449271984,
0.0786123201,
0.1215229928,
0.0240476783,
-0.0164276809,
0.0827937797,
0.0056441901,
0.1275957525,
-0.1125175804,
0.0920484588,
-0.647639513,
0.0956626162,
0.8060957789,
0.1173805594,
0.4062266052,
0.0086445613,
0.1291958541,
0.0277587492,
-0.154480949,
-0.0285173822,
0.4229155481,
-0.0422858931,
0.2465562224,
-0.0392973684,
-0.0626193285,
-0.1413778514,
0.0522279926,
-0.1825520843,
0.7166270614,
0.2830474079,
0.1327205449,
-0.0022644866,
-0.0056482847,
-0.2538820207,
0.2736296952,
0.4505276978,
-0.3334291875,
0.3502020836,
-0.3673316836,
-0.0159905683,
-0.2581937909,
0.2661479712,
-0.0938297361,
-0.024577314,
-0.2472632378,
0.1864037961,
0.1503834873,
0.1223214492,
0.3589178622,
0.1457659751,
0.1071993858,
0.2317181379,
0.2299325019,
0.0111649511,
-0.2177335769,
-0.0725533888,
0.2922357917,
-0.3358940482,
0.0090648746,
-0.1226597801,
-0.5176733136,
-0.3514283299,
-0.0638252795,
0.0656745806,
0.0135681154,
0.0029365344,
0.2864254117,
0.0785259306,
-0.0120969163,
-0.0619989038,
0.1552059203,
-0.4553326964,
-0.1128281802,
0.2476547658,
-0.3855649233,
0.1096368432,
-0.1286381632,
-0.2845998406,
-0.2985165119,
-0.1682435721,
0.6335544586,
0.0361014791,
0.4326667786,
0.1627974659,
0.1140321419,
0.1608609408,
0.1367163062,
0.0956066847,
-0.1563303769,
-0.4536630511,
0.1469082534,
0.0463184938,
-0.2639673054,
-0.0813128352,
0.0779389814,
0.3259365857,
0.19401595,
-0.3016443849,
-0.2473766804,
0.0698909685,
-0.007389172,
-0.0802941397,
0.0436058752,
0.3106845617,
-0.0817476884,
-0.0795649663,
0.1049369276,
0.1663467735,
0.130856052,
0.206145376,
0.2597743869,
0.215860039,
0.2530965805,
0.2540293038,
0.5351133943,
0.2206317931,
-0.0674460009,
0.2258818001,
-0.1522954851,
-0.0044800364,
0.1564442515,
-0.359461695,
0.147336781,
-0.2330270112,
-0.1332303286,
-0.0466545038,
-0.441717267,
-0.5093243122,
-0.1664877683,
-0.173830986,
-0.3591647744,
-0.1715165973,
0.2290108949,
-0.2058068961,
0.3189738095,
-0.2008253485,
-0.066331625,
-0.2482414991,
0.0208235625,
-0.0461252816,
0.2327269018,
-0.0202389266,
-0.0802516565,
-0.4130920768,
-0.5657937527,
-0.0441711359,
0.2615534961,
0.011374657,
0.4401904643,
-0.1060475707,
0.0193146262,
0.1748598069,
-0.0069008111,
0.8240171671,
-0.2342890799,
0.0243170541,
0.2899028063,
-0.5752906203,
-0.084798269,
-0.0399571583,
-0.2760018706,
0.4216434658,
0.5022407174,
0.3049765825,
-0.1920863986,
-0.317081362,
0.2327641994,
-0.1730203927,
-0.1513354182,
-0.0994566679,
-0.2681994438,
-0.1267524958,
0.0031301498,
0.0991749614,
0.0423635803,
0.4196646214,
-0.4223133028,
-0.0110671157,
-0.359400481,
0.1035602912,
0.0992429629,
0.0183776431,
-0.0220204033,
-0.0157830045,
-0.2933521867,
0.0666065663,
0.4181610048,
0.3456066847,
0.1352539808,
0.1237928048,
-0.2220497876,
0.386635989,
-0.2193986326,
0.399853766,
0.4414465427,
-0.068904683,
0.2593992352,
0.0464295745,
0.3088768125,
0.0099546658,
-0.2134133726,
0.5013944507,
0.0964828804,
-0.3567268252,
-0.4405710101,
0.2417842746,
0.2308722138,
0.1443293542,
0.075316295,
-0.313164264,
-0.0920787677,
-0.0364316665,
-0.0348869972,
0.8628456593,
0.1303192824,
0.1319112629,
0.2637450695,
0.0648117065,
0.719936192,
-0.4422341883,
0.3917689323,
-0.2568787336,
-0.1663819849,
-0.1640912443,
-0.0817659944,
0.3914417624,
0.2064570636,
-0.2381404042,
0.3658713996,
-0.1030777097,
-0.1616391391,
-0.1580772102,
0.1148327664,
-0.2505120337,
-0.0613889135,
-0.1496534944,
-0.0496144705,
0.0577676259,
0.1704438925,
-0.147006005,
-0.3725346923,
0.3594645858,
-0.0050592972,
-0.2195948511,
-0.0886684209,
-0.3248028457,
0.2875602245,
0.412496537,
-0.4293587506,
0.237770915,
0.2076030821,
0.3087034822,
-0.260623157,
-0.1220986769,
-0.2071408778,
-0.202477321,
-0.0072196652,
-0.2808031738,
-0.1926894784,
0.5347768664,
-0.1014087498,
-0.5287345052,
0.2500191331,
-0.0031345082,
-0.004327903,
0.0241580699,
0.0992156789,
-0.4970460236,
0.2518161237,
-0.0458341949,
0.1943406612,
-0.1678856015,
-0.2178985626,
0.0715451986,
-0.0830305591,
-0.6331080794,
-0.005031649,
-0.0159772132,
-0.4066501856,
0.1884666979,
0.3562638462,
0.5661860704,
0.4459778965,
0.4622503519,
0.3645581901,
-0.0835474059,
-0.3533833921,
0.2155153453,
0.343752265,
-0.3580477834,
0.2269233316,
-0.0134583451,
0.0545987301,
0.0333128273,
0.1038374752,
0.0438439846,
0.5941752195,
-0.1677764803,
-0.2888614833,
0.1138360873,
-0.1244141236,
-0.2211531401,
-0.1914725006,
0.0318113342,
0.4678593874,
0.3696143925,
0.1560431868,
-0.2256105989,
0.183211565,
-0.6862772107,
0.1564276665,
-0.2976359129,
-0.1875285208,
0.0351729915,
0.2281866074,
0.0112760179,
0.0311040655,
-0.0151207671,
-0.1135714799,
-0.1084552258,
0.1914587766,
0.0762739331,
0.2077237219,
0.2191425264,
0.0013005522,
-0.2629857361,
0.0861248747,
0.103146106,
0.0263841711,
-0.0127823241,
0.3347822726,
-0.1318498999,
0.1470618248,
-0.0516889915,
0.0160817429,
-0.166354984,
-0.0264434554,
0.068420805,
0.2599076629,
0.268132776,
0.1051006094,
-0.2012490332,
-0.0905272663,
-0.169020012,
0.1310454607,
-0.0031565779,
-0.3379545808,
-0.1537527889,
-0.0610397384,
-0.1287469864,
0.0786518008,
-0.2081064731,
0.1642846167,
-0.0082762334,
0.0751905292,
-0.1720367521,
0.0160495862,
0.3984803855,
0.0401431657,
-0.0545232333,
0.3129579723,
0.1964583844,
-0.0147884069,
-0.2255486846,
0.0989416316,
-0.1798563153,
-0.5493918657,
0.1987307519,
0.0789993852,
-0.1725549996,
0.1692459881,
0.2340235114,
0.1941284984,
-0.0107983435,
0.1986323148,
0.1553976089,
0.2505666614,
0.0114463158,
0.0647499189,
0.187462002,
-0.3419452906,
-0.1851766855,
0.1027245075,
-0.1878155917,
-0.0758212134,
-0.2439708561,
0.106194675,
-0.3426973224,
-0.2329876721,
-0.1344068199,
0.1067933217,
-0.3716106415,
-0.0758962184,
-0.4822937846,
-0.0338254906,
-0.2222222239,
-0.0620704666,
0.1131882519,
0.0784954801,
0.363797009,
0.2248344719,
-0.1549203843,
-0.301143676,
0.0974636227,
0.1635615826,
0.2713882327,
-0.2227361649,
0.0118842646,
0.1044879854,
-0.0192579515,
-0.2971430719,
0.4542776048,
0.3316579461,
0.341049999,
-0.2278932631,
-0.1521067619,
0.1208092198,
-0.1401267797,
0.0169089194,
-0.0865084305,
0.1232794449,
0.2424124628,
0.2065564692,
0.0007888799,
-0.050825458,
0.3772301674,
0.1411719918,
0.0152803296,
-0.3947428465,
0.4997740984,
-0.3795515895,
0.0404789969,
-0.0975970924,
0.3181052804,
-0.5076957345,
0.114727281,
0.6606998444,
-0.2035871893,
0.2390410006,
0.0054495912,
0.0247680396,
-0.1507309228,
0.4882810116,
0.0556454621,
-0.0264800284,
-0.290471077,
0.1216705069,
-0.1169743612,
0.5847659707,
-0.3455073833,
0.2629433274,
-0.0381881408,
0.6029921174,
-0.0786873847,
-0.0741020888,
0.1273525506,
0.1574848741,
0.1948416382,
0.3991423845,
-0.4147590697,
-0.2249617726,
-0.3403023183,
-0.1307874173,
0.1633240432,
-0.3058510423,
0.1660936773,
-0.1133300737,
0.0163281038,
-0.0395119004,
0.0059384787,
-0.2246299535,
0.020087203,
0.2809775174,
0.1872591227,
0.2327941954,
0.009996566,
-0.0424147733,
0.0101230275,
-0.1967512965,
-0.2997449338,
0.5487576127,
0.0568800196,
0.0997760594,
-0.1939613819,
0.2067075074,
-0.1505219638,
0.2600654662,
-0.0193501227,
0.0963504463,
0.0100754322,
0.261603266,
-0.0259610675,
-0.0744596198,
0.0825507343,
0.080627948,
0.1278177351,
-0.2672427297,
-0.1667000502,
-0.095861651,
0.3261490464,
-0.3049180508,
-0.3767561615,
-0.487421006,
0.3538345397,
0.0580238104,
0.141758889,
-0.4789167047,
-0.1494802833,
0.3774830401,
-0.068473652,
-0.3998477757,
-0.0441301912,
-0.0841488987,
-0.1253634542,
0.0760098025,
-0.2112777531,
-0.1244161725,
-0.2668004036,
0.1230951026,
-0.3076859117
] |
https://github.com/huggingface/datasets/issues/2130 | wikiann dataset is missing columns | Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann
where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq | Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq | 32 | wikiann dataset is missing columns
Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann
where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq | [
0.003892977,
-0.438793391,
-0.0947453976,
0.2763384283,
0.3197287917,
0.1833391488,
0.3208169639,
0.0807618052,
0.0531266369,
0.257009089,
0.0109931706,
-0.2380872071,
0.070310466,
0.4205825925,
0.3480724394,
-0.82036376,
0.1133003384,
0.3876081705,
-0.2301767617,
-0.1201592609,
-0.2421351671,
0.3445685506,
-0.4137237072,
-0.1726711839,
-0.2490341216,
-0.1022257507,
-0.151345551,
-0.0896823108,
-0.0339643136,
-0.0308076274,
0.3040225804,
-0.2934643626,
0.301479429,
0.1141968071,
-0.0001120765,
0.1079273671,
0.0134252654,
-0.1143511236,
0.0769588053,
0.2684705853,
-0.03056941,
-0.321763128,
0.0123329926,
-0.3968163431,
-0.3583129644,
-0.1827053726,
-0.1768915504,
0.1160641611,
0.1129544973,
0.2176228315,
0.1882001609,
0.7334352732,
0.3261471093,
-0.0215929896,
0.0738953054,
-0.2582476437,
-0.2434684634,
-0.3627046049,
0.2368401587,
-0.098885119,
0.239765197,
0.3428515196,
-0.0141156046,
-0.1902943999,
0.2873826325,
0.1529559642,
-0.2721421421,
-0.5023328662,
0.2927864194,
0.7253636718,
0.8114994168,
0.0970162749,
0.1451939642,
-0.1972337067,
0.0165990479,
0.0472853258,
0.0804862007,
0.1341170669,
-0.019667929,
0.2952950299,
-0.0729851797,
-0.0781829655,
-0.2694768608,
0.2836083472,
-0.3395297527,
0.3484337628,
-0.0432370566,
-0.0545717254,
-0.1588186771,
-0.0111131817,
-0.0922964215,
0.1739280969,
0.0884337351,
0.1710795462,
-0.3939895928,
-0.2244475484,
-0.0804373324,
0.2654080987,
0.1304721087,
-0.0493793674,
-0.256734848,
-0.263761729,
0.0772432834,
-0.0034746889,
-0.0845328122,
0.0864010826,
-0.0976360664,
0.1400863975,
0.0339220949,
0.1944783777,
0.1251030117,
-0.1460153311,
-0.188866362,
0.0409029685,
-0.1001604572,
-0.2774036825,
-0.1225065067,
0.0023714132,
0.1778183877,
0.0947624743,
0.1200575903,
0.0799391493,
0.0292141438,
0.2910701931,
-0.0344536901,
0.5733725429,
-0.0184940435,
0.0801494345,
0.0728821456,
-0.1036668494,
-0.3151018918,
0.1644502729,
0.1746061742,
0.0665311888,
0.1458103955,
-0.2616467476,
0.449447006,
0.0023810016,
-0.167914167,
0.2190254629,
-0.0388754867,
0.0814907476,
-0.0857504308,
0.5386385322,
0.0207413342,
0.0401841402,
0.1553892046,
0.0984410495,
-0.0684101582,
0.0521578901,
-0.3235919178,
-0.0773140416,
-0.37692976,
0.1812784225,
-0.0029472187,
-0.3248752654,
-0.1078693122,
0.1064668745,
0.075522393,
-0.232173577,
0.2516083419,
-0.0360103771,
-0.1220532805,
-0.1593221724,
0.4439872503,
-0.0531386323,
-0.3692471683,
-0.2977437079,
0.27552104,
-0.1768391579,
0.2126061916,
0.386051029,
0.1058010384,
0.1704321355,
-0.0902445987,
0.4356479347,
0.2490223944,
-0.229272604,
-0.2811493874,
-0.1234221458,
0.1889757216,
0.1803059727,
0.0494903363,
-0.0701630861,
0.3523242176,
0.1053996161,
-0.0712118074,
0.2468883097,
-0.154971227,
0.020838907,
-0.0559573472,
-0.2708707452,
0.1583359689,
0.1909638792,
0.3186044097,
0.1195720583,
-0.2315595746,
0.141223833,
0.2170291096,
-0.3112367392,
0.0945756808,
0.3153350353,
0.1052560806,
0.2595468462,
0.1662834734,
-0.1629926562,
-0.7005293369,
0.1809138805,
0.1923985034,
0.1310078949,
0.2885636687,
-0.1591426581,
-0.0884894356,
-0.1614854485,
-0.1323768646,
-0.1435147226,
0.1459514797,
-0.1655986309,
0.0570094399,
0.2606686056,
-0.2820784748,
-0.2286590487,
-0.3409324586,
0.1114450246,
-0.1707022935,
0.2989852726,
-0.0085167559,
0.1448130757,
0.0420193039,
0.3530826569,
0.0917264819,
0.0065469411,
0.2474445105,
0.0339430384,
-0.3063531518,
0.1176374108,
-0.164291501,
0.326320231,
0.2306767553,
-0.2691121399,
-0.2675724328,
-0.1782522947,
-0.0008583656,
-0.3207310736,
-0.0369401537,
0.0625262335,
0.0201670919,
0.226379618,
0.0898457691,
0.3009007871,
0.0966819599,
-0.2566102743,
0.0848553479,
-0.2246658206,
0.1342729032,
-0.570014298,
0.2383300662,
-0.1081244722,
-0.5302510262,
0.1398992687,
0.5346274972,
-0.1347516775,
0.2633164823,
-0.0109233996,
-0.3155103922,
0.1827804446,
0.1891464293,
-0.0476073436,
0.1203834936,
0.1958454847,
0.2573875785,
-0.0189909283,
0.0233981702,
-0.2002916038,
0.1523867995,
-0.1309060603,
0.2438167632,
0.2309398353,
-0.0889770463,
0.143401742,
-0.1445160359,
0.3678421974,
-0.1947110295,
0.3326030672,
-0.1929795146,
-0.2458500862,
-0.2023403496,
-0.2728340924,
0.1774608344,
0.0141585805,
-0.0482392237,
-0.2429254651,
-0.0138836764,
-0.0451259464,
0.077334635,
0.1221310943,
-0.1163482592,
0.275680393,
-0.0069526602,
0.1026894823,
-0.4535601139,
-0.0234318748,
-0.2051279545,
0.1776484251,
0.0050373944,
-0.1009426713,
0.1653716117,
-0.2824864089,
-0.0113938367,
-0.4114504755,
-0.3987840712,
0.1531443,
-0.2570132315,
-0.1782177091,
0.22224769,
0.7760817409,
-0.1808806956,
-0.1068492681,
0.2203478068,
-0.3107442856,
-0.1329945773,
0.0850413144,
-0.2469328791,
-0.027114369,
-0.1479099095,
-0.0456992984,
-0.2469080091,
-0.0544398911,
0.0063212086,
-0.1434307545,
-0.0331376344,
0.0108497636,
-0.0731808618,
0.2382523865,
0.0096794236,
-0.0223692302,
-0.1764642,
-0.3380379975,
0.4421737492,
-0.1514672786,
-0.4279811978,
0.1477311999,
-0.1339938045,
0.4414249063,
0.1018830165,
-0.4725304842,
-0.224413991,
-0.0765633285,
0.1601534188,
-0.033757247,
0.0460725054,
0.5994673967,
-0.2907128334,
0.1441126317,
-0.3438049555,
0.2465125471,
-0.1237942949,
-0.2274720967,
0.3126410544,
-0.1842317581,
0.2806174159,
0.1196216047,
0.4372524321,
0.13403593,
0.2335829437,
0.1642502844,
-0.3273263872,
0.3505508006,
-0.0554362163,
-0.1419946104,
0.3357428014,
0.056906607,
0.3127403259,
0.3495138288,
0.0804629922,
-0.1397723407,
-0.1895392388,
-0.1385489106,
-0.325361222,
-0.0360934846,
0.005671558,
0.3305632472,
0.3602114916,
-0.0667296201,
0.1412795037,
-0.0958655477,
-0.296445787,
0.1164375171,
0.4351156056,
0.1846984774,
0.0768581927,
-0.2016157955,
0.0425064154,
-0.5353745818,
-0.1199575439,
-0.0783549324,
0.1430699229,
-0.1610947698,
0.2194125503,
0.0153739965,
0.123908326,
0.5483195186,
-0.4586718678,
-0.2511320114,
-0.1514676809,
0.0694245994,
-0.2658078969,
0.1500851214,
-0.1759613156,
-0.6598421335,
0.06332165,
0.5552468896,
-0.1945562959,
-0.0761139989,
0.4672191441,
0.1109072119,
-0.2404936254,
-0.3276115656,
-0.2175739259,
-0.5198203921,
-0.0598059073,
-0.296689719,
0.2284465581,
0.1514731199,
0.081274949,
0.0186426528,
-0.1038898751,
0.0722676963,
-0.0559472591,
0.1264347583,
0.1970185041,
0.2099636197,
-0.1462201029,
0.3026446104,
0.1411449313,
0.022879526,
0.1872924268,
-0.1113172472,
-0.266818583,
-0.0893916711,
-0.1148818955,
0.3527824283,
-0.0293581486,
-0.0428979993,
0.1596740037,
0.1022233814,
0.1611076295,
-0.1556324959,
0.1408910006,
0.4840655029,
0.0306434147,
-0.3259814382,
-0.2197623551,
0.3390574157,
0.0310102794,
0.277233094,
0.3194665015,
0.6091131568,
-0.2198727727,
-0.0713716075,
0.0882643759,
0.6027915478,
-0.0808496922,
0.2150680125,
0.6387687325,
0.1078477874,
0.5061591864,
-0.173847571,
0.081375733,
-0.1399828494,
-0.2035211325,
-0.2088132054,
0.1178932786,
0.1535356641,
-0.1363837868,
-0.1380755156,
0.2302027494,
0.19454059,
0.6590549946,
0.2112264335,
0.020619344,
0.1981078982,
-0.3410157859,
0.003791203,
0.0509997904,
-0.1828630865,
0.2289461195,
-0.1815906614,
0.0274273809,
0.1095734611,
-0.0521215014,
-0.3887441754,
-0.0467692278,
-0.3028002083,
0.0837234631,
0.2496720254,
-0.4280474186,
0.0260979049,
0.5828903317,
0.291909188,
0.0749519989,
-0.4588285089,
0.3391946554,
-0.2899719775,
-0.1697790027,
-0.105260171,
-0.0187035184,
0.1468975395,
-0.3607317209,
-0.2569968998,
0.08878389,
-0.1979542375,
0.1123602167,
-0.5468315482,
-0.1329648197,
-0.2318889201,
-0.1394216865,
-0.2019575685,
0.0286689196,
0.2051313967,
-0.1704583466,
0.1036361977,
-0.2340831906,
0.0311706197,
0.0023115098,
-0.0145666823,
0.1151170358,
-0.0465862341,
-0.0088065574,
0.1513919979,
-0.1076868325,
0.5726296902,
0.2279132754,
-0.2019623071,
-0.2096695453,
0.1586481929,
0.3235659897,
-0.1113512367,
-0.2232872844,
0.340752691,
0.0636778921,
-0.224364236,
0.4084557593,
0.0545287579,
-0.3415662646,
-0.0959715843,
-0.2599240243,
-0.3298789263,
0.2840158045,
-0.0095753241,
0.0850337148,
-0.0457580909,
0.3730967343,
0.0390126482,
-0.0064164782,
-0.2616870105,
0.0534339435,
-0.152950421,
-0.0701639354,
0.1162127182,
-0.0758846551,
0.2101148367,
-0.0620271042,
0.0646235272,
0.0621432364,
0.1470191032,
-0.1799547672,
-0.1612073183,
0.0971435681,
0.1325246245,
0.0819814801,
0.1157548055,
0.0776537284,
-0.3033303618,
-0.0377340801,
0.2392124385,
-0.0650352687,
0.1242357939,
0.4137264788,
0.2629140317,
0.1006628796,
-0.4023760557,
0.0708326623,
0.0459398255,
0.0502922051,
-0.0766866207,
-0.0175247155,
0.3782874048,
0.0034461648,
0.3644511104,
0.1347177923,
-0.026364712,
-0.0105216214,
0.4533819854,
-0.0718133152,
0.1905424893,
-0.0129269743,
0.0046086558,
-0.1390442699,
-0.1504267901,
0.2139179856,
0.1837686598,
0.1791433245,
-0.3440065086,
-0.0165620893,
0.6128945947,
0.2153344452,
0.0547351986,
0.082641162,
0.0124047594,
-0.2125088274,
-0.082157582,
-0.0622268729,
0.3721990585,
-0.2494949996,
0.1169546247,
0.2945455909,
0.1688921899,
-0.0569905303,
-0.1070456281,
0.0550777689,
-0.1166196987,
0.0124531919,
0.1552192569,
0.1546723098,
-0.3471733332,
0.0896117389,
0.3072936833,
-0.210427627,
-0.1748601049,
-0.1847702265,
-0.1456414759,
0.0071284836,
-0.2843008041,
0.1226410344,
0.2596564889,
-0.17603755,
-0.1146961674,
0.2897742689,
-0.4225585759,
-0.0365372673,
-0.5136741996,
-0.0949564353,
0.4643174708,
-0.0116002029,
0.2184688598,
-0.0701203495,
-0.2975367904,
0.0358337611,
-0.1305197626,
0.0632896572,
-0.1309070736,
0.3346388936,
0.2443823665,
0.0962920263,
0.1649877429,
0.5131889582,
-0.0827158913,
-0.0653144047,
0.1417789906,
0.1540219039,
-0.1301609278,
0.2038575411,
0.042388346,
-0.0868408233,
-0.2127307802,
0.1242758185,
0.1656413376,
0.3661211133,
0.0714525059,
0.2031334341,
0.0916304961,
-0.1607856303,
0.1727116555,
-0.3102757335,
0.0627368316,
-0.252584517,
-0.4314895272,
-0.4790424705,
-0.3664101064,
-0.3255727887,
0.0700911433,
-0.3667892814,
0.439381212,
0.3142423928,
0.1522529423,
0.0496206842,
0.0120734945,
0.0408183113,
-0.0565607212,
0.5336553454,
0.3753234148,
0.0652270764,
-0.0631980151,
-0.5100793839,
-0.4604111016,
0.1406425536,
-0.3310754001,
-0.2809601724,
0.3991976976,
0.0121901417,
0.2246185988,
-0.112097472,
0.0712399632,
0.181888774,
-0.0611513294,
-0.0849650875,
-0.3626081347,
-0.3241229057,
-0.2102885246,
0.157520026,
-0.0781008676,
0.0994560793,
0.3338727951,
0.2336712778,
0.044455342,
-0.0549852885,
0.5272192359,
-0.2992138267,
-0.2561640143,
-0.2594651878,
0.1792294979,
0.4275269806,
-0.2012318671,
0.1252471954,
0.0064843753,
-0.0552083962,
-0.2133352309,
0.2091842145,
-0.0420502312,
0.2689841688,
-0.0863777772,
-0.3895610869,
-0.041673366,
0.0830230936,
0.2297479212,
0.114825733,
-0.2521400452,
0.1560745984,
0.2910844684,
-0.1661325693,
0.5159578323,
0.235243246,
-0.3428995609,
-0.1456559598,
-0.1788382232,
-0.429672569,
0.3856589496,
-0.3516280651,
-0.0709291697,
-0.1147502586,
-0.3248475194,
0.165679872,
0.1717689037,
-0.6097328067,
-0.0852120295,
0.2544308901,
-0.0300877187,
-0.1170116439,
0.2773385346,
0.2003667653,
0.1367272735,
0.0131960325,
-0.1779353172,
0.0776453316,
-0.1768997163,
-0.1311740428,
-0.1422071457
] |
https://github.com/huggingface/datasets/issues/2130 | wikiann dataset is missing columns | Hi !
Apparently you can get the spans from the NER tags using `tags_to_spans` defined here:
https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126
It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors !
The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example. | Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq | 61 | wikiann dataset is missing columns
Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
Hi !
Apparently you can get the spans from the NER tags using `tags_to_spans` defined here:
https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126
It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors !
The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example. | [
0.009602542,
-0.3400488496,
-0.0416718125,
0.2219899148,
0.2957080901,
0.1506407708,
0.346960932,
0.0389458872,
0.0920506716,
0.2753711045,
0.0485684313,
-0.0450658649,
-0.0080624251,
0.3632448018,
0.3476262093,
-0.7035682201,
0.0311786141,
0.2775573134,
-0.1697653383,
0.0125471605,
-0.2386453003,
0.4350679219,
-0.3131060004,
-0.1572515666,
-0.4427960515,
-0.017623242,
-0.2585736811,
-0.0887654126,
-0.000061985,
-0.2098567337,
0.3393802345,
-0.2286443859,
0.2572216988,
-0.1111911535,
-0.0001127702,
0.0135667799,
0.0615052134,
-0.0787708312,
0.0453727394,
-0.084139429,
0.0922176242,
-0.2578551471,
-0.0348371901,
-0.2561399341,
-0.3284048438,
-0.0753949657,
-0.1517592072,
0.0951741934,
-0.0247505177,
0.2180272192,
0.1504639536,
0.7661393285,
0.1667827666,
-0.0779860616,
0.3054935634,
-0.1118118763,
-0.3342805207,
-0.2091897428,
0.1571555585,
-0.1502285749,
0.0648355335,
0.4155137837,
0.1755715013,
-0.2107818127,
0.3825215101,
0.312726289,
-0.3683201075,
-0.4562546313,
0.0013716624,
0.7677554488,
0.4328102767,
0.0056349807,
-0.0264455546,
-0.4336354136,
0.0105295908,
-0.0954043791,
0.0216444861,
0.1007572934,
-0.1240708977,
0.2177967876,
-0.0346527398,
-0.0619389266,
-0.2247723341,
0.1798865795,
-0.2414660901,
0.2327043712,
0.0405293144,
-0.048533462,
0.0854125172,
-0.0204813462,
-0.2247577012,
0.1801457703,
0.171592176,
0.12540555,
-0.429427892,
-0.033739496,
-0.0181057118,
0.3601999879,
0.2100777924,
0.0503825843,
-0.0640604645,
-0.2628414929,
0.0568875261,
0.1270204782,
-0.1555837691,
0.0523053855,
0.0083033489,
0.1369299889,
-0.0462959893,
0.2109604329,
0.0836109594,
-0.1855956316,
-0.0599283278,
0.0971120149,
-0.3002231419,
-0.3053974211,
-0.1432879269,
0.0434900485,
0.0042303232,
0.1945307702,
0.0694302917,
0.1005565673,
0.0134354532,
0.2938937247,
-0.0275055002,
0.4606290162,
-0.0773588941,
0.2148903608,
0.025565818,
-0.0853916779,
-0.3643149137,
0.1905198097,
0.0240064953,
0.1809859723,
0.2539696693,
-0.3256503046,
0.4710213244,
-0.039025031,
-0.0434679836,
0.1570565253,
-0.0526104942,
0.0993086621,
-0.1652287543,
0.4395032227,
-0.0349984132,
0.0834420174,
0.1697856784,
-0.1075864881,
-0.066332303,
-0.054829672,
-0.2166236043,
-0.004096841,
-0.2454875857,
0.143657282,
-0.1251900494,
-0.231366992,
-0.03725072,
0.2354415655,
0.1080501303,
-0.2084844559,
0.0712389946,
0.0248903837,
-0.3170249164,
-0.1683147252,
0.5056078434,
0.0399219655,
-0.3781883419,
-0.3986585438,
0.2939234972,
-0.1754311323,
0.1552592367,
0.2094492465,
0.0846957788,
0.1171684563,
-0.1244227514,
0.6250927448,
0.1958319992,
-0.2356547266,
-0.1009484306,
-0.1965229064,
0.1829895079,
0.2725666463,
0.0235281084,
-0.012019705,
0.4229516387,
0.1425527483,
-0.0457172431,
0.3367980123,
-0.2082445323,
-0.0657010153,
-0.1000477001,
-0.1101306155,
0.2190692276,
0.1781904995,
0.1841686964,
0.1768700033,
-0.2432330996,
0.2072170675,
0.1569548249,
-0.3025966585,
0.1999221891,
0.2825663984,
0.0229869373,
0.2774753571,
0.1182466149,
-0.2388510108,
-0.6610703468,
0.2167614102,
-0.0592282824,
0.4719745219,
0.2986933887,
-0.205680266,
-0.1835253984,
-0.1310996711,
0.0069147046,
-0.361610949,
0.1088553369,
-0.0447659902,
0.0705671385,
0.2840746939,
-0.2449751496,
-0.1201993376,
-0.4714963734,
0.2484920323,
-0.5372619629,
0.3105764985,
-0.0796098933,
0.0625527501,
-0.0304809194,
0.4805236459,
-0.0285155624,
0.0097294729,
0.1863794029,
0.0043974584,
-0.2089274973,
0.2935682833,
-0.1489438862,
0.3889608085,
0.2140198052,
-0.3447878659,
-0.1804738641,
-0.0957650989,
-0.0777006894,
-0.2883732319,
-0.0209820904,
0.2886339724,
0.0869847238,
0.4630935788,
0.1234814003,
0.3386545777,
-0.0108271288,
-0.1775801927,
-0.0193868931,
-0.2788068652,
0.1496565342,
-0.5367225409,
0.1365720779,
-0.0645934343,
-0.4196059704,
0.2042814195,
0.4279755354,
0.0633510202,
0.071859397,
0.0658704937,
-0.4009691775,
0.101807557,
0.0327861682,
0.0492319353,
0.197530508,
0.1843510717,
0.3715713024,
0.0923898369,
-0.0590711311,
-0.2055072635,
0.2382940352,
-0.0001002544,
0.1313719898,
0.2200175673,
-0.0017094034,
0.0597875156,
-0.1700548381,
0.1733991802,
-0.249863565,
0.3950410783,
-0.3663574159,
-0.0438929759,
-0.1436815858,
-0.2902814448,
0.0288747046,
-0.0873049572,
-0.141522035,
-0.4789789021,
0.0346713476,
-0.0348250419,
0.0401359759,
0.1712263674,
-0.1327501386,
0.2457699925,
-0.1171808764,
0.1424686313,
-0.48996225,
-0.1282466799,
-0.1769988835,
0.1487132907,
-0.0496282019,
-0.0152701465,
0.0834247023,
-0.2558936477,
0.0606291816,
-0.2867175937,
-0.5384837389,
0.15358226,
-0.2546758056,
-0.0277702883,
0.2747757137,
0.6557905674,
-0.2294672877,
-0.2044858932,
0.2566317022,
-0.3007085621,
-0.1779065132,
0.1082172543,
-0.2639546692,
0.1515257657,
-0.2519561052,
-0.2615913153,
-0.2821848691,
-0.2204408199,
0.1645997167,
-0.0915772021,
-0.0129062831,
0.2366132438,
-0.0878045559,
0.2831338942,
-0.1692296267,
0.053939037,
-0.1425023824,
-0.2312062681,
0.4616047442,
-0.2854110003,
-0.2608578503,
0.0807001591,
-0.3057961762,
0.5293774605,
0.0693495646,
-0.3885040879,
-0.1409013122,
0.1390135437,
0.180354178,
0.0790942907,
0.0125412624,
0.4569825828,
-0.3402535915,
0.1417892873,
-0.3257479072,
0.316938132,
-0.0234830454,
-0.270843327,
0.1427457333,
-0.1591112465,
0.1861773878,
0.1096416712,
0.2882344127,
0.225787431,
0.0538422465,
0.2514748871,
-0.4117177129,
0.2570095956,
0.0497902706,
-0.1021383703,
0.3323718011,
-0.0246807337,
0.3655772209,
0.3398318589,
0.1039027125,
-0.0304454975,
-0.1205991805,
-0.06824103,
-0.2416816801,
-0.1490652859,
0.0589580275,
0.2387775779,
0.383618921,
-0.0671871603,
-0.0412845574,
-0.0111011574,
-0.3337470889,
0.0258436631,
0.2859093845,
0.2306166589,
0.0882386416,
-0.2942482233,
0.1608676165,
-0.4955255687,
-0.1271622777,
-0.0355286673,
0.1020804048,
-0.0938195288,
-0.0358865932,
0.0103501026,
0.1439751834,
0.6889340878,
-0.4194600284,
-0.4454327524,
-0.1986943334,
0.1826640069,
-0.410236299,
0.1526101679,
-0.1578063518,
-0.6618090868,
0.1869554669,
0.5838928819,
-0.2288834304,
-0.0369237177,
0.4610934258,
0.2755670846,
-0.1745368242,
-0.1738997251,
-0.2141486555,
-0.3961091042,
-0.2489792407,
-0.3374046981,
0.1674871296,
0.2511647642,
-0.1050626636,
-0.0483421683,
0.0309323501,
0.1877811402,
0.0557799004,
0.1609741449,
0.2917235494,
-0.0202619918,
-0.0054042726,
0.2812901437,
0.0475019291,
0.0096258456,
0.3408078253,
-0.1727463454,
-0.3893281221,
0.0165146422,
-0.0480984077,
0.3733415008,
-0.0120249204,
-0.0054977578,
0.2215065509,
0.1800396591,
0.1133569926,
-0.2292872071,
0.2550828755,
0.4812560081,
-0.067887865,
-0.036929965,
-0.2190566212,
0.398131907,
0.1039307788,
0.2893250287,
0.2170248777,
0.575660646,
-0.2040622383,
-0.0088244053,
0.004337545,
0.6888933778,
0.0431720577,
0.260446012,
0.6488654613,
0.1300826371,
0.6366938353,
-0.1697509736,
-0.0247284807,
-0.3252649307,
-0.1908984184,
-0.1308865398,
0.0493108444,
0.1411262602,
-0.0547626652,
-0.1942637712,
0.1737314612,
0.2398359329,
0.6364045739,
0.1294538081,
0.0132685155,
-0.0044814977,
-0.4697112441,
0.0351218954,
0.0425628237,
-0.1734476089,
0.2748547196,
-0.0885683596,
0.0530235171,
-0.0597693287,
-0.1742844433,
-0.3034950793,
0.1209154576,
-0.1696869582,
-0.0543454438,
0.4672957361,
-0.2665228248,
0.0888006911,
0.5696345568,
0.2888652384,
-0.0574188493,
-0.4292493463,
0.3164283633,
-0.344020009,
-0.1321987361,
0.1689972728,
-0.0002474721,
0.3026669919,
-0.2705130577,
-0.2358096689,
-0.0012534402,
-0.0581092909,
0.2543413341,
-0.4965278208,
-0.2070838958,
-0.2827218473,
-0.1058978885,
-0.0792504922,
0.1633306593,
0.1962473989,
-0.2985825241,
0.1102308333,
-0.1691223234,
-0.1328529269,
-0.0437235236,
-0.07695169,
0.1435174197,
-0.0132539086,
-0.0233260877,
0.0821136013,
-0.2183971554,
0.4074655473,
0.3545238972,
-0.2506160438,
-0.104283385,
0.0408609621,
0.3909340203,
-0.4255092442,
-0.1830891967,
0.3778046072,
0.123188287,
-0.193577677,
0.4957160354,
-0.0833094865,
-0.2612079978,
-0.0919971019,
-0.2706175447,
-0.3745495677,
0.3178091049,
0.0038882527,
0.1583866179,
-0.1975407302,
0.3579549789,
0.000428042,
0.1056277752,
-0.279093951,
-0.0142358858,
-0.1662762314,
0.0083160726,
0.1782569289,
-0.1054553986,
0.2839037776,
0.0324827395,
0.0307685118,
0.1814554483,
0.0852225125,
-0.1257598549,
-0.2736721039,
0.0976113155,
0.1399455369,
0.1397402436,
0.037319649,
0.3310207725,
-0.2330461442,
-0.1823270023,
0.2809218168,
-0.0835621879,
0.0644369721,
0.3747585118,
0.1335433573,
0.2256380916,
-0.1648499072,
0.0778084248,
0.0603147969,
0.1051197648,
0.0486091748,
0.0451047048,
0.1113061905,
-0.0334516056,
0.1679162383,
0.2166938931,
-0.0283965804,
-0.029992789,
0.3547177613,
0.0130247576,
0.0453358591,
-0.1104088277,
0.1945457757,
-0.2014466226,
-0.0422598794,
0.3111616373,
0.1811489314,
0.1537886709,
-0.2879521251,
0.0950945392,
0.5618883371,
0.009156785,
0.1660358161,
0.2860009074,
0.2187127024,
-0.1394684762,
-0.2600668073,
-0.1360287219,
0.3661949039,
-0.2573716938,
0.0548412576,
0.371614188,
0.079765588,
-0.0221909266,
-0.0395521671,
-0.0004073032,
0.0410140082,
-0.0287887771,
0.050117217,
0.3103122115,
-0.5167759061,
-0.016504515,
0.414003849,
-0.2651938498,
-0.2028976828,
-0.1084451005,
-0.0689840242,
-0.0224912204,
-0.3505364358,
0.3023156524,
0.3013867736,
-0.1437641382,
-0.1384694427,
0.3903590441,
-0.3028217554,
-0.1124034375,
-0.5327317715,
-0.175850898,
0.1697008461,
-0.1144698262,
0.2899702489,
-0.098034814,
-0.1407260597,
-0.004272569,
-0.0231499933,
0.0454274602,
-0.1444652975,
0.2635337114,
0.1723182648,
0.0440608598,
0.1336945444,
0.4879322648,
0.0019557548,
-0.137249589,
0.0469449759,
0.2296809256,
-0.1872312427,
0.2690657079,
0.0805299804,
-0.081047222,
-0.1450401545,
0.1178018749,
0.2352011204,
0.3659512997,
0.0038218119,
0.2268045247,
0.0050575044,
-0.1607358009,
0.0690554008,
-0.1922186017,
0.0795904845,
-0.160469234,
-0.1012967825,
-0.3562687337,
-0.2814125121,
-0.3153088093,
0.1010260507,
-0.4224945009,
0.3207924068,
0.313885361,
0.0636071339,
0.0019102222,
-0.0168929528,
0.0447770618,
-0.0498583168,
0.5095522404,
0.2807849348,
0.248470962,
-0.156655699,
-0.4722030461,
-0.5128249526,
0.1290951073,
-0.2937471867,
-0.1378594786,
0.2778898776,
0.0712927058,
0.1493512839,
0.0080826422,
-0.1277738214,
0.1497374326,
0.0351926275,
-0.0261976775,
-0.3916727006,
-0.3891705871,
-0.2848653197,
-0.0568104051,
-0.0499063954,
0.2799983323,
0.1806734353,
0.1084947139,
-0.0296752024,
-0.1062724739,
0.5135325193,
-0.1903237551,
-0.2412333935,
-0.2446425557,
0.0120438477,
0.4205496013,
-0.1620688885,
-0.0037233713,
-0.043683622,
-0.1016223803,
-0.2380417883,
0.1657158285,
-0.1277561635,
0.4387221038,
-0.0151890684,
-0.47704795,
-0.0812948048,
-0.0144444294,
0.3587681651,
-0.0919234604,
-0.2852698565,
0.2698578835,
0.1301117837,
0.0226349495,
0.4985996783,
0.2061764002,
-0.1455754191,
-0.031354554,
-0.0372553542,
-0.5985196233,
0.4953222275,
-0.1852771938,
0.0062365439,
-0.1610576808,
-0.2958179712,
0.2354767323,
0.1117395163,
-0.8591643572,
-0.0685661286,
0.2883366942,
-0.0015766921,
0.0651969984,
0.2277213335,
0.1733224988,
0.0647352487,
-0.0727825984,
-0.4401547909,
0.0614163876,
0.016477637,
0.0301137213,
-0.109739922
] |
https://github.com/huggingface/datasets/issues/2130 | wikiann dataset is missing columns | Hi @lhoestq
thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first:
```
import datasets
from datasets import load_dataset
def tags_to_spans(tags):
"""Convert tags to spans."""
spans = set()
span_start = 0
span_end = 0
active_conll_tag = None
for index, string_tag in enumerate(tags):
# Actual BIO tag.
bio_tag = string_tag[0]
assert bio_tag in ["B", "I", "O"], "Invalid Tag"
conll_tag = string_tag[2:]
if bio_tag == "O":
# The span has ended.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = None
# We don't care about tags we are
# told to ignore, so we do nothing.
continue
elif bio_tag == "B":
# We are entering a new span; reset indices and active tag to new span.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = conll_tag
span_start = index
span_end = index
elif bio_tag == "I" and conll_tag == active_conll_tag:
# We're inside a span.
span_end += 1
else:
# This is the case the bio label is an "I", but either:
# 1) the span hasn't started - i.e. an ill formed span.
# 2) We have IOB1 tagging scheme.
# We'll process the previous span if it exists, but also include this
# span. This is important, because otherwise, a model may get a perfect
# F1 score whilst still including false positive ill-formed spans.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = conll_tag
span_start = index
span_end = index
# Last token might have been a part of a valid span.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
# Return sorted list of spans
return sorted(list(spans), key=lambda x: x[1][0])
dataset = load_dataset('wikiann', 'en', split="train")
ner_tags = {
0:"O",
1:"B-PER",
2:"I-PER",
3:"B-ORG",
4:"I-ORG",
5:"B-LOC",
6:"I-LOC"
}
def get_spans(tokens, tags):
"""Convert tags to textspans."""
spans = tags_to_spans(tags)
text_spans = [
x[0] + ": " + " ".join([tokens[i]
for i in range(x[1][0], x[1][1] + 1)])
for x in spans
]
if not text_spans:
text_spans = ["None"]
return text_spans
for i, d in enumerate(dataset):
tokens = d['tokens']
tags = d['ner_tags']
tags = [ner_tags[i] for i in tags]
spans = get_spans(tokens, tags)
print("spans ", spans)
print(d)
if i > 10:
break;
```
I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then
thanks
| Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq | 402 | wikiann dataset is missing columns
Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
Hi @lhoestq
thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first:
```
import datasets
from datasets import load_dataset
def tags_to_spans(tags):
"""Convert tags to spans."""
spans = set()
span_start = 0
span_end = 0
active_conll_tag = None
for index, string_tag in enumerate(tags):
# Actual BIO tag.
bio_tag = string_tag[0]
assert bio_tag in ["B", "I", "O"], "Invalid Tag"
conll_tag = string_tag[2:]
if bio_tag == "O":
# The span has ended.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = None
# We don't care about tags we are
# told to ignore, so we do nothing.
continue
elif bio_tag == "B":
# We are entering a new span; reset indices and active tag to new span.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = conll_tag
span_start = index
span_end = index
elif bio_tag == "I" and conll_tag == active_conll_tag:
# We're inside a span.
span_end += 1
else:
# This is the case the bio label is an "I", but either:
# 1) the span hasn't started - i.e. an ill formed span.
# 2) We have IOB1 tagging scheme.
# We'll process the previous span if it exists, but also include this
# span. This is important, because otherwise, a model may get a perfect
# F1 score whilst still including false positive ill-formed spans.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
active_conll_tag = conll_tag
span_start = index
span_end = index
# Last token might have been a part of a valid span.
if active_conll_tag:
spans.add((active_conll_tag, (span_start, span_end)))
# Return sorted list of spans
return sorted(list(spans), key=lambda x: x[1][0])
dataset = load_dataset('wikiann', 'en', split="train")
ner_tags = {
0:"O",
1:"B-PER",
2:"I-PER",
3:"B-ORG",
4:"I-ORG",
5:"B-LOC",
6:"I-LOC"
}
def get_spans(tokens, tags):
"""Convert tags to textspans."""
spans = tags_to_spans(tags)
text_spans = [
x[0] + ": " + " ".join([tokens[i]
for i in range(x[1][0], x[1][1] + 1)])
for x in spans
]
if not text_spans:
text_spans = ["None"]
return text_spans
for i, d in enumerate(dataset):
tokens = d['tokens']
tags = d['ner_tags']
tags = [ner_tags[i] for i in tags]
spans = get_spans(tokens, tags)
print("spans ", spans)
print(d)
if i > 10:
break;
```
I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then
thanks
| [
0.0544692427,
-0.327013433,
-0.0403902158,
0.1326313913,
0.2911990583,
0.2451727241,
0.4067166448,
0.1009383053,
0.3828304708,
0.1556163877,
-0.0446800925,
-0.2178343982,
0.0227379184,
0.503877759,
0.3199463785,
-0.5506706238,
0.1787426621,
0.2836462855,
0.0272959322,
-0.1717301756,
-0.3373776972,
0.4151011705,
-0.3747095764,
-0.0913585946,
-0.4198637903,
-0.0521615669,
-0.1558329612,
0.0584632121,
-0.2034340352,
-0.4034021497,
0.3294116557,
-0.2170119137,
0.3202044368,
-0.1154675335,
-0.000112541,
-0.1020319611,
0.1146139875,
-0.0741278157,
-0.0352271013,
0.1029126719,
-0.0024704991,
-0.3005408645,
-0.032234814,
-0.2677301168,
-0.2919104397,
-0.1271563768,
-0.3608502746,
-0.0884254128,
-0.1699057668,
0.1173606142,
0.1594197601,
0.4930118918,
0.1872773618,
-0.0216506291,
0.3861587346,
-0.3597490788,
-0.2000510097,
-0.2237431258,
0.2682066858,
-0.1672691554,
0.262186259,
0.582867682,
-0.0686729476,
-0.2373127788,
0.3806411326,
0.1863373816,
-0.0965010673,
-0.354297936,
0.1478397846,
0.4884111285,
0.4684250951,
-0.1065145433,
-0.1449525654,
-0.2883477211,
0.0657664537,
-0.3216190934,
0.0381794646,
0.1077188924,
0.0494385958,
0.2737790048,
-0.0201078523,
0.0279784203,
-0.0424055569,
0.0508819185,
-0.2102716863,
0.5055120587,
0.0122650824,
-0.0037945511,
0.0270376205,
0.0542170331,
-0.2672325373,
0.0604034066,
-0.000239593,
0.1808322519,
-0.4676630497,
-0.0149636846,
-0.0637844875,
0.7178282738,
0.323487252,
0.1278936118,
-0.2642261386,
-0.4074223936,
0.2040248066,
0.0630208701,
0.0163021311,
0.2194531858,
0.0177544951,
0.138457641,
-0.1093443483,
0.2411257327,
0.1371105164,
-0.1718848497,
0.125082761,
0.0112152649,
0.0479666889,
-0.0958263054,
-0.0406199321,
-0.1761169136,
-0.1931807995,
0.1283471286,
-0.0858133882,
0.0573208556,
0.1037843525,
0.3675776124,
0.0357894041,
0.4057353437,
-0.0181980338,
0.2109327316,
0.0414989218,
-0.1849022061,
-0.3456234038,
0.1723769456,
-0.0278713945,
0.0412091091,
0.2061500996,
-0.2425575405,
0.4308029711,
-0.014153786,
-0.1144159883,
0.1334283948,
-0.1852982491,
-0.1513623595,
0.0604239032,
0.4951550961,
-0.1300829202,
0.2043959498,
0.1434559673,
-0.2034412473,
-0.0840797499,
0.0595365018,
-0.2339165658,
0.0201576781,
-0.4020798504,
0.1664363593,
-0.1108934581,
-0.2205123752,
-0.0506511293,
0.1065466926,
0.0239958558,
-0.2974380851,
0.112654224,
-0.0470757298,
-0.2015536278,
-0.0306952223,
0.5745876431,
0.1898590475,
-0.193018645,
-0.4148737192,
0.4360810518,
-0.0263605043,
0.2025565505,
0.257350117,
0.2017431706,
0.1720208377,
-0.1324972957,
0.492469579,
0.0134954257,
-0.4078330696,
-0.2425947338,
-0.3458086252,
0.2205598205,
0.3580064476,
0.114708975,
0.0673442185,
0.3221622705,
0.0256252494,
0.0146006942,
0.3263654709,
-0.0976219028,
-0.0204216503,
-0.2326063067,
-0.1400736868,
0.2369292378,
0.1449742615,
0.0888518617,
0.0245977379,
-0.2037449628,
-0.0059460285,
0.2381318212,
-0.3163132071,
0.1725290865,
0.2288783044,
0.0828212276,
0.2735074162,
0.2326695472,
-0.3583380878,
-0.5895220041,
0.2272502482,
0.1954206079,
0.2556379139,
0.1291142106,
-0.2900442183,
-0.3728680909,
-0.0594470501,
-0.1254448295,
-0.3232940137,
0.1320794821,
0.0530795045,
0.008488087,
0.1862320602,
-0.2948440313,
-0.10740605,
-0.2357055247,
0.2480612546,
-0.3208346367,
0.2400358915,
-0.1686612219,
-0.0328184143,
0.0763436779,
0.54033041,
0.256537199,
0.1897566915,
0.2228337526,
0.0916349962,
-0.1450522691,
0.0279496349,
-0.0130791282,
0.3257300854,
0.1200422645,
-0.3045975268,
-0.194352895,
-0.1095433086,
0.1700196564,
-0.20029971,
0.0100840675,
0.0964760333,
-0.0876424015,
0.3575109839,
-0.0103017548,
0.2266384512,
0.144218713,
-0.3177838624,
-0.0587053411,
-0.2331504971,
0.1952025741,
-0.5777383447,
0.1849353164,
-0.1640562713,
-0.2464762926,
0.181376338,
0.449390173,
-0.0985963792,
0.0781161189,
-0.162322402,
-0.4065583348,
0.1908220649,
0.0960346833,
0.0082347272,
0.2017858773,
0.2465302795,
0.1954314113,
-0.0871232599,
-0.023571264,
-0.0434325449,
0.2000272572,
-0.0140680401,
0.0008670432,
0.2576184571,
0.0426496603,
0.0836304948,
-0.1842697859,
0.116839014,
-0.3363681436,
0.2314849645,
-0.3505467176,
-0.0540648103,
-0.0917513967,
-0.1673774719,
0.0889808834,
-0.4040909111,
-0.0554508753,
-0.3870819807,
0.126301378,
-0.2790805399,
0.0139318239,
0.2027005851,
-0.2238693386,
0.3222594559,
-0.0865766108,
0.0373746641,
-0.5950978398,
-0.1842698604,
-0.1742400676,
0.0743243024,
-0.102455169,
0.1173357666,
0.0428953245,
-0.4117198586,
-0.0802084357,
-0.2833999693,
-0.4494695067,
0.1166326106,
-0.26665169,
0.1625019461,
0.3171646297,
0.4674128294,
-0.0920895562,
-0.1513972282,
0.316652894,
-0.1866427213,
-0.0389572605,
0.150575757,
-0.0790558681,
0.0194667112,
-0.1821570098,
-0.163170293,
-0.3570207357,
-0.0780602843,
0.1331011504,
-0.0158120655,
-0.1398490667,
0.1193089411,
-0.0854909793,
0.1214032024,
-0.1633448601,
0.1551125795,
-0.1893157959,
-0.3184945583,
0.3573020399,
-0.0028754508,
-0.2122382373,
0.0864414126,
-0.2347598523,
0.3610833883,
-0.0930036008,
-0.372487992,
-0.1330969185,
0.2365107536,
0.1786490679,
0.068165943,
0.0832072124,
0.4093667567,
-0.1339916289,
0.1313057542,
-0.3668014109,
0.0353033431,
-0.1806099415,
-0.4232718945,
0.2840664685,
-0.384383589,
0.2557321489,
0.0164648276,
0.1918072701,
0.2065472901,
0.2342859954,
0.2982034683,
-0.202737838,
0.2933229208,
-0.0803184584,
-0.3152864873,
0.2866961956,
-0.1873611957,
0.127002418,
0.3359540701,
0.0512878075,
-0.0133394124,
-0.1811530292,
-0.132934019,
-0.2979296446,
-0.16390495,
-0.0078745754,
0.4573527575,
0.2752795815,
-0.0486616939,
-0.0057233814,
-0.139750585,
-0.1836079806,
0.2187121212,
0.4127668142,
0.2451676726,
0.0993103907,
-0.2173626572,
0.0696449503,
-0.4181895256,
-0.0287408046,
0.033962179,
0.0534689017,
0.1074625626,
-0.0410086811,
0.0089008883,
0.0777935535,
0.3949425817,
-0.4277150631,
-0.1420178264,
-0.0859800726,
0.2854677141,
-0.1988034993,
0.0394264273,
-0.2738188505,
-0.5508030653,
0.2807578444,
0.5836248994,
-0.3903930485,
-0.0757064149,
0.7279966474,
0.3608466685,
-0.0763675421,
-0.2026696801,
-0.4303676188,
-0.4182766378,
-0.2724164724,
-0.1223148927,
0.3240903318,
0.2643381059,
-0.0167249143,
-0.0465231985,
-0.15712744,
0.0003973877,
0.0761725083,
0.2137705088,
0.3229748011,
-0.1104358062,
-0.0561893471,
0.2773351073,
0.0006000697,
0.0057452982,
0.4690230191,
-0.349347055,
-0.5048447847,
-0.1113382131,
-0.0512563102,
0.4775038064,
-0.0490514599,
0.0255591907,
0.172262162,
0.1563803703,
0.0661831796,
-0.2490691841,
-0.0385927223,
0.4647088647,
0.1458495557,
-0.082062766,
-0.1797792912,
0.4675608575,
0.1549690962,
0.1091685891,
0.2687051892,
0.6941235662,
-0.2821181417,
0.1339610517,
-0.0013887802,
0.8452181816,
-0.0397438928,
0.1042331383,
0.4054000676,
-0.0132360887,
0.3032664061,
0.0281623993,
0.1390976906,
-0.3000718355,
-0.2921208143,
-0.0908368975,
0.16666767,
0.1481087804,
-0.1318237334,
-0.2458907068,
0.275598079,
0.0452360436,
0.6778348684,
0.074609898,
-0.1033956185,
-0.0017685737,
-0.4012653232,
-0.2720256746,
0.0822913274,
-0.1310529113,
0.1844047457,
-0.2015081495,
0.1920025796,
0.0872275159,
-0.2494222075,
-0.2389719337,
0.063711971,
-0.2709908485,
-0.1070003062,
0.3383774161,
-0.3196050227,
-0.0449287593,
0.4351571202,
0.2685518265,
0.0004197768,
-0.2788115144,
0.2626276016,
-0.2549909949,
-0.0973987207,
-0.0191492587,
-0.1352158487,
0.3243160844,
-0.2111024559,
-0.3843376637,
0.0903836042,
-0.1274330616,
0.0182265006,
-0.2287191749,
-0.0358416997,
-0.026999006,
-0.2296764702,
0.0142787714,
0.1640331745,
0.3964562118,
-0.3822667599,
0.0931844562,
-0.1406216025,
-0.1895357668,
0.077916868,
-0.0804075077,
0.0065080677,
-0.0941134542,
0.0342351347,
0.0110290842,
0.0023248184,
0.5822213292,
0.1355504245,
-0.3204786181,
-0.1524464637,
-0.1715672314,
0.386213243,
-0.2608523071,
-0.0786107928,
0.274474144,
-0.0822323561,
-0.0807962418,
0.5901308656,
0.1658877581,
-0.3848464191,
-0.0733301416,
-0.4468894899,
-0.1905548126,
0.4615363479,
0.0596766025,
0.10758131,
-0.0156423114,
0.2550132871,
-0.0372402035,
0.1408178955,
-0.333130002,
-0.173922956,
-0.3433176279,
0.0917419717,
0.0483108051,
-0.1085372269,
0.2005743384,
0.0188452881,
0.1040670872,
0.0480876081,
0.297773093,
-0.1665762216,
-0.2269821614,
0.1043347046,
0.099750787,
0.2559482455,
-0.0327717066,
0.1996016651,
-0.1600095928,
-0.2049890012,
0.3374835849,
0.0187264886,
0.1683519036,
0.2305445522,
0.1863617897,
0.105572924,
-0.3049564064,
-0.0217058677,
-0.0400152616,
-0.0664836317,
-0.0186126791,
0.0228281673,
0.1278030127,
0.0514721312,
0.5048709512,
0.2136391401,
0.0830890313,
0.2258836925,
0.5083489418,
-0.0964577794,
0.0130086616,
0.1635411233,
0.1499211341,
-0.1923562437,
-0.0679062977,
0.1851627678,
0.0591693409,
0.2319486588,
-0.496712774,
0.000257627,
0.4716877043,
-0.0388897918,
0.2034625858,
0.2427161783,
0.2596532106,
-0.2499644458,
-0.1458477378,
-0.1017299592,
0.4809444249,
0.0282892901,
-0.0263644867,
0.3083893359,
0.0784660578,
-0.0630010292,
0.1078331396,
0.0511318818,
0.1140611917,
0.08239609,
-0.0422186852,
0.378528595,
-0.2654442787,
0.2412337959,
0.0684909597,
-0.0437598564,
-0.0139457593,
-0.173816815,
0.0251189228,
-0.128229931,
-0.3254923224,
0.2293955386,
0.1202791706,
-0.1393978149,
-0.2085936219,
0.3673755825,
-0.2201183587,
-0.0590570308,
-0.5520489216,
-0.1504020244,
0.1835424006,
-0.249161616,
0.0816260651,
0.0153163085,
0.0778469592,
0.0939847231,
0.0406757146,
-0.0017697702,
-0.4534659982,
0.3404273391,
0.3654010296,
-0.0818675533,
0.1732185483,
0.644507587,
0.0751830786,
-0.0365176871,
0.3512731493,
0.2951741517,
0.0236942172,
0.2055942863,
-0.1491784602,
-0.1340322196,
-0.2938410044,
0.0907440856,
0.3199098408,
0.2083318979,
0.0336416475,
0.1736567467,
0.0767551959,
-0.1981586069,
0.0633971244,
-0.2220887542,
0.1091491431,
-0.2279447764,
-0.2378138006,
-0.3912307024,
-0.3179880083,
-0.465973407,
0.0299820229,
-0.3282493949,
0.370767206,
0.1707828343,
0.0695135668,
0.0342904106,
0.1300939769,
0.0593451113,
0.1057747677,
0.4426100552,
0.2982805073,
0.0838680267,
-0.3084408939,
-0.3819870055,
-0.5238912702,
-0.0934579,
-0.3235942125,
-0.4068910778,
0.2137569785,
-0.0177833345,
0.1535544991,
-0.0101389959,
0.101721786,
0.3596037626,
0.1713932753,
-0.0809159577,
-0.4236360192,
-0.2975743413,
0.0174141768,
-0.0518015027,
-0.0253848191,
0.0251307059,
0.2179338336,
0.1491938084,
0.017382998,
0.1136092171,
0.249044314,
-0.1416781396,
-0.2748281956,
-0.0798646733,
0.1748216748,
0.5028145313,
-0.2660534382,
-0.0049168821,
-0.0348544084,
-0.1281796694,
-0.2321838439,
0.1482661963,
-0.0469662733,
0.2544282079,
0.0553980023,
-0.3131453693,
-0.0385003164,
0.1561459452,
0.3408406377,
-0.0530776568,
-0.4521441162,
0.1979327202,
0.0803287402,
-0.0011355256,
0.3005703688,
0.2109131962,
-0.1628840119,
0.1323052496,
-0.1846249998,
-0.5597349405,
0.6108742356,
-0.2102543861,
-0.1114958748,
-0.2517186105,
-0.0512029901,
0.3974972367,
0.1314938515,
-0.8236066699,
0.0154707227,
0.1567986161,
0.174576059,
-0.0727521926,
0.3572433591,
0.1974404603,
0.1512197405,
0.0224468801,
-0.4629212916,
0.20206815,
0.0254842415,
-0.1014103591,
-0.0472728051
] |
https://github.com/huggingface/datasets/issues/2130 | wikiann dataset is missing columns | Cool ! Let me give you some context:
#### Contribution guide
You can find the contribution guide here:
https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md
It explains how to set up your dev environment in a few steps.
#### Dataset loading
Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature).
To change how a dataset is constructed, you have to modify its dataset script that you can find here:
https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py
It includes everything needed to load the WikiANN dataset.
You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`.
#### Define a new column
Each column has a name and a type. You can see how the features of WikiANN are defined here:
https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263
Ideally we would have one additional feature "spans":
```python
"spans": datasets.Sequence(datasets.Value("string")),
```
#### Compute the content of each row
To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example:
```python
yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs}
```
The objective would be to return instead something like
```python
spans = spans = get_spans(tokens, tags)
yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans}
```
Let me know if you have questions ! | Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq | 208 | wikiann dataset is missing columns
Hi
Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
Cool ! Let me give you some context:
#### Contribution guide
You can find the contribution guide here:
https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md
It explains how to set up your dev environment in a few steps.
#### Dataset loading
Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature).
To change how a dataset is constructed, you have to modify its dataset script that you can find here:
https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py
It includes everything needed to load the WikiANN dataset.
You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`.
#### Define a new column
Each column has a name and a type. You can see how the features of WikiANN are defined here:
https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263
Ideally we would have one additional feature "spans":
```python
"spans": datasets.Sequence(datasets.Value("string")),
```
#### Compute the content of each row
To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example:
```python
yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs}
```
The objective would be to return instead something like
```python
spans = spans = get_spans(tokens, tags)
yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans}
```
Let me know if you have questions ! | [
0.0056950436,
-0.2647255957,
-0.0400680825,
0.0995711461,
0.3907710016,
0.108981505,
0.2883934975,
0.1041570157,
0.0132620335,
0.1453700215,
-0.0328591205,
-0.0127277374,
0.022151161,
0.4286500216,
0.2620582581,
-0.7255473733,
0.137414068,
0.2676770687,
-0.2057021111,
0.06458354,
-0.3263522685,
0.3927432597,
-0.3106456399,
-0.1321284324,
-0.3484145403,
0.0134391729,
-0.269092679,
0.1206341088,
-0.0948508903,
-0.2926411629,
0.3413372338,
-0.2243308276,
0.1851857901,
-0.0907959193,
-0.0001031631,
-0.0195614398,
0.1880482584,
-0.0933684632,
-0.1129948944,
0.1042857692,
0.0963924751,
-0.3275562823,
-0.0058888011,
-0.30283463,
-0.3155612946,
-0.1220748574,
-0.3141629696,
-0.0753204077,
0.0279854294,
0.0826014727,
0.2585153878,
0.7911582589,
0.3671266437,
-0.1308149099,
0.1523731649,
-0.1912454665,
-0.2992330492,
-0.1442316473,
0.1775326878,
-0.1432340294,
0.0846134126,
0.4101110399,
-0.0642810017,
-0.1549717039,
0.3905906677,
0.1574983448,
-0.3582746685,
-0.2313542962,
0.19769153,
0.5012366772,
0.4747832417,
-0.1316245943,
-0.1059160382,
-0.3632465303,
0.0720395222,
0.0136850746,
0.1230837703,
0.1361769885,
0.0144163445,
0.2254357934,
-0.0582172759,
0.0265036393,
-0.0693990216,
0.1189300343,
-0.2114753723,
0.2074496746,
-0.1068045571,
0.0620142296,
0.0106154559,
-0.0684677735,
-0.2683207989,
0.1802329421,
-0.0499180891,
0.1471553296,
-0.3356835246,
-0.0049596769,
0.0384216607,
0.6451609731,
0.311406672,
0.1609736532,
-0.1400149614,
-0.1313830018,
0.1271445453,
0.0326538198,
0.0230209231,
0.1219923049,
-0.0616219193,
0.0901367292,
-0.1017373279,
0.4083093107,
0.1303037256,
-0.2530059814,
0.0655365214,
-0.0008752767,
-0.2312636077,
-0.2843500376,
0.0263559986,
-0.0653641596,
0.0867275074,
0.020110948,
0.2051500231,
0.1149981618,
0.0867082328,
0.4324636161,
0.0214242749,
0.4151432216,
-0.0994241089,
0.2552134693,
-0.0415619761,
-0.1355650425,
-0.3723391294,
0.1453409493,
-0.0185188893,
0.143132627,
0.2540236712,
-0.2808767259,
0.5359508991,
0.0414320156,
0.0351256579,
0.0959894806,
-0.1034574956,
0.0935246497,
-0.2193460613,
0.3652417958,
-0.0746773481,
0.0697428212,
0.2229990214,
0.0003279148,
-0.1197448522,
-0.1145025566,
-0.1494783908,
-0.1088827774,
-0.2668519616,
0.2236601263,
-0.1043156013,
-0.1133724153,
-0.0867222324,
0.0667778477,
0.0291007664,
-0.3127824962,
0.1017027274,
0.0485594086,
-0.0921487361,
-0.2088677138,
0.6047567129,
0.1654426455,
-0.1434134394,
-0.3574485481,
0.2727655768,
-0.0880975574,
0.1259170622,
0.1465770006,
0.0717701316,
-0.057995934,
-0.1217665151,
0.323364228,
-0.0336215831,
-0.1268147826,
-0.2349394858,
-0.1781377643,
0.1438900232,
0.2943350077,
0.1185502559,
-0.026824614,
0.2524349093,
0.0249338858,
-0.0260243248,
0.2677816749,
-0.0522508249,
0.0685676038,
-0.1652992219,
-0.2542303205,
-0.1006453037,
0.1149619147,
0.0070873611,
0.0217571799,
-0.1243231148,
0.0791168436,
0.1917813569,
-0.2824207246,
0.2072331756,
0.2506263554,
0.0283804126,
0.3811192214,
0.1086606905,
-0.1813735664,
-0.558645606,
0.1994145513,
0.1036453769,
0.2183466256,
0.1075799987,
-0.3085535467,
-0.2711723149,
-0.0610953979,
-0.1522563994,
-0.3668555319,
0.1992108822,
0.0398296081,
0.2403292507,
0.2699041963,
-0.2106193155,
0.019899169,
-0.1637937278,
0.1998687088,
-0.5162340999,
0.2422399372,
-0.1443820894,
0.112764366,
0.2207105607,
0.5053962469,
0.1098285988,
0.0956477225,
0.2538808584,
0.2179434299,
-0.2460690588,
0.2443442345,
-0.096179381,
0.1683006436,
0.2036245614,
-0.2858155966,
0.0485562012,
-0.093898721,
0.12423978,
-0.1547207385,
-0.0726824999,
0.3829085231,
-0.1319550872,
0.3680706322,
0.0671640411,
0.3307342231,
0.1689670235,
-0.2372764051,
-0.1055498868,
-0.2722429633,
0.1091719568,
-0.4910505116,
0.1773588061,
-0.1322771758,
-0.3371233642,
0.1953542084,
0.2848118842,
0.025426982,
0.1182904914,
-0.2042376995,
-0.4753548801,
0.1389715523,
0.1840976477,
0.0435795039,
0.2743405402,
0.3023236096,
0.2259213477,
0.0136570791,
-0.0735488161,
-0.1543085724,
0.1365191489,
0.0112467362,
-0.0455770306,
0.1225966811,
0.0138393557,
-0.0227476601,
-0.1749590933,
0.1751217097,
-0.3515151739,
0.2264763713,
-0.2688476443,
-0.1025940925,
-0.1479927897,
-0.1891607344,
0.0874365196,
-0.2197569907,
-0.0882470831,
-0.3651940823,
-0.0417304933,
-0.1194719598,
-0.0319995992,
0.1705792397,
-0.2978862524,
0.1058902964,
-0.1315856278,
-0.0018021609,
-0.4364803433,
-0.1045141816,
-0.1432972103,
0.1892445683,
-0.0223207884,
0.0549124032,
0.1327008456,
-0.2095161676,
0.0066547594,
-0.3827698231,
-0.4155875742,
0.0275883544,
-0.3513255715,
0.0488557145,
0.3115399182,
0.5177802444,
-0.1577761024,
-0.2482328862,
0.4025251567,
-0.2532043159,
-0.0400607437,
0.1358626932,
-0.0422107801,
0.0660643652,
-0.1633738577,
-0.1545829624,
-0.1375990659,
-0.2262219638,
0.2925012112,
-0.0385329239,
-0.1350615472,
0.0658271164,
0.0675549805,
0.2127573341,
-0.2418704033,
0.0338913426,
-0.2137434036,
-0.3011053205,
0.3603343368,
-0.2365946919,
-0.3118939102,
0.1141381413,
-0.26735425,
0.4330877066,
0.0052809697,
-0.3415949047,
-0.2719324827,
0.0759831443,
0.1883361787,
0.0712450221,
0.1267050058,
0.4980592728,
-0.0780169964,
0.0473269075,
-0.3099203706,
0.0694152117,
-0.1727188528,
-0.3517265618,
0.2287159711,
-0.28082183,
0.2558265328,
-0.0000866105,
0.2596422136,
0.2716818154,
0.3824600577,
0.3410162032,
-0.2625613213,
0.4241217971,
-0.086930424,
-0.2107982337,
0.3139959872,
-0.2213086784,
0.336709559,
0.3756849468,
0.233591482,
0.0158645734,
-0.2065974176,
-0.2852896452,
-0.2803173363,
-0.2121931463,
0.0474607535,
0.2853036523,
0.4106861949,
-0.140669018,
-0.0192020908,
-0.1328481585,
-0.1860243082,
0.0182932951,
0.4052121043,
0.0905307755,
0.0928512439,
-0.3699905872,
0.1083803475,
-0.556827724,
0.0198757015,
-0.1077682525,
0.0017430863,
0.1339834034,
-0.1440435797,
0.0111702289,
-0.0008234039,
0.4261737168,
-0.1615866721,
-0.3184936941,
-0.1017038599,
0.152329877,
-0.4004547,
0.1023612767,
-0.1053797901,
-0.3845579326,
0.0582220554,
0.4981088042,
-0.2920539677,
-0.0141468905,
0.5848610997,
0.3693962991,
-0.1100339741,
-0.1800229996,
-0.3422318697,
-0.526981771,
-0.2619640231,
-0.3119793534,
0.0501006506,
0.2887432277,
0.0004596772,
0.0406162441,
-0.0858597532,
-0.1096917987,
0.0057954798,
0.1932649612,
0.3751418591,
-0.0855220482,
0.0837986618,
0.3181832731,
0.1286628842,
0.0276870616,
0.484626323,
-0.1169972569,
-0.286242336,
-0.2341115773,
-0.0015345538,
0.3049426079,
-0.0503737405,
-0.0121489195,
0.2031053156,
0.1640187204,
0.1740404516,
-0.2772320211,
0.0653349534,
0.4079394042,
0.016123632,
-0.1211908981,
-0.3104068339,
0.4774594307,
-0.0909736902,
0.2345762998,
0.1480851173,
0.6963039041,
-0.1908764541,
0.0257110689,
-0.0374629684,
0.6728917956,
-0.0156474579,
0.2137644142,
0.5228446722,
0.1378847361,
0.4920896888,
0.0322051123,
0.1136460751,
-0.1365511268,
-0.1244290918,
-0.0557650737,
0.1319319904,
0.1979288459,
-0.2405104786,
-0.3001887202,
0.2108462006,
0.1302979887,
0.481549263,
-0.0115634864,
-0.0840539858,
-0.2299471498,
-0.4589120448,
-0.2244805545,
0.1763318628,
-0.131094411,
0.1835680604,
-0.0612322092,
0.0835069716,
-0.0620186701,
-0.2151122391,
-0.2962890267,
0.0489887148,
-0.1781811565,
0.0015894283,
0.2778373659,
-0.3197649121,
0.0429983288,
0.3772461712,
0.2068168521,
0.0808541179,
-0.3791576922,
0.2942669094,
-0.3318922818,
-0.3013337553,
-0.0808051303,
0.0272312146,
0.1504334062,
-0.2005126476,
-0.3311749995,
-0.0175726712,
-0.1538347602,
0.0748689249,
-0.4822945893,
-0.0550794005,
-0.0164408032,
-0.2165943682,
-0.142663002,
0.0882916972,
0.2669072449,
-0.3419041038,
0.1730667502,
-0.2297579646,
-0.0707628205,
0.0559881926,
-0.0646729842,
0.1425488293,
-0.1878099442,
0.1235518381,
-0.0277567357,
-0.1479177177,
0.5038403273,
0.2157178521,
-0.2083934098,
-0.1833309084,
-0.0420928486,
0.323720485,
-0.3441510797,
-0.1837066859,
0.3745027483,
0.0978185609,
-0.0480917729,
0.4815382063,
0.079758659,
-0.3061768115,
-0.1033129841,
-0.2695042789,
-0.3904180825,
0.4605472088,
0.0443819202,
0.0814254656,
-0.0559590422,
0.4622194469,
0.048901394,
0.1277226657,
-0.3721940517,
-0.1049909517,
-0.1650709957,
0.00572578,
0.3218869567,
-0.1305428594,
0.2574725449,
0.0498018228,
0.1919075102,
0.0773089677,
0.0629748702,
-0.2080518901,
-0.1677064747,
0.062608242,
0.0104988413,
0.125263676,
-0.0322180502,
0.2193449289,
-0.1892018616,
-0.2381412536,
0.3489740193,
0.0091073513,
0.0480817296,
0.1124825403,
0.1010198742,
0.1393237561,
-0.2098069936,
0.0525640473,
-0.0510028452,
-0.0601741299,
-0.0357957259,
-0.0229461901,
0.0929098874,
-0.039860744,
0.4534708858,
0.230054915,
-0.0618665814,
0.1680836231,
0.4504091442,
0.0778943896,
-0.0724389032,
-0.0130134169,
0.1794341058,
-0.0295944419,
0.0005949031,
0.2428059429,
0.2090385109,
0.2586457133,
-0.3936883211,
-0.0178880952,
0.3326265812,
0.0186036285,
0.2908475995,
0.2393272817,
0.094536446,
-0.2792140841,
-0.1221791282,
-0.0453508943,
0.5128667355,
-0.0647646189,
0.0349016674,
0.3482363522,
0.178211391,
-0.1240446642,
0.0959938616,
0.154714033,
0.2134791166,
0.0423702486,
-0.1238436699,
0.2358172089,
-0.4316963851,
0.1954883784,
0.250739336,
-0.2044873089,
-0.1044669673,
-0.1691027433,
-0.0405264236,
-0.0144349672,
-0.3837433159,
0.401022315,
0.0296538919,
-0.0108310441,
-0.1622746289,
0.3016044796,
-0.2187899351,
-0.1499932259,
-0.3768315911,
-0.2381185889,
0.2273078412,
-0.1794095486,
0.190857619,
-0.0246981084,
0.0561869554,
-0.071071133,
-0.0403258763,
-0.1101827845,
-0.0587492324,
0.3492383659,
0.1889838874,
0.0533251911,
0.1089645699,
0.6260309815,
0.1344874054,
-0.0055444753,
0.0823428184,
0.3404813409,
-0.1085739061,
0.2931345701,
-0.003108053,
-0.1426036209,
-0.1822575927,
0.0227754246,
0.1597885787,
0.2254237086,
0.0273290277,
0.1800419241,
0.1658461988,
-0.2506607175,
-0.0107026519,
-0.3270637691,
0.0899441093,
-0.2241417319,
-0.1398081928,
-0.4170121253,
-0.3447077274,
-0.2472240329,
0.0605843998,
-0.5223693252,
0.3943899274,
0.1322870255,
0.0699925125,
-0.0346822403,
0.0318934098,
0.1035731211,
0.1147834882,
0.4758185744,
0.3135996461,
0.0263633188,
-0.0811811239,
-0.5944885612,
-0.5643668175,
-0.0804429054,
-0.3559879661,
-0.3042845428,
0.1598599553,
0.0643118992,
0.217102468,
-0.0359671414,
-0.0209064875,
0.2259670794,
-0.0324341469,
-0.1610325426,
-0.2761783302,
-0.3786726594,
0.0112645663,
-0.0282948595,
-0.0162162222,
0.0763000399,
0.1975307316,
0.1973194629,
0.0702493265,
-0.0398606323,
0.4521843493,
-0.2078344971,
-0.4676823616,
-0.2300962061,
0.1423253119,
0.2826928496,
-0.1948661208,
-0.0114492914,
-0.2692462802,
-0.0511223227,
-0.1538997144,
0.1939672679,
-0.0471215248,
0.4537034333,
-0.0226637777,
-0.4011210501,
-0.0338795856,
0.2450489402,
0.397295475,
0.0373379923,
-0.2113557011,
0.2295656502,
0.1738656014,
-0.0869549066,
0.2598581314,
0.3310911953,
-0.2241019756,
0.0792577714,
-0.1126662865,
-0.603777349,
0.4661974311,
-0.231451571,
-0.1007009074,
-0.038811978,
-0.0909450874,
0.0995389894,
0.0423091277,
-0.7625927925,
0.1274690777,
0.2277513295,
0.1664810032,
0.0087281847,
0.2390075773,
0.006222113,
-0.0185781997,
-0.0361022316,
-0.2505774498,
0.1227643266,
-0.0009982787,
0.0648507178,
-0.0154447528
] |
https://github.com/huggingface/datasets/issues/2129 | How to train BERT model with next sentence prediction? | Hi !
We're not using `TextDatasetForNextSentencePrediction` in `datasets`.
Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction. | Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
| 25 | How to train BERT model with next sentence prediction?
Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
Hi !
We're not using `TextDatasetForNextSentencePrediction` in `datasets`.
Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction. | [
0.1917073578,
-0.4076449871,
-0.0147695569,
-0.2003289908,
0.0005587882,
-0.2783756852,
0.1422065794,
-0.0127170496,
-0.0256621707,
0.164702341,
0.1556011885,
0.0493725799,
-0.1548089236,
0.0617542081,
0.328505367,
-0.6952241063,
0.1574009806,
0.2188373357,
0.0097453222,
-0.150531292,
-0.1178791001,
0.080616802,
-0.4232553542,
0.3682828546,
-0.2839282751,
0.200821355,
-0.3334324658,
-0.3163953424,
0.0460602045,
-0.3753813207,
0.4582471251,
0.407034725,
0.4587982893,
0.2150741071,
-0.0001232347,
-0.2639683783,
0.2025310993,
-0.2711349726,
0.1549267024,
-0.3970151544,
-0.2493351996,
-0.0373746641,
0.2242989242,
-0.1815947741,
-0.2838989496,
0.5994523168,
0.3069366515,
-0.1343761384,
0.5240787268,
0.1173759326,
0.0644792244,
-0.296051681,
0.2634475231,
-0.0121572074,
0.1068005487,
0.0945529342,
-0.0285038352,
-0.1371491998,
0.5605081916,
-0.3304393589,
-0.2147193998,
0.1836270988,
0.0088033378,
0.0330855064,
0.1647519618,
0.2331249118,
0.0844854042,
-0.3325140774,
-0.2616683543,
0.4053133428,
0.6561759114,
-0.2457777709,
-0.5032141209,
-0.1677224487,
0.2668511868,
0.0886340216,
0.0660709366,
-0.2455878556,
-0.0742206722,
0.172977224,
0.0470754616,
-0.375395149,
-0.4167918265,
-0.0373328701,
-0.1894733906,
0.4580949545,
-0.0336559936,
-0.2123969942,
0.2601470351,
-0.210665077,
0.0755169019,
-0.0940306038,
0.1235340759,
0.4406598508,
-0.2064273059,
-0.3648630977,
-0.4254556,
0.1489189118,
0.020615343,
-0.1328348219,
-0.1927835345,
-0.0155301234,
-0.3786578178,
-0.1238597631,
0.3669160903,
0.2585483491,
-0.1486687213,
0.156735152,
-0.2529691458,
0.0401984677,
-0.2351610363,
-0.1876815408,
-0.145765543,
0.0405990742,
0.2635547519,
-0.0009326517,
-0.2121558785,
-0.2638920546,
0.0923203081,
-0.0122007607,
-0.297562927,
-0.0437656231,
-0.076880604,
-0.0495996252,
-0.2629685998,
0.3475271165,
-0.0341196321,
0.0840813518,
0.0043107201,
-0.0952288434,
0.114630498,
-0.2163176686,
-0.2744839787,
0.5209567547,
0.0122855837,
0.0309624691,
0.1323940903,
-0.1471809149,
-0.0324883461,
0.0797838122,
-0.3151406646,
-0.4305482209,
-0.0083031459,
-0.1275516152,
-0.3998717666,
0.0512890033,
-0.1620686948,
0.4676388204,
-0.0828439072,
-0.0061802482,
-0.2025860846,
-0.0096682021,
-0.0974934995,
-0.0393802822,
-0.0925438181,
-0.3396708369,
0.1031366512,
0.5064283013,
-0.1084639356,
-0.1633831561,
0.1413179338,
0.1575701088,
-0.3678391278,
0.1389540583,
0.1589908004,
0.1643918008,
-0.4927235842,
-0.2593483925,
0.0213333406,
0.1455703378,
0.1135779843,
-0.0017802739,
0.241829887,
0.2236618102,
0.0471891426,
0.128594771,
-0.1216344014,
-0.1538398117,
0.0056321574,
0.0265367366,
0.1224370524,
0.3793033361,
-0.1333853304,
-0.006222439,
0.0107166953,
-0.0767605901,
-0.1099485606,
0.1562729329,
-0.1232269406,
-0.1303877831,
0.2724361718,
-0.1773428619,
-0.1098016277,
-0.004553311,
0.1601714045,
0.1707354039,
-0.2739247978,
0.5601223707,
0.1560771912,
-0.0312376227,
0.070562467,
-0.050620582,
0.1408514678,
0.396440208,
0.048868157,
-0.3296993673,
-0.2331066579,
0.0252213441,
0.0732030123,
-0.1738703996,
0.0573340692,
0.1567168832,
0.068223618,
0.1022694111,
-0.061981339,
-0.153782934,
-0.0262000728,
0.0079670772,
-0.1567397863,
0.1041978896,
-0.3908597231,
0.1572052836,
0.1015611067,
0.0780098587,
-0.1400817037,
0.2063273489,
-0.0807500631,
-0.0708812103,
0.0169516541,
0.1848719567,
0.0469686538,
0.0842283219,
0.1061468646,
0.1018844843,
0.2673930526,
0.1256758273,
-0.0165787861,
-0.2433179617,
0.0560219735,
-0.3695043623,
-0.0651003197,
0.0415274166,
-0.1241790131,
-0.0720179677,
-0.1598882675,
0.0651438832,
0.4588319063,
0.0063852463,
-0.0904362947,
-0.0213640537,
-0.1394987106,
0.0529069826,
-0.0706685483,
-0.3643367887,
0.1267162859,
0.0481699295,
0.2527300417,
-0.0866002366,
-0.2399301827,
-0.4791783392,
0.2228337079,
-0.1742818207,
0.17736727,
0.6320179701,
-0.0266929325,
0.0455351137,
-0.1115405038,
-0.2695044577,
-0.0333992615,
0.074216038,
-0.0677744001,
-0.1553355306,
-0.0478103384,
0.0303331278,
-0.0855012834,
-0.0484033078,
0.198803395,
-0.1507503688,
-0.2564578354,
0.1240440086,
0.2082061321,
-0.3337569237,
-0.1325205415,
-0.0418706536,
-0.0790851787,
-0.0052339663,
-0.381550312,
-0.351910919,
-0.025971368,
-0.4334395826,
-0.0323947594,
0.2949759364,
-0.0653684363,
-0.4361504614,
0.1682780981,
-0.0546024367,
0.048219908,
0.3473090529,
0.1947134286,
0.2138710618,
-0.2305922508,
-0.1608905643,
-0.0018191201,
0.0149621172,
-0.1995004416,
-0.1814264655,
-0.3212386668,
-0.0026159389,
0.0561576709,
-0.1347344965,
-0.2250510007,
0.326295197,
-0.1361162364,
0.0319760963,
0.2602562308,
-0.1232943609,
-0.1476175785,
0.0506934933,
-0.0717643127,
-0.0051314896,
-0.0586235784,
-0.1770617366,
0.2005548179,
0.1248710901,
0.2681867778,
-0.0115819862,
-0.2322614938,
0.3484328389,
0.2574887276,
0.1877579987,
-0.0506630987,
-0.0934297964,
-0.0130331293,
0.1530904025,
-0.335331887,
-0.1277407706,
0.1583465785,
-0.6027780175,
0.1883776486,
0.1695081294,
0.0336445794,
-0.363756299,
-0.0378943048,
-0.1281223744,
-0.3695197701,
-0.0321029164,
-0.2308467478,
0.0703087375,
-0.1127632707,
-0.0981120914,
-0.1799512804,
-0.0321076885,
0.1058509126,
0.122322768,
-0.1785277724,
-0.0347803123,
0.3163147569,
-0.0391909368,
0.3434463143,
0.0592998751,
0.0938183889,
-0.2042819113,
0.4010345042,
0.1032168046,
-0.2929143906,
0.3866357207,
0.2231459618,
-0.1186928004,
-0.0734553412,
0.0201251861,
0.0247447174,
0.0631081983,
0.0930066481,
0.4289290905,
-0.1150059029,
0.0435726009,
-0.1596844792,
-0.1794782281,
0.0603448637,
-0.0714286491,
0.0728940964,
-0.2532199919,
0.231732145,
-0.2355698347,
-0.1013941988,
0.0414577909,
-0.1059641242,
-0.0669278279,
0.0172647275,
0.7841861844,
-0.1106735617,
0.6015791297,
-0.1010553762,
-0.3486662507,
-0.0605150163,
0.2454373688,
-0.0601604506,
-0.1274958551,
0.2383759171,
-0.0657187551,
0.1213703603,
-0.0068475753,
-0.0616918579,
-0.0566112362,
-0.0942696482,
-0.3269931376,
0.3027226329,
0.1651551574,
-0.30139485,
-0.3171466589,
0.1521596014,
0.2069497555,
0.1803201586,
-0.1959773749,
0.279946506,
0.0934669301,
-0.1397625059,
-0.5285358429,
0.0431032516,
0.803756237,
-0.1165576577,
0.0836318582,
-0.0647989884,
-0.2123403549,
0.0651606172,
-0.2847043872,
0.2285279632,
0.1364202946,
-0.0540830381,
0.0294560138,
-0.0028115942,
-0.2884871662,
0.0143233333,
0.3151855469,
0.0962370858,
0.2423920482,
-0.225209564,
-0.0160929486,
-0.2057079673,
0.1425431222,
0.1346213967,
0.4665715992,
-0.1037175134,
0.1235328019,
0.4220383167,
0.0214610416,
-0.0144516584,
-0.1236792281,
-0.1614875793,
0.6815996766,
0.3218708634,
-0.2997698486,
-0.2854649127,
0.5634614825,
-0.1164377853,
-0.2301303446,
-0.4375348687,
0.6853529811,
-0.3285284042,
0.2281907946,
0.5515842438,
0.7926334739,
-0.0096531073,
0.2065885216,
-0.3263477385,
0.1404919326,
0.595831871,
-0.1239839718,
-0.1427016407,
0.0330235139,
0.2338630855,
-0.3432448506,
0.221452415,
0.0697835013,
0.2556042075,
-0.7860975266,
0.3353565931,
0.1801730543,
-0.1527985781,
0.1167708933,
-0.0082782069,
0.388519913,
-0.4617995918,
-0.0048260894,
-0.0076273833,
0.1532489806,
0.1993294507,
-0.1854356676,
-0.0329359099,
0.5668463707,
0.1171776801,
-0.4333470762,
0.0316883512,
-0.258307904,
-0.3672168851,
0.0752778873,
-0.009667486,
0.731125176,
0.4217284024,
0.6386289001,
0.2278718352,
-0.2766391039,
-0.0145211471,
0.102805756,
-0.0718987659,
-0.3596818447,
-0.0008189083,
0.470901072,
-0.1251448393,
-0.3809985816,
0.2287143469,
0.0857181624,
-0.2684839964,
-0.1642095894,
-0.2814656496,
0.5577856898,
0.0331194773,
0.0293626972,
-0.011612935,
0.1737589538,
-0.1102288514,
0.0694145709,
0.1510993838,
-0.16516307,
0.0612508468,
0.2021571398,
-0.3422720432,
-0.028157847,
0.0646882504,
0.091955319,
-0.0822278708,
0.5879970193,
0.2623740137,
0.0200402793,
-0.1871555597,
-0.0087564448,
0.248351723,
-0.1598694026,
0.1676202565,
0.0919228122,
0.1605501026,
0.1754572988,
0.6059982777,
0.2905310392,
-0.2866261899,
-0.248162806,
-0.0358546153,
-0.2740084231,
-0.1466109902,
-0.1725731641,
0.1570887715,
0.21343714,
0.0523276627,
0.4901929796,
0.4139160514,
-0.1262047291,
-0.2374563217,
-0.2027713507,
0.164166227,
0.0826700404,
0.024398122,
-0.138100177,
0.042445682,
-0.0397879034,
0.2467681468,
0.3000514507,
-0.0380167998,
-0.1571830809,
0.1104031056,
0.002784176,
0.0456357226,
-0.1846472025,
0.1091514155,
-0.0080508254,
-0.0272236727,
-0.1992294788,
0.0547468625,
0.3115119934,
0.4729118645,
0.4307446182,
-0.154129982,
-0.3780580163,
-0.2686294317,
0.2248029411,
0.0470784009,
-0.0866401494,
-0.0844635963,
0.0088328719,
-0.1457205117,
0.0360587686,
0.1912050396,
0.5139394999,
0.1459177136,
0.065267697,
0.0956189111,
-0.099386394,
-0.1315357834,
0.0460898615,
-0.1848788708,
0.1676029414,
-0.3008456528,
0.5770235658,
0.0201424696,
-0.2226296514,
0.0027381724,
0.0728143901,
0.1160577759,
-0.0762044787,
0.0138385501,
-0.1462628394,
0.3463765085,
0.3239389956,
-0.1283792257,
-0.392029494,
0.2033094764,
0.0426401161,
0.4159965217,
0.2745645642,
0.1892275661,
0.2468418181,
0.2012287527,
0.4515756667,
0.508741796,
-0.1123404726,
0.0888401195,
-0.2122881413,
0.2115271538,
0.5340945721,
-0.1541146338,
-0.1312069446,
0.030442344,
-0.0124151381,
0.1880622655,
-0.0117499735,
0.5242725015,
0.2115656734,
-0.1821559221,
-0.301766783,
0.1600119472,
0.0822908804,
-0.4470413923,
-0.1828817129,
0.1288454682,
0.2121819556,
-0.0828191712,
-0.0785349384,
0.0438896343,
0.124126181,
0.2909132838,
0.3355185986,
-0.1258832067,
-0.0707309991,
0.0368156321,
0.3359085619,
-0.0366837345,
0.3192500174,
-0.1124021858,
0.1083969921,
0.0926404446,
0.412335068,
-0.0832279921,
0.15069215,
-0.1259782165,
0.1461829394,
-0.073251158,
-0.0132192643,
0.3068970144,
0.0166674424,
0.1719353944,
-0.0788678378,
0.3082801998,
-0.0208635665,
0.0020847996,
0.315661937,
0.0452642813,
0.3824549913,
-0.3345513642,
0.1478634626,
0.3477678597,
0.387969166,
-0.4021084011,
0.3009831607,
-0.4886256754,
0.4765599072,
-0.3405269384,
-0.3245190382,
-0.1606909633,
0.2350734025,
-0.0235534888,
0.0613738149,
0.411491245,
0.5823993683,
0.2130086422,
-0.0491894744,
-0.2652747631,
-0.1193497181,
-0.1415774673,
0.0590276308,
0.0451787151,
0.0604438372,
-0.2913476825,
-0.0414709933,
0.0329305492,
-0.0440394729,
0.0037752106,
-0.6597325802,
0.2102500051,
-0.2647413909,
-0.0164887607,
-0.0986363068,
0.2552069426,
-0.0948324651,
0.2848757207,
0.0068678856,
0.2559460998,
-0.1820854545,
0.2368064523,
0.0664249733,
-0.1656375527,
0.1881762892,
0.1926778257,
-0.1980175376,
0.186491698,
-0.1682225466,
0.3638272583,
0.0152521748,
0.0624061078,
-0.215135023,
-0.2940661609,
0.1702278703,
0.2356833518,
-0.1999232173,
0.2335379124,
-0.0017078245,
-0.1841318011,
0.1036588103,
-0.0436889604,
-0.5682257414,
0.0535771362,
0.1174619794,
-0.2165209502,
0.1294322014,
0.118778564,
-0.1587744206,
-0.0105821788,
-0.384224683,
0.0522069,
0.3020173609,
-0.0924395472,
-0.1122981086,
-0.3752433062,
-0.3578150272,
0.2979231477,
-0.2171178758,
-1.1201761961,
0.1488179415,
0.309051007,
0.3505091071,
-0.109713845,
0.2135537863,
0.1350746155,
0.1876410395,
-0.3854332864,
0.5604228973,
0.342128247,
0.0988505408,
-0.3323817551,
-0.2206932455
] |
https://github.com/huggingface/datasets/issues/2129 | How to train BERT model with next sentence prediction? | Thanks.
Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`? | Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
| 24 | How to train BERT model with next sentence prediction?
Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
Thanks.
Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`? | [
0.1056430787,
-0.4607717991,
0.015563231,
-0.0898428485,
0.0474330075,
-0.2899063826,
0.1532113403,
-0.0051718513,
0.0640042052,
0.12141902,
0.1853311956,
0.1281925142,
-0.1547513604,
0.1282217056,
0.3845977485,
-0.6245179176,
0.1314675212,
0.2932180762,
-0.0514883585,
-0.2433330268,
-0.1696437299,
0.0733770803,
-0.3516561985,
0.3405377865,
-0.2001278549,
0.2702138126,
-0.2841586173,
-0.2478071898,
0.0087691778,
-0.3340136111,
0.4047502875,
0.3907676935,
0.4258321822,
0.1643717736,
-0.0001291847,
-0.2329467386,
0.1147399098,
-0.3273888826,
0.1137859896,
-0.2843589783,
-0.3555466831,
-0.106097132,
0.2643418908,
-0.2460020781,
-0.2422992289,
0.538449645,
0.3581978381,
-0.3058199883,
0.524207592,
0.2908454239,
0.0144020841,
-0.2546211183,
0.3124652505,
-0.0208187476,
0.2348681837,
0.1671464741,
-0.0251936577,
-0.2216222435,
0.5485690832,
-0.2986631095,
-0.1138827577,
0.1442741156,
-0.0018347482,
0.0014027081,
0.2522638738,
0.2281707078,
0.1782477945,
-0.4217779934,
-0.1953303814,
0.3760997653,
0.800234139,
-0.3221178949,
-0.473965019,
-0.2419866323,
0.3371283412,
0.0954879671,
0.1255410314,
-0.3030330539,
-0.1238537431,
0.1631256789,
0.0612537749,
-0.5166056156,
-0.4674112499,
-0.0005797482,
-0.1490330547,
0.4557168484,
0.0035352097,
-0.1510752439,
0.2814888656,
-0.166658774,
0.092460826,
-0.0972437784,
0.0533187464,
0.482187748,
-0.1632688642,
-0.3454051018,
-0.4761659205,
0.0677623674,
0.0529342815,
-0.0808997229,
-0.1527080238,
-0.0065809768,
-0.3215614259,
-0.0709301457,
0.3516069651,
0.288074553,
-0.0382889323,
0.1914600432,
-0.2848030627,
0.0197165441,
-0.2681780457,
-0.1537959129,
-0.2019642889,
0.0399127156,
0.2256611437,
-0.0506862886,
-0.228921622,
-0.2590073049,
0.0584816262,
0.0120564848,
-0.3375008106,
-0.0117463414,
-0.0488629602,
-0.0032530786,
-0.1972685754,
0.3654837012,
0.0605772547,
0.1042164043,
-0.0432596803,
-0.1118821204,
0.1542614251,
-0.1464900225,
-0.3213075697,
0.5611477494,
0.0152224721,
0.087994583,
0.1360874325,
-0.2572858632,
-0.091307275,
0.035368789,
-0.2435014546,
-0.414981842,
-0.0002138547,
-0.0694689676,
-0.3622319698,
0.0641428754,
-0.1449045092,
0.4078867435,
-0.1863522679,
0.0402225256,
-0.1744343042,
-0.0844527408,
-0.1815867722,
-0.0750281438,
-0.0413934141,
-0.2907975316,
0.0477492325,
0.5946679115,
-0.0108277192,
-0.2039383203,
0.2527197599,
0.0989335924,
-0.4636229575,
0.1473244727,
0.1507644951,
0.2339981645,
-0.5984504223,
-0.3204488158,
-0.1350889802,
-0.0203734692,
0.024338292,
-0.1360595226,
0.2206619233,
0.3552303314,
0.0420453474,
0.1495953202,
-0.1622887254,
-0.2258413583,
-0.0467957184,
0.0574620366,
0.1385164857,
0.3321612179,
0.0013422783,
0.0143063609,
0.1212003678,
-0.0726613179,
-0.1335145235,
0.1792032123,
-0.0856364965,
-0.1414665878,
0.3205608428,
-0.1384385526,
-0.2136110067,
0.0385104381,
0.2292426378,
0.202278927,
-0.2451477051,
0.5747004151,
0.1156555936,
-0.1170083806,
0.1535998434,
0.017829502,
0.0713089705,
0.4100024998,
0.0239029191,
-0.3240314126,
-0.3736845851,
-0.0477182306,
0.0286678169,
-0.107270591,
0.1274759322,
0.1054652333,
0.0121551193,
0.1328710765,
-0.0856348276,
-0.1218089461,
-0.0996613652,
0.0531057604,
-0.1422732621,
0.076688692,
-0.3936299384,
0.1868790835,
0.1223073155,
0.1092066988,
-0.1749437153,
0.1587536931,
0.0218498018,
-0.0378622971,
-0.0522037558,
0.1195595413,
-0.00943055,
0.1290657818,
0.0670814812,
0.0998979732,
0.2876984477,
0.1083291993,
-0.0522971936,
-0.0948838219,
0.0758775696,
-0.3679950237,
-0.0043349862,
0.0837580711,
-0.0230585914,
-0.0889419168,
-0.0869565904,
0.0916653648,
0.559945941,
-0.0662253648,
0.0157277975,
-0.0259141531,
-0.1526124775,
0.0673015118,
-0.098756887,
-0.4773171544,
0.0501061268,
0.145509243,
0.3399933279,
-0.1226239353,
-0.1897746027,
-0.4507785141,
0.2656006813,
-0.1263484955,
0.2417236418,
0.6629157066,
-0.0783078521,
-0.0234728381,
-0.1915441751,
-0.3000425696,
0.070190683,
0.0617020093,
-0.0527050644,
-0.0462217517,
0.0219264608,
0.0213557016,
0.0432411768,
-0.0637599155,
0.2537963688,
-0.087478973,
-0.3057596087,
0.0475676805,
0.1360556036,
-0.3302100003,
-0.1117597148,
-0.0098610707,
-0.1607448757,
0.0375853889,
-0.2359710187,
-0.2540568411,
-0.1496948302,
-0.4255618751,
-0.0812163949,
0.3417155445,
-0.0035799686,
-0.3079099953,
0.1087584347,
-0.0709213912,
0.0714116991,
0.4477216005,
0.1611576378,
0.1817821711,
-0.248363331,
-0.1266450733,
-0.0054880879,
-0.0562205277,
-0.1853319556,
-0.1140364707,
-0.2734884918,
-0.0050241472,
0.0911661312,
-0.183285892,
-0.2373600155,
0.2947244346,
-0.1008454934,
0.0405861847,
0.3184699714,
-0.2300728112,
-0.1163908839,
-0.0433313884,
-0.0805317834,
-0.0763999298,
-0.1201317906,
-0.3259277046,
0.15786089,
0.1687268317,
0.279504627,
-0.0727301836,
-0.2464630753,
0.2916786671,
0.2228226215,
0.220952034,
0.0110418042,
-0.1808912307,
-0.0432181992,
0.1967170984,
-0.2912323177,
-0.0663996041,
0.1601237953,
-0.5610365272,
0.1195915937,
0.0951549187,
0.0408793092,
-0.455167681,
-0.0261341762,
-0.1833864897,
-0.2468454391,
-0.1003965437,
-0.2364138216,
0.0273861345,
-0.2666938901,
-0.0847502351,
-0.0711289123,
0.1564667225,
0.1362824589,
0.1602433473,
-0.1897277087,
-0.13249515,
0.4403708279,
-0.0629500523,
0.2673966289,
-0.0151512064,
0.0811433047,
-0.2939184606,
0.3493478298,
0.058695823,
-0.2686467469,
0.4846497178,
0.2132171392,
-0.0882053897,
-0.1651722789,
-0.0161854718,
-0.0867071897,
0.0082972962,
0.0832564309,
0.4489496946,
-0.1140032783,
-0.0129829878,
-0.224631235,
-0.2116997242,
-0.0043848227,
-0.0787049159,
0.0240180586,
-0.2155968696,
0.2518779337,
-0.240208745,
-0.0373714417,
-0.0661787689,
-0.0609553121,
-0.076606214,
-0.000437875,
0.7021431327,
-0.2040725201,
0.430075109,
-0.1523263752,
-0.3472482562,
0.0436212458,
0.2906056345,
-0.0336052068,
-0.1176431999,
0.1695074141,
-0.017006807,
0.1150401384,
0.1491371542,
-0.102486454,
-0.1103023663,
-0.0607236363,
-0.3613393903,
0.3181829453,
0.1899960637,
-0.274468869,
-0.3287581801,
0.1643839777,
0.2621649206,
0.0494755581,
-0.1573314071,
0.237976402,
0.0778620988,
-0.1574310064,
-0.4162977934,
0.1044441685,
0.6891819835,
-0.1487591863,
0.1067000479,
-0.1123583689,
-0.1162266508,
0.1644565761,
-0.1982582361,
0.0921156704,
0.1108337119,
-0.0500883274,
0.0315723009,
-0.0258048642,
-0.2509805858,
0.0666439161,
0.2289298624,
0.1841471195,
0.3121168017,
-0.1100040153,
-0.1405960023,
-0.2539543509,
0.0768571123,
0.1306895465,
0.5098466277,
0.0191490315,
0.1812545657,
0.365015924,
0.0297455695,
-0.0710016862,
-0.1195962131,
-0.0747350678,
0.6595300436,
0.2114694566,
-0.3762813509,
-0.3568400443,
0.5436472893,
-0.01967117,
-0.2051057667,
-0.2914197445,
0.6835458875,
-0.4077729285,
0.2534980774,
0.5497309566,
0.9744486809,
-0.0374594443,
0.2863142788,
-0.2648161948,
0.1990035027,
0.5697476268,
-0.1444058418,
-0.0742440894,
-0.0938630253,
0.1445074677,
-0.3599353433,
0.198639214,
0.1488520205,
0.3245766759,
-0.7072691917,
0.2890152037,
0.1858675182,
-0.0824411362,
0.0933630913,
0.0756097659,
0.3367232978,
-0.5600146651,
-0.1659640223,
-0.0831453651,
0.1920499951,
0.1824828088,
-0.1349290013,
-0.087946862,
0.5826053023,
-0.0210052803,
-0.4990074337,
0.0452833138,
-0.2814259231,
-0.2888804972,
0.0005390375,
-0.0347597264,
0.6878591776,
0.3567863405,
0.6128690243,
0.2255893201,
-0.2492447793,
-0.0071976366,
0.1721435934,
-0.150490731,
-0.2652729154,
-0.0764862224,
0.5720116496,
-0.1382042915,
-0.3254818916,
0.2795308232,
0.1015455201,
-0.3372759819,
-0.081886597,
-0.3989435732,
0.5842720866,
-0.0144159067,
-0.1239869222,
0.0598438196,
0.1022565663,
-0.197091639,
0.0016729122,
0.0871965736,
-0.1682986915,
0.1306881011,
0.1620142311,
-0.3973866701,
-0.0814886093,
0.1589454114,
0.0932040662,
-0.0849241242,
0.6222243905,
0.2137705684,
0.0519979633,
-0.216443643,
0.0564525872,
0.3421688974,
-0.336800307,
0.2119740844,
0.159910053,
-0.0201010238,
0.1936510354,
0.5828649998,
0.2529810071,
-0.1969833374,
-0.2264261842,
-0.1262505054,
-0.2213076651,
-0.129324168,
-0.1437803954,
0.2000528127,
0.2188761234,
0.0399120785,
0.4216784835,
0.3823932111,
-0.0677024573,
-0.2510088682,
-0.1276621968,
0.1136754677,
0.2548125088,
0.1491667181,
-0.03944562,
0.0981888399,
-0.06175524,
0.2860831022,
0.2141280472,
0.03487885,
-0.1573131531,
0.2046243548,
0.0016038356,
0.0094382474,
-0.1703867614,
-0.0169742871,
-0.1362680793,
-0.1141249016,
-0.1313110888,
0.0985913575,
0.2123114318,
0.4492025375,
0.3921932578,
-0.0584693551,
-0.2855447531,
-0.1886838228,
0.2176956534,
0.0627677366,
-0.0851581767,
-0.033264,
-0.0541751422,
-0.1285977811,
-0.034386538,
0.2448507696,
0.5551093221,
0.1981611401,
0.1298579574,
0.1563271135,
-0.1594552249,
-0.0969206542,
0.0731715336,
-0.051152084,
0.164090097,
-0.2559708059,
0.5922893882,
-0.0524083711,
-0.2567974031,
-0.07708285,
0.1780083477,
-0.0581968166,
-0.0812221244,
0.0298097879,
-0.1027335823,
0.3521799147,
0.2211383879,
-0.1163538247,
-0.424035877,
0.2813403904,
0.0834193006,
0.5365974903,
0.2504784465,
0.1899954379,
0.1743184924,
0.3043941259,
0.5802150369,
0.5396015644,
-0.094669655,
0.1569248736,
-0.1880415529,
0.2627655566,
0.5272640586,
-0.1657827646,
-0.0490095429,
0.0662337914,
0.0509973876,
0.18880409,
0.0240653325,
0.4067952931,
0.1684362441,
-0.134640649,
-0.4231345057,
0.2094094455,
0.1448745579,
-0.413307339,
-0.1138605401,
0.0826579034,
0.2206775397,
-0.0743773952,
-0.1168400124,
0.0290404297,
0.1580931246,
0.21919173,
0.3983957469,
-0.0463254824,
-0.0783949792,
-0.0547138043,
0.2943123281,
-0.0852542147,
0.2956568301,
-0.2421526611,
0.1789086014,
0.148941949,
0.4170616567,
-0.1188827753,
0.2679030299,
-0.1568501443,
0.0877337456,
-0.1292563379,
0.04783234,
0.1877610385,
0.0604901314,
0.2324232161,
-0.0659115613,
0.3413060009,
-0.0977269784,
0.0566998869,
0.2536099553,
0.12283241,
0.3264482617,
-0.2582108378,
0.2013040632,
0.3605730236,
0.3606326282,
-0.3829975128,
0.326838553,
-0.4427742958,
0.3775324523,
-0.2477121651,
-0.2968661785,
-0.1504547,
0.2291052341,
-0.0632223785,
0.0447387137,
0.4278228283,
0.5208469629,
0.2311287522,
-0.0574156381,
-0.2300029695,
-0.2174287438,
-0.0294764582,
0.1514997929,
-0.1182581112,
0.0844171122,
-0.2819281518,
0.0597909838,
0.0168073382,
0.0466315635,
0.0233681239,
-0.5602833033,
0.1847176701,
-0.1549168229,
0.0030544454,
-0.1352068037,
0.3056133389,
-0.0823098272,
0.0896469578,
-0.014675295,
0.2100080103,
-0.2170940042,
0.1330137551,
0.0821463987,
-0.1845585108,
0.2250218689,
0.2851873338,
-0.1943355054,
0.2990403771,
-0.2385917604,
0.3976640403,
0.0766032711,
0.0586293675,
-0.3067619205,
-0.1804476976,
0.3098559678,
0.1983599216,
-0.2711744308,
0.280654043,
-0.0728112608,
-0.1415166557,
0.1355857402,
0.040057309,
-0.6012181044,
0.1438586712,
0.0292281974,
-0.224384889,
0.1326211244,
0.1417178363,
-0.1705307066,
-0.0256199092,
-0.3078813553,
0.0602424331,
0.3240750134,
-0.1584223658,
-0.1222106442,
-0.383944571,
-0.2924030423,
0.2498105764,
-0.333562851,
-1.129283309,
0.1586370617,
0.3405270875,
0.2833712697,
-0.2243626416,
0.1930170655,
0.0710293502,
0.1255244613,
-0.3565335572,
0.5560403466,
0.2431779355,
0.1063826829,
-0.3350412846,
-0.2991438508
] |
https://github.com/huggingface/datasets/issues/2129 | How to train BERT model with next sentence prediction? | It would probably require a bit of tweaking, but you can apply it to a dataset, yes.
This should give you a new dataset with sentence pairs you can train a model on.
You can find the documentation about dataset processing here:
https://huggingface.co/docs/datasets/processing.html#processing-data-with-map | Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
| 43 | How to train BERT model with next sentence prediction?
Hello.
I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction
like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
It would probably require a bit of tweaking, but you can apply it to a dataset, yes.
This should give you a new dataset with sentence pairs you can train a model on.
You can find the documentation about dataset processing here:
https://huggingface.co/docs/datasets/processing.html#processing-data-with-map | [
0.2216069102,
-0.4078708589,
0.0245913938,
-0.1242587194,
0.0343488269,
-0.1844583005,
0.0904134139,
0.022120377,
-0.0510081649,
0.0038792149,
0.0329258516,
0.0937429443,
-0.1882499754,
0.173675254,
0.3407391906,
-0.6513745785,
0.1297620684,
0.1553863287,
-0.0457978584,
-0.0744867325,
-0.0303961616,
0.1138738692,
-0.2975049913,
0.386629045,
-0.2856273651,
0.1675779074,
-0.3479519486,
-0.1773996204,
0.0666725934,
-0.2951295078,
0.4142339528,
0.4732446969,
0.4460686743,
0.2521966398,
-0.0001230383,
-0.2152751237,
0.1302850842,
-0.3177434504,
0.2301832438,
-0.426196903,
-0.2667489052,
0.0393677652,
0.2027444243,
-0.126090467,
-0.3113479912,
0.5966157317,
0.2558300793,
-0.2117687017,
0.6537804008,
0.0716563165,
0.0451868102,
-0.1689055115,
0.2814647555,
-0.0095188292,
0.1461713612,
0.1682042629,
0.0512078889,
-0.0751748607,
0.624317646,
-0.3600687981,
-0.2291101366,
0.1985411346,
0.0063697048,
-0.0540353321,
0.2797681987,
0.2602437139,
-0.0144223813,
-0.384303987,
-0.289508611,
0.4200864732,
0.5511062741,
-0.3132856786,
-0.4524233639,
-0.2447676361,
0.2225977033,
0.1461894661,
0.0692786425,
-0.2382967323,
-0.1358789057,
0.2170274407,
0.0773825049,
-0.4006277621,
-0.3453341126,
-0.0312482901,
-0.1051411405,
0.3863507807,
-0.0517029278,
-0.1975742429,
0.3232110441,
-0.1545151323,
-0.0387741588,
-0.0306089837,
0.0835928395,
0.5048014522,
-0.2043062598,
-0.4376602471,
-0.3445561528,
0.2067996711,
0.0553342439,
-0.1207954586,
-0.2273673564,
0.0705552027,
-0.4263336957,
-0.1015718356,
0.4228083491,
0.2061455399,
-0.0779852793,
0.1655611396,
-0.2637425363,
0.03221865,
-0.2298647165,
-0.1523414403,
-0.0986553878,
0.0267325453,
0.0893842429,
-0.081266433,
-0.2630624473,
-0.2469583601,
0.1177515462,
-0.0168833565,
-0.253095746,
-0.0311102122,
-0.0024540098,
-0.0078827413,
-0.2393770069,
0.30827263,
0.0032434738,
0.1589820087,
-0.0273889508,
-0.0793851912,
0.1286916137,
-0.2796349227,
-0.2976552844,
0.5216559172,
-0.0006240067,
0.0101394448,
0.135413155,
-0.138097778,
-0.0575405695,
0.09338779,
-0.3288876414,
-0.312295109,
-0.1033509895,
-0.1362432986,
-0.402810663,
0.1046488136,
-0.0766848549,
0.4250041544,
-0.0973898098,
-0.014191838,
-0.2520746887,
-0.028615931,
-0.1406524628,
-0.0588147677,
-0.1818667203,
-0.3151634336,
0.1049207896,
0.5339119434,
-0.0480676554,
-0.2282017469,
0.0822866186,
0.2302292436,
-0.4096050262,
0.1246807948,
0.1977958828,
0.2521821856,
-0.4910140336,
-0.3078062534,
0.0736436993,
0.13200216,
0.0859720483,
0.0172372665,
0.1739123017,
0.1844780147,
0.0657805055,
0.1815824509,
-0.1284927428,
-0.1241847351,
0.0365565568,
0.078743726,
0.0417461358,
0.4049216211,
-0.134384349,
0.0324973539,
0.0313702114,
-0.1705058217,
-0.0235561412,
0.1146542206,
-0.1572644114,
-0.1915018559,
0.1869986206,
-0.1793526709,
-0.0607711785,
-0.0713656619,
0.0958516151,
0.2079958916,
-0.3159270883,
0.5599297285,
0.1924262792,
-0.0377026126,
0.0784757659,
0.0126633169,
0.0805467591,
0.491473794,
-0.0041997428,
-0.3462732434,
-0.197234109,
0.0738097206,
-0.0434002578,
-0.0861886218,
0.0072638318,
0.0966254026,
0.0237813424,
0.0962052718,
-0.0591679215,
-0.2067826092,
-0.0411680378,
-0.1293234527,
-0.1154088899,
0.0758730844,
-0.3743762672,
0.1479420811,
0.1461746991,
0.1246055886,
-0.1697931141,
0.2056622207,
-0.0149311153,
-0.0443594046,
-0.057247363,
0.1798472703,
0.0025718177,
0.0809474438,
0.1336020976,
0.1328281909,
0.1827091873,
0.1997074336,
0.0009618216,
-0.1804946661,
0.1244327128,
-0.3619656563,
-0.121142827,
0.0214710385,
-0.105013147,
-0.1291608512,
-0.1315609664,
0.1197166517,
0.4141707122,
0.0427774228,
-0.103767246,
0.0138473231,
-0.1520473063,
0.0279947706,
-0.0964467376,
-0.3477111459,
0.0861943439,
0.0540068224,
0.258962065,
-0.0506214686,
-0.1999684572,
-0.3999040723,
0.2041916847,
-0.099937804,
0.0958664939,
0.6327772737,
-0.1422078758,
0.0661652014,
-0.1307599396,
-0.2718037367,
-0.014898099,
0.104748033,
-0.0653660521,
-0.0913266465,
-0.0169510245,
0.0341923572,
-0.1671377271,
0.0311097503,
0.190568462,
-0.2052599192,
-0.2006828189,
0.142811209,
0.2093746662,
-0.2070286274,
-0.1485773474,
-0.0194258131,
-0.14356637,
0.0612079352,
-0.3151901066,
-0.4285086095,
-0.1279740483,
-0.4911927581,
-0.1034005806,
0.2582751811,
-0.0149432998,
-0.3871531785,
0.1514901221,
-0.0499116853,
0.1510235816,
0.284198612,
0.1946389973,
0.1277811974,
-0.2070508748,
-0.2238788158,
0.0237686243,
0.0494990908,
-0.0592209883,
-0.1773702949,
-0.2605481148,
-0.0906504616,
-0.0399957448,
-0.0956392512,
-0.312040329,
0.2897358239,
-0.2499189973,
0.1297581792,
0.294175446,
-0.0759725273,
-0.2079921514,
0.0435944423,
-0.0186339449,
-0.0096073467,
-0.0767074525,
-0.2290389985,
0.2426135838,
0.2458163947,
0.18509233,
-0.0338903815,
-0.2169886678,
0.3477905989,
0.3525299728,
0.1444897354,
-0.0369678959,
-0.114963077,
0.0262418948,
0.1613724083,
-0.3884991109,
-0.1641852111,
0.1081550941,
-0.5920630693,
0.1830577254,
0.1576794982,
-0.0129233347,
-0.3662765324,
0.013202941,
-0.1370257437,
-0.3882234693,
-0.0276669711,
-0.3468877375,
0.0962839574,
-0.0810798332,
-0.0687437579,
-0.1157954112,
0.0456661917,
0.1158962995,
0.1434840262,
-0.1767229438,
0.0795532167,
0.3418133259,
-0.0882979855,
0.3423986733,
0.0596094765,
0.1252829134,
-0.1889261454,
0.4627273679,
0.1235030368,
-0.2810502648,
0.3817256391,
0.1742735505,
-0.015312314,
-0.1077784896,
-0.0047320169,
-0.0573110208,
-0.0584738217,
0.1513928771,
0.3700024188,
0.0191862397,
0.055875577,
-0.1386032999,
-0.1250240356,
0.0858007073,
-0.1367910206,
0.0801763088,
-0.2657971978,
0.1514858902,
-0.190701887,
-0.1260730028,
0.0377777144,
-0.1597581059,
-0.0473717637,
-0.0175877642,
0.7697456479,
-0.1035645008,
0.5713797808,
-0.0400642492,
-0.4635261297,
-0.0110365003,
0.3162867725,
-0.167673558,
-0.1123739108,
0.1219649389,
0.0061177737,
0.1712805927,
0.1437925398,
0.0257677212,
-0.0948600844,
-0.1573240161,
-0.3071130812,
0.207015112,
0.2726217806,
-0.2748066187,
-0.3259215951,
0.2437616438,
0.2212953568,
0.1280035526,
-0.1737729907,
0.2057465613,
0.073567912,
-0.0985619873,
-0.4630936086,
0.0339650922,
0.7298449874,
-0.1961898804,
0.0703768879,
0.0374593325,
-0.1456704438,
0.1276286393,
-0.2202308029,
0.2877979875,
0.0883477628,
0.0621092394,
0.0453331694,
-0.0263222679,
-0.2703902125,
0.0158029888,
0.3881347179,
0.0416403227,
0.1126369536,
-0.0956168324,
-0.0024824447,
-0.2261904031,
0.0859420151,
0.1339312643,
0.4489894211,
-0.0524883941,
0.1700174958,
0.4762187302,
0.0810796767,
-0.0187655296,
-0.2345958948,
-0.0024600178,
0.6682594419,
0.3292627633,
-0.4029555917,
-0.2895727754,
0.5090532899,
-0.1143750027,
-0.2380095422,
-0.4068028927,
0.6209006906,
-0.3231638968,
0.1940323263,
0.442294687,
0.8429116011,
-0.088693209,
0.3112946153,
-0.3545755148,
0.0624653362,
0.7213709354,
-0.1341115832,
-0.1559299082,
0.0058308565,
0.2178887129,
-0.3336973786,
0.248853758,
0.0343314819,
0.2194343358,
-0.657143116,
0.3025608063,
0.1946094334,
0.0111523531,
0.1594287157,
-0.064263165,
0.4093574286,
-0.4654174447,
-0.0820051357,
-0.0213495847,
0.1665689945,
0.2705444694,
-0.1455815881,
-0.1580579132,
0.4408813119,
0.0572814979,
-0.5037369728,
-0.0270968229,
-0.2786689997,
-0.4037693739,
0.0886405334,
0.001583818,
0.6850600839,
0.42003721,
0.5400066972,
0.296240747,
-0.3583514392,
-0.0038298029,
0.0752430931,
-0.0949680135,
-0.2911289334,
-0.0247938093,
0.5104466081,
-0.1082376838,
-0.3413867652,
0.2263133079,
0.0795211941,
-0.3061785102,
-0.2628553808,
-0.243548274,
0.5197248459,
-0.0082628811,
-0.001437374,
0.0698681176,
0.1954889596,
-0.1484987438,
0.056469325,
0.1474275738,
-0.2316266894,
0.0120890709,
0.1262310743,
-0.2625082433,
-0.0406861156,
0.1699935496,
0.0744205564,
-0.1156328917,
0.5515829921,
0.3813834488,
0.0235723127,
-0.1429359466,
-0.0415317602,
0.287445128,
-0.3117373586,
0.1730521172,
0.1424445063,
0.1089015678,
0.1196544021,
0.5604649782,
0.3167203665,
-0.2096677125,
-0.1709755808,
-0.078963533,
-0.4202404916,
-0.1521323472,
-0.138285026,
0.0889522657,
0.2018939406,
0.2262877673,
0.4319852293,
0.4812995195,
-0.1335809976,
-0.1865678132,
-0.1568321586,
0.1854760051,
0.1668440551,
0.0507204607,
-0.0354780182,
-0.0340176895,
-0.0489810295,
0.3479297757,
0.2405828089,
-0.0315076075,
-0.1657156944,
0.1171114221,
-0.0828162506,
-0.0193189289,
-0.1044518948,
0.129505828,
0.0014495824,
-0.0560881048,
-0.1370191872,
0.123734951,
0.3126097918,
0.3356464505,
0.4685327709,
-0.1630621403,
-0.3651551902,
-0.2355746478,
0.2533028424,
0.0607486404,
-0.0653112456,
-0.1176356301,
-0.0481867827,
-0.1056727916,
0.0576904528,
0.2247028202,
0.5772362351,
0.0416004546,
0.0999542251,
0.1000927761,
-0.1463624388,
-0.0793783292,
0.1456747949,
-0.1524340212,
0.274912864,
-0.2594356239,
0.6059513688,
0.0132495547,
-0.2488039136,
0.121942468,
0.1560314596,
0.0712453574,
-0.0755534992,
0.0563121401,
-0.1663430929,
0.4083591998,
0.3118743896,
-0.1110294685,
-0.3372121453,
0.1957026571,
0.0659354925,
0.3942147493,
0.246223554,
0.1359489709,
0.2396060526,
0.1566777527,
0.4447753131,
0.407551378,
-0.2255685031,
0.1009692252,
-0.2790299356,
0.2017892897,
0.5044290423,
-0.1668917835,
-0.2003411651,
0.133330211,
0.1274662912,
0.2278029174,
-0.0769987553,
0.728439033,
0.1680294424,
-0.2433645278,
-0.2203660756,
0.3128037155,
0.0742326528,
-0.4544351399,
-0.127072528,
-0.0152983731,
0.1933591515,
-0.119228743,
-0.0843898579,
-0.019944381,
0.1979461461,
0.2530482411,
0.3101105094,
-0.18507047,
-0.139912039,
-0.0365394354,
0.3561720252,
-0.046529565,
0.2955492735,
-0.1366998404,
0.0691887289,
0.2079569399,
0.3479251564,
-0.0785521418,
0.155156225,
-0.0947597697,
0.1725800335,
-0.1646716446,
0.0695850253,
0.288903296,
0.0571301542,
0.1896819621,
-0.0453447811,
0.2990150154,
-0.0403401926,
-0.0271158107,
0.2549430728,
0.0124206096,
0.4369232655,
-0.3256868422,
0.1549675018,
0.2438474447,
0.3556315601,
-0.3943241835,
0.3008924723,
-0.4989354908,
0.4902073443,
-0.382558465,
-0.3178116381,
-0.1649125665,
0.2318497151,
-0.0218926147,
0.0985028967,
0.4464309216,
0.6065983772,
0.1910276264,
-0.1123101562,
-0.2440870851,
-0.229611665,
-0.1221582815,
0.1418819129,
0.0993729606,
-0.0558673218,
-0.3151008785,
0.0122432858,
0.0761608407,
-0.0800180659,
-0.0388823599,
-0.7266443372,
0.1229675338,
-0.2297173589,
0.0446917452,
-0.2524687946,
0.2073400468,
-0.0367168337,
0.3225854039,
-0.0386121124,
0.2700693905,
-0.1861474812,
0.1864188462,
0.0401762351,
-0.2238376737,
0.072681345,
0.1357154697,
-0.1165208369,
0.179551661,
-0.1516772807,
0.3388018012,
-0.0210340563,
-0.0172184873,
-0.2530868351,
-0.3071559668,
0.122631155,
0.2526158988,
-0.2492692769,
0.1780520827,
-0.0967135578,
-0.1678786129,
0.1459290534,
-0.0184513703,
-0.6037927866,
0.0245387889,
0.0723755732,
-0.2292446494,
0.1054956988,
0.2302973419,
-0.1658845246,
0.0361463539,
-0.3356177211,
0.0039454843,
0.3455247879,
-0.2045927346,
-0.0846923664,
-0.2976565957,
-0.3660682738,
0.3209733069,
-0.2705561817,
-1.1808879375,
0.0807427913,
0.2680935562,
0.3806758523,
-0.0940281004,
0.1979694068,
0.0488508604,
0.0961835235,
-0.3995481431,
0.5143039227,
0.3337180912,
0.110334225,
-0.2128125429,
-0.2657095492
] |
https://github.com/huggingface/datasets/issues/2128 | Dialogue action slot name and value are reversed in MultiWoZ 2.2 | Hi
Good catch ! Thanks for reporting
If you are interested in contributing, feel free to open a PR to fix this :) | Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial!
I spot an error that the order of Dialogue action slot names and values are reversed.
https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262 | 23 | Dialogue action slot name and value are reversed in MultiWoZ 2.2
Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial!
I spot an error that the order of Dialogue action slot names and values are reversed.
https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262
Hi
Good catch ! Thanks for reporting
If you are interested in contributing, feel free to open a PR to fix this :) | [
0.4248687625,
-0.3456932008,
0.017481396,
0.4803556204,
-0.2102745771,
-0.0071411864,
0.1827980876,
0.1119404435,
-0.100788489,
0.2386504561,
-0.35799101,
0.130564332,
0.02305362,
0.3927916884,
-0.0238378309,
-0.2758992314,
0.0942917094,
-0.0138568049,
0.0493687391,
0.1311448514,
-0.4356461763,
0.574742496,
-0.5933912396,
0.6446861029,
-0.1071594283,
-0.0142535064,
0.0634023622,
0.1111347824,
-0.0194262415,
-0.0573896505,
0.0214845315,
0.0864023715,
-0.0686786622,
0.3353704214,
-0.0001161957,
-0.2951158881,
0.2519222498,
0.1138677523,
0.0176503696,
-0.0307996441,
-0.2642219067,
0.0847943276,
-0.1248992011,
-0.1370584816,
0.2321759313,
0.1895439774,
-0.0746239349,
-0.0801591799,
0.2754888237,
-0.0784260184,
0.1157123297,
0.1648207158,
0.0357435904,
-0.0580537952,
-0.0215843208,
0.2198869735,
-0.082443364,
0.1995960772,
0.021218678,
0.1268389076,
0.0749811754,
0.341792047,
-0.2010031044,
0.0132197803,
-0.1365130544,
0.137437284,
-0.0064537795,
0.0807200894,
-0.0942604169,
0.3944841921,
0.1280013025,
-0.204323113,
-0.2542484105,
-0.3739621639,
0.2252255231,
0.0107930154,
0.2898101509,
0.362259239,
0.1570699513,
0.2073942721,
0.021898333,
0.2123635411,
0.2015575618,
-0.1239943281,
0.0848848522,
0.3029038608,
-0.1620904654,
0.0876526013,
-0.3311099112,
-0.2417793423,
0.0060684243,
0.2482507378,
-0.2515792549,
0.1156902462,
-0.4204526842,
0.2017873973,
0.0330349654,
0.3425070345,
-0.0098850792,
-0.1190017611,
0.2433529645,
0.10677623,
-0.1916662753,
-0.1237336919,
0.2064365149,
0.367493391,
0.3211268485,
-0.254106462,
-0.1370894164,
0.2693677545,
0.2884452045,
0.0714491084,
-0.0131937135,
-0.5080451369,
-0.2649770081,
0.0574991554,
0.3858119249,
0.0727551877,
-0.1866702437,
-0.1129763201,
-0.2294872701,
0.0604378656,
0.6087939739,
0.145861581,
-0.3165175319,
0.4559130371,
0.1828229576,
0.298594594,
-0.0327908099,
0.0739532411,
-0.03953683,
-0.2116193622,
-0.2245816737,
0.2388992161,
0.1142520159,
0.4980137348,
0.2482370138,
0.2565267086,
0.6652234793,
-0.0223226678,
-0.0490708388,
0.1431643665,
-0.0727882758,
-0.2191021591,
0.1980555952,
0.554035306,
-0.0875073299,
0.2238433659,
0.0393963531,
-0.0764857009,
-0.5501940846,
-0.1435858756,
0.1170962453,
0.1250047535,
0.0781773701,
0.101625137,
-0.0038581709,
-0.1853635311,
0.2374027967,
-0.1618608385,
0.1959505081,
0.1565701514,
-0.2136683315,
-0.1177011058,
-0.1799674928,
0.033536084,
0.2766272426,
0.0454832651,
0.1398198605,
0.0260126851,
0.0869098008,
0.2126457244,
-0.1619839966,
-0.1217641383,
-0.3524559438,
0.3236255646,
-0.104887411,
-0.593931675,
-0.0289267134,
-0.0806840956,
-0.3253732622,
0.0964090899,
0.20777753,
-0.0007429775,
-0.0522916764,
-0.2352713048,
0.3298335373,
0.0540410765,
0.2577144802,
0.2721785903,
-0.1492698491,
-0.255646348,
0.4765299261,
-0.3049313724,
-0.2597439587,
0.062231075,
-0.3183137774,
0.1614960879,
0.5554066896,
-0.0244312361,
-0.1462974399,
0.0587148741,
-0.1342421174,
0.1856335998,
0.4008898735,
-0.0592839792,
-0.2871948779,
0.1710007042,
-0.7374219894,
-0.1946219057,
0.2939947248,
0.0273175184,
-0.0290291179,
-0.0295995921,
-0.385755688,
-0.1096079573,
0.1072957292,
0.0746721923,
-0.1831604987,
-0.3749778271,
-0.2076358497,
0.7400956154,
0.0544770174,
0.1494106799,
-0.0958259478,
0.0385059267,
-0.001846103,
0.0911562443,
-0.0287444964,
0.30574283,
0.414157182,
0.1709282398,
-0.04306354,
0.6762661338,
-0.0163332298,
0.2083842903,
-0.0231601261,
-0.2112206966,
0.0802685767,
-0.0880829319,
0.2206206918,
0.0709039867,
-0.1941143721,
0.1024219915,
-0.1042681783,
0.6511008143,
-0.2412300855,
0.0029583122,
-0.0778317675,
0.0669839606,
-0.0248162653,
-0.0509845614,
-0.4145663083,
-0.2964112461,
0.1980011612,
0.0032163248,
-0.1446507573,
0.1842002273,
-0.4677924514,
0.0189948026,
0.5268552303,
0.0036458431,
0.1161580458,
-0.1344464719,
0.0493617319,
-0.1965812296,
0.1401631683,
0.3095349371,
0.2136597633,
0.1553582698,
-0.2179350704,
0.0333869383,
-0.1488153189,
0.0075617139,
0.2790915668,
-0.1165451929,
-0.0671329349,
0.125762105,
0.1785930693,
0.0813034698,
-0.0708082095,
0.5163918734,
0.2012718022,
-0.1768666655,
-0.4543137252,
-0.4007064998,
-0.3898670375,
-0.2114552408,
-0.3471463621,
-0.5310072303,
-0.2130122036,
-0.0491227023,
0.0900165811,
-0.16681467,
0.1789439321,
0.2162972689,
0.2227878869,
0.0556249879,
0.0094745178,
0.4551243186,
-0.1428205967,
0.1838766783,
0.0256183222,
0.000818806,
-0.379550904,
0.2141210884,
0.008938022,
-0.1296349615,
-0.2861485481,
-0.2201642394,
-0.3470645845,
0.1366155744,
0.0111504821,
-0.2331492007,
0.1379037648,
-0.0610329546,
0.3058900833,
-0.3460128307,
0.2869273722,
0.1975709647,
-0.0733104423,
0.2513199747,
-0.0523500741,
-0.1882900894,
-0.2862947583,
-0.0519896708,
0.1491797417,
-0.0457233042,
0.5657226443,
-0.0610190295,
0.1535641253,
0.2129760087,
-0.4396946728,
-0.1446074247,
-0.3862576187,
0.3639066815,
-0.3491978347,
-0.3759963214,
0.2740387022,
-0.2382833362,
-0.0076245079,
-0.2874042988,
0.0802443996,
0.0812307671,
-0.2473167926,
0.2349970341,
-0.428889811,
-0.2434293032,
-0.22023727,
0.2920056581,
0.0149218077,
0.1497978121,
0.1676970869,
0.0371947996,
-0.2795480788,
-0.3579644561,
0.4529718757,
0.4093856215,
0.3168848455,
0.1465578973,
-0.3183180988,
0.1441505849,
-0.131505385,
0.1915722936,
0.4237494469,
-0.0403437279,
-0.0546637625,
-0.1575850546,
0.0940186158,
-0.4223304093,
0.4233853519,
0.092975691,
0.2533916235,
0.1302946806,
0.1842267215,
-0.0053370688,
-0.0324564502,
0.2600782514,
-0.5889775753,
-0.2407676578,
-0.4462687969,
0.1636607945,
-0.0769674256,
-0.0008848017,
-0.1493412852,
-0.3815714419,
-0.0077781756,
0.3646035492,
-0.0682365298,
-0.1093361303,
-0.2107598931,
-0.2921127975,
0.0683451816,
0.0984131023,
0.0979405791,
-0.0030867988,
0.0732311904,
0.2095303982,
-0.0111974338,
0.0909684151,
-0.0722902939,
0.8490328789,
0.3808694184,
0.1589617133,
-0.1371573806,
0.0585927665,
-0.3818632066,
-0.3467119336,
-0.2079804838,
0.2196668684,
0.1029149592,
0.2258723676,
0.0135819186,
-0.3630977273,
0.3829049766,
-0.4260432124,
-0.1406195909,
-0.2655020058,
-0.0273052473,
0.3439024389,
-0.1893530339,
-0.4021933675,
-0.1628117114,
0.1936213225,
-0.0712735504,
-0.2060951442,
0.2878334522,
0.0196365304,
0.1206154153,
-0.0654530749,
0.2733000815,
0.3706093431,
-0.0706127658,
0.1210651398,
0.2503652871,
-0.1985105872,
-0.0920987055,
0.2520001829,
-0.1673199087,
-0.1930324137,
-0.31559062,
0.0780282542,
0.5454152822,
-0.3548976481,
0.1936653554,
-0.0591129623,
0.3458315134,
-0.1893556118,
-0.1768039763,
0.6700113416,
0.2171915323,
0.0598327219,
-0.2858711183,
0.0723924562,
0.0444635972,
-0.3967033625,
0.1601859927,
0.3718762398,
-0.227028951,
-0.3977588713,
0.0656136051,
0.9026181698,
0.0739224702,
-0.0204972923,
0.5355346799,
-0.2725101709,
0.1874361634,
-0.0083451597,
0.0144129479,
-0.0275000222,
0.2743515968,
-0.025842065,
-0.0873967484,
-0.0741569772,
-0.0525763445,
-0.3574899435,
0.1298760772,
-0.0773586929,
-0.2054112703,
-0.3921938241,
-0.2816849351,
-0.0590479039,
-0.4611427188,
-0.1275649071,
0.0406198502,
0.0264171977,
-0.0352803916,
-0.1628303975,
-0.1320152283,
0.116528444,
-0.0537403598,
-0.2162319571,
0.0781157538,
-0.6180946827,
-0.117308192,
0.3643266261,
0.1441090852,
0.0489350818,
0.7493512034,
0.3992193639,
0.1004934162,
-0.1019068286,
-0.0346714295,
0.038058728,
0.1468996555,
-0.2057354599,
0.2596022487,
0.0500524491,
-0.0948388726,
-0.2738463581,
-0.3900846243,
0.2031745762,
0.2213354707,
-0.2702946961,
0.1476625651,
0.1704063118,
-0.1550690234,
-0.1391902566,
0.2486211658,
0.3979618549,
-0.1134907156,
0.0703731701,
0.0325254947,
-0.2852580547,
-0.0750055611,
-0.1604663283,
-0.1852906495,
-0.0326345079,
0.3739663661,
-0.0991980359,
-0.2063402683,
0.2567953765,
0.3225005865,
-0.0970664024,
0.044321917,
-0.0425856486,
-0.2275399119,
-0.1387377679,
-0.0276305024,
0.2397425026,
-0.378475666,
-0.1364810467,
0.0608386844,
0.2178943902,
0.3661234081,
0.0013343581,
-0.1555373967,
-0.1057622209,
0.2193026096,
0.2386518717,
-0.2483077198,
-0.1474939436,
0.0229121912,
0.2719471455,
-0.0955518261,
-0.2666561007,
0.2250197381,
-0.0137288347,
0.1234968528,
0.0806683525,
-0.2712791562,
0.047258798,
0.0140386168,
0.1686255783,
-0.2445577234,
-0.0775926709,
-0.1566590965,
-0.2303314507,
0.0986046717,
-0.1059732437,
-0.1805459261,
0.2839008272,
-0.3058715761,
-0.0257988088,
-0.178396374,
0.0310362726,
0.5340153575,
0.1980639547,
0.3427361846,
0.0737952515,
-0.2695976198,
-0.0548846386,
-0.016934501,
-0.1495076418,
-0.2583516836,
-0.1543709189,
-0.0108810607,
-0.3470701277,
-0.0255423114,
0.2065117806,
0.1599380523,
-0.0566158667,
0.1992519796,
0.0756701306,
-0.4159168601,
-0.0555664375,
0.2746033669,
0.3202621639,
-0.2126526982,
0.1599388272,
-0.0379316583,
-0.0689278394,
0.1196048334,
-0.1338178068,
-0.1015199348,
0.1273592412,
-0.1396163255,
-0.1532641351,
0.0211791135,
-0.4035211504,
-0.0985617414,
0.0096173789,
-0.0531240888,
0.0245268792,
-0.3315932453,
0.122282818,
0.0853317976,
-0.116404146,
0.2402064949,
0.3083595335,
0.1164841428,
0.1611386687,
0.1334276199,
0.3029759228,
0.0237991158,
0.0805649236,
0.461953789,
0.4842875898,
-0.1208142564,
-0.4640150666,
0.2537320852,
-0.2379836291,
0.1630961001,
0.1570439041,
0.6198297143,
-0.1227151603,
-0.0865097418,
-0.3934354484,
0.3281670511,
-0.206782043,
-0.3310200274,
-0.2828934789,
-0.0322404206,
-0.1390279382,
-0.2844770849,
-0.0741892457,
0.2360836118,
0.4354280531,
0.1857910156,
-0.12638399,
-0.5862569809,
-0.2476722002,
0.1614829153,
0.1531928927,
-0.2323201001,
0.2458813787,
0.1750435829,
-0.0998740718,
0.2778572738,
0.4051599205,
0.1902061552,
0.3123471737,
-0.092378214,
-0.0362783,
0.0800685063,
0.043013446,
0.0009693493,
-0.1873482019,
0.2856105566,
0.2895579934,
-0.0567994155,
0.0739883035,
-0.1955511421,
0.1364592165,
-0.0608528852,
0.2052820176,
-0.122984387,
0.3780430555,
-0.4240852892,
-0.0320695601,
-0.2460832298,
0.0847505182,
-0.4977922142,
0.0217532627,
-0.1338017136,
0.0879796445,
-0.0383847542,
0.1069187894,
0.067704834,
0.3495079875,
0.2672060728,
0.203305468,
-0.0520669781,
-0.0190249216,
-0.0816773325,
-0.2635882199,
0.0648217499,
0.5914785266,
0.4455242157,
0.1026993096,
-0.0389799587,
-0.0654779524,
-0.2587242723,
0.3318721354,
-0.08064913,
0.0748649165,
-0.0159802586,
-0.3904721141,
0.3514467478,
0.4120182395,
0.1034910008,
0.2982916236,
0.0427884907,
0.1380148232,
0.0990965217,
-0.0682737604,
0.1041039899,
0.3699243367,
-0.2538021505,
-0.462038666,
-0.0537598506,
0.0715955421,
-0.1099156439,
-0.0680901259,
-0.062855117,
-0.0639535487,
-0.0505754948,
-0.1750562191,
-0.2207092792,
-0.3777938187,
0.3229451478,
-0.2659553289,
-0.0538448058,
-0.1311864257,
-0.1632923484,
0.0874983668,
-0.1817828566,
-0.483510077,
0.4868102372,
0.187500149,
-0.0776987076,
0.1575499773,
-0.0747748762,
-0.0410983972,
0.2436164618,
-0.035681501,
-0.2809415162,
0.5687159896,
-0.2521860301,
-0.0559186265,
-0.1319845766,
0.4510649145,
-0.3866220117,
-0.1106126159,
-0.2237984538,
-0.0065837274,
0.0902522802,
0.1736411303,
-0.1896890551,
0.2094056606,
-0.1601659209,
-0.2573343217,
-0.1231330931,
-0.0099010998,
0.5217806697,
-0.3492457569,
0.2818294168,
0.1111742631
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Hi,
sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with:
```bash
pip install git+https://github.com/huggingface/datasets
``` | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 26 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Hi,
sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with:
```bash
pip install git+https://github.com/huggingface/datasets
``` | [
-0.0816878304,
-0.0280800704,
-0.0464758538,
0.4495637715,
0.2806960046,
0.1159588397,
0.3161947727,
0.17786102,
0.2470398396,
-0.1171151102,
0.1766639948,
0.1722978055,
0.11423444,
-0.0033534069,
-0.168628633,
-0.1824518144,
-0.0154064838,
-0.0730276853,
0.0597671308,
-0.1803476661,
-0.0259092748,
0.2145033926,
-0.1021221131,
-0.1298861653,
-0.2996248007,
0.1392066926,
0.0705756396,
-0.0579683371,
-0.2835350335,
-0.0846158862,
0.5160742402,
0.0152688837,
0.0541248955,
0.3606872559,
-0.0001191775,
-0.0883908197,
0.4347234666,
-0.0755547136,
-0.0962896124,
-0.4143655002,
-0.1749695092,
-0.4833082259,
0.1066899598,
-0.2166324407,
0.1262152642,
0.3857176602,
-0.0858345032,
0.1857328415,
0.055199977,
0.0067075524,
0.1897130758,
0.3324501812,
0.1076215729,
-0.0123927146,
0.1707161963,
-0.4481360614,
-0.2214538604,
0.003313648,
-0.1796578467,
0.1315108687,
0.0395614244,
0.194448337,
-0.0939044505,
0.3865467608,
0.1432817578,
0.1656977832,
-0.1127324551,
-0.5313156843,
0.3458316624,
0.3503460586,
0.7223213315,
-0.1362184733,
-0.4294936955,
-0.1829381585,
0.0109779695,
0.0725167692,
0.1456314772,
0.4450261295,
-0.436717689,
0.0626264885,
-0.4804293811,
-0.0108170686,
-0.0504397787,
0.1969975978,
-0.277985096,
0.1538722515,
-0.1802169383,
0.0275483672,
0.0224015061,
-0.019343216,
-0.5223582387,
-0.2752559781,
-0.190045163,
0.3314401209,
-0.3189226687,
0.1227754354,
0.0755733177,
0.2214292139,
0.3313712478,
0.3213435411,
0.0606176108,
0.2102868259,
-0.2032126486,
0.0687994882,
0.1237715334,
0.3406436145,
-0.0189022124,
-0.389757365,
0.2435053438,
0.145523265,
-0.0094319163,
0.0612484701,
-0.1362195611,
-0.0531071126,
0.2008864433,
-0.3221498132,
0.1496374309,
-0.1072724834,
-0.1480017304,
0.3196871281,
0.180312559,
-0.0844290331,
-0.1269766688,
0.2217448801,
-0.3037920892,
-0.1206939071,
-0.1747682095,
0.3599666655,
-0.1778770238,
0.150255233,
-0.0383375585,
-0.1955487877,
-0.0761462301,
-0.0892636552,
0.293659687,
-0.3465346694,
0.4333967566,
0.1367745101,
-0.1526526511,
-0.116911307,
-0.1287564337,
-0.0390418172,
0.0981972739,
0.3059735,
0.1316252202,
0.8464611173,
-0.0953703448,
-0.1950018257,
-0.0023446593,
-0.0219803639,
-0.2224004716,
-0.172191456,
-0.1615699381,
0.1161727682,
-0.5253877044,
-0.2442699224,
-0.0805347338,
0.2623372972,
0.1820070893,
-0.1339115798,
-0.0498560071,
0.0547219589,
0.0323239714,
-0.2065603435,
0.5081896782,
0.6407994628,
-0.1834062785,
-0.0922176316,
-0.0692975298,
0.0496929213,
0.4750284553,
0.0278593916,
0.0567068048,
-0.2645195723,
-0.076245755,
0.3398238122,
0.1568063498,
0.0418996625,
-0.6642845869,
0.2593209147,
-0.1147141606,
0.3474900126,
0.045728866,
0.1448652595,
0.0791681856,
0.2138335854,
-0.2915183902,
0.2178662568,
0.0779673383,
-0.1681087017,
-0.3459098935,
-0.506344676,
0.0326995924,
0.0652403682,
0.1050836816,
-0.0352259837,
0.0922687799,
-0.0297135729,
0.3413635194,
0.276887536,
0.2760127485,
0.1004939377,
0.1694338918,
-0.1927230954,
-0.0391565487,
-0.1571121514,
-0.0986687988,
0.4336701632,
0.5681738257,
0.0755830184,
-0.0403054841,
0.052933652,
-0.2321745157,
-0.0986361802,
-0.2844692171,
-0.0613789856,
0.0320412926,
0.136615485,
0.2758429646,
0.3003490269,
0.0641756132,
0.0588753894,
-0.0273835156,
0.0769524574,
-0.0364974588,
0.180566892,
0.1156973988,
-0.1536080539,
-0.1736179143,
-0.0380755328,
-0.0246204119,
0.1201031506,
-0.174036026,
-0.0016026597,
-0.2524647415,
0.1376882344,
-0.0011994937,
-0.0421973057,
0.1814184785,
0.0924867913,
-0.0820012018,
0.0342545807,
0.1587934643,
0.0240617767,
-0.048247885,
0.1165841594,
0.1964153498,
0.3760879338,
-0.0156624187,
0.1976143122,
0.3015956283,
-0.0230616722,
-0.0101589374,
-0.0483589023,
0.3486323655,
-0.2917574346,
-0.0928584114,
-0.0529287383,
-0.1222145185,
0.2972128093,
0.5440855622,
0.1440678239,
0.1042795256,
0.2706978619,
-0.3404788673,
0.0580158383,
0.0074606314,
0.5212213993,
0.2717374265,
0.1254092902,
0.2412411571,
-0.3357158005,
0.0227843598,
-0.2253905535,
0.0504493788,
0.3411956429,
0.0310134571,
0.4100658596,
0.1152252704,
0.1589039564,
-0.1292013377,
-0.000782804,
0.0924941003,
0.1012290493,
-0.0613566749,
-0.0827759653,
-0.2790412307,
0.2550800443,
0.0191331021,
-0.4520639479,
-0.1873601228,
-0.1690168083,
-0.1112912893,
0.0601357743,
0.0149314506,
-0.0829624012,
-0.1273138374,
-0.1843732893,
-0.0779939368,
-0.466127187,
-0.3761636615,
-0.0393189527,
-0.3338097632,
-0.0543679446,
0.1349696219,
-0.1055982187,
0.340326637,
-0.1259236783,
0.0895537362,
-0.1539133191,
-0.2383001,
0.0364204533,
-0.0391557813,
0.4648873806,
-0.2274120152,
0.4167214334,
-0.2183639258,
-0.0946405604,
0.2081888914,
-0.0117890742,
0.0117487712,
0.1601531804,
0.1084004566,
-0.1841400117,
-0.1214254275,
-0.2491451204,
-0.337025106,
-0.3670068085,
0.0554953031,
0.1750670671,
-0.06031527,
0.1239497587,
0.2380943,
0.0504881963,
0.0789693072,
0.0597547889,
-0.054667145,
-0.3152784407,
0.7877444625,
-0.0981073081,
-0.4563618004,
0.2528220713,
0.0194496028,
0.3236150146,
0.1190218255,
-0.5418383479,
0.1938306242,
-0.207599014,
0.2528557479,
0.3119234145,
0.1334058642,
0.0659780577,
-0.3006308675,
0.085057959,
-0.14488478,
-0.0648223162,
-0.051827997,
0.0345305167,
0.2522465289,
0.0448783711,
0.2808902264,
0.0730525255,
0.8497205973,
0.3471907377,
-0.1278252602,
0.4330371916,
0.0222699437,
0.1222642139,
0.0275239628,
-0.216203779,
-0.1881281585,
-0.2801279128,
0.1928050518,
0.1971000582,
0.2568852305,
-0.1927204281,
-0.070579201,
-0.0354844034,
-0.4562741518,
-0.3566127419,
-0.1564673334,
0.174946472,
0.0198501907,
0.252876848,
0.3252741098,
0.0419689827,
-0.3157899678,
0.0709477812,
0.6042260528,
-0.018089857,
0.1327617466,
0.0960056111,
0.0963846892,
-0.6682865024,
0.0801898018,
-0.0731346905,
0.0524439476,
-0.0586328395,
0.0750324354,
0.1558500081,
-0.1677347273,
0.2104663998,
-0.1685735881,
0.1192499772,
-0.1813424379,
-0.1501007676,
-0.2522386611,
-0.1885751337,
0.0301534217,
-0.0170999002,
0.4971932769,
0.0676606819,
-0.3547146916,
-0.0469293781,
0.0319272988,
0.1990063787,
-0.1385646313,
-0.2439803183,
-0.2731690407,
-0.4530651867,
-0.3138136566,
-0.161962375,
-0.1599070281,
0.3852407038,
-0.1853050292,
-0.2951051593,
-0.0774151981,
0.249599129,
0.1731642485,
-0.0336133949,
0.3335487545,
0.1254875213,
0.4604848921,
0.0982633233,
-0.0491276309,
-0.2059219033,
0.5613111258,
0.2876954079,
0.0040215538,
0.0403386913,
-0.3094997704,
0.0059943823,
0.2227887362,
-0.194359377,
0.0088877594,
-0.0427964292,
0.2556531727,
-0.2304718047,
0.0044156038,
0.2676949501,
-0.043906536,
-0.1657658964,
-0.3439023495,
0.711081326,
-0.1870895624,
0.0073708612,
0.1814474165,
0.319311887,
0.110846512,
0.1971047819,
-0.1053671017,
0.7823934555,
0.031027779,
0.0068508117,
0.0907241777,
0.0066085439,
0.4280933142,
-0.1839737296,
0.1017168686,
-0.2968288064,
0.1675539017,
-0.1127451584,
0.0654989928,
-0.1194291487,
0.0317773186,
-0.1100662947,
0.1077061743,
-0.1043974608,
0.2221236825,
0.0014603068,
0.0588447377,
-0.4258776307,
-0.1570961177,
-0.0271795727,
0.1052967086,
0.0811593235,
0.6855869293,
0.0226785671,
-0.2424749732,
-0.2606496811,
-0.1097197235,
-0.6135616899,
0.1031906903,
0.050034143,
-0.1013251469,
-0.1435425431,
-0.4398382604,
0.010419297,
0.4039468467,
0.0100890351,
0.1477422416,
-0.3837983906,
0.2592805624,
-0.3560681045,
-0.0807947814,
0.157389015,
-0.0986841097,
0.0980851203,
-0.2220794559,
-0.2630310059,
-0.0520918779,
-0.1026495248,
0.2872571647,
-0.1842314899,
0.099395588,
0.1668802947,
-0.0009769122,
-0.3264903426,
0.089921616,
-0.0364115462,
-0.1096256524,
0.1086656973,
0.1119769812,
0.0754053816,
0.2290828973,
0.1139524058,
-0.265391171,
-0.2274805307,
0.4559679329,
-0.2483863384,
0.1248020679,
0.3189177811,
-0.0318281762,
-0.2407341897,
-0.0966909155,
-0.1099539176,
0.0359343737,
-0.720713973,
-0.2418966144,
0.0526489802,
0.3125579357,
-0.115377821,
-0.116701372,
0.1347850263,
-0.4312650263,
-0.2894400954,
-0.4584361017,
0.1800460219,
0.1059935987,
-0.0408893041,
0.1017270014,
-0.4367369711,
-0.4332708418,
0.3100472987,
0.0761300623,
-0.1704941392,
0.0007380798,
-0.1080608964,
-0.1516112834,
0.2151228189,
0.2728159428,
0.2304780483,
0.0991626084,
-0.0150700826,
0.0801521242,
-0.1900811642,
-0.1383890957,
-0.1702752858,
0.1958659887,
0.1405549347,
0.0211826805,
0.1988040507,
-0.089455016,
-0.2101029158,
-0.1073057503,
0.2127431482,
0.0108346604,
-0.0449900366,
0.0538580865,
0.0654747412,
0.4179031849,
-0.4134479165,
0.1011989713,
-0.0769583881,
0.8318884373,
0.0498322397,
-0.0228618495,
0.5013241768,
0.118173793,
-0.1698733121,
-0.1642747223,
-0.0966286212,
-0.1165248379,
0.3193698823,
-0.2874977589,
0.4792014956,
0.1438089758,
0.1256595254,
0.3302174509,
-0.0593108423,
-0.0504486226,
0.2003551424,
0.2262880057,
-0.1359416842,
-0.1441453844,
0.0161875505,
0.0286669787,
-0.0199426133,
-0.080739364,
0.1297764778,
-0.2770057619,
-0.2101167887,
0.0414085239,
0.5093349814,
-0.1377753168,
-0.1708634049,
0.4947824776,
0.0559076779,
0.317950964,
-0.049751021,
-0.0534836836,
-0.1506354064,
0.3966701627,
-0.1369426548,
0.3893030286,
0.0201557931,
0.1261624396,
-0.4025038481,
-0.479663372,
-0.0644202307,
0.0733943135,
-0.123062849,
0.2888693213,
0.0823752508,
0.3891579807,
0.075861901,
0.0047954344,
-0.4773795307,
-0.0159605611,
0.040885359,
-0.0841687247,
0.0504668504,
-0.3593043387,
-0.1800889969,
0.3654737771,
0.0755968839,
-0.16843988,
0.3236729503,
0.1039578095,
-0.1719412506,
-0.6745162606,
-0.0464282185,
-0.0719369948,
0.0678932443,
-0.2763383687,
0.0687301159,
0.2137110829,
-0.1565643996,
-0.0731754303,
0.0783226117,
0.3924456239,
0.3857094646,
0.0832014084,
-0.0141663812,
0.0295006279,
-0.0373413712,
-0.2444291115,
0.3866625428,
0.2492735982,
-0.0398112275,
0.1174168363,
0.0938088149,
-0.2524933219,
0.1372157186,
0.0313972682,
-0.0366427302,
-0.2242297381,
0.6495133638,
-0.3568858802,
0.1387888044,
-0.130610019,
-0.3363532722,
-0.3808220327,
-0.0296451729,
0.3237258494,
0.0874636173,
0.0638080388,
-0.3256822526,
0.0342922918,
-0.2143956423,
0.2552115619,
0.1064571813,
0.1482558995,
-0.2821869552,
0.0813383684,
-0.7299488187,
-0.0173945501,
0.1375166327,
0.0214740951,
-0.0583586134,
0.29935655,
-0.2897752225,
0.150723055,
0.2090245038,
-0.0964548662,
0.2572150826,
0.3506222367,
-0.2775312066,
-0.0317808986,
-0.3194120228,
-0.0132924197,
-0.0751288384,
-0.2688683569,
0.278760612,
-0.5796875954,
-0.0678596646,
-0.065175578,
0.0039571724,
0.1840031594,
-0.3104123175,
0.7294006348,
0.0280631129,
0.3549131453,
-0.081679143,
-0.1018688604,
-0.392945081,
0.0522322841,
-0.0009313516,
0.1937032044,
-0.1403042078,
0.2974936962,
0.0782982633,
0.0930250138,
-0.1326320022,
-0.1125838012,
0.1230458915,
0.2825123668,
0.0001770916,
-0.3003874123,
-0.0445052348,
0.0881563351,
0.2207863927,
0.3169259727,
-0.1306288242,
0.1751397103,
-0.196404323,
-0.2953553498,
0.3967742324,
-0.3647973239,
-0.1716310829,
-0.0875280946,
0.1622873247,
0.3407032192,
-0.0746820495,
-0.5330121517,
0.0122239264,
0.2591093779,
-0.1060752124,
-0.2506811917,
0.1562739015,
0.0640463158,
-0.1545906961,
-0.0293871649,
0.2450345308,
0.031132903,
-0.3094675839,
0.3645014465,
-0.1493779868
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Is there an error message ?
What stacktrace do you get if you interrupt the execution of the program while downloading ? | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 22 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Is there an error message ?
What stacktrace do you get if you interrupt the execution of the program while downloading ? | [
-0.1321627349,
0.0142392963,
-0.0815601721,
0.4399940968,
0.2992445529,
0.1402181685,
0.3794735372,
0.1477880925,
0.2320192009,
-0.0426291712,
0.2344710231,
0.1440672427,
0.1074129865,
-0.0218768213,
-0.1961920857,
-0.1418477297,
-0.0774906278,
-0.0699519292,
0.1331875771,
-0.1573003531,
-0.0862877071,
0.1746143401,
-0.1601430774,
-0.040290948,
-0.282252878,
0.0316645242,
0.125202015,
0.0306358356,
-0.2620682418,
-0.1533478647,
0.5731248856,
0.0543963127,
0.0777290389,
0.4127719402,
-0.0001159479,
-0.0370517522,
0.4838813841,
-0.08064235,
-0.0932806507,
-0.4343474209,
-0.2929490507,
-0.4289579391,
0.1403424144,
-0.3042383492,
0.2589862049,
0.3699573576,
-0.0471937209,
0.1229423955,
0.1223151982,
0.0604699254,
0.203327328,
0.2653100789,
0.0952296332,
0.0126960305,
0.261367619,
-0.5051375628,
-0.1550694257,
0.0339410193,
-0.2403397709,
0.2069717199,
0.0613535307,
0.1425447464,
-0.1477520764,
0.4220527709,
0.0742655993,
0.1051860601,
-0.0462689921,
-0.6357186437,
0.3205803335,
0.4154240489,
0.7859740257,
-0.0836302042,
-0.3444288373,
-0.0804108754,
0.0373602398,
0.0171117261,
0.136855334,
0.4656034112,
-0.476764977,
0.0495456941,
-0.3980371356,
0.0067692525,
-0.0405778252,
0.1948127449,
-0.311548233,
0.1401274502,
-0.1546679437,
0.0738654211,
-0.0989532471,
0.0863773897,
-0.2981096804,
-0.3427291214,
-0.1150038913,
0.2818670869,
-0.465418011,
0.1156439036,
0.1317996532,
0.0213569663,
0.2442522496,
0.2795454562,
0.0694083571,
0.2185827494,
-0.17330724,
0.1026939824,
0.2011170387,
0.2909261882,
-0.1033418849,
-0.3722576797,
0.2547002733,
0.1148326322,
0.0021215715,
0.0427103154,
-0.1206839159,
0.0035355028,
0.2396791428,
-0.2869571149,
0.2340713143,
-0.1200399697,
-0.2040834725,
0.3872784078,
0.0314215533,
-0.0665430129,
-0.1857516319,
0.2559367716,
-0.1681705564,
-0.088112466,
-0.1446922123,
0.3099093735,
-0.1549852341,
0.1047627851,
-0.0853243694,
-0.1981690526,
-0.0362771191,
-0.1300715059,
0.2148917168,
-0.2713964283,
0.345253855,
0.1241055727,
-0.1539855301,
-0.1573798954,
-0.0081053823,
-0.1100421324,
0.1143709123,
0.3390209973,
0.160303846,
0.807276845,
-0.0744098574,
-0.1066134572,
-0.006618965,
0.0822716728,
-0.2562868893,
-0.2304995805,
-0.0900205746,
0.1575147808,
-0.4614280462,
-0.1936814785,
-0.04241997,
0.2153876722,
0.1626546085,
-0.189928323,
-0.0849233344,
-0.0099525573,
0.058062762,
-0.2518064678,
0.4788049161,
0.5534903407,
-0.3083430231,
-0.0215370171,
-0.1111756787,
-0.0194273237,
0.4509567916,
0.0034097226,
0.002683467,
-0.0342912115,
-0.0746412426,
0.3815183938,
0.3053488433,
0.0375187062,
-0.6943235397,
0.2703818977,
-0.189966619,
0.2698355317,
-0.0633265227,
0.1415515691,
0.1329534501,
0.1815425605,
-0.3257970214,
0.2547836602,
0.0073143812,
-0.1606896818,
-0.3478209078,
-0.5174866915,
0.106683068,
0.0958976224,
0.1435387433,
-0.0442354977,
0.1080908626,
-0.0246797483,
0.3150687516,
0.2980012596,
0.2028724402,
0.1548968703,
0.1308112144,
-0.2210358679,
-0.0933988914,
-0.1403895617,
-0.0056312401,
0.3707253337,
0.5322475433,
0.0601580925,
-0.0091592381,
0.0486920588,
-0.3059339523,
-0.0659248456,
-0.2911713421,
-0.0881629139,
0.0756874681,
0.0847411528,
0.2108382434,
0.3549521565,
0.0124002025,
0.086691469,
-0.065550521,
0.0727592781,
0.0445240289,
0.2100453526,
0.0401305184,
-0.1469336003,
-0.215784952,
-0.1120999232,
-0.0351803489,
0.0463373475,
-0.261246264,
0.1182313859,
-0.232616812,
0.0806270838,
-0.0174801517,
-0.1799468398,
0.0855990127,
0.0720400438,
-0.0770471692,
0.0010035704,
0.2271563262,
-0.0208284762,
0.0648420155,
0.0480482467,
0.2259183079,
0.3803312182,
-0.0249137599,
0.1595377624,
0.34193784,
-0.0640395135,
0.0453707874,
0.0332489572,
0.3400064707,
-0.1862510294,
-0.1197080463,
-0.1674405932,
-0.1324003935,
0.1907777786,
0.5834682584,
0.0761659145,
0.0721690729,
0.2146658152,
-0.2984451652,
0.0452684835,
0.009208791,
0.5815958381,
0.3240528703,
0.1171023846,
0.2098081112,
-0.3470686972,
0.0677620247,
-0.2248482853,
0.0345480852,
0.3847319484,
0.0652723461,
0.4256384671,
0.120191738,
0.1514933407,
-0.0837183222,
-0.1162307039,
0.1635288298,
0.1416745186,
-0.0068451329,
-0.042900227,
-0.2325440645,
0.1540494412,
0.0598196834,
-0.4542247057,
-0.1608759016,
-0.2700364292,
-0.1119741425,
-0.0115427515,
0.012017102,
-0.032008931,
-0.1950568855,
-0.1726176143,
-0.0271604825,
-0.3007729352,
-0.3105886579,
-0.1425125599,
-0.3204441667,
-0.0535466932,
0.1348847747,
-0.0596892983,
0.3072901964,
-0.103595607,
0.0955520719,
-0.05904001,
-0.1923723817,
0.1506722569,
0.0209466051,
0.3641676307,
-0.1945990175,
0.4104293883,
-0.1434185803,
-0.1419553012,
0.1534849703,
-0.016183665,
0.0091252262,
0.237668395,
0.1352461725,
-0.1796501577,
-0.114388749,
-0.3453750014,
-0.3516607285,
-0.380087167,
-0.0870521218,
0.1593192369,
-0.0395013802,
0.0151041141,
0.1947157979,
0.1441308558,
0.0985893682,
-0.0364616029,
-0.0853473321,
-0.3460052907,
0.7302368879,
-0.1546861976,
-0.3846495748,
0.2962003052,
-0.0790097266,
0.2984317243,
0.1366481632,
-0.5572381616,
0.2780166268,
-0.2417077869,
0.2090035826,
0.1866082251,
0.0398764461,
0.1015410647,
-0.2553366125,
0.0548727699,
-0.1268945336,
-0.0496450886,
0.0080497293,
0.0881618559,
0.313270539,
0.0028209887,
0.3143164217,
0.0217271522,
0.9094248414,
0.2800855935,
-0.1164814234,
0.3772397935,
0.0508962534,
0.0764647424,
0.0019649605,
-0.1339125335,
-0.1527616382,
-0.2287872732,
0.0307078809,
0.1379285008,
0.1020735279,
-0.3040212989,
-0.1034985259,
0.008299577,
-0.4625454247,
-0.4070034027,
-0.2032895535,
0.1494335085,
0.055830624,
0.2711263895,
0.3171419799,
0.0534303822,
-0.1946010888,
-0.0139604211,
0.5690127015,
-0.0494960174,
0.0350786485,
0.0990371406,
0.2003508657,
-0.5515703559,
0.1002980098,
-0.0405993834,
0.0772855207,
-0.0727349669,
0.0966603383,
0.1613286138,
-0.1698450297,
0.1840688139,
-0.2604214847,
0.0884882137,
-0.074630253,
-0.0590099581,
-0.3061174154,
-0.2616581321,
-0.062748991,
0.000180245,
0.5773656964,
-0.087129049,
-0.3358071744,
0.0449205711,
0.096954748,
0.1366340965,
-0.1719823778,
-0.2932938337,
-0.2531766593,
-0.4875627756,
-0.3430595994,
-0.097097002,
-0.1672289521,
0.2974109948,
-0.2426984459,
-0.3157048523,
-0.1075708643,
0.3118185997,
0.0927713886,
0.0217723027,
0.2937590778,
0.0471887067,
0.3761806786,
0.0846759528,
-0.1618999094,
-0.0890386924,
0.5246004462,
0.429653585,
0.0228989068,
0.0954955742,
-0.3499962986,
0.0399576053,
0.2479234785,
-0.1904250085,
0.0160618443,
-0.0825028792,
0.2524565458,
-0.1452442557,
0.0414057076,
0.3016324937,
-0.0441923626,
-0.2093587965,
-0.3414810002,
0.605091989,
-0.2446244359,
-0.0457308181,
0.1185271963,
0.140481323,
0.1521067768,
0.2632793784,
-0.0781995058,
0.8599663377,
0.0772290453,
-0.0774454549,
0.098900184,
-0.0084115593,
0.4027970731,
-0.2912656367,
0.1771309674,
-0.2803229392,
0.0132392785,
-0.1299611479,
-0.015845824,
-0.1059278399,
0.0655042306,
-0.1470298171,
0.0647299886,
-0.1514599174,
0.1660872549,
-0.028857002,
0.0485917591,
-0.37817958,
-0.1238503531,
0.0621932447,
0.1417936981,
0.0101717161,
0.6449926496,
-0.0319580957,
-0.2541675568,
-0.2328559458,
-0.0989848971,
-0.5923771262,
0.1134367958,
0.072708793,
-0.087058112,
-0.2581640482,
-0.4596539438,
0.0500055589,
0.3805044293,
-0.0211778395,
0.1624513865,
-0.3153131604,
0.2178960294,
-0.3071717322,
-0.067948319,
0.1469367743,
-0.0749858096,
0.1409621388,
-0.1598261595,
-0.3013409376,
0.0454025604,
-0.1186193824,
0.2993143797,
-0.0679529756,
0.0814532861,
0.2012621909,
-0.1159826815,
-0.3673447073,
0.1397228688,
-0.0426694192,
-0.1423514187,
0.1272452772,
0.1044209749,
0.039663706,
0.241579771,
0.1427760571,
-0.3163483441,
-0.2593218684,
0.3870817125,
-0.2076289058,
0.2182012647,
0.3941337764,
-0.0709004179,
-0.2479137331,
-0.1153724939,
-0.0883027241,
-0.1054181457,
-0.6121993661,
-0.2186028361,
-0.0251924563,
0.3561534882,
-0.1614972949,
-0.1336364448,
0.1048495993,
-0.3490833938,
-0.3628375828,
-0.5235509276,
0.1306188405,
0.0656850487,
-0.0233995076,
0.1781968921,
-0.5028355718,
-0.3716759086,
0.3024103343,
0.0882696509,
-0.2060585618,
-0.0062340936,
-0.2363540679,
-0.1376999468,
0.2346301228,
0.2215421349,
0.183338657,
-0.0016464785,
0.0138038574,
0.0670190454,
-0.1924350262,
-0.177532807,
-0.1876377314,
0.1868733615,
0.143588677,
-0.0046313368,
0.2212845832,
-0.1453615576,
-0.1825259924,
-0.0043026055,
0.1372856051,
-0.0621715002,
-0.0482090004,
0.1047598869,
0.0236889441,
0.5183141232,
-0.515622437,
0.1428277642,
-0.1296877414,
0.8146842718,
0.0847085789,
-0.0049639912,
0.5043006539,
0.1296810359,
-0.2271966785,
-0.2399455011,
-0.0662695915,
-0.0619183369,
0.3137120306,
-0.3795984089,
0.5551665425,
0.1559941918,
0.1405551732,
0.4373146594,
-0.1152107343,
-0.1067772061,
0.1859594285,
0.2554093301,
-0.1378959566,
-0.0159418769,
0.1133425906,
0.0164482426,
-0.1042695269,
-0.0887305066,
0.0588718019,
-0.1715669185,
-0.2014305294,
0.0903035626,
0.4766492546,
-0.1343521774,
-0.1119907349,
0.4683964252,
-0.0433998331,
0.3703646064,
0.0106774261,
-0.0769264773,
-0.1106142178,
0.4471067488,
-0.1143289879,
0.3792326748,
0.059301164,
0.145596534,
-0.3888529539,
-0.5082749128,
-0.0176249929,
0.0917016715,
-0.151020214,
0.2723240852,
0.1123311818,
0.2418509871,
0.0616756864,
0.0401138775,
-0.4717873931,
0.0185602885,
-0.0190474037,
0.065220125,
0.1212088168,
-0.3413905203,
-0.098433651,
0.3095861077,
0.0807394385,
-0.0661870241,
0.3439120948,
0.1642590165,
-0.1780668795,
-0.6546586156,
0.0632569641,
-0.116725333,
0.0596518852,
-0.3046337366,
0.0001112886,
0.2576381564,
-0.1148885861,
-0.0486505069,
0.1723043472,
0.3171801567,
0.4272041321,
-0.0924460441,
-0.0012719182,
0.1156509221,
-0.100141488,
-0.1569689214,
0.3286313713,
0.2741540372,
0.0744792894,
0.2132534087,
0.127614513,
-0.2593201101,
0.2150095552,
0.1319010109,
0.0374733955,
-0.2750090361,
0.663489759,
-0.2822519541,
0.1430799812,
-0.1848212779,
-0.3486424387,
-0.3625613749,
-0.0404624715,
0.3105908036,
0.0405469947,
0.0489032082,
-0.2859010398,
0.0431645364,
-0.2818435431,
0.2512694001,
0.1280831099,
0.2027849704,
-0.3090597987,
0.1365199983,
-0.7200750113,
0.066331394,
0.0720289648,
-0.0794795305,
0.0131459488,
0.3335937858,
-0.2754962146,
0.2615026832,
0.3244895041,
-0.1350860745,
0.131352663,
0.4813813865,
-0.2831989229,
-0.0716875345,
-0.3385832608,
-0.1188429594,
-0.1176450476,
-0.2906941772,
0.25332582,
-0.5135530233,
-0.0406852812,
-0.0369682685,
-0.1029599831,
0.2287246138,
-0.3376689553,
0.7718417048,
0.0204326063,
0.4181726575,
-0.0625892133,
-0.0474008545,
-0.2577987313,
0.0249534436,
-0.0442731343,
0.1935827881,
-0.0700874329,
0.2800271213,
0.094993338,
0.1358513683,
-0.1560491174,
-0.1138926372,
0.0798364356,
0.3366302848,
-0.0748942196,
-0.3074179888,
-0.0118571259,
0.0736624599,
0.3071090281,
0.2668799758,
-0.0882938132,
0.2186749279,
-0.1876815408,
-0.2498739213,
0.3628954589,
-0.218495205,
-0.1908559203,
-0.0703234524,
0.1019256637,
0.277805686,
-0.0298839118,
-0.4902455807,
0.0206851829,
0.3025434613,
-0.1489334553,
-0.2680256069,
0.1509249806,
0.0631177276,
-0.1221382543,
-0.0223945528,
0.2566051483,
-0.0247100592,
-0.2528835237,
0.2719272673,
-0.0967397913
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support! | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 24 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support! | [
-0.0690354481,
-0.0099979816,
-0.0715509728,
0.4162677526,
0.2822788358,
0.1222891435,
0.3851535618,
0.2134168744,
0.2334706783,
-0.1133929715,
0.2428504676,
0.1628346592,
0.1382038146,
-0.0105032744,
-0.1870105863,
-0.1910442263,
-0.0316888355,
-0.0682895333,
0.1373941153,
-0.2212914675,
-0.0542818233,
0.1533596963,
-0.1293255836,
-0.0846188962,
-0.2987633049,
0.1394869685,
0.1094794497,
-0.0853876397,
-0.3324194252,
-0.0843058676,
0.5183300376,
0.0374569669,
0.0902132317,
0.2967351973,
-0.000117695,
-0.1262212545,
0.4400683343,
-0.0800700858,
-0.0858735889,
-0.4032162428,
-0.2881537378,
-0.4585104585,
0.115914695,
-0.2507404983,
0.1574531645,
0.3613402247,
-0.0828235,
0.203981638,
0.060263522,
0.0538336858,
0.201505214,
0.220344156,
0.111973159,
0.0012682279,
0.1720884144,
-0.5136726499,
-0.1961065531,
-0.0156473089,
-0.2056453228,
0.1159264669,
0.0759867132,
0.1538500339,
-0.1160211563,
0.4487344325,
0.1005099937,
0.1362583488,
-0.0333040729,
-0.5621501803,
0.3449826241,
0.380403161,
0.8352509141,
-0.0441537127,
-0.3848358691,
-0.0902392045,
0.0297751818,
0.07769005,
0.1012257636,
0.4796001911,
-0.408940196,
0.0576064363,
-0.4534147382,
0.0004345142,
-0.0540679097,
0.2307636887,
-0.350589335,
0.2053676546,
-0.1281366497,
0.0540483072,
-0.0512708239,
-0.022917917,
-0.3819196522,
-0.3187372088,
-0.1858952194,
0.3288646042,
-0.3765307069,
0.0876472667,
0.0818021894,
0.1013023555,
0.3065654933,
0.3332841694,
0.0595948137,
0.2026235014,
-0.2427242398,
0.0974045023,
0.1333461404,
0.349937588,
-0.049627509,
-0.3339032233,
0.2336530089,
0.0831767544,
-0.0410002731,
0.0889141932,
-0.1326997727,
-0.0273618754,
0.2532708645,
-0.2916352749,
0.1138649583,
-0.1210353002,
-0.1329974383,
0.3446780443,
0.1328084916,
-0.1035741642,
-0.1729868948,
0.2109662443,
-0.261423409,
-0.0748503283,
-0.1549176574,
0.3760828674,
-0.1342865527,
0.1245546713,
-0.0551474765,
-0.194630608,
-0.03206411,
-0.1308614463,
0.2359176874,
-0.2384798229,
0.397822082,
0.1198450699,
-0.2069479376,
-0.1694868058,
-0.0482038222,
-0.0695441738,
0.0892040059,
0.3029322326,
0.1519699842,
0.8524776101,
-0.1055616885,
-0.1533079743,
0.0277883224,
0.027123034,
-0.2666281462,
-0.2013561279,
-0.1391536593,
0.1449592412,
-0.4829975963,
-0.2651833892,
-0.0555660538,
0.2311143428,
0.2233173549,
-0.1439944059,
-0.084316358,
0.0087371301,
0.0678064674,
-0.2231287509,
0.4462706745,
0.5631441474,
-0.2154604197,
-0.0273496676,
-0.1023785621,
0.0829030648,
0.5172899961,
-0.0132265817,
0.01773002,
-0.1962212324,
-0.0552289523,
0.3503421545,
0.2345132232,
0.0634285733,
-0.6698727608,
0.2986477315,
-0.1121718958,
0.265920043,
0.0351395793,
0.172723636,
0.0882034525,
0.2288592905,
-0.2764081955,
0.3082544804,
0.0748306587,
-0.1855425835,
-0.3515209854,
-0.4687909484,
0.0907575786,
0.0779028609,
0.1690835506,
0.0095520299,
0.0666424185,
-0.0545495301,
0.3368752897,
0.2913604081,
0.22319296,
0.0540955588,
0.1401034296,
-0.2684950233,
-0.0352166966,
-0.1048107296,
-0.0164094251,
0.4072797298,
0.5592121482,
0.0616349094,
0.0100324126,
0.097896792,
-0.2644702196,
-0.1222738698,
-0.3213400245,
-0.0197783485,
0.052463308,
0.0943087637,
0.2169120461,
0.2984941602,
0.0374978483,
0.0401893258,
-0.0420678221,
0.0523528419,
0.041619435,
0.1940543503,
0.0674393997,
-0.1331954449,
-0.1795914471,
-0.1060786396,
0.0163922738,
0.1452954859,
-0.2291958779,
-0.0028155576,
-0.218750149,
0.06336651,
-0.043407172,
-0.0914292037,
0.1379371732,
0.0981810242,
-0.0766846463,
0.0328034535,
0.1698220521,
-0.0115781473,
-0.0029625567,
0.0853826478,
0.2800172567,
0.3755195141,
-0.0150114642,
0.2399069965,
0.3355815709,
-0.0406276546,
0.0454283245,
-0.0145032564,
0.3255584836,
-0.2656667233,
-0.1476520449,
-0.0680989772,
-0.0925353765,
0.2774904966,
0.5297241807,
0.1324801743,
0.1280041486,
0.2106357217,
-0.3184187412,
0.0189468581,
-0.014493878,
0.5863617659,
0.2611169517,
0.0961605608,
0.207313478,
-0.4086149633,
0.0570142679,
-0.2168999463,
0.0457975604,
0.3264725506,
0.0644426569,
0.3982262611,
0.1019750535,
0.1328805536,
-0.0371613242,
-0.0382134095,
0.1255008429,
0.1326802969,
-0.0410865396,
-0.0858977512,
-0.2936618328,
0.2567721903,
0.0599693283,
-0.439990133,
-0.1302778572,
-0.2698121965,
-0.112121895,
-0.0198086258,
0.03270486,
-0.0770639032,
-0.1244319677,
-0.2014305145,
-0.0588910505,
-0.373824209,
-0.3677842617,
-0.1252189726,
-0.3382564783,
-0.0427057035,
0.1071572378,
-0.09832903,
0.28735286,
-0.1204513609,
0.0573703274,
-0.0958859026,
-0.193048805,
0.0398491099,
-0.0043083793,
0.3839707375,
-0.2377867699,
0.4564389884,
-0.1663808227,
-0.0597175807,
0.166367054,
0.0243511572,
0.0365826637,
0.2220622748,
0.1051799059,
-0.2187348306,
-0.0985900536,
-0.2855585217,
-0.3799359202,
-0.3414306343,
-0.0858325586,
0.2054733038,
-0.0430648588,
0.0882582292,
0.2635266781,
0.0347819999,
0.1744258255,
0.0250120312,
-0.0449170247,
-0.2868690789,
0.83465904,
-0.0881901532,
-0.4069334865,
0.2835735083,
-0.0147731723,
0.3148874938,
0.1019529775,
-0.5072256923,
0.2176256478,
-0.2097766548,
0.1955390722,
0.2795872986,
0.0657095686,
0.0610908382,
-0.3151109219,
0.0881059691,
-0.1394307613,
-0.0146765253,
-0.0487379171,
0.1244137064,
0.287522614,
0.0122675877,
0.2843147218,
0.0379390754,
0.8390625715,
0.2417925298,
-0.1325187683,
0.4327150583,
0.0340305008,
0.0223406702,
0.022424072,
-0.1650139391,
-0.2018049061,
-0.2494835854,
0.1537347436,
0.127874434,
0.1948739141,
-0.2716963589,
-0.0661296174,
0.0090210801,
-0.4472631514,
-0.3024115264,
-0.1900714934,
0.1551169157,
0.0075883782,
0.2950232327,
0.3235774934,
0.0450513475,
-0.2776399851,
0.0365812816,
0.5699433684,
0.001908057,
0.1023774967,
0.136686936,
0.1184011772,
-0.567913413,
0.0903751627,
-0.0908193067,
0.082196787,
-0.0941470563,
0.1145555079,
0.1419597864,
-0.1593447179,
0.1375414282,
-0.3117364645,
0.131968081,
-0.1461316943,
-0.1067254171,
-0.2218559086,
-0.2504521906,
0.0402818955,
-0.0445269682,
0.5353947282,
-0.0130360378,
-0.3280190825,
-0.0068013365,
0.0755779296,
0.1726420224,
-0.1590392888,
-0.2739729285,
-0.2760899365,
-0.4223753512,
-0.3200939596,
-0.2010693103,
-0.195708096,
0.388867557,
-0.2165103257,
-0.2829758525,
-0.1278853118,
0.2633853853,
0.1165939122,
-0.0192348659,
0.3295139074,
0.0984783843,
0.3884231746,
0.0532443188,
-0.1283081025,
-0.1797626913,
0.5015984178,
0.3309801221,
0.0123753855,
0.0413730145,
-0.33065328,
0.0061592814,
0.1630470008,
-0.2309936136,
-0.0541749224,
-0.0837312564,
0.1961091161,
-0.1559120864,
-0.00533253,
0.236925438,
-0.0777204707,
-0.183366701,
-0.4182690084,
0.6890940666,
-0.2060819417,
-0.0139102526,
0.1596005559,
0.1564729512,
0.1464680582,
0.2997374237,
-0.1261127293,
0.7728825212,
0.0346660614,
-0.0354422852,
0.0785007402,
0.0871517286,
0.3426823616,
-0.2902925909,
0.1275340617,
-0.3353432715,
0.1532090008,
-0.1406502128,
0.0165489446,
-0.1293692291,
0.084742099,
-0.0910066441,
0.1499930471,
-0.1677743196,
0.2257798612,
0.0222391784,
0.0446504876,
-0.3492168188,
-0.0817784518,
0.0447298177,
0.1272881627,
0.0269738957,
0.6393934488,
0.0258920453,
-0.2409831882,
-0.2464602888,
-0.0886287242,
-0.5789684057,
0.1253207922,
0.112607196,
-0.071391277,
-0.2029534131,
-0.4535740018,
0.0131640276,
0.4507679343,
-0.0583236441,
0.1790383458,
-0.347618103,
0.2616405487,
-0.2932384908,
-0.0864891484,
0.1592841595,
-0.0832834244,
0.0926182196,
-0.1949462146,
-0.2863845229,
0.0278716721,
-0.0813434124,
0.3039561212,
-0.1432859153,
0.1170965657,
0.2210621834,
-0.0046926783,
-0.3729782104,
0.1475706398,
-0.0583351552,
-0.1162186265,
0.1300281584,
0.1151076332,
0.0481412783,
0.2377814502,
0.1229677051,
-0.2875980139,
-0.2023486793,
0.4077862501,
-0.1703434587,
0.2058813721,
0.3319361508,
-0.0652089491,
-0.2308104783,
-0.1163452938,
-0.1078140363,
0.0193427652,
-0.6593105793,
-0.2220487893,
0.0155068953,
0.3092424273,
-0.1467104405,
-0.1499707252,
0.0767482594,
-0.389326781,
-0.3052189946,
-0.5143168569,
0.1934583932,
0.0530857705,
-0.0808663815,
0.1012817025,
-0.4944119453,
-0.4612380564,
0.3130164146,
0.12340343,
-0.1799677461,
-0.0137859304,
-0.167212531,
-0.1403012574,
0.1541435868,
0.2915673256,
0.1243611723,
0.0652926341,
0.0008927394,
0.0452478006,
-0.1702829748,
-0.1682329774,
-0.1493077278,
0.1990281045,
0.1847809106,
0.0080669513,
0.1910302937,
-0.1320531964,
-0.2113071531,
-0.0451430045,
0.1274881661,
-0.0593085028,
-0.0306268558,
0.0922675654,
0.0805765688,
0.4037798941,
-0.4537478983,
0.1145542338,
-0.101514563,
0.8488919139,
0.0857639089,
0.0158934966,
0.5661739111,
0.1179384291,
-0.2378248572,
-0.2062016726,
-0.126663357,
-0.0977636352,
0.3483299911,
-0.340197891,
0.5501439571,
0.1126512364,
0.0817639008,
0.3406642973,
-0.1266595125,
-0.0663283542,
0.1710983962,
0.2545171082,
-0.147562325,
-0.1292317361,
0.0592222475,
0.0956980437,
-0.0517928116,
-0.113031216,
0.1341890842,
-0.2904940844,
-0.2642146051,
0.0658195913,
0.4888225496,
-0.1714357883,
-0.1558437049,
0.4805559814,
0.0278119184,
0.3225763738,
-0.0504701175,
-0.0692567155,
-0.191291064,
0.4133707583,
-0.1041398272,
0.399458617,
0.1184315011,
0.0900515467,
-0.4028485715,
-0.4876834154,
-0.0391133279,
0.062109556,
-0.1485471874,
0.2471343726,
0.1171718836,
0.2374732941,
0.129653424,
0.0320803449,
-0.4850428402,
-0.0397877283,
0.021189006,
-0.0166229159,
0.045893468,
-0.3521012664,
-0.1465231776,
0.3644358516,
0.052924931,
-0.1100594699,
0.3075850904,
0.1532518864,
-0.1521407664,
-0.6718462706,
0.042618867,
-0.0922217518,
0.0442212857,
-0.3201607764,
0.0263661537,
0.2077566981,
-0.1201173663,
-0.0395672843,
0.0311250743,
0.3577183783,
0.434039861,
0.0124246962,
-0.0142759932,
0.0483520702,
-0.069832325,
-0.2068812102,
0.3337104917,
0.2554482222,
0.0059754993,
0.1312027872,
0.1121164635,
-0.2471868992,
0.1761156917,
0.0823045,
0.0013017626,
-0.2061574757,
0.6831781268,
-0.2835204899,
0.1168933511,
-0.1556623429,
-0.334128052,
-0.3487708271,
-0.0198615044,
0.3473854065,
0.1519780755,
0.0724637583,
-0.3158142865,
0.0337596498,
-0.2807043493,
0.2559372783,
0.0740616694,
0.1723389477,
-0.3593783379,
0.1387785822,
-0.7013585567,
-0.0078817531,
0.0928431228,
-0.0245143473,
-0.0234821588,
0.3137423098,
-0.2782699168,
0.1713254601,
0.2388450652,
-0.034712486,
0.2462122142,
0.4393147528,
-0.2718907297,
-0.0482840054,
-0.3086028993,
0.0126586771,
-0.1189717948,
-0.2704188228,
0.269847095,
-0.5997473598,
-0.0356083699,
-0.0418141373,
-0.097270906,
0.2781625688,
-0.2821847796,
0.7650139332,
0.0147423754,
0.3980948627,
-0.0567810163,
-0.0382578783,
-0.2995537519,
0.0535393767,
0.0010870203,
0.1728668958,
-0.1007202044,
0.2720144093,
0.119593583,
0.1841213107,
-0.1436822116,
-0.1453591734,
0.0513153151,
0.2917463481,
0.0047724061,
-0.3444966078,
-0.0239246693,
0.0892065465,
0.2369009107,
0.2461632788,
-0.1208508685,
0.1756342351,
-0.1573686898,
-0.2548575103,
0.3296070993,
-0.277628392,
-0.2133745849,
-0.1031811535,
0.1321399659,
0.3171687722,
0.0198237095,
-0.478921622,
-0.0028055685,
0.280531466,
-0.1406557411,
-0.235216558,
0.1149386242,
0.1322644353,
-0.1027851552,
-0.0249513518,
0.194785744,
0.0044229981,
-0.2891601622,
0.2658876181,
-0.1413052082
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 17 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again | [
-0.0635911077,
0.0054958081,
-0.0699881092,
0.3975269198,
0.2704816461,
0.1117716953,
0.4051201046,
0.2125453651,
0.2219946533,
-0.0980709195,
0.2423040271,
0.1652897745,
0.1437680721,
-0.0094376672,
-0.1849551201,
-0.1691983044,
-0.02092731,
-0.0780063421,
0.1397192776,
-0.2287252545,
-0.0718828812,
0.1454976946,
-0.118527025,
-0.0883479267,
-0.2948793769,
0.1466154307,
0.0971320048,
-0.0787391141,
-0.3126653135,
-0.0990359634,
0.5155932307,
0.0568694323,
0.0788811445,
0.2951325178,
-0.0001170882,
-0.1244747043,
0.440669924,
-0.0718017817,
-0.1148905531,
-0.3813539445,
-0.2894219756,
-0.4607844353,
0.1017344072,
-0.2550834715,
0.1578003317,
0.3514332473,
-0.0695673227,
0.1909139007,
0.0411403663,
0.034796942,
0.2039115876,
0.2345373631,
0.0773689225,
-0.009219314,
0.1685432792,
-0.5081433058,
-0.2009909153,
-0.0149711883,
-0.1961534172,
0.1130618751,
0.0518401936,
0.1712566614,
-0.1112722903,
0.4450573325,
0.1092765182,
0.147544533,
-0.0390336551,
-0.5593596697,
0.3386210799,
0.3914213479,
0.8110865951,
-0.0349254981,
-0.3909861743,
-0.1163943559,
0.0144401882,
0.0883417279,
0.109456569,
0.4731744826,
-0.4042172432,
0.0580029003,
-0.4430184662,
0.0162058342,
-0.0424058698,
0.2401296198,
-0.3565359116,
0.2099103779,
-0.1218153015,
0.0495127477,
-0.0501040854,
-0.0193963721,
-0.3825846314,
-0.3250641525,
-0.1779283136,
0.3222628236,
-0.3595638573,
0.0945246294,
0.1082111225,
0.0944508389,
0.3044974208,
0.3384501636,
0.065023534,
0.2179393172,
-0.2423133701,
0.0910514444,
0.1257586181,
0.337972194,
-0.0297966804,
-0.3428627551,
0.2374132425,
0.0910964087,
-0.0390360951,
0.0894546434,
-0.1421340555,
-0.013625429,
0.240049243,
-0.2997390032,
0.106675297,
-0.1061816439,
-0.1355123371,
0.3545138836,
0.1436538547,
-0.100892283,
-0.181954518,
0.2096243501,
-0.2602633238,
-0.0793686807,
-0.1583040059,
0.3832473755,
-0.1480677575,
0.1088961288,
-0.0646660849,
-0.2023756951,
-0.0430515781,
-0.1350316554,
0.2424611449,
-0.2153109461,
0.3975867927,
0.1082274914,
-0.2019284517,
-0.1622782946,
-0.0482727401,
-0.0600510985,
0.1039723307,
0.3016760051,
0.1376928836,
0.8678781986,
-0.0983777493,
-0.1486566365,
0.0211303979,
0.0338245928,
-0.2486858368,
-0.192757681,
-0.1243553683,
0.1496054083,
-0.5011075735,
-0.2611995339,
-0.0476114973,
0.2438678294,
0.2210106254,
-0.1569940895,
-0.0882685259,
0.0083463481,
0.0572757386,
-0.2188310474,
0.443471998,
0.5722365975,
-0.2253336012,
-0.0457063951,
-0.1119205281,
0.0897272676,
0.5085415244,
-0.0067212624,
0.0091119437,
-0.1866527796,
-0.0492387898,
0.3607645631,
0.2355579436,
0.0613826327,
-0.6746476889,
0.2866028547,
-0.1267225295,
0.3046181202,
0.0336516909,
0.1798474789,
0.0886607617,
0.2086722702,
-0.2679760456,
0.3060258627,
0.0844398066,
-0.1812130511,
-0.3593184352,
-0.4738078713,
0.0832657963,
0.0717404559,
0.1719871759,
0.0067718616,
0.0662727281,
-0.0591570847,
0.3414900303,
0.2777414918,
0.224688977,
0.0503940918,
0.1414611936,
-0.2738792002,
-0.0399673022,
-0.0855871364,
-0.0241374783,
0.4271655977,
0.5506258607,
0.0638865903,
0.0144226374,
0.0955626667,
-0.2469641864,
-0.1217616498,
-0.3224137723,
-0.0440068059,
0.05783673,
0.1223812923,
0.2030842155,
0.3038419783,
0.0479570441,
0.0396655165,
-0.0411101803,
0.0564444177,
0.0390907973,
0.179306373,
0.087945275,
-0.1351895332,
-0.2017704397,
-0.0988159701,
0.0059027723,
0.1391864568,
-0.2159443945,
0.0058310907,
-0.2344035208,
0.0820509568,
-0.0509568974,
-0.0871930867,
0.141504243,
0.114908807,
-0.0709470809,
0.0311206467,
0.1603158861,
-0.0156811886,
-0.0311797727,
0.1139841229,
0.2691165507,
0.3814831376,
-0.0116239889,
0.2220474184,
0.3370933533,
-0.046846658,
0.031751629,
-0.0229212288,
0.3230009079,
-0.2710415423,
-0.139449209,
-0.0685377195,
-0.0948329866,
0.3044227958,
0.5473519564,
0.1282822788,
0.1361960322,
0.2058170438,
-0.3219821751,
0.0160423368,
-0.0090270359,
0.5947283506,
0.2657073736,
0.1015210673,
0.2187123597,
-0.3983242214,
0.048816897,
-0.2300373614,
0.0376447514,
0.3252568245,
0.0534547195,
0.4030184746,
0.1133935675,
0.1385074556,
-0.0495169684,
-0.0279436633,
0.1278281063,
0.1014387682,
-0.0418631397,
-0.0687828138,
-0.2825419903,
0.2662617266,
0.0600420907,
-0.4334227145,
-0.1350179166,
-0.2884691656,
-0.1005193293,
-0.0144818211,
0.001451136,
-0.0770189166,
-0.1364598274,
-0.1926987618,
-0.0802035481,
-0.3923892081,
-0.3497554958,
-0.1259526461,
-0.352196157,
-0.0385328382,
0.1013768986,
-0.0939429179,
0.2879144251,
-0.1168455258,
0.0656691045,
-0.0893287361,
-0.2068765461,
0.044808913,
-0.009204614,
0.3843479753,
-0.2553696036,
0.4414507449,
-0.1614165157,
-0.0581803396,
0.1734232157,
0.0283340737,
0.043290928,
0.2223572433,
0.1087092906,
-0.1992359608,
-0.0968784094,
-0.2927431464,
-0.3652943075,
-0.3451599777,
-0.0720007494,
0.1937095821,
-0.0490676314,
0.0892691165,
0.2577724159,
0.027549522,
0.1637058258,
0.0274681933,
-0.0524255335,
-0.2859867215,
0.8228675127,
-0.0953497216,
-0.4027892053,
0.2715849876,
-0.0302079488,
0.310570091,
0.1123725325,
-0.5049176812,
0.2296978086,
-0.2130987346,
0.2032734305,
0.2825912535,
0.0550164841,
0.071483098,
-0.3109725714,
0.0758316591,
-0.1627507955,
-0.0042992644,
-0.0300587304,
0.1257302761,
0.2862554789,
-0.0014706091,
0.2728949785,
0.0501533262,
0.8432103992,
0.2358387411,
-0.1333761811,
0.4208788872,
0.0450751223,
0.0392547324,
0.0224318467,
-0.1539182812,
-0.1987057626,
-0.25617221,
0.1470113993,
0.1491041631,
0.1990157068,
-0.2637203038,
-0.0537101105,
0.0177931059,
-0.4434631467,
-0.3303984702,
-0.1697049439,
0.1518100649,
0.0003312198,
0.3040691614,
0.3281061351,
0.0403618291,
-0.2667129934,
0.0343164615,
0.5420290232,
0.000107566,
0.0878889933,
0.1220380142,
0.1206698269,
-0.5723163486,
0.0829723626,
-0.0859021842,
0.0734560937,
-0.0841362178,
0.0762098953,
0.1412593275,
-0.1602217406,
0.1468758732,
-0.3039337695,
0.1390367001,
-0.1412777901,
-0.1038270891,
-0.2265356183,
-0.247560367,
0.0366870314,
-0.0504818559,
0.5440039039,
-0.0132460091,
-0.3284937441,
-0.0015201868,
0.0642126426,
0.1817138195,
-0.1481832713,
-0.2562611997,
-0.276303947,
-0.4239399135,
-0.3175900877,
-0.1952447295,
-0.1939307451,
0.3753403127,
-0.2319895029,
-0.2743622661,
-0.1211852208,
0.2704648674,
0.1200103238,
-0.019968858,
0.3140404522,
0.0962476954,
0.3911685944,
0.072901994,
-0.1346759945,
-0.1737755835,
0.5136116147,
0.3388259411,
0.0105849011,
0.0428223088,
-0.3369646668,
-0.0059590512,
0.209100306,
-0.2164408565,
-0.064994365,
-0.0753394291,
0.1949353218,
-0.1541581303,
0.0030709479,
0.2379367948,
-0.0963172689,
-0.1846459806,
-0.4083698988,
0.6840828061,
-0.2124336809,
-0.0203925371,
0.1748206615,
0.1494866908,
0.1398355067,
0.2975003123,
-0.1081486717,
0.7885545492,
0.0302355662,
-0.0180235617,
0.0893872827,
0.0892990232,
0.3508446813,
-0.3062098622,
0.1340304017,
-0.3522852361,
0.153535679,
-0.1315976232,
0.0213090014,
-0.1281594187,
0.0869432092,
-0.0777017325,
0.1317058057,
-0.1633627117,
0.2356795073,
0.0297502559,
0.032385774,
-0.3533714414,
-0.0888425335,
0.0573849343,
0.1310210973,
0.0415996052,
0.6429330707,
0.0167474709,
-0.243170768,
-0.2635300756,
-0.0883842111,
-0.567473948,
0.1350711733,
0.1171559691,
-0.0663837418,
-0.2022009194,
-0.4554259777,
-0.0210016053,
0.4356856644,
-0.042197492,
0.168249622,
-0.3473183215,
0.2733457088,
-0.2823805213,
-0.0707643405,
0.1702466756,
-0.102308467,
0.1010856777,
-0.1892505288,
-0.2828212678,
0.0159453601,
-0.0988524705,
0.2994480729,
-0.1585281789,
0.1114633381,
0.2126401961,
-0.0067990739,
-0.3708254397,
0.1454948336,
-0.0650007799,
-0.1168177426,
0.1353500187,
0.1049765423,
0.056611903,
0.2303312868,
0.1094350815,
-0.2893570065,
-0.2170312554,
0.420363605,
-0.1740410626,
0.1937129498,
0.3277284801,
-0.0734876916,
-0.2277026027,
-0.1194427833,
-0.1066810787,
0.010008594,
-0.6670777202,
-0.2200979143,
0.003024424,
0.2900619805,
-0.1375809163,
-0.1370424479,
0.0780349895,
-0.4026844203,
-0.3174934089,
-0.4946445525,
0.2114559859,
0.0681241676,
-0.0702673495,
0.0945588425,
-0.4956185222,
-0.4544701874,
0.3093895912,
0.111243479,
-0.1906250566,
-0.0205593985,
-0.1461392939,
-0.1312694997,
0.1437647343,
0.3040232062,
0.1504044831,
0.068382673,
0.0024419718,
0.0444079041,
-0.1790057868,
-0.1765285134,
-0.1509853303,
0.1962992996,
0.1860581338,
0.0224520098,
0.2005325705,
-0.1181416661,
-0.1993986815,
-0.0583082251,
0.1348385066,
-0.0563727804,
-0.0442204885,
0.0818948746,
0.0700667128,
0.4368833005,
-0.4313285351,
0.1096334383,
-0.1090185493,
0.8408148289,
0.0798131824,
0.0093665952,
0.548774302,
0.1110461727,
-0.214399308,
-0.2023207545,
-0.1357683539,
-0.0793823823,
0.3421777189,
-0.3432498574,
0.5485956669,
0.103688024,
0.076845035,
0.3453035951,
-0.121975176,
-0.090823099,
0.1542133242,
0.260479182,
-0.1336326301,
-0.1416875869,
0.044836387,
0.0819350481,
-0.042565126,
-0.097289741,
0.1431800425,
-0.2931312621,
-0.2391671985,
0.0609627664,
0.4813642502,
-0.1783904284,
-0.1318947673,
0.4905302525,
0.0112404814,
0.3369818032,
-0.0512916334,
-0.0873001814,
-0.1786283404,
0.4202340245,
-0.0920410901,
0.4068498313,
0.1251325756,
0.0825373232,
-0.4138421714,
-0.5052168369,
-0.0240689013,
0.0552172959,
-0.1465782821,
0.2593789995,
0.1092594266,
0.2299337685,
0.121505253,
0.0414034426,
-0.4975203574,
-0.0321865268,
0.0245677195,
-0.0278498158,
0.0452261753,
-0.3645443916,
-0.1428631544,
0.3663724661,
0.0384927019,
-0.1033890098,
0.3109821975,
0.1431134194,
-0.147321716,
-0.6717373133,
0.0365054831,
-0.1164721549,
0.0497751944,
-0.3063770831,
0.0240191463,
0.2131406516,
-0.1313629895,
-0.0178576093,
0.0248103328,
0.345533371,
0.4297313988,
0.0166219436,
-0.0233589765,
0.0278539602,
-0.0651849508,
-0.2258091569,
0.3390024602,
0.254994005,
-0.0104675079,
0.1458031088,
0.1206901595,
-0.2616152763,
0.1722255796,
0.0933584645,
-0.0106578218,
-0.2104579806,
0.682515204,
-0.2915143073,
0.1202341691,
-0.1351343393,
-0.3433484137,
-0.3390800655,
-0.0302416906,
0.3402216434,
0.1571632177,
0.0806096196,
-0.3118821084,
0.0384957641,
-0.2671256363,
0.260409683,
0.048983328,
0.1506984681,
-0.3443177938,
0.1353344321,
-0.7035640478,
0.0071805967,
0.0843348354,
-0.0266275685,
-0.0294900313,
0.3258947134,
-0.2704503238,
0.1794224828,
0.2376698703,
-0.0364995375,
0.2352363169,
0.4280110598,
-0.2742733955,
-0.0506848842,
-0.3023617864,
0.006890011,
-0.1276034415,
-0.2826354802,
0.2721912861,
-0.5946936607,
-0.027930595,
-0.0327481069,
-0.1132184342,
0.286155194,
-0.2838964164,
0.7775369883,
0.0201641507,
0.3910856247,
-0.054440964,
-0.0642616749,
-0.3234817088,
0.0563339815,
0.0065067927,
0.1816592216,
-0.1124404594,
0.2903111875,
0.1143257767,
0.1794826835,
-0.1371035874,
-0.1422662884,
0.0706008598,
0.2998569012,
-0.0024713248,
-0.3307424784,
-0.0206972975,
0.0941228792,
0.2345981747,
0.2664619088,
-0.1194431484,
0.1812019497,
-0.1614151299,
-0.2635099888,
0.3250680566,
-0.2873355746,
-0.2141285092,
-0.1121364385,
0.1395838261,
0.297942698,
0.0193231776,
-0.4697851837,
0.001358363,
0.2750635147,
-0.1346327215,
-0.228764981,
0.1092008352,
0.1285212189,
-0.1194908693,
-0.0283064954,
0.196052894,
0.0042828368,
-0.292571485,
0.2687165141,
-0.1410822719
] |
https://github.com/huggingface/datasets/issues/2116 | Creating custom dataset results in error while calling the map() function | Hi,
the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe. | calling `map()` of `datasets` library results into an error while defining a Custom dataset.
Reproducible example:
```
import datasets
class MyDataset(datasets.Dataset):
def __init__(self, sentences):
"Initialization"
self.samples = sentences
def __len__(self):
"Denotes the total number of samples"
return len(self.samples)
def __getitem__(self, index):
"Generates one sample of data"
# Select sample
# Load data and get label
samples = self.samples[index]
return samples
def preprocess_function_train(examples):
inputs = examples
labels = [example+tokenizer.eos_token for example in examples ]
inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True)
labels = tokenizer(labels, max_length=30, padding=True, truncation=True)
model_inputs = inputs
model_inputs["labels"] = labels["input_ids"]
print("about to return")
return model_inputs
##train["sentence"] is dataframe column
train_dataset = MyDataset(train['sentence'].values.tolist())
train_dataset = train_dataset.map(
preprocess_function,
batched = True,
batch_size=32
)
```
Stack trace of error:
```
Traceback (most recent call last):
File "dir/train_generate.py", line 362, in <module>
main()
File "dir/train_generate.py", line 245, in main
train_dataset = train_dataset.map(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map
return self._map_single(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper
unformatted_columns = set(self.column_names) - set(self._format_columns or [])
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names
return self._data.column_names
AttributeError: 'MyDataset' object has no attribute '_data'
``` | 75 | Creating custom dataset results in error while calling the map() function
calling `map()` of `datasets` library results into an error while defining a Custom dataset.
Reproducible example:
```
import datasets
class MyDataset(datasets.Dataset):
def __init__(self, sentences):
"Initialization"
self.samples = sentences
def __len__(self):
"Denotes the total number of samples"
return len(self.samples)
def __getitem__(self, index):
"Generates one sample of data"
# Select sample
# Load data and get label
samples = self.samples[index]
return samples
def preprocess_function_train(examples):
inputs = examples
labels = [example+tokenizer.eos_token for example in examples ]
inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True)
labels = tokenizer(labels, max_length=30, padding=True, truncation=True)
model_inputs = inputs
model_inputs["labels"] = labels["input_ids"]
print("about to return")
return model_inputs
##train["sentence"] is dataframe column
train_dataset = MyDataset(train['sentence'].values.tolist())
train_dataset = train_dataset.map(
preprocess_function,
batched = True,
batch_size=32
)
```
Stack trace of error:
```
Traceback (most recent call last):
File "dir/train_generate.py", line 362, in <module>
main()
File "dir/train_generate.py", line 245, in main
train_dataset = train_dataset.map(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map
return self._map_single(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper
unformatted_columns = set(self.column_names) - set(self._format_columns or [])
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names
return self._data.column_names
AttributeError: 'MyDataset' object has no attribute '_data'
```
Hi,
the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe. | [
-0.3095270395,
0.1919833869,
-0.0280815456,
0.0809182301,
0.2322636992,
0.024453098,
0.4063164592,
0.3732212186,
0.2232669592,
0.0579671077,
0.1070921496,
0.4760223329,
-0.3742124736,
-0.0511050522,
0.0784918964,
-0.0089361854,
0.0559965149,
0.1856333464,
-0.1835916489,
-0.0389978401,
-0.3738663793,
0.1936637014,
-0.1824556142,
0.2054497153,
-0.2108690888,
-0.2884714305,
0.1117464453,
-0.0803330913,
-0.2930240035,
-0.3859242201,
0.3439579308,
-0.0687111542,
0.0053721154,
0.7015195489,
-0.0001045329,
0.0541854352,
0.160634324,
-0.0544360243,
-0.0714646131,
-0.2946877778,
-0.1300770938,
-0.0597291104,
0.065322727,
-0.3553413153,
-0.0708624125,
-0.2266571969,
-0.2204885632,
-0.5003938079,
0.2376442254,
0.5857282281,
0.3092916906,
0.0065493085,
0.0157838836,
-0.2425521761,
0.2406723052,
0.2789567113,
-0.1627862453,
0.1254618764,
0.1019264534,
-0.4344260991,
0.0211201943,
0.2214973122,
-0.0519023724,
0.0171143096,
0.2251115441,
-0.0729819909,
0.0247413572,
-0.3594277501,
0.0332762226,
0.1301143616,
0.4118056595,
-0.5375843644,
-0.3002355993,
0.0617004111,
0.0177127961,
-0.170415625,
0.2560880184,
0.0747601166,
-0.157325089,
0.052947633,
-0.0775139928,
0.1310315728,
-0.0968100503,
0.3694397807,
0.1306231171,
0.1370375007,
-0.1636959314,
0.2666482627,
0.1102195978,
-0.4297789633,
0.0232801344,
-0.1080652252,
0.0795268565,
0.4080006778,
-0.3664742708,
-0.1668648571,
0.0558806621,
-0.4467191994,
0.1431355178,
-0.1520475596,
0.0226492602,
-0.1222045869,
0.1436313242,
0.135488078,
0.2312282324,
0.1579552442,
-0.0201084185,
0.4038407505,
-0.0876075923,
-0.0010175672,
-0.269579947,
-0.083787933,
0.0295206327,
-0.2260691077,
0.0857030675,
0.0621498711,
0.1651795208,
0.0209619049,
0.0974720269,
0.0965922028,
-0.3174830079,
0.1343472749,
0.144045949,
0.2185223699,
0.1541200429,
-0.1662800461,
-0.0625316277,
0.1299292296,
-0.1169798747,
0.2039192766,
-0.2468062639,
0.1485862434,
-0.383402437,
0.0072865565,
0.1762004346,
0.1544377208,
0.2860068679,
-0.0002729029,
0.0227018222,
-0.1487196386,
0.1852496862,
-0.3488214314,
0.1049802303,
0.1605466157,
-0.099263154,
0.2123647779,
0.2893148959,
-0.0225479323,
-0.1482501924,
0.0764974058,
-0.1301561594,
-0.3638645113,
-0.1915858388,
0.2496525794,
0.0830785036,
0.239571929,
-0.1176469326,
0.2286226451,
0.4339629114,
-0.1881229579,
0.0269857775,
-0.1968441308,
-0.2700250447,
-0.3524687588,
-0.0846338496,
0.1618771851,
-0.39145872,
0.154437378,
-0.1199159548,
-0.0528848916,
-0.0214931481,
0.1791032106,
-0.3845656216,
0.5214546323,
-0.1856968701,
0.3085445166,
0.4751513302,
-0.1975559592,
-0.4616967142,
0.1067755818,
-0.042960275,
-0.0831893608,
-0.3642077744,
0.0197024122,
0.3551737368,
-0.0662745684,
0.1959030181,
0.0162360687,
-0.0600998402,
0.1576968729,
0.0483648069,
-0.0516047813,
0.119690448,
0.0165810809,
-0.0130937453,
0.1287434697,
0.2245815247,
-0.1051995754,
-0.0357203595,
-0.2099782228,
0.0927980244,
0.301017344,
0.305390656,
0.1411416531,
-0.1029464602,
-0.1510810852,
-0.2661797106,
0.1586986333,
0.1626497507,
0.1728421897,
-0.2033348382,
-0.1110056862,
-0.20701693,
0.0860203728,
-0.1815242618,
-0.044140175,
0.2680633664,
-0.0587692484,
0.104820177,
0.0061802301,
-0.0609133765,
0.0378706865,
-0.3639875054,
0.1085462868,
-0.1308041811,
-0.0567319468,
0.0285437014,
-0.2034261376,
0.0002927304,
0.1345684528,
0.1134955138,
0.0211043227,
-0.2943388224,
0.3483094871,
0.2806227505,
-0.198016569,
-0.0684036016,
0.0162229761,
-0.1527743042,
-0.2838912904,
0.0488849021,
0.1119782105,
0.1651588529,
-0.1241088063,
0.0026937043,
0.1598965973,
0.0852553323,
0.0486392826,
-0.0865831971,
0.1837624013,
0.2777928412,
0.1556941569,
-0.1324806809,
-0.2694278061,
-0.1678477675,
0.0698686093,
0.3245130181,
0.0164352451,
0.0377561897,
-0.2219960988,
0.4383488595,
0.1324272007,
0.1742406487,
0.1287520081,
-0.0500492975,
-0.0606959537,
0.0421921983,
0.3934545219,
0.544059813,
0.0357972533,
-0.1568251699,
0.0857429355,
-0.1568333656,
0.0600522235,
0.0551590547,
0.0921579003,
0.3318346143,
-0.0541454665,
0.041654449,
0.024436485,
-0.1346428543,
-0.3162120283,
0.0016256808,
0.2799020112,
-0.1794581264,
-0.0567139499,
-0.0656725541,
-0.0579749122,
-0.0733896568,
-0.2275718451,
-0.0409510694,
-0.1828246117,
-0.2411834896,
-0.0484187901,
-0.0376833379,
0.2662059367,
0.0047600134,
-0.0348586962,
0.1677857786,
-0.3207720816,
0.3212360442,
-0.3943753839,
-0.1202823669,
0.1123846248,
0.0908776,
-0.0423455425,
0.3318919539,
0.1308335215,
0.040412236,
-0.2614420056,
-0.1993705332,
0.0841476396,
-0.0970377997,
0.1033653691,
0.3699522614,
0.0143363299,
-0.2100003064,
-0.1809211373,
0.3269988894,
-0.1559438407,
-0.0598936453,
0.0247112345,
-0.1132062227,
-0.1555875689,
-0.179283455,
-0.309328258,
-0.2378807366,
-0.2599626184,
0.083684206,
-0.0193547029,
0.1814557314,
0.1999299377,
0.2797606885,
0.3256441355,
-0.0174705368,
-0.1835032552,
-0.2639645636,
-0.2820211351,
0.1595140249,
-0.5192968845,
-0.1890833378,
0.1598885804,
-0.1196864322,
0.4478086829,
0.3123948872,
-0.3665909469,
-0.0338879041,
-0.0988793895,
0.1386394799,
-0.0980390683,
-0.1112378165,
0.4257833064,
0.1343907267,
-0.0249692295,
-0.2975027561,
-0.4357236624,
0.2185883522,
-0.0120277368,
0.1079026461,
0.1871143132,
0.6236599684,
-0.0216526464,
0.7203983665,
0.3328920901,
-0.3126320243,
0.2853400707,
-0.1934002787,
0.2419656813,
-0.2737652957,
-0.3682576418,
-0.0074808849,
0.0095232949,
-0.0864241868,
0.066562742,
-0.1792473793,
-0.3093307316,
0.0403919555,
0.2701489031,
-0.3075177968,
-0.2517108321,
0.1083588004,
-0.1975458413,
0.376465112,
0.0067416839,
0.1433416903,
-0.4830639064,
0.0740653723,
-0.0361065194,
-0.0577554256,
-0.0475461744,
0.0341841839,
-0.527302444,
0.099671334,
-0.385676384,
0.1921502203,
0.1639494747,
0.4370244741,
-0.1329727769,
0.1676365137,
-0.1669909805,
0.291454941,
0.3413001597,
-0.5667745471,
-0.3351867199,
0.2215778083,
0.0317933932,
-0.5315788984,
0.0515853427,
0.0581914037,
0.4367109537,
0.0312544294,
0.4528925121,
-0.1641839147,
-0.0960783958,
0.1280760169,
-0.0742536783,
0.0372081362,
-0.1391506642,
0.0831231698,
-0.3158683777,
-0.2392449826,
-0.0701329783,
0.1149531007,
0.1528106481,
0.2315307558,
-0.1824422032,
-0.0474485569,
0.033875946,
0.0382726789,
0.1303161085,
0.2764235139,
0.0445920937,
0.1654509306,
0.0012379151,
-0.1220257655,
0.2366402447,
0.3606576025,
-0.266771704,
-0.4080090821,
-0.0055063418,
-0.035508953,
0.2581011951,
0.0740603805,
-0.186959818,
-0.0564566553,
-0.296377033,
0.0111721763,
-0.0714510009,
0.1902811378,
0.4804244637,
-0.0778857917,
-0.3768902421,
-0.6103815436,
0.1613931358,
0.1002553031,
0.0144903641,
0.5090962052,
-0.1684102714,
-0.2636223435,
0.4866534472,
0.0940572768,
0.6123236418,
-0.1272228509,
-0.0878091902,
0.142644614,
0.1132472157,
0.3553881645,
-0.0312677771,
0.0167544447,
-0.4292016029,
-0.0213392582,
-0.0667038262,
-0.2331681997,
0.2304181755,
0.3485707045,
-0.189457655,
0.1164673567,
0.0065893074,
0.411032021,
-0.0401143059,
0.1207793504,
0.2615002692,
-0.4369440079,
-0.2126342952,
0.3301956356,
-0.1307961196,
0.027113406,
-0.1017589569,
-0.0546172373,
-0.2210534513,
-0.2838739455,
-0.26767537,
-0.042806983,
-0.5681085587,
0.3580833972,
-0.0289710276,
0.0284080748,
0.2831266522,
0.3539123535,
0.1921067685,
0.2902730703,
-0.0644244403,
-0.0287651177,
0.1674304456,
0.1439160258,
-0.0080147628,
-0.0916817263,
0.125312984,
0.0417787693,
-0.1290611178,
0.0896146819,
-0.0845729783,
-0.1493302286,
-0.1274365932,
-0.0991617143,
0.2395208776,
-0.5454425216,
-0.2835675478,
-0.2808873653,
-0.0922457427,
-0.1747672707,
0.1964513659,
0.0148829436,
0.0139840804,
0.3123817444,
-0.2065940499,
-0.269523561,
0.0617656782,
0.1066496074,
-0.0698233172,
0.1705076396,
0.4268484414,
0.0121018235,
-0.0465339012,
-0.336098969,
0.1795169562,
0.1191812307,
-0.3774201572,
0.1738292575,
-0.1010743529,
-0.0152178546,
0.0607925057,
0.2285787612,
0.1035489216,
0.1169959307,
0.2195223421,
-0.2181686461,
-0.3500106037,
-0.0041084494,
-0.2088997811,
0.3608581126,
0.1046220437,
0.2733377516,
-0.0505608208,
-0.035084486,
-0.3905482292,
0.1263687462,
-0.1349455416,
0.1696080267,
0.2214268148,
0.1292124093,
0.1033268869,
0.0384704582,
0.1562618911,
0.3508365154,
-0.2635571659,
-0.2734265029,
-0.1393738538,
0.0489417128,
0.2369983047,
-0.1848825514,
0.1032617539,
-0.1323673129,
-0.3075629473,
-0.2586578727,
-0.0560384616,
0.2463858873,
-0.1726580262,
0.2121626735,
0.0882707462,
0.053343527,
0.0931897685,
0.0673696324,
-0.0631224513,
0.0118183875,
0.0031367082,
0.1528909653,
0.1373866498,
-0.1222598478,
-0.1124789268,
0.1023783907,
0.0119094523,
0.0824262574,
0.15782471,
-0.2328996062,
0.0744625106,
0.2115169168,
0.2725219727,
0.1073635072,
-0.4062049687,
-0.0651645064,
0.3674582243,
0.3092108071,
-0.156798318,
-0.0773331374,
0.4437194169,
0.0717486516,
0.1419775784,
0.2614397407,
0.1125765443,
0.1157528982,
-0.2528058589,
-0.144479841,
0.1303107291,
-0.1338519156,
0.3573176861,
0.4807225764,
-0.1113093421,
0.073812373,
0.2318692058,
0.2145041227,
0.1798754334,
0.6407541633,
-0.1027311683,
0.4042495787,
0.1537200361,
-0.0888839141,
0.2393780649,
-0.429338485,
0.3233009577,
0.0997001082,
-0.1209915653,
0.1440593451,
-0.1215434894,
0.226835385,
-0.2595476508,
0.0063334596,
-0.1651708931,
0.0348436497,
-0.2834736109,
-0.0003530821,
-0.0922808871,
-0.0460077375,
0.1485700309,
-0.2673061192,
-0.106080085,
-0.1838214397,
0.2417482883,
-0.1152060628,
-0.0084533924,
-0.2145258486,
-0.1257293373,
0.1178744212,
-0.0035541032,
-0.2124051899,
0.075108923,
-0.1516328454,
0.057842575,
-0.1489550918,
0.3527968526,
0.3654502332,
0.5458376408,
-0.1088030487,
0.0583246313,
0.1497378498,
-0.0526244938,
0.1373094916,
0.0994912535,
0.1339303553,
0.0324913561,
0.4296287298,
0.1708758324,
-0.1730730683,
-0.1064107344,
0.1563860625,
0.3600679338,
-0.0998780802,
0.0602866262,
-0.1364118606,
-0.062513046,
-0.1864772886,
0.2816995084,
-0.2134116143,
-0.1622438729,
0.6050931811,
0.0269614141,
0.3453224897,
-0.2474822402,
0.1459154338,
-0.1132811531,
0.4964219332,
0.1137204021,
-0.0273949802,
-0.3946325481,
-0.3023865819,
-0.406378746,
0.1022875309,
-0.3766298294,
0.0784689933,
-0.0880747288,
0.0301014837,
-0.037029516,
0.0664105862,
0.1207998842,
-0.2222496271,
-0.1465132236,
0.276050061,
-0.2253472954,
-0.2499591559,
-0.3256140649,
-0.0829016492,
0.3331922293,
-0.316121757,
-0.0858486891,
0.0034051735,
0.1438675076,
-0.2619489431,
0.029976381,
0.0829837397,
-0.0884645656,
0.5856483579,
0.163041234,
0.3099347949,
0.0192625113,
-0.0643442124,
-0.1792134494,
-0.1715915352,
-0.0905712768,
0.2927239537,
0.0616842024,
0.6076014042,
-0.1491550356,
-0.0012975801,
-0.3115741313,
-0.1097502485,
0.1641420424,
-0.085737586,
-0.2654816508,
0.2444041222,
-0.0181357358,
-0.0440480821,
0.1009716764,
0.2455944419,
-0.0819720849,
0.5150863528,
-0.0081000989,
-0.2914105654,
0.5103009939,
-0.5262163281,
-0.3504876792,
0.1792096794,
0.0024518918,
-0.0736709088,
-0.2278245986,
-0.5044869781,
0.0955140069,
0.3978461325,
-0.0757088512,
-0.0964352414,
0.0544620827,
-0.2428400069,
0.1626871079,
-0.0276849624,
0.2933388054,
-0.2039104402,
-0.1067740992,
0.214243114,
-0.2125303298
] |
https://github.com/huggingface/datasets/issues/2106 | WMT19 Dataset for Kazakh-English is not formatted correctly | Hi ! Thanks for reporting
By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue.
Moreover these issues are not always the same:
- L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line
- L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line
- L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line
- (and there are many others)
It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here:
https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training
Then maybe we can notify the WMT authors and host the corrected version somewhere | In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error.
The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here:
> Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді.
>
> Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды.
>
> Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code
```
import datasets
from datasets import load_dataset
dataset = load_dataset('wmt19', 'kk-en')
for key in dataset['train']['translation']:
if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']:
print(key['en'])
print(key['kk'])
break
```
we get:
> 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
> The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate.
which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one.
Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface. | 144 | WMT19 Dataset for Kazakh-English is not formatted correctly
In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error.
The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here:
> Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді.
>
> Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды.
>
> Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code
```
import datasets
from datasets import load_dataset
dataset = load_dataset('wmt19', 'kk-en')
for key in dataset['train']['translation']:
if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']:
print(key['en'])
print(key['kk'])
break
```
we get:
> 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
> The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate.
which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one.
Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface.
Hi ! Thanks for reporting
By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue.
Moreover these issues are not always the same:
- L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line
- L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line
- L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line
- (and there are many others)
It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here:
https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training
Then maybe we can notify the WMT authors and host the corrected version somewhere | [
-0.0953303054,
-0.5491960645,
-0.0432182774,
0.3162058294,
-0.086027205,
0.010772177,
0.1837911457,
0.172209233,
-0.1140667275,
0.2022086829,
0.1289510578,
0.0987926573,
0.1117266864,
0.5228420496,
0.0502477176,
-0.2106285691,
0.1143199056,
-0.1941501498,
-0.2592694163,
-0.1341279,
-0.0660599545,
0.105631046,
-0.4930417538,
-0.0548004247,
-0.411745131,
-0.1151647344,
-0.1502330303,
-0.0785623714,
-0.0658806786,
-0.1956117898,
0.0703044683,
0.133562237,
-0.1053124815,
0.3510217071,
-0.0001112676,
-0.2417628467,
0.0215642545,
-0.0297251288,
-0.1629366428,
0.0762898028,
-0.1257778406,
-0.8057078123,
-0.2112896144,
-0.1204431951,
-0.103797473,
-0.4211288393,
-0.1573449522,
0.0498364232,
0.3065551221,
0.1048355028,
0.1853928119,
0.2881682217,
-0.0026119996,
-0.1187295839,
-0.1859126836,
-0.0203668568,
-0.1585624516,
0.0198847186,
0.1100705788,
0.1526904851,
-0.1194506958,
0.6587665677,
0.0118425973,
-0.1108203456,
-0.0299412329,
-0.1155029461,
-0.1476062536,
0.0271584503,
0.0776108801,
0.4503269494,
0.4413163364,
0.0170426443,
-0.0518958829,
-0.1849427968,
0.0404486172,
-0.3243751228,
0.0702295303,
0.1509529054,
-0.2087910175,
0.1687709838,
0.02220851,
0.310007304,
0.0986341909,
0.0540106744,
-0.2007595599,
0.4679332972,
-0.1476943046,
0.0270628762,
0.0542254075,
-0.0414869338,
-0.1118215546,
-0.0609524362,
-0.013524605,
-0.1418370456,
-0.1481644213,
-0.0013137937,
-0.0952413231,
-0.2198383957,
0.1539943367,
-0.5208000541,
-0.1159043238,
0.3559966981,
-0.2307445407,
-0.1777942032,
0.192759797,
0.5753378272,
0.0576576702,
-0.3404282928,
0.1400427818,
0.1638714075,
0.0051133302,
-0.0042761466,
0.085822843,
-0.4291137159,
-0.2851945162,
0.1375285387,
-0.0554426052,
-0.0388978459,
-0.0930314139,
0.122347258,
0.1957934201,
-0.1440606117,
-0.231091693,
0.0197816584,
-0.1138922498,
0.4291627705,
-0.1612131745,
0.0644565374,
-0.1776589453,
-0.1697156727,
-0.1797194034,
-0.1399145424,
-0.3185177743,
-0.0326879546,
-0.191826269,
0.1269251853,
0.2599647939,
0.2328583598,
0.0105892038,
-0.0816573054,
-0.3358831704,
-0.0744913518,
0.47503528,
0.2353509367,
-0.1094063148,
0.1894774437,
-0.0672538504,
0.0855240449,
0.0013107017,
0.0184606351,
-0.3052259982,
0.2370883822,
-0.0127147902,
0.1222736835,
-0.1284810007,
-0.0958907679,
-0.2741920054,
0.5493568182,
0.0236129854,
-0.0164980702,
0.1953630447,
-0.1072932035,
-0.3907089531,
-0.1250795871,
0.2603444457,
0.1920643449,
-0.355953604,
-0.0284668356,
0.1010949686,
-0.0517999679,
0.4939495623,
0.4126814902,
0.1056017205,
0.1440581381,
-0.020315405,
0.1787224263,
-0.0787367374,
0.0409195386,
-0.3128332794,
0.0134840412,
-0.2729094028,
0.4639534354,
-0.0156171964,
0.0288681295,
0.0604278706,
0.2915112674,
0.1621890813,
0.0457517505,
0.0671482012,
0.2363935411,
-0.2866166234,
-0.3670728207,
0.6842615604,
-0.1920405179,
0.1620815694,
-0.3465856016,
0.0237742737,
-0.134655714,
0.5904841423,
0.2387705594,
0.1202825233,
-0.1334966272,
-0.0776729435,
0.0483450554,
0.2563452125,
0.1525766701,
-0.2615078986,
0.2069060802,
0.1994220018,
0.4913660586,
0.2391414344,
0.1307504028,
-0.1787829995,
-0.1840567887,
-0.2560292482,
-0.3216755092,
0.2132316083,
0.0867891237,
-0.4696196914,
0.3506500125,
-0.0635570437,
-0.0447058491,
-0.0672239438,
-0.0260023586,
-0.2125883996,
-0.0297509823,
-0.0089497464,
-0.028549049,
-0.1508794874,
0.2967287004,
0.2445808798,
0.1812207848,
-0.2409956753,
0.0913002491,
0.0638272017,
0.6336420774,
-0.1121879295,
-0.2415220886,
0.2419112474,
-0.7164646983,
0.035253007,
0.1181264967,
-0.0593290366,
-0.0951409116,
0.1239962503,
0.4310065806,
-0.0151629783,
0.0634541363,
-0.1755183935,
0.0894916207,
0.2513158917,
-0.0591866635,
-0.0728717595,
-0.2587555945,
0.1687140465,
-0.2381838113,
-0.2176353633,
-0.0330532566,
-0.1434032619,
0.3936030567,
0.5164344907,
0.2517269552,
0.2264315784,
-0.1031328738,
-0.4107163548,
-0.1604107022,
0.3795121908,
0.2175556719,
-0.086941056,
0.0945360661,
0.1723045409,
0.2995278537,
0.1139071062,
-0.1324414015,
0.1295514703,
0.0206174552,
0.0954601392,
0.2805339992,
-0.1022091135,
0.0206554811,
-0.2630799115,
0.5188571811,
-0.1302158535,
0.0445324332,
-0.1824710965,
-0.1719664782,
-0.4352489114,
-0.0866048858,
-0.5954188108,
-0.3802387118,
-0.1560972333,
-0.4191435874,
0.0219245125,
-0.2171103358,
-0.2821984291,
0.2730413079,
0.5708175898,
0.1382263005,
-0.3288728297,
0.6834561229,
-0.3291600049,
-0.531124711,
-0.190489307,
0.076460585,
0.2330761999,
0.5193151236,
0.1068045199,
-0.4199672937,
-0.1401582956,
-0.0576065369,
-0.63391155,
0.1419068724,
-0.369179517,
-0.0652040541,
-0.0582938306,
0.3191207349,
-0.2513320744,
-0.1517113,
0.2821587026,
-0.1380904913,
-0.0785943568,
0.374920696,
-0.2043968141,
-0.1959827989,
-0.1805735081,
-0.440982908,
-0.3408247232,
-0.1562551111,
0.2199536115,
-0.3337593973,
-0.2653497159,
0.4110273421,
0.2355194986,
0.0143296169,
-0.3028128445,
0.1374219507,
-0.2295394689,
-0.125182122,
0.0368713252,
-0.0791388601,
-0.4876855314,
0.1958708018,
0.1955719888,
-0.1193500757,
-0.0972848535,
-0.1942094117,
0.4939131439,
-0.0067949062,
-0.1669484526,
0.1840146184,
0.1353170872,
0.0118210102,
-0.0623589195,
-0.0028104156,
-0.1753418893,
-0.23689197,
-0.0616774261,
-0.013281188,
0.1650731266,
-0.2205605507,
0.2217829525,
0.3598542511,
0.2768026888,
0.1467600167,
0.2321696132,
-0.0783485249,
-0.0849827752,
0.3804539144,
-0.007025403,
-0.1966288984,
-0.0072077573,
-0.2464378625,
0.0987631083,
0.5342604518,
-0.0362025984,
0.3417959809,
-0.0959866494,
-0.4318202436,
-0.3260055184,
-0.3005723357,
0.163415283,
0.136579439,
0.2203222066,
0.193886891,
0.0029767761,
-0.0121425427,
-0.2541390061,
0.0119445501,
0.1817477643,
-0.3233281076,
0.1496139467,
-0.649324894,
-0.390801698,
-0.2101163119,
0.1783201247,
0.1908468306,
0.5266022086,
0.0216931235,
-0.0867908224,
0.0147216348,
0.0041497708,
0.1225300208,
0.1175094098,
-0.0526791736,
0.0036353916,
-0.1044451892,
-0.2852303386,
-0.1901821941,
-0.1888110042,
-0.2742127478,
-0.1602450013,
0.3807333708,
-0.0178261977,
-0.0537964255,
-0.0340605415,
0.5762076974,
-0.4829655588,
0.0547398478,
-0.3097639978,
-0.2468169481,
-0.0778804272,
0.1056276709,
-0.0828283057,
-0.2035562545,
-0.2467963994,
0.1738990992,
0.3307302594,
0.2122388482,
-0.051181104,
0.2393711209,
0.427906245,
0.1697329581,
-0.0459736325,
0.3436516225,
-0.1851816326,
0.5676720142,
0.3259208202,
-0.1027510762,
-0.0168611389,
-0.4144354463,
-0.4195947051,
0.4677901268,
0.4874897599,
-0.1403456926,
0.2592275441,
0.5915623307,
-0.0070070396,
-0.2882350087,
-0.0628013015,
0.3577048182,
0.4028764069,
-0.2360131145,
-0.0368833132,
0.122877419,
-0.1377453953,
0.104412213,
0.0924253464,
0.109130539,
-0.1621647924,
0.1848953962,
-0.0433544032,
0.8865993023,
0.2256827205,
0.2615555823,
0.3602927923,
0.0330767259,
0.0739066079,
0.1385931373,
-0.1617926359,
-0.0941575319,
0.0045831236,
-0.0466915257,
0.2219843417,
0.1527675539,
-0.073210761,
-0.3241306543,
0.2243207544,
0.1023740768,
0.5825098753,
-0.1413493007,
-0.1016586274,
0.2941731513,
-0.0617820807,
-0.2273465842,
0.0887745917,
-0.1416043043,
0.0437642224,
-0.1233865991,
-0.1849104166,
-0.1014072299,
-0.1501169056,
-0.3251176775,
-0.0241001081,
-0.294580251,
-0.1034508497,
-0.2135144621,
0.0179533847,
-0.0029564139,
0.0186120216,
0.4101047516,
0.2033899724,
-0.0546248034,
-0.0376557037,
0.2404323071,
0.2063181549,
0.0148551501,
-0.0065985797,
0.2028625309,
-0.2263789028,
-0.2533563375,
0.0646374822,
-0.1127078459,
0.2360698283,
-0.033952795,
-0.0533276163,
-0.0063045695,
0.2633964419,
0.0496420264,
0.3528274596,
0.1620623171,
-0.4291362464,
0.1087315604,
-0.0865187719,
-0.1663243771,
0.3700788319,
0.2234922051,
-0.2619773746,
-0.1754825711,
0.0672557577,
0.2198860198,
0.1549964994,
0.3292731047,
0.3228930831,
-0.1589480042,
-0.2308558226,
0.1641919464,
0.1783348024,
-0.3057082891,
0.0498164892,
-0.1226804033,
0.0145015847,
-0.246169582,
0.7356246114,
0.2438765764,
-0.3041029572,
-0.10088934,
-0.2222034782,
-0.2246763408,
0.4648391306,
0.2148208171,
0.0223170575,
0.2717101276,
0.3222668767,
0.0277983472,
0.1568287462,
-0.3618488908,
0.0553006306,
0.1475100964,
0.0892979428,
-0.2331241667,
0.1235951781,
0.0784092471,
-0.0459870324,
-0.0491055176,
0.0490226336,
-0.13689816,
-0.1757011116,
-0.2522903085,
0.070339404,
0.1060350612,
-0.2024828643,
0.1298442483,
-0.1209268644,
-0.0102066845,
-0.2606374621,
-0.0391151756,
0.3032339215,
0.0214056075,
0.6562045813,
0.5113466978,
0.3748397231,
-0.1676586717,
0.0306375902,
0.1414145827,
0.0408298038,
-0.0215170961,
-0.074220039,
0.0576403327,
-0.0140357763,
0.0181798432,
0.0019828542,
-0.0701420307,
0.3109599054,
0.0314573497,
-0.0569071732,
0.1499097049,
-0.075630717,
0.2567428648,
0.2328176498,
-0.006173613,
-0.1368317157,
0.1334675103,
0.1260898858,
-0.355332464,
0.0695870891,
0.2315456867,
-0.2497903109,
0.2247121185,
-0.0547077358,
0.6976214051,
-0.1712838113,
0.1296429336,
-0.0597574934,
-0.1611149758,
-0.287235409,
0.2644667327,
0.1709645987,
-0.0930199325,
0.2680008411,
-0.0916335136,
-0.052560959,
-0.1002388746,
0.0008200414,
0.1894943714,
0.3614405394,
0.3250834942,
-0.0061287684,
-0.0762205198,
-0.1764837205,
0.3923089802,
0.2627928257,
-0.5786651373,
-0.0118807359,
0.3152036667,
0.4003911018,
0.0261821784,
-0.2331157476,
-0.1960290223,
0.1454221606,
-0.4816761315,
0.0971689224,
-0.0988110229,
-0.1527324766,
-0.1637048125,
-0.1387461275,
-0.1691416651,
0.1189203039,
0.2113559097,
-0.0596022494,
-0.2362721413,
0.0646041334,
-0.3638756573,
-0.004196736,
0.1547765881,
-0.2315103412,
0.17448695,
0.2585039735,
-0.0560655743,
-0.0216647368,
0.4135408401,
0.1456404924,
0.2127304524,
0.0205736067,
-0.1573348492,
0.2102942616,
0.0312328693,
0.0450179055,
0.2843778729,
0.2946207821,
-0.0731144249,
0.1628485769,
0.1427555829,
-0.2451219708,
-0.1093584299,
0.4080255628,
-0.0703596249,
-0.148327589,
-0.3365427852,
-0.2267836034,
0.0103146788,
-0.1661459059,
0.0106602013,
-0.0623479076,
0.0447607897,
0.4490063787,
-0.0746462643,
0.0888533816,
-0.1517068148,
0.1223294288,
0.2219156623,
0.6906311512,
0.2963455021,
-0.1648270488,
-0.0089990655,
-0.3020528555,
-0.7928386331,
0.2897748053,
-0.08511924,
0.4469283819,
-0.0866167024,
-0.1200459227,
0.357514292,
0.2640539408,
0.213646993,
0.2724087536,
-0.18451038,
-0.1393789947,
-0.4809321165,
0.0902020335,
0.3914111257,
-0.0330011956,
-0.0831680596,
-0.1077031568,
0.3051950932,
-0.1150867566,
0.0880978703,
-0.00398853,
0.045183111,
-0.3098978102,
0.2056404054,
0.2238475233,
0.0749139488,
0.3904036582,
-0.0748720542,
-0.152085647,
-0.1948975772,
-0.1183003262,
-0.013815186,
0.3537481129,
0.0109864827,
0.2306621671,
0.1819505692,
-0.0099178245,
0.0150745697,
-0.0097373854,
0.1971977651,
-0.0832658708,
-0.3364749551,
0.2710095048,
0.1983929724,
-0.236070171,
0.1953928471,
0.5181952119,
0.136991784,
-0.0891261622,
-0.2669433057,
-0.2945525944,
0.1005224213,
-0.1692586243,
-0.27588889,
-0.2625382841,
-0.1398347169,
0.3332197964,
0.0444501378,
-0.1931957603,
0.0043045054,
0.0915737078,
0.3010489345,
0.0251115374,
0.1065681949,
-0.2855903804,
-0.1350484192,
0.0577145442,
0.2076471597,
0.3584673107,
-0.2832906246,
-0.1735757291,
-0.0966014415
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :)
Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say? | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 54 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :)
Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say? | [
0.249745965,
-0.3549623489,
-0.0154877398,
0.2169870436,
0.0509788804,
-0.0599794872,
0.0153632453,
0.1701466441,
0.3005090058,
0.0649965778,
-0.3151451349,
-0.2419162393,
-0.3971518278,
0.3670790195,
-0.2082138062,
0.1481841058,
-0.12108998,
0.0473448373,
-0.2688441277,
-0.0216255412,
0.1051728576,
0.2462720424,
-0.05332857,
0.3302407861,
-0.2204807103,
-0.1824881136,
0.0003758749,
0.2880857587,
-0.1681960374,
-0.3303509653,
0.3342995048,
0.3446074426,
0.1943358034,
0.4782932997,
-0.0001191036,
-0.2259055525,
-0.0449479707,
0.0634204373,
-0.3363039792,
-0.0503856093,
-0.0639070794,
0.0830903426,
-0.0390454717,
0.0706028268,
-0.1767839491,
-0.1328931153,
0.0946237966,
-0.1127751842,
0.4514949918,
0.2237597257,
0.1472908109,
0.5189124346,
-0.267988801,
0.2356348336,
0.0838874876,
0.5844472647,
-0.0968283862,
0.3613198698,
-0.1507349163,
-0.1344149113,
0.0206343122,
0.3544663489,
-0.4820707738,
-0.080860585,
0.3423904777,
-0.2815227509,
-0.3463058174,
-0.289493084,
0.1905053854,
0.3609244525,
0.5013283491,
-0.1849518865,
-0.00857055,
0.0326257348,
0.0586834811,
0.0704152286,
0.0936759561,
0.1089069173,
0.063174136,
0.4538687766,
-0.2132695615,
-0.5096268654,
-0.2386958748,
-0.1701662242,
-0.1918973774,
0.2741122246,
-0.2331751138,
-0.0442750193,
0.0756482631,
-0.012830344,
0.1244939715,
-0.140435189,
-0.1270954609,
0.2118844688,
-0.123220399,
-0.3587533236,
-0.1462820023,
0.0978428423,
0.338232547,
-0.0054845433,
-0.0339054465,
-0.103149578,
-0.3579528034,
0.1639177799,
0.2696820199,
-0.1068989784,
0.1650609821,
0.0802445561,
0.2007357478,
0.3710964322,
0.2687784135,
0.105800651,
0.2009719759,
0.1437757015,
-0.267775178,
0.020692626,
0.4212612212,
-0.4505501091,
-0.4954603016,
0.3764741123,
-0.0396212079,
-0.1254843175,
0.1502395719,
0.2772760689,
0.1018730849,
-0.019524049,
0.1454114914,
0.1165281683,
-0.18445234,
-0.3579524457,
-0.1602799892,
0.2095674574,
-0.2512292862,
0.1203955933,
0.1802689135,
-0.1312957108,
0.1287759691,
0.1143667176,
0.6399710178,
0.2406098247,
-0.1666056216,
-0.1466243565,
0.260384202,
0.1203867346,
-0.1811205,
0.0802047476,
0.1370400339,
0.0961923972,
-0.2488333732,
0.0890591666,
-0.3099267483,
-0.2802248299,
-0.5160049796,
0.0420542918,
-0.1513459384,
0.0481918007,
-0.3567976058,
-0.051567778,
-0.3598994017,
0.1025716737,
0.2436719388,
0.1525047272,
-0.4501981437,
-0.0034856682,
-0.1981194019,
0.5347212553,
-0.0669692233,
-0.0042568431,
0.3785065711,
-0.3493417501,
0.0128765414,
0.4040501416,
-0.2383315116,
-0.2535091937,
-0.439138025,
-0.1414206028,
-0.5946813822,
-0.1744573861,
0.0992877856,
0.5375522971,
-0.299270153,
0.2132285535,
0.0099562239,
-0.2031261474,
0.0113223447,
-0.5564863682,
-0.0973529667,
-0.0895493999,
0.2681992054,
-0.2259252965,
-0.2278826386,
-0.3242282867,
0.0612320863,
-0.1026290953,
0.1750383675,
0.3118287921,
0.0767641738,
-0.0738642663,
0.6009218097,
0.0521629825,
0.0797497854,
0.3716997504,
0.2853854597,
0.2455005497,
-0.2253014147,
0.0560511798,
-0.1960528046,
-0.0647549331,
-0.0250653662,
-0.0749503672,
0.1551262438,
-0.2883828878,
-0.190280959,
0.0183648206,
0.0271835383,
0.1615637988,
-0.0629755259,
-0.3182080388,
-0.0179347955,
-0.1112439185,
-0.3682826757,
0.6763766408,
-0.1507046819,
0.1577687114,
-0.1715860814,
0.1568668485,
0.0588737316,
0.2809247673,
0.2297971845,
0.0875789896,
0.2233129442,
-0.015002857,
0.1429278105,
0.2585815787,
-0.1537299454,
0.0822616816,
0.2234176695,
0.429000169,
0.1444978416,
-0.104883492,
0.480974257,
-0.0827414542,
-0.0540455393,
0.203528285,
0.087126717,
0.2614377737,
-0.3357443511,
0.052635774,
-0.3771405518,
-0.179043889,
0.1647437513,
-0.0615300499,
-0.1390988678,
0.0128756892,
0.1143248379,
0.153839618,
-0.2277926356,
-0.0845725238,
-0.3620779514,
-0.1090863422,
-0.164412111,
-0.2193992436,
-0.2350514978,
0.2299925536,
-0.0151849454,
-0.0578252263,
0.4176203012,
-0.0115159936,
0.2619352043,
0.1280820072,
-0.1451249123,
0.2411234379,
0.3163655698,
-0.074684836,
0.2493270934,
0.0866194814,
-0.0355137289,
-0.0647581369,
0.1031340659,
0.0849606916,
-0.3730011582,
-0.2814786732,
-0.3263086379,
-0.0815614387,
-0.3990688026,
0.1705248803,
-0.1877946407,
-0.3982468843,
0.0312803797,
0.4227201641,
-0.6007092595,
0.0725848004,
0.3227221966,
0.2935097218,
-0.1004194841,
-0.0541537702,
-0.2906793952,
0.3760781884,
-0.360655576,
0.0042777755,
-0.1575551927,
0.1559747607,
-0.0230977628,
0.0489611775,
-0.0592316389,
-0.0755981952,
0.5918334723,
0.0483932756,
-0.1953925788,
-0.2420420647,
-0.0286115929,
0.2571060061,
0.0222352594,
-0.2735896409,
0.3110339642,
0.4664095938,
-0.1958956122,
0.088809751,
-0.2306555957,
-0.3152904212,
-0.0752918497,
-0.022192385,
-0.0101125501,
0.1665057242,
-0.166059494,
0.3509400785,
-0.1194060221,
-0.1206385642,
-0.1005801186,
-0.2498233616,
0.1017662361,
0.1561324298,
-0.242331475,
-0.0377894156,
-0.4389005601,
-0.2412038893,
-0.4783961177,
-0.7775787115,
0.1322235614,
0.1551060379,
0.0619402006,
0.3001137376,
0.2907039225,
0.02433482,
-0.2453392893,
-0.4676837921,
-0.2666756213,
0.1108360067,
0.029954277,
-0.0711925924,
-0.038790714,
0.1316690445,
-0.0325354487,
-0.0444164574,
0.0204176772,
-0.1365665942,
-0.2444275916,
-0.0075045181,
0.2517966926,
0.0325366929,
0.1261015832,
0.0227922797,
0.4973385036,
0.1448775828,
0.0841675624,
0.4559576511,
0.1717983037,
0.3662774563,
0.0237875488,
-0.2425235659,
0.103352949,
0.1416407526,
-0.3005751669,
0.2440728992,
-0.0383810475,
0.3073278368,
-0.0081217317,
-0.2871602476,
-0.0282573216,
-0.3399542272,
0.0091047101,
0.1280030459,
0.2055031955,
0.0248851553,
-0.2929008007,
0.297454536,
-0.4071059227,
0.2614756227,
0.2595376968,
0.5409588814,
-0.0682667792,
-0.3393147588,
0.0467194207,
-0.6888623238,
0.297967732,
-0.2771046162,
-0.2801993191,
-0.2462518662,
0.1726004779,
0.228355363,
0.2470276952,
0.498619467,
0.2680112123,
0.0235361326,
-0.2184675634,
-0.1825601757,
-0.0582052916,
-0.0362151302,
-0.1056764126,
0.1881691217,
-0.1052631885,
0.0500427559,
-0.3504538238,
-0.531548202,
0.2567067146,
-0.0225876831,
-0.1742412895,
-0.236178726,
-0.2920233309,
-0.1977843195,
-0.3408432007,
0.1677180827,
0.3076163232,
0.0153894043,
-0.125312224,
0.1018319204,
0.4349919856,
0.1473048925,
0.6156092882,
-0.2114205956,
0.0193333384,
0.3439421952,
-0.1309427768,
0.1688973159,
0.3511147797,
0.4098882377,
0.5923302174,
0.1420723051,
-0.0819056109,
0.0140372561,
0.1726197004,
0.3772751987,
0.5314569473,
0.1444597542,
0.2339476198,
0.1110391542,
0.5215494633,
-0.4326659143,
-0.0630818158,
0.1206266433,
-0.3773059547,
-0.2497071028,
-0.0989961401,
0.2030663937,
-0.0780609101,
-0.1188461334,
-0.1410821676,
0.8098534942,
-0.1867144555,
0.1559916288,
0.1509019434,
1.332015872,
-0.24792853,
0.2357514948,
0.271294862,
-0.129040271,
0.4322169125,
-0.3908834457,
-0.1765439063,
-0.2118511945,
-0.0162082538,
-0.1631898582,
0.1025288329,
-0.0620001443,
0.1435306072,
0.2626081407,
0.328117609,
-0.4982749224,
0.1290333569,
-0.2335585356,
0.2766572535,
-0.1408674419,
0.0030515036,
-0.3498928249,
0.0744982138,
-0.1713304371,
0.4168684185,
-0.219118908,
-0.0671671182,
0.4257997274,
-0.3778277338,
-0.0424639024,
0.0447314978,
0.0388373807,
-0.1559121013,
-0.1112904027,
0.0425098166,
0.3011128008,
-0.0560349897,
0.3512803614,
0.0278364215,
-0.0726789236,
0.0513904914,
-0.1709360629,
-0.0841920599,
-0.2952905297,
0.0870446041,
-0.2191114277,
0.0486369394,
-0.2608412206,
0.1357266456,
0.2565945685,
-0.0180953275,
-0.2227426022,
-0.0412251987,
-0.0989611745,
-0.3706773818,
0.0318806916,
0.1167129353,
0.2910928428,
0.1557994187,
0.0564192347,
0.3169154525,
-0.013824556,
-0.3145057559,
0.3934531808,
-0.2551902831,
-0.2107522935,
0.2886607051,
-0.0272123162,
-0.2627366185,
0.3052182198,
0.1696690917,
-0.2657027245,
-0.3482817709,
-0.0754251331,
0.0589199401,
-0.5973585844,
0.0254180226,
0.4354971051,
-0.1620436162,
-0.2526150346,
-0.2109773457,
0.0568802357,
-0.0889870226,
0.3848845363,
-0.0449820943,
-0.1926764846,
0.2018598616,
-0.216938749,
0.0482336618,
0.2139459997,
0.0933070928,
-0.37105003,
-0.1320233941,
-0.2644647956,
0.0163212679,
0.105356954,
-0.2173146009,
0.1335785836,
0.2935498655,
0.291003406,
-0.2786357999,
-0.0203130059,
-0.0993212089,
-0.1770349443,
-0.0748839527,
-0.2910591364,
0.2215994447,
-0.0449013449,
-0.1685599238,
-0.1221850514,
-0.1883229464,
0.0235308856,
-0.0048136404,
0.4513418376,
0.7438862324,
0.2988627851,
0.2216384858,
-0.0300447308,
-0.2597450018,
-0.3106905222,
0.0058660195,
0.2851534188,
0.4316035807,
0.2342332453,
0.0356954783,
-0.1349040717,
-0.1548626274,
-0.077511251,
0.4667082131,
0.372009784,
0.1954261959,
0.0320643112,
0.0422280952,
-0.1331793666,
-0.0589350611,
0.2870424688,
-0.1698836088,
-0.2773601711,
-0.5174633265,
0.0916581526,
0.0997792333,
-0.2205556035,
0.0020809676,
0.1206343099,
0.099604167,
-0.2272838652,
0.2557862103,
0.0328348912,
0.2989794314,
0.234300077,
0.0497592464,
0.1036292017,
0.0457915813,
0.0056180512,
-0.1631212682,
-0.3256458044,
-0.1176437065,
0.304412365,
0.1418194771,
0.2957922518,
-0.1029093489,
-0.0012432808,
0.2620549798,
0.1100718826,
0.3436683416,
0.0641129464,
-0.4404393733,
-0.1973463595,
0.4140305221,
0.0036724338,
-0.0359742828,
0.2168564647,
0.1978268325,
0.0704156458,
-0.336260289,
-0.2519577444,
0.3827543259,
-0.017156817,
0.1619793773,
0.1494686306,
0.0006607141,
-0.2370758355,
0.0316931158,
0.0101731103,
-0.1894213855,
0.2951089442,
0.0410582051,
-0.1641432196,
-0.0630542934,
-0.0407242216,
0.2460592091,
0.1142048761,
0.0809094831,
-0.1802520305,
0.1558291763,
0.1466405243,
0.4085486829,
0.3081879914,
0.2187096179,
-0.193095088,
0.3625757098,
-0.0345161781,
-0.191535309,
0.1151139662,
0.1295536309,
0.1988429129,
-0.1566423178,
0.1549253017,
0.0691781566,
0.0344627835,
0.009970651,
-0.099814795,
-0.011179951,
0.2621311545,
-0.2802785039,
0.3153544366,
0.1543419361,
0.1042038724,
-0.1866542697,
-0.0157017652,
-0.1792557687,
0.0357774161,
0.2729767263,
0.0198935643,
0.2161611915,
-0.075698033,
0.0229736157,
-0.11125689,
0.0774395019,
0.5089769363,
0.0148961972,
-0.3831488788,
-0.0282364581,
-0.3676787615,
0.1642832309,
-0.1747783422,
-0.0107603958,
-0.079302527,
-0.1445977837,
0.2598772347,
0.0191256087,
0.0137536079,
-0.4540664852,
-0.0559212938,
-0.1435639858,
0.0621940158,
0.2941073477,
-0.2662775815,
0.360712111,
0.0232318398,
-0.0668497384,
0.0598655082,
0.029787343,
-0.1144579053,
-0.2641505301,
0.324703306,
-0.1846611351,
-0.4762775004,
0.2907905281,
0.1561371982,
0.0620757975,
-0.1317416579,
-0.3518448472,
0.1171886995,
-0.1519411057,
-0.0625785068,
-0.0601476356,
0.2416971177,
0.1981602907,
0.0042984113,
-0.1956633925,
-0.0065109213,
0.5049576759,
-0.2357054651,
0.3362915516,
-0.4627580345,
0.0505445153,
-0.2155089527,
0.2378562838,
-0.2511631548,
0.2846775353,
0.2050159723,
0.0858608857,
-0.2218782306,
-0.037783552,
0.8010755777,
-0.2489509284,
-0.0627346635,
0.0230470095,
0.7974458933,
-0.1255707145,
-0.5456664562,
-0.6729075313,
0.3868609071,
-0.0742241368,
0.0923879743,
-0.0214734804,
0.3568214774,
-0.2921844125,
0.0004404406,
0.1347308755,
0.3854473531,
0.1125350744,
-0.1136493832,
0.2185109407,
-0.0870213509
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there.
Is it OK? Are you planning to eventually delete it? Thank you. | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 33 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there.
Is it OK? Are you planning to eventually delete it? Thank you. | [
0.4957600534,
-0.3337315321,
-0.0840625316,
0.5156828165,
0.0438570231,
-0.1015332788,
-0.0326936692,
0.0329051092,
-0.0669208243,
0.035270758,
-0.4459502697,
-0.1573462933,
-0.4066599011,
0.3072045743,
-0.2146409154,
0.1066133976,
-0.0704355091,
-0.0257811863,
-0.2145420462,
0.1067166626,
0.215732798,
0.2247691303,
-0.1654161066,
0.0539167635,
-0.2104237229,
-0.2381735593,
-0.1167771369,
0.1302072257,
-0.3192272782,
-0.0353853926,
0.3552876711,
0.256855607,
0.0180795789,
0.5105398893,
-0.0001207894,
-0.2499540746,
-0.1819291115,
0.0273431726,
-0.3482285738,
-0.085083425,
-0.2539298534,
0.2486187369,
-0.0800374895,
0.0494217463,
-0.0200396962,
-0.0894500241,
0.0677071214,
-0.0824017972,
0.4551747143,
0.3425408304,
0.1748303473,
0.4669800997,
-0.2167337537,
0.3688215911,
0.0464740396,
0.5212649703,
-0.1069013923,
0.4482250512,
-0.077300109,
0.1177877188,
0.2876633704,
0.2670897841,
-0.4529402554,
0.0094578993,
0.1681184173,
-0.1748993546,
-0.2927420139,
-0.3420935273,
0.4042111337,
0.2000583708,
0.5567815304,
-0.1356281042,
-0.0795359686,
0.1709877998,
0.1103686765,
0.0262249857,
0.1101982594,
0.3364536166,
0.1220410615,
0.4964212477,
-0.447081089,
-0.6174140573,
-0.1987923831,
-0.1457074732,
-0.3737244606,
0.45200333,
-0.4058314264,
-0.0916312113,
-0.1052422076,
0.0417876728,
0.1657263339,
-0.215270251,
-0.0421459936,
0.1711712629,
-0.1479816288,
-0.1933973879,
-0.2669914067,
0.330288589,
0.0193494372,
0.1699256599,
0.1828710437,
-0.2607260942,
-0.2533019483,
0.1017720699,
0.2911593318,
-0.0237628277,
0.0344302617,
0.1623580009,
0.1257820427,
0.1631886363,
0.3278101683,
0.1640239656,
0.114265658,
0.3418657482,
-0.4561466873,
-0.1095791981,
0.5117801428,
-0.4140562415,
-0.398041904,
0.2177031934,
-0.1894529462,
-0.0567284115,
0.2985417545,
0.0370174982,
0.0437170938,
-0.1946989745,
-0.0023850924,
0.0292248912,
-0.109537825,
-0.2861461639,
-0.1512727886,
0.1469768733,
-0.075895153,
-0.0422931537,
0.3087783754,
-0.2856439054,
0.2127103657,
0.1209731773,
0.5065147281,
0.1983675212,
-0.139512077,
-0.1003877968,
0.1341325492,
0.0941663608,
-0.2758986652,
0.1906487793,
-0.057892058,
0.029338019,
-0.1639855653,
-0.004059047,
-0.4304205179,
-0.2518909574,
-0.5167295933,
0.0256337728,
-0.1676170677,
0.0279528126,
-0.2884707451,
-0.1311133206,
-0.152727887,
0.047771845,
0.2074297965,
0.2324856222,
-0.3048729897,
-0.1078943163,
-0.145724088,
0.2310077846,
0.0114553934,
-0.047003828,
0.401556164,
-0.169683516,
0.1348303705,
0.4137635529,
-0.1444092542,
-0.2488921285,
-0.3052417338,
-0.1933332682,
-0.5849938393,
-0.1785206795,
-0.2186419219,
0.3066714406,
-0.291636616,
0.0653247014,
0.0907889083,
-0.2250338495,
0.1867791712,
-0.3971126974,
-0.1050936878,
0.0150191765,
0.2615577579,
-0.3209238648,
-0.2446400523,
-0.2160148025,
0.0213175677,
-0.1389903873,
-0.0529978164,
0.2530774772,
-0.0388517454,
0.0655224919,
0.3861150742,
0.137218371,
0.2675560713,
0.367946893,
0.3419260085,
-0.0033929676,
-0.2892648578,
0.0228997692,
-0.3031850755,
-0.0008268462,
-0.1005431861,
0.014012293,
0.1042813584,
-0.2691429853,
-0.1032083705,
-0.067480363,
0.1229779869,
0.055216942,
0.0060697063,
-0.3333396316,
0.137013182,
-0.2558970153,
-0.2763423026,
0.5580834746,
-0.058723662,
0.1693243384,
-0.3764615953,
0.1268548518,
0.0966550931,
0.2309935093,
0.29742378,
0.0872852355,
0.0516797081,
-0.1487176865,
0.0167451184,
0.2936427295,
-0.1941562295,
0.2961036563,
0.195714891,
0.5390328765,
0.2160009444,
-0.075185582,
0.3775984943,
-0.0670158491,
0.0553690828,
0.1712251157,
-0.0678177029,
0.2758795917,
-0.2441229075,
0.0997906327,
-0.2766649723,
-0.0535207912,
0.2998169661,
-0.008476234,
-0.2149956077,
0.0558522418,
0.2065371722,
0.1228864193,
-0.1381976008,
0.03919743,
-0.2054745257,
-0.0551349334,
-0.4398143291,
-0.0822410062,
-0.2566310167,
0.0857054144,
-0.2197520286,
-0.1574987471,
0.4005414844,
0.0638064742,
0.3512215316,
0.1117029563,
0.0556260757,
0.101479426,
0.6616275311,
-0.1314484328,
0.3922664225,
0.1514545977,
-0.0804906264,
-0.2001648992,
0.3394489288,
0.1562803239,
-0.2818535566,
-0.044273451,
-0.2306790948,
0.0450035967,
-0.2120529413,
0.1666827947,
-0.3680695295,
-0.4625119567,
0.0466782823,
0.3735588193,
-0.6214091182,
0.11931777,
0.149513036,
0.2071439624,
0.0515229926,
-0.0294182617,
-0.1133591458,
0.4791513383,
-0.4406366944,
-0.006690511,
-0.1465625018,
0.0948426574,
0.0196558423,
0.1045659706,
0.0436964892,
-0.0225986466,
0.5850804448,
0.0852534175,
-0.0397210941,
-0.289619714,
-0.1460239142,
0.2113805711,
0.0025427665,
-0.2489181608,
0.1970223039,
0.3608907461,
-0.4428422451,
0.2280668765,
-0.2399174571,
-0.311965704,
-0.1648210287,
-0.1356616467,
0.0246881787,
0.1858581156,
-0.1512952149,
0.3677880466,
-0.1659550369,
-0.0851375014,
0.0624413043,
-0.0626602471,
0.0410469249,
0.00853856,
-0.4504863918,
0.0301184841,
-0.2970259488,
-0.2289243639,
-0.4113449752,
-0.9189473987,
0.152366519,
0.11676687,
0.0193301495,
0.2935317755,
0.4042416811,
0.3140757978,
-0.1340132803,
-0.2661592364,
-0.1224799454,
0.0487618223,
0.0595247969,
0.0118060466,
0.06520015,
0.2354320139,
-0.049962014,
0.0274177305,
0.0571305901,
-0.2474699467,
-0.3330614269,
0.3217717707,
0.3163862824,
0.0432503484,
-0.0904859826,
0.032335531,
0.5703094602,
0.1193070859,
0.108198449,
0.2337164134,
0.0584444851,
0.2107963711,
0.0774303228,
-0.3203351498,
0.2461824268,
0.1141091734,
-0.3820787072,
0.3038386405,
0.2107919753,
0.2345763296,
-0.0999831259,
-0.1175923273,
-0.307351917,
-0.2389181554,
-0.096697256,
0.1623189002,
0.3810126781,
0.1455530077,
-0.4143987894,
0.1838243306,
-0.6200312972,
0.0153119089,
0.0993890688,
0.4457888007,
-0.1423616558,
-0.3448931277,
0.1389116198,
-0.7456735969,
0.3348258138,
-0.2592066228,
-0.4012363851,
-0.0420990176,
0.3280583024,
0.3923137784,
0.2205259353,
0.4572169483,
0.3931534588,
-0.1158165038,
-0.3311366439,
-0.1643446535,
-0.1489860713,
0.0543994159,
-0.1202843785,
0.2828079164,
0.166012004,
0.0103463456,
-0.3399404585,
-0.3981848061,
0.2015841603,
0.0127112502,
-0.2689373493,
-0.1603001356,
-0.1998766959,
-0.3115580976,
-0.1354835629,
-0.0702380463,
0.2671819031,
0.0904126912,
0.0411676988,
0.2658305764,
0.2342761457,
0.054875724,
0.5304291248,
-0.389734,
0.1439937949,
0.2950492203,
-0.0499288738,
0.2139314562,
0.3759802282,
0.3007418513,
0.6087448001,
0.152726844,
-0.1222707331,
0.0399609432,
0.0556124747,
0.4190649688,
0.493833214,
0.0840898082,
0.2226263434,
0.043463856,
0.4279055893,
-0.3727278411,
-0.1342262775,
0.1682680249,
-0.3318160176,
-0.1991733611,
-0.0686133429,
0.1978186965,
0.1184221432,
-0.1755995005,
-0.1097563431,
0.7189228535,
-0.2271828651,
0.0384961404,
-0.0355745032,
1.3941191435,
-0.1602260172,
0.194944039,
0.1941277683,
-0.1110364124,
0.6845203638,
-0.2874391973,
-0.0362648778,
-0.0968801156,
0.0766121,
-0.1713692099,
0.1745815873,
0.0234014504,
0.1255312562,
0.3082107306,
0.2151379287,
-0.4961577058,
0.3687132299,
-0.184652999,
0.2205482125,
-0.0238176603,
0.0218943115,
-0.5131447315,
0.0759435073,
-0.2100071311,
0.3007343113,
-0.1663537621,
-0.0731302053,
0.1509171724,
-0.2481134981,
-0.0393894352,
-0.1208686531,
0.1561519653,
-0.0291193984,
-0.1115674675,
-0.1162345186,
0.1237897277,
0.1180700809,
0.2266777456,
-0.0220316276,
-0.2298936695,
0.1466963291,
-0.1310493648,
-0.1286080182,
-0.1485784501,
0.1618470997,
-0.5426867008,
-0.089074038,
-0.0815428793,
0.0844440833,
0.2241680771,
-0.0464944132,
-0.1340240538,
0.0344783366,
-0.0058436408,
-0.29149279,
-0.0973671302,
0.030325789,
0.1702997684,
0.0401915982,
0.0708397478,
0.3123107553,
0.0006764797,
-0.2959251702,
0.2866963446,
-0.153784126,
-0.2394489944,
0.4287186563,
0.1977637708,
-0.3225497305,
0.2857302129,
-0.0190899763,
-0.1904805452,
-0.2751340568,
0.2016454935,
-0.3425219059,
-0.5874431133,
0.114128612,
0.314966321,
0.0366047993,
-0.2915132046,
-0.1975776702,
0.1104004756,
-0.0264899544,
0.3168045878,
-0.0584950633,
-0.1946906298,
0.1652728021,
-0.0926989466,
-0.0414469019,
0.0176054277,
0.0027850715,
-0.306052804,
-0.0078446176,
-0.2347194254,
0.2258277982,
0.1353641599,
-0.1650213897,
0.2514098287,
0.2690314949,
0.189671874,
-0.3752942383,
0.0139902392,
-0.1579984128,
-0.0628548265,
-0.1252653152,
-0.2023278028,
0.2092254311,
0.0137124173,
-0.3652535081,
-0.1408753544,
0.0106530106,
-0.0787614956,
0.0449377708,
0.2707511485,
0.6551380754,
0.4446861446,
0.0695411488,
-0.1357015371,
-0.1160849631,
-0.2091147304,
0.1226799041,
0.280531168,
0.3615551889,
0.2780155838,
0.1833037138,
0.0210822448,
-0.2138292193,
-0.098897174,
0.1772831231,
0.2302203625,
0.1133606508,
0.0641401857,
-0.0504006334,
0.0162511393,
-0.0165796299,
0.3196048737,
0.0419558696,
-0.2212169617,
-0.2051953077,
0.0941629857,
0.0966501459,
-0.2390658855,
0.0912447646,
0.3166818619,
0.2178631425,
-0.2466183603,
0.1899968833,
0.00809032,
0.3711923361,
-0.0991900787,
-0.048370976,
0.1039115414,
0.1159598976,
0.0622351691,
-0.1857697666,
-0.0982565805,
-0.1045928672,
0.3679387271,
0.1211199537,
0.1277452558,
-0.1870661825,
0.0125025567,
0.3199791014,
0.133212626,
0.3787962198,
0.328148365,
-0.3077746034,
-0.3909491003,
0.2668868899,
-0.0182672702,
0.1024363115,
0.2293857038,
0.4026899636,
-0.0670614541,
-0.4168703258,
-0.2844018042,
0.5166845322,
0.0485898443,
-0.0332629643,
0.1105165258,
-0.2009192258,
0.0519625917,
0.1180611923,
-0.1513550729,
-0.2885620892,
0.3093552589,
0.0303904023,
-0.1930826604,
-0.2587172985,
-0.1305486262,
0.2527622283,
0.1449282765,
0.0835627094,
-0.1449498981,
0.0333268046,
0.1658578664,
0.1370891929,
0.3544534743,
0.067537874,
-0.3148905933,
0.3163478673,
-0.0451441146,
-0.1601144671,
0.0241891574,
0.034529645,
0.3621996939,
-0.0635649115,
0.0739471912,
-0.0713597015,
0.017950885,
-0.0155647192,
-0.0254431013,
0.0837689117,
0.3100961447,
-0.3714369237,
0.1992070973,
-0.0777842775,
-0.001828366,
-0.0205146298,
-0.1432973593,
-0.19207865,
0.0305634681,
0.1091963127,
0.0172963012,
0.2012603283,
0.0917826071,
0.0172339138,
-0.206596911,
0.1258371025,
0.4229775965,
0.1077392325,
-0.3011724055,
-0.2894937992,
-0.3903498054,
0.126979664,
-0.1087453812,
0.0506040752,
-0.2355714589,
-0.0645273253,
0.2830372751,
0.1545535624,
-0.208868891,
-0.402249068,
-0.0171847716,
-0.0691533536,
-0.0063843681,
0.3615442216,
-0.2786250412,
0.3093093634,
0.0446296036,
-0.0658402368,
0.0928759798,
-0.0068057259,
-0.1091712192,
-0.3168356121,
0.3109952807,
-0.1654199958,
-0.3387309611,
0.240381375,
0.1307761371,
-0.1046122611,
-0.0211967044,
-0.3472580612,
-0.0699118972,
-0.0986001343,
0.1005968526,
0.0540763251,
0.2209934294,
0.1504023522,
-0.0379119068,
-0.0102780787,
0.0456225798,
0.5237258673,
-0.2117826492,
0.2887278795,
-0.4321366251,
-0.0973335207,
-0.2158827484,
0.2435978949,
-0.1751490235,
0.2454283834,
0.0639057159,
-0.1614899039,
-0.2857497633,
0.0038837579,
0.7217820883,
-0.3279657364,
-0.0523689128,
0.0803431571,
0.7390750051,
0.0482148379,
-0.471495688,
-0.6054500937,
0.3153673708,
0.1254723668,
-0.1929334253,
-0.0164860953,
0.3764760494,
-0.2878527343,
-0.0711824596,
0.1421399117,
0.4748224616,
0.2032743841,
-0.0297303498,
0.2586494088,
0.0450952835
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hi! Sorry I missed @yjernite 's previous message, thanks for responding!
Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it? | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 34 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hi! Sorry I missed @yjernite 's previous message, thanks for responding!
Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it? | [
0.3147093356,
-0.2077658474,
-0.023903884,
0.3282621503,
-0.0140944244,
-0.1829029918,
0.017519135,
0.1725749373,
0.1771009713,
0.1621483266,
-0.4038799107,
-0.2786832452,
-0.312787652,
0.4572265446,
-0.1433836669,
0.1945002824,
-0.0702700987,
0.0524483994,
-0.3202082813,
0.0324458592,
0.1301749945,
0.2261827439,
-0.088468194,
0.0661725253,
-0.1380361468,
-0.1128828526,
-0.0782065019,
0.1449866295,
-0.1255220771,
0.0694024265,
0.261051178,
0.4705428183,
0.0800838917,
0.433993727,
-0.0001245844,
-0.3209072649,
-0.1540062129,
0.0056153666,
-0.4018524587,
-0.113001965,
-0.0782959834,
0.2641178071,
-0.0908567607,
0.1397802234,
-0.0534053147,
-0.1262889951,
0.0841631517,
-0.1527347565,
0.318708539,
0.2342595458,
0.1314424574,
0.5757726431,
-0.4303702414,
0.2741441131,
0.1232630089,
0.6085688472,
-0.1516876817,
0.3492445946,
-0.1199226156,
-0.1097443029,
0.2139885575,
0.3302992284,
-0.4357927442,
-0.0924806073,
0.249125883,
-0.1535654515,
-0.3985681236,
-0.2252962142,
0.4142616987,
0.2827499211,
0.4330856204,
-0.2104133815,
-0.0904780328,
0.1022290438,
0.047430899,
0.049488876,
0.0116878059,
0.2144204825,
0.0960225388,
0.4289373159,
-0.3170788288,
-0.6390437484,
-0.2341395766,
-0.1140615344,
-0.3001757562,
0.3237964213,
-0.2973468602,
-0.0641863048,
-0.0738200843,
0.0914318636,
0.1797325909,
-0.2322838604,
0.0127116274,
0.1589960307,
-0.0431555621,
-0.3171835244,
-0.217878893,
0.3126017749,
0.2448574305,
0.0445574597,
0.0243876968,
-0.1624379456,
-0.2845407426,
0.2050909698,
0.3105307817,
-0.0921660215,
0.0419714674,
0.0940725356,
0.2771454751,
0.2518101633,
0.2529096603,
0.0715971738,
0.193277806,
0.2897892296,
-0.3893834054,
-0.1564797759,
0.5164505243,
-0.4300912619,
-0.4166108668,
0.3595439196,
-0.0552885644,
-0.0619812235,
0.1564079374,
0.3035780191,
0.1137095317,
-0.0069998214,
0.0698097646,
0.0436586589,
-0.2103589177,
-0.3135285676,
-0.1677013636,
0.1802436709,
-0.0791732222,
-0.0170088634,
0.2489593327,
-0.2133326232,
0.1953545809,
0.1686764359,
0.578078866,
0.2631825507,
-0.1107338667,
-0.22348243,
0.3362013698,
0.1756038964,
-0.148307547,
0.1314197928,
0.0225152448,
0.1181291938,
-0.2510820329,
0.0298500471,
-0.2922262251,
-0.1787339151,
-0.4848286211,
0.0030083843,
-0.1213935092,
0.0565312169,
-0.3228924572,
-0.0896097198,
-0.2625927329,
0.1147759631,
0.1649737358,
0.0599417947,
-0.3381240368,
-0.0675014555,
-0.133931011,
0.3447755277,
-0.1291260123,
-0.0032780515,
0.4492906332,
-0.2178825587,
-0.0202051234,
0.3893566728,
-0.1809060276,
-0.2190601677,
-0.3314695656,
-0.1568555385,
-0.4964418113,
-0.2505913377,
-0.0249095503,
0.3402804732,
-0.1744551063,
0.0753006488,
0.1196335778,
-0.2354545295,
0.2151427865,
-0.4574492574,
-0.2506247461,
-0.0161335897,
0.1885456294,
-0.2797206044,
-0.1101487055,
-0.3190246224,
-0.0062158513,
-0.1179453582,
0.1130622923,
0.1365054101,
-0.0230847467,
-0.09626057,
0.4757196009,
0.0390385166,
0.2769917548,
0.3343992829,
0.2557879388,
0.1921973079,
-0.2453435063,
-0.0499250367,
-0.2992225587,
-0.0959378183,
-0.1304721981,
-0.1254462302,
0.1675018668,
-0.3209265769,
-0.0511227138,
-0.0252983496,
0.259321183,
0.168645516,
-0.0502267294,
-0.289798528,
0.0059142397,
-0.1839489788,
-0.4556970298,
0.622061491,
0.0663530752,
0.2031352371,
-0.2550747693,
0.2425260991,
0.0820939243,
0.1792577058,
0.2667652667,
0.1372848153,
0.1339349151,
-0.0780468658,
0.1209659576,
0.2498845756,
-0.1223327592,
0.172034502,
0.2978729606,
0.5357649326,
0.1379655451,
0.0415773392,
0.4445878565,
-0.1042023599,
-0.0114139672,
0.1728283465,
-0.0446437448,
0.3055931032,
-0.2436223775,
0.2162425369,
-0.1580535322,
-0.1398379952,
0.2460267991,
-0.1375356168,
-0.1633784622,
-0.1040519401,
0.2351144254,
0.0534567982,
-0.1292936504,
-0.0276316274,
-0.3138302267,
0.0843922421,
-0.0928236842,
-0.1140945628,
-0.2346714288,
0.1019420549,
-0.2157962173,
-0.1578471214,
0.409468025,
-0.0664006621,
0.2941377163,
0.1521457285,
-0.1029986665,
0.1443634629,
0.4886133373,
-0.1357596666,
0.2988619208,
0.1198166013,
-0.1439884752,
-0.097747311,
0.2450703233,
0.1141305864,
-0.4201133847,
-0.1339054555,
-0.2944412827,
-0.0589346401,
-0.2316476107,
0.1991481483,
-0.3803667724,
-0.3432619572,
0.0363624282,
0.3859189153,
-0.594088316,
-0.021153599,
0.2378585935,
0.4233305752,
-0.0320283249,
-0.0436419286,
-0.2210727036,
0.413210541,
-0.5426180959,
0.0208085887,
-0.197937265,
0.0864615589,
0.0401304588,
0.0360178724,
0.037856631,
0.049585104,
0.6460421085,
0.1960496157,
-0.2760609984,
-0.2868871689,
-0.0752944872,
0.2934106886,
0.0080151381,
-0.2756491601,
0.2361772656,
0.4233392775,
-0.3549843729,
0.2639248967,
-0.2653571069,
-0.4017894864,
-0.1157095358,
-0.0299877394,
-0.0388159268,
0.2117660046,
-0.1225451156,
0.3960283101,
-0.0757072046,
-0.192204684,
-0.0743348002,
-0.1557216346,
0.1037828997,
0.0387078114,
-0.387911737,
-0.0467698872,
-0.4429832399,
-0.2824509442,
-0.4912328422,
-0.778199017,
0.1207469478,
0.0699067712,
0.0572080314,
0.3320268095,
0.3459812999,
0.1114939302,
-0.1548400819,
-0.3589918315,
-0.2789936066,
0.1449713558,
0.0791932791,
-0.1249560639,
0.0872817189,
0.3909486532,
-0.0427656062,
-0.001010831,
-0.0317494087,
-0.1366343945,
-0.2140945494,
0.242325753,
0.1992514282,
0.0455868021,
0.0257471818,
0.0106927818,
0.6046020985,
0.1010862663,
0.1844915748,
0.3397413194,
0.1942440122,
0.3856179118,
-0.0550443493,
-0.2325670123,
0.2094054818,
0.1510691196,
-0.3510399759,
0.4016519785,
0.1588743627,
0.3327525258,
-0.0486283898,
-0.2903539836,
-0.162544623,
-0.3546300232,
0.0428748131,
0.1451776624,
0.3210629523,
0.1124968901,
-0.2528871298,
0.1618879884,
-0.4717040062,
0.190423876,
0.1604333222,
0.5285871625,
-0.1411280632,
-0.3676761985,
0.0719339624,
-0.74674052,
0.3602397442,
-0.3094732165,
-0.3952314258,
-0.1068521366,
0.2692243457,
0.2746242583,
0.1511477232,
0.5630869269,
0.2909492254,
-0.0957488418,
-0.2798060775,
-0.3013561666,
-0.1552666277,
0.0375737026,
-0.1183610409,
0.1619004756,
0.0003910967,
0.0660543144,
-0.3809038699,
-0.5336229801,
0.3014356792,
0.0043949764,
-0.2740960717,
-0.1703828573,
-0.1240282655,
-0.315556258,
-0.2255099118,
-0.1006577015,
0.2319576889,
-0.1187918261,
-0.0158957876,
0.1792655438,
0.2700369656,
-0.0834590867,
0.5575609803,
-0.3295532465,
0.0393240415,
0.2972209752,
-0.1338315457,
0.2257257104,
0.2999964952,
0.4112847447,
0.5585445166,
0.1418977976,
-0.123906754,
-0.0102412011,
0.1979888976,
0.561534524,
0.5556924939,
0.128477186,
0.3664983213,
0.0918803588,
0.5001992583,
-0.3880908191,
-0.0956382975,
0.1000045165,
-0.4081889391,
-0.1625104845,
-0.1049479619,
0.1417706162,
-0.0644088686,
-0.1493142843,
-0.2081586272,
0.7436941862,
-0.2282915711,
0.2903295755,
-0.0346299782,
1.4422248602,
-0.1593497843,
0.3056578338,
0.2118854821,
-0.255186677,
0.5051161647,
-0.4148741066,
-0.2021962106,
-0.2295223773,
0.002103416,
-0.1674162596,
0.1721378565,
-0.013245156,
0.0274639614,
0.312012881,
0.3241526783,
-0.5391011834,
0.3610621691,
-0.2570853233,
0.2458499223,
-0.1036137938,
-0.0680969432,
-0.3832629621,
0.0401935466,
-0.1998199672,
0.2853233814,
-0.2148011327,
0.0085261604,
0.3091731071,
-0.2910860181,
0.0938093886,
-0.1005538851,
0.0519235171,
-0.1713514477,
-0.162116468,
-0.1322748065,
0.1180655509,
-0.0501563363,
0.363502413,
0.033659488,
-0.1031591296,
0.1189670712,
-0.1161588356,
-0.0845569596,
-0.1702692509,
0.112131983,
-0.3557921946,
-0.0161621496,
-0.1206365675,
0.0903092995,
0.3170487881,
-0.0723594576,
-0.1763641536,
-0.0874789059,
-0.017036194,
-0.3474552333,
-0.0331218503,
0.0889290646,
0.2474775612,
0.0167268552,
0.0245226119,
0.3489469588,
0.0486670658,
-0.2057619393,
0.2901411951,
-0.0811120868,
-0.3226546943,
0.4245261252,
0.1744001359,
-0.210230276,
0.2772930562,
0.0930408686,
-0.2425222993,
-0.3035077453,
0.0678164214,
-0.0545805134,
-0.5354103446,
0.1562335491,
0.3695345819,
-0.1622980386,
-0.3122071922,
-0.2166406661,
-0.0735199228,
-0.1083324254,
0.1686465144,
-0.0627773404,
-0.2172719836,
0.2826787531,
-0.0591713823,
0.0217173323,
0.21632047,
0.1047019288,
-0.4611589313,
-0.0149915572,
-0.2377747446,
0.0556303114,
0.1930530071,
-0.1208485588,
0.1916589886,
0.249781847,
0.2629217505,
-0.4145075083,
-0.0145697845,
-0.1985591948,
-0.077979669,
-0.1024585739,
-0.3338910043,
0.2461319715,
-0.0063889856,
-0.1803735197,
-0.1264835298,
-0.0808145553,
-0.0587181151,
-0.1077544689,
0.3669096828,
0.7037875652,
0.3963145614,
0.100368686,
-0.0343868099,
-0.1703877151,
-0.166285038,
0.1051091701,
0.3018841147,
0.4229620397,
0.1335193217,
0.0979769453,
-0.0256355796,
-0.1721763611,
-0.1169040799,
0.3478453457,
0.3693527579,
0.1443411559,
0.0850347355,
-0.0068666958,
-0.1513216048,
-0.0705441311,
0.3867634535,
-0.0746733099,
-0.1984466314,
-0.3272587359,
0.1823553443,
0.0592769235,
-0.2297749519,
0.093649298,
0.2319952101,
0.1131343096,
-0.1623990387,
0.2448350489,
0.0431437269,
0.301933378,
0.0668519661,
-0.0174010731,
0.0813681483,
0.1112635583,
-0.0155174481,
-0.2162250429,
-0.1460532993,
-0.0467092954,
0.2893081009,
0.200283736,
0.2045658827,
-0.1425294727,
0.0626849532,
0.2676785886,
0.1584056318,
0.3818684518,
0.2592197657,
-0.3135670424,
-0.3890517354,
0.3242786825,
0.0431988947,
0.0384174325,
0.1344479322,
0.321662277,
0.0329439901,
-0.4210071266,
-0.1812735647,
0.529178381,
0.0012198683,
0.0575158298,
0.172427386,
-0.0433884449,
-0.0143764066,
0.0684773251,
-0.0563085489,
-0.2920881212,
0.3737666905,
0.0783518776,
-0.1012216285,
-0.0771475285,
0.0178345144,
0.0991688594,
0.1210932508,
0.1670677513,
-0.2026457042,
-0.0042347074,
0.319452256,
0.1413632929,
0.3663022518,
0.0771814287,
-0.3462438881,
0.2414938658,
-0.071780771,
-0.1055394337,
0.0238872226,
0.0080829114,
0.1334739923,
-0.1241127923,
0.1568183452,
-0.0017037583,
-0.0203039087,
0.0240023173,
-0.0528658181,
0.0597962104,
0.2323175967,
-0.3492248356,
0.3407611251,
0.1535467058,
0.0007400317,
-0.067320995,
-0.1813666672,
-0.1566784978,
-0.0461263135,
0.1495535076,
-0.0137555599,
0.22112149,
0.0334273726,
0.0079474989,
-0.2061500251,
0.0759960338,
0.3485666513,
-0.0264004674,
-0.2704102695,
-0.1542827189,
-0.2270944566,
0.0794660673,
-0.2377437055,
0.0104720909,
-0.2141760588,
-0.0689809471,
0.2982631922,
0.0271292422,
0.0221674591,
-0.5149402022,
0.039179951,
-0.0340177193,
0.1177331954,
0.2446770221,
-0.3900568187,
0.3240768909,
0.0645447671,
-0.1055513769,
0.0917987078,
0.0427726954,
-0.1558045298,
-0.2495815307,
0.3124651313,
-0.0082961218,
-0.5492113829,
0.3167094886,
0.1164443493,
-0.166641131,
-0.1211269945,
-0.3616181314,
0.0660670698,
-0.0631124377,
-0.0784435198,
-0.112016283,
0.1449249238,
0.1889977157,
-0.0445396565,
-0.1906404048,
0.1306952387,
0.4611994624,
-0.2786439657,
0.3786753416,
-0.3487753868,
0.0460122898,
-0.2282994986,
0.3409303427,
-0.1601587683,
0.2992238998,
0.0737597719,
-0.1208453849,
-0.3632829785,
0.032040976,
0.7371152043,
-0.2060648352,
-0.1711034775,
0.0094224196,
0.7621917129,
-0.1084103584,
-0.5149692297,
-0.5980624557,
0.2991889119,
-0.013980573,
-0.0637314767,
-0.0169634186,
0.3832953572,
-0.298522532,
-0.0275076516,
0.1987158656,
0.4187494516,
0.3243612647,
-0.0627263486,
0.2210437059,
0.0181116723
] |
https://github.com/huggingface/datasets/issues/2104 | Trouble loading wiki_movies | Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`.
To use `wiki_movies`, please update `datasets` with
```
pip install --upgrade datasets
``` | Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you! | 27 | Trouble loading wiki_movies
Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you!
Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`.
To use `wiki_movies`, please update `datasets` with
```
pip install --upgrade datasets
``` | [
-0.2073981762,
-0.0135146892,
-0.0442205295,
0.3873901069,
0.2891762257,
0.196327135,
0.1652408093,
0.2904251218,
0.1623349339,
-0.0591127612,
-0.0651293248,
0.0398703106,
0.0390819609,
0.0095691886,
0.2180411816,
-0.1336186528,
0.1319329292,
-0.0677643269,
0.0409928747,
-0.1519564837,
-0.2609514296,
0.1905121952,
-0.0947824493,
0.0493637957,
-0.3012830615,
-0.0213261284,
-0.086088039,
0.367192924,
-0.1554058194,
-0.3068655133,
0.4555036128,
-0.1563687474,
0.6124145985,
0.5570126176,
-0.0001154108,
0.0793064684,
0.455709666,
-0.0438042358,
-0.3138124943,
-0.2339855433,
0.1990429759,
-0.3066940904,
0.3091192544,
-0.0718858168,
-0.1147369817,
-0.0357825048,
0.1456819624,
-0.1668716073,
0.100315772,
0.0856164917,
0.1734515131,
0.2701100409,
0.2892469168,
-0.0911122859,
0.2961936891,
0.114034228,
-0.020287063,
0.4139378369,
0.2665455639,
-0.4807061553,
0.2214951515,
0.3279592097,
-0.3136356175,
-0.0704157799,
0.5433493257,
0.1534253657,
0.3824137747,
-0.3687494397,
0.1887976825,
0.3565347195,
0.6607335806,
-0.0828906447,
-0.3993506432,
-0.0977441221,
0.1088019907,
-0.1376090795,
0.2221830636,
0.2584235966,
-0.0588013791,
0.1871617287,
0.0967814848,
-0.3336422145,
0.0515213534,
0.5347654819,
0.0972616076,
0.4951848984,
-0.0458649695,
0.097766161,
0.134839505,
-0.212294966,
-0.1636187583,
0.0070711966,
-0.0641389638,
0.4242525399,
0.0684444681,
0.1038473919,
-0.0089858249,
0.485710144,
-0.1439783722,
-0.0411228389,
-0.1150690168,
-0.0414400026,
0.0586497188,
0.2267346531,
0.3234930933,
0.0552304871,
-0.0866379067,
0.0497815497,
0.2694108784,
0.414514184,
-0.1821436435,
-0.1986731291,
-0.185185194,
-0.0572148599,
-0.3604751825,
-0.2458055317,
0.3958001733,
-0.1175647601,
-0.2839034498,
-0.0130764246,
-0.2200164795,
-0.2205561101,
0.2549141645,
0.5544276237,
-0.2136489004,
0.1867851913,
0.0356269144,
0.2033434212,
-0.2397904992,
0.1961442381,
-0.1105702519,
0.1912119389,
-0.1960523576,
0.2319416106,
0.3138679564,
-0.0700652972,
0.4374940693,
-0.1168762147,
-0.0015969436,
-0.1212562397,
-0.0064614816,
0.0378493108,
-0.134906739,
0.4637269378,
-0.0092825731,
0.2072141171,
0.324704051,
-0.3109651804,
-0.1152983606,
0.0831780657,
-0.2376967818,
-0.3491514325,
-0.1643437296,
0.0872071981,
0.1324009299,
-0.1991852522,
-0.235073939,
0.0310065653,
0.0281779524,
-0.5631135106,
-0.0473252572,
0.1131905168,
0.0118431365,
-0.2234303504,
0.3480662405,
0.6888161898,
-0.2556486428,
-0.0585724562,
-0.3802089989,
-0.008437573,
-0.0683747604,
0.1990651935,
-0.2756038904,
0.0593010001,
-0.3056887388,
-0.0649877414,
0.1098077074,
-0.5922427773,
-0.2333729714,
0.2845814824,
-0.1365545094,
0.140963465,
0.1251611561,
0.1688188165,
-0.3357459009,
-0.1660048515,
0.1106744558,
-0.0512547046,
0.0735550001,
-0.2340961397,
-0.1769210994,
-0.1521126181,
0.1346909851,
0.1320300102,
0.02864369,
0.0403854623,
0.0866596624,
-0.0284467489,
0.2409081906,
0.0489290617,
-0.1485194266,
0.1628977656,
0.3491699398,
0.4564088583,
-0.0384006798,
-0.074191153,
-0.4570270777,
0.1895827353,
-0.1070150137,
0.0173464753,
-0.1545137465,
-0.0961496159,
-0.0614513494,
0.0410895795,
-0.1808396727,
-0.225364387,
0.085097447,
0.0547774956,
-0.0529992916,
0.1655842364,
-0.27090469,
-0.1925828904,
-0.0947695971,
0.2471809089,
-0.4027302563,
0.2519990802,
-0.1455649137,
-0.00601746,
-0.0319156647,
0.2065126449,
0.2627587616,
-0.1470632404,
0.154228881,
0.3908667266,
-0.0781016424,
0.2508274615,
0.2339448631,
0.164536953,
0.1641920209,
-0.0635679737,
0.2368172109,
0.1799631715,
0.2339203805,
0.0259682387,
-0.1443169117,
0.3370313048,
-0.0091855424,
0.2501546443,
0.2184850574,
0.0082467506,
0.1893140376,
0.0529128239,
-0.0398364589,
-0.2208692282,
0.4325360656,
0.2068347335,
0.1125896797,
-0.0895575956,
-0.2570353448,
-0.0425551273,
0.0272042602,
-0.0885863155,
0.2019986808,
0.0528827794,
-0.3966019452,
0.1287509054,
-0.0062549412,
0.1457241923,
0.350863874,
0.1889481992,
-0.1748360395,
-0.0642647669,
-0.0122192446,
-0.2063006759,
0.2619258761,
0.1753789783,
0.0702290908,
0.1796760559,
-0.020387698,
0.023194721,
-0.2697029114,
0.0314487182,
-0.1116845831,
0.1491058022,
-0.2536026835,
0.1608959287,
-0.2967220843,
-0.0686191171,
-0.233327657,
-0.4196037948,
-0.3267812431,
-0.2818982303,
-0.0361130275,
0.3151588142,
0.2061968595,
0.0726835504,
0.028804183,
-0.0188824851,
-0.3148036599,
-0.1647443324,
-0.1038466394,
-0.3200184107,
-0.2616139352,
-0.0129883811,
0.5495473146,
-0.0611365214,
0.1579238176,
-0.1074336842,
-0.0375614874,
-0.2795410454,
-0.5420340896,
-0.0647831932,
-0.1012943089,
0.5056609511,
0.0170401074,
0.3776250184,
-0.1283346117,
-0.3390266895,
0.3770355582,
-0.0025071234,
0.1115657166,
-0.1031464562,
-0.0545265824,
-0.3354249001,
0.018240707,
-0.4875994921,
-0.4276796877,
-0.1854012609,
0.1409364045,
0.2385591716,
-0.1262499839,
0.1926993728,
0.1057867184,
0.1727089137,
-0.1761259288,
0.0277299639,
-0.0571366735,
-0.3297139108,
0.3998124897,
-0.226129204,
-0.2458422929,
0.4008429945,
0.0212226417,
0.0199616868,
-0.2964900732,
-0.5815372467,
-0.1569058299,
0.1353253424,
0.0677977726,
0.1800186336,
0.1077848077,
0.199477613,
-0.0731829479,
0.0334882699,
0.0757276788,
-0.1539247483,
-0.2185354233,
-0.1357325166,
0.2919263542,
-0.1059444398,
0.48677513,
-0.4204575717,
0.7676125765,
0.0365939587,
0.0802361146,
0.3636780679,
-0.1858737916,
0.4716041684,
-0.0990007594,
-0.4413352609,
-0.077486515,
-0.206102863,
-0.1245743558,
0.29743433,
0.1417628676,
-0.2683994174,
-0.3975666463,
-0.0912314877,
-0.3086288571,
-0.2211138904,
0.03522164,
0.311113745,
0.077245295,
0.2566116154,
0.1754662246,
-0.0801588148,
-0.3820620179,
0.1539734006,
0.7092065215,
0.1075185314,
0.003891889,
-0.4570852816,
-0.4015655816,
-0.2711560428,
0.3313784897,
-0.0077608884,
0.0697345436,
-0.1062444821,
-0.0869512632,
0.1740016341,
-0.1624228209,
0.6706100106,
-0.0837712511,
-0.1302612424,
0.0203566011,
0.0557792,
-0.2821874321,
-0.1787359118,
0.0687451512,
0.2667478919,
0.0251797177,
0.4684506357,
-0.0857277364,
-0.1418095827,
0.2317419499,
0.1474017799,
-0.2520614564,
-0.1686156243,
-0.4849330187,
-0.2130190432,
-0.3204256892,
-0.2913609147,
-0.1253481656,
0.2390796542,
0.0113213742,
0.1562641561,
-0.0167720988,
0.0761724934,
0.1815517098,
0.0424845852,
0.3289706409,
0.2473446727,
0.0375462398,
0.2949089408,
0.4270301163,
0.3645463586,
0.5436068177,
-0.1697586477,
-0.070924744,
-0.1214909479,
-0.0281767678,
0.2388253212,
0.3939904273,
-0.0232042838,
-0.1704544127,
0.3597784042,
-0.1096953973,
-0.3963784575,
-0.2588644922,
0.3368562162,
-0.0936526731,
-0.1389510185,
-0.4274102747,
0.764870882,
0.0248678513,
0.0830103233,
0.0545725785,
0.272469461,
-0.1628159136,
0.0477627106,
-0.027206514,
1.0328422785,
-0.1855563521,
0.3174365163,
0.3454587758,
0.2381193042,
0.3155777156,
-0.4082056582,
0.172000438,
-0.2932629287,
0.0589846633,
-0.1529384255,
0.0050001158,
0.2291635424,
-0.0227831677,
-0.2222685069,
0.382942766,
-0.0745873675,
0.1983660161,
-0.2022182941,
0.1291623712,
-0.0472929105,
-0.0310838781,
-0.5368953347,
0.0727837533,
0.1796752661,
0.4815181196,
-0.2882339358,
0.0028445784,
-0.2557936907,
-0.1622873545,
-0.3092895448,
-0.0766075328,
-0.4254751205,
0.1606012285,
0.1578446031,
-0.1742741168,
-0.1863708794,
0.4830908477,
-0.0314786248,
-0.0240611807,
-0.3653795719,
0.1742517948,
-0.1446527541,
-0.5440140367,
-0.2830955088,
0.0278857891,
0.3291458189,
-0.082562618,
-0.2290508896,
0.0745176151,
-0.2145106047,
-0.0334130451,
-0.2611866593,
-0.048483137,
0.1944986433,
-0.0629851967,
-0.5832732916,
0.0490508042,
-0.0102969883,
-0.0552632287,
0.0820281133,
0.0675190389,
-0.0686378032,
-0.1999363005,
0.2128703445,
-0.0681736469,
-0.1432761252,
0.6447442174,
-0.2534941733,
-0.0229546521,
0.6146344543,
0.4854163527,
-0.1640945375,
-0.1541502327,
0.2329569012,
0.1565602422,
-0.2674962878,
-0.1197679713,
0.5612847805,
0.2112630308,
0.2064643353,
0.1724254936,
0.2825324535,
-0.2618931234,
-0.0820550397,
-0.6242218614,
-0.0708411559,
0.4252013266,
0.0374956019,
-0.052198261,
0.0249281302,
-0.0716777369,
0.1992086768,
-0.0941829756,
-0.2477562129,
0.1305895895,
-0.0087980609,
-0.0262039136,
0.5012262464,
0.1420449764,
0.3230372667,
0.1515270919,
0.0972073898,
-0.1200805157,
-0.1471914351,
-0.1446714103,
0.037956778,
0.1827385128,
0.0398263559,
-0.162414223,
0.0093399417,
-0.2885362804,
0.0145150768,
-0.1437315643,
-0.1796108335,
0.017926408,
0.1462146193,
-0.0515184812,
0.1145933121,
0.0572151169,
-0.2606998384,
0.1546101421,
-0.1205398887,
0.2959587276,
0.1922038049,
-0.2004706115,
0.2075012177,
0.0634204447,
-0.0060101831,
-0.0779673755,
-0.2188492566,
0.1123148873,
0.437407434,
-0.1960469633,
0.1059694141,
0.163854599,
-0.0032020726,
0.4794398844,
-0.1635046452,
0.2560340464,
0.2782725692,
0.1207381114,
-0.4208908975,
-0.0099680619,
0.3926075101,
-0.0322330594,
-0.1157748848,
0.1749527156,
0.0917499736,
0.1105132997,
-0.16100806,
0.2474081665,
0.3215135038,
-0.2639530897,
0.2476572543,
0.2489953637,
0.146011129,
0.0742935315,
-0.0269911531,
0.2259487808,
0.0321110226,
0.4658451974,
-0.3481170535,
0.2185341418,
-0.1139162332,
0.2591000497,
-0.1901556551,
-0.3677085638,
0.1250476092,
0.3036644161,
0.1084166989,
0.0828298777,
-0.2962623835,
0.3766222596,
-0.2566362917,
0.2435162216,
-0.2705171704,
0.255741626,
-0.1564921737,
-0.3460779786,
-0.118404232,
-0.357003659,
0.0342636816,
0.0363692418,
0.0235476401,
-0.1979919523,
-0.0623360947,
0.2127108574,
-0.1376570016,
-0.3341417313,
-0.0650519952,
0.0843128264,
0.1563048959,
-0.105415836,
0.071022056,
0.3002873957,
-0.0058785561,
0.1646105796,
0.0461686775,
0.5031888485,
0.4529598951,
-0.3615340889,
0.1513350457,
-0.0766328722,
-0.1688950062,
0.0438566692,
0.2025817484,
0.1634927243,
0.1932386011,
0.0230463594,
0.1304175258,
-0.109023653,
0.3621741235,
-0.0551036447,
0.2701662779,
-0.2747123539,
0.0897115469,
-0.4953476191,
-0.0787109211,
-0.4654943049,
0.1308903992,
-0.4352199435,
0.2043396533,
0.3818309605,
0.085916847,
-0.0824408904,
-0.121495463,
0.0348881781,
-0.0609525964,
0.5068445206,
0.4655900896,
-0.004283919,
-0.3190935254,
-0.0413870029,
-0.8435493112,
-0.0332943536,
-0.1007927805,
-0.0957552791,
-0.1398045421,
0.1500566751,
0.166710481,
0.0404704288,
0.0403533578,
-0.510094583,
0.184867695,
0.0240070317,
-0.1230850443,
-0.2198770046,
-0.200284183,
0.2074135542,
-0.0271751191,
-0.0048104199,
-0.1052841693,
-0.4328900874,
-0.1044767052,
-0.2810298502,
-0.0002234219,
-0.189354226,
0.0383283682,
0.275637567,
-0.1559370756,
0.470220238,
0.0535784438,
-0.2973316312,
-0.4378246367,
-0.2957705855,
-0.0427515768,
0.2842938602,
0.0013648721,
0.481875211,
-0.4417457283,
-0.0757942125,
-0.3557062149,
0.1972997487,
0.0119999284,
0.0551019162,
-0.2170315236,
-0.138943553,
0.0576266199,
-0.0787536502,
0.2426234335,
0.2271083295,
-0.0575169586,
0.2714569867,
-0.0860498622,
-0.1240003929,
0.6063529849,
-0.661857605,
0.0450970493,
-0.0212193131,
0.0025201628,
-0.2047621906,
-0.0113493549,
-0.635009706,
0.1499141455,
0.2958348989,
0.1970756501,
-0.2056302279,
0.095572792,
-0.0133369742,
-0.1813095063,
-0.1173966974,
-0.1059835032,
-0.0219053086,
-0.1565831304,
-0.0299984384,
-0.0864390135
] |
https://github.com/huggingface/datasets/issues/2104 | Trouble loading wiki_movies | Thanks a lot! That solved it and I was able to upload a model trained on it as well :) | Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you! | 20 | Trouble loading wiki_movies
Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you!
Thanks a lot! That solved it and I was able to upload a model trained on it as well :) | [
-0.1121565253,
-0.0139942784,
0.0073025585,
0.4026292264,
0.321033448,
0.2078267038,
0.242879644,
0.2546979189,
0.1591462791,
-0.1293400675,
-0.0809660554,
-0.063657552,
-0.0174833629,
0.0371454507,
0.2689794004,
-0.1464954168,
0.1440911591,
-0.0804252923,
0.0386455692,
-0.1759174019,
-0.2859066427,
0.1560278982,
-0.0958822146,
0.0523038618,
-0.3731433451,
-0.0070695016,
-0.1327134967,
0.4059881866,
-0.1415060461,
-0.2147173882,
0.4609820247,
-0.1746776402,
0.6153907776,
0.5836372375,
-0.0001164071,
0.1489438862,
0.3599366248,
-0.1114914268,
-0.2162446082,
-0.1964497268,
0.20646891,
-0.2007349283,
0.271004498,
-0.0929709747,
-0.1247373074,
0.0024902418,
0.1638141721,
-0.1582216769,
0.0603852943,
0.1667111665,
0.1763141304,
0.2521986067,
0.2179905176,
-0.0762792453,
0.2325394601,
0.153001219,
-0.0561035872,
0.4803474844,
0.1946612597,
-0.5227858424,
0.1577257961,
0.2466912419,
-0.2417709082,
-0.1198353171,
0.577337265,
0.1589506418,
0.3579047918,
-0.363453418,
0.1996270716,
0.4087166488,
0.61350137,
0.0077124829,
-0.3705617785,
-0.1067453846,
0.1170774624,
-0.0947810262,
0.2538562715,
0.3591563702,
-0.0323334672,
0.2214000672,
0.0957056284,
-0.262370944,
-0.0076844976,
0.4480516315,
0.0597297251,
0.4561125934,
-0.0188436918,
0.0658945367,
0.1543419957,
-0.191417262,
-0.2707583308,
-0.012047885,
-0.0375832096,
0.4495452344,
0.033394061,
0.1286816746,
-0.0111190276,
0.4703654945,
-0.1006707624,
-0.0471910164,
-0.0657707527,
-0.068785347,
0.0245421827,
0.1941133887,
0.2931634188,
0.0672161132,
-0.1521092504,
-0.0033022526,
0.2521962821,
0.4258026183,
-0.2807626426,
-0.204982385,
-0.2595448792,
-0.0485326685,
-0.4100688994,
-0.3608542085,
0.3782417774,
-0.1459198296,
-0.3006827235,
0.0537185483,
-0.2405792475,
-0.2009180039,
0.2333171517,
0.5762204528,
-0.1611890197,
0.1728941798,
0.0266183577,
0.1784472764,
-0.2535417974,
0.1513386518,
-0.1137235984,
0.206769228,
-0.2304682136,
0.2217813134,
0.2740674615,
-0.0368961319,
0.4466460347,
-0.1666411012,
0.0131377336,
-0.1406337917,
0.0264508035,
-0.0056617791,
-0.1238668263,
0.4525802732,
-0.044648774,
0.1515554488,
0.3736091554,
-0.353657335,
-0.1087918133,
0.0837686509,
-0.1776937842,
-0.3517282605,
-0.1060340479,
0.0890508443,
0.0701195002,
-0.1932637691,
-0.2120416313,
0.1135180816,
0.0000122928,
-0.464255929,
-0.0614666045,
0.1810543239,
-0.0781362355,
-0.2276005447,
0.3975326717,
0.7473239899,
-0.287818104,
-0.0496017039,
-0.2907511294,
0.0037932321,
-0.0579741709,
0.2702948451,
-0.2691883147,
0.151519984,
-0.3390532732,
0.0829206333,
0.0662628859,
-0.4536381066,
-0.2166562527,
0.3275760412,
-0.1736965775,
0.1387216002,
0.059236411,
0.1650345623,
-0.3982462585,
-0.1746536046,
0.1784097403,
0.0247268658,
0.0772707164,
-0.2549575567,
-0.2193597108,
-0.1762291938,
0.1955954731,
0.2131320685,
0.0416987985,
0.0317925997,
0.0563547798,
-0.064213492,
0.2531672716,
-0.0190835856,
-0.2033088356,
0.1463202834,
0.3620996773,
0.3864982724,
-0.0049206591,
-0.0095540173,
-0.4130249023,
0.2022419274,
-0.1039942876,
0.0395718068,
-0.0981935188,
-0.070352219,
-0.0420113616,
0.0717680678,
-0.2699700892,
-0.2291838974,
0.0739768744,
0.010678838,
-0.1434482485,
0.2013345063,
-0.3167359233,
-0.2031101435,
-0.2150320262,
0.2404492795,
-0.390948683,
0.2344633788,
-0.1204901859,
0.0242045093,
-0.0409121923,
0.1739753336,
0.2111230195,
-0.1363128573,
0.1331694126,
0.3344079852,
-0.0879499391,
0.1992668808,
0.3177416325,
0.2289925367,
0.1711475253,
-0.0794303194,
0.1990143061,
0.214354068,
0.2429056317,
-0.029391313,
-0.1889045835,
0.3995213509,
-0.0126830125,
0.2303567231,
0.2464415133,
0.0190832559,
0.1926735938,
0.0369024612,
-0.0532947779,
-0.1471386254,
0.4825774729,
0.24948515,
0.1442346573,
-0.0129475119,
-0.2999358773,
-0.1178651899,
-0.026397692,
-0.1227502972,
0.2149267346,
0.0591584481,
-0.4093381763,
0.0853517279,
-0.0433146395,
0.1072102413,
0.3932318985,
0.1262844354,
-0.1545921564,
-0.0733812004,
-0.0033253008,
-0.2250160128,
0.2733385265,
0.1382021308,
0.0763287544,
0.2013794333,
0.0129283844,
0.0100938734,
-0.3816266358,
0.0092584062,
-0.0779990926,
0.0810075104,
-0.2232538015,
0.1762471348,
-0.1877776384,
-0.0294052344,
-0.226208806,
-0.3067161143,
-0.3279342651,
-0.2259713262,
-0.0376596972,
0.2222723663,
0.137332201,
0.0279577672,
-0.0798409283,
0.073491849,
-0.2874614894,
-0.1831969619,
-0.035882201,
-0.2942382693,
-0.2293565273,
-0.0159936603,
0.6218866706,
-0.1350498796,
0.1590103507,
-0.0959246457,
-0.0893320814,
-0.213015154,
-0.5159597993,
-0.0486755967,
-0.0142010329,
0.4615418911,
-0.03632918,
0.4115782976,
-0.1496351957,
-0.3485877216,
0.4001298845,
0.0615613423,
0.1341527849,
-0.0545279048,
-0.0358305685,
-0.2908652127,
-0.0004588134,
-0.4532825351,
-0.3932529092,
-0.1345375329,
0.175004825,
0.218377918,
-0.1383412629,
0.2596437037,
0.0735043883,
0.2045801878,
-0.217637375,
-0.0053539798,
-0.0445674919,
-0.3735519052,
0.4692228138,
-0.1874056458,
-0.3353830278,
0.40118891,
0.0050905528,
-0.037204612,
-0.3107053041,
-0.5931296349,
-0.0952703282,
0.1236283258,
0.0605261102,
0.2066352367,
0.0428933762,
0.1869943142,
-0.1618368179,
0.0479861274,
0.0944118276,
-0.1230247989,
-0.103920348,
-0.0901138633,
0.3017455041,
-0.1561519206,
0.4466748834,
-0.4208752513,
0.7149726748,
0.0078858957,
0.0581381507,
0.3880026639,
-0.1477458477,
0.4323692322,
-0.1417577118,
-0.3912589252,
-0.0192085169,
-0.2129060328,
-0.2029501349,
0.3765862286,
0.2192341536,
-0.2898501158,
-0.399230361,
-0.1611682028,
-0.2319953442,
-0.2161508948,
0.0800601617,
0.343360275,
0.0476765819,
0.2242882699,
0.1665183157,
-0.0271699037,
-0.3645150959,
0.1873081774,
0.7527633309,
0.2025978863,
-0.0392809249,
-0.4031486213,
-0.3619459867,
-0.2974767387,
0.2064365745,
-0.0998303443,
0.0445731767,
-0.1402751803,
-0.1308008432,
0.19768776,
-0.1495129913,
0.7062324882,
-0.0151020568,
-0.1303637028,
-0.0237945411,
0.0101144295,
-0.2143741846,
-0.1873930395,
0.1263723671,
0.2255828381,
0.0175896734,
0.5091715455,
-0.0220083203,
-0.0225524474,
0.1574700773,
0.1466573626,
-0.2593086362,
-0.1771280766,
-0.4565149546,
-0.2402567863,
-0.2624641061,
-0.2855705917,
-0.1059529036,
0.2425219566,
0.0959397107,
0.2101481706,
-0.0117291203,
0.1187967211,
0.2532064617,
0.0592054948,
0.2856889069,
0.2365045995,
0.0610847175,
0.3171508312,
0.521715939,
0.2833813131,
0.5718855858,
-0.1491399556,
-0.1094030589,
-0.0825065151,
-0.0690721199,
0.2677217126,
0.432780534,
0.0016412848,
-0.1801288128,
0.4139866233,
-0.0810646638,
-0.4332708418,
-0.1700491905,
0.3224600852,
-0.1302313507,
-0.2027722746,
-0.3941425979,
0.7360109687,
-0.0714672282,
0.1236153468,
0.0375178382,
0.2455347031,
-0.1667280495,
0.1385152638,
-0.0377055779,
1.1215847731,
-0.2203508615,
0.3800049424,
0.3796666563,
0.2959088981,
0.2363577038,
-0.4449312687,
0.1420254707,
-0.2901376784,
-0.0213322137,
-0.1697995812,
0.0020002937,
0.1596797258,
0.0362582766,
-0.130823493,
0.3028576672,
-0.1104076356,
0.2878300846,
-0.166654855,
0.0959408209,
0.0523210987,
-0.0351439789,
-0.581941843,
0.0499435291,
0.2104516625,
0.4309816957,
-0.2776634097,
-0.0368848816,
-0.2028919309,
-0.102241613,
-0.2853081226,
-0.0471931882,
-0.3949619234,
0.1297577471,
0.1322983801,
-0.1530509889,
-0.1574640572,
0.5224305391,
-0.0201167371,
-0.0069638132,
-0.4100196362,
0.1855685562,
-0.1916387975,
-0.5221065283,
-0.2741030455,
-0.014811974,
0.3304526508,
-0.0886401385,
-0.1722719818,
0.0328986496,
-0.2435248345,
-0.0217961762,
-0.3195015192,
-0.063171342,
0.1740753204,
-0.0999661833,
-0.6227611303,
0.0590882562,
0.0145932315,
-0.033477135,
0.0772042051,
0.0882929564,
-0.1070369631,
-0.2859706283,
0.2736416161,
-0.0845418125,
-0.1445076764,
0.6002653837,
-0.2356881201,
0.0307296161,
0.6164123416,
0.5096251965,
-0.1603319943,
-0.1509064734,
0.2975330651,
0.253595382,
-0.3025027514,
-0.0875747353,
0.5863994956,
0.1962469071,
0.0981075168,
0.1826609373,
0.3016439378,
-0.340536505,
-0.0588856712,
-0.6151735783,
-0.1146369651,
0.3677110076,
-0.0197936147,
-0.0412863046,
0.0121511538,
-0.0842736959,
0.2014104724,
-0.0830739886,
-0.2267303616,
0.1225778684,
-0.0573123805,
-0.0907820538,
0.4527489245,
0.1415147334,
0.3529388607,
0.1707462817,
0.1157716513,
-0.0936380699,
-0.0537633486,
-0.1379550993,
-0.0103539797,
0.1959904283,
0.1063688397,
-0.1523094326,
0.041415479,
-0.2955008745,
-0.0407718047,
-0.1386502385,
-0.1851912737,
0.0187311526,
0.1879851967,
-0.0898411572,
0.139668107,
0.02720524,
-0.3407517374,
0.1479418576,
-0.1170670241,
0.2890981138,
0.222460106,
-0.2969355881,
0.1697116494,
0.0425907485,
-0.0384234935,
-0.0439412631,
-0.2481621504,
0.1228454039,
0.4163689613,
-0.203433603,
0.0929967761,
0.1349322945,
0.0209092703,
0.4537692368,
-0.2005509734,
0.311796248,
0.3188022971,
0.1028334051,
-0.4711425006,
-0.0322460346,
0.4285384417,
-0.0974933058,
-0.11771743,
0.132906422,
0.020304434,
0.1275993735,
-0.2521107793,
0.2020100802,
0.2492931038,
-0.1423900574,
0.1922290474,
0.2257122397,
0.1371827424,
0.0967670307,
-0.0186326988,
0.1762081981,
0.0434418507,
0.4835730493,
-0.3364117146,
0.1638941765,
-0.1898626685,
0.1845693588,
-0.1459106654,
-0.3627070785,
0.1122950688,
0.3381077349,
0.0842227414,
0.077902101,
-0.3157325685,
0.4324376583,
-0.2558781803,
0.2031053901,
-0.2942215502,
0.2279842943,
-0.1795710623,
-0.3268268406,
-0.1394116879,
-0.3754658401,
0.0363076366,
0.1029455513,
0.0061257323,
-0.1819611043,
-0.0557351001,
0.1991255879,
-0.1180709302,
-0.2143512517,
0.0058975779,
0.0865514055,
0.184231624,
-0.121640861,
0.0318918638,
0.2790631056,
0.0243089702,
0.2111038864,
0.0075357137,
0.4232617319,
0.4421953857,
-0.3254860938,
0.2190800607,
-0.0333559811,
-0.1536405534,
0.061889872,
0.2094308287,
0.2220913917,
0.2221369743,
0.0808849186,
0.099671267,
-0.0842292979,
0.4198640287,
-0.053138759,
0.2680283487,
-0.2802629173,
0.0459182747,
-0.4868517518,
-0.0923358425,
-0.5042530298,
0.0925878435,
-0.3706071675,
0.2190074325,
0.3753271401,
0.1103680804,
-0.0495601855,
-0.0606173873,
0.0213888921,
-0.0646248758,
0.495780766,
0.4861961901,
-0.0153355366,
-0.3640636206,
-0.0198305938,
-0.850210309,
0.0321465731,
-0.0840494931,
-0.0641453713,
-0.1065229625,
0.1282499284,
0.2296150923,
-0.0354773551,
-0.01941384,
-0.4398720562,
0.1587520987,
0.053758949,
-0.1137021631,
-0.247029677,
-0.2540216744,
0.2503530383,
-0.0919793248,
-0.0143096671,
-0.0867223889,
-0.4156890213,
-0.0861691833,
-0.2571047843,
-0.0574239492,
-0.2672638595,
0.1049049124,
0.2118827552,
-0.1344621032,
0.4210891128,
0.0399809778,
-0.2676471472,
-0.4160713553,
-0.261487484,
-0.0543235354,
0.1965265125,
-0.0077150725,
0.4464060068,
-0.3979943991,
-0.0311586596,
-0.3330068588,
0.1670853496,
-0.0031124535,
0.006522839,
-0.3166999221,
-0.1473858058,
0.0537000932,
-0.0788207203,
0.2945432067,
0.2342967093,
-0.1015659049,
0.1317181885,
-0.0073739034,
-0.0793455094,
0.6290512085,
-0.7522627711,
0.0383949354,
0.035850469,
-0.0148079572,
-0.1958949119,
0.0364185609,
-0.6877138019,
0.1022049859,
0.264814049,
0.1969150752,
-0.2437794805,
0.0641053393,
-0.0187957697,
-0.1772501022,
-0.0839938819,
-0.0926373452,
-0.0633513033,
-0.1978275329,
-0.035112299,
-0.1155085042
] |
https://github.com/huggingface/datasets/issues/2103 | citation, homepage, and license fields of `dataset_info.json` are duplicated many times | Thanks for reporting :)
Maybe we can concatenate fields only if they are different.
Currently this is done here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196
This can be a good first contribution to the library.
Please comment if you'd like to improve this and open a PR :) | This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation.
Example result:
```
"citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n
```
@lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times. | 43 | citation, homepage, and license fields of `dataset_info.json` are duplicated many times
This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation.
Example result:
```
"citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n
```
@lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times.
Thanks for reporting :)
Maybe we can concatenate fields only if they are different.
Currently this is done here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196
This can be a good first contribution to the library.
Please comment if you'd like to improve this and open a PR :) | [
0.1381230354,
0.0136454394,
-0.0630833879,
0.3942778111,
-0.0054806597,
0.0727091655,
0.2289254218,
0.3846516609,
-0.0693550259,
0.0431419201,
0.0773390532,
0.6607300043,
0.4834605157,
-0.1113681644,
0.0986290872,
0.254014641,
0.0726541951,
0.0371470563,
0.1630942225,
-0.024760507,
-0.1442043781,
0.3476740122,
-0.028452877,
0.0256114788,
-0.2232687026,
-0.0213755593,
-0.2590197623,
0.2612620592,
-0.0107872672,
-0.2939231694,
-0.2302548885,
0.3371425867,
-0.3443260491,
0.0409677029,
-0.000113471,
-0.1048204303,
0.0930625424,
0.0950632617,
-0.1159349531,
-0.1097438782,
-0.3312690854,
0.0067825112,
0.1233061478,
-0.330142647,
0.2031037956,
-0.0964052975,
-0.1437791884,
0.1015481725,
0.3578600585,
0.031474039,
0.1344465315,
-0.3486807644,
-0.0364141501,
0.2117993832,
0.1670621932,
0.5066615343,
0.2788805962,
-0.0225377548,
0.0567876287,
0.1372626722,
-0.0372862481,
0.3509610891,
-0.0174389444,
0.0689732432,
-0.0889397711,
0.0198655017,
0.3704963028,
-0.2638969421,
0.4029413164,
0.2036252022,
0.1998368502,
-0.2152673602,
-0.0649803653,
-0.15083161,
0.2594077289,
0.0433614887,
0.0116459997,
0.1248429418,
0.2915681005,
0.0952092558,
-0.1523611844,
-0.1289321631,
0.0156482626,
-0.2076679617,
-0.104218632,
0.1388813704,
0.0545037277,
0.2547236383,
0.455447197,
-0.1756985039,
-0.0094515812,
-0.3732993305,
-0.3630178273,
-0.1488606781,
-0.1156099737,
-0.258648634,
-0.0468386933,
-0.0697719306,
0.1238705441,
0.1188212261,
0.1158267111,
0.2533143163,
0.0044776807,
0.1921121478,
0.4902763069,
-0.1692830175,
-0.0167410541,
0.1683241874,
0.1627897024,
-0.156191051,
-0.3621465564,
0.288354069,
0.2324283272,
0.2500541508,
-0.2877438366,
-0.2357921898,
0.2499597818,
-0.1283687651,
-0.1634404063,
0.164468661,
-0.2285562307,
-0.2335814983,
-0.07432504,
-0.0127038304,
0.2380667478,
0.0311073884,
-0.0816190913,
-0.0761941001,
0.0614851266,
-0.1274148226,
-0.1334026456,
-0.0573373102,
0.024981508,
0.0447399914,
0.2108945698,
0.19580549,
0.2852682471,
0.4387195408,
-0.2492439002,
-0.6506680846,
0.4075786769,
0.0235325489,
0.0609326325,
0.276637584,
-0.0646024942,
0.2921264172,
0.0561478138,
-0.0985993296,
-0.1849703789,
0.2049916834,
-0.5609198809,
-0.1700747013,
-0.0984946191,
0.1963615268,
0.0690889135,
0.0584164709,
0.0691954941,
0.0430895574,
0.1906209737,
0.0887876302,
-0.0559137985,
0.097703062,
-0.2419961393,
-0.0013050161,
-0.2179883868,
0.4913590848,
-0.2344310433,
0.0301892105,
-0.1352132261,
0.1047381237,
0.1158544123,
0.3253320754,
-0.3003506958,
0.4413999915,
-0.1408083141,
0.1248408854,
0.1913559139,
-0.2989715636,
-0.1260940135,
0.4549363554,
-0.2909894288,
-0.1740693152,
0.1084960029,
0.0151913129,
0.1984761208,
0.0299539864,
0.2903324366,
-0.1629747152,
0.28470698,
0.1826170683,
-0.1078767702,
0.0077405828,
0.159762904,
0.1104983166,
-0.5287640691,
-0.1930346638,
0.0745649487,
0.103566274,
-0.0100889066,
-0.1794377565,
-0.128851667,
0.4532901049,
-0.0080443919,
-0.1855047047,
0.2804617286,
0.2361410707,
-0.1617326289,
-0.0047417753,
-0.2121653706,
-0.2374357134,
0.012613209,
-0.3103973269,
0.1363409162,
0.0577020682,
-0.2258720249,
-0.0005587317,
0.171888262,
0.2167415917,
-0.1872631758,
-0.0663007572,
0.0344363861,
-0.006541627,
-0.2294787019,
-0.0580724403,
-0.369065851,
-0.2251573354,
-0.1929302961,
0.2902039886,
0.1001263112,
0.05165907,
0.4500667453,
-0.0769634321,
-0.008369348,
0.1213897094,
0.4090744257,
0.2413641214,
0.3329518139,
0.2167103142,
0.5112669468,
0.1091349348,
0.0661499426,
0.0320899524,
0.037671309,
-0.3805707395,
-0.3177198172,
0.2866714299,
0.0399539471,
0.0024846129,
-0.0771473572,
0.0277874433,
0.4658517838,
0.1128013209,
0.0328104272,
-0.4600551128,
-0.0184910819,
0.635543704,
-0.2225126922,
0.4609513283,
0.0620355383,
0.5856898427,
0.451251626,
-0.3411592543,
-0.1285102963,
-0.0126758451,
-0.1237111911,
-0.4660647213,
-0.0280859377,
0.322288245,
0.281545788,
0.1424501538,
-0.0743342191,
0.1308517903,
0.1566399634,
-0.2218486667,
0.3593809605,
0.0051241219,
0.0784257352,
0.0761676431,
0.2985600829,
-0.0761494264,
-0.4390319288,
-0.2105133235,
0.5419509411,
0.1828191876,
-0.339818269,
-0.0741726011,
-0.5753318071,
0.2566513121,
-0.2085874379,
0.0790691301,
-0.2199468315,
-0.3306315839,
0.1915863901,
0.5351455808,
-0.1917525083,
0.0248041824,
0.2189728022,
0.4054922462,
-0.0478358082,
0.0378668904,
-0.242116794,
-0.2526844442,
-0.0021721337,
0.0007378247,
0.1682922393,
-0.1667030901,
0.09854047,
-0.0009681025,
-0.0618155412,
-0.6569471359,
-0.3852790296,
0.202954933,
-0.2176853716,
-0.0880898535,
0.0604702234,
-0.0229238775,
-0.4931524396,
-0.1360338628,
-0.2491197735,
0.4120313525,
-0.3168638945,
0.1458398402,
-0.2303530127,
-0.1695068777,
-0.3084945679,
-0.2869490683,
0.0622561164,
0.0428433083,
0.2375162095,
0.0092662508,
0.2903408706,
0.0147336246,
-0.2407887578,
-0.0194589049,
-0.1292811483,
0.1680928469,
-0.6054065228,
-0.3265304267,
-0.10082867,
-0.1986562163,
-0.0840507969,
-0.0753736719,
0.2982836366,
-0.0494767167,
-0.1083331704,
-0.5357647538,
-0.1331083477,
0.136454165,
0.0310639013,
-0.2595835626,
-0.0266401079,
0.3220063448,
0.3555787802,
-0.2242719531,
0.0075754607,
-0.0670366511,
0.2202544957,
0.3102791309,
0.2186115384,
-0.1807081103,
-0.1428256929,
-0.2503647506,
0.4967601597,
0.6802616715,
-0.0872246698,
-0.0812428445,
0.0648199394,
0.1408366859,
0.0672508329,
0.0875328928,
-0.1258484423,
-0.0880834237,
0.0161324982,
0.4707183242,
-0.0853139013,
-0.0835385695,
0.2374547571,
0.2500025928,
-0.3685615361,
-0.3060152233,
-0.0534653552,
-0.1619237661,
0.1360422522,
0.1580479741,
0.2378735095,
-0.0041997237,
-0.0372932404,
-0.0610611923,
-0.003531399,
0.0607455187,
-0.2818321288,
-0.3054352105,
-0.3967860043,
-0.3837324679,
0.1832279116,
-0.1095386967,
0.0491574258,
-0.1281894445,
0.112584047,
0.0721786171,
-0.1063115671,
0.8338925838,
-0.4579747319,
0.167681694,
0.1676790863,
-0.2081489116,
-0.1239826679,
-0.0899591818,
-0.264511466,
0.2085201889,
0.4078375399,
0.4869434536,
-0.1510303169,
0.2392731458,
0.1157796755,
0.0050841873,
-0.1674867868,
0.0384288915,
0.0659287199,
-0.3831531405,
-0.3229148388,
-0.1569055319,
-0.1459071338,
-0.017764587,
-0.1131136715,
-0.2006792426,
0.2002691031,
0.156858027,
0.1397456527,
0.2304869443,
0.1816815734,
0.1829199791,
0.1565909833,
0.0130526451,
-0.0504612736,
0.1862032413,
0.3360453248,
0.1446372867,
-0.0975740477,
0.0652162358,
-0.3386717737,
0.0743775144,
0.2682869434,
0.2098904699,
0.1782049239,
0.0416062512,
-0.1456058919,
-0.1458851695,
-0.2388180047,
0.2699169517,
-0.0264548119,
-0.1145346761,
0.0346523486,
0.1618281901,
0.2271596938,
-0.3504944444,
0.4041936696,
-0.2358004898,
-0.1218329892,
0.3312465549,
0.0987787768,
1.0419566631,
-0.2682439387,
-0.2027228177,
-0.2757573426,
-0.3043022752,
0.657695055,
-0.2995232642,
0.1170618981,
-0.5067409277,
0.0080064256,
0.1176197082,
-0.0710268542,
-0.1293039918,
0.0975947157,
-0.4630860388,
-0.2039558589,
0.1638483554,
0.3448335826,
-0.1945906878,
0.4422997534,
0.3032673895,
-0.1749411821,
0.070266813,
0.1349468827,
-0.1902205646,
-0.2142543793,
0.0570899583,
0.0328283645,
0.1693000942,
-0.235400632,
-0.3341636956,
0.1725390106,
0.077255249,
0.5955440998,
-0.2048775554,
0.006133656,
-0.2287254333,
0.017346831,
0.2061512023,
0.289886266,
-0.2459370196,
0.1247586906,
0.1347131133,
0.3820044994,
-0.1349059641,
-0.1198942289,
-0.0821631253,
0.002130955,
-0.3452017009,
-0.340783447,
0.1976809055,
-0.1150378138,
-0.3329246342,
0.0917975828,
-0.2368964702,
-0.0227235891,
0.0898964331,
0.2984760404,
-0.4994902313,
-0.2512392402,
0.0576174594,
-0.1796246469,
-0.2918618619,
0.3302536905,
0.0361309759,
-0.5448494554,
-0.0778443664,
0.3736337125,
0.3602989614,
0.3496983945,
0.1237992942,
-0.0500632599,
-0.0867902786,
-0.3264315128,
0.1801475734,
-0.4874097705,
0.0198554676,
0.152021423,
-0.0563338175,
-0.1188794225,
0.0048146183,
0.0186501164,
-0.2342496216,
0.6001550555,
-0.2011204511,
-0.2790076137,
-0.0927290469,
-0.0859946012,
0.0145781096,
0.2944093943,
0.3819891214,
-0.0769355223,
-0.2734094262,
0.3077001274,
-0.2819327712,
0.3402883112,
-0.1201230884,
0.1973596513,
-0.1631113291,
-0.0544112287,
-0.0936546996,
0.0871963724,
0.1969877034,
0.2647089958,
-0.0703185201,
-0.2248144895,
-0.0555468686,
0.156610474,
0.0011506607,
0.1334123611,
-0.2993568182,
-0.0896674469,
0.098713167,
-0.1832575053,
0.1441940367,
-0.1658313721,
0.1817141175,
-0.0507690832,
-0.2867113054,
-0.0096594263,
0.1697322726,
-0.158688128,
-0.1601484716,
0.3902058303,
0.1244468689,
0.2572150528,
-0.188833192,
-0.1511442214,
-0.4423005581,
0.0501113571,
0.0833745822,
-0.0657705963,
0.1648107767,
0.1309524328,
-0.3424822986,
0.047009971,
0.2161826342,
0.3447586,
-0.360504806,
-0.2973209321,
-0.3167574406,
0.1349867582,
-0.2402787656,
-0.4959184229,
0.3653346598,
0.0229367372,
-0.1422834545,
0.1555383354,
0.3599424064,
-0.3576848507,
-0.0080191772,
-0.1060035303,
0.699967742,
-0.3942878842,
0.2264449894,
0.1856582314,
-0.2435830086,
-0.2395696938,
0.1625291407,
0.1568736881,
0.1077075675,
0.1365297139,
0.1403705329,
0.1975157857,
-0.0283698626,
-0.0221692678,
0.4178746641,
-0.1817902327,
0.7519586682,
0.4424465597,
-0.030778151,
0.2606296837,
0.4041940868,
-0.1422680318,
-0.1419090182,
-0.2161726654,
-0.3795582354,
0.3629840314,
-0.2900505364,
-0.0145791844,
-0.0925830752,
-0.1002376676,
0.1920466721,
0.3459125161,
-0.0118030496,
0.0370021649,
0.4131364822,
0.1536711901,
-0.2489723265,
-0.5125790834,
0.3363232017,
-0.3303620219,
0.2923041582,
-0.4009965658,
0.0602482706,
0.0862205029,
-0.1040334105,
0.041676376,
0.1990955174,
0.276317656,
0.0948041081,
-0.0074726208,
0.1801674068,
-0.2811062932,
-0.0544887073,
0.086721994,
0.0831745788,
-0.142089054,
-0.3626761734,
0.1802749634,
0.0474523045,
0.0600221194,
-0.1908127517,
0.5934583545,
0.0997421071,
0.0297356695,
0.2293609828,
0.1729857475,
-0.1588790119,
0.1403052211,
0.1661984175,
-0.2062403709,
-0.3719598651,
0.4716158807,
0.1392487735,
0.2531030476,
-0.0488622636,
0.1116376668,
0.0022119179,
0.5143995881,
0.0144092329,
-0.3647160828,
-0.1657688618,
-0.0649364814,
-0.1773390472,
0.1294469237,
-0.2314024568,
0.2702770233,
0.2181695402,
0.1608424932,
-0.0447107442,
0.0602466166,
0.0802512765,
-0.1226296499,
-0.265940696,
0.0275375135,
-0.3932190537,
0.1051074117,
-0.0493947566,
-0.1722893715,
0.0140400799,
-0.1084192023,
0.6255810261,
-0.0089620641,
-0.0429822877,
-0.1360011101,
-0.0931821764,
-0.0505894013,
0.0410644263,
0.5731689334,
0.3952972591,
0.1402288526,
-0.1946157217,
-0.1487460136,
0.0740424916,
0.0988869742,
-0.17605941,
0.3726878464,
0.2469553053,
-0.1355239451,
0.0200731214,
-0.2488481253,
-0.0950446725,
0.044440195,
0.0166766681,
-0.1245670617,
-0.4153572023,
-0.1074525639,
-0.0459629782,
0.1718654335,
-0.2151594609,
0.1535417438,
0.0929632187,
0.1379566789,
-0.0088240104,
-0.3202522993,
0.410736829,
-0.1049893275,
-0.1741439253,
-0.1306238919,
0.5648164749,
-0.569038868,
0.3015936613,
-0.5685533285,
-0.0466232449,
0.389292568,
-0.2156591862,
-0.3872379363,
0.2250095904,
-0.2500567138,
-0.0817381144,
-0.1571165472,
-0.0951605961,
0.1895471662,
-0.2068071961,
0.1089523733,
-0.1232034862
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Hi !
Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features`
Can you also share the code of your `map` function ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 32 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Hi !
Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features`
Can you also share the code of your `map` function ? | [
-0.3500204086,
-0.1982149035,
-0.054451324,
0.2700722516,
0.3246715069,
0.0501474664,
0.4278253615,
0.1963978708,
0.775203824,
-0.012891979,
0.1478900313,
0.5318042636,
0.0868460536,
-0.0826434121,
0.1153062582,
0.094270125,
0.3582593799,
0.2302629352,
0.4533495009,
-0.1887634546,
-0.2704198062,
-0.0162078124,
-0.1363714933,
0.0524612144,
-0.16783382,
-0.1337087899,
-0.0235133804,
0.0352617651,
-0.1384558678,
-0.2863386869,
0.0162088275,
-0.0567522198,
0.2766019404,
0.2574597001,
-0.0001268705,
-0.2512073517,
0.0312587731,
0.1771277189,
-0.202500239,
0.244969666,
0.3863897324,
-0.4697512686,
0.2121183872,
-0.3534870446,
0.145703584,
-0.3091144562,
-0.2663036883,
-0.2810009122,
-0.0431336612,
-0.1522451788,
0.0458117239,
0.4439666271,
-0.2780011296,
0.0748595148,
-0.1293979883,
0.3457425237,
-0.1573249996,
0.044959452,
0.5400742888,
-0.0728075802,
-0.105131641,
-0.0802588388,
-0.187091887,
-0.1056299359,
0.3797871768,
0.076493986,
0.2742576897,
0.1065707579,
0.083078593,
0.1269643307,
0.589976728,
-0.0041460171,
0.0585615374,
-0.2526357174,
-0.1250296682,
-0.2961909771,
0.3886521757,
0.0054057091,
-0.2881906331,
0.203135401,
-0.0714382231,
-0.0731004179,
0.0088508641,
0.2437556088,
-0.1803186834,
-0.0990386382,
0.0195836481,
0.1328810304,
0.3168939054,
-0.1614458114,
0.0230980162,
-0.0082517741,
0.1234518886,
0.3986281157,
-0.4098907113,
-0.2113994509,
0.0400186442,
0.083574824,
-0.1435206681,
0.1120388061,
0.1514649391,
0.2489471734,
-0.1630488634,
0.0016307108,
0.2422060668,
0.3972105384,
-0.1217969283,
0.1301052272,
0.0731807575,
-0.3419055045,
-0.069973886,
-0.0560455509,
-0.2259918004,
-0.0106500229,
0.5112828016,
-0.4784033298,
-0.233943969,
-0.1448340416,
-0.0333806947,
0.2067794353,
0.4317517877,
-0.0641701296,
0.2521469891,
0.2410562038,
0.0641923323,
0.5306972265,
-0.1165348366,
0.0117175067,
-0.189608708,
-0.1619036496,
-0.0651432127,
-0.3071612418,
-0.1684480757,
0.1598521471,
0.0181165896,
0.2619091272,
-0.1174449697,
0.172641933,
-0.2480961084,
0.0674418584,
-0.1035649478,
-0.1866313964,
0.2897594869,
0.1619746238,
-0.0831961632,
0.2204559147,
0.1658520848,
-0.2604827583,
-0.4331322908,
0.364184767,
-0.168527931,
-0.3845947981,
-0.4457716048,
0.0039889431,
-0.2279206514,
-0.0610851012,
-0.3854810894,
-0.1208797917,
0.1200978234,
0.0442284122,
-0.0343469232,
-0.1524474472,
-0.1444915533,
-0.099363029,
-0.0391860902,
0.1216119304,
-0.3704291582,
0.2121683657,
-0.2364285141,
0.2569224834,
0.3447543681,
0.6626867652,
-0.2571011484,
0.342536509,
-0.2578447163,
0.3158113062,
0.5487068295,
-0.0578073487,
-0.3862132132,
0.7333586216,
-0.1003700122,
-0.22489281,
0.0265345052,
0.5490338802,
0.2924335599,
-0.0852063522,
0.1003955156,
0.6558295488,
0.1512113661,
0.2105395347,
-0.391095221,
-0.0279239062,
0.0919301882,
0.4662361443,
-0.4127826393,
0.1588237584,
0.1538116187,
-0.0441685989,
0.1545039862,
0.0907561257,
-0.0659686476,
0.2432236224,
0.2831676602,
-0.031848453,
0.0112171667,
0.2562738061,
-0.1681340486,
0.1245539337,
0.4642589986,
-0.2245754302,
0.0415687151,
-0.1681668758,
-0.3445483446,
0.3147712648,
-0.1054793298,
0.6033323407,
-0.1821071208,
0.0020355273,
0.0804637,
-0.1432268322,
-0.1495120674,
-0.1174868643,
-0.2531777918,
-0.1158318743,
-0.0902424008,
0.0518417172,
0.1564158648,
-0.015110557,
-0.3498861492,
-0.0625959337,
0.0574979484,
0.049437888,
-0.2109956741,
0.284044981,
0.1521351337,
0.0479032472,
-0.049652189,
0.1704574227,
0.1336129904,
0.0028487286,
0.3439745903,
-0.0021684177,
0.2081943601,
-0.2890041769,
-0.1218545958,
0.4259038866,
-0.1942905039,
0.2047607005,
-0.2710197568,
-0.0709531158,
0.4258695245,
0.1262151301,
0.1576505452,
-0.0164165013,
0.1865306348,
0.3095095456,
0.2882080674,
0.2737436593,
-0.2397420555,
0.2617650032,
0.2991085649,
-0.3452146053,
-0.0612504147,
0.1969376802,
0.036767792,
-0.3007031381,
0.0062168264,
-0.1039673463,
0.310056597,
0.1159396246,
0.0958436131,
-0.317605108,
-0.0347823426,
-0.1446264088,
0.0870057121,
-0.1001758501,
-0.0837558061,
0.1299338639,
-0.0537793376,
-0.1364711523,
-0.325973928,
0.0318151563,
0.1118112877,
0.3960191607,
-0.3259372115,
0.1538782865,
-0.0907518789,
0.0990273133,
0.0559909828,
-0.2581124306,
0.1266685128,
-0.202723816,
-0.2237585783,
0.2324291766,
-0.0261600781,
-0.1411307901,
-0.0124722561,
0.3762322366,
0.1917369813,
-0.4314823747,
-0.355751276,
-0.2873744369,
-0.1534436047,
-0.1426839679,
0.4407371581,
0.1697455645,
0.2259088457,
-0.0629057437,
-0.1602996588,
-0.2504192591,
-0.1463385373,
-0.098074235,
0.0538781509,
0.1577214301,
-0.1832670867,
0.3381576538,
-0.5822999477,
-0.0329396166,
0.2617312968,
-0.3245378435,
-0.2410389632,
0.378264457,
-0.1310498714,
-0.3202219605,
0.0137208654,
0.1135147735,
-0.1331354678,
-0.2363514006,
0.2219309956,
0.0367422625,
0.1437615752,
-0.2337400615,
0.1127446443,
0.0259844232,
0.4734174907,
-0.2453035861,
-0.1945905387,
-0.2775591612,
0.6613594294,
0.0028797346,
-0.2596799433,
-0.0730993822,
0.1196761876,
-0.0998842642,
-0.0242240038,
-0.5121886134,
0.2339363843,
-0.4204594493,
0.4694086313,
-0.2292630076,
0.0604314543,
0.13013798,
-0.2692606449,
0.0377083868,
0.2235515267,
-0.1082636192,
0.2056975067,
0.1367426068,
0.0834922567,
0.0862881467,
0.6676973104,
-0.2378456891,
0.3274152279,
-0.2057073563,
-0.1607970893,
0.3523729146,
-0.0135517335,
0.1972756684,
-0.357855767,
-0.176505208,
-0.2438223213,
0.1217147186,
-0.3225131333,
0.197440207,
-0.0390843861,
-0.3568357229,
0.0234871991,
-0.0529183634,
-0.0557644032,
-0.0565587841,
0.2541283965,
-0.0024453329,
0.084678784,
-0.1358806193,
0.2029367685,
-0.3828942776,
-0.2328348905,
-0.0731365979,
0.0034165457,
0.1737783849,
-0.2496216595,
-0.652974844,
-0.0044410392,
-0.4316211045,
0.1233479455,
-0.1962356269,
0.4478287697,
0.0173853505,
-0.2779057622,
0.4295973778,
0.0079919174,
0.6057002544,
0.2846140265,
0.1263313591,
0.1792876571,
-0.1738654226,
-0.6647122502,
0.0659497157,
0.2427067608,
-0.0304170437,
0.3263391852,
0.7139406204,
-0.0432581566,
-0.1389227509,
-0.1624471098,
0.3244586885,
-0.2122952342,
-0.4873186648,
-0.1144835502,
-0.3401406705,
-0.0956714153,
0.1660428345,
0.1704062074,
0.4786664844,
0.4213180244,
-0.0492857657,
-0.21406959,
-0.1068127006,
0.0743902922,
0.0897785202,
0.3559319675,
-0.0836102888,
0.4325256646,
-0.3090106845,
0.1667523533,
-0.1315865666,
0.4047931731,
-0.1201719642,
-0.0328734107,
0.3473882079,
-0.2058641165,
0.0278261695,
0.3513401151,
0.2020439804,
0.0419768654,
-0.1166421697,
0.1926024407,
-0.2225782126,
-0.0224435329,
-0.1935524344,
-0.0132620689,
-0.0181618053,
-0.1326583177,
0.2976234555,
0.0367983729,
-0.0336686075,
0.2161803395,
-0.1391737908,
0.0804779381,
0.7127650976,
0.2099795789,
1.1476432085,
-0.4765785336,
-0.0367587134,
0.1055493802,
0.1875540614,
-0.0967544615,
-0.1556254029,
-0.3527755439,
-0.3770474195,
0.104722321,
0.1252691001,
-0.2228828669,
-0.1351711154,
0.4446425438,
0.1457494646,
-0.1273879707,
-0.2085412592,
0.3245826662,
-0.3329761922,
0.4716745317,
0.0304985512,
-0.4644051492,
-0.5360880494,
-0.0256496631,
0.0021091932,
-0.0625468716,
0.0134710064,
0.150443837,
0.0280224141,
-0.1613014042,
-0.0555923916,
-0.1683796495,
0.131130144,
0.1593945175,
0.2132588923,
-0.2429706901,
-0.0600923374,
0.4783609807,
0.3922136724,
-0.0488342904,
-0.0285531022,
0.1756227314,
0.1071217954,
0.1411296427,
0.0880614668,
-0.24716793,
0.0647241324,
-0.1228905469,
0.0296013132,
-0.12666291,
-0.1492753476,
-0.4715045989,
-0.1104630753,
0.1728014946,
0.3435623348,
-0.1678789109,
-0.2620110512,
-0.2804313004,
0.1687632501,
-0.0469867103,
0.0108307591,
0.3402671516,
0.1919058263,
0.2474279255,
0.0004389632,
-0.2470660806,
0.0262290575,
0.3180592358,
0.0175313838,
-0.2553493977,
0.2725581825,
0.0369647816,
-0.2449594438,
-0.2093432993,
0.3605390489,
0.2967856824,
-0.407720685,
0.0861006603,
-0.0421445742,
0.0005220131,
0.0812189206,
0.0793011934,
0.1944933385,
0.0004833998,
-0.1094098762,
-0.2380563319,
-0.5587601066,
-0.0532925725,
0.174091056,
0.0981365368,
0.1941779852,
-0.4832065403,
-0.2332377136,
0.0859464556,
-0.1355977505,
0.0622783415,
-0.0595664047,
0.109191902,
0.0401642956,
-0.0415797867,
0.0677758008,
-0.1500798315,
0.0465440229,
-0.152570948,
-0.0100935902,
-0.08015389,
0.0720086843,
0.2114048451,
-0.016533168,
-0.3091341257,
-0.2002138942,
-0.475268811,
-0.1812928766,
-0.3601987064,
-0.145662263,
0.0568096489,
-0.0676271766,
-0.3485496044,
0.3751347959,
0.1153303012,
-0.0378488153,
0.3707075715,
-0.0508095585,
0.4025710225,
-0.05549125,
0.1191322654,
0.2175973952,
-0.1941402406,
-0.3011139333,
0.1783865392,
0.365039885,
-0.1530923694,
0.3515725434,
-0.2173792571,
0.0392775126,
0.2798119783,
-0.0359381735,
0.1138460636,
-0.1738658249,
-0.2687508166,
0.2702849209,
0.0583913922,
-0.0130298147,
-0.2406965047,
0.0054479046,
-0.0960759372,
-0.2235890329,
0.2846252918,
0.4409004748,
-0.1794549972,
-0.1238968894,
0.0501794443,
0.5539264679,
0.034132015,
-0.4526455402,
0.5829267502,
-0.0826048106,
0.0033458332,
0.1782968342,
0.2141122073,
-0.0035184887,
0.5654760003,
-0.2079436183,
0.0983969867,
0.3606002331,
0.5861616731,
-0.388065964,
-0.3600415885,
0.3370533288,
0.2944207191,
-0.2477839142,
-0.1721236408,
0.1744413227,
0.2293731123,
-0.1746056229,
-0.1171962023,
-0.2101529092,
0.2908438146,
-0.2680513561,
0.0505827703,
-0.396265626,
-0.0038011016,
-0.0263502654,
0.1709140688,
-0.2733540237,
0.0057039536,
-0.2857446671,
0.337773025,
0.0437342077,
0.087425366,
0.0678673387,
0.0516939536,
-0.0261325296,
-0.4181883633,
0.0240777284,
-0.3533780277,
-0.0266271718,
0.2478285581,
-0.2746103704,
0.3719308078,
0.5034908652,
-0.006853051,
0.0553244017,
-0.0133312549,
-0.0688844845,
0.0226926934,
0.1387317479,
-0.1509947032,
0.2419553697,
0.1769804209,
-0.1034574956,
-0.0439832248,
-0.4177384973,
-0.1573690325,
0.4149640203,
0.0925486907,
0.304340899,
0.088252008,
-0.3174016774,
-0.2717195153,
0.0808460563,
-0.0330292918,
-0.1450407356,
0.3015882373,
0.0379134826,
0.1623577327,
-0.0567283481,
-0.0364083834,
-0.372574836,
0.564923346,
0.3192881048,
-0.3951660395,
-0.1880396903,
-0.3771694899,
-0.6647295952,
0.0834213197,
0.0558315255,
-0.0527233742,
0.4076806605,
0.1982895136,
0.4616664946,
0.0610231198,
-0.1537917107,
0.0770155191,
-0.1567260176,
0.3889110982,
-0.0518681519,
0.0534201004,
0.03399029,
0.2281392366,
-0.2226360589,
-0.4697472155,
0.4194070697,
0.2180150747,
-0.0897898674,
-0.1330074221,
0.0592485629,
-0.3414670229,
0.4256179929,
0.3861467838,
0.0256972536,
0.0922031775,
0.3125080168,
0.0879873261,
0.3015058041,
-0.027041791,
0.0697821081,
0.2420689315,
-0.0561338328,
-0.0393763706,
-0.0404640473,
0.4130630195,
-0.1733227521,
-0.0444143936,
-0.2778541744,
-0.142104134,
-0.140269801,
-0.025870705,
-0.2182963341,
0.2299893945,
0.2676995397,
-0.0239843316,
0.2052933574,
0.2032263279,
-0.2472173721,
-0.0509739555,
0.2124584317,
-0.0083215032,
-0.1552096307,
0.022493802,
0.1243810728,
0.2134562284,
0.1865947992,
-0.3039718568,
-0.1745002568,
0.2332244366,
-0.1703489423,
-0.0961515307,
0.3876350224,
-0.2346217036,
0.1899157017,
-0.171601966,
0.2427428365,
-0.0772555545,
-0.06954059,
-0.4443512559,
-0.2711589634
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization.
```
def add_len_and_seq(example):
end_idx = example['input_ids'].index(SEP)
example['actual_len'] = end_idx-1
seq_len = len(example['input_ids'])
example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx)
return example
```
| I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 51 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization.
```
def add_len_and_seq(example):
end_idx = example['input_ids'].index(SEP)
example['actual_len'] = end_idx-1
seq_len = len(example['input_ids'])
example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx)
return example
```
| [
-0.2723699212,
-0.1468665451,
-0.0388626717,
0.187440455,
0.4000376463,
0.0453447104,
0.4641445875,
0.2294566035,
0.6530973315,
-0.039413128,
0.2031133026,
0.5122695565,
-0.0241839066,
-0.1652988344,
0.1699288785,
0.1053498685,
0.3435816765,
0.1828207076,
0.5284674168,
-0.2227724046,
-0.2088471651,
-0.0600211509,
-0.0657847971,
-0.0276851337,
-0.2205492407,
-0.0452075079,
-0.0313013941,
0.0227654092,
-0.1343156844,
-0.3194656372,
0.0928835422,
0.0193027798,
0.2287550718,
0.2781815529,
-0.0001281752,
-0.1722032279,
0.0046071429,
0.1535201669,
-0.1430978626,
0.2643968761,
0.4690797329,
-0.5940463543,
0.2383884192,
-0.3503428996,
0.0618376695,
-0.2827262878,
-0.3401738107,
-0.2147908807,
-0.0075518545,
-0.1195015907,
0.0158577338,
0.3616871834,
-0.3337501884,
0.1539884806,
-0.0743321851,
0.1939000487,
-0.1434201896,
0.1258125156,
0.4729341865,
-0.1927227229,
0.0029671073,
0.0226150863,
-0.2509932816,
-0.0965024382,
0.3857632875,
0.0741028041,
0.1951776445,
0.04834117,
0.0506097302,
0.1477310658,
0.5389367342,
-0.0009463024,
-0.0577604547,
-0.3210887909,
-0.0554645099,
-0.3969578445,
0.3212766945,
0.0301399175,
-0.2767955065,
0.0759608671,
-0.10861063,
-0.0788261369,
0.0298108477,
0.2188178599,
-0.2157347798,
0.0422307476,
0.0866946131,
0.1933327913,
0.318870604,
-0.1083809957,
-0.098751381,
-0.0084893154,
0.1952889264,
0.4358852804,
-0.3283739388,
-0.248767823,
0.0326804742,
-0.0019630294,
-0.1444238722,
0.1964239925,
0.088920936,
0.2106190622,
-0.1054589599,
0.0051106247,
0.2394283265,
0.4608978629,
-0.2296863645,
0.1211882755,
0.0778401718,
-0.317499131,
-0.1782214791,
-0.0916160643,
-0.2083228528,
0.0359106474,
0.4978764355,
-0.505192399,
-0.2428244799,
-0.1187329069,
-0.0430591069,
0.236756444,
0.3178035021,
0.0038014248,
0.2405847013,
0.2986124754,
0.0302923359,
0.5268793106,
-0.0790835172,
0.1430350393,
-0.2173653096,
-0.0234916788,
-0.0706593692,
-0.2602781951,
-0.1074770913,
0.1086400822,
-0.0289182384,
0.3335451186,
-0.0739849657,
0.1510807872,
-0.1349657029,
0.009154791,
-0.0671709254,
-0.1628106683,
0.2305508554,
0.2077686936,
-0.1655425131,
0.2659240663,
0.2583850622,
-0.3331990838,
-0.4613668025,
0.2853638232,
-0.1705411226,
-0.4137838781,
-0.3964416385,
-0.0067317742,
-0.2626551986,
-0.0938735604,
-0.4485407174,
-0.0402414799,
0.1792416126,
0.0432296731,
-0.0430106446,
-0.2162176818,
-0.1451558769,
-0.1301584393,
0.0579307862,
0.0728652179,
-0.2945601046,
0.1127770767,
-0.2678592503,
0.3557194173,
0.3770869374,
0.7180869579,
-0.2919612825,
0.4202105403,
-0.2172200084,
0.2997386158,
0.5369106531,
-0.1884545982,
-0.4042335451,
0.6187265515,
-0.1343870908,
0.0445354581,
0.0361251868,
0.4975113869,
0.2584007978,
-0.0394760557,
0.1837876737,
0.6960246563,
0.1099872962,
0.2276613861,
-0.4064321518,
-0.0267876498,
0.2199180275,
0.3522607684,
-0.3312681317,
0.1514373124,
0.0653633848,
0.0905348063,
0.2092308104,
0.0616228394,
-0.1017938554,
0.281398803,
0.258294493,
0.1643482,
0.0434330441,
0.2720759213,
-0.144076854,
0.20028162,
0.5107882619,
-0.0763213634,
-0.0500869676,
-0.2480374724,
-0.3892802298,
0.2931810617,
-0.1443338394,
0.3294911385,
-0.1960773319,
0.0404953994,
0.1306799501,
0.0196183026,
-0.1077527925,
-0.273044467,
-0.2539151013,
-0.0318214893,
-0.0143759912,
0.0497075878,
0.1867200434,
-0.0047956617,
-0.4482593834,
0.1168490797,
0.0564298555,
0.0313601084,
-0.2220864296,
0.2688144147,
0.2077786326,
0.0680242479,
-0.0495330766,
0.2058762163,
0.1093484685,
0.0337099172,
0.2628692985,
0.0712594092,
0.1975323409,
-0.2217780054,
-0.1914298981,
0.5089941025,
-0.0855100527,
0.2481403649,
-0.2729075253,
-0.0396677516,
0.4773667157,
0.1242776141,
0.0985500067,
-0.0250131972,
0.2052787393,
0.27789554,
0.2757317722,
0.1117199212,
-0.1666744202,
0.271894455,
0.2947527468,
-0.2841125727,
-0.0304352753,
0.2060742974,
0.0274870154,
-0.310552001,
-0.0116950097,
-0.1333321333,
0.2517814934,
0.1176276281,
0.1077014208,
-0.3004763424,
-0.0617361367,
-0.0989974812,
0.1774073541,
-0.0865197107,
-0.1013618559,
0.1303023547,
0.0194882434,
-0.0826522708,
-0.3771760464,
-0.0525454953,
0.0686625913,
0.4366832078,
-0.2205614448,
0.274782598,
-0.0571822673,
0.1997993439,
-0.0164390802,
-0.3017412722,
0.0251298677,
-0.3157309592,
-0.2038694173,
0.2908663452,
-0.0447211452,
-0.1348049194,
-0.0688588545,
0.2550408542,
0.2128172368,
-0.454147011,
-0.2794965208,
-0.3061749935,
-0.1113633141,
-0.197285831,
0.3697755635,
0.0489766113,
0.3008130193,
-0.0138001312,
-0.1955284178,
-0.224466905,
-0.3411602974,
-0.1097942293,
-0.0475997068,
0.213969633,
-0.1861350983,
0.3008183837,
-0.5481995344,
-0.0654700622,
0.3417083323,
-0.28815642,
-0.1716949493,
0.376814723,
-0.0064205378,
-0.1605557948,
0.1009442955,
0.1047662422,
-0.1269281805,
-0.1898217052,
0.2512328327,
0.0706505105,
0.1390313506,
-0.2185507715,
0.0698026046,
0.0218849592,
0.4788022637,
-0.2052253038,
-0.1983877122,
-0.1957685053,
0.5628791451,
0.044967141,
-0.1830823123,
-0.1186386943,
0.0367398039,
-0.093570061,
0.0155284377,
-0.571331203,
0.1604188681,
-0.3806985915,
0.4317448437,
-0.1833309233,
0.0472298972,
0.1662710905,
-0.2633863091,
0.0482753441,
0.189160794,
0.0205157399,
0.1094461903,
0.0715713948,
0.0302698892,
-0.007416998,
0.7050043344,
-0.191078037,
0.50046736,
-0.2420648485,
-0.0491509847,
0.3664191961,
-0.1120702326,
0.2564029098,
-0.3437133431,
-0.2357248962,
-0.2404977977,
0.0993408412,
-0.3650356829,
0.180310443,
-0.0105271051,
-0.3311647177,
0.0819812939,
-0.0493064746,
-0.0190130994,
-0.1505442411,
0.3478385806,
-0.1515967548,
0.036843922,
-0.1103062332,
0.2615600526,
-0.4225663841,
-0.2423101068,
-0.1179584116,
0.0207944103,
0.1237536892,
-0.2384306788,
-0.712393105,
-0.1228409111,
-0.5423576236,
0.121040985,
-0.1256301701,
0.4711710811,
0.0812952965,
-0.3076663017,
0.4302410781,
-0.0289576016,
0.6507667899,
0.1201317161,
0.0962335989,
0.1961340904,
-0.2613888383,
-0.7808229327,
0.0258691646,
0.1718292236,
0.0333676971,
0.3404672146,
0.7582913637,
-0.0794738233,
-0.1321241856,
-0.1942912042,
0.4059050381,
-0.2330975831,
-0.2866647243,
-0.2519879043,
-0.3326835334,
-0.242420733,
0.2168318331,
0.1198681593,
0.5127632022,
0.365509212,
-0.0541324057,
-0.2658088505,
-0.0786052421,
0.1119233891,
0.1096714288,
0.3797813356,
-0.0863726139,
0.3377001882,
-0.2857823074,
0.0629305765,
-0.1840693802,
0.4262422323,
-0.1851898283,
-0.0862931982,
0.2065569013,
-0.0905985981,
0.0726824626,
0.4006857872,
0.2137318701,
0.0808738843,
-0.173976168,
0.2801625431,
-0.3501026332,
0.0860035047,
-0.0204657372,
0.029995963,
-0.0342001878,
-0.2859371006,
0.3274010122,
0.0167081561,
-0.0674652159,
0.2595993876,
-0.095178619,
0.0070138103,
0.7409737706,
0.2020384818,
1.2241344452,
-0.4361757934,
0.1046030223,
0.1566033065,
0.2955698967,
0.048845306,
-0.2537306547,
-0.2328997999,
-0.3573131263,
0.1386001408,
0.1361424178,
-0.182178244,
-0.1807619631,
0.3662807941,
0.1105938628,
-0.0953261033,
-0.3047891557,
0.329887569,
-0.3755409718,
0.4509916902,
-0.0389762744,
-0.3950834572,
-0.5488093495,
-0.0458750911,
0.0927856266,
0.0167338196,
-0.0419052839,
0.2078905404,
-0.0197341498,
-0.2473614067,
-0.1560857743,
-0.1223902553,
0.1882692575,
0.3284365237,
0.0779669285,
-0.3352365792,
-0.2027184963,
0.456859231,
0.322676897,
0.017519867,
-0.0467570946,
0.2161892802,
0.0357555859,
0.0785138533,
0.1622999161,
-0.2645242214,
0.1143187582,
-0.0748125911,
0.0375725552,
-0.1490094066,
-0.2162972391,
-0.5926707983,
-0.0849835202,
0.1830939651,
0.369685322,
-0.2103631943,
-0.2464724928,
-0.1820781529,
0.1899176836,
-0.1519606709,
-0.0263233613,
0.2444150448,
0.1326883733,
0.2322718203,
-0.0355079919,
-0.2975769043,
0.0561397858,
0.3613013327,
0.1219028309,
-0.1763504893,
0.3943616152,
-0.0458822735,
-0.2334230691,
-0.2297955155,
0.2831095755,
0.3257549405,
-0.3678575754,
0.2020448893,
-0.0597112626,
-0.0261541381,
0.0612432472,
0.1117015183,
0.1226688549,
-0.0526749305,
-0.2048231959,
-0.2920002639,
-0.5180851817,
-0.0142697105,
0.2212660462,
0.1805762649,
0.1349375099,
-0.3628827035,
-0.2561186552,
0.1121545509,
-0.1135135219,
0.0301679783,
-0.1033241451,
0.1016063169,
0.0881104693,
-0.0794895664,
0.1899869442,
-0.1210956201,
0.0247976631,
-0.165527001,
0.006372449,
-0.0626745969,
-0.0018175867,
0.2346961498,
-0.0313988701,
-0.2769501209,
-0.1427208036,
-0.3840758801,
-0.1196034551,
-0.4405585825,
-0.0466872342,
0.030899683,
-0.0530007556,
-0.407568723,
0.3622809052,
0.1974089742,
-0.0273238309,
0.2847127914,
-0.1692370772,
0.3989356756,
0.0205526482,
0.0156395845,
0.2750971913,
-0.1561068445,
-0.3168005943,
0.1873919368,
0.4050490856,
-0.1289351285,
0.3607319295,
-0.1552076042,
0.0698473305,
0.2845455408,
0.0124520939,
0.2120545357,
-0.1705860943,
-0.3054559827,
0.349054724,
0.0346521251,
-0.0181309059,
-0.3050709069,
-0.0451129787,
-0.1514679492,
-0.2121546566,
0.3869554698,
0.4360879064,
-0.1036218181,
-0.20266743,
0.0185806975,
0.5638003349,
0.0744231716,
-0.3574273884,
0.5144121051,
-0.1318360716,
-0.0445710383,
0.136166051,
0.1590792239,
0.0855831504,
0.5236284733,
-0.1440823376,
0.1383866072,
0.2728666365,
0.4584127665,
-0.4138360322,
-0.3418090045,
0.3759521544,
0.3029161394,
-0.1723510921,
-0.0599530041,
0.1050045118,
0.2829162776,
-0.2486315668,
-0.0871201083,
-0.2164559513,
0.4080289304,
-0.278719306,
-0.0049714074,
-0.2101794332,
-0.0080128023,
0.0091440342,
0.1979600042,
-0.2225671113,
-0.0109474761,
-0.3567086756,
0.2962245345,
0.0381656066,
0.0487782545,
0.1087221131,
0.0426624157,
0.1082418934,
-0.435482353,
-0.0357793048,
-0.2812236547,
-0.0054105003,
0.221861124,
-0.246822238,
0.437446624,
0.4777420759,
-0.0077330177,
0.0011964571,
-0.0068763983,
-0.0165293664,
-0.0608337522,
0.1732792705,
-0.1783578098,
0.2844756544,
0.1485012025,
-0.124173604,
-0.0721783936,
-0.4527175128,
-0.1113949418,
0.3679221869,
0.1252464205,
0.3018088937,
0.1230110377,
-0.2424144894,
-0.3305614293,
0.1317326128,
-0.0461978763,
-0.1522233635,
0.1501566768,
0.0900420994,
0.1735494137,
-0.0438105054,
-0.04192039,
-0.2884946167,
0.5451472998,
0.2815954983,
-0.3723649979,
-0.2056159079,
-0.3782557547,
-0.6515108347,
0.0716660172,
-0.1074578464,
-0.1714021862,
0.3680437207,
0.2453301847,
0.4008664489,
0.0430513956,
-0.1415573955,
0.0269898903,
-0.1825282723,
0.3073928058,
-0.053022556,
0.1137599722,
0.0189641174,
0.1804414392,
-0.1774558872,
-0.5137277842,
0.3781630993,
0.2077537924,
-0.1100398451,
-0.0539736748,
0.0188239198,
-0.4160959423,
0.3677490354,
0.466353029,
0.0675620139,
0.1766431779,
0.2604014277,
0.0236683488,
0.2030624747,
-0.0768173635,
-0.0392013229,
0.2884309292,
-0.11659123,
0.0287644416,
-0.0811058283,
0.3949275017,
-0.1959097832,
0.0813038796,
-0.1703326255,
-0.2662627101,
-0.1360893846,
-0.0353828408,
-0.1896097511,
0.3324862719,
0.1649115682,
0.1120358407,
0.2056089938,
0.2885063589,
-0.2644025683,
-0.1547445804,
0.3250331283,
-0.0914281234,
-0.192868188,
-0.0104171177,
0.1300896257,
0.1925914139,
0.1720912158,
-0.3801365197,
-0.1749806255,
0.2354858816,
-0.0609317869,
-0.2268811762,
0.3500664532,
-0.2122195959,
0.0729690567,
-0.1263053864,
0.2208829224,
-0.1411450058,
-0.0637374595,
-0.3829965293,
-0.2339338362
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type.
Does this work if you remove the `np.uint8` and use python integers instead ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 32 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type.
Does this work if you remove the `np.uint8` and use python integers instead ? | [
-0.2943400145,
-0.2248800844,
-0.0571159944,
0.3033533096,
0.315648526,
0.049701184,
0.4435778856,
0.2428751737,
0.679972887,
-0.0187010784,
0.152965501,
0.5113557577,
0.0885320008,
-0.108503677,
0.13383618,
0.0986103639,
0.3429254293,
0.206077233,
0.475964576,
-0.1658245623,
-0.251773715,
0.0001298432,
-0.130684495,
0.0234819427,
-0.1588279009,
-0.0829918459,
-0.0751804337,
0.0350683555,
-0.1523589045,
-0.3155412972,
0.0216221716,
-0.0448318943,
0.2884912789,
0.2051531225,
-0.0001264279,
-0.254846096,
0.0216282122,
0.1173049212,
-0.2475821972,
0.2874676585,
0.4266409576,
-0.4523164332,
0.2212566435,
-0.3689644337,
0.1373712122,
-0.3382209241,
-0.3590537012,
-0.2098051757,
-0.0186809301,
-0.1411032826,
0.0444991849,
0.4352430999,
-0.2819192111,
0.0345779173,
-0.0528538376,
0.2976842821,
-0.1637857854,
0.0466383249,
0.5985648036,
-0.0725578666,
-0.1019449458,
-0.0817546025,
-0.2182449102,
-0.1018448845,
0.3846515715,
0.0748106316,
0.2570776045,
0.1627737284,
0.0662125722,
0.1427183002,
0.5887854099,
-0.0352814719,
-0.0009134802,
-0.2447485328,
-0.095246762,
-0.2890893221,
0.3673815131,
0.0128191151,
-0.2871282101,
0.1850771308,
-0.0602005832,
-0.0723914877,
-0.0501535311,
0.2330686748,
-0.1294522136,
-0.0757528022,
0.0434351154,
0.1163353324,
0.3337874711,
-0.1512930989,
0.0617025644,
0.0351883322,
0.116657652,
0.3841656744,
-0.4037294388,
-0.2078674883,
-0.0331368372,
0.0053694756,
-0.1448205113,
0.1278427094,
0.2320954204,
0.2485830933,
-0.0449299477,
0.0197507963,
0.2399187088,
0.367870152,
-0.1198355779,
0.1469495744,
0.0768399984,
-0.3085560501,
-0.0288760588,
-0.0406091288,
-0.2590743005,
0.0038076395,
0.4785636067,
-0.4682095349,
-0.2703818381,
-0.1632350236,
-0.0524667427,
0.2429698408,
0.3954811692,
-0.0433483012,
0.2423647344,
0.2756171525,
0.0462449603,
0.4945327044,
-0.0492989086,
0.0374573693,
-0.1581908464,
-0.1149217933,
-0.0604095235,
-0.2971881628,
-0.1712875068,
0.1489871591,
0.041865427,
0.3508809805,
-0.1205049232,
0.1890941113,
-0.2329150289,
0.0578359514,
-0.0910506546,
-0.1327035129,
0.2696329653,
0.1806907803,
-0.0991708413,
0.2365835458,
0.1698703468,
-0.2017391473,
-0.4431203306,
0.3833535016,
-0.1958325207,
-0.3932256103,
-0.434984237,
0.0218760986,
-0.2119772285,
-0.0792887509,
-0.4514288604,
-0.1795582175,
0.1182684898,
0.0589969195,
-0.0197514519,
-0.1308739334,
-0.0821727067,
-0.0923372433,
-0.0474030375,
0.0929242894,
-0.3962218165,
0.1668627411,
-0.2080183476,
0.2890931368,
0.3477072418,
0.622901082,
-0.2996454537,
0.362134248,
-0.252335459,
0.2976996601,
0.5223907232,
-0.1004190668,
-0.3643663526,
0.7189657092,
-0.0472504273,
-0.1865949929,
0.1076063141,
0.527752459,
0.3615675271,
-0.0806179121,
0.1315565407,
0.6244171262,
0.1654662043,
0.2055849135,
-0.4061891139,
-0.0612437241,
0.0919046327,
0.4283308089,
-0.3837230504,
0.1274900138,
0.1401906163,
-0.0290595125,
0.1692347825,
0.0445320532,
-0.0756354854,
0.2814269364,
0.2664147913,
-0.0544777848,
0.0677250549,
0.2265754193,
-0.1943377852,
0.1511390656,
0.3955881596,
-0.1846632361,
0.0356451683,
-0.209893316,
-0.3576275408,
0.3173827827,
-0.0696602613,
0.5633522272,
-0.1680370271,
-0.0161697473,
0.1312581897,
-0.1643914282,
-0.1563705057,
-0.1088239476,
-0.263497889,
-0.0942780077,
-0.0907815844,
0.0605388172,
0.1737845391,
-0.0462965965,
-0.3290224373,
-0.0069321943,
0.0490832143,
0.0580226742,
-0.1874865294,
0.3025078475,
0.2110293657,
-0.0094983745,
-0.008441925,
0.2171441317,
0.1239149719,
0.0457698107,
0.2926034331,
0.0471668877,
0.18857871,
-0.2624529004,
-0.1158251166,
0.4826084077,
-0.2119685113,
0.2636256516,
-0.2107875049,
-0.057061363,
0.4025437236,
0.1707691252,
0.1318587363,
-0.0161366723,
0.1807727963,
0.3143534958,
0.2750585973,
0.252009064,
-0.2294908464,
0.2636442482,
0.2475572079,
-0.3291886449,
-0.0721796304,
0.2215184271,
0.0327368341,
-0.2925546467,
0.0452847444,
-0.0746015459,
0.3398675919,
0.1416779906,
0.0331318341,
-0.337731123,
-0.0807492286,
-0.1799660623,
0.1585644633,
-0.096362263,
-0.1664720774,
0.0793528035,
-0.1049147248,
-0.1405677497,
-0.3333320916,
0.043147698,
0.1139280871,
0.4340325892,
-0.3360696733,
0.1819749475,
-0.1398001015,
0.1006543785,
0.0214312989,
-0.3120061159,
0.0983556658,
-0.206077382,
-0.1601313949,
0.2585892677,
-0.0568327606,
-0.127379939,
-0.0457084291,
0.4071216583,
0.2142860293,
-0.4044515193,
-0.3806306124,
-0.304431349,
-0.1384851784,
-0.1443673521,
0.4448210597,
0.1631068587,
0.2551797032,
-0.0569449551,
-0.1024076417,
-0.2688092887,
-0.133706212,
-0.1084034666,
0.0277538374,
0.1366551518,
-0.1401949823,
0.3482021689,
-0.5923082829,
-0.0682545975,
0.2889495492,
-0.3040878177,
-0.2487547845,
0.4316577613,
-0.089816764,
-0.3463100195,
0.0212814584,
0.1075281724,
-0.1065264568,
-0.2346153259,
0.1980969012,
0.0223734081,
0.1970597953,
-0.2903105915,
0.1200646833,
0.047544349,
0.4194036424,
-0.2496539354,
-0.1606359929,
-0.2298173308,
0.6143159866,
0.0052385502,
-0.2826808691,
-0.0352875702,
0.1667380184,
-0.0689895377,
-0.004436139,
-0.5236112475,
0.2110105902,
-0.3914630115,
0.3879406452,
-0.2507886291,
0.1295182109,
0.1006245613,
-0.2705984116,
0.0279505197,
0.2041379511,
-0.0470446497,
0.2030741125,
0.0508886389,
0.0871172622,
0.0146014029,
0.5647196174,
-0.2276449054,
0.3679975569,
-0.2421872318,
-0.1133369133,
0.3385270238,
-0.0457906723,
0.2186236382,
-0.3233048916,
-0.1835276037,
-0.254811883,
0.1148840263,
-0.3281367421,
0.2052339911,
-0.0470519364,
-0.3221099079,
0.0186663307,
0.0380089171,
-0.0206914116,
-0.075371705,
0.2960333228,
-0.0189608056,
0.0157174561,
-0.1564356387,
0.207814157,
-0.369602412,
-0.2330317646,
-0.0829178095,
-0.0495277159,
0.1429995447,
-0.2620233297,
-0.6429182887,
-0.0781930611,
-0.4179564714,
0.1745575219,
-0.1723275781,
0.4994802177,
0.0736007541,
-0.3419013917,
0.4459113479,
0.0000092454,
0.610689044,
0.2610675395,
0.0313421413,
0.1837452352,
-0.1467973888,
-0.7164684534,
0.0446784273,
0.20528543,
-0.0682097226,
0.2740389407,
0.6911304593,
-0.095462136,
-0.1232027635,
-0.1753897518,
0.3305180669,
-0.1972631514,
-0.4610155225,
-0.1612582803,
-0.3332917094,
-0.1577515602,
0.1362024844,
0.1624789387,
0.4764493108,
0.403673172,
-0.0795256048,
-0.2010965794,
-0.1514121592,
0.0769224539,
0.0857557952,
0.3958839774,
-0.1649831086,
0.4091666937,
-0.3334080279,
0.1923516691,
-0.0831136256,
0.3989641964,
-0.1917420626,
-0.0647916347,
0.3708530068,
-0.2073857933,
0.0760353655,
0.3880730271,
0.193563357,
0.1367916167,
-0.1403948218,
0.1752064973,
-0.2453931272,
-0.0806315988,
-0.1874670535,
-0.0669724345,
0.0424892977,
-0.167779386,
0.2720347345,
0.0439280383,
-0.0331757702,
0.3123396635,
-0.1232538596,
0.0711572319,
0.7600032687,
0.2339065671,
1.2246547937,
-0.5035203099,
0.0143717751,
0.1216151342,
0.1656194031,
-0.1179601625,
-0.1760441959,
-0.326979965,
-0.4070285559,
0.1482394785,
0.12771523,
-0.2269848287,
-0.1235536262,
0.3887036443,
0.0860183463,
-0.1470340043,
-0.2462287843,
0.3335518539,
-0.372238487,
0.4040260017,
-0.0381874293,
-0.4741929471,
-0.5782676935,
-0.020984605,
0.0157224201,
-0.1392734945,
-0.0104783578,
0.1738461107,
-0.0361928269,
-0.222405985,
-0.1036520526,
-0.1861285269,
0.0907136872,
0.1817899197,
0.1882382929,
-0.2340195328,
-0.1706717908,
0.4167110026,
0.3755472302,
-0.0700851828,
-0.0401892662,
0.1823684126,
0.0647357255,
0.1224829406,
0.0813117251,
-0.259570837,
0.0828863159,
-0.1189797893,
0.057267271,
-0.0665010288,
-0.1295835078,
-0.5366306305,
-0.1099398658,
0.199248299,
0.3654548824,
-0.1988741159,
-0.2844590843,
-0.292471379,
0.1557068378,
-0.065867193,
0.0162827782,
0.3401004374,
0.159085542,
0.2823826373,
-0.0473312885,
-0.235675171,
0.0175014082,
0.3600904047,
0.0381033197,
-0.2959870994,
0.2296040803,
0.0347342156,
-0.2232732326,
-0.2273771614,
0.3738379776,
0.3516622186,
-0.4658208191,
0.113439776,
-0.0073064864,
-0.0589038581,
0.0803501308,
0.1580491364,
0.202291429,
0.0176380686,
-0.1211415604,
-0.2088407427,
-0.528203845,
0.0122616468,
0.2407431602,
0.1340418905,
0.1419378966,
-0.5530797243,
-0.3032375574,
0.0276503377,
-0.1465065181,
0.0846250877,
-0.0470657311,
0.1170281321,
0.0066626114,
-0.0371650867,
0.1006970555,
-0.1650077254,
0.052132234,
-0.1201460958,
0.0040524476,
-0.0913611576,
0.067167215,
0.2125337571,
-0.0326330252,
-0.2659909427,
-0.2516623139,
-0.4543343186,
-0.2050015032,
-0.3530681729,
-0.1167322844,
0.0779269561,
-0.1097265482,
-0.3546775579,
0.3384286463,
0.1532837749,
-0.0454581343,
0.3576587737,
-0.0494338311,
0.4739780724,
-0.0162989441,
0.0577732585,
0.1461660713,
-0.1894844621,
-0.2302967906,
0.2283017486,
0.3283312023,
-0.1512205303,
0.3985271454,
-0.2034520954,
0.0327936858,
0.2581098378,
0.0240826216,
0.2060745507,
-0.1661802977,
-0.2903407216,
0.3153265715,
0.0767672136,
-0.0047937026,
-0.2500503957,
-0.042113021,
-0.1186144203,
-0.2442471534,
0.3506320417,
0.4611363411,
-0.2066255808,
-0.0887791961,
0.0317300819,
0.5728582144,
0.0141486861,
-0.4393892288,
0.6040981412,
-0.0466112569,
-0.0192429591,
0.1124726608,
0.2082579881,
0.0788007975,
0.4882704616,
-0.2155217081,
0.1153139845,
0.3541577458,
0.5426248312,
-0.3740213811,
-0.3426679969,
0.3637277186,
0.2706035674,
-0.2007650137,
-0.1184999198,
0.1577221155,
0.2770217359,
-0.1784946173,
-0.1285788566,
-0.2322595567,
0.2374081165,
-0.2579989433,
0.0892991722,
-0.3661230505,
-0.0265118666,
-0.0183169283,
0.1205130443,
-0.2606545091,
0.010732621,
-0.2762072682,
0.3323473334,
0.0759628192,
0.0478879884,
0.0287432205,
0.0779317617,
-0.0161675122,
-0.4089173973,
-0.0030227948,
-0.348603338,
-0.0520248525,
0.2731180489,
-0.2664617896,
0.3906586468,
0.5201635361,
-0.0037658853,
0.0543631352,
-0.0440450162,
-0.0332822762,
0.0063727726,
0.2009408921,
-0.1043527946,
0.2317553163,
0.152081877,
-0.1098470762,
-0.0681059062,
-0.4159817696,
-0.1741551161,
0.4164212942,
0.1408073455,
0.3191127181,
0.0841154307,
-0.3321055472,
-0.2562817037,
0.0822449327,
-0.0990467668,
-0.1693682522,
0.265348345,
0.0121961972,
0.1619280428,
-0.0405135714,
-0.0301770885,
-0.3313153982,
0.5836265087,
0.3414527476,
-0.3722859025,
-0.2083298713,
-0.3158128262,
-0.6785956621,
0.0826005936,
0.0061989776,
-0.0291486382,
0.4067519903,
0.24536933,
0.4798539579,
0.0738414899,
-0.0745148212,
0.0058920584,
-0.1493742019,
0.3993552029,
-0.0918728486,
0.0801307261,
0.0865439251,
0.2133026719,
-0.236837104,
-0.4747450948,
0.4323936403,
0.2044920623,
-0.0929565728,
-0.0872168764,
0.0433860086,
-0.2884811163,
0.3838070929,
0.3971137106,
0.0027237108,
0.1114631072,
0.3268882036,
0.0639132857,
0.2400348336,
-0.0643626899,
0.0969401449,
0.2231926322,
-0.0742229298,
-0.0774140358,
-0.0497451387,
0.3446443677,
-0.2318464667,
0.0148536097,
-0.2300881445,
-0.2026833296,
-0.1397501379,
0.0247969162,
-0.2142135948,
0.2600075006,
0.2427755147,
-0.0022022151,
0.1724120528,
0.2694126368,
-0.2461123914,
-0.0634342879,
0.2341076136,
-0.0005447685,
-0.1780945212,
0.0749682784,
0.1997459382,
0.2011826485,
0.2328180522,
-0.3857896328,
-0.1835775971,
0.2323229611,
-0.1316278577,
-0.0851390809,
0.3760202527,
-0.2066549957,
0.2136586308,
-0.1630482227,
0.2711825669,
-0.0848431811,
-0.0476507284,
-0.412452966,
-0.3080238104
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 19 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers. | [
-0.2997468114,
-0.2523109019,
-0.0470443331,
0.2852841914,
0.3280438781,
0.0210996699,
0.4262611568,
0.2177658826,
0.7503626347,
-0.0394667983,
0.1555926949,
0.5000485778,
0.0829722658,
-0.0863408893,
0.1403079927,
0.116669856,
0.3541413844,
0.2110988945,
0.4538334608,
-0.1608219892,
-0.2806876004,
0.0042518205,
-0.1241988689,
0.020843301,
-0.1499314159,
-0.034160547,
-0.0299529657,
0.0478596278,
-0.1242575496,
-0.3127472401,
0.0386540033,
-0.0707976744,
0.2723851502,
0.2255568802,
-0.0001278377,
-0.2478276044,
0.0132425409,
0.1549171507,
-0.2342651933,
0.2983805835,
0.3765068948,
-0.4481577873,
0.2435007095,
-0.3445623517,
0.1320650429,
-0.3008110821,
-0.3529148102,
-0.2031404972,
-0.0605136193,
-0.1430764347,
0.0295513161,
0.4554940462,
-0.3025601804,
0.0823653862,
-0.1058336943,
0.3159893155,
-0.1544768512,
0.0775510445,
0.5621141791,
-0.0488692708,
-0.0532416552,
-0.0539406054,
-0.220050469,
-0.0803388581,
0.37347579,
0.0614772364,
0.2543973625,
0.1495887041,
0.0807376057,
0.1082238033,
0.5584252477,
-0.0173398275,
0.0234145653,
-0.2472170889,
-0.0852082297,
-0.3046396673,
0.3880219758,
-0.0014708795,
-0.2571531534,
0.1764449477,
-0.0475824252,
-0.0687611178,
-0.0145759648,
0.2424100488,
-0.1865229905,
-0.0527721085,
0.0204857923,
0.1147159487,
0.3606213033,
-0.1024475098,
0.0572249033,
0.0543405823,
0.1102681234,
0.3917823434,
-0.4160101116,
-0.1962458044,
0.007882013,
0.0762104914,
-0.1992875189,
0.1077008992,
0.2171663046,
0.2246487439,
-0.1134416088,
-0.0168444458,
0.2522182167,
0.3522305787,
-0.1196839511,
0.1481115967,
0.0786631182,
-0.2717194259,
-0.0636467487,
-0.0346711054,
-0.2698743939,
-0.0448171943,
0.5096766353,
-0.467994839,
-0.2419988513,
-0.1596257091,
-0.082834959,
0.2333768308,
0.43275702,
-0.0528065376,
0.250652492,
0.2286753654,
0.0346171185,
0.5681989789,
-0.0360983014,
0.0221786443,
-0.1965541691,
-0.1412781477,
-0.0486950874,
-0.2828442454,
-0.1765477955,
0.1495120525,
0.0459263995,
0.2822541296,
-0.1178851426,
0.1888043433,
-0.2141369283,
0.023412209,
-0.1138860583,
-0.1401478201,
0.2944339514,
0.2083583772,
-0.1148261651,
0.2261588722,
0.1771098226,
-0.2330551893,
-0.4272059798,
0.4167665839,
-0.1968292594,
-0.4156869352,
-0.4845804274,
0.0009357684,
-0.2500707805,
-0.08828298,
-0.4191099107,
-0.1701915413,
0.122063674,
0.0307384618,
-0.0117623219,
-0.1612860411,
-0.1153210178,
-0.0993764699,
-0.0477486439,
0.146101743,
-0.4231804013,
0.1730354428,
-0.2556329966,
0.2764599919,
0.3224262595,
0.6396909952,
-0.2801318467,
0.3539846838,
-0.2494267523,
0.2317920178,
0.5141882896,
-0.0979826748,
-0.4064534605,
0.7154765129,
-0.0799035132,
-0.1685023159,
0.0801309943,
0.580371201,
0.3193610609,
-0.0707677081,
0.1484781504,
0.6385689378,
0.1840555966,
0.2328276485,
-0.3932383358,
-0.0290973783,
0.0782501772,
0.4464018643,
-0.4105349481,
0.1632717699,
0.1406905055,
-0.000751517,
0.1959135234,
0.0519312322,
-0.0848506615,
0.2653442919,
0.2414297611,
-0.0164801721,
0.0377390645,
0.2370994091,
-0.1661603153,
0.1361671239,
0.4677138925,
-0.20218274,
0.0326370485,
-0.1964567453,
-0.385507226,
0.3265435398,
-0.0973815173,
0.5834562778,
-0.2067904025,
-0.0223461632,
0.0919387266,
-0.1623271406,
-0.1692396104,
-0.0781929642,
-0.2837656736,
-0.1043160111,
-0.0629551634,
0.0552182645,
0.1984120756,
-0.0376979895,
-0.3756639659,
-0.0224587433,
0.0238025822,
0.0572338551,
-0.200161323,
0.2730815709,
0.1836065799,
-0.031201642,
-0.0294402484,
0.226323396,
0.1067595109,
0.0680077299,
0.3422234058,
0.0136776818,
0.2121348381,
-0.2573306262,
-0.0757789835,
0.469964534,
-0.1953307986,
0.2148168087,
-0.2350048274,
-0.0943370908,
0.3795796335,
0.1608309746,
0.1499017477,
-0.0218492951,
0.1916030049,
0.2930193245,
0.2311092764,
0.3050784767,
-0.2529481351,
0.2679816782,
0.2955798209,
-0.3433098495,
-0.0599356182,
0.2346323431,
0.0216727816,
-0.294165194,
-0.0241065677,
-0.0860863179,
0.3656134307,
0.1009637862,
0.0232076328,
-0.3252737522,
-0.0509922244,
-0.1901420951,
0.1565675288,
-0.085593611,
-0.1552976966,
0.1201145127,
-0.078491196,
-0.1449500769,
-0.3378222585,
0.052957695,
0.1145996004,
0.4082335234,
-0.3593492806,
0.2051279247,
-0.1127207279,
0.1153932661,
0.0001291056,
-0.3107717633,
0.1094292775,
-0.2215991616,
-0.2033459544,
0.2541100979,
-0.0517485514,
-0.1613632739,
-0.062143404,
0.3496827185,
0.1964780241,
-0.4854283333,
-0.3430973887,
-0.274536103,
-0.1107228771,
-0.1661278158,
0.4014425278,
0.1267112046,
0.223072812,
-0.0598718375,
-0.1314964741,
-0.2171734273,
-0.1485175639,
-0.138150394,
0.030466171,
0.1391076595,
-0.1723218858,
0.3341894448,
-0.577380836,
-0.0546476282,
0.2761108875,
-0.3274297714,
-0.2220074832,
0.4210555851,
-0.1017547026,
-0.3189685941,
0.0206263848,
0.1182104573,
-0.1174126789,
-0.2252641618,
0.1939540058,
0.0601113215,
0.1746491641,
-0.2702926993,
0.1287635267,
0.0201711245,
0.4685717225,
-0.2537427545,
-0.1709932685,
-0.2462952435,
0.6392537951,
0.0141656296,
-0.2546552122,
-0.0216949452,
0.1561201811,
-0.0678281039,
-0.0192151591,
-0.5329581499,
0.2137179077,
-0.4107220769,
0.4174288511,
-0.240350619,
0.1101472452,
0.1109748706,
-0.2708201408,
0.0401135348,
0.2173805684,
-0.0477834605,
0.1758057922,
0.0863872021,
0.0455207191,
0.0226643775,
0.5955451727,
-0.2443085313,
0.332994312,
-0.2710854411,
-0.136176005,
0.3635101914,
-0.0390580855,
0.1948391795,
-0.345458746,
-0.1980038732,
-0.2656889558,
0.1232633442,
-0.3189108074,
0.1959450692,
-0.012941407,
-0.3360692561,
0.0162461121,
-0.0077084615,
-0.0500186756,
-0.0527192093,
0.2995038331,
0.0096214684,
0.0443261415,
-0.140228942,
0.202851519,
-0.3820978105,
-0.2429336458,
-0.0864675269,
0.0005123423,
0.1392802149,
-0.2710652351,
-0.5346093774,
-0.0809865817,
-0.4078418314,
0.1613991559,
-0.1725643277,
0.4567168355,
0.0902644396,
-0.3383495212,
0.4657455087,
-0.0053454549,
0.5948349833,
0.3084184825,
0.0827637762,
0.1923331618,
-0.2019625157,
-0.6922329664,
0.0536258295,
0.2320831269,
-0.0532437228,
0.3043687046,
0.6459021568,
-0.0255878549,
-0.1351346076,
-0.0998532921,
0.3506251276,
-0.2139658332,
-0.4529128969,
-0.1806492358,
-0.3729959726,
-0.1395711452,
0.1319061518,
0.1839438379,
0.4820202291,
0.4124497473,
-0.0313322954,
-0.2082055211,
-0.1388519257,
0.0631118342,
0.0752193108,
0.3415223658,
-0.0943398848,
0.4265584648,
-0.3278440535,
0.1668902487,
-0.1639238149,
0.4506518841,
-0.1249104962,
-0.0551454909,
0.355273664,
-0.1789218932,
0.0373828858,
0.3945654929,
0.213049233,
0.1087982282,
-0.1293096244,
0.1753534526,
-0.2159728706,
-0.0754479766,
-0.1639149636,
-0.036584761,
0.0398231745,
-0.2066562921,
0.2804308236,
0.0647030398,
-0.039706409,
0.283698529,
-0.1028817967,
0.0937396884,
0.6956080198,
0.1971293986,
1.208738327,
-0.4919812381,
0.0336677581,
0.1298187524,
0.1862668991,
-0.1252057105,
-0.1392667741,
-0.3274511695,
-0.4056121111,
0.1182403639,
0.1332865953,
-0.2227782756,
-0.1108400151,
0.3779367208,
0.142138958,
-0.1457565725,
-0.2845982611,
0.3121123314,
-0.3484480977,
0.3731780052,
0.0001419546,
-0.4662599266,
-0.5828539729,
-0.0365542769,
0.017629806,
-0.1060935333,
-0.0159200374,
0.1835934818,
-0.0159113072,
-0.176121369,
-0.0690224394,
-0.1480958015,
0.1852276176,
0.1799694151,
0.1777574569,
-0.2263098359,
-0.1202376634,
0.4478646517,
0.3832813501,
-0.0640563741,
0.0072163311,
0.198143214,
0.0716863349,
0.1402183473,
0.1192443073,
-0.2417069823,
0.0906339213,
-0.1088959873,
0.0084318668,
-0.0712702572,
-0.1276836544,
-0.53480196,
-0.0959503427,
0.220549807,
0.343675524,
-0.215273872,
-0.2737522423,
-0.2669527531,
0.1950723231,
-0.0696174279,
0.0016729543,
0.345168829,
0.1746702492,
0.247020781,
-0.0803080946,
-0.2670125365,
0.0034181604,
0.3597747684,
0.052338928,
-0.2441840917,
0.2246300429,
0.0463060327,
-0.2307425886,
-0.2069213837,
0.3407579362,
0.2651687264,
-0.4949905574,
0.1304308474,
0.0353018902,
-0.0418802798,
0.0673031732,
0.132965222,
0.1585176587,
0.0157136619,
-0.1375877708,
-0.201265797,
-0.5275340676,
-0.0297441222,
0.2316034287,
0.0961117372,
0.1536242217,
-0.5203171372,
-0.2615033388,
0.012294081,
-0.1291834861,
0.0679065436,
-0.0211722758,
0.1300713271,
0.021992119,
-0.0549307242,
0.1272862703,
-0.170126155,
0.0446752645,
-0.1215180904,
0.0353413448,
-0.0732466057,
0.0595909134,
0.226246208,
-0.0183585621,
-0.2851122618,
-0.2297665179,
-0.471047163,
-0.2037389129,
-0.3548015952,
-0.0840502158,
0.1096763089,
-0.0829447582,
-0.3674425781,
0.3324754834,
0.1370847821,
0.0097593637,
0.4062237144,
-0.0602508187,
0.4979397655,
-0.0586131029,
0.0656366721,
0.17789419,
-0.1666073203,
-0.2706597149,
0.2173449993,
0.34300825,
-0.1129645333,
0.392123282,
-0.24535878,
0.055560343,
0.234579742,
0.0072807595,
0.1970248073,
-0.1595990956,
-0.2889462709,
0.2770786881,
0.049723506,
-0.0093568778,
-0.2795386612,
-0.0432366431,
-0.1091432422,
-0.2531610429,
0.3529639244,
0.4270122945,
-0.2079940736,
-0.0807910785,
0.0477479473,
0.5593773127,
0.0142379794,
-0.4618856907,
0.5625969768,
-0.0283035971,
-0.0195326433,
0.1542936563,
0.2069479972,
0.0614778996,
0.5321907997,
-0.2033328116,
0.059836328,
0.3535822928,
0.553202033,
-0.4282673001,
-0.3345472515,
0.3514854014,
0.2562892139,
-0.2642849386,
-0.1204355136,
0.1763004512,
0.1915050447,
-0.2000451982,
-0.0962896496,
-0.2420000732,
0.2856770158,
-0.2213685513,
0.0616027713,
-0.3761416674,
-0.0039553652,
-0.0297699235,
0.1692757756,
-0.2597091198,
0.0175361969,
-0.2455753088,
0.3440788984,
0.0641214401,
0.044413507,
0.0583957098,
0.0609890819,
0.0008986572,
-0.4227383733,
-0.0232525542,
-0.3469662964,
-0.0325266309,
0.2949286401,
-0.2910647392,
0.3708648682,
0.4920544624,
0.0080860807,
0.0534118339,
-0.0598783307,
-0.0462809503,
0.0190490726,
0.2101274282,
-0.1083668172,
0.3407146633,
0.1441575885,
-0.1136073992,
-0.0654865205,
-0.4170873463,
-0.1691435724,
0.4294936359,
0.0875378251,
0.3718032539,
0.0822218731,
-0.3147858381,
-0.2893886864,
0.084205769,
-0.0928578004,
-0.1836449802,
0.2388719022,
0.0186641961,
0.1382623166,
-0.0549393296,
-0.0443666056,
-0.3314492404,
0.5940252542,
0.3194931149,
-0.3627039194,
-0.180025056,
-0.311111182,
-0.6691555977,
0.0797611773,
0.0565283932,
-0.0767392218,
0.3885864913,
0.2282045484,
0.4421895444,
0.0508388504,
-0.1075006649,
0.0113963736,
-0.1168245971,
0.3702003956,
-0.0382710658,
0.0379904024,
0.0463447236,
0.2053327113,
-0.2436441332,
-0.4843662381,
0.410867542,
0.1688496619,
-0.1000108197,
-0.118442148,
0.003315452,
-0.2772935629,
0.4129747748,
0.3902547956,
0.0072056754,
0.1270105988,
0.3299397528,
0.0592309423,
0.2613451481,
-0.0972218737,
0.0697032288,
0.2434342355,
-0.0778231844,
-0.0453933366,
-0.0346200652,
0.3828947246,
-0.1904077232,
0.0101250708,
-0.2644208074,
-0.1641375571,
-0.1226107255,
-0.0124840979,
-0.2296938896,
0.2783005536,
0.2322646976,
0.0218799077,
0.1775473654,
0.24545376,
-0.2312732488,
-0.0554250404,
0.2142621279,
-0.0180720557,
-0.1550242305,
0.0602328703,
0.18807064,
0.1968453676,
0.1879763007,
-0.3372839987,
-0.1518454254,
0.2316038609,
-0.1202041507,
-0.1169498488,
0.4154003859,
-0.2452111989,
0.1990683377,
-0.1444699019,
0.2633865774,
-0.1030332223,
-0.0655326098,
-0.4062341452,
-0.2756511867
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`.
Update: I tried creating lists of `int8`s and got the same result. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 34 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`.
Update: I tried creating lists of `int8`s and got the same result. | [
-0.217398718,
-0.187672317,
-0.0520241372,
0.3366708755,
0.329988569,
0.0349010751,
0.4153966308,
0.2823086083,
0.6786059141,
-0.1099483073,
0.1326244473,
0.5752292871,
0.1942533553,
-0.0471497513,
0.1443948299,
0.1174119934,
0.3587274551,
0.2722391784,
0.3763957322,
-0.1764422953,
-0.3060880005,
0.0475456305,
-0.0370805115,
-0.0319932215,
-0.0833016634,
-0.0650950819,
0.0567431189,
0.0116349068,
-0.199914664,
-0.3068857193,
0.1065620035,
-0.0948055685,
0.2616826296,
0.2380926311,
-0.0001292553,
-0.1857509017,
0.1267105341,
0.098193936,
-0.2422352135,
0.3243519962,
0.4163014591,
-0.4820280373,
0.2607608736,
-0.348103106,
0.1100000963,
-0.4955370128,
-0.271995604,
-0.3215939999,
-0.0316414125,
-0.1341712624,
0.0246905107,
0.4677753747,
-0.2241473794,
0.1327085793,
-0.2011592537,
0.4392249286,
-0.2193623334,
-0.0071725477,
0.4425100684,
0.0582928471,
-0.0485811606,
-0.0865368769,
-0.1406691521,
-0.0158308931,
0.4063597918,
0.0615018979,
0.2055449784,
0.1228798777,
0.0694573745,
0.1728193909,
0.6207130551,
0.0334615223,
-0.07076253,
-0.2485566288,
-0.1489282399,
-0.2460747063,
0.4324033856,
0.0362541638,
-0.2357408404,
0.1717064828,
-0.1762753725,
-0.0015281811,
-0.0733377263,
0.2504835427,
-0.1308268607,
-0.1616679877,
-0.0110072698,
0.1591524184,
0.3527541459,
-0.1964050829,
0.0774169266,
-0.0155620072,
0.0091213835,
0.3035265207,
-0.3383491039,
-0.2830922604,
0.0515062027,
-0.007968883,
-0.0780863687,
0.063472487,
0.1622395068,
0.2495287955,
-0.2331535965,
-0.047210481,
0.2891207635,
0.3608786762,
-0.0328744352,
0.0068864324,
0.0910084993,
-0.3389004469,
0.0694473907,
0.0200344082,
-0.1676359326,
0.0830196589,
0.3784148395,
-0.496773392,
-0.2162385881,
-0.1500126123,
-0.0208429508,
0.2400244921,
0.3636522591,
0.0160098188,
0.1731542647,
0.1814382821,
0.0771474764,
0.6115543842,
-0.0976979733,
0.0728252232,
-0.1629835814,
-0.1739878505,
-0.0197711401,
-0.3106484115,
-0.1181264818,
0.0850089341,
0.1496673375,
0.3727174103,
-0.0459693335,
0.1671039611,
-0.2715294659,
0.0157938469,
-0.096966736,
-0.1131130084,
0.3125566244,
0.2298927009,
-0.098783128,
0.2557434142,
0.1460679322,
-0.2891292274,
-0.4497123957,
0.3425269723,
-0.1358739138,
-0.2943196297,
-0.4542923868,
-0.0250244029,
-0.2671664357,
-0.0196941029,
-0.4391439259,
-0.1076669693,
0.1381551921,
0.0255166125,
-0.0122430623,
-0.2078367621,
-0.0829694867,
-0.1118210107,
-0.0885614827,
0.0849553868,
-0.4510557055,
0.1749622077,
-0.2742942274,
0.2847526073,
0.2883861661,
0.6702417731,
-0.2067275643,
0.2299294621,
-0.1860372573,
0.3189183474,
0.4110120833,
-0.0977741703,
-0.3115602434,
0.7315462232,
-0.0117103932,
-0.1459042728,
0.133810401,
0.5266264081,
0.2496890277,
-0.0425945744,
0.1365238726,
0.6743004918,
0.1748801172,
0.2215828151,
-0.2907085121,
-0.086658217,
0.0481709391,
0.4137926698,
-0.4890213609,
0.1240889877,
0.1250768006,
-0.0544761941,
0.1471734941,
0.0456152968,
-0.0502899475,
0.2346314341,
0.2530582547,
-0.099009648,
0.0564775392,
0.3052900434,
-0.3008289933,
0.1053383425,
0.394975692,
-0.180567801,
0.0343263149,
-0.2042905241,
-0.2784738839,
0.3042508662,
-0.0289722029,
0.5546166897,
-0.1815522462,
0.0827286839,
0.0816988796,
-0.1209332272,
-0.1571292877,
-0.1332880557,
-0.242602706,
-0.110212855,
-0.1819321215,
0.0081922803,
0.233927533,
-0.0504294187,
-0.3065252304,
-0.019636346,
0.0269080102,
-0.038455572,
-0.1630456746,
0.2365635782,
0.2002565414,
0.0035284474,
-0.0308958106,
0.1877440065,
0.1519827992,
0.0807132348,
0.3181468844,
0.0528735034,
0.1747149378,
-0.2780156732,
-0.1761332899,
0.503750205,
-0.189139396,
0.2216318846,
-0.2732483149,
-0.0784676224,
0.4578701854,
0.1897336245,
0.0803914964,
-0.0869937465,
0.1122870818,
0.3219029605,
0.1343207359,
0.2910538912,
-0.2332696319,
0.3427420557,
0.4129638374,
-0.3111322522,
-0.0754256621,
0.2076278627,
0.0162485652,
-0.3657491505,
-0.0054653632,
-0.0687503442,
0.3628412187,
0.055884026,
0.0507824495,
-0.3696977198,
-0.0517439097,
-0.1846943498,
0.1200350001,
-0.093676582,
-0.0346513242,
0.0992258042,
-0.0428062789,
-0.2816373706,
-0.365686655,
0.0651436746,
0.1108408868,
0.3888586462,
-0.3100924492,
0.2180456519,
-0.1968776435,
0.0692615658,
0.0168181211,
-0.2861738205,
0.1109502241,
-0.1754748821,
-0.2048082054,
0.316203475,
-0.0743381232,
-0.1524073929,
0.0649674237,
0.4230016768,
0.2276909202,
-0.4015133977,
-0.3833144009,
-0.2376030087,
-0.1568231583,
-0.175242424,
0.3804136515,
0.1047100648,
0.1703632623,
-0.145179823,
-0.1550822705,
-0.2253527641,
-0.1828179508,
-0.1096082702,
0.0458927453,
0.259288311,
-0.12746647,
0.3801016808,
-0.5672896504,
0.056255538,
0.2641806602,
-0.2876510322,
-0.2858359218,
0.3660443127,
-0.1474810243,
-0.3140186071,
-0.0337165333,
0.0393685549,
-0.0902424306,
-0.2155963778,
0.3713661134,
0.0776869506,
0.1806074083,
-0.2034235746,
0.1504125297,
0.0074724979,
0.4369551539,
-0.2281598002,
-0.2046724409,
-0.2325005233,
0.6616535187,
-0.0610555522,
-0.2485219836,
-0.0557905994,
0.1784060597,
-0.1016362384,
-0.0587271042,
-0.5192958713,
0.1694786996,
-0.4142027795,
0.3584969044,
-0.1935164332,
0.0395527072,
0.1161187366,
-0.2936940491,
0.0407142155,
0.1232163459,
-0.1552177072,
0.2262768149,
0.1684096009,
0.108528547,
0.097109735,
0.6675195694,
-0.2841596901,
0.23352772,
-0.1284044534,
-0.2436569184,
0.3138743341,
0.00455881,
0.250069648,
-0.4183476567,
-0.0997266769,
-0.2140564024,
0.1322829425,
-0.2786401808,
0.2092728168,
-0.0230741147,
-0.3529034555,
0.0565187223,
0.0554477498,
-0.0645912066,
-0.0538274236,
0.2805729508,
0.0726000369,
-0.0482391268,
-0.0943965614,
0.3200041056,
-0.3532728553,
-0.2117581069,
-0.1610506773,
0.0650610775,
0.17115587,
-0.1487730891,
-0.6796739101,
-0.1674275547,
-0.3332334459,
0.1392712891,
-0.256919086,
0.5929820538,
0.0225006547,
-0.2331375778,
0.3818161488,
-0.0267190915,
0.5649265647,
0.2307366729,
0.1245875955,
0.1613280326,
-0.1329400092,
-0.683419466,
0.078883931,
0.2797007859,
-0.0070197615,
0.329125315,
0.7125703692,
-0.1811697185,
-0.099996075,
-0.1415994763,
0.3365514874,
-0.1852430403,
-0.3992160857,
-0.1493575275,
-0.4388357997,
-0.0707888901,
0.0791192725,
0.2100015879,
0.4462957978,
0.3405470252,
-0.0486599021,
-0.2184111178,
-0.1173240244,
0.0599521697,
0.0986247286,
0.3926587999,
-0.0840951353,
0.3604738116,
-0.2897670865,
0.2088490725,
-0.0379225761,
0.3952321112,
-0.0141889872,
-0.0131749492,
0.3565964699,
-0.1868539006,
-0.0403173715,
0.3948350549,
0.2167873085,
-0.0137317134,
0.0050159576,
0.1383888274,
-0.2069512159,
-0.0761827379,
-0.133093223,
-0.0619479008,
-0.000399749,
-0.241340071,
0.3421109021,
0.0458909869,
0.0366981328,
0.2169332355,
-0.1064545438,
0.0730894357,
0.7005401254,
0.2282204926,
1.0924133062,
-0.4371305704,
0.0410694554,
0.1504455507,
0.1532893181,
0.0451468937,
-0.2118842453,
-0.264959991,
-0.4133765399,
0.2359396219,
0.1291560978,
-0.2488389015,
-0.1227726638,
0.3823551238,
0.1817042977,
-0.1715880185,
-0.1866679341,
0.3809772432,
-0.3225500584,
0.4586809576,
-0.0498512313,
-0.5222052336,
-0.5489807129,
-0.0528287627,
-0.0492432527,
-0.0831590816,
0.080381915,
0.0411781445,
-0.0531211756,
-0.156796068,
-0.0624620505,
-0.205607444,
0.3019215167,
0.197500214,
0.2539481223,
-0.26063025,
-0.1255117059,
0.4229891002,
0.4324877858,
0.0126521615,
-0.1240097657,
0.1753547639,
0.0493511409,
0.1119157746,
0.1297536194,
-0.2778564692,
0.0515653156,
-0.0893168971,
0.0382787026,
-0.1961212307,
-0.1636033058,
-0.4552236199,
-0.1367636472,
0.1120990068,
0.1615008563,
-0.2072798759,
-0.2247726768,
-0.3366512954,
0.1160385162,
-0.0405571721,
-0.0055044456,
0.3154765368,
0.1900611222,
0.2958975136,
0.0065442221,
-0.2580960989,
-0.0127004152,
0.3266021907,
0.1172463074,
-0.2492699623,
0.2166796029,
0.0922864676,
-0.2408181876,
-0.2305276096,
0.3632841408,
0.3062565029,
-0.3923354447,
0.1796463281,
0.0062000323,
-0.0776297748,
0.0210317168,
0.0644810125,
0.1066221967,
0.0795010328,
-0.1134222522,
-0.2339742333,
-0.5309721231,
0.0488857068,
0.1587394774,
0.1442115009,
0.1871335357,
-0.4553250372,
-0.2841465771,
-0.0301212315,
-0.1083773151,
0.0317691863,
-0.0022477675,
0.1025846824,
-0.0446093269,
-0.048617579,
0.1031707898,
-0.1538615078,
0.0147897853,
-0.1188469008,
-0.0506374277,
-0.0317352004,
0.0575859845,
0.2309266329,
0.0243808422,
-0.3043703437,
-0.2005876303,
-0.5046970844,
-0.2750758231,
-0.3541997373,
-0.1433112472,
0.0248263329,
-0.0564157441,
-0.3651973605,
0.3095918,
0.1771619171,
0.0478555039,
0.3821157217,
-0.0351379104,
0.5291316509,
-0.0838509575,
0.0906455815,
0.1419859827,
-0.1484673768,
-0.3130098879,
0.205696851,
0.2749143541,
-0.0741821676,
0.3640141487,
-0.2556059957,
0.0451697372,
0.1968621016,
0.0170877464,
0.2804644108,
-0.170763731,
-0.2876013815,
0.2010519803,
0.0151963802,
0.0878368095,
-0.2189323008,
-0.0090428945,
-0.0722837076,
-0.2755797207,
0.3545841575,
0.4353603125,
-0.2265684605,
-0.1017176658,
0.0076613994,
0.6051027179,
0.0567761697,
-0.3878493607,
0.5591936707,
-0.1221306399,
-0.0224983003,
0.1900876164,
0.1020674184,
0.0879578441,
0.5890632272,
-0.1564525366,
0.0454867817,
0.3945410848,
0.5005425811,
-0.4387729764,
-0.2563963532,
0.2966638207,
0.3051193953,
-0.157908842,
-0.0303894412,
0.274823904,
0.2423792183,
-0.262098223,
-0.0929102972,
-0.3873696327,
0.2268603742,
-0.2815279663,
-0.0116104288,
-0.4437783957,
-0.0770191327,
0.0786991641,
0.2058530152,
-0.3155549467,
0.0444350354,
-0.2954047918,
0.3063107133,
-0.0046827793,
-0.0141254421,
0.1462666541,
-0.055976104,
-0.0438107438,
-0.3790053725,
0.0477777198,
-0.243399173,
-0.0542874448,
0.21683456,
-0.3252418339,
0.3133119643,
0.4564041793,
0.0446824171,
0.0164982341,
-0.0667358413,
-0.0828173831,
-0.0087056253,
0.2081095874,
-0.0590164326,
0.1394258142,
0.1305966675,
-0.1088899896,
0.0057667694,
-0.4132786393,
-0.1747806519,
0.3841589391,
0.1387756169,
0.3312195539,
0.0410334468,
-0.2562457025,
-0.221721366,
0.031792827,
-0.0179438088,
-0.1998840272,
0.2481620312,
0.1070707813,
0.1406804919,
-0.1053968146,
-0.0489188805,
-0.4211720526,
0.632142663,
0.1931619495,
-0.4575018287,
-0.121015273,
-0.2958076894,
-0.495721966,
0.0898915455,
0.0185367968,
-0.0842302144,
0.3733419478,
0.2994861007,
0.4935494065,
0.0418797582,
-0.1397039592,
0.0613693371,
-0.0776113942,
0.4077981412,
-0.0841034651,
0.008401555,
0.0422826894,
0.2542158067,
-0.2144945115,
-0.4766701162,
0.4295179844,
0.2177689821,
-0.1116073281,
-0.1958274394,
0.1195870042,
-0.2376292348,
0.4204734266,
0.358720392,
0.1112726629,
0.0840306357,
0.3227866888,
-0.0830640793,
0.2185934335,
-0.1235923618,
0.0773008689,
0.3300930858,
-0.1025025398,
0.0824519619,
-0.0837059543,
0.4998009801,
-0.236896351,
-0.0310851634,
-0.3372483253,
-0.0928843617,
-0.1342757195,
0.0473143458,
-0.3381272852,
0.1738969088,
0.2373444438,
-0.0133345118,
0.2018321306,
0.2496102601,
-0.2224580646,
-0.0728701353,
0.2571416497,
0.0301769469,
-0.203002423,
0.1415960044,
0.0672399178,
0.1613491923,
0.1663154811,
-0.3300634921,
-0.0823367536,
0.1679617167,
-0.1623261422,
-0.1481471509,
0.3159274459,
-0.2683693767,
0.0756737441,
-0.1605044901,
0.2990535796,
-0.0243849829,
-0.1328063756,
-0.4334260523,
-0.2827863097
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Yes this is a known issue: #625
We're working on making the precision kept for numpy :)
To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)` | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 35 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Yes this is a known issue: #625
We're working on making the precision kept for numpy :)
To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)` | [
-0.2853319049,
-0.2187871188,
-0.0280981362,
0.2345815897,
0.3253433108,
0.0638444796,
0.4536395073,
0.2049432695,
0.6538358927,
-0.0338120349,
0.1011138484,
0.4731714427,
0.1274630427,
-0.1699026078,
0.0634806976,
0.1007766277,
0.3845755458,
0.1702151299,
0.4007257521,
-0.2281004637,
-0.3928018808,
-0.022292329,
-0.0956599638,
-0.0267838966,
-0.2128366679,
-0.1019788161,
-0.0361412428,
0.0544552431,
-0.1071031392,
-0.2511244416,
0.0215191692,
-0.1343869865,
0.3368287683,
0.233803764,
-0.0001270739,
-0.199875012,
0.0475259386,
0.1346089542,
-0.2297705114,
0.3513154984,
0.4877160192,
-0.6189042926,
0.2165914029,
-0.3899851143,
0.1582983285,
-0.1895430237,
-0.3014675975,
-0.266579926,
-0.0368047431,
-0.1214369163,
0.0450731069,
0.5076546669,
-0.2321639061,
0.1393103898,
-0.2855150402,
0.303594619,
-0.2053806633,
0.0653142259,
0.498205632,
0.0549262874,
-0.0345795043,
-0.0517827235,
-0.1683321297,
-0.0302101653,
0.3090566099,
0.1079445407,
0.4078359008,
0.1171320379,
-0.0080194371,
0.1199573874,
0.496588707,
0.0335558355,
-0.0846851096,
-0.3417031169,
-0.1112952977,
-0.4144540429,
0.3293811083,
0.0911915451,
-0.3490359783,
0.1724071354,
-0.047047656,
-0.0798031911,
0.0139334248,
0.2245963365,
-0.1558126062,
-0.0913807154,
0.0197383501,
0.1317344904,
0.2276470065,
-0.1148110256,
0.084565036,
0.0103160739,
0.2136579454,
0.4248527288,
-0.4246658087,
-0.2353162616,
0.0208283309,
0.0142459515,
-0.1653257012,
0.0102037713,
0.1822427064,
0.251575619,
-0.186285466,
0.0219251215,
0.3129634857,
0.4280665219,
-0.1733575463,
0.1863621771,
0.0927739441,
-0.243365705,
0.1412953883,
0.0152632985,
-0.1005443111,
0.0422583036,
0.5480370522,
-0.4681056738,
-0.1633126438,
-0.1320166588,
-0.142205596,
0.2277148366,
0.4887230396,
-0.0417847484,
0.1561334282,
0.1455447227,
0.0806361511,
0.5697745085,
-0.0562965237,
0.1194836125,
-0.1807679385,
-0.1578469872,
-0.0843191519,
-0.3356252909,
-0.056264706,
0.1903012991,
0.040299505,
0.3683845699,
-0.0683650747,
0.1541199684,
-0.198116228,
0.0685255677,
-0.1171712652,
-0.1645006984,
0.2333037555,
0.1856642514,
-0.1380417943,
0.2557901144,
0.1359824836,
-0.1931857169,
-0.407671988,
0.4262596071,
-0.1646175832,
-0.3402721286,
-0.4790640771,
0.0090156132,
-0.1866093725,
0.0037994508,
-0.3539020121,
-0.1691915542,
0.2202162594,
0.0695997626,
-0.0052029728,
-0.244094491,
-0.1140651926,
-0.1563967615,
-0.049396351,
0.0769274309,
-0.3092056513,
0.1904052049,
-0.1717405617,
0.3061517179,
0.3065821826,
0.7243394256,
-0.1892380118,
0.2168451548,
-0.2830535769,
0.2371826768,
0.4602166414,
-0.0460088402,
-0.357486397,
0.6271567941,
-0.1066116691,
-0.0784973428,
0.0641871169,
0.5633756518,
0.2529531121,
-0.1901663393,
0.1485004574,
0.6897593141,
0.1092212945,
0.1991607845,
-0.4090480506,
-0.0733783916,
0.0952194408,
0.4398110211,
-0.4073927701,
0.1320137531,
0.0775020048,
-0.0325038321,
0.2144828439,
0.1083311066,
-0.0670485124,
0.288433522,
0.224722445,
-0.0826958492,
-0.0157322306,
0.2709610462,
-0.1798170358,
0.1594809443,
0.4164327383,
-0.1629316807,
-0.0383524373,
-0.1796810776,
-0.3229570985,
0.3180892169,
-0.0788328052,
0.5116454959,
-0.1500653923,
0.0236002486,
0.1203978509,
-0.1022778302,
-0.0734585077,
-0.0174241699,
-0.2825340927,
-0.0966028422,
-0.1130623743,
0.0154974582,
0.1525220424,
-0.0754138678,
-0.3999119401,
0.011529644,
0.0648081452,
0.0145666311,
-0.2211720198,
0.3539467156,
0.1323068291,
-0.0865561143,
-0.1187740564,
0.2663404942,
0.1861676872,
0.0791084617,
0.3964463174,
0.0986074209,
0.2052935362,
-0.250577718,
-0.1120992303,
0.4844500422,
-0.1962550133,
0.1562967002,
-0.2818818688,
-0.074549593,
0.4282443821,
0.1892057955,
0.1495195776,
-0.0909322277,
0.1781176031,
0.3216136992,
0.2176572531,
0.2503773868,
-0.224313885,
0.2397247255,
0.2951149642,
-0.3496772945,
0.0404901356,
0.2224860787,
0.0427815132,
-0.2908238173,
-0.0233576894,
-0.1991865337,
0.3578401804,
0.0737686157,
0.0659104511,
-0.294161737,
-0.097508572,
-0.1970730871,
0.098218821,
-0.0139929093,
-0.0982630253,
0.0808208957,
-0.0495457947,
-0.1687759459,
-0.2680056095,
0.1539382935,
0.0446598977,
0.3528858423,
-0.3059106469,
0.0973192155,
-0.0127625354,
0.2521745861,
-0.0604741722,
-0.3014183044,
0.0552329235,
-0.2555604875,
-0.2118461728,
0.2482574433,
-0.0474251434,
-0.1437077671,
-0.0814491585,
0.3157687485,
0.2143787891,
-0.3621746302,
-0.3067263067,
-0.2365986556,
-0.1183378175,
-0.1699170321,
0.3378149271,
0.0872208178,
0.1963418871,
-0.0735867396,
-0.1557127684,
-0.1935285181,
-0.0977742299,
-0.1680151373,
0.0816522762,
0.1938205957,
-0.183640942,
0.3560248613,
-0.5311703682,
0.0350946635,
0.2957319319,
-0.282381326,
-0.1642795354,
0.3820289969,
-0.0902663097,
-0.304151535,
0.0562242493,
0.1490203291,
-0.2280775309,
-0.2262064219,
0.145547688,
0.0563631319,
0.1158921942,
-0.280510813,
0.0901526362,
-0.0288884137,
0.46661219,
-0.1933830976,
-0.2513419986,
-0.1854756922,
0.6473254561,
0.0334661491,
-0.2793291509,
-0.1435448527,
0.0893826485,
-0.1167954877,
-0.0809700415,
-0.4640569985,
0.1544276923,
-0.3944262564,
0.5134144425,
-0.2122780979,
0.1099838465,
0.1466536075,
-0.3103832901,
0.0481796339,
0.2114723027,
-0.0594051704,
0.1511206031,
0.1554529816,
0.1205787361,
0.078257449,
0.6237224936,
-0.2136437744,
0.2885497212,
-0.1777595878,
-0.1728210449,
0.3498385847,
0.069588244,
0.2416096479,
-0.3530934453,
-0.1464722902,
-0.2309073508,
0.0744837373,
-0.3759375215,
0.1659772843,
-0.0140434178,
-0.2986563444,
0.0301008783,
-0.007598842,
-0.1319838613,
-0.0708853006,
0.2679992914,
0.0446149893,
0.069006145,
-0.0856296346,
0.2743792832,
-0.3619643152,
-0.2205961347,
-0.0780426562,
-0.0102084987,
0.1685323119,
-0.2418089807,
-0.5344122648,
-0.1225279868,
-0.4297571182,
0.1782601029,
-0.176981315,
0.5807366371,
0.0980256349,
-0.336699456,
0.3795423806,
0.0624003038,
0.6375269294,
0.2469394654,
0.0608419888,
0.1415726095,
-0.1365585327,
-0.721239686,
0.0286245458,
0.2283569872,
-0.1198742762,
0.3681824505,
0.6995570064,
-0.1067273915,
-0.0936527029,
-0.1264532954,
0.3635672331,
-0.2390450835,
-0.4294117391,
-0.1454217583,
-0.339548856,
-0.0486601442,
0.141287744,
0.2077573389,
0.510229528,
0.3965984881,
0.0031084334,
-0.2096405923,
-0.0473888777,
-0.0402111225,
0.0379883163,
0.338412106,
-0.0584831312,
0.3670161963,
-0.2865016758,
0.2127582282,
-0.1602149159,
0.4126999378,
-0.202204138,
-0.0719750598,
0.3335327208,
-0.2052234858,
-0.0112008294,
0.3617833257,
0.237592563,
-0.0724406093,
-0.1386767775,
0.2013554871,
-0.1970275193,
-0.1319127083,
-0.1617800593,
0.0107373679,
-0.0266836863,
-0.1130772755,
0.3312250078,
0.059907075,
0.0554095842,
0.1973133832,
-0.2578005493,
0.1007328629,
0.6957803369,
0.2066815645,
1.0700021982,
-0.4297006428,
0.0261726528,
0.1830732226,
0.1332297772,
-0.0664952025,
-0.162207976,
-0.2958099246,
-0.3466522694,
0.1041410565,
0.1430851817,
-0.202039659,
-0.1270279735,
0.3857885897,
0.1655085534,
-0.0757699832,
-0.3193401396,
0.2646408081,
-0.3175809085,
0.3741774857,
0.0279619414,
-0.4371842742,
-0.5361630917,
-0.0206226557,
-0.0023407519,
-0.0453863814,
0.0146703869,
0.1655904055,
-0.0171105564,
-0.242184937,
-0.037890967,
-0.2156960964,
0.1315551102,
0.2387965471,
0.2291116267,
-0.3089775741,
-0.186657384,
0.4068341553,
0.4967939258,
-0.149644509,
-0.0450800471,
0.1493594199,
0.1311116368,
0.1146302447,
0.1725499779,
-0.2026841789,
0.1210024357,
-0.0790862516,
0.1139868423,
-0.1197757423,
-0.2074472308,
-0.4152694345,
-0.1680643857,
0.0990769044,
0.2944333255,
-0.2348844856,
-0.2459638119,
-0.4113581181,
0.2255997062,
-0.087993145,
0.017128177,
0.3532119393,
0.1283501983,
0.240834251,
-0.1167028099,
-0.2057854831,
-0.0369384885,
0.3736335039,
0.0963334516,
-0.382668674,
0.2273897231,
0.0478900261,
-0.2305280864,
-0.1743088216,
0.363232255,
0.2470693737,
-0.4045791328,
0.1640167236,
0.0160554163,
-0.0228650272,
-0.0384317748,
0.1288541555,
0.2164090127,
0.0222294331,
-0.1649476141,
-0.2441232204,
-0.5539368987,
-0.0741589367,
0.2339702994,
0.0861405134,
0.1739709675,
-0.5396535397,
-0.2221937329,
0.0597385615,
-0.1364131272,
-0.0341859236,
-0.0190559141,
0.1044132933,
0.1257193536,
-0.0074808486,
0.141795367,
-0.0443204418,
0.0587475412,
-0.1436630338,
-0.0112720178,
-0.0658590645,
0.1035137624,
0.1987863034,
-0.0456752665,
-0.3167659044,
-0.1872195005,
-0.4499415457,
-0.166223526,
-0.351100117,
-0.1727162451,
0.0560746305,
-0.0659362823,
-0.2894792855,
0.3735764325,
0.1247935444,
0.0399025977,
0.3756255507,
-0.0926096812,
0.4059258401,
-0.0596293919,
0.1381234825,
0.2167514116,
-0.1698894501,
-0.3051190674,
0.1427731216,
0.2466363013,
-0.1016239151,
0.3579625189,
-0.2795628309,
0.0342391618,
0.2548417747,
0.0009392732,
0.1559844613,
-0.2034271657,
-0.3396356106,
0.2007694244,
0.0653720945,
-0.0298561193,
-0.2698592246,
-0.0048852558,
-0.0707808658,
-0.2545433044,
0.3708544374,
0.4399250448,
-0.2043177634,
-0.1247817129,
0.0630112514,
0.5689048171,
-0.0542681813,
-0.4450153708,
0.7241828442,
-0.009848265,
-0.0151663171,
0.1700901091,
0.0891747326,
0.0543678552,
0.5115528107,
-0.2473189831,
0.1056135371,
0.3380523622,
0.4634330571,
-0.4425360262,
-0.2838795483,
0.3434022367,
0.2554889023,
-0.2900566161,
-0.1349401772,
0.1769851446,
0.2424833775,
-0.2656915188,
-0.0772932544,
-0.2843948305,
0.2597666383,
-0.3065814674,
0.0730445161,
-0.3176293969,
-0.0146050826,
0.0316002071,
0.0886099041,
-0.2566402256,
-0.0176415741,
-0.215032801,
0.2963844836,
0.0061710025,
0.1056655273,
0.0663886964,
0.0169940311,
-0.0523180366,
-0.4044031501,
-0.0340556316,
-0.2851505578,
-0.0472715311,
0.2069106847,
-0.3241385818,
0.4127492607,
0.5296904445,
-0.0159819257,
0.1172255203,
0.0412648544,
-0.0809835568,
-0.0211195759,
0.1505695134,
-0.1537801921,
0.2145947218,
0.1504524648,
-0.094338268,
-0.0771883652,
-0.3264720142,
-0.1721997708,
0.4279322326,
0.0687269494,
0.4512877762,
0.0068753758,
-0.3435263038,
-0.270803839,
-0.0174024068,
0.0194845423,
-0.2078589797,
0.2200279981,
0.036758408,
0.1026139557,
-0.0131484689,
-0.0386599191,
-0.3887903392,
0.5161963105,
0.3052853048,
-0.4052076936,
-0.2370071858,
-0.275631249,
-0.6192655563,
0.1023003086,
0.0852304026,
-0.1562981009,
0.42013219,
0.2299825251,
0.4341724217,
0.1145570055,
-0.1235430092,
0.1211628988,
-0.1024005264,
0.4559912682,
-0.0728734657,
0.0316685103,
-0.0157785192,
0.178815946,
-0.1881528497,
-0.4931193888,
0.4214515686,
0.2105395347,
-0.0832053125,
-0.1440433711,
0.1135310829,
-0.3183134794,
0.4916068912,
0.4417490363,
0.0854354799,
0.0012171477,
0.3090946376,
0.0343612656,
0.2861708403,
-0.0496503823,
0.0325207226,
0.2648926973,
-0.144452855,
-0.006360074,
-0.0998489559,
0.353844583,
-0.244594276,
0.003052294,
-0.2362174243,
-0.1951002479,
-0.0765067562,
0.031768851,
-0.2294916362,
0.2126775533,
0.3267271519,
-0.0665910468,
0.2403956205,
0.282975316,
-0.2431828082,
-0.1056496575,
0.2305816561,
0.0404736586,
-0.1472240686,
0.0045780526,
0.1573977768,
0.0249261931,
0.1547424197,
-0.3673829138,
-0.1348812729,
0.2557360828,
-0.1095804796,
-0.1240495294,
0.3603810072,
-0.227481544,
0.1332025975,
-0.1306193918,
0.2775723636,
-0.1001715288,
-0.0750301853,
-0.4015406966,
-0.2252212018
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Do you know what step is taking forever in the code ?
What happens if you interrupt the execution of the dataset loading ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 24 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Do you know what step is taking forever in the code ?
What happens if you interrupt the execution of the dataset loading ? | [
-0.357709378,
-0.191145733,
-0.054289069,
0.2522045374,
0.3178027868,
0.0741005391,
0.4124633372,
0.2019447237,
0.6933250427,
0.0321033821,
0.1932914257,
0.4987611175,
0.1199499443,
-0.0854376033,
0.0782647654,
0.1477905661,
0.3398174644,
0.2383553833,
0.4402107,
-0.1339953989,
-0.3000718653,
-0.0153764542,
-0.1427364945,
0.0422022045,
-0.1994235218,
-0.1508753598,
-0.0522634014,
0.0502907299,
-0.1458297372,
-0.2906322777,
0.019001646,
-0.0184634589,
0.273963511,
0.2816299796,
-0.0001262479,
-0.2672605217,
0.0696519092,
0.1940070093,
-0.23568964,
0.3061155379,
0.3798665702,
-0.4438564777,
0.2077924311,
-0.3478526473,
0.1490974128,
-0.2778462768,
-0.257379055,
-0.3251242638,
-0.0373224281,
-0.1680575907,
0.0454372093,
0.4464397132,
-0.3012800813,
0.0890896171,
-0.1744762361,
0.3106312454,
-0.1221052706,
0.033928521,
0.5823900104,
-0.0583967343,
-0.0453898311,
-0.0751692504,
-0.1739267558,
-0.1305467933,
0.4071655869,
0.0562383346,
0.2787828743,
0.0998646691,
0.0840038434,
0.1261287332,
0.6219447255,
-0.0203815941,
0.0500372462,
-0.2161279023,
-0.0790369511,
-0.3577187955,
0.4000557661,
0.0030647959,
-0.3239593208,
0.1873582453,
-0.0897826254,
-0.0954795927,
-0.0011594597,
0.2260667235,
-0.1863960475,
-0.1411524862,
0.025638096,
0.1344275773,
0.2987032533,
-0.1170695499,
0.0555920154,
-0.0563118793,
0.1497806311,
0.4445007741,
-0.4172326922,
-0.1911896169,
0.0042198999,
0.1244219616,
-0.1765965372,
0.1036826596,
0.1432673633,
0.2146815807,
-0.1279765815,
-0.0154733341,
0.256334722,
0.3761743009,
-0.1128491312,
0.0965204388,
0.1039663255,
-0.3212372065,
-0.0395910554,
-0.0354097895,
-0.2497456968,
-0.0189913008,
0.4814790785,
-0.4471081495,
-0.2001496851,
-0.1323122382,
-0.0559438914,
0.2049456537,
0.412504077,
-0.0235757884,
0.2181764394,
0.2371750027,
0.0863840207,
0.4874053001,
-0.0957279056,
-0.0333782658,
-0.2088415474,
-0.1472737342,
-0.068141818,
-0.2910847068,
-0.1855145842,
0.1931465417,
0.0448807441,
0.2586333156,
-0.1528833508,
0.2015704662,
-0.2130123228,
0.0637813807,
-0.1322868913,
-0.1558230966,
0.254134208,
0.1592628211,
-0.1326764375,
0.2026861161,
0.1348429769,
-0.3092471063,
-0.4058166146,
0.4017785788,
-0.1136580855,
-0.354509145,
-0.4384788871,
0.0137398103,
-0.2659832239,
-0.032759212,
-0.3687290251,
-0.098576881,
0.0929255411,
0.0433792174,
-0.0409645252,
-0.1871866435,
-0.0954581946,
-0.0469433926,
0.0055032214,
0.193948254,
-0.4462920427,
0.2134213895,
-0.227957204,
0.2241954058,
0.2977640629,
0.6412927508,
-0.2757301331,
0.3365723491,
-0.2637675405,
0.2700731754,
0.4910584092,
-0.0406596586,
-0.3431298435,
0.7155482769,
-0.1504547298,
-0.1908351034,
0.021461064,
0.5547385812,
0.2817492485,
-0.0781407133,
0.0928899497,
0.6829153895,
0.098428607,
0.1808472872,
-0.3708578348,
-0.050910797,
0.07244353,
0.4867714345,
-0.4286134839,
0.1816756874,
0.1529925466,
-0.0166824609,
0.1958255023,
0.0571993701,
-0.0741307735,
0.2589170039,
0.231019944,
0.0226331484,
0.0371011049,
0.21786654,
-0.2101083994,
0.1258467287,
0.5279913545,
-0.2242011279,
-0.0082044629,
-0.1891957521,
-0.3130003512,
0.3344789445,
-0.1324249357,
0.6150861979,
-0.1887341887,
0.0111447154,
0.0530639887,
-0.1579789817,
-0.2006955892,
-0.0270679891,
-0.2793726623,
-0.0978188813,
-0.1210642233,
0.0068971566,
0.1456569582,
-0.0332154222,
-0.4086243212,
-0.0288239121,
-0.0118708927,
0.006937867,
-0.1949532181,
0.3073679209,
0.1759618521,
0.0497083105,
0.0049635973,
0.1439477205,
0.0891771019,
0.013556445,
0.3173202276,
-0.0389473252,
0.2369766086,
-0.279132098,
-0.0835861117,
0.4249714017,
-0.2261413038,
0.2390495539,
-0.2577944696,
-0.1333369762,
0.3874959946,
0.0980765,
0.1315012425,
0.0421083383,
0.2405783534,
0.3197243214,
0.2842449248,
0.297832787,
-0.2933254838,
0.2334147245,
0.2815614343,
-0.3991183937,
-0.1306755096,
0.1706738919,
0.0838244781,
-0.2651279867,
-0.0376289822,
-0.108173579,
0.2923422456,
0.129614532,
0.044421453,
-0.3026949763,
-0.0511695184,
-0.1725468189,
0.1334511191,
-0.0285686515,
-0.0655028373,
0.0821655244,
-0.0790793225,
-0.1506348997,
-0.3358422816,
0.0008958646,
0.1101568565,
0.4040706456,
-0.3022894561,
0.2084806412,
-0.1015756279,
0.0667803511,
-0.0115138022,
-0.2169553787,
0.1370066404,
-0.1746399403,
-0.2419863194,
0.214967832,
-0.0095612723,
-0.1359005719,
-0.039820265,
0.4075906873,
0.1740259826,
-0.4136063755,
-0.3883338869,
-0.2927638292,
-0.1515944898,
-0.1457689255,
0.4902333617,
0.1144227907,
0.2129696906,
-0.0206122585,
-0.1446672827,
-0.2113121897,
-0.1823828518,
-0.1195884943,
0.0484519117,
0.1704612821,
-0.1940095574,
0.333306402,
-0.5447804928,
-0.0393553004,
0.2153697461,
-0.2854783833,
-0.2662694156,
0.3533626795,
-0.1288696676,
-0.3315467834,
0.0084266635,
0.0862204134,
-0.1368308663,
-0.2057428211,
0.2223114818,
-0.0022183401,
0.1104768887,
-0.2818078697,
0.0997144952,
0.051281102,
0.4467150271,
-0.2579175532,
-0.177111119,
-0.2561301887,
0.6002790332,
0.0168120731,
-0.2479853332,
-0.0719553307,
0.1086514592,
-0.1167465523,
-0.0459051169,
-0.5427116752,
0.2715320885,
-0.4648794532,
0.4532852769,
-0.2637378573,
0.0398226902,
0.0943995565,
-0.2558394372,
0.0357976705,
0.2343972027,
-0.1071772203,
0.1661347002,
0.0742159858,
0.101674892,
0.0548772067,
0.6813257933,
-0.2222063094,
0.3173039556,
-0.2216819823,
-0.1420519948,
0.321346432,
0.0146833174,
0.2703050375,
-0.3492726386,
-0.1600704491,
-0.2527992725,
0.1392288208,
-0.3603528738,
0.1603135914,
-0.0825726911,
-0.3704121411,
0.0258407593,
0.0244621113,
-0.0270036981,
-0.03766362,
0.2160637677,
-0.0352764688,
0.0675721467,
-0.097219117,
0.1948967129,
-0.3613542616,
-0.2353329957,
-0.1472595036,
0.0244836453,
0.167701751,
-0.2305628359,
-0.6383596659,
-0.0635867193,
-0.4090248346,
0.1462836564,
-0.1857919991,
0.4481495023,
0.0315241106,
-0.2720535398,
0.457554549,
-0.0128174024,
0.6455438733,
0.3132842481,
0.0661057979,
0.1790159047,
-0.1667531729,
-0.6522542238,
0.0510063134,
0.2501666248,
-0.0701481551,
0.3510233164,
0.6979832053,
-0.0248684026,
-0.1324618906,
-0.0856421441,
0.3518333137,
-0.2339812368,
-0.5040017962,
-0.1591247916,
-0.3802189827,
-0.1185239926,
0.2002324313,
0.1421145201,
0.5277096033,
0.3856261969,
-0.0689021572,
-0.1792729497,
-0.0730502978,
0.0671484843,
0.0946523473,
0.2961642742,
-0.075032644,
0.4328199029,
-0.2789563835,
0.1389793307,
-0.1538675129,
0.400052309,
-0.1149565876,
-0.0283030719,
0.3496229947,
-0.2214352041,
0.0919392928,
0.4316242635,
0.2227866203,
0.0650337115,
-0.1120348275,
0.2019875348,
-0.2372820526,
-0.0217906181,
-0.170250088,
0.0353052877,
-0.0436677523,
-0.1517342925,
0.26997751,
0.0380758345,
-0.0135925049,
0.2379072458,
-0.0789270401,
0.1283089072,
0.681193769,
0.1408228874,
1.1918376684,
-0.4987132251,
-0.0082945814,
0.096123606,
0.1430039257,
-0.1005693227,
-0.1519058645,
-0.3217867613,
-0.3388420641,
0.0811907947,
0.1482398808,
-0.2489881665,
-0.1232926995,
0.4238461852,
0.1637031734,
-0.1260513216,
-0.2401729524,
0.3148702383,
-0.3412210643,
0.4762753546,
0.0087067941,
-0.4426179826,
-0.4776333272,
-0.0112776635,
-0.0151013844,
-0.0698860288,
-0.037083216,
0.176352188,
0.0186255928,
-0.1760469377,
-0.0399731845,
-0.1425021887,
0.1810693741,
0.152813971,
0.1570996344,
-0.2341354191,
-0.0617597364,
0.4883339107,
0.4086745381,
-0.0087383837,
-0.0027238263,
0.22210823,
0.0705401003,
0.1289342195,
0.1028665602,
-0.250002116,
0.057148084,
-0.1275207847,
0.0429314189,
-0.1080660298,
-0.1555734128,
-0.4990603626,
-0.1131401286,
0.1605974436,
0.3514445424,
-0.1212951168,
-0.2276402861,
-0.2395575494,
0.2034034431,
-0.0467719659,
0.018431887,
0.3179139793,
0.173743397,
0.2757468224,
-0.0212595351,
-0.2673324049,
0.0162615199,
0.3020541072,
0.0170837194,
-0.3022371531,
0.3309482634,
0.0865603015,
-0.2429786026,
-0.2007221133,
0.3777853549,
0.3468035758,
-0.4271839559,
0.115206711,
-0.0215390939,
0.042957332,
0.0789000988,
0.0687577054,
0.1683826596,
-0.0139964186,
-0.1238837317,
-0.2372081876,
-0.5546424985,
-0.0506820157,
0.187241286,
0.1470963657,
0.2197025269,
-0.4283142984,
-0.2838519812,
0.0944501683,
-0.1446279883,
0.0714249909,
-0.1175402775,
0.1290342063,
0.0972542167,
-0.0604093298,
0.0707977712,
-0.1616989225,
0.0573553033,
-0.1087406278,
0.0278354697,
-0.090418756,
0.0773822293,
0.215037629,
-0.0356080346,
-0.2600278258,
-0.1834864169,
-0.4841845036,
-0.1761962771,
-0.3114584088,
-0.136501655,
0.0177769326,
-0.0482174866,
-0.4042718709,
0.3332403004,
0.1770691425,
0.0136791579,
0.3767218888,
-0.0358713903,
0.4288920164,
-0.0598751903,
0.1239344105,
0.2064659446,
-0.1862600148,
-0.2938394845,
0.1813883483,
0.3410728872,
-0.1296020448,
0.3239105642,
-0.2449262738,
0.0658396706,
0.2200419158,
-0.0047925995,
0.1478660405,
-0.1227509007,
-0.2767174542,
0.2896313071,
0.0481096208,
0.0177411009,
-0.2249453664,
-0.0619258285,
-0.1368286759,
-0.2501653135,
0.2854050696,
0.3567179739,
-0.1237792671,
-0.1079095379,
0.0449002795,
0.574672699,
0.0202323701,
-0.4783283174,
0.5880820155,
-0.070388332,
-0.0385695584,
0.227690205,
0.2314761728,
-0.0237398483,
0.6256379485,
-0.2442817241,
0.0691806823,
0.3443622887,
0.6154091954,
-0.364161104,
-0.3480576575,
0.3312955201,
0.2959241867,
-0.2161133289,
-0.1658431292,
0.1747482419,
0.1850937456,
-0.2219771147,
-0.1320073754,
-0.2278193086,
0.3173688948,
-0.2714670599,
0.1096017212,
-0.3770475984,
0.0084141782,
0.0155457566,
0.195746243,
-0.2598243952,
0.0120410407,
-0.2839382887,
0.2939404845,
0.0450803451,
0.0761365294,
0.0730989575,
0.0068179215,
-0.0483452827,
-0.4155163467,
-0.0145705007,
-0.3586176932,
-0.0320332982,
0.2837155163,
-0.2935304046,
0.3421540558,
0.4888448715,
-0.0014260969,
0.0711880848,
-0.0501827747,
-0.097909458,
0.0505334809,
0.1878016889,
-0.1198864728,
0.2970221937,
0.1994645596,
-0.1026524752,
-0.051739227,
-0.4618650079,
-0.1480224133,
0.43184039,
0.0595430359,
0.3271248639,
0.100613825,
-0.2961319983,
-0.3213714957,
0.1229031757,
-0.0750290379,
-0.1075346991,
0.2633375525,
0.0025236732,
0.0956817567,
-0.0516839549,
-0.0350604691,
-0.3884756565,
0.5839491487,
0.3617029786,
-0.3527213335,
-0.2170394659,
-0.3836135268,
-0.6794733405,
0.0733424351,
0.0394687243,
-0.0809105635,
0.4049057961,
0.2302098423,
0.4591112733,
0.0503460728,
-0.1319798678,
0.1001783013,
-0.1748912781,
0.399859786,
-0.0295775402,
0.0278937686,
0.0828519315,
0.1551288664,
-0.2668429613,
-0.4360181987,
0.4621652067,
0.2074248195,
-0.1047061384,
-0.1270342767,
0.0779104009,
-0.3120551109,
0.3903243542,
0.3595148623,
0.0061719655,
0.1256822795,
0.3428464234,
0.1056972593,
0.2859565318,
-0.038630031,
0.0240415111,
0.2289869636,
-0.0896625891,
-0.0777301565,
-0.0537527911,
0.4169667959,
-0.1711566001,
-0.0300592333,
-0.2994281352,
-0.1029417217,
-0.1097696424,
-0.0798364356,
-0.2138457149,
0.2689226568,
0.3082719743,
-0.0050267279,
0.2078597546,
0.2081072181,
-0.2628804147,
-0.0212145187,
0.2440168411,
0.0182843506,
-0.1810208559,
0.0215863697,
0.1300424188,
0.2562042177,
0.1501438469,
-0.2618189752,
-0.1183141172,
0.2275495231,
-0.1547404379,
-0.1117921844,
0.4511463046,
-0.2433208674,
0.1806142032,
-0.1649067253,
0.1835403591,
-0.0875930563,
-0.0238011293,
-0.4564519227,
-0.2792277038
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :)
Maybe this can be highlighted somewhere in the docs. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 66 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :)
Maybe this can be highlighted somewhere in the docs. | [
-0.3226238191,
-0.1608169079,
-0.0745908245,
0.2495032996,
0.2985534072,
0.0387582481,
0.4221408963,
0.2822893262,
0.742570281,
-0.0142083783,
0.1286984831,
0.5218667984,
0.1710797697,
-0.0604943484,
0.1026291102,
0.1128982082,
0.3352092505,
0.2497864068,
0.4394030869,
-0.105201073,
-0.2460138947,
0.0447133966,
-0.0732721463,
0.0021350516,
-0.2016453743,
-0.070965156,
0.0490918793,
0.0603728928,
-0.1569582969,
-0.311006397,
0.0576226898,
-0.0301363431,
0.248499319,
0.1560707986,
-0.0001240785,
-0.2502491474,
0.0976853445,
0.1681644917,
-0.2215497047,
0.2777533531,
0.4692352414,
-0.4544666111,
0.2095419466,
-0.3286707997,
0.1093204319,
-0.2615487576,
-0.2773526609,
-0.2344933152,
-0.1445314884,
-0.1392446905,
0.0578051433,
0.4935593903,
-0.3358247578,
0.0392283127,
-0.1054477468,
0.2524728179,
-0.2108766288,
0.0278608203,
0.5619881153,
-0.0642876923,
-0.151748389,
-0.0723263845,
-0.1665256321,
-0.01864025,
0.4654622078,
0.091354467,
0.3007298112,
0.1481367201,
0.0586197339,
0.198486954,
0.618843019,
0.064718999,
0.0020859197,
-0.2517012656,
-0.1446767747,
-0.3261275887,
0.4937448502,
-0.0850371793,
-0.2823267281,
0.1968885511,
-0.0919124112,
0.0032241235,
-0.0007410621,
0.1887157112,
-0.127267763,
-0.1371296197,
0.0356845558,
0.073929362,
0.4173915982,
-0.0824339688,
0.0908487141,
0.0813884586,
0.1108415499,
0.3806837797,
-0.4470407963,
-0.202247858,
0.0474865139,
0.1267512888,
-0.157443583,
0.1289217472,
0.2507876754,
0.2840548158,
-0.1623957902,
-0.0145501029,
0.1943363547,
0.4872796834,
-0.0886642337,
0.0122231264,
0.1112785712,
-0.2843343019,
-0.0522237606,
-0.025625458,
-0.2161010355,
-0.0837230384,
0.4585701227,
-0.4411869645,
-0.2838886976,
-0.1548160315,
-0.0263335817,
0.15212816,
0.5146115422,
-0.0873988271,
0.2107796222,
0.2231996804,
0.0778519362,
0.6204028726,
-0.1289460063,
-0.0406203829,
-0.2698880732,
-0.1998660415,
-0.0555291995,
-0.3001203537,
-0.1892194599,
0.2059865445,
0.0779304281,
0.2282759994,
-0.068334125,
0.1639873534,
-0.134283483,
0.0825808421,
-0.1125888675,
-0.1415144205,
0.2363198847,
0.2305315733,
-0.1208692417,
0.1781393737,
0.1677366346,
-0.234518066,
-0.4652573764,
0.3355948031,
-0.212803483,
-0.4199284911,
-0.4273709357,
0.0072538401,
-0.2377492785,
-0.0651964471,
-0.3955854177,
-0.0914322808,
0.1173492372,
0.0053257649,
-0.0422432423,
-0.2046649307,
-0.166445598,
-0.1167343333,
-0.0435949452,
0.1261860132,
-0.3784984648,
0.2095522135,
-0.1697653383,
0.2436332405,
0.3041903377,
0.7334470749,
-0.2841469646,
0.2297365665,
-0.2150825113,
0.3058837056,
0.4823343754,
-0.0905487612,
-0.3905163407,
0.6984350085,
-0.0315402597,
-0.1900241077,
0.1222814769,
0.5592463613,
0.3014047742,
-0.1081742272,
0.0844723061,
0.6842626333,
0.1519716829,
0.1931610852,
-0.4408972263,
-0.0889710486,
0.0863688365,
0.4485254288,
-0.4481648207,
0.2106366903,
0.1492393762,
-0.0531967729,
0.1388075352,
0.0618643239,
-0.0824336633,
0.21827057,
0.1804096252,
-0.0536860041,
0.0835708752,
0.2880492508,
-0.2089421451,
0.1803558171,
0.356831342,
-0.2001407146,
0.1745316982,
-0.1622899324,
-0.2808539569,
0.2578677833,
-0.0638184473,
0.5850839019,
-0.1655810475,
0.0002597683,
0.1232825592,
-0.1895462871,
-0.1822955012,
0.0056735133,
-0.2607091665,
-0.1338571459,
-0.1187094152,
-0.0538709313,
0.1495467871,
-0.0276843105,
-0.3481990397,
-0.1139465421,
0.0274141412,
0.0504441038,
-0.23078309,
0.3136668503,
0.2384159714,
0.0728301853,
-0.0540890805,
0.2536274493,
0.1177991331,
0.0799252689,
0.3854441643,
-0.0348917432,
0.157796219,
-0.2845804691,
-0.1133621708,
0.4743831456,
-0.1945815086,
0.204500258,
-0.2393614948,
-0.1376257092,
0.4117897749,
0.1533877105,
0.1523718387,
0.0122168986,
0.2239197791,
0.3204173148,
0.3103186488,
0.3557279408,
-0.2361184508,
0.2998500466,
0.2733621895,
-0.3111574054,
-0.1637508422,
0.1904311478,
0.0677716434,
-0.3896794021,
-0.0465771593,
-0.0718712434,
0.3178165555,
0.1108626872,
0.0967895091,
-0.3655158281,
-0.1263010651,
-0.2689041495,
0.1035789251,
-0.0913727283,
-0.0813278779,
0.1268494129,
-0.0838838294,
-0.1407703012,
-0.3437015712,
0.076822415,
0.0583928451,
0.3713032603,
-0.3226993382,
0.1442293227,
-0.1177649125,
0.1012650579,
0.0854584426,
-0.2584556937,
0.0992416665,
-0.1990340054,
-0.1569404006,
0.2382613719,
-0.05954412,
-0.2230941802,
0.0155617502,
0.3806137741,
0.1620953679,
-0.3483735919,
-0.4424186051,
-0.2981950641,
-0.1366095394,
-0.1440677196,
0.4089352489,
0.1800212264,
0.124088861,
-0.0514701642,
-0.1754899919,
-0.1541039795,
-0.1417019367,
-0.1339686662,
0.0971913934,
0.1634798348,
-0.2072191536,
0.2906834781,
-0.5274924636,
-0.0480185524,
0.2445217669,
-0.3920344412,
-0.2549416423,
0.3617931306,
-0.147864446,
-0.3017106354,
-0.0606980212,
0.0505275987,
-0.113606669,
-0.2817182243,
0.2005342096,
0.0268039517,
0.162943989,
-0.1670724154,
0.0840686932,
0.0241062902,
0.4369488657,
-0.2090643942,
-0.2005085498,
-0.3366440237,
0.6655771136,
-0.0674732253,
-0.2943998575,
-0.1106712446,
0.1626201868,
-0.0999384522,
0.0176796727,
-0.4852072895,
0.1754688472,
-0.399100095,
0.4361285865,
-0.1872493625,
0.023197867,
0.0902207121,
-0.2943098843,
-0.0100120641,
0.1943795979,
-0.0735587403,
0.2152551413,
0.1402676702,
0.076076515,
0.0566534847,
0.5815752149,
-0.2033927143,
0.2937360704,
-0.192866981,
-0.1441557854,
0.3797109127,
0.0508840494,
0.2769877911,
-0.3881302476,
-0.0385315754,
-0.2365737706,
0.0751914382,
-0.3433190286,
0.1972093433,
-0.0419464372,
-0.3988676667,
0.00044056,
0.0113651715,
0.0296949502,
-0.0258544553,
0.2768122852,
0.0031791858,
0.0571151897,
-0.1580572724,
0.1955285966,
-0.3689616323,
-0.2207466364,
-0.0347212739,
0.0054603727,
0.1675371528,
-0.2262943536,
-0.5818343759,
-0.0450043865,
-0.457336843,
0.1102726012,
-0.1511331052,
0.4317118824,
0.0326879881,
-0.326795876,
0.4497899115,
0.0165356752,
0.5992979407,
0.2426704317,
0.0653817877,
0.1691062599,
-0.1939439774,
-0.6289978027,
0.0009362191,
0.2882150412,
-0.0558010861,
0.364081651,
0.6817570925,
-0.0207282454,
-0.1427898556,
-0.1771028191,
0.2964541316,
-0.1825659126,
-0.4764574766,
-0.1564635634,
-0.3197122514,
-0.0298840348,
0.1361917406,
0.1223990545,
0.4730429649,
0.3970288634,
-0.0510308892,
-0.1397123337,
-0.0794909298,
0.0569186471,
0.1025465056,
0.326558888,
-0.0831367224,
0.4017071724,
-0.2665258348,
0.1724072099,
-0.1436822414,
0.3578259945,
-0.1594266295,
0.0329034813,
0.3169458807,
-0.1690723449,
-0.0378934108,
0.4042507112,
0.2179448456,
0.0230434909,
-0.0922693908,
0.1755311787,
-0.1289854795,
-0.0814666823,
-0.2395370305,
-0.0894289911,
0.0621004589,
-0.1828179955,
0.307356894,
0.0337959118,
0.0229253527,
0.2029407173,
-0.1777445823,
0.1803437173,
0.6944708228,
0.2402532846,
1.103258729,
-0.5289761424,
-0.0497180969,
0.0803682581,
0.158738777,
-0.0673932359,
-0.2195413113,
-0.3331924081,
-0.3431915939,
0.0512353629,
0.1407553256,
-0.2378754914,
-0.0988540277,
0.3970498145,
0.1244288981,
-0.1359528899,
-0.1707544327,
0.2494419217,
-0.3618456125,
0.4492151737,
0.0081473049,
-0.4845147729,
-0.5036972165,
-0.0180475879,
-0.0226318501,
-0.070176065,
0.0573068894,
0.1429815888,
-0.0137578258,
-0.1082961336,
-0.0467249602,
-0.1943829358,
0.1463374943,
0.165702939,
0.2384939641,
-0.2413223237,
-0.1573362947,
0.4588549137,
0.4183015227,
-0.1278505176,
-0.0574065186,
0.2050833255,
0.0940765366,
0.1566061974,
0.1413856298,
-0.3012241125,
0.1008496955,
-0.1678159535,
0.0478646755,
-0.1583497226,
-0.1808528304,
-0.5726488233,
-0.0293081813,
0.1275884807,
0.2592936754,
-0.0812685117,
-0.2170275003,
-0.2679758072,
0.1614526361,
-0.0560319908,
0.0301200766,
0.3356842399,
0.1979071349,
0.2878731787,
-0.0600540601,
-0.2725397646,
0.0294414926,
0.3319967091,
0.0695777982,
-0.2590421736,
0.1596333981,
0.0203191862,
-0.2458757013,
-0.1667045653,
0.2685496509,
0.25663203,
-0.3890851438,
0.1351535618,
-0.0054590576,
-0.0711390302,
0.1105739996,
0.0917999819,
0.2113633007,
0.0833945945,
-0.1534250826,
-0.2042268366,
-0.5619236231,
-0.069393836,
0.1208489612,
0.1197356954,
0.2027739584,
-0.5310307741,
-0.2314296812,
0.1063452661,
-0.1486594826,
0.0223782342,
-0.0514782183,
0.0978178009,
0.0250892881,
-0.0955777839,
0.0847095177,
-0.1104149893,
0.0245974939,
-0.1290597171,
-0.0582062267,
-0.0986011773,
0.0661908761,
0.2022105455,
-0.0261723343,
-0.3134866357,
-0.214947179,
-0.4446397424,
-0.2229789943,
-0.4078944027,
-0.1421507299,
0.0821995214,
-0.1103839874,
-0.308152914,
0.3577405512,
0.1771013737,
0.0394445583,
0.4326913357,
-0.0332108252,
0.4170438647,
-0.0510407761,
0.1291967779,
0.084279798,
-0.1912927479,
-0.234705165,
0.1777186841,
0.286890924,
-0.1441697478,
0.3072478473,
-0.1540200859,
0.040707279,
0.2540168464,
-0.0518834479,
0.1273428649,
-0.0752435625,
-0.2777111828,
0.1884878278,
0.0585010685,
0.0316700749,
-0.2745827138,
-0.037640065,
-0.1089216024,
-0.2237673849,
0.3037152886,
0.5891481638,
-0.2170904279,
0.0305280723,
0.0220106412,
0.5801917911,
-0.0736671016,
-0.4540027082,
0.5093348026,
-0.0273503959,
-0.0193563886,
0.2056340277,
0.1050570756,
0.0155766606,
0.5493294001,
-0.1837938279,
0.0723784342,
0.3812022805,
0.6312500834,
-0.4592192471,
-0.2652799785,
0.3273638487,
0.3456687033,
-0.2631083727,
-0.1615938842,
0.2169775665,
0.220864132,
-0.1987278759,
-0.0772711784,
-0.2528799176,
0.2544390559,
-0.2474378049,
0.0137342876,
-0.3680059314,
-0.0047221025,
-0.0032451712,
0.2030937076,
-0.2940655351,
0.0595921949,
-0.2064141631,
0.3588225543,
0.0225918572,
0.0779862776,
0.0846003518,
0.0032433285,
0.0085201142,
-0.3517470956,
-0.0209235735,
-0.3850734234,
-0.044468943,
0.3163784742,
-0.2234602869,
0.3441753983,
0.4706105888,
0.0197635666,
0.0042300154,
-0.000733129,
-0.0443937108,
0.045100823,
0.1677301675,
-0.1006318927,
0.2130613178,
0.1323037595,
-0.1080195531,
-0.0720209256,
-0.4006670713,
-0.2658493817,
0.4388967454,
0.0698799565,
0.3287578225,
0.1410550326,
-0.301542908,
-0.2264057994,
0.1161173731,
-0.0401536003,
-0.1296416372,
0.202000618,
0.0305199493,
0.1341311634,
-0.0184483398,
-0.0197691079,
-0.3499533534,
0.6466867924,
0.3268618584,
-0.37646842,
-0.1538330019,
-0.3429901004,
-0.6594374776,
0.0901035666,
0.137840122,
0.0102191651,
0.4335321784,
0.2976467013,
0.4147019982,
0.0565112196,
-0.0912934914,
0.0680737197,
-0.0804570466,
0.3307953775,
-0.0441674776,
0.0997031182,
0.0676347539,
0.1545774788,
-0.2172724009,
-0.4932132959,
0.4301347435,
0.2421675026,
-0.0855952427,
-0.1617183685,
0.0767548829,
-0.2224019021,
0.5364192128,
0.343411386,
0.0456855856,
0.0447000973,
0.3310733736,
0.0513144843,
0.18515715,
-0.0491821282,
0.0688120425,
0.1604452431,
-0.1198963895,
-0.0720122233,
-0.1018095762,
0.3515323997,
-0.1771846861,
0.0738598555,
-0.3217801154,
-0.1348326057,
-0.1010626853,
-0.0538111925,
-0.2531952858,
0.2246578932,
0.2578518689,
-0.0074135195,
0.2533704937,
0.1613567621,
-0.2900334001,
-0.0014640723,
0.1636454612,
-0.0152297756,
-0.1333999783,
-0.0005009146,
0.1547703445,
0.2593907714,
0.2119564563,
-0.3160807788,
-0.1988023371,
0.1741229743,
-0.1279714108,
-0.127360329,
0.4363149405,
-0.23842749,
0.2239921689,
-0.1776051521,
0.1725260764,
-0.0055300421,
-0.061017748,
-0.5113271475,
-0.2912898064
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | Hi ! We plan to add streaming features in the future.
This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead.
What do you think about this ?
If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us ! | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 84 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Hi ! We plan to add streaming features in the future.
This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead.
What do you think about this ?
If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us ! | [
-0.3108789325,
-0.3046274483,
-0.1025218889,
-0.0479800291,
0.0687684789,
-0.0700552538,
0.1910865754,
-0.0508346967,
0.1361464262,
0.1569509059,
0.3037062287,
0.1940683275,
-0.184898451,
0.3730877638,
0.3175566196,
-0.0077213403,
0.1201917678,
0.4260941148,
-0.2305736989,
0.0468868203,
-0.0075152949,
-0.3915001154,
-0.1026720479,
-0.0120187262,
-0.0238754749,
-0.1791452914,
0.2561784983,
-0.2268670201,
-0.3328369558,
-0.2920054495,
-0.0948423371,
0.3715642393,
-0.1481716037,
0.1622750908,
-0.0001207907,
-0.0428889655,
0.1374645084,
0.0590487607,
-0.5849155188,
-0.1030334458,
-0.1841098964,
0.0425003842,
0.4369482696,
0.0075867432,
0.2101270705,
-0.3526917696,
-0.1396359652,
-0.4950588346,
0.1005163044,
-0.2342172712,
0.115582481,
0.1027224138,
-0.3094596267,
0.2336923778,
0.3298903108,
0.4536734521,
-0.5429470539,
0.0720203891,
0.2324801087,
0.0431368202,
-0.1210567653,
0.2974909246,
-0.2007703036,
-0.1528941542,
0.5350205302,
-0.0998745188,
-0.2107016146,
-0.4075064063,
-0.0728180557,
0.3070440888,
0.8722043633,
-0.2314076424,
-0.2588224411,
-0.3002794683,
0.2959437966,
-0.2492592484,
0.0199248977,
0.2672727704,
-0.1843285114,
0.0638792813,
-0.4113720059,
-0.5367267728,
-0.3401837647,
-0.0841030926,
0.5507417321,
-0.175000608,
0.0372192524,
-0.006078559,
0.1979062557,
0.0224978048,
0.6170964837,
-0.2264441401,
-0.2022961229,
0.1820368171,
-0.1922792792,
-0.2122165561,
-0.0563995913,
0.2362248451,
0.1903985143,
0.4510351121,
0.7375757098,
-0.032986138,
0.2755360305,
-0.1032702699,
-0.1177368835,
0.0825223178,
0.1956578493,
-0.1914612502,
0.2349563986,
0.174017489,
0.2198192477,
0.0179995913,
0.1257083714,
-0.0469562784,
-0.1022861749,
-0.1341957003,
0.1262617856,
-0.1515743583,
0.0811668187,
-0.0285396446,
-0.1162553802,
-0.0750428811,
0.2993289828,
0.0555918775,
0.1886075139,
0.2044252306,
-0.187105149,
0.3508719802,
-0.080498144,
-0.2571532428,
0.0088629993,
-0.2000310421,
-0.1664548367,
0.4750289619,
0.3624810874,
-0.0876033679,
-0.1268796325,
0.3686204851,
-0.0611520484,
0.2437935472,
0.3272445798,
-0.2562048733,
0.0929729566,
0.3177511394,
-0.0812243447,
-0.2186975777,
-0.111894168,
0.2880062759,
-0.0830698535,
0.3657186627,
0.0053952006,
-0.548301816,
0.170889765,
0.092853114,
-0.1274676174,
-0.0246368889,
-0.7149607539,
0.4606954455,
-0.2579357624,
0.0401660502,
0.278362304,
0.1570735127,
-0.0480402336,
-0.1101603806,
0.0858075172,
0.3789239824,
-0.2608050108,
-0.0232438147,
0.0542487577,
-0.13580513,
0.1218103394,
-0.0106067341,
-0.4702015817,
0.2000154555,
0.0462343283,
-0.1331988275,
0.5498134494,
0.2194535434,
-0.1146797687,
0.3090108931,
-0.008037433,
0.1739726961,
0.4368068576,
0.1638067365,
0.0332268327,
-0.0741100833,
-0.3550985456,
0.1997154951,
0.0999734923,
-0.1582484245,
0.0386438221,
-0.2926287353,
0.2996135652,
-0.05040152,
-0.3303486705,
0.3204111755,
0.1587291509,
-0.2219254375,
0.0707159489,
-0.3053120077,
-0.1652633548,
-0.140546754,
0.2203618139,
0.1397408694,
-0.0833457261,
0.1656157225,
-0.5774098039,
0.2231897712,
0.1686060429,
-0.081620656,
0.0517519489,
-0.2786859274,
0.293615967,
0.2566469908,
0.0069582323,
0.2985523641,
-0.0226737447,
-0.4991951287,
-0.0524845757,
-0.2828564048,
-0.4251050651,
0.1305735856,
-0.4586177766,
0.1097253039,
-0.3391101062,
0.1836678833,
0.3947967291,
0.0719573125,
-0.1009669825,
0.0197079033,
-0.095439285,
0.1250945628,
-0.1820269376,
0.1980029345,
0.1273067445,
0.4344156981,
0.0719594434,
0.5853413939,
0.1416966468,
-0.3799536824,
0.3378415108,
-0.2595509589,
0.2171445638,
-0.0517185815,
-0.0917364955,
0.2184343934,
-0.3835190237,
0.4063926637,
0.2279463708,
-0.191331923,
-0.0040310333,
0.3014160097,
-0.2829814255,
-0.1211420372,
0.1992320716,
0.0372686833,
0.0940755755,
0.1732014567,
-0.2697510421,
-0.0403757468,
-0.1568160802,
-0.0427141711,
-0.0762661099,
0.1561242342,
-0.0109280199,
-0.3204742074,
0.286736995,
-0.092779994,
0.3964141607,
0.1984129548,
0.0820916817,
-0.065176703,
0.0817171112,
-0.2824464142,
0.4200904369,
0.1205190048,
0.3258142173,
0.0309964567,
-0.0969616622,
-0.0039798771,
-0.4386235476,
-0.1053164005,
-0.1223822385,
-0.1773045361,
-0.3413569033,
0.0089964187,
-0.1540702283,
-0.1955710948,
0.1467409879,
-0.1188898087,
-0.1021896973,
-0.0126231182,
0.2394534796,
0.1834587157,
-0.1075838208,
-0.1036436111,
-0.2173335254,
0.5270034671,
-0.1992477626,
-0.0251714401,
-0.5137591362,
-0.0452128686,
0.1988992393,
0.0472593643,
0.0032081278,
0.0661684796,
0.4163730145,
0.1682762653,
0.1379340589,
-0.3983549476,
-0.1744869202,
0.1206519306,
-0.0368905328,
-0.0963434353,
0.0870491713,
0.1624212712,
-0.0842904747,
-0.104716599,
-0.0965831727,
-0.3372970223,
-0.0799452439,
0.1049519703,
-0.3326286077,
0.2669525146,
-0.0691863224,
0.0566679835,
-0.0044630687,
-0.2767609358,
0.2775222361,
0.0485981628,
0.060690321,
0.148117885,
0.0797358751,
0.0233631488,
0.1676540524,
0.0961705223,
-0.0521214008,
-0.304782778,
0.284537673,
-0.1672820002,
-0.1685495526,
0.0923686177,
0.0648945272,
0.0349516235,
0.5637580752,
-0.698859334,
0.3132864535,
-0.1534543931,
-0.0188970175,
-0.3195338547,
-0.1869518012,
0.1386370808,
0.1478304565,
0.0079045342,
-0.1186840311,
0.199391216,
0.0207723957,
0.0118296603,
-0.0454185605,
0.1649004668,
0.4724437296,
-0.2799656391,
0.7499018312,
-0.2328369021,
0.2019320577,
0.2562408149,
0.0631856322,
0.2966484725,
-0.2636046112,
0.1922911406,
-0.2881789804,
-0.1836780459,
0.0131841972,
0.0328523591,
0.0454575978,
-0.3248319924,
-0.3126923144,
0.1917993426,
0.1270604432,
0.0417597219,
0.0821787119,
-0.8073264956,
0.1014950797,
-0.0185743459,
0.0763844401,
-0.1245130599,
-0.2342164367,
-0.0198270101,
-0.127502054,
0.5562238693,
-0.1463592201,
-0.4232417345,
-0.0645834208,
-0.2479697168,
0.0382358804,
-0.0302799046,
0.1276205629,
0.0367247686,
-0.1858837754,
0.2239858359,
0.2786924541,
0.1654665172,
-0.0336546749,
-0.2804147303,
-0.1969599128,
-0.1634918153,
-0.3167752922,
0.1226158589,
0.0242013689,
0.1295230985,
-0.4652247131,
0.1284011453,
-0.0064171571,
-0.213561967,
0.0068528252,
0.3506618738,
-0.0871526152,
-0.1996815503,
-0.2058725804,
0.1956339478,
-0.050898131,
-0.0524371676,
-0.0378702544,
-0.2354494035,
-0.4645161331,
-0.2731610537,
-0.2341302037,
0.0858574212,
0.1269872338,
0.065900147,
0.2296320945,
-0.0395508111,
0.0203173794,
0.4007852972,
0.0371182822,
0.1847320348,
0.5451722145,
0.2208451629,
-0.3756820858,
0.1030652225,
0.0247748885,
0.3193543553,
0.4243556559,
-0.162353307,
0.3445613086,
0.0268174596,
0.0296839159,
-0.2936314642,
-0.279535085,
0.0181758851,
-0.312017113,
-0.1259581745,
-0.6251106262,
0.4853064716,
0.0108014401,
-0.1116540581,
0.7630068064,
0.0746070519,
-0.1769555658,
0.3175775707,
0.2784119546,
0.9641888738,
0.1181243211,
0.1516844928,
0.3379051983,
-0.1131617352,
0.1988104582,
-0.2497757971,
0.0938192904,
-0.0258223694,
-0.5687530637,
-0.1515205801,
-0.2918737233,
0.3007473648,
0.4270749092,
-0.0435459465,
0.0606683381,
-0.2622158527,
0.2980576754,
-0.0733745769,
0.0167884231,
-0.2591685653,
-0.3974758685,
-0.4063357711,
0.0142313177,
0.1067011058,
-0.2799777091,
-0.0834433958,
0.1473346502,
0.2530604303,
-0.230513528,
0.0695231259,
-0.0503548793,
-0.3953575194,
0.1217973903,
-0.276802659,
-0.4214163125,
0.1907437295,
0.2504666448,
-0.2979569733,
-0.0829799473,
-0.1388769299,
0.0645045489,
0.4400084913,
0.3049495816,
-0.404928416,
0.1805903912,
0.0650015697,
-0.1086577401,
-0.1329961121,
0.2398071587,
-0.1366387606,
-0.220526427,
0.0143777784,
-0.1716659665,
0.3094851971,
0.0045683184,
0.1812599897,
0.1024334058,
0.2157660574,
0.0518090054,
0.0570429862,
0.0811734349,
0.0695532933,
-0.0609837398,
0.1230358779,
-0.2393784821,
-0.1617502719,
0.1064379141,
0.2069575936,
-0.1210741475,
0.3754946589,
-0.0528481156,
-0.3789212108,
-0.2747313082,
0.2893601954,
0.1397414505,
-0.7035728097,
-0.0738162249,
0.1489484757,
0.048630856,
0.0033600263,
-0.0001005757,
0.019045325,
0.0578900054,
-0.1634991914,
0.1071622819,
-0.2024369687,
0.1851761192,
-0.0340729728,
0.240462184,
-0.0695147365,
-0.7264940143,
0.1870399863,
0.1360985786,
-0.1877744049,
-0.2514925897,
0.4108291268,
-0.0702517405,
-0.0630376637,
0.3864990473,
-0.1346451193,
-0.0181872286,
-0.0302040465,
-0.1721290499,
-0.1750431508,
-0.0975411013,
-0.054401774,
0.2513287067,
0.0059323283,
-0.0712463185,
-0.2988918722,
-0.2655927539,
-0.3327391744,
-0.1161002889,
0.2361610979,
-0.1152720302,
0.0143655371,
-0.2170256078,
0.4655842781,
0.0696038306,
-0.4628808498,
0.221339494,
0.0723903179,
0.3732797503,
0.1005703211,
-0.0579678863,
0.2426193208,
-0.2007865012,
-0.0334784426,
0.1931095272,
0.1166945547,
-0.0207373239,
0.0865889639,
-0.0320579447,
0.2666085362,
-0.2654093802,
-0.0668258071,
0.4697325528,
0.1004368663,
-0.4031164348,
0.3078160584,
0.0776484758,
-0.1227741838,
-0.227186963,
-0.0982632563,
0.0789744854,
-0.1092835441,
0.200492233,
0.3673202395,
0.0407644995,
-0.1634552926,
-0.0276838634,
-0.3696682453,
-0.0030447855,
0.2932274044,
0.4805446565,
-0.0604709461,
-0.0904302448,
-0.0880321562,
0.3710192442,
-0.0625508353,
-0.1868816167,
0.1075198874,
0.4149564505,
0.3388375044,
0.2124041319,
-0.021789372,
-0.2971413732,
-0.4956048131,
0.0196763333,
-0.3421945572,
0.0325548686,
0.1744561344,
0.1863130927,
0.4558746815,
-0.2427098304,
-0.2187994868,
-0.2068071365,
0.1399271637,
0.0624869131,
-0.1774533689,
-0.1007470787,
-0.1063497365,
0.019708097,
-0.0756954178,
0.3763747513,
0.2480234206,
0.0486606769,
0.2859094441,
-0.0791631415,
0.5971517563,
0.2496228814,
0.3290765285,
0.1091703773,
-0.0760497823,
-0.0594753772,
0.2214471698,
0.0817486793,
0.1819228977,
-0.2918075621,
0.2225527763,
-0.0516972616,
0.0093402676,
0.3133377433,
-0.0394246131,
0.1230923682,
0.3916555643,
0.4307102263,
0.0155741777,
0.2503004074,
-0.0300432686,
0.061818067,
0.2081739008,
0.1110255495,
0.2306718677,
-0.2183977515,
0.0934882537,
0.3168641627,
-0.2441272438,
0.1566061527,
0.0160385761,
0.0042062812,
0.0520985946,
0.5282917619,
-0.3212019503,
-0.2864100337,
-0.138458088,
0.016480701,
-0.0730278566,
0.7810717821,
0.018924335,
0.2590920031,
-0.0830417722,
-0.2121021748,
-0.2754497528,
-0.2016734779,
0.050768692,
0.3989795744,
0.4041066468,
0.0457767248,
0.2310053557,
0.4444926977,
-0.0495434701,
-0.4349990487,
-0.0837575942,
0.1848331392,
-0.0879781023,
-0.1295757145,
0.0880275592,
0.4434049726,
-0.5368414521,
-0.142226845,
0.0875879973,
0.082519047,
-0.1041255742,
-0.0113942036,
0.1107940972,
0.1597878188,
0.3543705344,
0.4221051931,
-0.0528657325,
0.025452394,
0.0959213078,
-0.0054676239,
-0.0167452153,
-0.4153025746,
-0.0394845717,
0.3166202605,
0.1445341855,
-0.1955690533,
-0.0833489299,
0.2049835324,
-0.0062323622,
-0.0104397517,
0.0906657502,
-0.0033313627,
-0.3901951909,
0.0468912907,
-0.0875860304,
0.1657283604,
-0.049302008,
-0.0677294731,
-0.058271829,
0.0354532413,
0.0463261828,
0.0341990925,
0.4161964655,
0.0515396968,
0.0287158508,
0.1138913259,
0.2947539091,
0.581841588,
0.0063397144,
-0.4682571292,
-0.0402448215,
0.2554462552,
-0.4561416209,
0.2449321002,
0.5373558998,
0.0233582016,
0.0914055184,
-0.1944380105,
0.3159258962,
-0.0879745409,
0.138593182,
-0.2600433528,
-0.4006449282
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
| Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 49 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
| [
-0.2959378958,
-0.2490315884,
-0.1036209464,
0.2489057332,
-0.04503401,
0.1605257541,
0.2928256094,
-0.0211193673,
0.3396776915,
0.2951470017,
0.0326352678,
0.4835271239,
0.0262509361,
0.0174948294,
0.2436441034,
0.1563293636,
-0.014244833,
0.5176953673,
-0.3697736561,
-0.022995051,
-0.06171849,
-0.3304601908,
-0.0252593495,
0.1437553167,
-0.2534681559,
-0.1641295552,
0.1912164241,
-0.2878648937,
-0.4046610594,
-0.2799391448,
0.302750051,
0.33716169,
-0.1649563313,
0.1134257391,
-0.0001224674,
0.0932131559,
0.1214203909,
0.2131106555,
-0.4440468252,
0.0841317996,
-0.2974018753,
-0.0556285083,
0.4793873429,
-0.0023391298,
0.2543598115,
-0.2447421551,
-0.2770701945,
-0.3397579193,
0.1714113057,
-0.1323937327,
0.121537663,
0.1122747883,
-0.1933120191,
0.0961996466,
0.4546313286,
0.3035832345,
-0.5730574131,
0.1401538998,
-0.0389987044,
0.0041109887,
-0.2913176417,
-0.104890734,
-0.0712391883,
-0.1307020932,
0.3765470982,
-0.1000743583,
-0.2564787567,
-0.3019480109,
0.0996724144,
0.2157420516,
0.70438236,
-0.5096974969,
-0.1869641095,
-0.296082139,
0.3445968628,
0.105635643,
0.2261915058,
0.2963039577,
-0.1142080277,
0.1142808944,
-0.2742857635,
-0.6738184094,
-0.2642534077,
-0.1397593617,
0.3414140344,
-0.1845971048,
0.0385368988,
0.0644928366,
0.1961011589,
-0.0430389605,
0.7297347784,
-0.2825857997,
-0.3581547737,
0.1335631013,
-0.2341220081,
-0.2815178633,
-0.2018960416,
0.4096242189,
0.2900766432,
0.2482917458,
0.4759660959,
-0.025048757,
0.0451111123,
-0.0968002602,
-0.1799187511,
0.1840306222,
0.357559979,
0.0966900885,
0.208259359,
-0.0555770099,
0.2637525797,
0.0527230389,
0.0418467075,
-0.3272045255,
-0.0190529916,
0.0066926568,
-0.0198305361,
0.0030470234,
-0.0077128229,
-0.0944464505,
0.1107685342,
0.112993747,
0.3573161364,
-0.0435714126,
0.2807611823,
0.0208203476,
-0.1791734993,
0.3096636534,
-0.1984789073,
-0.2092530429,
-0.0486999564,
-0.0780898482,
-0.1887568533,
0.4118488133,
0.3620302379,
0.0837159008,
-0.2157825083,
0.4662024975,
-0.1323497593,
0.0752663389,
0.2060662657,
-0.2312605679,
0.0327521414,
0.4121603668,
0.030629063,
-0.1248456836,
-0.1179490834,
0.1336190701,
-0.1240871698,
0.4790469408,
-0.237168774,
-0.3656117618,
0.0523758046,
0.0470527746,
-0.0924414322,
0.0502536632,
-0.8543152213,
0.1679320484,
-0.1389352083,
0.3042336702,
0.3795029521,
0.0627915636,
-0.119013384,
-0.115987055,
0.0628860518,
0.4255438745,
-0.2484681308,
0.0904769599,
-0.0120128365,
-0.2226304412,
-0.2038797438,
-0.0825043097,
-0.4281780422,
0.2872892022,
-0.0954109803,
-0.0719881803,
0.4668295383,
-0.0247697122,
-0.1460668594,
-0.014644146,
0.0894161835,
-0.1040176824,
0.1017409191,
0.0415879674,
-0.011555599,
-0.0248694625,
-0.2259535044,
-0.0121472161,
0.1868847609,
-0.2042143494,
0.1919278353,
-0.3240943551,
0.0599018931,
-0.0337834544,
-0.2282291502,
0.2141558677,
0.2180253267,
-0.1546836942,
-0.0180257112,
-0.1164073348,
-0.0072898334,
0.0910574198,
0.0413846299,
-0.0866694972,
-0.080813773,
0.0877004042,
-0.6414068937,
0.2503455579,
-0.1015681177,
-0.0174972229,
0.0042332718,
-0.2572941482,
0.13235268,
0.263030529,
-0.1018623263,
0.5300439596,
-0.0298508555,
-0.7860901356,
0.0059397765,
-0.2782949209,
-0.2895981371,
0.0892976969,
-0.4312277138,
0.2539478242,
-0.3105938137,
0.2821173072,
0.3164223731,
0.0983439833,
0.0581025817,
0.1112551242,
-0.0316415988,
0.3322241604,
-0.1496320069,
0.1671596467,
0.1781447977,
0.1764757782,
0.1676573455,
0.3872046769,
0.1097667664,
-0.397702843,
0.4344578087,
-0.4769642055,
-0.012567197,
0.0138702644,
0.0165404547,
0.1664521694,
-0.3843302131,
0.3188408315,
-0.0439422019,
-0.005626359,
-0.0875652954,
0.2539412677,
-0.1913869381,
-0.2431895882,
0.0255519487,
0.3106910586,
0.3294460177,
0.3639850914,
0.1657050103,
-0.1471237838,
-0.0390839353,
0.0423739962,
0.1576625407,
0.1884931624,
0.0106435101,
-0.1029717326,
0.1735068262,
0.0350405611,
0.2412399501,
0.1518498808,
0.0659836903,
0.016690487,
-0.151792109,
-0.21840626,
0.2604804337,
0.0894290656,
0.3960986137,
0.0850111991,
-0.069994837,
-0.0542902164,
-0.430577755,
-0.0012600526,
-0.2288175374,
-0.1033505052,
-0.3287900984,
-0.1780313253,
-0.2584325373,
0.0095937746,
0.0861179978,
0.0227594152,
-0.4254296422,
0.0443892069,
0.26451087,
-0.1380121708,
0.0785575584,
-0.0195888467,
-0.2097585499,
0.4630800486,
-0.1646045148,
-0.0274949856,
-0.5118438005,
-0.0243539624,
0.2437959164,
0.0163124017,
-0.027583614,
0.1487129778,
0.2704418302,
-0.0155707458,
0.2265705615,
-0.3180450499,
0.1024792567,
0.1528232694,
-0.0561019741,
-0.1438627839,
0.2807651162,
0.1074607968,
-0.1540963054,
0.2022064626,
-0.1312023699,
-0.1807151139,
-0.0840286911,
0.089109309,
-0.3830256164,
0.2847313881,
-0.0689713657,
0.1236857176,
0.0513854995,
-0.160257712,
0.2237326503,
0.0258757975,
0.1076870263,
0.1475774348,
0.1839423776,
-0.0231053904,
-0.0198110119,
0.0666628033,
0.0129088834,
-0.3925457299,
0.4017268121,
-0.2407952398,
-0.0834748298,
0.2055178136,
0.1197906509,
0.2135042101,
0.3010386229,
-0.5540850759,
0.3444391489,
-0.3526319563,
0.048832614,
-0.2269191146,
0.057868734,
0.1938936114,
0.2327789217,
0.1075321138,
-0.206468612,
0.0343337804,
0.2128231525,
-0.0164827947,
-0.2092980742,
0.0607982948,
0.2286073416,
-0.3945917189,
0.3263342977,
-0.1310034394,
0.1730514318,
0.1884268373,
0.0671585649,
0.4778158367,
-0.2602346241,
0.2625121474,
-0.4720086753,
0.0513149872,
0.165511921,
0.064223446,
0.1445962936,
-0.0916883424,
-0.1687664837,
-0.0959238708,
0.1636496782,
-0.1391070038,
-0.1692540348,
-0.8409459591,
-0.0066026472,
0.0214686505,
-0.0270962454,
-0.1616044343,
-0.20390746,
0.0421280451,
-0.1729836762,
0.4614593983,
-0.1603583246,
-0.4641275704,
-0.2199056,
-0.1615911275,
-0.033277519,
-0.1495437771,
0.1606397629,
0.0686799288,
0.2121349573,
0.2860305905,
0.3172591627,
0.1961810887,
-0.1700163931,
-0.1128937975,
-0.2017813623,
0.0397523008,
-0.5741513371,
0.2088980079,
0.1850615144,
0.2039022148,
-0.6787976027,
0.1030542478,
-0.116568774,
-0.2855759263,
-0.0235275012,
0.4652267098,
-0.2474161983,
-0.2797546089,
-0.2131309509,
0.120799914,
0.0432899296,
-0.133300662,
0.0193476807,
-0.2369772643,
-0.3839558661,
-0.3204475641,
-0.2770611942,
-0.2282409817,
0.1647603512,
0.1295909286,
0.2308635414,
-0.0084030405,
0.0389994532,
0.2662965655,
-0.0761286765,
0.356305331,
0.6240323782,
0.0110758767,
-0.3348999918,
0.0865760818,
-0.1905131936,
0.236935854,
0.0228434727,
-0.1593128741,
0.348282367,
-0.2124980688,
-0.1461247802,
-0.23570171,
-0.3540174365,
-0.1109114662,
-0.2586770952,
-0.2403575182,
-0.3882798254,
0.4413146973,
0.0731971711,
-0.0762720853,
0.5744850039,
0.3942921162,
-0.3450447619,
0.3246236444,
0.4225629568,
0.7420532107,
-0.1131472588,
0.0360067338,
-0.0178502742,
-0.0810798481,
0.187784031,
-0.1822283417,
-0.0467946418,
-0.2022930384,
-0.3159269094,
-0.163256973,
-0.2784870863,
0.3447408974,
0.6192928553,
0.2166486979,
-0.0175142065,
-0.3532561958,
0.1148601621,
-0.1342865229,
0.0823705718,
-0.4092536569,
-0.3848984241,
-0.3651779294,
0.0389498994,
0.1036937237,
-0.2788299024,
-0.0092844674,
0.313447237,
0.100366354,
-0.1381443739,
0.0320028327,
-0.1144310236,
-0.2251795828,
0.1295300126,
-0.0997897014,
-0.2469805479,
0.3995580375,
0.3768921494,
0.0459105149,
0.0989443213,
-0.0909541696,
0.0764312223,
0.1836387217,
0.1344404817,
-0.3134599626,
0.2698400915,
-0.0851521641,
-0.0682080835,
-0.2274219245,
0.1610962749,
0.0598652475,
-0.2559140623,
0.1703697741,
-0.082758829,
0.0910622925,
-0.0907435119,
0.2708332241,
-0.0857183412,
0.3001691699,
0.0072661065,
0.0426112525,
0.1652316749,
0.2661091387,
0.1643646806,
0.0870298296,
-0.3796954751,
-0.0499843471,
0.0777692124,
0.2479713857,
-0.0401929617,
0.2925238907,
-0.0569913089,
-0.3208400011,
-0.3159716129,
0.3908053041,
0.3319864273,
-0.8370424509,
-0.1128990203,
0.1087169275,
0.0598223396,
-0.0825122446,
-0.0057953186,
-0.054394979,
0.128613472,
-0.0054596001,
0.0811381713,
-0.1605968028,
0.251065582,
0.0607837476,
0.3145681322,
0.0369498543,
-0.6393616796,
0.0692765042,
0.0838355646,
-0.1256213486,
-0.0904996619,
0.231376335,
-0.1532008946,
-0.4022025764,
0.4075804353,
-0.1101999879,
-0.1579754949,
-0.0587483533,
-0.0998655856,
-0.0359667465,
-0.0815387145,
-0.0636890903,
0.1724895686,
-0.0877541155,
0.110273689,
-0.3056670427,
-0.37975806,
-0.2704484761,
-0.1719852686,
0.2031870484,
0.0923340768,
0.0228987448,
-0.0289880093,
0.7183499336,
0.0173953325,
-0.4473557472,
0.0990374982,
0.1887396425,
0.3345041573,
0.0438572131,
-0.0104972869,
0.1380797029,
-0.1125098914,
-0.0017855733,
0.2892639041,
0.1184031889,
-0.0798292011,
-0.085604459,
0.0595140979,
0.2994783521,
-0.1719046533,
-0.0529756621,
0.3663607836,
0.0731237829,
-0.3403513134,
0.1992562264,
0.0490781888,
-0.0033571047,
-0.1472725123,
0.1413506716,
0.0453236774,
-0.0976065099,
0.2792840898,
0.1008363366,
0.1894991547,
-0.3241710961,
0.0541471392,
-0.142261073,
0.0704307556,
0.0356506296,
0.4357764125,
0.005240452,
-0.0888252184,
0.2888083756,
0.2855091691,
-0.0374685675,
0.0688917637,
0.1648101658,
0.5121222734,
0.4532749355,
0.1403603852,
0.1436411142,
-0.1542581916,
-0.3748065531,
-0.1003774107,
-0.1214207411,
-0.3154938817,
0.1127621233,
0.135370478,
0.4430633783,
-0.2076919675,
-0.2558024824,
-0.1439393163,
0.0078850612,
0.0213688239,
-0.2126765996,
-0.0534505583,
0.0525830835,
-0.1347836703,
-0.0791002885,
0.1382482946,
0.15545322,
0.0106589003,
0.2289692014,
0.0903938413,
0.6540077329,
0.3387281597,
0.0953363702,
0.2242256999,
-0.1946875304,
-0.2521744072,
0.2352356166,
0.0463109799,
0.2704991996,
-0.3665050864,
0.0616072789,
0.0022661174,
-0.1412227899,
0.3014586568,
-0.0397313759,
0.0251538884,
0.3092964292,
0.1441101879,
0.1605692208,
0.2176132798,
0.016247021,
0.0413008071,
-0.1807845831,
0.0200514961,
0.4210732281,
-0.1039448753,
0.2098530978,
0.2836741507,
-0.2959514558,
0.2372810245,
0.1531407535,
0.1266165674,
0.0172358137,
0.6544238329,
-0.3165144026,
-0.3685068488,
-0.4101752639,
-0.0002380975,
-0.1131399572,
0.7101007104,
0.015570851,
0.3783338368,
0.0592987537,
-0.225120753,
-0.1065514013,
-0.1425493509,
-0.0313013047,
0.2766109109,
0.3308052719,
-0.1430417895,
0.0999980643,
0.3642891347,
0.1951114535,
-0.1251498163,
0.1098163873,
0.010613488,
0.0004846717,
-0.0219849274,
0.0068772761,
0.2887133658,
-0.4466707706,
-0.2600393295,
0.0182088409,
0.2909234762,
-0.1568897218,
-0.0491016209,
0.136769399,
0.3282167315,
0.2682009339,
0.4353289902,
-0.0235372745,
0.1507952809,
0.1068365946,
0.0892708376,
-0.0473048985,
-0.5445357561,
0.0005119169,
0.2407063693,
-0.0126558589,
-0.3778367341,
-0.1757321209,
0.1783490181,
0.1030276641,
-0.1377815753,
-0.0067404974,
0.4482305646,
-0.2071403414,
0.0878021494,
0.0554709919,
0.016632311,
0.0253277346,
-0.149211511,
0.100724943,
0.1356734782,
0.1847238839,
0.0047003115,
0.2120039612,
0.141758889,
-0.009670143,
0.2286660075,
0.3601229489,
0.2433696389,
-0.3316453099,
-0.4114712477,
-0.0757462904,
0.3266931176,
-0.3170720637,
0.0737630278,
0.3929123282,
-0.0987645984,
0.2164562792,
-0.0882338583,
0.6065357924,
-0.1435996145,
0.2302940637,
-0.2816717327,
-0.3595016599
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | @lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 31 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | [
-0.0699812546,
-0.5376312137,
-0.0606943034,
0.2699545026,
0.0311885942,
0.1857694685,
0.2047214657,
-0.0738598108,
0.5251615644,
0.191554144,
-0.2083573043,
0.2142614275,
0.1429018825,
0.0653284341,
0.2521748245,
0.0714228824,
0.0697016269,
0.31918028,
-0.4851082563,
-0.2686430812,
-0.1109202951,
-0.0362606086,
-0.1380769461,
0.1288926005,
-0.2874594629,
-0.2463816106,
-0.0120842271,
-0.0107508637,
-0.2599888146,
-0.2313729823,
0.3290425241,
0.3906888962,
-0.0985377282,
0.2785454988,
-0.0001202594,
0.0522387736,
-0.0483487546,
0.037581034,
-0.466746062,
-0.0595749058,
-0.043304529,
0.0232829675,
0.5407466888,
0.1272079498,
0.0793073475,
-0.2443219572,
-0.2729654014,
-0.3654931188,
0.3282223642,
-0.018143747,
0.157793209,
0.3644485176,
-0.2300798893,
-0.1311167926,
0.2805159986,
0.1233366057,
-0.4778996706,
0.2537666559,
0.0540305674,
0.0632021949,
-0.1613531411,
-0.0243512299,
-0.1481771171,
-0.0582383312,
0.3744199276,
-0.1106750295,
-0.2596366704,
-0.4817546308,
0.1657977998,
0.439070344,
0.7818117738,
-0.3694945276,
-0.0524644032,
-0.2837283313,
0.1551825702,
0.1223527864,
0.1964028031,
0.3899795115,
-0.0861197263,
0.1196515933,
-0.1751598865,
-0.515737772,
-0.2267818153,
-0.2266263813,
0.3075194657,
-0.1318728626,
-0.122542955,
0.0585406907,
0.4478563368,
0.1124915034,
0.3323298991,
-0.1756275892,
-0.4155187607,
0.3108772933,
-0.4134180248,
-0.2898395061,
-0.1153081656,
0.427742213,
0.3985426724,
0.2306178659,
0.317887634,
0.1235972047,
0.05377087,
-0.0411229618,
-0.0586043522,
0.1582385004,
0.1617205441,
0.0768047646,
0.0983526334,
-0.0368570946,
0.1641531587,
-0.0357239582,
0.0670009181,
-0.3181809485,
-0.233112976,
-0.0434865952,
-0.0704030618,
-0.185267508,
-0.0737164468,
0.0096376762,
0.3312656581,
0.0439502671,
0.3386297524,
0.271124512,
0.330434233,
-0.0882130936,
-0.1544591486,
0.3299463093,
-0.2381682992,
-0.2385378629,
-0.1456325203,
-0.1315272152,
-0.2118001133,
0.4393601716,
0.275901556,
-0.050180722,
-0.1849321723,
0.4688893259,
-0.0440246239,
0.1317597181,
-0.0492256172,
-0.3038426638,
0.2460278571,
0.4969672859,
-0.0509321652,
-0.0564777926,
0.1598420888,
0.2020443231,
-0.2483126074,
0.1833155602,
-0.3329204023,
-0.3900695443,
-0.0035928281,
0.0322230533,
0.0412287302,
-0.040438775,
-0.8469283581,
0.3460439444,
-0.3431282043,
0.3712807596,
0.4440464973,
0.119037196,
-0.0005571887,
-0.173114568,
0.0333198607,
0.5034132004,
-0.1700742841,
-0.0085302899,
0.1776856482,
-0.3054763377,
-0.1037429944,
0.0439893603,
-0.3630768061,
0.0695024729,
-0.1272329241,
-0.0857851654,
0.3792750537,
0.022876773,
-0.0525421128,
0.0845266879,
0.1702484339,
-0.0148180313,
0.0711671188,
-0.1773426235,
-0.0218245015,
0.0199650098,
-0.4476981461,
0.1567913741,
0.2190750241,
-0.198214218,
0.0974606425,
-0.2478869408,
0.0965182111,
-0.0324613303,
-0.1310718507,
0.2336815596,
0.2506479025,
-0.5099532604,
0.1355234236,
-0.1414470375,
-0.1844234914,
0.1786035895,
0.0470613129,
-0.013371639,
-0.0411127321,
0.1742547303,
-0.7623876333,
0.3165920973,
-0.1788855493,
0.1900552809,
0.0594746061,
-0.1816141754,
0.1207242981,
0.2537691593,
-0.1028541923,
0.3356229663,
-0.0349904746,
-0.523118794,
0.0846733302,
-0.3067091703,
-0.4564948082,
0.3038049042,
-0.3575846553,
0.3665587902,
-0.1958852857,
0.315084815,
0.3337164819,
0.0993262529,
0.0923655257,
-0.0198596884,
0.1061338484,
0.0853918344,
-0.1777106524,
0.2503395677,
0.1215638816,
0.3644583523,
0.2029538453,
0.3083253503,
0.0576009229,
-0.4684824049,
0.3234206736,
-0.3931080997,
0.0375388004,
0.104250744,
0.0386782475,
0.3395083249,
-0.2522576749,
0.3089871109,
0.1465864778,
-0.0660148188,
-0.0955756605,
0.1360980421,
-0.1097237319,
-0.1193593591,
0.1630506963,
0.1692171693,
0.3703481257,
0.3644671142,
-0.0822135508,
0.0035113313,
0.0637500659,
-0.1441778243,
-0.0282292515,
0.1420606226,
-0.0989562944,
-0.2244127244,
0.3118470311,
-0.2024129778,
0.0964985937,
0.1933429539,
0.1441764086,
0.0530509055,
-0.2020270228,
-0.2763195932,
0.2760867774,
0.0468644202,
0.3984253407,
-0.0255295597,
-0.0146949841,
-0.0302964393,
-0.6330456138,
0.147352621,
-0.2354974449,
-0.1206889078,
-0.3019901812,
0.0783712268,
-0.3228674233,
0.0418338031,
0.1446879208,
0.0071425438,
-0.5675174594,
0.0022971174,
0.2356798053,
-0.040466737,
0.0701785088,
-0.0669185892,
-0.3137353361,
0.6049489975,
-0.2892211676,
-0.0028117127,
-0.5583310127,
0.0597385019,
0.0854422003,
0.0307133887,
0.0690540224,
0.2096923441,
0.3410919011,
0.0348375477,
0.0712584332,
-0.2587755919,
0.1375202388,
0.3671418726,
-0.1972149611,
-0.0893814787,
0.020421939,
0.1433387697,
-0.2664320767,
0.238862589,
-0.1036957428,
-0.4493594766,
-0.0378568098,
0.1693825573,
-0.4139086008,
0.1722441614,
-0.0328299887,
0.0564117059,
-0.0866937563,
-0.1806501597,
0.2011318952,
-0.0130642205,
0.2047112584,
0.3151853383,
0.0498376526,
-0.0383826531,
-0.1923557371,
0.1486045867,
-0.1679396331,
-0.4587256908,
0.3519233763,
-0.1713164896,
-0.1477936655,
0.2070528269,
0.0551614352,
0.1059931517,
0.1161223501,
-0.6097694635,
0.2893594801,
-0.2824663818,
0.0281237792,
-0.0854878575,
0.0346327871,
0.3091971278,
-0.0576827638,
0.0163568556,
-0.2320911288,
0.0540943854,
0.1564199626,
0.0065898178,
-0.0831753314,
0.029919222,
0.0104059512,
-0.3959495127,
0.444144696,
-0.0389362797,
0.1681034267,
0.397978723,
0.1006597057,
0.4846957326,
-0.3332358003,
0.1686080694,
-0.3442383409,
-0.0842413083,
0.1325344145,
0.1842337698,
0.1962063611,
-0.0537551381,
-0.1722319424,
0.0105926674,
0.0044044196,
-0.2218762785,
-0.0611202568,
-0.5079462528,
0.0127449669,
0.002600769,
0.0114911888,
-0.1859094203,
-0.1508383155,
0.1693349928,
0.1334263831,
0.5717553496,
-0.13404724,
-0.4638614953,
-0.0279980786,
-0.3130032122,
0.2442294657,
-0.2751082182,
-0.0359081067,
-0.1184320301,
-0.0128291566,
0.3601953387,
0.2560435534,
0.310408026,
0.0107172476,
-0.2367499024,
-0.0191605799,
-0.0265235845,
-0.535699904,
0.1173596829,
0.1510368139,
-0.0022136543,
-0.4368467033,
0.16541484,
-0.1191511229,
-0.5349702835,
-0.0801903307,
0.2858900726,
-0.1413326412,
-0.2020371854,
-0.2497860044,
0.0934703127,
0.0612707473,
-0.117500715,
-0.0457969047,
-0.3165147901,
-0.4211546481,
-0.0554824099,
-0.0705458298,
-0.1286265552,
0.2033260912,
0.10388273,
0.214149192,
0.106063731,
-0.0934162736,
0.5110619664,
0.166110456,
0.3581534028,
0.9107128382,
-0.044640664,
-0.265634805,
0.1637271345,
0.0344615877,
0.2740887702,
0.3277540803,
-0.0091779428,
0.3827396035,
-0.0922226235,
0.0102118021,
-0.2542278767,
-0.3056767285,
-0.1365027428,
-0.1869212538,
-0.3803127408,
-0.316940248,
0.5907813311,
0.0083091715,
-0.2317427844,
0.4854335487,
0.5626712441,
-0.2878557742,
0.3857738376,
0.2358469814,
0.9838713408,
-0.1772716641,
0.0812229514,
0.1337612122,
-0.0976812243,
0.1905495077,
-0.2969295979,
-0.0419339575,
-0.2447945029,
-0.399880439,
-0.2160444856,
-0.2909181118,
0.3766041398,
0.3890938759,
0.1521085054,
0.106970489,
-0.3283904195,
0.1717345119,
-0.1524018943,
0.0609429479,
-0.3589853644,
-0.4290207624,
-0.4078111053,
0.0921132565,
0.1940684766,
0.0279371981,
-0.0268977359,
0.1983842999,
0.1167578399,
-0.1925662011,
-0.0727297142,
-0.0872984007,
-0.371863395,
-0.0995277837,
0.2164993584,
-0.3137662709,
0.3319277763,
0.0594873987,
0.2201468498,
-0.0738486722,
-0.0867246464,
0.1555136442,
0.1360016763,
0.1661958396,
-0.4536580443,
0.2146767974,
0.2008311152,
0.0410225354,
-0.230866611,
0.1811320782,
0.0421473049,
-0.2422099113,
-0.0079098111,
-0.231526494,
-0.0648977309,
-0.0798675045,
0.2335762978,
-0.0316578932,
0.3375005126,
-0.0101269102,
0.0579021201,
-0.0249837767,
0.1941372156,
-0.0251549352,
0.2263504863,
-0.3452507854,
-0.1922561079,
0.0684183463,
0.145020023,
-0.2188834846,
0.2154669017,
0.2166027576,
-0.3611484468,
-0.3672828674,
0.1145811453,
0.5732603073,
-0.8200092912,
-0.0353963673,
0.1304689348,
-0.0201371443,
-0.1083753482,
0.2939609587,
0.0920679048,
0.0358153433,
-0.1064615324,
0.0567699112,
-0.2458817214,
0.2419508249,
-0.127421543,
0.3390809298,
0.0505636707,
-0.5303601623,
0.1395342201,
0.1860037744,
-0.2086117119,
-0.0222780257,
0.169042021,
-0.1958281994,
-0.0635477528,
0.2094285786,
-0.0045033405,
-0.2351345718,
-0.0456194468,
-0.1633236557,
-0.2075600326,
-0.1332042664,
-0.088622421,
0.2002155036,
-0.0326202437,
-0.0785957351,
-0.3392745554,
-0.4105189443,
-0.1677014828,
-0.2065604627,
0.2757324874,
0.1025784537,
0.0300329253,
-0.1021811888,
0.5886266828,
-0.0973772407,
-0.407409668,
0.0635475069,
0.2310923189,
0.4092466235,
0.1268721968,
-0.2562838793,
-0.0187432375,
-0.0799737647,
-0.0105264336,
0.4855701029,
0.2712608576,
-0.1843237132,
-0.0584837943,
0.0346149504,
0.1839807183,
-0.277196914,
0.0525443628,
0.1220447272,
0.1618269831,
-0.2447514236,
0.2144112885,
0.0584880114,
-0.0481412597,
-0.1942311227,
0.1113041416,
0.0692720264,
-0.0840399191,
0.3382109702,
0.3810345531,
0.140619576,
-0.0843543932,
0.0275525898,
0.0296822432,
0.2904466093,
0.1392167807,
0.2014312446,
-0.0209843162,
0.0038977594,
0.4665329754,
0.3974297047,
-0.0417929366,
-0.1978862733,
-0.0551539771,
0.3230114877,
0.2193617672,
0.1007837504,
0.1601338834,
-0.4338374138,
-0.2487110198,
-0.0212130174,
-0.1007901281,
-0.1839487404,
0.0439899266,
0.3703767061,
0.3934576809,
-0.5257890821,
-0.2690367401,
0.0910343751,
-0.00859283,
-0.1007654294,
-0.0235461444,
-0.1616115272,
-0.0259040631,
0.0410806425,
-0.0912399888,
-0.1119711697,
0.3176023364,
0.0411706939,
0.2570936978,
0.0519146211,
0.4102001786,
0.3513190746,
0.0475456007,
0.2566618025,
0.0302045699,
-0.2460515946,
0.1910850257,
0.1403926015,
0.1635120362,
-0.1430165321,
-0.035359472,
-0.1710087657,
-0.1283731312,
0.3038408458,
-0.0325829387,
0.1178201661,
0.2643900514,
0.0730954036,
0.0128321415,
0.1634644717,
0.0399566628,
0.0088365646,
-0.0845971182,
-0.1734225601,
0.494433701,
-0.2157093883,
0.2471071333,
0.1537958831,
-0.12950252,
0.1028577089,
0.0866306797,
0.0296533834,
0.1488039941,
0.5596122742,
-0.3162323534,
-0.1543393433,
-0.2396561056,
0.0132859647,
0.0208273213,
0.6919664741,
0.1588599384,
0.4518475235,
-0.1023011953,
-0.2958513796,
-0.131350562,
-0.1365271062,
0.0269486494,
0.3040646911,
0.324736625,
-0.2221428752,
0.3693711162,
0.2857192755,
0.3169388771,
0.033494398,
0.2022929192,
0.0263134763,
0.0317358375,
0.0865411833,
-0.227899313,
0.3127415478,
-0.4761161506,
-0.2303731441,
0.0193673968,
0.1770937443,
-0.1575979441,
-0.1239935383,
0.2766905427,
0.2105660141,
0.054407414,
0.3564324677,
0.0460314229,
0.3243825138,
0.0022358955,
-0.0187233444,
0.0145060234,
-0.5402619243,
-0.0021695157,
0.08119113,
-0.1059495881,
-0.2795071304,
-0.0309945177,
-0.0478403233,
0.0178749282,
-0.1392126977,
0.1770959049,
0.4349816144,
-0.349601537,
0.0698194876,
-0.1064135805,
-0.156760633,
0.2592367232,
0.0271978639,
0.1648726016,
0.0228759926,
0.1580031365,
0.1100538224,
0.3688215315,
0.0301722158,
-0.0409575775,
0.0816952661,
0.3904677927,
0.3605585098,
-0.1757490635,
-0.5782338977,
-0.0241747051,
0.1788346022,
-0.3058334589,
0.0081834532,
0.3805200458,
-0.0424581841,
0.1322423518,
-0.1377234459,
0.5173618793,
0.0197628774,
0.1178393066,
-0.407161504,
-0.318665117
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 36 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | [
-0.1666768789,
-0.0997224748,
-0.0602355227,
0.2515959144,
-0.0468831956,
0.1143142357,
0.2708076835,
0.0048357891,
0.469778657,
0.1632673889,
-0.037074741,
0.1923090369,
0.1889045686,
0.0169301033,
0.2863856256,
0.1164423227,
-0.0252679437,
0.4686412215,
-0.3328587711,
-0.1243110001,
-0.1999848038,
-0.2028210908,
-0.0752779469,
0.0748859048,
-0.0713152289,
-0.2044893354,
0.1787603796,
-0.143249169,
-0.3065360188,
-0.3528855145,
0.1729181558,
0.3800323308,
-0.1642081738,
0.1244352162,
-0.0001261445,
0.0942899734,
0.0329205282,
0.0948779434,
-0.5260357857,
0.0060269698,
-0.1746385992,
0.0031731282,
0.4379303455,
-0.0186210908,
0.2819119394,
-0.4082459211,
-0.1863090545,
-0.3450860977,
0.31399858,
0.0053226347,
0.0905807167,
-0.0716367066,
-0.0604903512,
0.209438771,
0.5697900653,
0.2733412981,
-0.4536010921,
0.28385818,
-0.1603651494,
-0.0454603061,
-0.2330367416,
-0.01983051,
-0.164919734,
-0.0176150668,
0.3427164257,
-0.0658053532,
-0.2182612717,
-0.4648959041,
0.3253167272,
0.4471846819,
0.869011879,
-0.4102915525,
-0.0729226321,
-0.1844527274,
0.2027647942,
0.0973023623,
0.2856374383,
0.3990592659,
-0.106648095,
0.0758943632,
-0.2127393335,
-0.6784488559,
-0.2574293613,
-0.0711824596,
0.2603639364,
-0.1153421775,
0.0183340404,
0.0501590669,
0.3017891049,
0.0081158513,
0.3686651587,
-0.2238409519,
-0.3648706675,
0.2723338604,
-0.1842782199,
-0.215996623,
-0.3739865124,
0.1744878888,
0.4409633577,
0.1009866595,
0.4295786917,
0.0503217466,
0.217075929,
-0.0717509016,
-0.1252766401,
0.1128388271,
0.150421083,
0.0533882566,
0.2999631166,
0.0077716867,
0.1263808906,
-0.0047518369,
0.1571420431,
-0.2876321971,
-0.0752576664,
-0.1376898438,
-0.0675590038,
-0.1553009748,
0.0428048149,
0.0308060814,
-0.0968293697,
-0.0888145268,
0.1404574662,
0.1764499992,
0.2313398272,
-0.0716210082,
-0.0928626508,
0.3906415999,
-0.2245059907,
-0.1648523062,
0.0656037182,
-0.1498603225,
-0.134866491,
0.4797789752,
0.4003248215,
0.0539176092,
-0.1964549273,
0.47218135,
-0.2374719083,
0.0166780725,
0.3698481321,
-0.3447742462,
0.1794477403,
0.5079674125,
0.1643347591,
-0.1345519722,
-0.0287734866,
0.0166878421,
-0.1465751529,
0.3799901605,
-0.3486209512,
-0.2767960727,
-0.0916241929,
0.0192893595,
0.156079486,
0.1055180952,
-0.8544901609,
0.2341752797,
-0.0627287701,
0.1922184825,
0.3423012197,
0.1384262443,
-0.1474812031,
-0.1924452782,
0.1250506938,
0.4684504867,
-0.3885138333,
0.0869877711,
0.0318106227,
-0.159218505,
-0.1226307377,
0.0867344439,
-0.3584819734,
0.2561983764,
-0.1413200498,
-0.0886121318,
0.4231479764,
0.1055304185,
-0.193240419,
0.2495381236,
0.1716926694,
-0.0479316525,
0.1314125061,
-0.0283832643,
0.0007529185,
0.0692844763,
-0.3884219229,
0.1332307309,
0.312772274,
-0.148754552,
0.1245483235,
-0.2645056844,
0.117108658,
-0.1291521788,
-0.1417374462,
0.357632935,
0.3157829642,
-0.2228240371,
0.1151500568,
-0.1869777888,
-0.0566205904,
0.2461002469,
0.0988698453,
0.0628359541,
-0.0105714425,
0.2677642107,
-0.7945266962,
0.1788482517,
-0.3360007703,
0.057664305,
-0.0180709809,
-0.2592439353,
0.0695410222,
0.1732885092,
-0.086389862,
0.286739707,
-0.0377666913,
-0.5865473151,
0.0224511418,
-0.0337132663,
-0.1333199441,
0.0592193231,
-0.4370775223,
0.2424858063,
-0.2334548533,
0.3700751662,
0.2047594488,
0.1187111959,
0.0710403472,
-0.0198322907,
0.017512884,
0.2195651382,
-0.1529204398,
0.118626073,
0.1463338733,
0.2047603428,
0.1609806567,
0.3847932816,
0.0475856178,
-0.5845122337,
0.388818264,
-0.3807123899,
0.049307175,
-0.0686552376,
0.0091469018,
0.2706065178,
-0.0396313146,
0.3539584875,
0.1418546587,
-0.0684297383,
-0.040580444,
0.1539790779,
-0.0198245179,
-0.3033728898,
0.0530691184,
0.2990089953,
0.4224357605,
0.3638788462,
-0.0066053444,
-0.121909216,
0.1077946723,
-0.0360347703,
0.2045956701,
0.3079282343,
-0.0441272594,
-0.3254674673,
0.0753500611,
-0.1600912362,
0.1006898135,
0.1284569353,
0.1205161735,
0.034425173,
-0.151355952,
-0.2663259208,
0.3290823698,
-0.0247674696,
0.4524423778,
0.1972552389,
0.0525165945,
-0.0429166108,
-0.5053235292,
0.1169962734,
-0.2084614933,
-0.0675217956,
-0.3271875978,
0.0067361239,
-0.2321504503,
-0.0429421514,
0.0692348778,
0.1974295974,
-0.5449181795,
-0.0646307915,
0.2237848043,
-0.0641595498,
0.1264278442,
-0.1384564638,
-0.2107720673,
0.3652670383,
-0.0992825404,
-0.1764005572,
-0.6031213403,
-0.0247923564,
0.1110708416,
-0.0146486862,
0.0877329782,
0.118342571,
0.2117766291,
0.0654745325,
-0.0797164366,
-0.4650190175,
-0.1034693867,
0.2821797132,
-0.0597589351,
-0.1261894703,
0.1421791017,
0.2849064767,
-0.1957385987,
0.1819579005,
-0.1306826621,
-0.2314673364,
-0.1515336484,
0.2393718958,
-0.3711264729,
0.413302958,
-0.0417637378,
-0.0285002645,
0.1013330519,
-0.0524801165,
0.1647360325,
0.140779227,
0.2111324221,
0.1314131916,
0.1692740172,
-0.0328294784,
0.0723701417,
0.0704223737,
-0.1246542037,
-0.2096574008,
0.4650503397,
-0.2878258824,
-0.1776954532,
0.2696316242,
0.0248889942,
0.0481996946,
0.3943350315,
-0.7647733092,
0.4628793299,
-0.2994991541,
0.0385512039,
-0.3009707034,
-0.0657135919,
0.1779265404,
0.190237239,
0.0707082972,
-0.2031704932,
0.1442660689,
0.3033228219,
-0.0519684069,
-0.1278570592,
0.2401958853,
0.3711482584,
-0.4483267665,
0.6514479518,
-0.2132666409,
0.2048830539,
0.3713411391,
0.0653751493,
0.4804439247,
-0.3940525055,
0.3682644665,
-0.3533891141,
0.0440672524,
0.2167502195,
0.2128101885,
0.0239330102,
-0.2817348838,
-0.1636436731,
0.0663920566,
-0.0486387499,
-0.1369581819,
-0.0671557114,
-0.5520759225,
0.1195464805,
0.0210162532,
-0.0450576805,
-0.0029318421,
-0.298391819,
0.0829183608,
-0.0675418526,
0.484874934,
-0.0068186475,
-0.2792012393,
-0.1240629554,
-0.3302901387,
0.0892264694,
-0.1196116731,
0.118120268,
-0.1329018325,
0.2243363857,
0.3356903493,
0.1744421571,
0.1654410362,
-0.2095064819,
-0.0267093237,
-0.0790950283,
0.0380941965,
-0.3711468875,
0.2080155611,
0.0716092363,
-0.0657843128,
-0.494397819,
0.1716093868,
-0.1547257155,
-0.3168125451,
0.0115838861,
0.4513148665,
-0.2096797079,
-0.147944361,
-0.3307108879,
-0.025451161,
-0.0559076443,
-0.1177637205,
-0.0423424095,
-0.3654845357,
-0.411567241,
-0.1679456085,
-0.2127001584,
-0.1215468198,
0.0806563422,
0.0565324873,
0.2683750689,
0.0463493541,
-0.1071776077,
0.3505340815,
-0.0325153284,
0.5019232631,
0.6358849406,
0.056186039,
-0.1729900688,
0.2044605315,
-0.1537905335,
0.1589082479,
0.1165409833,
-0.1232471913,
0.3661243618,
-0.0137463696,
-0.0890681297,
-0.1629223228,
-0.3557829261,
-0.0765865594,
-0.3086437285,
-0.3322860301,
-0.4312341213,
0.5538910627,
0.0869346708,
-0.1268824339,
0.5455659628,
0.4396696985,
-0.4222633243,
0.3849900663,
0.4214799702,
0.8774508238,
-0.1859511435,
0.1374001056,
0.0420107357,
-0.1602691263,
0.051684197,
-0.3475290537,
-0.0553090721,
-0.2762127221,
-0.2480942458,
-0.2208874226,
-0.2604960799,
0.3207471669,
0.5598614812,
0.0758312643,
-0.0168102998,
-0.3847162724,
0.0434473269,
-0.0894950628,
0.2776198387,
-0.2985424995,
-0.3013454378,
-0.3294841945,
-0.0017133651,
0.0805205181,
-0.1858924776,
-0.0120102298,
0.1934577525,
0.1445695758,
-0.2084544003,
0.0309497546,
-0.0524722114,
-0.3397983313,
0.1762105376,
-0.2059484273,
-0.3090371788,
0.3525290489,
0.3789279163,
-0.0324097723,
0.1247442961,
-0.1507905573,
0.0342163406,
0.1641658694,
0.0364576429,
-0.4183193445,
0.2958883643,
-0.007421175,
-0.0325891785,
-0.2283525765,
0.2319411188,
-0.0671025068,
-0.2458572388,
0.0267579984,
-0.2021276802,
-0.0008237406,
-0.0305231977,
0.2954302728,
-0.1471581459,
0.1176412106,
0.0350886174,
-0.0040232195,
-0.0434715971,
0.3414011896,
-0.142995283,
0.1262928098,
-0.445561707,
-0.1689263284,
0.2117101103,
0.2873638272,
0.0582486279,
0.4512855709,
0.114897579,
-0.372648865,
-0.3462503254,
0.2389023304,
0.2295858413,
-0.6402403712,
-0.1173893586,
0.1829472035,
0.0842124745,
-0.1442790926,
0.0859019384,
-0.1411008835,
0.1200366244,
0.0319073983,
-0.0593225025,
-0.133008644,
0.2434150577,
-0.1136930287,
0.2819097638,
0.114882201,
-0.6818988323,
0.2275172621,
0.2323221713,
-0.1118889973,
-0.0881013125,
0.2363081574,
-0.2088970393,
-0.1703198105,
0.3237915039,
-0.0378168933,
-0.1207607165,
-0.0770241991,
-0.1613734066,
-0.081970945,
-0.0679907426,
-0.0786920935,
0.2069289833,
-0.062919952,
-0.0170490053,
-0.3042810559,
-0.4994451702,
-0.2313914299,
-0.1766512394,
0.3165331185,
0.003768045,
0.046587605,
-0.0950724036,
0.5397334695,
-0.0374462567,
-0.5059788823,
0.0949015915,
0.0681319311,
0.312040329,
0.0345157832,
-0.1459196657,
0.1798984557,
-0.0784861222,
-0.1369375885,
0.2776892483,
0.1636312753,
-0.1743121147,
-0.0390992053,
-0.0886484683,
0.1683628708,
-0.2907942533,
-0.049812872,
0.3259468377,
0.0578670576,
-0.4079629779,
0.274827987,
-0.0258511603,
-0.0484587513,
-0.169788748,
0.1993430406,
-0.1215251237,
-0.1191873178,
0.2989694178,
0.2730691433,
0.0533034988,
-0.2868102193,
0.0534575395,
-0.2210311294,
0.0159473736,
0.0093288235,
0.3286039233,
0.0121222418,
-0.020833103,
0.172748521,
0.3737919331,
-0.0068512536,
-0.161745429,
0.1635170132,
0.2933345139,
0.2526711822,
0.0588129684,
0.0566381142,
-0.2255409062,
-0.2934306264,
0.2154271752,
-0.3224658668,
-0.1408234686,
0.1355365664,
0.2070710212,
0.6086524129,
-0.2856200337,
-0.2322923392,
-0.0215821881,
0.0368517898,
-0.0152972052,
-0.1585858613,
-0.1238397956,
0.0329359211,
0.0500571728,
-0.0123469289,
-0.0004821427,
0.2223767936,
0.1357265115,
0.1743846685,
-0.0047157719,
0.7997291684,
0.2598024607,
0.0542510971,
0.1262111664,
-0.0841549635,
-0.268334806,
0.2477653176,
0.0414631329,
0.2554841042,
-0.2757990658,
0.1120379791,
-0.1659213454,
-0.2564070821,
0.3634275198,
-0.0557473339,
0.1121235341,
0.2614704669,
0.242499575,
-0.0933838934,
0.3008230031,
-0.0379584655,
0.0355848558,
-0.2434577048,
0.168268919,
0.4942240417,
0.0066176332,
-0.0879393741,
0.2070050836,
-0.2129439116,
0.2865086496,
-0.0173457265,
0.025147371,
0.1361805648,
0.5175831914,
-0.1937054545,
-0.2439179569,
-0.2746247947,
-0.0198902227,
-0.0908431485,
0.7207260728,
0.0993879661,
0.3605441153,
-0.0419986434,
-0.2870458066,
-0.1729603559,
-0.1709921211,
-0.2053614408,
0.2452678829,
0.3425692618,
0.0046525304,
0.1894655675,
0.3650675714,
0.2575707138,
-0.1026759818,
0.1270701736,
0.1555001736,
-0.0229720213,
-0.0149914334,
-0.0577152036,
0.343426317,
-0.6017377973,
-0.3483433127,
0.0381360911,
0.1895768344,
-0.126394242,
-0.1201361716,
0.1993088573,
0.2455295622,
0.3667795062,
0.4701028764,
0.0451771691,
0.2308686674,
-0.0662702024,
-0.0260925908,
0.1762668788,
-0.4044028223,
-0.0097006038,
0.2698434591,
0.0217326116,
-0.2480506301,
-0.0770386308,
0.1335391402,
0.0351829194,
0.0454136319,
0.0607021935,
0.4718451798,
-0.3078615665,
0.071121648,
0.0982079431,
-0.0478934348,
0.0559053458,
-0.1070273072,
0.1613431722,
0.0645470694,
0.0472760312,
-0.0593667328,
0.1997019947,
-0.0551061928,
-0.0160730872,
0.28070575,
0.4276410341,
0.2663161457,
-0.1641877294,
-0.4257063568,
0.08378499,
0.3360575438,
-0.3001607358,
-0.0754563808,
0.2571478188,
-0.1475953758,
0.2642501593,
-0.1879020333,
0.5215162039,
-0.0773455426,
0.0986890197,
-0.5550120473,
-0.3778085709
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | @lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 23 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | [
-0.1100970656,
-0.4545694888,
-0.1245341375,
0.3275224566,
0.1385050714,
0.066650182,
0.1080088466,
0.0051871324,
0.2907290161,
0.2163161337,
-0.0762574822,
0.3311559558,
0.0758256018,
0.2674564123,
0.3114097416,
0.0753524378,
-0.0126064634,
0.337411195,
-0.4707742631,
-0.0729584172,
-0.0226506758,
-0.1312709153,
-0.0280797891,
0.1429723054,
-0.3697292805,
-0.1202769279,
0.1659021378,
0.1318922639,
-0.4114731252,
-0.3004581034,
0.2799256742,
0.391872257,
-0.2110334933,
0.2840107679,
-0.0001185283,
0.0347917974,
0.014841076,
0.0469429977,
-0.4234538674,
-0.0630002618,
-0.1052793413,
-0.0900127292,
0.5526961088,
0.1363578886,
0.1049984097,
-0.4011054933,
-0.224500671,
-0.1469557136,
0.4965695441,
-0.1221485958,
0.1708035022,
0.4002010822,
-0.0367951132,
0.0012569798,
0.210296914,
0.3903616965,
-0.490552485,
0.2777503133,
0.1035268456,
0.0421914235,
-0.2085116655,
-0.0491254963,
-0.0048567625,
-0.137319237,
0.3756073117,
-0.0360603929,
-0.1985398084,
-0.4639988542,
0.0708648711,
0.3484272361,
0.5639102459,
-0.3297152221,
-0.144635573,
-0.3594788909,
0.2402592152,
-0.0216075834,
0.3293655813,
0.2255374491,
-0.157876879,
0.0673472583,
-0.266338855,
-0.5470796824,
-0.333383441,
-0.2185757607,
0.5047810078,
-0.0769151077,
-0.1086540967,
-0.0129906181,
0.249181509,
-0.0777415261,
0.2917521894,
-0.0805458426,
-0.2887803912,
0.2161272615,
-0.191463843,
-0.3093225062,
-0.2812372446,
0.4735988379,
0.3961884081,
0.4002007246,
0.523963511,
0.0959405676,
0.0720106438,
-0.1174758077,
-0.031717781,
0.1587304771,
0.193553701,
-0.1155330166,
0.2119951099,
0.1582825482,
0.1720875502,
0.009821102,
0.0601813309,
-0.3296577334,
-0.1955470592,
-0.0224681273,
0.1544831395,
-0.1553845853,
0.0939442143,
-0.1374530643,
0.2613370121,
0.063869305,
0.3560952842,
0.0569740385,
0.180692628,
-0.0295457765,
-0.1791049093,
0.3790061176,
-0.248083204,
-0.2792922556,
-0.1047424749,
-0.1694386005,
-0.1806076318,
0.4586043358,
0.4090618789,
-0.112286903,
-0.0887114629,
0.4487029314,
0.0572252013,
-0.0153428232,
0.048490312,
-0.1698324233,
0.1490179151,
0.4378683567,
-0.0290969927,
-0.0705791637,
-0.0994414911,
0.1250170618,
-0.1465254128,
0.2650178075,
-0.3646679819,
-0.4418751299,
0.0444753915,
0.0543170422,
-0.0444457456,
0.0182586983,
-0.7932118177,
0.1292462051,
-0.2953801751,
0.349622637,
0.2732411623,
0.1834332794,
-0.0424467213,
-0.201466009,
0.1859554797,
0.3522908092,
-0.1842114925,
0.0959441215,
0.138786301,
-0.3303409517,
-0.1780181527,
0.1179891601,
-0.3667706847,
0.2427916229,
-0.1544750333,
0.0416446812,
0.4212189317,
-0.0907349363,
-0.0077268584,
-0.0763669163,
-0.0343229286,
0.1033493057,
0.1471958011,
-0.1076355875,
-0.0380747803,
-0.1216006055,
-0.2622414827,
0.175431937,
0.1581322998,
-0.1894267499,
0.0890528038,
-0.220036909,
-0.0470203236,
0.0155238518,
-0.3854589164,
0.1361885071,
0.0694888234,
-0.3777516186,
0.0612148531,
-0.1447187364,
-0.1063738763,
0.0715661719,
-0.0054898453,
0.0905901492,
-0.027594598,
0.2464645803,
-0.824587822,
0.2613978088,
-0.1207311302,
-0.0144081675,
-0.1286077052,
-0.1991345435,
0.0065704351,
0.1967716068,
-0.1613357812,
0.4198440015,
0.0400855094,
-0.663069427,
0.123702541,
-0.2078924626,
-0.4388539791,
0.1259003431,
-0.3588653505,
0.4169156551,
-0.5347789526,
0.1409381181,
0.279804945,
0.002394605,
0.10170836,
0.0857686847,
-0.0059616235,
0.1202664897,
-0.0833944529,
0.2082686424,
0.2024604529,
0.4575897157,
0.3043970168,
0.4158648849,
0.1502271593,
-0.4250662327,
0.2253429443,
-0.4385344982,
-0.0400625654,
-0.0068692639,
-0.0001246379,
0.2602642179,
-0.4774878621,
0.2487122416,
0.0717636496,
-0.0799846649,
-0.0640242398,
0.1609708965,
-0.2656229734,
-0.2145773321,
0.1559645683,
0.1631302536,
0.3208197951,
0.2711211443,
0.0731395409,
-0.0346232429,
0.0183136798,
-0.105354242,
-0.0562521741,
0.1356914341,
0.0144985607,
-0.0940972045,
0.1921983361,
-0.1028647274,
0.1302125752,
0.1553014219,
0.1930710375,
0.0749018863,
-0.1782562435,
-0.3413228989,
0.2432803214,
0.1592383385,
0.3405297697,
-0.0173164196,
-0.0734461248,
-0.0706311464,
-0.5441477895,
0.1775168478,
-0.3389022052,
-0.1754333824,
-0.3400020003,
-0.0805460662,
-0.2896674871,
0.0255497545,
0.0796997175,
-0.2292754948,
-0.5078180432,
0.049662292,
0.3225148022,
-0.0190670788,
-0.0947643146,
-0.0793130547,
-0.0583982021,
0.5088119507,
-0.2279469967,
0.0185196586,
-0.5136082768,
0.1025357991,
0.1898601353,
0.041152399,
0.1310690343,
0.1151970029,
0.3711616397,
-0.0504333377,
0.1480103433,
-0.2743232846,
0.0571415089,
0.2185664773,
-0.1748709828,
-0.0808985531,
0.0650816411,
0.2000825703,
-0.0712435842,
0.1652933061,
0.011965136,
-0.2896598876,
-0.1578965932,
0.098006621,
-0.2179293334,
0.2611682713,
-0.1466183662,
0.0785112828,
0.0847814381,
-0.2372639924,
0.3560937047,
0.0727701709,
0.1659402102,
0.1821750104,
0.1853737831,
0.0225032698,
-0.2359178662,
0.1332661808,
-0.0792165697,
-0.4334352612,
0.4475568235,
-0.2334076166,
-0.2612312138,
0.3169554174,
0.129693523,
0.2379165739,
0.116324082,
-0.5254432559,
0.1258659363,
-0.1705875397,
0.0319620967,
-0.1600883305,
0.0561913811,
0.3184775114,
0.0864023194,
-0.0027334527,
-0.1439159065,
0.1006572917,
0.3076087832,
-0.045894742,
-0.0421250388,
0.0426631272,
0.0149016585,
-0.4100801647,
0.4363577366,
-0.0640631244,
0.2218594104,
0.352868259,
0.1127994582,
0.396458149,
-0.2960091531,
0.2807894349,
-0.5286573172,
-0.0807231963,
0.2156336904,
0.1306062788,
0.4294693768,
0.1301451474,
-0.250613153,
0.0370228328,
0.0122810751,
-0.2276193053,
0.0842489824,
-0.4871129692,
-0.1096764058,
-0.0329921804,
-0.0747420862,
-0.0610880367,
-0.2015198171,
0.1468238384,
-0.0854729265,
0.4783968329,
-0.1560279727,
-0.4461259544,
-0.129057616,
-0.395927161,
0.1136703193,
-0.1200310886,
-0.1101222709,
-0.0130366208,
-0.051196035,
0.3627046645,
0.2612915039,
0.3381397426,
-0.0175809562,
-0.2269538641,
-0.1811384708,
-0.1522101462,
-0.5588302016,
0.2730967104,
-0.0250023529,
0.0530472808,
-0.4321385324,
0.2322057486,
-0.159050405,
-0.4867696166,
-0.0347318351,
0.3422043025,
-0.1691904515,
-0.1565613002,
-0.2592448592,
0.0075490372,
0.0096305218,
-0.1962578595,
0.0238095243,
-0.3379903436,
-0.3770412505,
-0.2375993431,
-0.1367362291,
-0.0702635795,
0.0693274662,
0.1305483878,
0.3056543767,
-0.049102366,
-0.0501072742,
0.6013352871,
0.1318716705,
0.3350691497,
0.7355263829,
0.0471778661,
-0.3311440945,
-0.0033868568,
-0.0484331511,
0.3059708178,
0.3620961308,
-0.0146424957,
0.274954468,
-0.1106644049,
-0.0342353843,
-0.4976652563,
-0.2990255058,
0.0701591671,
-0.2617881298,
-0.2227221429,
-0.2190459222,
0.5680626631,
0.018996466,
-0.1520605832,
0.5435664654,
0.7026253343,
-0.2865083814,
0.3620839417,
0.2507550716,
1.0189743042,
-0.1258428544,
0.1765019745,
0.1644603908,
-0.1596137136,
0.2215940803,
-0.1565441638,
-0.0728098154,
-0.1108187735,
-0.1812835932,
-0.1127723753,
-0.2024476975,
0.2349397987,
0.3957487643,
0.079757899,
0.0002263843,
-0.350566864,
0.0246778447,
-0.2778591514,
0.1437403411,
-0.3000412285,
-0.5094460249,
-0.5215590596,
0.0904544815,
0.1492138356,
-0.0668032467,
-0.0609567389,
0.1719691157,
0.0723223984,
-0.1597865373,
0.0820629373,
-0.1538576186,
-0.2308878601,
-0.0509242192,
0.1718112975,
-0.2952213883,
0.1772790402,
0.3074367344,
0.1240357161,
-0.0667508692,
-0.1936372817,
0.0937849507,
0.0198963843,
0.0419723019,
-0.451256752,
0.1863235384,
0.0436514802,
-0.1145982072,
-0.1931345761,
-0.0149626061,
0.0689752549,
-0.1675018966,
0.059537746,
-0.1282440573,
-0.0260726679,
-0.177170068,
0.2504003048,
-0.1011198461,
0.2999175787,
0.0453324728,
0.0786274448,
0.1116082519,
0.1935485154,
-0.005319078,
0.350725174,
-0.2922370434,
-0.1005297229,
0.1709353179,
0.1227685362,
-0.3113183975,
0.3636637628,
0.072719641,
-0.3071180582,
-0.3510375321,
0.3143333197,
0.39192608,
-0.8428547978,
-0.0073087621,
0.2356800884,
-0.0706525147,
-0.1913158745,
0.1781539321,
0.1387345493,
-0.0710745007,
0.0633334666,
0.0630551726,
-0.3358901739,
0.3309181035,
0.1152626127,
0.2259655744,
-0.0569996685,
-0.7230477333,
0.190685913,
0.2346633077,
-0.2108669877,
-0.011026674,
0.1433055103,
-0.1370856017,
-0.1973808557,
0.2182659954,
0.0825315788,
-0.2296375334,
-0.0310003683,
-0.1259453446,
-0.258226186,
-0.1548724622,
-0.1498697102,
0.1633937061,
-0.0731902495,
-0.1037513912,
-0.3107846379,
-0.3471993804,
-0.0970345438,
-0.1701601744,
0.2492840886,
0.0597428493,
0.1258670688,
-0.2683152854,
0.6817311645,
0.1024313346,
-0.4241311848,
0.123700738,
0.2305527478,
0.4535216093,
0.1163687035,
-0.3404818177,
-0.1207613945,
-0.1914928257,
0.2119703442,
0.3374480903,
0.3766674995,
-0.1355811507,
-0.1138694361,
0.0466496497,
0.156505391,
-0.3454877436,
0.0947078541,
0.399951607,
0.0542446859,
-0.2553439736,
0.2509410679,
0.0872726217,
0.0465142243,
-0.0608862303,
0.2509107888,
0.0469507389,
-0.1093305349,
0.2647153735,
0.2352204174,
0.220865339,
-0.1022060737,
0.0490366295,
-0.1480416059,
0.1447733492,
0.0304694232,
0.1158181503,
-0.2176096439,
-0.0858726129,
0.3323890567,
0.4036591947,
-0.0065655913,
-0.0435486138,
-0.0266869068,
0.4827597141,
0.1713669598,
0.1913902164,
0.1979715824,
-0.2922001183,
-0.3643683791,
-0.0274738483,
-0.1032731757,
-0.1535485089,
0.1526004821,
0.4873873889,
0.3485183418,
-0.43626827,
-0.276021421,
-0.0571556389,
-0.0304016471,
-0.0383336544,
-0.1758434922,
-0.1453132033,
-0.0165432654,
-0.0856228843,
-0.0803147852,
-0.016051814,
0.2937101424,
0.0897770748,
0.2287436426,
0.0639606938,
0.3939080834,
0.2061115056,
0.1510293186,
0.3409267664,
0.0631589442,
0.0059546102,
0.3230858147,
0.0947479606,
0.2646944523,
-0.1124229804,
-0.0500249863,
-0.1727469116,
-0.0082480907,
0.303237021,
-0.092509456,
0.0496075153,
0.3993671536,
0.1748819798,
0.1327620149,
0.1311962456,
0.0755117685,
-0.0372754484,
-0.1949142367,
-0.0889998153,
0.4191941321,
-0.0188641101,
0.1095528379,
0.0970699191,
-0.2161710858,
-0.0350928344,
-0.0308073331,
-0.0494227707,
0.0970056131,
0.4881447256,
-0.2978167832,
-0.2739188075,
-0.2831571102,
0.0307260677,
0.0582157634,
0.894806385,
0.2400969863,
0.2643409967,
0.0113207959,
-0.3547378778,
-0.2399243563,
-0.0330055691,
-0.0751701891,
0.2713893652,
0.1888169348,
-0.1306461096,
0.2097885311,
0.4919033945,
0.240050897,
-0.1573126465,
0.1594813466,
-0.0028054062,
-0.066430904,
0.0140241496,
0.0303638075,
0.1939197481,
-0.4093898237,
-0.1508574933,
0.1641544104,
0.2551959157,
-0.1288656443,
0.0609903447,
0.2979825735,
0.046996247,
0.2677921057,
0.3522817791,
0.1014787033,
0.1359046102,
0.0656998754,
-0.096444428,
-0.0508313663,
-0.4565628171,
0.0010539037,
0.2205655128,
-0.0074122348,
-0.308529079,
-0.1222026125,
0.034591347,
0.0705059469,
-0.0084910747,
0.003095259,
0.2791025937,
-0.2836877108,
0.0735958442,
0.1059358716,
-0.0550238341,
0.1909139901,
0.0099865953,
-0.0054555931,
0.0161597542,
0.0496664345,
0.046462778,
0.4059769213,
0.064109467,
-0.0398201458,
0.1455321759,
0.3363784552,
0.3294087648,
-0.1950826943,
-0.5431337953,
0.0223272853,
0.0680248514,
-0.3204876781,
-0.0192940943,
0.5207043886,
-0.192907989,
0.0761841312,
-0.1330620795,
0.6729959249,
0.035143245,
0.2069905847,
-0.2796560228,
-0.2860949337
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 24 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | [
-0.3103678823,
-0.209383592,
-0.146432355,
0.2652353942,
0.0345697738,
0.0666943341,
0.2737095654,
0.113288559,
0.3428302109,
0.2253295183,
0.0225783847,
0.5258625746,
0.0204505976,
0.1348217726,
0.2148839533,
0.2104864568,
-0.0567544587,
0.3835603893,
-0.3702233732,
-0.0217933021,
-0.0132304626,
-0.2425345182,
-0.0369563624,
0.165425837,
-0.3527927995,
-0.1516539901,
0.2050919533,
-0.0799774379,
-0.3733310401,
-0.3553419113,
0.2808739841,
0.3713863492,
-0.2569585145,
0.2140730768,
-0.0001159839,
0.0817525014,
0.1164758205,
0.1294046044,
-0.3511272669,
0.0271335337,
-0.2709638774,
-0.0506312959,
0.53300035,
0.048189681,
0.1740213186,
-0.3140256703,
-0.3261057436,
-0.2373573929,
0.3075523376,
-0.1084174439,
0.1901614815,
0.1338146627,
-0.1258651465,
0.0214219894,
0.3372375071,
0.2644141614,
-0.5166214705,
0.1766561121,
0.0029491731,
0.0186856333,
-0.2683082521,
-0.0692393631,
-0.0806635842,
-0.1670562774,
0.2791844606,
-0.1535368115,
-0.1141779497,
-0.4275371432,
0.0803015977,
0.2599161267,
0.7489737272,
-0.3426680565,
-0.1013402492,
-0.2271206677,
0.2399842888,
0.0463199541,
0.2915190458,
0.2484013885,
-0.1438122243,
0.0492911562,
-0.3220917881,
-0.5807153583,
-0.3312956393,
-0.2287509739,
0.3389681578,
-0.1010696739,
-0.0031776763,
-0.0043584299,
0.2739903033,
-0.0322463922,
0.6454585791,
-0.0957826823,
-0.4226688147,
0.1684316248,
-0.2579936981,
-0.3451001644,
-0.2567851841,
0.3940750659,
0.269752413,
0.3345094621,
0.5258706212,
0.0830112323,
0.1021839231,
-0.0601602644,
-0.0829812437,
0.1526264846,
0.3308387995,
-0.0539746471,
0.2798464,
-0.0290623493,
0.0941075087,
0.0300744493,
0.0683989301,
-0.4570539892,
-0.173643738,
0.0321197212,
-0.0016696602,
-0.1858100742,
0.0548645966,
-0.1981117725,
0.1823124886,
0.0743920654,
0.3349526525,
0.0447430573,
0.2945012748,
0.0740874559,
-0.183194235,
0.2993353009,
-0.209532395,
-0.1715043783,
-0.0472711176,
-0.2076269388,
-0.2439625561,
0.321162194,
0.3855162859,
0.0219372958,
-0.1519090682,
0.4505896568,
-0.063512966,
0.0171690006,
0.2573390603,
-0.1818992645,
0.1704491973,
0.5423359871,
0.0090394272,
-0.1620634347,
-0.1104332656,
0.0282394178,
-0.0701754317,
0.4509626031,
-0.4174426198,
-0.3716728985,
0.0600934699,
0.1057708785,
-0.0788251162,
-0.0629552379,
-0.7715759277,
0.0448148549,
-0.1329561174,
0.3094382286,
0.2648724318,
0.1242683083,
-0.0766550079,
-0.2044765055,
0.0895229131,
0.2795028389,
-0.3330898285,
0.1844021529,
-0.0560634397,
-0.2037723511,
-0.1754716486,
-0.0012650056,
-0.4258306623,
0.200517863,
-0.1304036677,
0.011864854,
0.5192419291,
-0.0667947903,
-0.0070451363,
0.0726576895,
0.0436770543,
-0.0900362805,
0.1525601745,
-0.063597627,
-0.0286900271,
-0.1447895616,
-0.2948603928,
0.0517013073,
0.2370395809,
-0.1687287986,
0.1082210615,
-0.2682802379,
0.0947845727,
-0.0910404176,
-0.2780421078,
0.1210112274,
0.2302225679,
-0.234246999,
0.1505141407,
-0.1324555278,
-0.1091561988,
0.1529870182,
0.0997963324,
-0.0965345725,
-0.0026661989,
0.1729295254,
-0.6459121704,
0.2446269244,
-0.1348223686,
-0.0035566213,
-0.014318198,
-0.2581925392,
0.0553366505,
0.1292535365,
-0.1676238924,
0.396889329,
0.0644267946,
-0.7594505548,
-0.0210419465,
-0.2730541527,
-0.3172907233,
0.0633028597,
-0.3434701562,
0.2090673298,
-0.3996977806,
0.1945395917,
0.2741888762,
0.0175568853,
0.0969062001,
0.0465888232,
-0.0056083561,
0.1921325773,
-0.1821300536,
0.216233328,
0.2495953441,
0.3024957776,
0.2750135362,
0.3957773745,
0.0631694198,
-0.4625013769,
0.4302767813,
-0.4933478832,
-0.0508707799,
-0.0299596693,
0.0575816818,
0.2281270027,
-0.4388939738,
0.2713941932,
0.0143620437,
-0.064069204,
-0.0025124999,
0.1378726661,
-0.1525088251,
-0.196737051,
0.0699671283,
0.2555827796,
0.25783059,
0.2911313474,
0.1528061628,
-0.0244936999,
0.0216727164,
0.079690434,
-0.0018178035,
0.1429061592,
0.0162567068,
-0.1354295462,
0.111112304,
0.0136048878,
0.2229941189,
0.1735731512,
0.0848784894,
-0.0212468822,
-0.1328102797,
-0.3586786389,
0.3063271344,
0.1005613878,
0.4162051976,
0.0529245362,
-0.0220043752,
-0.1683461368,
-0.5321383476,
0.1023724675,
-0.2003422678,
-0.1142189056,
-0.3129299879,
-0.1056992933,
-0.3163561523,
-0.0081687113,
0.0785484836,
-0.1067345664,
-0.4908871353,
-0.0413647518,
0.3447563946,
-0.0384742878,
-0.0207315292,
-0.0190737527,
-0.2208304107,
0.3961042464,
-0.1212587133,
0.0660761818,
-0.6435344815,
-0.022367781,
0.2465202212,
0.1031159386,
0.0695398971,
0.110595651,
0.2626503408,
0.0976543725,
0.1982633621,
-0.210432753,
0.0442118086,
0.1528567225,
-0.0880780146,
-0.1403049678,
0.1137230918,
0.1261760443,
-0.0997870192,
0.1234927475,
-0.122246176,
-0.2544907928,
-0.1200750694,
0.1681581885,
-0.258618623,
0.2979022563,
-0.1329234987,
-0.0157440435,
0.1073457301,
-0.2231792659,
0.1770681143,
0.1241575256,
0.1861981153,
0.1440705359,
0.2328471541,
-0.0193373431,
-0.0556620061,
-0.0799494535,
-0.0262094121,
-0.3828007281,
0.4329155087,
-0.3228122294,
-0.1916916221,
0.3459977806,
0.2078006417,
0.3050366044,
0.1848865002,
-0.4744645357,
0.3793217242,
-0.2185674608,
0.012955117,
-0.2385338545,
-0.0208475757,
0.244688645,
0.1760330051,
-0.0418691933,
-0.1761094034,
0.2295515835,
0.2544281781,
0.043761462,
-0.0548274592,
0.0251073502,
0.0771373659,
-0.3237438798,
0.3563772142,
-0.1245109215,
0.1490377635,
0.2294836938,
0.0269240774,
0.366817385,
-0.3066944182,
0.3087343872,
-0.4477266669,
-0.0415462106,
0.1445004493,
0.0641135648,
0.2390731275,
-0.1201753467,
-0.1601916701,
0.0096520809,
0.1319191307,
-0.1612616926,
-0.0346193537,
-0.7436397076,
-0.1173463017,
-0.0558336042,
-0.0480464734,
-0.0292786155,
-0.2988168001,
0.1522432864,
-0.1356478035,
0.4277971983,
-0.2315807343,
-0.3994404078,
-0.0872967914,
-0.2561006844,
0.0836076438,
-0.1827531606,
0.0100352792,
-0.0118825845,
0.1019518003,
0.2888180315,
0.2473777533,
0.3161109388,
-0.217317,
-0.0904021785,
-0.0167900734,
0.0268065892,
-0.5356786847,
0.2516005635,
0.1003543139,
0.1265268624,
-0.5037959218,
0.1540518105,
0.033389736,
-0.4428295195,
-0.0943353474,
0.3720582724,
-0.2775088549,
-0.2339152396,
-0.2597721517,
0.1157045439,
-0.0050636618,
-0.1438830048,
0.0610014349,
-0.309270978,
-0.5351697206,
-0.3712534904,
-0.2194990665,
-0.2014859021,
0.0451503955,
0.1697089225,
0.275541991,
-0.0576478429,
-0.0901065394,
0.4645031095,
0.010013774,
0.3138619363,
0.5680854917,
0.1147115231,
-0.2208569795,
0.1053470671,
-0.2555281222,
0.3461350501,
0.183343038,
-0.1466763914,
0.2589338422,
-0.1299972534,
-0.1473017037,
-0.2657666206,
-0.3406080604,
-0.0761999413,
-0.2886853218,
-0.1925840974,
-0.4018354118,
0.4588522315,
0.0464709438,
-0.1920521706,
0.6431564093,
0.3190077245,
-0.3394659162,
0.4343407154,
0.3548600972,
0.8494633436,
-0.1127497852,
0.0916338935,
0.0217830949,
-0.0793700889,
0.0984685048,
-0.2582959831,
-0.0308727957,
-0.2190080732,
-0.2396131158,
-0.1552689821,
-0.296715349,
0.3031740785,
0.6141328216,
0.1015935913,
-0.0674713776,
-0.4352980852,
-0.0642317981,
-0.2260583043,
0.1462738216,
-0.2950589359,
-0.3401352167,
-0.3785331249,
0.1125152633,
0.1348387897,
-0.2577762306,
0.0197709221,
0.1866468936,
0.0442518108,
-0.1310452074,
0.1150089055,
-0.0062729707,
-0.1419145167,
0.1525867879,
-0.1189703122,
-0.2175102234,
0.2758842111,
0.3597985804,
0.0238152295,
0.0525274649,
-0.1432894915,
0.2025454193,
0.1643684357,
0.1549890637,
-0.3488693833,
0.1979310811,
0.0289441794,
-0.120305337,
-0.2554784417,
0.0646891668,
0.0931323618,
-0.289629221,
0.2149233222,
-0.0353780985,
0.0891193897,
-0.1722825021,
0.281796664,
-0.0768025517,
0.2213683873,
0.0420482568,
0.1181835085,
0.1777940243,
0.1622173637,
0.1248468533,
0.1956324577,
-0.3417986035,
0.0051923236,
0.1840081662,
0.2707308233,
-0.2205858678,
0.3048520386,
-0.0095323101,
-0.3066759109,
-0.4091406763,
0.4217350781,
0.3146267235,
-0.8149150014,
-0.0572421774,
0.2092864513,
-0.0014711252,
-0.0540961362,
0.0822004452,
-0.0592982061,
0.1220710352,
-0.0522360615,
-0.014666169,
-0.2908224761,
0.2115478516,
0.1122523472,
0.3109156787,
-0.089713186,
-0.7034538388,
0.1804857701,
0.1536325514,
-0.2199939489,
-0.0599917509,
0.2268676609,
-0.1025593504,
-0.3732080758,
0.2789996862,
-0.0280101486,
-0.2221340537,
-0.0012285447,
-0.09534695,
-0.1374148577,
-0.1694262624,
-0.141426757,
0.1486064941,
-0.0452480726,
-0.0276263412,
-0.3236451149,
-0.3971845806,
-0.2167582214,
-0.0718019456,
0.2295224518,
0.0195030328,
0.0725384727,
-0.1225273386,
0.6832393408,
-0.0225253608,
-0.3817602098,
0.1587916017,
0.135639742,
0.3880698383,
0.1000990421,
-0.1560023874,
0.0220112149,
-0.1547561139,
0.1818912625,
0.2245162427,
0.0930378661,
-0.011963998,
-0.0983691514,
0.0272615477,
0.1843196005,
-0.3156688809,
0.0274684262,
0.3971514404,
0.097307682,
-0.3781380653,
0.2585870624,
0.1290524453,
0.0012023725,
-0.1575754136,
0.2228888273,
0.0566261262,
-0.1367579252,
0.1579706669,
0.2353888601,
0.0697356761,
-0.2357996702,
0.0800210983,
-0.1176937371,
-0.0643167421,
0.0803123564,
0.2674281895,
-0.1702556163,
-0.1227637976,
0.2504900694,
0.2941710353,
-0.0121871186,
0.130335182,
0.1312680393,
0.4220907092,
0.4682115912,
0.0644308776,
0.0893927887,
-0.1402354836,
-0.3395056129,
-0.0389650725,
-0.198929742,
-0.2140468061,
0.2471102476,
0.2983278632,
0.4900268316,
-0.311579138,
-0.1952569783,
-0.0586150177,
0.002210459,
0.0599647053,
-0.2511169314,
-0.1193673387,
0.0283697825,
-0.1294395924,
-0.0732683241,
0.1970205158,
0.2804989517,
0.139581278,
0.2168688327,
0.1357162595,
0.6554518938,
0.2773422003,
0.1334078461,
0.2608631551,
-0.0865957588,
-0.150775373,
0.30105564,
0.0982850343,
0.2140383422,
-0.2161130756,
0.0128246695,
-0.1068077013,
-0.0141804619,
0.3038367033,
-0.1228852272,
-0.0021903403,
0.3791875541,
0.1692742407,
0.1502940655,
0.1970704794,
0.0862879381,
-0.0042296853,
-0.2414924353,
0.0157358572,
0.4444572926,
0.0776923373,
0.1533195674,
0.3310971856,
-0.356751889,
0.1181739047,
0.0079831257,
0.0646657497,
0.0585179403,
0.6564629078,
-0.3163785934,
-0.279933989,
-0.3861469626,
0.0366572738,
-0.0452191792,
0.8656639457,
-0.008355245,
0.2765960693,
0.0494277738,
-0.284250766,
-0.2294549048,
-0.0662243664,
-0.0475875437,
0.3431773186,
0.228407383,
-0.1373749375,
0.2349413335,
0.4011735618,
0.2569221258,
-0.1622017622,
0.200643748,
0.0988547653,
-0.1066656038,
0.0774332955,
0.0570644177,
0.3371536434,
-0.5004720688,
-0.203907758,
0.1073565856,
0.2701492608,
-0.0749053359,
-0.0041897222,
0.1313370615,
0.3006614149,
0.4070837498,
0.4192459583,
0.0541682877,
0.2003681809,
0.0273271799,
0.0839659646,
-0.025934672,
-0.4960830808,
-0.0011239006,
0.212631464,
0.0638608038,
-0.3875549436,
-0.0927985832,
0.1831554621,
0.0277683847,
-0.1626907289,
-0.0997519791,
0.3595460057,
-0.2504120171,
0.024056213,
0.1289914995,
-0.0077831987,
0.0447150171,
-0.0787098929,
0.0542052761,
0.0227095429,
0.1066961139,
0.0210295003,
0.2980058193,
0.0833553374,
-0.1187908053,
0.2398762256,
0.3707805872,
0.2511378825,
-0.1286706626,
-0.3679944575,
-0.0019753429,
0.2696501613,
-0.2883360088,
0.0905907974,
0.4025951922,
-0.0758804157,
0.1464561075,
-0.1101844758,
0.5680813789,
-0.0156495329,
0.1962845773,
-0.4282815456,
-0.3301556408
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 94 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | [
-0.2009667307,
0.2520237267,
-0.1304932833,
0.0798936486,
0.1809326559,
0.3571425378,
0.3119643331,
0.1849831194,
0.1644607782,
-0.0163467042,
-0.0213758387,
0.3338292539,
-0.0963024572,
0.1983851343,
0.1711072326,
0.0399824381,
0.11463397,
-0.063079454,
0.3094628453,
-0.1812991798,
-0.2011342645,
-0.0329794027,
-0.0578614548,
-0.2001818419,
-0.3019787967,
-0.0922155082,
-0.2026933879,
0.0341943353,
-0.3976997733,
-0.6076430082,
0.0248834826,
0.3334518373,
0.1742966473,
0.0735344514,
-0.000107235,
-0.159661144,
0.1788146049,
-0.2395664901,
-0.0191533174,
-0.1502265185,
-0.2650316954,
-0.4221038818,
-0.1440392733,
-0.0700989068,
0.0782826468,
-0.2990443408,
-0.047019504,
-0.142607227,
0.0189226214,
0.4477111399,
0.2050607055,
-0.2106182873,
0.3308574855,
-0.2609887123,
0.4178490341,
0.2113647163,
-0.1037405357,
0.3762669861,
0.4526174664,
0.0936254784,
0.0395132862,
0.1774765998,
-0.1239312813,
0.1795837134,
0.3749468029,
-0.0451226085,
0.357760936,
-0.5386648178,
0.2289717048,
0.3996185064,
1.1531600952,
-0.2931377888,
-0.3107600808,
-0.4575536847,
0.1056200713,
-0.1025075093,
0.1988971829,
0.3195008934,
0.0421363749,
0.153098762,
0.123883374,
-0.3448564708,
-0.2380987108,
0.1258865148,
0.1208826154,
0.4693540931,
-0.0495388806,
-0.0461796112,
0.2738634944,
-0.0765384659,
0.0914464816,
-0.0086069815,
-0.2317646593,
0.1363529861,
0.1594580114,
-0.0646354556,
-0.284611851,
-0.1053544655,
0.2494055182,
-0.0171725955,
-0.0379190184,
0.0125728687,
-0.1057558581,
0.3409814239,
0.1243557781,
-0.1768718064,
0.1651769727,
0.2110916525,
0.1014958844,
-0.2915715575,
0.332811892,
-0.1448078305,
-0.1592108607,
-0.152974844,
0.0148059083,
-0.0020568222,
-0.1087304726,
-0.2182011008,
0.0389910378,
-0.023660792,
0.0868688226,
-0.1800808012,
0.0146845737,
0.1623935699,
0.1409132481,
-0.225751847,
-0.2854692936,
0.1749254465,
0.0696321428,
-0.1272713691,
-0.0241918303,
0.2270143032,
-0.1285208166,
0.1915758401,
0.3013635576,
-0.0326031148,
0.2947962582,
0.2256809622,
-0.136958167,
-0.1198655814,
0.2090932727,
-0.0301326308,
0.2764084935,
0.3786618412,
-0.0219724718,
0.0751832575,
-0.0591326356,
-0.4303905368,
-0.2476124614,
0.1332641542,
-0.4022578597,
-0.2395641506,
-0.4142953753,
0.2273339331,
-0.1181675643,
-0.0451686531,
-0.2261713147,
0.2805585861,
0.0936191306,
-0.1459255666,
0.2434442788,
0.2106729746,
-0.3568452001,
-0.280534476,
0.0597082116,
0.4360629916,
-0.4021860659,
-0.005940883,
-0.0924027488,
-0.0220788196,
-0.1453585625,
-0.1148246974,
-0.2623159289,
0.4330623448,
-0.3410651982,
0.2678818703,
0.4367038906,
-0.4631897211,
-0.248802036,
0.1513610184,
0.0247617885,
-0.2738644481,
0.1768344939,
0.0510145016,
0.528844595,
-0.1293238699,
-0.2133080214,
-0.0302907508,
-0.1984534264,
-0.1061874181,
-0.1198971272,
0.0688979104,
0.0974698961,
0.0927449316,
0.0935570076,
-0.0396655686,
0.4201056957,
0.1274106503,
-0.00382142,
-0.0719759688,
0.1842218488,
0.3900682032,
0.2178637981,
0.2241284847,
-0.0349151716,
-0.0805128291,
-0.4013002515,
0.1436463743,
0.1019424275,
0.2396577597,
0.0087048002,
-0.2792172134,
-0.3434492946,
-0.1810733974,
-0.3264997005,
-0.3358734548,
0.1371121705,
0.0958834738,
-0.2006123513,
0.1670177728,
-0.1382453442,
0.2745995522,
0.064767912,
0.1290214807,
-0.2127904296,
-0.035639111,
-0.2517778277,
-0.005852202,
0.2262319922,
0.0662213489,
0.2643676698,
0.0570804551,
-0.0368256047,
0.2464053482,
0.1964489371,
0.258933872,
0.2621418238,
0.5404540896,
0.4105025828,
-0.2865334153,
0.3115126789,
-0.337636441,
0.1178432703,
-0.2898558676,
-0.399273783,
0.0765099972,
-0.1542876959,
-0.1191553399,
-0.1171763167,
-0.0508107916,
0.180927515,
0.0152328545,
-0.1221301556,
-0.4397414327,
-0.1711905152,
0.0106515437,
0.0177944805,
0.0007565003,
0.2007203847,
0.1873477697,
0.6095919609,
-0.1133485511,
0.147642538,
0.0923633575,
-0.1258236468,
-0.028907435,
0.1834840178,
0.2011348605,
0.1320296973,
0.2399761528,
0.2614587843,
0.0891628265,
-0.0447774492,
-0.2854478955,
0.1424062401,
-0.0416222438,
-0.029398201,
0.2343936712,
-0.225278765,
-0.0814027786,
-0.2844701409,
-0.1078715771,
0.1900338382,
0.3333035409,
-0.2733850479,
-0.2253768742,
-0.2778772414,
-0.0811988637,
-0.2023283243,
-0.2605314851,
-0.4937744439,
-0.3111183643,
0.0932645276,
0.2138172686,
0.0015653571,
-0.0029052873,
-0.2456214279,
-0.0235086586,
-0.2265375704,
0.1571206748,
-0.2096744329,
-0.2361391187,
-0.1060385853,
0.0858782753,
0.4665777683,
0.4596538544,
0.5857225657,
-0.2945283055,
0.2909274101,
-0.3250325024,
-0.4925009906,
0.1065503731,
-0.1111656502,
0.3061677516,
0.0278483965,
0.0064204959,
-0.0330510624,
-0.0431218557,
0.0325089246,
0.0170204546,
-0.0860798135,
-0.1726717651,
-0.0578185059,
-0.1768980026,
-0.0446688645,
-0.5428532958,
-0.184692353,
-0.3722653091,
0.0926661864,
-0.141379118,
0.1481264979,
0.1080595106,
0.0608187579,
0.2076725811,
-0.1641063392,
0.2128448933,
-0.2528633773,
-0.0471615605,
0.483152777,
-0.3762440383,
-0.2860786021,
0.5221700072,
0.0618427284,
0.3283829987,
-0.2235668004,
-0.2752349675,
0.1938797385,
0.2008599341,
0.0614611171,
-0.0204017404,
-0.0826196447,
0.2799644172,
0.2153718621,
0.0446462594,
-0.2033181936,
-0.2075477839,
-0.1618234962,
-0.0651315674,
-0.0120493248,
0.0391638391,
0.1518170536,
-0.0432341285,
0.4195069671,
0.0300059915,
0.1842859685,
0.3928278685,
-0.0128645608,
0.3791912496,
0.0470498204,
-0.3830392659,
0.1977315098,
0.040177878,
0.1801682413,
0.2621791065,
0.0809963867,
0.1486770213,
-0.0885647684,
-0.1598249525,
-0.3769285083,
-0.2243568152,
0.197024554,
-0.1406928897,
0.096130535,
-0.1944377273,
0.0117480382,
-0.1141679585,
-0.2063040882,
0.2016545236,
0.824631393,
-0.1158844903,
0.1593087167,
-0.3845017254,
0.2631758451,
-0.0273773186,
0.0666646585,
0.1726115048,
0.1781699806,
-0.3565506041,
0.2146837562,
-0.0305372085,
0.2248925865,
0.3928492367,
-0.740640521,
-0.0574418157,
0.2093595713,
0.1787931323,
0.1652438939,
-0.0393435471,
-0.0803124756,
0.1039105803,
0.1280384362,
0.2370578349,
-0.2050427794,
-0.1506269276,
-0.1625536233,
0.0157615934,
0.1063739061,
-0.2557650506,
-0.0409354568,
-0.2579032779,
-0.5642451048,
-0.0782642066,
0.1524727046,
-0.2003748268,
-0.261546731,
-0.2212116122,
0.195874691,
0.1203877181,
0.2747460306,
0.0823180452,
0.0588773414,
0.2790195346,
0.0877269432,
0.2392881513,
0.0709758401,
0.7544965744,
0.3973068297,
-0.2398382723,
-0.3075881004,
0.0601384863,
-0.807431221,
0.3809866905,
0.0540098511,
0.2422095835,
0.0558553897,
0.2597580552,
-0.4497739077,
-0.1920722872,
0.0220504031,
0.0874502584,
0.0080110831,
-0.3625234663,
-0.6086063385,
0.3206203282,
0.2070431262,
-0.0592228286,
0.2183653712,
-0.1070625558,
-0.3987125456,
-0.1290477365,
0.2311452776,
0.9148774147,
0.0308577847,
-0.1712227315,
-0.3451574445,
-0.4033822715,
0.1548524499,
-0.3034472764,
-0.0884215832,
-0.221805498,
0.1109472588,
-0.0989174321,
-0.0335406251,
0.4710517824,
0.2911983132,
-0.2942736149,
0.0700267106,
0.2238089442,
0.2063956857,
-0.051806014,
0.7011325359,
-0.3197647929,
-0.3344281614,
0.308904767,
0.1733635515,
-0.0158109665,
0.0151839443,
-0.0882290676,
-0.4142894745,
-0.1256170869,
-0.0210398454,
-0.4336161315,
-0.299739629,
-0.0721496195,
-0.2690710425,
-0.2709860504,
-0.0649748221,
0.4915098846,
0.2541736066,
0.5265599489,
0.1324872524,
-0.4326538444,
0.0483921729,
0.0332511589,
-0.2202475965,
-0.1651024967,
-0.1230400503,
0.4145584702,
-0.1207268909,
-0.2863665521,
0.0005600943,
-0.0733185112,
-0.0285635889,
-0.2847561538,
-0.0850121826,
0.2072333097,
-0.2811368704,
0.1283923686,
-0.1535323709,
-0.0904168263,
-0.2006105334,
0.1820025295,
0.2120551914,
-0.0714700148,
0.0506918654,
0.0995879248,
-0.0841392428,
-0.1222509146,
0.2139970064,
-0.2150967419,
-0.0058412869,
0.070458062,
0.1020492539,
-0.2353194058,
-0.3233815432,
0.070252724,
0.0886450037,
-0.2820443511,
-0.3095582128,
0.0614127927,
-0.0352440327,
0.0950572416,
0.1328798085,
0.2042709738,
-0.0185090452,
0.000506019,
-0.3790470362,
-0.3702394962,
0.0342241004,
-0.2673853338,
0.1535259932,
-0.2898294032,
-0.2604180574,
0.224522844,
0.1190141514,
-0.3590901494,
-0.0504849367,
-0.0110527975,
0.132203117,
0.079983376,
0.1367361695,
-0.2101823688,
-0.3123737276,
0.0132988701,
0.0580880158,
-0.2618294954,
-0.1395927519,
-0.159297362,
0.1427099705,
0.0574812219,
0.0153550282,
-0.1745446473,
-0.2434614897,
-0.272467494,
-0.0781409889,
0.0927742794,
-0.0785051659,
-0.0112110684,
0.2574882507,
0.1386412084,
0.2418692261,
0.1323316097,
0.0255111642,
-0.0375772491,
0.1836920679,
0.0215506461,
-0.1092887968,
-0.1287727952,
0.0987939686,
0.2268554568,
0.2050512135,
0.0678645149,
-0.0804054588,
0.3333835602,
-0.1049417332,
0.3814503253,
0.5024673343,
-0.0427529998,
0.1786155701,
-0.2168623656,
0.0869576335,
0.3599407375,
0.2423608899,
-0.1757742912,
-0.1600546539,
0.4079788625,
-0.1084471419,
0.0340231657,
0.2446230501,
0.6767519116,
0.095791392,
-0.2147061229,
0.123372674,
0.3482161462,
-0.1065703481,
0.1027780399,
0.3946239054,
-0.3101720512,
0.096842736,
0.3800019622,
0.3323700428,
-0.0092319343,
0.2448045611,
0.0727632418,
0.2660256624,
0.3410685956,
0.2237116694,
0.3017823398,
-0.3540911078,
0.3159092069,
0.230985254,
0.2680964768,
0.1732631922,
0.119452849,
0.0512715653,
0.2235281467,
-0.2030752748,
-0.0023636834,
0.0438614041,
-0.1717476994,
0.251370877,
-0.1015842706,
-0.1802258939,
-0.0769731179,
-0.1295684874,
0.047091078,
-0.2133479416,
-0.0673357174,
-0.1005150899,
-0.1876312494,
-0.050835453,
0.1021478996,
-0.0571985878,
-0.0003614756,
-0.209327206,
0.0606581122,
-0.0896801949,
-0.2043674886,
0.284409225,
0.1165173799,
0.3416533172,
0.0779170096,
0.01257776,
0.1170873865,
-0.0561452359,
-0.2006206661,
0.1499146968,
0.5387471914,
0.079777129,
0.1669760495,
0.1917856932,
0.1372158676,
-0.0568483099,
-0.0080061657,
-0.0328726172,
-0.1629110873,
0.106856592,
-0.1778680831,
0.173020184,
-0.1983297467,
-0.1582742929,
0.0420843735,
-0.220803529,
-0.3285652697,
0.7464051843,
0.0114620449,
0.0166646279,
-0.2216931432,
0.0808436126,
0.2176810056,
0.2572937012,
0.2359849811,
0.0511278771,
-0.0788504854,
0.044208996,
-0.7780936956,
-0.0200136062,
-0.2156761587,
-0.0004589534,
0.1460185051,
-0.2096678913,
0.3006262779,
0.2180904746,
0.2118473649,
0.0158511326,
0.1395217031,
0.1853699237,
-0.0782911703,
-0.2735224068,
0.0768785402,
0.1883658916,
-0.0298585203,
0.0039622448,
0.2491551042,
0.1665067524,
0.0615223274,
-0.3908047676,
0.2039910406,
0.0418252163,
0.101374045,
0.5442782044,
-0.0910798386,
0.5890607238,
-0.210847795,
0.0496781059,
-0.0082777413,
0.3336321414,
-0.0740554258,
0.4311031699,
0.0965912938,
0.1571968496,
-0.1267200261,
-0.0782226026,
-0.2770254314,
0.1978086978,
-0.0521989986,
0.0593080521,
-0.5329073668,
0.0613825768,
0.0637990236,
-0.0955713987,
0.1046891138,
-0.1525368243,
0.0139464168,
-0.0539961345,
-0.1509705186,
-0.254134208,
0.4322204888,
-0.057926137,
-0.0995428935,
0.0221745856,
0.020163551,
0.4060530961,
0.2004689723,
-0.8780807257,
0.0528768115,
0.4730551243,
-0.0019280488,
-0.1871086359,
0.096455656,
-0.0150669813,
0.0571799055,
-0.1643058956,
0.1252112538,
0.0883670449,
-0.1450269222,
-0.1271704882,
-0.1554461718
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | @lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 51 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
@lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | [
-0.1834502369,
0.2513653636,
-0.1089650914,
0.197436288,
0.1107169837,
0.3312234581,
0.3745903969,
0.1719959825,
0.0320845582,
0.0473188497,
0.0283440165,
0.2382667959,
-0.0631278381,
0.0927071348,
0.0448256135,
0.0325521156,
0.0677399114,
-0.0201823022,
0.2282106876,
-0.2717784345,
-0.1881775111,
-0.0120635163,
-0.1926743835,
-0.2600641847,
-0.2601346374,
-0.1061910167,
-0.1686321348,
0.1679513156,
-0.4175152183,
-0.5190832019,
0.0170217622,
0.2592076361,
0.1794569492,
0.0692575425,
-0.000108684,
-0.2377834022,
0.2274885625,
-0.2222406566,
0.0124144107,
-0.0039694975,
-0.2563704252,
-0.3920830488,
-0.2011698186,
-0.1843144,
0.0813642666,
-0.1434144825,
-0.1106911749,
-0.2170638293,
0.1881169379,
0.5700100064,
0.2062798589,
-0.2507900596,
0.3001175225,
-0.2143568546,
0.4646460414,
0.2964090109,
-0.144517079,
0.3467394114,
0.5063987374,
0.1164290532,
0.0515991487,
0.1678491682,
-0.1461412162,
0.1065744609,
0.3118915558,
-0.133236751,
0.4417339265,
-0.5099035501,
0.2496391684,
0.3756164014,
1.1862673759,
-0.1897369176,
-0.1440569013,
-0.3056924045,
0.0748558193,
-0.0499143824,
0.1617726684,
0.3897084594,
0.0141749196,
0.1441621631,
0.1383728087,
-0.3804755211,
-0.3181426525,
0.0608471222,
0.1116278172,
0.4195421636,
-0.077964358,
-0.0754211098,
0.1478108466,
-0.0849929675,
0.278485626,
0.0570357367,
-0.2141941339,
0.225955084,
0.1892555505,
-0.1122400239,
-0.3635403812,
-0.1978416741,
0.2118561417,
-0.1735545993,
-0.0536949709,
0.0306306537,
-0.0166818593,
0.2824445069,
0.1840379089,
-0.0989536718,
0.1554632783,
0.2676414549,
0.1074185595,
-0.2280970514,
0.270685792,
-0.0682265311,
-0.228181392,
-0.1300103068,
-0.0250223204,
0.041349411,
-0.0668682903,
-0.345576942,
0.0765682235,
-0.0438404679,
0.0707650706,
-0.1483534724,
0.0131454086,
0.236535877,
0.0193654988,
-0.1580265611,
-0.2276223153,
0.1091497317,
0.0131611973,
-0.1187186092,
0.0190705359,
0.2393930107,
-0.1226382032,
0.1904983521,
0.2675634325,
0.0570892021,
0.206443429,
0.2571184933,
-0.0690382645,
-0.2132616788,
0.2207864076,
-0.0350579657,
0.3134301305,
0.3436416686,
-0.0439309925,
0.0869117305,
-0.0894110128,
-0.3784483075,
-0.1885696054,
0.1912270188,
-0.5235506892,
-0.2824635804,
-0.3953047395,
0.2059356868,
-0.075278677,
0.0405861326,
-0.1238838285,
0.2208990604,
0.1222836226,
-0.1311616451,
0.1706708074,
0.131592378,
-0.3794524074,
-0.2931361496,
-0.0147849852,
0.4112756252,
-0.3530884683,
0.0920699239,
-0.1462332457,
0.0608906485,
-0.0973646492,
0.0338929705,
-0.3202525079,
0.3123338819,
-0.3375391364,
0.1994767338,
0.4865382612,
-0.6444002986,
-0.2490532994,
0.1680991352,
0.0996949226,
-0.3379288018,
0.1998401582,
-0.0761593282,
0.5245922208,
-0.247261852,
-0.196139425,
-0.1009452194,
-0.1206155196,
-0.044988513,
-0.2056627721,
0.002441444,
-0.0279931966,
0.1433912218,
0.0930473655,
-0.0085911313,
0.5141078234,
0.1115488932,
0.1113002971,
-0.1130467579,
0.2350053042,
0.5121802092,
0.2780082524,
0.0733766928,
-0.0036751048,
0.0601930656,
-0.3458782136,
0.1016537771,
0.0381813794,
0.2979981601,
0.0225255229,
-0.2697306573,
-0.3078659177,
-0.2098496258,
-0.3070384562,
-0.3466337323,
0.1509179026,
0.0721355006,
-0.2899815142,
0.1742568463,
-0.0583881065,
0.2585523427,
-0.0225536041,
-0.0229608845,
-0.1868531257,
0.0147312516,
-0.1795285195,
0.0714110583,
0.3635663986,
0.1179976687,
0.2934601307,
0.0673183128,
-0.0512960851,
0.1727048457,
0.1681960523,
0.1867886186,
0.1970175356,
0.5089140534,
0.3485876322,
-0.3183594644,
0.3216241598,
-0.3319415748,
0.105960317,
-0.2947619557,
-0.3823412359,
0.0937602818,
-0.0875142962,
-0.1562453359,
-0.0966536105,
-0.055042468,
0.1559996456,
-0.0430997796,
-0.1213434339,
-0.4186567366,
-0.2139495909,
0.1382647157,
0.0492482819,
0.0433534086,
0.1525082886,
0.259198755,
0.6951574683,
-0.0893650874,
0.1233369187,
0.0477642752,
-0.0444063954,
-0.0458780862,
0.2343299687,
0.1793372482,
0.2504529059,
0.195084095,
0.2688601911,
0.1685175449,
-0.0256388485,
-0.2154762149,
0.1143743172,
-0.1564904749,
0.0548339598,
0.1859874576,
-0.2092631459,
-0.0657518879,
-0.2408760041,
0.0019679039,
0.1768084913,
0.3061314821,
-0.2752851248,
-0.3088805079,
-0.2675401568,
-0.0104097743,
-0.2429442257,
-0.1492000669,
-0.5167269111,
-0.174337998,
0.063810572,
0.1178997904,
0.0370090641,
-0.0429780073,
-0.1899587363,
0.1676544249,
-0.200388059,
0.25058797,
-0.1858587563,
-0.2149975151,
-0.2299166173,
0.0794585273,
0.463672787,
0.5456966162,
0.5315334201,
-0.2386775762,
0.2786901295,
-0.3564066887,
-0.4406825602,
0.0858712569,
-0.0464325771,
0.314512223,
-0.061988607,
0.1028819978,
-0.0427768752,
0.0008731005,
-0.0199089386,
0.1111816764,
-0.1103437245,
-0.2667788565,
0.0028242837,
-0.3291389942,
-0.039019417,
-0.594435513,
-0.1559260637,
-0.3857371807,
0.0730229989,
-0.1942427307,
0.2018293291,
0.0708697289,
-0.0117160855,
0.1006477475,
-0.1449375898,
0.1740793586,
-0.3098456562,
-0.1001517028,
0.4769842625,
-0.4734628201,
-0.4342749119,
0.5254815221,
0.0934794247,
0.3927610815,
-0.1414428204,
-0.3136378825,
0.2251269966,
0.1927727312,
-0.2009271085,
-0.1818774343,
-0.0200743712,
0.3267468214,
0.2113698423,
0.0663216561,
-0.2078844309,
-0.2461217493,
-0.0968589187,
-0.0086200256,
0.0727902204,
-0.0197772831,
0.0684675127,
-0.0048041982,
0.3320696056,
-0.0051234527,
0.2867012322,
0.3341184855,
-0.0068128374,
0.3818556666,
0.1176934764,
-0.3456972241,
0.2654699683,
0.0527136885,
0.1426991522,
0.3200283051,
0.1204757765,
-0.0220796783,
-0.1031060442,
-0.2067569643,
-0.4100354314,
-0.2712363303,
0.162035659,
-0.1131090969,
0.1874022186,
-0.137145862,
0.0095384931,
-0.1100552753,
-0.1893765032,
0.1881657094,
0.8119857311,
-0.1975712776,
0.1577807665,
-0.4499602318,
0.2427948117,
-0.0247809123,
0.0462703556,
0.2061755955,
0.2806918323,
-0.4020808041,
0.239663586,
0.0146310851,
0.200717032,
0.3344189823,
-0.6941185594,
-0.0313097835,
0.2469898909,
0.2598072886,
0.1858718693,
-0.062718533,
-0.0573009327,
0.1486290693,
0.0910739228,
0.2207508832,
-0.1442537606,
-0.2056884915,
-0.1584259719,
-0.0439017229,
0.0089815902,
-0.3161907494,
-0.0455073491,
-0.2997611165,
-0.4207756817,
-0.1131020114,
0.2319420427,
-0.2269568592,
-0.3190454245,
-0.3087126613,
0.211004734,
0.07801456,
0.2206956446,
0.0608878843,
0.0806515366,
0.2518093288,
0.0275459029,
0.2140596509,
0.0965086371,
0.7797986865,
0.3743671775,
-0.2350524515,
-0.2111730278,
0.080494687,
-0.8616188765,
0.3713944554,
0.2012148499,
0.1970304698,
-0.0521992408,
0.1709301472,
-0.4224601984,
-0.0202349145,
0.0221519079,
0.1396090537,
-0.0443698764,
-0.5320263505,
-0.6122274995,
0.284560442,
0.0895266756,
-0.0566588603,
0.2384883314,
-0.0280618202,
-0.362226665,
-0.1342231631,
0.3018086255,
1.0777894258,
0.0165214241,
-0.1200803518,
-0.3285024762,
-0.3679199219,
0.1422359943,
-0.2336844653,
-0.1009962112,
-0.3288815022,
0.1367960423,
-0.0901474878,
-0.0349897295,
0.4635133445,
0.3538165689,
-0.3111799359,
0.0179574918,
0.3268077374,
0.0849096552,
-0.0209021773,
0.6265952587,
-0.2827165127,
-0.2374102026,
0.2187502533,
0.1473238915,
0.062922664,
-0.0408317484,
-0.1525383741,
-0.4462299645,
-0.2223456353,
-0.0729608983,
-0.3919941783,
-0.2424044013,
-0.1159102097,
-0.2178746909,
-0.2231838256,
-0.0555169731,
0.5816287398,
0.2121002376,
0.4717834592,
0.2234111577,
-0.4294225872,
0.1494554281,
0.1007505208,
-0.2574828267,
-0.0995201468,
-0.0714193061,
0.3697445393,
-0.2065974474,
-0.29428339,
-0.045279745,
-0.2211466134,
-0.0304518342,
-0.3569752574,
0.0559321828,
0.2022375017,
-0.2618914545,
0.0648245737,
-0.1766845435,
-0.1356133521,
-0.061103262,
0.1754429936,
0.1777978241,
0.0257324539,
0.1413972974,
0.1436350048,
-0.1016761214,
-0.0200806186,
0.258336097,
-0.0717075169,
-0.1364505291,
0.1451640725,
0.0553953126,
-0.1846816987,
-0.3555240631,
0.0928394496,
0.0359539799,
-0.1644411385,
-0.3201911151,
0.0094085028,
-0.040877115,
0.1302225888,
0.190541029,
0.1497414261,
-0.0666365176,
-0.0087633608,
-0.3896550536,
-0.3948333561,
0.0196486302,
-0.3371906281,
0.1265924573,
-0.301438868,
-0.293075949,
0.2061996907,
0.0458546467,
-0.3518181741,
0.0463755429,
-0.019558493,
0.1141613126,
0.1615620404,
0.1669154018,
-0.2081950754,
-0.2656026781,
-0.0043308628,
0.0928428918,
-0.2421129942,
-0.149366796,
-0.1026929617,
0.1623726487,
0.0701813251,
0.0178049169,
-0.1415640563,
-0.3763382435,
-0.2985939085,
0.0253547356,
0.0363173299,
-0.0169917457,
-0.0258338731,
0.2100511491,
0.148545742,
0.2503188848,
0.0477388687,
0.1812375337,
-0.0379155874,
0.1779118329,
-0.0292302817,
-0.022249626,
-0.1017934382,
0.0560358837,
0.3677479923,
0.1331212223,
-0.0008754672,
-0.0102630937,
0.382704854,
-0.0980426893,
0.3971009254,
0.3668283522,
-0.1173238009,
0.2400014699,
-0.2710822225,
0.1094225049,
0.3641292155,
0.2230260223,
-0.1283957064,
-0.1766912639,
0.2905826867,
-0.1728890985,
-0.052951213,
0.2369322777,
0.6858569384,
0.0375597179,
-0.1410787851,
0.1213959306,
0.3364260793,
-0.0668801218,
-0.0066335807,
0.3637584746,
-0.3210895956,
0.0258628931,
0.3457220793,
0.2561424077,
0.0270671826,
0.2112294286,
0.2078402638,
0.1571727097,
0.406730473,
0.2854524553,
0.2139691114,
-0.3492392302,
0.347560674,
0.2237098366,
0.2600421906,
0.2057801634,
0.1239282712,
0.0404879302,
0.3550105989,
-0.2074647248,
-0.0038652129,
0.0089759706,
-0.1628413349,
0.2597955465,
0.0170352254,
-0.1725341529,
-0.1071031839,
-0.1465838104,
-0.0477203093,
-0.1930259466,
-0.1966567039,
-0.0388096459,
-0.1325842589,
0.0795843974,
0.1474017799,
0.0681679696,
-0.0064934413,
-0.1807652563,
0.0624093041,
-0.1190540269,
-0.138816148,
0.3226594329,
0.09854009,
0.3425763845,
0.1869329959,
0.022783909,
0.0996562615,
0.0919608101,
-0.1991125792,
0.1540687978,
0.4935735464,
0.1587818265,
0.2255326957,
0.1589424312,
0.1160510629,
-0.0620892681,
-0.0103722457,
-0.1367607117,
-0.2212294936,
0.1200183854,
-0.1878759265,
0.1110758707,
-0.2756795883,
-0.1833448112,
-0.1039047316,
-0.2305719554,
-0.3599987328,
0.7408988476,
-0.0314783975,
0.0653126538,
-0.2456747293,
0.0934501141,
0.1306947768,
0.3288660645,
0.2729088962,
0.0109777404,
-0.0049299635,
-0.1226837561,
-0.8196242452,
0.0528868549,
-0.1650007218,
0.0105891749,
0.1823821366,
-0.1700479239,
0.2991138697,
0.1511562914,
0.2017654926,
-0.0778428242,
0.1487455964,
0.2435834706,
-0.1664607674,
-0.2381109446,
0.1285687834,
0.1655010134,
-0.0566770732,
-0.0922164097,
0.2949960828,
0.2356586456,
0.0685037598,
-0.3996609747,
0.2636982501,
0.0268787239,
0.1268489361,
0.4562399089,
-0.0580273382,
0.5467053056,
-0.2063587457,
0.0199127626,
-0.0018066944,
0.3925991058,
0.0396027267,
0.4238409102,
0.1667916477,
0.1110910401,
-0.106358856,
-0.073586598,
-0.2389905006,
0.2278807461,
-0.0945501849,
0.1150513738,
-0.5860778093,
0.0501818508,
0.0824645534,
-0.0306459181,
0.0794336647,
-0.1160820574,
-0.0748554096,
-0.0965915695,
-0.2133958638,
-0.1823932081,
0.4661235213,
-0.1344537586,
-0.1463748068,
0.1090361625,
0.1153693348,
0.2609989643,
0.1699076444,
-0.8375416994,
0.0024469132,
0.4686846435,
-0.0455612652,
-0.1749616414,
0.0643826053,
-0.0900103599,
0.0679630637,
-0.1342229694,
0.1363298297,
0.0832287818,
-0.1187568381,
-0.1518056095,
-0.1722619385
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 19 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | [
-0.2152336538,
0.2649826109,
-0.1258544028,
0.1683344841,
0.1531974524,
0.2933406532,
0.29241395,
0.1951220781,
0.03196555,
0.0209627748,
0.0500942022,
0.2049099058,
-0.079276301,
0.1006223708,
-0.0031887074,
0.0226524621,
0.0487907827,
-0.050570786,
0.2097900659,
-0.253251195,
-0.1110619903,
-0.0721068755,
-0.1680808663,
-0.2169417143,
-0.279617399,
-0.1498719007,
-0.1210673004,
0.1117401198,
-0.5551066399,
-0.5625540018,
-0.056959305,
0.323643297,
0.2056471854,
0.0757123381,
-0.0001088561,
-0.23723194,
0.313105613,
-0.1969532669,
0.0418358743,
-0.0134434113,
-0.3186576068,
-0.3487755954,
-0.1418906748,
-0.1790463328,
0.0734006464,
-0.1668996513,
-0.0970634744,
-0.1242041886,
0.2178795487,
0.613963902,
0.1920520067,
-0.1768244058,
0.3337363899,
-0.1620911509,
0.3486063778,
0.2870314717,
-0.1387577951,
0.3151704073,
0.4389581978,
0.132805571,
-0.0011081545,
0.1729692519,
-0.088803269,
0.0742473379,
0.3544274569,
-0.1740667075,
0.431399554,
-0.564296782,
0.1373414397,
0.4447303712,
1.1757179499,
-0.2466042191,
-0.1476296037,
-0.2829690874,
0.059534207,
0.0118935509,
0.2021715939,
0.3936532438,
0.0201636013,
0.1482877135,
0.0523762777,
-0.2962441444,
-0.3464110494,
0.0273293462,
0.163835749,
0.4449430406,
-0.0405866802,
-0.1621432751,
0.2406285554,
-0.0741210878,
0.2830767035,
-0.0057197395,
-0.2207937986,
0.2731742561,
0.1728254259,
-0.1457784772,
-0.344843775,
-0.1132449657,
0.2412942201,
-0.1358949095,
-0.0598472841,
0.0647012815,
-0.0455055982,
0.3457221091,
0.1996951997,
-0.0847963765,
0.1849912554,
0.2489358783,
0.113956131,
-0.1927762181,
0.2991897762,
-0.079542242,
-0.1490659863,
-0.1413851976,
0.0583410114,
0.1044750288,
-0.1232854724,
-0.3599950671,
0.0938885212,
0.0048556542,
0.1318531036,
-0.2013227195,
0.0663121045,
0.1965323091,
0.0225521252,
-0.1681503206,
-0.3468318582,
0.0708108917,
0.0511126108,
-0.1352706552,
0.0246487726,
0.2435911894,
-0.1412160099,
0.1586892605,
0.2875903547,
-0.0040696673,
0.2766805887,
0.1819747835,
-0.0620021373,
-0.2075313181,
0.2298636883,
-0.0740521699,
0.3065570593,
0.3483853936,
-0.064521797,
-0.0704310164,
-0.1015463248,
-0.3342266083,
-0.2269043475,
0.1176793575,
-0.3748675287,
-0.3299017549,
-0.3605082333,
0.2099007815,
-0.0848122761,
0.0780489817,
-0.082462512,
0.2596982718,
0.1449094415,
-0.0913850218,
0.1895811707,
0.1342037767,
-0.2440784723,
-0.2446254194,
-0.0487651154,
0.3932786286,
-0.3049044907,
0.1307746023,
-0.1182969436,
-0.0363223515,
-0.1880005002,
0.0069952561,
-0.3300701082,
0.3603711128,
-0.2602697611,
0.231406197,
0.5233443379,
-0.6178889871,
-0.1908919662,
0.2019525766,
0.118891418,
-0.3653548956,
0.1996654272,
-0.122530669,
0.5625218749,
-0.3021686971,
-0.2760793269,
-0.0837180018,
-0.2096389681,
-0.086234659,
-0.2159945667,
0.0658369213,
0.0004534072,
0.0925545543,
0.0871250629,
-0.1019034833,
0.4954626858,
0.1496518403,
0.0810180381,
-0.1325368285,
0.18712309,
0.4300883412,
0.3101040125,
0.0051648817,
-0.0187908895,
0.0297724083,
-0.3159399629,
0.0068745865,
0.0792020559,
0.3121463954,
0.0602490753,
-0.273597151,
-0.3091377914,
-0.2166576982,
-0.329451263,
-0.3489197493,
0.1617866606,
-0.012899722,
-0.1812310517,
0.198126778,
-0.146534279,
0.2803254426,
-0.0659630746,
0.0461556241,
-0.1705377698,
-0.0243124571,
-0.2345084101,
0.076574184,
0.2834572494,
0.1128885075,
0.235771358,
0.0597468466,
-0.0370492935,
0.2769046128,
0.2859250009,
0.1337732971,
0.1228958368,
0.5454464555,
0.4069086313,
-0.3052136004,
0.3498118222,
-0.3611950874,
0.0050805658,
-0.2370347083,
-0.391662091,
0.0973381028,
-0.2199726403,
-0.1376937479,
-0.0911868438,
-0.0909058601,
0.1451147199,
-0.0685640499,
-0.2191043496,
-0.4312101603,
-0.2434508204,
0.0687406361,
0.0123265693,
0.0651025623,
0.0938148946,
0.1581424177,
0.6090506315,
-0.1135691106,
0.1335077733,
0.0739225596,
0.0357704796,
-0.1065808311,
0.2230447233,
0.2026788294,
0.1815530211,
0.137719661,
0.2089839578,
0.1837084144,
-0.1069416106,
-0.2314973474,
0.1740406752,
-0.1743572205,
0.0433533154,
0.196057722,
-0.3303847015,
-0.010740879,
-0.2964422405,
-0.0297245868,
0.1803778708,
0.315551728,
-0.270726949,
-0.2726542652,
-0.2162565738,
-0.020458065,
-0.1964754313,
-0.1118420362,
-0.4751443565,
-0.2135227174,
0.1043403745,
0.1421671361,
0.0377765223,
-0.0222378187,
-0.2111311406,
0.0961314663,
-0.1743659973,
0.2197695673,
-0.2013040185,
-0.2292472869,
-0.1875761449,
0.098502703,
0.4579512179,
0.5772248507,
0.4862649739,
-0.2476478368,
0.2650541961,
-0.2878772914,
-0.5216219425,
0.0734955221,
-0.0353742428,
0.299456358,
-0.0513308868,
0.0952729732,
-0.0173348226,
0.0269206967,
-0.0814487115,
0.099843733,
-0.1886219233,
-0.2019715607,
-0.0158068184,
-0.3107985556,
-0.0289343689,
-0.5464144945,
-0.1762471199,
-0.3826168478,
0.0350003615,
-0.2176810652,
0.179150179,
0.0694593862,
0.0290390495,
0.089963682,
-0.2129890472,
0.2034205198,
-0.2511438727,
-0.0605331957,
0.4775666893,
-0.4183159173,
-0.4114861786,
0.4373292029,
0.0720372424,
0.3632577658,
-0.1737964004,
-0.2805134952,
0.1150464267,
0.1619202495,
-0.124461785,
-0.0841158256,
-0.0052797282,
0.3449584842,
0.2725785077,
0.0719379857,
-0.1632325649,
-0.2096582949,
-0.1451489478,
0.0296206251,
0.1314595491,
-0.0244177394,
0.0678770766,
0.010066065,
0.3052532971,
0.0540943593,
0.1991351098,
0.3418984711,
0.0613149777,
0.4321851134,
0.1601077765,
-0.3594633639,
0.3082564175,
0.0489327498,
0.1297255903,
0.1927375942,
0.0335305929,
0.0281044301,
-0.0965798274,
-0.2087703794,
-0.4129320085,
-0.2539669871,
0.131639719,
-0.1952826381,
0.2315446585,
-0.1327525824,
0.0222196542,
0.053053759,
-0.1492291093,
0.2017636597,
0.8191648126,
-0.1292894632,
0.1271846443,
-0.453255713,
0.228445828,
-0.0516447537,
-0.015897993,
0.1734143198,
0.2282454073,
-0.3218297958,
0.2446127981,
-0.0393140092,
0.1863498837,
0.2971588075,
-0.7153291106,
-0.0542861745,
0.1525992155,
0.2156136632,
0.2075251043,
-0.0387248248,
-0.0837580115,
0.0629181787,
0.1047915593,
0.2673687339,
-0.2166025788,
-0.2455442995,
-0.1294276267,
-0.0640396625,
0.0481542237,
-0.3154782057,
-0.0323933922,
-0.3209100664,
-0.4009485543,
-0.0511267036,
0.198669821,
-0.2276544273,
-0.3399576247,
-0.1832657307,
0.1877876073,
0.116581507,
0.2261723131,
0.1751225889,
0.1291009039,
0.1373226196,
0.0111457901,
0.2052291036,
0.0505243577,
0.7449353933,
0.297652334,
-0.2528682053,
-0.2054595947,
-0.0036787468,
-0.8008687496,
0.3690814972,
0.0956028998,
0.2241000831,
-0.124048464,
0.1854744554,
-0.3875858784,
-0.0491373427,
0.1045405641,
0.0718086958,
-0.0467888713,
-0.5273839235,
-0.6166071296,
0.2538609803,
0.1003488004,
-0.0705330372,
0.1761017293,
-0.0395003855,
-0.3721260726,
-0.1266321242,
0.4468616545,
0.9914247394,
0.1262834668,
-0.2045710683,
-0.3064755499,
-0.3717340231,
0.0521416403,
-0.3224629164,
-0.1487304121,
-0.3163976967,
0.1355246603,
-0.1069197357,
-0.0483630076,
0.4740164876,
0.3395564556,
-0.392321676,
0.0449132621,
0.3716099262,
0.04689008,
-0.0455368571,
0.7784314752,
-0.3186796904,
-0.236744523,
0.2047437578,
0.1485617459,
0.0571700297,
-0.0882895514,
-0.1142434552,
-0.4399165213,
-0.0712072179,
-0.1273903996,
-0.40613392,
-0.292045325,
-0.1056120247,
-0.2347761244,
-0.2092840821,
-0.035360422,
0.5741903186,
0.2189937234,
0.5228847861,
0.255845964,
-0.4140743315,
0.1219183877,
0.1434280276,
-0.2566816509,
-0.1321093887,
-0.1000361741,
0.4088860154,
-0.1934930533,
-0.2750219703,
-0.1079204455,
-0.2019631714,
0.0491349734,
-0.2805181444,
0.0071553104,
0.1233348772,
-0.2930015922,
0.1004424319,
-0.213969335,
-0.1978074908,
-0.0495637842,
0.1837705225,
0.1370212883,
-0.050151553,
0.245044902,
0.1658846587,
-0.0298103299,
-0.0288016144,
0.1847516298,
-0.1599302441,
-0.142368421,
0.0201718546,
0.0121790105,
-0.1760815531,
-0.3845851421,
0.1371569037,
0.0841646492,
-0.1237304881,
-0.3440844119,
-0.0246256981,
-0.1328617632,
0.1308334172,
0.1908018887,
0.2627683282,
-0.0222689696,
0.0386843458,
-0.3699917793,
-0.3957140744,
0.0528619811,
-0.2782196105,
0.1491163373,
-0.3459348381,
-0.3236504793,
0.169055447,
0.118330121,
-0.34984532,
-0.0151389521,
0.0446689501,
0.1642177403,
0.1244404912,
0.1052189693,
-0.2040432394,
-0.2846586406,
-0.0039755651,
0.1282729805,
-0.2372687161,
-0.1594516039,
-0.0915247947,
0.1603150815,
0.1045827791,
0.0281223767,
-0.2157406211,
-0.2551916838,
-0.3554726839,
0.0011783446,
0.0073996773,
-0.0960797295,
-0.0068955496,
0.3142222464,
0.1840313524,
0.1750303209,
0.0671585575,
0.0826023147,
-0.0483654402,
0.1907183528,
0.0435030535,
-0.0402090438,
-0.0470534638,
0.0312538743,
0.3196413219,
0.2204012722,
0.0649546906,
-0.0196179803,
0.3327841759,
-0.0325328782,
0.3535744548,
0.281824708,
-0.0220322162,
0.3322064281,
-0.1898076683,
0.0579260401,
0.3802911639,
0.2299612612,
-0.1175769418,
-0.170920983,
0.2942970693,
-0.1555040777,
-0.0043478371,
0.2126317471,
0.6201543212,
0.1270665675,
-0.1094940901,
0.1265182346,
0.3498150408,
-0.0843793377,
0.0455260426,
0.3721077144,
-0.3127888441,
0.019932881,
0.356880486,
0.2236067951,
-0.0063331649,
0.1896833628,
0.2401068062,
0.1889016181,
0.3412063122,
0.2725249529,
0.2309564203,
-0.2262352854,
0.3366860151,
0.2455379069,
0.2224623263,
0.1677642018,
0.1381459534,
-0.0108237602,
0.3621063232,
-0.2713710666,
-0.0867329091,
0.0033022023,
-0.1210901961,
0.2783877552,
-0.0242261104,
-0.2079209387,
-0.0468393825,
-0.133020401,
0.0422122627,
-0.1667910069,
-0.1251580268,
-0.01579668,
-0.1101197079,
0.0106612314,
0.2138075978,
0.1266691238,
0.0282291602,
-0.1807094812,
0.125224188,
-0.0621807538,
-0.1493131816,
0.2648479342,
0.1393440664,
0.3062215447,
0.17575939,
-0.0334938765,
0.1038620174,
0.0300803315,
-0.235314846,
0.2081426531,
0.5127871037,
0.2062881738,
0.2292840034,
0.1889368594,
0.1285617501,
-0.0238437969,
0.0586725809,
-0.1586121172,
-0.2941414416,
0.1155857965,
-0.1173786148,
0.2776811421,
-0.2918069363,
-0.1561425328,
-0.0570001379,
-0.2494590431,
-0.319322437,
0.7226653099,
-0.0276613496,
0.0874958634,
-0.3053849638,
0.0853746757,
0.2062307149,
0.3919093013,
0.2959231436,
0.0102292486,
-0.0385657512,
-0.1136145145,
-0.800552249,
0.015500919,
-0.1430627108,
0.0058488571,
0.2073900104,
-0.2092229724,
0.2151767462,
0.2566598654,
0.175708279,
-0.0690445825,
0.0997634083,
0.259283483,
-0.1479418427,
-0.1535756737,
0.144017607,
0.2405224442,
-0.0750674605,
-0.035172075,
0.2898608744,
0.1919383556,
0.0664851069,
-0.3775224686,
0.2747050822,
0.0822803229,
0.181514591,
0.4061073363,
0.0140216863,
0.5782948136,
-0.1807852834,
0.0282420292,
0.010386317,
0.4699589312,
-0.0213536974,
0.3975283802,
0.1731476337,
0.1162143797,
-0.0753773898,
-0.0973031968,
-0.2672234178,
0.2640325725,
-0.0881975815,
0.040476732,
-0.5378921032,
-0.054422792,
0.163933754,
-0.1024202183,
0.068928726,
-0.1300312132,
-0.0429742634,
-0.0417474024,
-0.1964352131,
-0.254235208,
0.4476867914,
-0.0841646567,
-0.1262210906,
0.0838514119,
0.0271255653,
0.2643661797,
0.132854268,
-0.902405858,
0.0439193994,
0.4450137913,
-0.0812542513,
-0.1915596724,
0.0787958577,
0.0548194125,
0.0558446757,
-0.1466097385,
0.1313603669,
0.0618942082,
-0.1494856626,
-0.2070049345,
-0.1194759235
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 36 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | [
-0.2866168618,
0.0945326909,
-0.1588486135,
0.1930642426,
0.276850462,
0.3156138062,
0.2661201656,
0.1931914836,
0.1716580242,
0.0233467873,
-0.1272898912,
0.2412942052,
-0.1264386624,
0.3597061932,
0.0914904326,
0.0267628301,
0.0860835165,
-0.1028400958,
0.159258619,
-0.1845791042,
-0.169145003,
0.0174298659,
-0.0448661,
-0.1641505659,
-0.328638345,
-0.1695869714,
-0.1266563535,
0.0994561389,
-0.4146161377,
-0.5925247669,
-0.0502107963,
0.3110640347,
0.204149738,
0.115807429,
-0.0001010503,
-0.2147539258,
0.2052173167,
-0.2352299839,
-0.0139359562,
-0.112676315,
-0.1768781096,
-0.3279271424,
-0.0601526573,
-0.1067196578,
-0.0597192049,
-0.2925769985,
-0.0841802284,
-0.1904506534,
0.1979563832,
0.4205389917,
0.2686114013,
-0.1103506535,
0.3406370282,
-0.2250533551,
0.2706680298,
0.16779764,
-0.1239820197,
0.4374405444,
0.4900671244,
0.1472703069,
-0.0278126113,
0.2508872151,
-0.0373201333,
0.1873495132,
0.4723612666,
-0.082031928,
0.2423786968,
-0.5768039227,
0.2497012019,
0.3870514035,
1.0391317606,
-0.2780824006,
-0.2529757023,
-0.3692147732,
0.0836822912,
-0.1449424326,
0.1967419237,
0.3172577024,
0.0246468764,
0.1599291563,
-0.0215225294,
-0.3635124564,
-0.2490011305,
0.030808039,
0.1805024147,
0.4041183591,
-0.1161133796,
-0.1012218595,
0.2309458554,
-0.1453733146,
-0.028073946,
0.1179566085,
-0.1853632778,
0.1704544276,
0.1257974058,
-0.0564188287,
-0.3248479366,
-0.068451494,
0.2850894928,
-0.0259750951,
-0.0902740732,
0.0960410014,
-0.0556005873,
0.2861752212,
0.1512069255,
-0.1017971709,
0.185731858,
0.1761161238,
0.1215500906,
-0.1716195494,
0.213310346,
-0.1562376469,
-0.153007403,
-0.0906533673,
-0.0275151152,
-0.0823391601,
-0.15275684,
-0.2826737463,
0.0200317688,
-0.1133883893,
0.0969013423,
-0.1256390065,
0.0243132114,
0.2854117155,
0.0740619525,
-0.212534532,
-0.2671317756,
0.1896763891,
-0.0061657084,
-0.141960308,
-0.0466412529,
0.1665450633,
-0.1256682873,
0.2072860152,
0.2524134815,
-0.1257542074,
0.3280339539,
0.1352377385,
-0.0758280754,
-0.1853524297,
0.1354757547,
0.0137874512,
0.2163780034,
0.2859227061,
-0.0209436733,
0.0056271697,
-0.0394661576,
-0.4076997638,
-0.2394081056,
-0.0369073637,
-0.4110160768,
-0.2267906368,
-0.3655216992,
0.2676394582,
-0.1243195087,
-0.0459319502,
-0.2027344257,
0.3219770789,
0.081215784,
0.0450328737,
0.1662801057,
0.2537734807,
-0.3481631577,
-0.2576189935,
0.0302517023,
0.4434050322,
-0.2620562613,
-0.115665108,
0.0625191778,
-0.0872347429,
-0.1335526854,
0.0185207874,
-0.2578813434,
0.2984239757,
-0.2528004646,
0.26485008,
0.3774802387,
-0.4607779682,
-0.168291688,
0.0759343132,
0.0210005157,
-0.3429540694,
0.1542672813,
-0.045794148,
0.474137485,
-0.1783983558,
-0.1736367345,
0.0215543527,
-0.1356054395,
0.0383154266,
-0.1707607955,
-0.0267436206,
0.0420836806,
0.1477924883,
0.090124242,
-0.0927907154,
0.3923928738,
0.0840132087,
-0.0065961452,
-0.1246606037,
0.1666934639,
0.3540767133,
0.1807698756,
0.1878832579,
-0.0094582932,
-0.1003718078,
-0.4468115866,
0.1082817167,
0.0780502781,
0.2980455756,
-0.0181670282,
-0.3064987361,
-0.3663931787,
-0.2408527732,
-0.397714138,
-0.3615728319,
0.1890878379,
0.0303558204,
-0.1249260604,
0.1889828891,
-0.1747088879,
0.2096571475,
-0.0263160188,
0.1258704066,
-0.2828808427,
-0.0541065857,
-0.1897650659,
-0.0121793868,
0.3533416986,
0.0889370739,
0.2029142678,
-0.0041823885,
-0.0547652729,
0.3221332729,
0.1733801216,
0.2728248537,
0.2341200411,
0.5424050689,
0.3943708241,
-0.3049961627,
0.2806558311,
-0.3187289238,
0.0982843488,
-0.2413080633,
-0.425342083,
0.1217970327,
-0.2108705938,
-0.0855718181,
-0.087822862,
-0.043188706,
0.2023257017,
0.0257897153,
-0.1415568292,
-0.4092409313,
-0.1996079534,
-0.092937842,
0.1340222508,
-0.0142622804,
0.0702901781,
0.1593572348,
0.6423451304,
-0.0103727411,
0.1053343788,
0.1113669872,
-0.1160084531,
0.0188496113,
0.2301194966,
0.1541118473,
0.0834340155,
0.261806339,
0.2813131213,
0.195512116,
0.0121782767,
-0.2820140421,
0.1582179517,
-0.0850908831,
-0.0088794148,
0.1671549678,
-0.209447369,
-0.1137014031,
-0.298253417,
-0.0130098155,
0.1025968269,
0.2986980081,
-0.297252357,
-0.2102068216,
-0.3044344485,
-0.1905400753,
-0.2461329848,
-0.2486098409,
-0.5396836996,
-0.2466230989,
0.0836437196,
0.0687137097,
0.0183682013,
0.0576096028,
-0.1129018068,
0.0185985137,
-0.2259149551,
0.2494393289,
-0.1671553254,
-0.2185424715,
-0.1116601303,
0.1529916823,
0.5170536637,
0.4568581581,
0.6414663196,
-0.3583684564,
0.2536120713,
-0.2470325679,
-0.4476350248,
0.1278038472,
-0.0985560119,
0.2760167122,
0.0628417507,
0.0869509205,
-0.0324173085,
0.0335604958,
0.1297650784,
-0.0260873307,
-0.1214937419,
-0.2069976777,
-0.0215776283,
-0.2263173014,
-0.062215846,
-0.5958681703,
-0.2116923034,
-0.4526793957,
0.1733249873,
-0.1179511249,
0.1648700684,
0.1894068271,
-0.0055301627,
0.2414373904,
-0.2219727635,
0.2568543255,
-0.2677104473,
-0.1366795301,
0.3523486257,
-0.4366489947,
-0.3181602061,
0.5248669386,
0.2030139118,
0.407084167,
-0.1904557645,
-0.2272372097,
0.0399041697,
0.1460728198,
-0.0054595196,
0.0456524715,
0.0450851284,
0.2071581036,
0.1842417717,
0.0126626845,
-0.1487965435,
-0.1339661181,
-0.1094263196,
-0.1533003598,
-0.0452629924,
0.0002432937,
0.1260112375,
-0.0166640487,
0.4119055569,
0.2007801235,
0.1465071738,
0.4331976771,
-0.038699057,
0.3499615788,
0.007420273,
-0.3237257004,
0.2413954288,
0.0319867097,
0.2089142352,
0.352170676,
0.1811699122,
0.1111799181,
-0.1400906295,
-0.1847595721,
-0.4298864007,
-0.2474626452,
0.1573476344,
-0.0736723766,
0.1495699435,
-0.2470843643,
0.0599073321,
0.0661983341,
-0.2099087834,
0.2634678185,
0.7211681008,
-0.1686714143,
0.1718896776,
-0.4008202553,
0.131411463,
-0.0836733505,
0.1011057347,
0.16514799,
0.0881719738,
-0.3792566061,
0.1564692557,
0.0412234701,
0.1743078977,
0.3637605608,
-0.6297618747,
-0.0566453934,
0.1625451893,
0.1533396095,
0.1671083868,
0.0625704229,
-0.0757086799,
0.05977837,
0.1686844528,
0.3057149053,
-0.3238657713,
-0.2382703573,
-0.1911200732,
0.0012682911,
0.0694753602,
-0.1967358142,
-0.0358062536,
-0.2466351092,
-0.5505592823,
-0.0642874241,
0.1555041522,
-0.177816689,
-0.2148696184,
-0.1831832081,
0.158417657,
0.1110779643,
0.2155774385,
0.2287569046,
0.1362676769,
0.1819661856,
0.0507552214,
0.3108938038,
0.0780811384,
0.63995713,
0.4952014089,
-0.3066949844,
-0.2850317061,
-0.0071273404,
-0.6396298409,
0.3948833048,
0.0834915712,
0.2394912839,
-0.0576918125,
0.2203535736,
-0.3084159195,
-0.1850710362,
0.0404488631,
0.0153225046,
0.0767157227,
-0.4257961214,
-0.5817587972,
0.3822162151,
0.1445125788,
-0.0373899415,
0.1783940792,
0.0191673357,
-0.3615926802,
-0.1124405786,
0.2835024893,
0.9116525054,
-0.0347928405,
-0.1959261,
-0.2540159225,
-0.3699359894,
0.1958469152,
-0.2573852539,
-0.1842880547,
-0.2410712987,
0.1239653155,
-0.0534162484,
0.0122656105,
0.4137495756,
0.3091444373,
-0.3899721801,
0.174536109,
0.2809737027,
0.070680894,
-0.1250816882,
0.7324373126,
-0.3097578287,
-0.3987356126,
0.0499383099,
0.2309390306,
-0.0987993702,
0.0267546419,
-0.0631667078,
-0.4066275358,
-0.0312036648,
0.0307153948,
-0.3434128761,
-0.2780147195,
-0.1524256468,
-0.2990493476,
-0.1413587034,
0.0004012951,
0.499779731,
0.2215610892,
0.4800950289,
0.1198948026,
-0.4500289261,
0.0706317797,
-0.034394972,
-0.1911530197,
-0.1531997174,
-0.0326551199,
0.4229022563,
-0.1708019525,
-0.1803760082,
-0.0846181214,
0.0167172197,
0.1134260818,
-0.2783230245,
-0.074502416,
0.1415954232,
-0.3183541,
0.1876695752,
-0.2271136194,
-0.1258001328,
-0.1471264809,
0.2240529656,
0.1488532275,
-0.0457382165,
0.0788742378,
0.2366676927,
-0.062714301,
-0.1444888562,
0.1992691755,
-0.1947143376,
-0.0680140629,
-0.0035508908,
0.1839548796,
-0.2444025576,
-0.3652845621,
0.0715264603,
0.0970901102,
-0.2910974026,
-0.2242045105,
0.1269227415,
-0.0833299458,
0.0854665786,
0.2186805606,
0.1883477718,
-0.1238778979,
0.0134759564,
-0.3131445646,
-0.3636691272,
0.0712496117,
-0.1343921721,
0.1780822873,
-0.3083216548,
-0.2260960639,
0.2204607874,
0.1632938534,
-0.4225836098,
-0.0844777897,
-0.0263736993,
0.1050238982,
0.1314011216,
0.0804969296,
-0.0760195777,
-0.2077507973,
0.0321267396,
0.1538890004,
-0.3212024271,
-0.2053707242,
-0.1563446373,
0.1044816896,
-0.0265799239,
-0.0187576413,
-0.1343595982,
-0.162427336,
-0.273073256,
-0.1060787588,
0.1421529651,
-0.0777092949,
-0.0306816641,
0.2276831865,
0.2036583573,
0.1546230465,
0.1125502884,
-0.0232956298,
0.0342302509,
0.2108051628,
0.0369205102,
-0.1707935333,
-0.1542034149,
0.0156046832,
0.2406663001,
0.245949775,
0.1718398035,
-0.153249532,
0.3232671916,
-0.0717488676,
0.3182329834,
0.4493518174,
0.0756753311,
0.2300284654,
-0.1602612436,
0.1481694728,
0.3929874301,
0.3036414981,
-0.1357549429,
-0.1440731138,
0.2680754662,
-0.1421365887,
0.0591869429,
0.3028164506,
0.5868406892,
0.1136308759,
-0.1470521837,
0.0602575429,
0.3613990247,
-0.1302960366,
0.1025853381,
0.2724302113,
-0.2673549652,
0.0426758081,
0.4261933267,
0.3482818007,
0.064791888,
0.1836286634,
0.0837775618,
0.3153515756,
0.2759129405,
0.2919805944,
0.2143123746,
-0.2817305326,
0.1922899187,
0.2428547591,
0.2343322188,
0.191016525,
0.0642859936,
0.2352608442,
0.2019619048,
-0.3495033383,
-0.0240814313,
0.1841567457,
-0.1216901988,
0.2093124539,
-0.0417977385,
-0.1738919467,
-0.1552832127,
-0.0585137308,
-0.0290588513,
-0.3398756385,
-0.000594467,
-0.0907355249,
-0.1026564315,
-0.1430022717,
-0.0001045604,
0.0046437546,
0.1416656524,
-0.2170208246,
0.1782301217,
-0.0363965631,
-0.1286474168,
0.2489001155,
0.179615438,
0.3387131691,
0.1064287797,
0.0049879299,
0.1239869446,
-0.0810934231,
-0.1823846996,
0.0675778762,
0.4848441482,
0.0636664927,
0.1557957828,
0.2096104175,
0.1593333334,
-0.142512247,
-0.0425817035,
-0.2261161357,
-0.0634315908,
0.0810690001,
-0.2003159672,
0.0650966167,
-0.1656087488,
-0.201023683,
-0.0708219558,
-0.3651632965,
-0.1357477605,
0.5536831021,
-0.0563295223,
0.0573450066,
-0.2745268941,
0.119818151,
0.2667571604,
0.3728231788,
0.1885751486,
0.1164144725,
-0.0306194704,
-0.084050633,
-0.7492573857,
-0.0726458579,
-0.0913963243,
0.0137570864,
0.1357333362,
-0.171039626,
0.205564335,
0.2695923448,
0.123668626,
0.0102318339,
0.1659903824,
0.1899448186,
-0.1142803505,
-0.2107828408,
-0.011523786,
0.1543952823,
0.0576941967,
0.0333152898,
0.2340154499,
0.052460324,
0.0689006299,
-0.3286013603,
0.2945062816,
-0.0065180715,
0.0737773031,
0.418058604,
-0.0850042701,
0.4787153304,
-0.1953874528,
0.017406594,
-0.0229142234,
0.1985985637,
-0.1394626349,
0.4079093635,
0.1480743587,
0.2008754462,
-0.0928505361,
-0.1245315075,
-0.2761181891,
0.2035653293,
-0.0565915778,
0.069339864,
-0.4167176187,
0.012935766,
0.1236256361,
-0.1546284109,
0.0853092819,
0.0508726574,
-0.0075765979,
-0.1288850307,
-0.1927997768,
-0.2794757187,
0.4735990465,
-0.0692358688,
-0.1155053005,
0.1213365495,
0.0093207434,
0.4011228383,
0.062270157,
-0.9307851195,
0.1676552147,
0.414098829,
0.0344725363,
-0.2256740928,
0.1757378578,
-0.0129388459,
-0.0155293308,
-0.1914817542,
0.1828604192,
0.0711722672,
-0.1126631275,
-0.0645716637,
-0.125268966
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 52 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | [
-0.1301450878,
-0.0352430791,
-0.0532185026,
0.2471045703,
0.2942427099,
0.2559413016,
0.4152005017,
0.1293423623,
0.0928789824,
-0.0484242737,
-0.1729550511,
0.070088461,
-0.1718711853,
0.3322657049,
0.1102283075,
-0.0799867138,
0.0745818689,
-0.064012073,
0.0829298943,
-0.3425410986,
-0.1205999702,
0.0473313704,
0.0086056869,
-0.1590169966,
-0.3415003419,
-0.0647560731,
-0.1081087589,
0.0878822803,
-0.3661056459,
-0.4418184459,
0.0343778767,
0.3645285964,
0.2753333151,
0.2000299394,
-0.0001122496,
-0.0820677131,
0.2017980963,
-0.2937223017,
0.0805850923,
-0.0695161521,
-0.1306842417,
-0.2235603034,
0.0002539445,
-0.1659980565,
-0.0443721972,
-0.1104559526,
-0.0838515684,
0.0729085132,
0.4370499253,
0.3751866519,
0.1481335908,
0.1568711102,
0.3579422534,
-0.0753628165,
0.3906332552,
0.5329560041,
-0.1721143723,
0.3704758286,
0.4002628624,
0.1344770342,
-0.0086026257,
0.3429556191,
0.0102651846,
0.0815115049,
0.5320785642,
0.0614764802,
0.4577288032,
-0.4999291003,
0.074604705,
0.4968690276,
0.8872469068,
-0.2778627574,
-0.3920513391,
-0.4509530663,
0.0511735044,
-0.0022101467,
0.1275160015,
0.229214102,
-0.0223254561,
0.2023372501,
-0.0359627828,
-0.3970160782,
-0.2950108349,
-0.0164488181,
0.2132585496,
0.5303966403,
-0.0830986649,
-0.0483889841,
0.2028930187,
-0.0750716031,
0.0379062779,
-0.0209300462,
-0.133031249,
0.1808841228,
0.1829435229,
-0.2720578909,
-0.402382046,
-0.0091049587,
0.2835803628,
-0.1288716197,
-0.0929564685,
0.0104747275,
-0.0570272207,
0.2156036496,
0.2461789846,
-0.0706651881,
-0.104121998,
0.2844153345,
0.1489338428,
-0.0632367656,
0.3504867852,
-0.1537153274,
-0.1432396024,
0.0320518911,
-0.1625294238,
-0.0585429035,
-0.1197236106,
-0.2173472494,
0.1657664329,
-0.1894992143,
0.2245901674,
-0.1191411614,
0.0865387172,
0.3314215541,
0.0674902871,
-0.1350487918,
-0.2403620034,
0.0849951729,
0.0512670614,
-0.134071365,
-0.0295303464,
0.0856456012,
-0.1304163784,
0.2566340566,
0.2308347225,
-0.0453776605,
0.2571466267,
0.0018116479,
0.1141917259,
-0.0951162726,
0.0790747404,
0.0553013422,
0.1696842462,
0.3754541278,
-0.2198623419,
0.042217683,
-0.0593294464,
-0.3838604391,
-0.299562782,
0.0680779591,
-0.3602798283,
-0.2845464349,
-0.3764240742,
0.1332672983,
-0.1712682098,
0.0672329292,
-0.2517306805,
0.2926397622,
0.1982022077,
-0.0982506275,
0.2711409926,
0.2577008605,
-0.2646190822,
-0.1525434405,
0.0543291755,
0.544298768,
-0.1550186425,
-0.2414233983,
-0.0121601112,
-0.0153321289,
-0.2538619936,
0.1582329124,
-0.3104730546,
0.2880328894,
-0.2125797123,
0.1954707503,
0.3075239062,
-0.5969020724,
-0.2878672481,
0.1899216473,
0.0441013277,
-0.2430180311,
0.2752089202,
-0.0098637016,
0.4363813698,
-0.2221132964,
-0.2216965854,
-0.1164819971,
-0.1454751045,
0.0300425794,
-0.1788653433,
-0.1824238747,
0.1801664978,
0.1770683527,
0.1427142471,
-0.0056526731,
0.2813096941,
0.3177360296,
0.1807598472,
-0.0894371867,
0.1050367579,
0.3970932364,
0.3476620913,
0.0344509371,
0.0576080643,
-0.0956655592,
-0.6226606965,
0.036994528,
-0.0407797173,
0.3914706409,
-0.0753987059,
-0.3238519132,
-0.2640570104,
-0.2537076175,
-0.3115507364,
-0.44227314,
0.0766931921,
-0.0490224957,
-0.2323368043,
0.1121200547,
-0.2760221958,
0.325044781,
0.0841581598,
0.1767023057,
-0.4231538177,
0.087920703,
-0.3023083806,
0.0981675908,
0.2412700802,
0.1098993495,
0.1273587644,
-0.0951984823,
0.0094880546,
0.2334369868,
-0.0210513007,
0.2175310254,
0.0982460305,
0.6624144316,
0.5612778664,
-0.3053039014,
0.1880622506,
-0.2835329473,
0.0984662548,
-0.1810099632,
-0.5105968714,
0.0683181435,
-0.1871125698,
-0.0570435487,
-0.002772056,
-0.1004650518,
0.1907691061,
0.0320720412,
-0.2853168845,
-0.3556476533,
-0.2345430702,
0.0964968726,
0.2393227071,
0.0928759426,
0.1901283711,
0.0627857596,
0.7504206896,
-0.1258006245,
0.091774784,
0.1957154125,
-0.2276313305,
-0.0212666336,
0.1258776188,
0.1221945584,
0.1449053138,
0.2134444714,
0.0604287088,
0.1615923494,
0.0986361131,
-0.1737310588,
0.1242918298,
0.0372124277,
-0.070025675,
0.242862761,
-0.2385568023,
0.0116528617,
-0.2925587595,
-0.0238553602,
0.1365640014,
0.2298060805,
-0.3926617503,
-0.1688237935,
0.0505818687,
0.0385577157,
-0.2868268788,
-0.253035903,
-0.6583179832,
-0.1110899597,
0.0961048752,
0.0289084483,
0.0561193489,
0.0624092072,
0.0627808347,
0.1970197558,
-0.1762806177,
0.262081027,
-0.3391106725,
-0.2260825634,
-0.0866140723,
0.0383844897,
0.4431888461,
0.3795889318,
0.3404738307,
-0.3237488568,
0.240679279,
-0.11477983,
-0.6005817056,
0.2257780135,
-0.1384498179,
0.3139522076,
0.1184749752,
0.0575805716,
0.1074349806,
-0.1111848876,
0.1358051896,
-0.0334656686,
-0.1298606098,
-0.2549874783,
-0.0332798213,
-0.2619002759,
-0.120980829,
-0.4445779622,
-0.2484944016,
-0.3826475739,
0.3122245073,
-0.1325089335,
0.0555029958,
0.3077592552,
-0.0077626421,
0.1976733804,
-0.247443378,
0.1154808402,
-0.169993192,
-0.0900659561,
0.4744249582,
-0.3464312255,
-0.2834533155,
0.2812024057,
0.0528323986,
0.255481571,
-0.2843569815,
-0.2434411496,
0.0428088196,
0.0934888273,
-0.2509506047,
0.0276175514,
0.0766631216,
0.2747791111,
0.2590761483,
0.1170006692,
-0.1130938381,
-0.1745865047,
-0.0401856229,
0.0621441975,
-0.0020898588,
-0.1046074927,
0.146564588,
-0.0757136345,
0.3623982966,
0.0772003531,
0.0615585744,
0.331622988,
0.057185512,
0.4331569374,
0.0660255924,
-0.3546019495,
0.2062720954,
0.006727451,
0.080077678,
0.3720385134,
0.0802139863,
0.1718421876,
-0.125184983,
-0.3122658134,
-0.3093343079,
-0.3860097826,
0.1021917462,
0.2228018045,
0.0934715718,
-0.1705840677,
0.0037211117,
-0.0533824675,
-0.1663527489,
0.3543722332,
0.8319619298,
-0.1410350949,
0.0883159786,
-0.2800043821,
0.1888353527,
-0.2273826301,
0.021555081,
0.1896583438,
0.0126959858,
-0.2334344536,
0.2113339901,
-0.0076565347,
0.1565872878,
0.5497598648,
-0.5247404575,
-0.0631487593,
0.0129603259,
0.0176206846,
0.1108444929,
0.0663736537,
-0.1372965723,
-0.0921609923,
0.1316771507,
0.494961828,
-0.4311371446,
-0.2816447318,
-0.0844013765,
-0.0765887573,
-0.0694203451,
-0.2530353069,
-0.0952587351,
-0.159374699,
-0.5372492671,
-0.127892524,
0.2674382627,
-0.2953922749,
-0.1729178876,
-0.2430231869,
0.1832464635,
0.0455966666,
0.277233392,
0.2463166118,
0.1555466354,
0.1407819986,
-0.0212299675,
0.383470118,
0.0792538375,
0.6136367321,
0.4085799754,
-0.3780503869,
-0.3243055642,
0.0322226249,
-0.710580647,
0.2947054207,
0.2757340372,
0.2516626716,
-0.068700023,
0.4258863926,
-0.2119213343,
-0.185273543,
0.0589728542,
0.1156476289,
0.0192674845,
-0.5070009828,
-0.5510523319,
0.4138426185,
-0.0060831131,
-0.037635427,
0.0127166519,
0.2641605139,
-0.3906282187,
0.1536782682,
0.3243080676,
1.2151703835,
-0.1024531201,
0.0564026423,
-0.3050803542,
-0.2416739166,
0.3678267002,
-0.4156566858,
-0.1234324202,
-0.267149955,
0.0144282244,
-0.1264306158,
0.0145878932,
0.3629637659,
0.3674152195,
-0.38013044,
0.0606570132,
0.3421323001,
0.2065847218,
-0.1084157601,
0.7030025125,
-0.1309196651,
-0.4052953124,
0.0217960477,
0.07646247,
0.0294233337,
0.136714831,
-0.0836407244,
-0.5859963298,
-0.078055501,
-0.1361372471,
-0.3741077185,
-0.352539897,
-0.2044963241,
-0.2110220045,
0.0239242651,
0.0246665422,
0.5534375906,
0.2366510034,
0.5483721495,
0.1621500552,
-0.6404774189,
0.1355975568,
-0.1239235252,
-0.1956998855,
-0.2247795016,
0.0478753038,
0.3694455326,
-0.1299372017,
-0.2023029625,
-0.1330409944,
-0.0682685077,
-0.0005886598,
-0.2465471327,
-0.1496174932,
0.105478324,
-0.3484678268,
0.1442780197,
-0.1986942887,
-0.2411319911,
-0.1479478031,
0.1371400952,
0.0323932841,
-0.1151270643,
0.0350999199,
0.2759846747,
-0.1552310437,
-0.0878977105,
0.2337964475,
-0.1964879036,
-0.0990453139,
0.1055184081,
0.1004098952,
-0.2399871498,
-0.2959397733,
-0.0156735629,
0.2685165405,
-0.6028069854,
-0.2454487532,
0.0627225861,
-0.1808456331,
0.0122802714,
0.3699563146,
0.3838861287,
-0.136375159,
-0.0521355383,
-0.2257376164,
-0.5842854381,
0.1538547277,
-0.1406338662,
0.1699548811,
-0.1889738441,
-0.1157268733,
0.1967944801,
0.2167569548,
-0.3300186992,
-0.1394520253,
-0.0166445393,
0.0411742963,
0.1615886241,
-0.0045226011,
0.0675558448,
-0.3016515374,
-0.0523990206,
0.2579051256,
-0.2703539729,
-0.0999565646,
-0.2450142652,
0.177510038,
0.0253215544,
0.0142252734,
-0.2025501579,
-0.0234049167,
-0.2965803146,
-0.1278157383,
0.2104471475,
0.0419063121,
0.1458961815,
0.2594266832,
0.2857017219,
0.1632175148,
-0.1503940225,
0.0279440284,
0.1285094023,
0.1703548133,
0.148131296,
-0.1565216631,
-0.1611433029,
0.104881905,
0.3086866736,
0.2369431406,
0.2171387672,
-0.0049650748,
0.3991963267,
-0.0075295754,
0.2695426345,
0.343464911,
0.1190742031,
0.1901554018,
-0.129544124,
0.1385047138,
0.3368325531,
0.177223891,
-0.2271177322,
-0.105510056,
0.3189108074,
-0.1777695268,
0.1020867899,
0.4221235812,
0.570297718,
0.268858403,
-0.0172719173,
0.1258381307,
0.4669813514,
0.0257788859,
0.0944084153,
0.4013041556,
-0.2711419165,
0.1281044632,
0.4452595115,
0.3683158159,
0.1730043441,
0.1913359016,
0.0918562934,
0.1147197336,
0.0034722791,
0.2881263196,
0.3339247406,
-0.1554180682,
0.1877930909,
0.1563859284,
0.4228899777,
0.2024161518,
0.0772234872,
0.0768745765,
0.3115521371,
-0.2270365655,
-0.1206155121,
0.1191148609,
-0.0648447871,
0.0664633363,
0.2424648255,
-0.1248514503,
-0.216467604,
-0.1007557735,
-0.0400181115,
-0.3261397481,
-0.0629056916,
0.0003627026,
-0.0012204096,
0.0954761207,
-0.0573181361,
0.0682995096,
0.1424609721,
-0.2303172946,
0.1369355917,
0.1743848622,
-0.1468613744,
0.1629305035,
0.2221170813,
0.2091762424,
0.0719909221,
-0.0252239108,
0.2093201131,
0.0419274978,
-0.1346250772,
0.0898778737,
0.4182916582,
0.1899680644,
0.2705289721,
0.095611006,
0.0613955073,
-0.1148891672,
-0.0388120748,
-0.2847313881,
-0.0863256231,
-0.0099291559,
0.0628964528,
-0.0068668425,
-0.2412635833,
-0.2367473543,
-0.1236432269,
-0.4529108107,
-0.0892210454,
0.5199388862,
-0.1434405893,
0.054425817,
-0.1810555309,
0.0502701662,
0.208604008,
0.4289125204,
0.2435465455,
0.027823763,
-0.0888556391,
0.0625940561,
-0.71019274,
-0.01241476,
-0.0191067029,
0.1245454624,
0.1892187446,
-0.2141040564,
0.2409211546,
0.1618460566,
0.1212539524,
-0.0745743141,
-0.067157045,
0.0800965279,
-0.0710473359,
-0.174048692,
-0.2068473101,
0.1768307686,
0.129855141,
0.0131966881,
0.1974116266,
0.3441027105,
-0.047995273,
-0.4523761272,
0.3501651287,
-0.0330707878,
0.0621092729,
0.3149145842,
-0.0859732181,
0.4451006651,
-0.2029884756,
-0.1355412006,
0.0671533719,
0.2498447001,
-0.1163872182,
0.3499432206,
0.1667207927,
0.2466562092,
-0.2440740466,
-0.2746080458,
-0.4681326449,
0.0580260232,
-0.0034036911,
-0.1327597052,
-0.6510514021,
0.0006266429,
0.0464832336,
-0.2279354483,
0.2111959308,
0.0542856269,
-0.0371281207,
-0.118223086,
-0.1886247247,
-0.1355215162,
0.6211867929,
-0.1726373285,
-0.1415698379,
0.1333981007,
-0.0454600267,
0.4083581567,
-0.0170498546,
-1.1616522074,
0.1322575361,
0.317745626,
0.0258127302,
-0.2481318712,
0.0275047645,
0.0788400397,
-0.0259976257,
-0.2317183465,
0.2802074552,
0.097685203,
-0.1532401443,
-0.1820611507,
-0.1760696769
] |
https://github.com/huggingface/datasets/issues/2083 | `concatenate_datasets` throws error when changing the order of datasets to concatenate | Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing | 70 | `concatenate_datasets` throws error when changing the order of datasets to concatenate
Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing
Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | [
-0.0796852559,
-0.0035570066,
0.049324166,
0.0962453336,
0.4001434445,
0.2031108588,
0.1476462334,
0.1685889214,
-0.4686339498,
0.0390346982,
-0.1133435071,
0.223585844,
0.1865084916,
0.2279958427,
-0.1524719894,
-0.3764881492,
0.1803440005,
-0.0335423462,
-0.0318524428,
0.1589730084,
-0.3306151628,
0.2782520652,
-0.4217688441,
0.1194006056,
-0.277040869,
0.1655761451,
-0.2876586616,
0.2142008543,
-0.1317480803,
-0.3083038032,
0.221819222,
0.2089249641,
0.0268243812,
0.488954246,
-0.0001056023,
-0.0131245749,
0.1394525021,
0.0269064978,
-0.2604877353,
-0.2272510529,
-0.2251274139,
-0.1086770222,
-0.1623243093,
0.0379753746,
0.1469446421,
-0.1597018242,
-0.242972523,
-0.1502541304,
0.2837976217,
0.2774028182,
0.2379924357,
0.1755371243,
0.2426478416,
-0.3864708543,
0.1160052642,
-0.1271748841,
-0.0323284604,
0.0827695876,
-0.1578353047,
-0.2114224285,
0.1623144448,
0.2935610712,
-0.2205399275,
-0.3700947165,
0.0482724085,
0.1449314952,
-0.0490996353,
-0.1351882815,
-0.0003453418,
0.0726881027,
0.4189139009,
-0.4847948551,
-0.3530630767,
-0.2878333926,
0.3797296584,
-0.3848425746,
0.2335146964,
0.107968159,
0.1808568537,
0.160184145,
-0.1117427722,
-0.0052865609,
0.0029111274,
0.0073695974,
-0.0543387271,
0.0794907436,
0.0577442162,
0.012179655,
0.1555248201,
-0.3029309213,
0.0764303282,
-0.1139459834,
-0.272321403,
0.112982057,
-0.4819877744,
0.0012336492,
0.0431277566,
-0.252555728,
0.3593415618,
0.1304216981,
-0.021706121,
-0.0283695888,
-0.0975560993,
0.1175315455,
0.2533037961,
0.3586051166,
0.095661968,
0.2279181182,
0.0909646228,
0.221727401,
0.1781278253,
0.0227592308,
0.1229765043,
-0.2932562828,
-0.0394418351,
0.1017417088,
0.3059560955,
0.0601075515,
-0.1682276726,
0.1103922948,
-0.1277959645,
0.0942961201,
0.0453832783,
0.1752946079,
0.0419015884,
0.3478608131,
0.2925290465,
0.3554245532,
0.1251152754,
0.01361233,
-0.1590159535,
-0.2540303171,
-0.1026406959,
0.2968028188,
-0.0379191674,
-0.1169710755,
-0.0207829811,
0.3439497948,
0.1724198312,
0.1211991757,
-0.2369530201,
0.0161234476,
-0.1319065392,
0.2203484327,
0.0439352468,
-0.0071233273,
0.0624273345,
-0.007492051,
-0.1447688788,
-0.0189633071,
-0.2858019173,
-0.5416711569,
-0.4975185394,
0.2481809258,
0.1760654896,
-0.0887839794,
0.0011426987,
0.210956797,
0.3790780902,
-0.2144868672,
-0.0100914277,
-0.1311472505,
-0.3337846696,
-0.1783129573,
-0.0306511521,
0.2728122771,
-0.0783874318,
0.0389478356,
0.1670252234,
0.0284016542,
-0.135316357,
0.4119367301,
-0.1325295717,
-0.1195035428,
-0.1640452147,
0.2925846875,
0.2148226947,
-0.3234606981,
-0.1953999698,
0.0156268235,
-0.1306154728,
0.0493505858,
0.0488128662,
-0.134463653,
-0.1932111531,
-0.1346462667,
0.3389676511,
0.3616017699,
0.0173344668,
0.053078603,
-0.0639779195,
-0.0736650452,
0.2254840881,
-0.1554728597,
-0.4454149604,
0.2084554285,
-0.2820550501,
-0.1806510538,
0.3597202599,
-0.2028736621,
-0.024919251,
0.3321020007,
0.1902955621,
0.1028186157,
0.2281091213,
0.0330320485,
-0.4944086671,
0.0692007616,
0.0779696181,
0.1120495647,
-0.2732641697,
-0.3051611483,
-0.1832829714,
-0.0261381529,
-0.3229479492,
0.1075260937,
0.1899008751,
0.0190830491,
0.1013581604,
-0.1390778422,
-0.1406920403,
0.3601436019,
-0.0401883014,
0.1133172959,
-0.4093933702,
0.2946310937,
-0.2757103443,
-0.0057806973,
0.0960211009,
0.285058856,
0.1517308205,
0.0952608883,
-0.2058046609,
0.6714097261,
-0.2294554412,
-0.298173219,
0.0129517987,
-0.0409917645,
0.0063926806,
0.0604902953,
-0.101959534,
-0.0107201468,
-0.1760647893,
-0.0578091778,
-0.2104915977,
0.3796180189,
0.0027711429,
0.2878170609,
-0.0005503001,
0.1273321658,
0.2976996303,
0.0236183926,
-0.0522813201,
-0.3162911236,
0.1110670269,
0.0720415488,
0.1083636507,
0.0913329497,
-0.5487784743,
0.1539601237,
0.615530014,
-0.0723494664,
-0.0204855502,
0.0756000057,
-0.0469927303,
-0.0043913671,
0.0246623401,
-0.034298677,
0.5151795745,
0.1922239363,
-0.1451516151,
0.3800708055,
-0.1407292485,
-0.1236646324,
0.1264639795,
0.0085582538,
0.1879565567,
0.3748963773,
0.4192982018,
0.2545351684,
-0.2852298021,
-0.2111073136,
0.0020574764,
0.0120815104,
-0.2482444197,
0.0661967993,
-0.298922658,
-0.1473242939,
-0.2143438458,
-0.4559224546,
-0.5343990922,
-0.364680171,
0.1637235582,
0.0951004028,
-0.2306733131,
0.32091254,
-0.0733217224,
0.0126334717,
0.3799387217,
-0.0807909369,
-0.2083370686,
-0.0304468144,
0.0225906894,
-0.0015237698,
0.0968102813,
-0.1379451007,
0.0062933387,
-0.0825957879,
-0.0205823649,
-0.2717048526,
-0.2621476352,
0.0251965337,
-0.3797261119,
-0.0711875707,
0.201329723,
-0.0451542065,
0.113255918,
-0.4360525608,
0.4303462803,
0.1572069824,
-0.2147202492,
0.607590735,
0.1684281975,
-0.1878270805,
-0.1536264569,
-0.4074481726,
-0.1293830574,
-0.4146421254,
0.2266934365,
-0.2033038884,
-0.0041572335,
0.5315073133,
0.1389884651,
-0.2513957918,
-0.1662714332,
0.1982160211,
-0.3319249153,
-0.2268620878,
0.1182051152,
-0.2356243432,
-0.3592353761,
-0.0796590298,
0.1398951262,
0.0986562371,
0.0635478571,
-0.1372641474,
-0.1302850097,
-0.1049029008,
0.2873049974,
-0.3098781407,
0.0758377165,
0.3729997277,
0.3206864893,
-0.1161197349,
-0.1279147863,
-0.1826056242,
-0.0058534909,
0.2448066175,
0.2611474693,
-0.1807268262,
0.3100431859,
-0.0188209079,
0.3491807878,
0.2283609211,
-0.0057375287,
0.1428747326,
0.040973261,
0.3439370394,
-0.2610260844,
-0.3031940758,
-0.1533001661,
-0.2464200109,
0.2255494297,
0.1236189604,
0.004114416,
0.1353749186,
-0.0419907533,
0.3345295191,
0.0660420582,
-0.2268210948,
-0.00829178,
-0.1154847071,
0.2774187624,
0.1853940189,
-0.0468125455,
-0.2113553584,
-0.0027037438,
0.0934273303,
0.148971647,
-0.1669706553,
-0.131214425,
-0.4330019355,
-0.1807783246,
-0.3780788183,
0.3607482314,
0.1474867612,
0.319734782,
0.1055636108,
-0.1144767329,
-0.1143716127,
0.0573047735,
0.5016084909,
-0.072762534,
-0.4048739374,
0.465572536,
0.1853974313,
-0.2289374024,
-0.3301280737,
-0.1556290686,
0.192001909,
0.0992614925,
0.3979489803,
-0.3422977924,
-0.1660373062,
0.3565297723,
0.2136691362,
0.1109907851,
-0.0912757069,
-0.3642393351,
-0.2468782812,
-0.3064165413,
-0.1125768721,
-0.0565446913,
0.4393942058,
-0.4744167328,
0.1360109746,
0.2629767656,
-0.2029894888,
-0.1302559674,
-0.0940751061,
0.2705755532,
0.0067047523,
0.1725480258,
0.050153438,
0.2290182263,
0.3115620017,
0.5891237259,
0.056888435,
-0.7131998539,
-0.14939785,
0.0947643816,
0.1179934815,
0.1717377454,
-0.0863208696,
0.3397348523,
0.0198446121,
0.193125993,
0.0650930479,
-0.1433599442,
0.6809390187,
-0.0762921795,
-0.6452269554,
-0.314309746,
0.5154021978,
0.2080059946,
0.0120780999,
0.1749999225,
0.0367931388,
-0.2994354367,
0.2875837684,
-0.1884647608,
0.8607544899,
0.0481347367,
0.307759881,
0.3695948422,
0.0936545506,
0.303153336,
-0.0661674365,
0.3982150853,
-0.3754052818,
-0.2533073425,
-0.0042340131,
-0.1032131687,
0.035705559,
-0.0705222487,
-0.569878161,
0.1437729299,
-0.3996305466,
0.1986438185,
-0.1967106313,
0.1399359405,
-0.2798857987,
-0.1738887578,
-0.5225829482,
0.1542306095,
0.2264677137,
-0.1210525557,
-0.0864570811,
-0.0520523973,
-0.0778321698,
-0.2702743411,
-0.2036772072,
0.3030856252,
-0.2647879422,
0.3141852021,
0.1632532924,
-0.122860074,
0.0996111482,
0.0565377064,
0.234085992,
-0.0648674592,
-0.1123135537,
0.026038399,
0.1305632889,
0.063731432,
-0.04091499,
-0.1266129911,
0.3307848871,
0.1718059033,
-0.2644070983,
0.0615202375,
0.1078260392,
-0.204143852,
-0.3926245272,
-0.0122635495,
-0.0215871688,
-0.4964894354,
0.1905369908,
0.1542439312,
0.1922669262,
-0.2586192191,
0.1730123907,
0.0989522338,
-0.1877944767,
0.0471729524,
-0.1320605129,
-0.1740373224,
-0.0082020508,
0.3596714735,
-0.0174253508,
0.040256951,
0.4046956003,
0.1664831787,
-0.0942214355,
-0.0620393679,
-0.0262368042,
-0.0034962702,
-0.2976415753,
0.1244312301,
0.089557521,
0.0000792031,
0.0600549579,
0.4102916121,
0.0109282006,
-0.0974496305,
0.014266626,
-0.068390809,
-0.2066232562,
0.2139129341,
0.1953102797,
0.0667903051,
-0.0840725899,
0.4412164688,
-0.0367626473,
0.0116878795,
-0.3577222526,
-0.0698249638,
-0.1693751663,
0.2305311561,
0.1366792917,
-0.1088695526,
-0.0193263255,
-0.0654053539,
0.1900392026,
0.1487473249,
-0.0606445037,
-0.2406535745,
-0.0759332478,
0.0728920624,
0.2958261669,
-0.0050350404,
-0.002542387,
-0.1038463339,
-0.1390253305,
-0.250774771,
0.0585559756,
0.2111117542,
-0.026470378,
-0.0114154657,
-0.015109322,
0.1182794049,
0.3251687288,
0.109574087,
0.0756922066,
-0.1658451259,
-0.1762658209,
0.2312308252,
-0.4591180086,
-0.0251223166,
0.0449675061,
0.2719660401,
0.1442508101,
0.0505007654,
0.0981498882,
-0.4305642843,
-0.110125877,
-0.030726688,
0.5766243339,
0.4599283338,
-0.2510533631,
-0.0947911367,
0.1912534833,
0.2583907545,
-0.4333084226,
-0.2971317172,
0.1146485582,
-0.009314633,
-0.0756292045,
-0.1008464992,
0.1585253775,
0.0354201943,
-0.0022573853,
0.1471883804,
0.1625921726,
0.0039577428,
0.3635790348,
0.3141831756,
0.0872926936,
0.1776056588,
0.3767490089,
0.1845764518,
0.2560094297,
0.279078573,
0.0073417285,
0.1740574241,
0.1720585525,
-0.2379536033,
0.2201374769,
-0.3379876018,
-0.1055325344,
0.0283964053,
-0.0167604014,
-0.0702322125,
-0.0515058674,
0.5235232711,
-0.3884120584,
-0.277398169,
-0.1429591328,
0.3619550467,
-0.0724960938,
-0.0734697953,
0.1042919457,
0.0501956008,
-0.1011229604,
-0.1904465407,
0.0580790751,
-0.0687999427,
0.651047349,
-0.1681026965,
-0.0054694754,
-0.5817865729,
0.190433979,
0.2763530016,
0.2139447182,
-0.1554391533,
0.0498785824,
0.273963213,
-0.1657037586,
0.3347493708,
0.230869323,
0.6353486776,
0.2914364338,
0.0203438103,
0.0469664261,
-0.1969210505,
0.0724481419,
0.2094469815,
0.1526719183,
0.1200891137,
-0.2670750022,
0.2294177115,
0.1359442621,
-0.1342738569,
-0.09999495,
0.2606731951,
0.3138768971,
-0.3910779953,
0.1773738116,
-0.2687884867,
-0.2664053738,
-0.0935907364,
0.1029702052,
-0.2182300389,
0.0894596353,
0.5371329188,
0.3144436479,
0.168724075,
-0.1476960927,
0.1568285227,
0.3726184666,
0.3128846586,
0.5908777118,
0.0228302293,
-0.1525830626,
-0.1991578937,
-0.4441832304,
0.1017587632,
0.0636744872,
0.2398937196,
-0.0085148662,
0.0807567909,
-0.0171226226,
-0.0271065403,
0.1293004751,
-0.1434698701,
-0.1768602878,
-0.0366692245,
-0.4124816358,
-0.1587409973,
0.0380615592,
-0.2000686377,
0.1036181524,
-0.2433551848,
0.0644301176,
0.0986104906,
0.0784641579,
-0.1197607368,
0.1893944293,
0.1105799675,
-0.0421843305,
0.2163256109,
0.2280187607,
0.2743909359,
-0.0294954237,
-0.1176543236,
-0.2608788908,
-0.6040966511,
-0.4140898585,
0.1496850103,
-0.0973920822,
0.0983687714,
-0.0659845546,
-0.0665802434,
-0.1639700681,
0.1544445306,
0.1515692919,
-0.1218538955,
-0.4928683639,
0.2210883349,
0.0852266997,
0.0022880263,
-0.1137430072,
0.2006943822,
0.0190558694,
0.5071310997,
-0.2035804391,
-0.6065547466,
0.6595965028,
-0.0683469102,
-0.3848761916,
-0.0330865867,
0.0976777226,
0.080231607,
-0.1977585405,
-0.5424659848,
0.0594671704,
0.1686286777,
0.039523866,
-0.2772476971,
0.2007496357,
-0.0864769667,
-0.0491295159,
-0.1112499014,
0.3544617593,
0.0607268773,
-0.4413897097,
0.2329768091,
-0.1056705788
] |
https://github.com/huggingface/datasets/issues/2080 | Multidimensional arrays in a Dataset | Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 165 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | [
0.0149022182,
-0.2567944527,
-0.0799354538,
0.1915314198,
0.449570477,
0.054927513,
0.8991121054,
0.101094313,
0.1804243475,
0.0678302348,
-0.1109768748,
0.3204249144,
-0.2819291949,
0.052211158,
0.1784114987,
-0.4505749643,
0.1631147712,
0.2940376103,
-0.3680664897,
0.0973282754,
-0.0565507896,
-0.056346558,
-0.2456142157,
-0.041922085,
-0.3301549554,
-0.2008832693,
-0.1476367116,
-0.1640365422,
-0.063876316,
-0.1978779882,
0.2409163713,
-0.1706257015,
0.2700606287,
0.260625124,
-0.0001195509,
0.2267989367,
0.0247741155,
-0.1292833388,
-0.035967689,
-0.0393489562,
0.2725147903,
-0.6480610967,
-0.0806011781,
-0.4324750602,
0.008071701,
-0.4712083638,
-0.2638433576,
-0.5005580187,
0.0513902232,
0.3928322196,
0.1141963825,
0.3314777911,
0.2363565713,
0.1579979807,
0.1462769657,
0.0132806357,
-0.1706012934,
-0.2005449533,
0.2393972874,
-0.2072260082,
0.0300292112,
0.0932104066,
-0.2798199356,
0.1661208421,
0.2681394517,
0.2049355656,
0.0058012581,
0.0611366592,
-0.0313577577,
0.1278438866,
0.4276590347,
-0.398072958,
-0.3639859259,
-0.2793343961,
0.0686926916,
-0.1197745949,
-0.1095298305,
0.3258959055,
-0.1266001016,
0.0910806507,
-0.4061065912,
0.1408001482,
-0.3182468116,
0.3343325555,
-0.4043463767,
0.2282192409,
0.1337881237,
0.1612995565,
0.0396000035,
-0.1324866563,
0.7339078188,
-0.0246706232,
0.3878376484,
0.0780725181,
-0.3060494661,
-0.02921037,
-0.1911205053,
-0.5545960069,
-0.0388241485,
-0.4604115784,
0.3082381189,
0.1663305014,
0.1043883339,
0.1976923048,
0.0353525765,
0.2383283228,
-0.4363073409,
0.4121214747,
-0.0672475472,
-0.2368494272,
0.4810280204,
0.0992482007,
-0.1561654955,
-0.1502652466,
0.1455621123,
0.0061738053,
-0.0272423699,
0.3684130013,
-0.2227879316,
0.0070692273,
-0.5160886645,
-0.0086483257,
0.0363630131,
0.1473617554,
0.108672224,
0.3957232833,
0.0416684859,
0.3720447719,
0.1662510037,
-0.1195259988,
-0.0711395741,
0.322499752,
-0.3391716182,
-0.0316564515,
0.1639197022,
0.5651168823,
-0.0971912593,
0.0204913877,
0.2087808549,
-0.0764324367,
0.0289027393,
-0.0874167606,
0.2978042662,
0.2908813655,
-0.1416599154,
-0.0486809053,
0.041272942,
0.2416125536,
-0.0130376481,
0.4392247796,
-0.0711849406,
-0.0471878946,
-0.3636682034,
-0.037487831,
-0.0945893675,
-0.0264145657,
-0.196016565,
0.186691016,
0.4951614439,
-0.0282086749,
0.1075463519,
-0.5084319115,
0.0889306888,
-0.2072448283,
0.140089646,
-0.3502913713,
-0.3905957043,
0.2010027766,
0.2407013327,
0.3463235795,
0.0975594744,
0.2834511399,
-0.3449481428,
0.0540578105,
0.0329004191,
0.2473341674,
0.338768214,
-0.0420006663,
-0.087117143,
-0.1622391641,
-0.0173251517,
-0.0007174694,
0.1112006605,
0.316839397,
0.1397198737,
0.1958105862,
0.1861188263,
0.1972096562,
-0.0389665253,
0.3523804545,
-0.091629602,
-0.2154468149,
0.4633565545,
0.2579581738,
0.3060801923,
-0.1548965424,
0.0176663231,
0.0563276522,
0.0940435529,
-0.5431796312,
0.1949044764,
0.3491542339,
-0.0187137555,
-0.0986339226,
0.0564411841,
-0.4492575228,
-0.7101922035,
0.160866648,
0.0483020507,
0.1065321267,
-0.1837565005,
-0.0663249418,
-0.1079391688,
0.1118318588,
0.0720699131,
0.1178974956,
0.0417498052,
0.035233289,
-0.0735232681,
-0.3971256316,
-0.2047447115,
0.0776524916,
0.3375151157,
-0.0829180107,
-0.3645123839,
0.5928975344,
-0.1039524376,
-0.2862938046,
0.0101347808,
0.4462892413,
0.0611805394,
-0.0496978574,
0.1977589279,
0.2274241596,
0.1230928972,
-0.3832359314,
-0.416023612,
0.4727385342,
0.2562884092,
-0.2721801996,
0.2036811709,
0.0511427857,
0.0157316886,
-0.0084935017,
-0.3207269013,
0.5687912107,
-0.0014346445,
-0.0261086188,
-0.2726281285,
0.1914386749,
0.08335419,
0.0909293219,
-0.1171600521,
-0.0677581802,
-0.2300037593,
-0.2115733325,
0.092215836,
-0.0045593539,
-0.3897839189,
0.0558722019,
0.267754972,
-0.1892516166,
0.2653500736,
-0.1347501725,
-0.0375847779,
0.0150869926,
0.1793587953,
-0.0371525772,
0.1663658172,
0.2058113664,
0.1150867939,
-0.1248198673,
-0.4518622756,
-0.1397284865,
0.0517304018,
-0.1079206094,
0.1812424064,
0.051861655,
0.2955332994,
-0.1676356345,
-0.0637025908,
0.0914284438,
0.31976372,
0.2288445681,
-0.4060830772,
0.162458837,
-0.3874131143,
-0.066466108,
-0.2304770648,
-0.2601809502,
0.0049726721,
0.0868771598,
-0.0880194008,
0.2342032939,
0.0812050998,
0.1689577252,
0.027766658,
-0.045000162,
0.2548811734,
-0.2477962226,
-0.0624879524,
-0.1313534975,
-0.064159289,
-0.0014590995,
0.1030867994,
0.1419321299,
0.1337924153,
0.4435389936,
-0.0571617708,
-0.459299624,
-0.0347506367,
-0.1463271677,
-0.2035897374,
-0.1697765589,
0.0904794559,
0.010605542,
-0.1125863045,
-0.0403799117,
0.3096114695,
0.2927798927,
0.0355216078,
0.3789585233,
0.2087776065,
-0.1153359115,
-0.1274021268,
-0.1328268051,
-0.1498312503,
-0.2656078637,
0.0212587714,
-0.3921458721,
0.1053935811,
-0.2647841871,
0.3787117004,
0.1925879568,
0.158702895,
-0.259398967,
0.0740580633,
0.3446683288,
0.6661352515,
-0.0351949148,
-0.390738517,
-0.3848360777,
-0.1644582748,
0.0585445277,
0.7011179924,
-0.2124487907,
-0.2320622951,
-0.1337759197,
-0.0626930371,
-0.1328709871,
-0.0599339642,
0.6345390677,
0.0861993656,
0.0013021969,
-0.0903874412,
-0.1663161367,
0.0663037822,
0.150948599,
0.0939805508,
-0.0813989118,
0.3435147703,
0.2753553689,
0.3017746508,
0.0231568366,
-0.2025795728,
0.2516397238,
-0.1907728016,
0.154907614,
-0.0294429697,
-0.2573096156,
-0.0765902922,
-0.3783546984,
-0.1627085358,
-0.0877782032,
-0.2194223106,
-0.5588401556,
-0.0134953531,
0.3541664779,
-0.1128610149,
-0.0620547384,
0.4988284409,
-0.3866079748,
0.3288063109,
-0.0005442557,
0.0491638146,
-0.3488150239,
-0.1622707099,
-0.1883962154,
-0.3264349699,
-0.1317930669,
0.0207404792,
-0.5361711383,
-0.2696357071,
0.1808828264,
0.1261783689,
0.376721561,
0.7153759003,
0.1138259396,
0.0400265679,
0.2162431329,
-0.0295357499,
0.5638816953,
-0.0700067803,
-0.3026607335,
0.3299583793,
0.0555711128,
-0.5217559338,
-0.2325491756,
-0.3563009501,
-0.1439816654,
-0.0971960425,
0.4788838029,
-0.3085346818,
-0.2306003422,
0.1910062283,
0.1853743941,
-0.1017971933,
-0.073461026,
-0.2473595142,
-0.2527900934,
-0.1889769584,
-0.1428681463,
0.4407945871,
0.3197948337,
0.2110813558,
-0.2233937681,
-0.1055803895,
-0.3295324445,
0.0886835083,
-0.0368408114,
0.0896123275,
0.1358524561,
-0.1247342825,
0.1726722419,
0.2221593261,
0.4825523496,
0.0961530283,
-0.1107676029,
-0.013559523,
0.1709890813,
-0.1279083639,
0.3795844913,
0.151859656,
-0.1087807193,
-0.2579711378,
-0.0883321837,
0.00151521,
-0.1207928658,
-0.0297296047,
0.2756110728,
-0.0356955379,
-0.2073620558,
-0.277988255,
0.2343325019,
-0.0254754741,
0.1139987782,
0.1716230065,
0.2811612487,
-0.1681226045,
0.2883462906,
0.333422631,
0.6774013638,
-0.505526185,
0.3920158148,
0.4707365334,
-0.1107952148,
0.2089314312,
-0.1366589963,
0.3178485334,
-0.2395370603,
0.0199287422,
-0.2089606375,
-0.1850182414,
0.2092855424,
0.418643862,
-0.0276027489,
0.0813101381,
0.0485320203,
0.210947305,
0.1919577271,
-0.0871063694,
0.129074201,
-0.245011121,
-0.0733691081,
0.0722152218,
-0.1949903518,
-0.3241554499,
-0.0126739684,
-0.2041718066,
-0.3422340155,
-0.0203461442,
-0.3445937634,
-0.129694432,
-0.3006146848,
0.4228590131,
0.1384604424,
-0.4948458672,
0.0487052239,
0.5728102326,
0.0256155189,
-0.3815950155,
-0.1450156122,
-0.3738671839,
-0.2349484861,
-0.2208291441,
-0.0488310605,
-0.2558012605,
0.3040537238,
0.0156504437,
-0.0739737004,
0.164384529,
-0.0304166973,
-0.3962724507,
-0.0108933076,
0.2503049374,
0.0972074941,
-0.2461635172,
-0.0253746025,
-0.1884799451,
0.1446112692,
-0.0500299037,
0.0604319908,
-0.0965674892,
-0.0386195518,
0.2899435759,
-0.0460208729,
0.0774859861,
0.1257362515,
0.2239425778,
0.1179814786,
-0.303109318,
0.1812615991,
0.1092494801,
-0.3035007417,
-0.1538247168,
0.2004553974,
0.5446795225,
-0.0663514286,
0.0234456267,
-0.3518611193,
-0.3031125665,
-0.0683958232,
0.1484072506,
0.3131946921,
0.1276940852,
-0.1933957934,
-0.202937156,
-0.2634924948,
0.4287036657,
0.3794881999,
0.2747299075,
-0.0351036936,
0.2906455994,
-0.1598075628,
0.0051987171,
-0.2314176857,
-0.0259405188,
-0.0979492217,
0.2771215141,
-0.0215536729,
-0.322276175,
-0.1066990122,
-0.1097238809,
0.0815521553,
-0.0875357389,
-0.116249077,
-0.1111931652,
0.0781163648,
0.1195414513,
0.1183836013,
-0.0039288024,
0.0257312078,
-0.4714917541,
-0.3264597952,
-0.2363396436,
0.0080077555,
0.4533225894,
-0.0041555874,
0.1654733717,
0.2998785675,
0.1157936081,
-0.0761751309,
-0.1688293666,
-0.1501287818,
-0.1383609027,
0.0050391383,
0.2183291316,
0.248464793,
0.0066200485,
-0.2967951596,
0.1318214983,
0.0704102144,
-0.0740278736,
0.3137462735,
-0.3049808145,
-0.0527509935,
-0.1453632265,
0.479377538,
-0.0544442497,
-0.3318727612,
0.0426694863,
0.15170376,
0.0878730193,
-0.2129777074,
-0.3487562835,
0.1269569397,
0.034896601,
0.1410359293,
0.5094713569,
0.3671323359,
0.1969046891,
0.1261758655,
-0.1247605309,
0.355117619,
-0.1337389946,
-0.1359165609,
0.3305075765,
-0.0477365628,
-0.0159559306,
0.2496726811,
0.0032822397,
0.2069057673,
0.5683192015,
-0.0471284203,
0.2942133844,
0.4007826746,
0.1045907289,
-0.1734314561,
0.1579918414,
-0.0968311578,
-0.0942734703,
0.2389736474,
-0.1445456594,
-0.1482390165,
0.2099243551,
-0.1258603632,
-0.0203976668,
-0.1106932238,
0.0989397839,
-0.2336273491,
0.1443286091,
0.0261038002,
0.0543618277,
-0.0992338136,
-0.1871890128,
-0.0987325609,
-0.077362299,
0.3327876329,
-0.00606472,
0.1644572765,
0.0103619341,
0.1795242727,
0.4635999501,
0.0343805663,
-0.180171296,
0.2851694226,
0.3174892664,
-0.1626901776,
-0.066926837,
0.0285956562,
0.293296814,
0.2905936539,
0.0055146054,
0.0178471673,
-0.1586216837,
-0.1852164567,
-0.0713800713,
0.0422842614,
0.039219033,
0.2712653577,
0.2794288397,
0.0286643151,
-0.0653818026,
0.1784531623,
-0.0235881694,
0.0513589941,
-0.1432748884,
0.2960940301,
-0.1465902328,
-0.5235887766,
0.1866848469,
-0.3249721825,
-0.3480748534,
0.0296941008,
0.339266628,
-0.080281727,
0.2214087695,
0.2769948542,
0.0203872249,
0.1460018754,
0.4759074152,
0.0976115316,
0.3561217785,
-0.0767007247,
-0.0689726844,
-0.501239121,
0.1398175955,
-0.4139974117,
0.0408436917,
0.2894044518,
0.1724707335,
0.3225070238,
0.2895633578,
0.0376226082,
0.140389204,
-0.0968746766,
0.3843569756,
-0.2270289958,
-0.0645690262,
0.1950524151,
0.2118769884,
0.1090167165,
-0.2388572544,
0.323171109,
0.2930502892,
0.0205491446,
-0.2603199184,
0.3992157578,
-0.1971800476,
0.3074828982,
-0.0728125274,
-0.1389237493,
0.5194196701,
0.2293462902,
0.2214034945,
-0.1439767778,
0.0300037079,
-0.0908124149,
0.3211365342,
0.1461284906,
0.4942117631,
-0.4318767488,
-0.2108422071,
-0.0542693175,
0.1428686976,
0.0246402845,
-0.0425272547,
-0.1893386394,
0.2584878802,
-0.2203614414,
-0.014823203,
0.0579342209,
0.0337439179,
0.0794114545,
0.2195666432,
-0.2821283042,
-0.4187389016,
0.4235399365,
-0.1683392525,
-0.5067200661,
0.1799820513,
-0.2447522134,
0.1559958756,
0.1381158233,
-0.5674664378,
-0.1494411826,
0.2118352056,
-0.1582858562,
-0.2038370967,
-0.0375706926,
-0.0058427872,
-0.167292282,
-0.1489331424,
0.3547783792,
-0.1051540226,
-0.1671754122,
-0.4202931523,
-0.3254511952
] |
https://github.com/huggingface/datasets/issues/2080 | Multidimensional arrays in a Dataset | Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 27 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | [
0.0149022182,
-0.2567944527,
-0.0799354538,
0.1915314198,
0.449570477,
0.054927513,
0.8991121054,
0.101094313,
0.1804243475,
0.0678302348,
-0.1109768748,
0.3204249144,
-0.2819291949,
0.052211158,
0.1784114987,
-0.4505749643,
0.1631147712,
0.2940376103,
-0.3680664897,
0.0973282754,
-0.0565507896,
-0.056346558,
-0.2456142157,
-0.041922085,
-0.3301549554,
-0.2008832693,
-0.1476367116,
-0.1640365422,
-0.063876316,
-0.1978779882,
0.2409163713,
-0.1706257015,
0.2700606287,
0.260625124,
-0.0001195509,
0.2267989367,
0.0247741155,
-0.1292833388,
-0.035967689,
-0.0393489562,
0.2725147903,
-0.6480610967,
-0.0806011781,
-0.4324750602,
0.008071701,
-0.4712083638,
-0.2638433576,
-0.5005580187,
0.0513902232,
0.3928322196,
0.1141963825,
0.3314777911,
0.2363565713,
0.1579979807,
0.1462769657,
0.0132806357,
-0.1706012934,
-0.2005449533,
0.2393972874,
-0.2072260082,
0.0300292112,
0.0932104066,
-0.2798199356,
0.1661208421,
0.2681394517,
0.2049355656,
0.0058012581,
0.0611366592,
-0.0313577577,
0.1278438866,
0.4276590347,
-0.398072958,
-0.3639859259,
-0.2793343961,
0.0686926916,
-0.1197745949,
-0.1095298305,
0.3258959055,
-0.1266001016,
0.0910806507,
-0.4061065912,
0.1408001482,
-0.3182468116,
0.3343325555,
-0.4043463767,
0.2282192409,
0.1337881237,
0.1612995565,
0.0396000035,
-0.1324866563,
0.7339078188,
-0.0246706232,
0.3878376484,
0.0780725181,
-0.3060494661,
-0.02921037,
-0.1911205053,
-0.5545960069,
-0.0388241485,
-0.4604115784,
0.3082381189,
0.1663305014,
0.1043883339,
0.1976923048,
0.0353525765,
0.2383283228,
-0.4363073409,
0.4121214747,
-0.0672475472,
-0.2368494272,
0.4810280204,
0.0992482007,
-0.1561654955,
-0.1502652466,
0.1455621123,
0.0061738053,
-0.0272423699,
0.3684130013,
-0.2227879316,
0.0070692273,
-0.5160886645,
-0.0086483257,
0.0363630131,
0.1473617554,
0.108672224,
0.3957232833,
0.0416684859,
0.3720447719,
0.1662510037,
-0.1195259988,
-0.0711395741,
0.322499752,
-0.3391716182,
-0.0316564515,
0.1639197022,
0.5651168823,
-0.0971912593,
0.0204913877,
0.2087808549,
-0.0764324367,
0.0289027393,
-0.0874167606,
0.2978042662,
0.2908813655,
-0.1416599154,
-0.0486809053,
0.041272942,
0.2416125536,
-0.0130376481,
0.4392247796,
-0.0711849406,
-0.0471878946,
-0.3636682034,
-0.037487831,
-0.0945893675,
-0.0264145657,
-0.196016565,
0.186691016,
0.4951614439,
-0.0282086749,
0.1075463519,
-0.5084319115,
0.0889306888,
-0.2072448283,
0.140089646,
-0.3502913713,
-0.3905957043,
0.2010027766,
0.2407013327,
0.3463235795,
0.0975594744,
0.2834511399,
-0.3449481428,
0.0540578105,
0.0329004191,
0.2473341674,
0.338768214,
-0.0420006663,
-0.087117143,
-0.1622391641,
-0.0173251517,
-0.0007174694,
0.1112006605,
0.316839397,
0.1397198737,
0.1958105862,
0.1861188263,
0.1972096562,
-0.0389665253,
0.3523804545,
-0.091629602,
-0.2154468149,
0.4633565545,
0.2579581738,
0.3060801923,
-0.1548965424,
0.0176663231,
0.0563276522,
0.0940435529,
-0.5431796312,
0.1949044764,
0.3491542339,
-0.0187137555,
-0.0986339226,
0.0564411841,
-0.4492575228,
-0.7101922035,
0.160866648,
0.0483020507,
0.1065321267,
-0.1837565005,
-0.0663249418,
-0.1079391688,
0.1118318588,
0.0720699131,
0.1178974956,
0.0417498052,
0.035233289,
-0.0735232681,
-0.3971256316,
-0.2047447115,
0.0776524916,
0.3375151157,
-0.0829180107,
-0.3645123839,
0.5928975344,
-0.1039524376,
-0.2862938046,
0.0101347808,
0.4462892413,
0.0611805394,
-0.0496978574,
0.1977589279,
0.2274241596,
0.1230928972,
-0.3832359314,
-0.416023612,
0.4727385342,
0.2562884092,
-0.2721801996,
0.2036811709,
0.0511427857,
0.0157316886,
-0.0084935017,
-0.3207269013,
0.5687912107,
-0.0014346445,
-0.0261086188,
-0.2726281285,
0.1914386749,
0.08335419,
0.0909293219,
-0.1171600521,
-0.0677581802,
-0.2300037593,
-0.2115733325,
0.092215836,
-0.0045593539,
-0.3897839189,
0.0558722019,
0.267754972,
-0.1892516166,
0.2653500736,
-0.1347501725,
-0.0375847779,
0.0150869926,
0.1793587953,
-0.0371525772,
0.1663658172,
0.2058113664,
0.1150867939,
-0.1248198673,
-0.4518622756,
-0.1397284865,
0.0517304018,
-0.1079206094,
0.1812424064,
0.051861655,
0.2955332994,
-0.1676356345,
-0.0637025908,
0.0914284438,
0.31976372,
0.2288445681,
-0.4060830772,
0.162458837,
-0.3874131143,
-0.066466108,
-0.2304770648,
-0.2601809502,
0.0049726721,
0.0868771598,
-0.0880194008,
0.2342032939,
0.0812050998,
0.1689577252,
0.027766658,
-0.045000162,
0.2548811734,
-0.2477962226,
-0.0624879524,
-0.1313534975,
-0.064159289,
-0.0014590995,
0.1030867994,
0.1419321299,
0.1337924153,
0.4435389936,
-0.0571617708,
-0.459299624,
-0.0347506367,
-0.1463271677,
-0.2035897374,
-0.1697765589,
0.0904794559,
0.010605542,
-0.1125863045,
-0.0403799117,
0.3096114695,
0.2927798927,
0.0355216078,
0.3789585233,
0.2087776065,
-0.1153359115,
-0.1274021268,
-0.1328268051,
-0.1498312503,
-0.2656078637,
0.0212587714,
-0.3921458721,
0.1053935811,
-0.2647841871,
0.3787117004,
0.1925879568,
0.158702895,
-0.259398967,
0.0740580633,
0.3446683288,
0.6661352515,
-0.0351949148,
-0.390738517,
-0.3848360777,
-0.1644582748,
0.0585445277,
0.7011179924,
-0.2124487907,
-0.2320622951,
-0.1337759197,
-0.0626930371,
-0.1328709871,
-0.0599339642,
0.6345390677,
0.0861993656,
0.0013021969,
-0.0903874412,
-0.1663161367,
0.0663037822,
0.150948599,
0.0939805508,
-0.0813989118,
0.3435147703,
0.2753553689,
0.3017746508,
0.0231568366,
-0.2025795728,
0.2516397238,
-0.1907728016,
0.154907614,
-0.0294429697,
-0.2573096156,
-0.0765902922,
-0.3783546984,
-0.1627085358,
-0.0877782032,
-0.2194223106,
-0.5588401556,
-0.0134953531,
0.3541664779,
-0.1128610149,
-0.0620547384,
0.4988284409,
-0.3866079748,
0.3288063109,
-0.0005442557,
0.0491638146,
-0.3488150239,
-0.1622707099,
-0.1883962154,
-0.3264349699,
-0.1317930669,
0.0207404792,
-0.5361711383,
-0.2696357071,
0.1808828264,
0.1261783689,
0.376721561,
0.7153759003,
0.1138259396,
0.0400265679,
0.2162431329,
-0.0295357499,
0.5638816953,
-0.0700067803,
-0.3026607335,
0.3299583793,
0.0555711128,
-0.5217559338,
-0.2325491756,
-0.3563009501,
-0.1439816654,
-0.0971960425,
0.4788838029,
-0.3085346818,
-0.2306003422,
0.1910062283,
0.1853743941,
-0.1017971933,
-0.073461026,
-0.2473595142,
-0.2527900934,
-0.1889769584,
-0.1428681463,
0.4407945871,
0.3197948337,
0.2110813558,
-0.2233937681,
-0.1055803895,
-0.3295324445,
0.0886835083,
-0.0368408114,
0.0896123275,
0.1358524561,
-0.1247342825,
0.1726722419,
0.2221593261,
0.4825523496,
0.0961530283,
-0.1107676029,
-0.013559523,
0.1709890813,
-0.1279083639,
0.3795844913,
0.151859656,
-0.1087807193,
-0.2579711378,
-0.0883321837,
0.00151521,
-0.1207928658,
-0.0297296047,
0.2756110728,
-0.0356955379,
-0.2073620558,
-0.277988255,
0.2343325019,
-0.0254754741,
0.1139987782,
0.1716230065,
0.2811612487,
-0.1681226045,
0.2883462906,
0.333422631,
0.6774013638,
-0.505526185,
0.3920158148,
0.4707365334,
-0.1107952148,
0.2089314312,
-0.1366589963,
0.3178485334,
-0.2395370603,
0.0199287422,
-0.2089606375,
-0.1850182414,
0.2092855424,
0.418643862,
-0.0276027489,
0.0813101381,
0.0485320203,
0.210947305,
0.1919577271,
-0.0871063694,
0.129074201,
-0.245011121,
-0.0733691081,
0.0722152218,
-0.1949903518,
-0.3241554499,
-0.0126739684,
-0.2041718066,
-0.3422340155,
-0.0203461442,
-0.3445937634,
-0.129694432,
-0.3006146848,
0.4228590131,
0.1384604424,
-0.4948458672,
0.0487052239,
0.5728102326,
0.0256155189,
-0.3815950155,
-0.1450156122,
-0.3738671839,
-0.2349484861,
-0.2208291441,
-0.0488310605,
-0.2558012605,
0.3040537238,
0.0156504437,
-0.0739737004,
0.164384529,
-0.0304166973,
-0.3962724507,
-0.0108933076,
0.2503049374,
0.0972074941,
-0.2461635172,
-0.0253746025,
-0.1884799451,
0.1446112692,
-0.0500299037,
0.0604319908,
-0.0965674892,
-0.0386195518,
0.2899435759,
-0.0460208729,
0.0774859861,
0.1257362515,
0.2239425778,
0.1179814786,
-0.303109318,
0.1812615991,
0.1092494801,
-0.3035007417,
-0.1538247168,
0.2004553974,
0.5446795225,
-0.0663514286,
0.0234456267,
-0.3518611193,
-0.3031125665,
-0.0683958232,
0.1484072506,
0.3131946921,
0.1276940852,
-0.1933957934,
-0.202937156,
-0.2634924948,
0.4287036657,
0.3794881999,
0.2747299075,
-0.0351036936,
0.2906455994,
-0.1598075628,
0.0051987171,
-0.2314176857,
-0.0259405188,
-0.0979492217,
0.2771215141,
-0.0215536729,
-0.322276175,
-0.1066990122,
-0.1097238809,
0.0815521553,
-0.0875357389,
-0.116249077,
-0.1111931652,
0.0781163648,
0.1195414513,
0.1183836013,
-0.0039288024,
0.0257312078,
-0.4714917541,
-0.3264597952,
-0.2363396436,
0.0080077555,
0.4533225894,
-0.0041555874,
0.1654733717,
0.2998785675,
0.1157936081,
-0.0761751309,
-0.1688293666,
-0.1501287818,
-0.1383609027,
0.0050391383,
0.2183291316,
0.248464793,
0.0066200485,
-0.2967951596,
0.1318214983,
0.0704102144,
-0.0740278736,
0.3137462735,
-0.3049808145,
-0.0527509935,
-0.1453632265,
0.479377538,
-0.0544442497,
-0.3318727612,
0.0426694863,
0.15170376,
0.0878730193,
-0.2129777074,
-0.3487562835,
0.1269569397,
0.034896601,
0.1410359293,
0.5094713569,
0.3671323359,
0.1969046891,
0.1261758655,
-0.1247605309,
0.355117619,
-0.1337389946,
-0.1359165609,
0.3305075765,
-0.0477365628,
-0.0159559306,
0.2496726811,
0.0032822397,
0.2069057673,
0.5683192015,
-0.0471284203,
0.2942133844,
0.4007826746,
0.1045907289,
-0.1734314561,
0.1579918414,
-0.0968311578,
-0.0942734703,
0.2389736474,
-0.1445456594,
-0.1482390165,
0.2099243551,
-0.1258603632,
-0.0203976668,
-0.1106932238,
0.0989397839,
-0.2336273491,
0.1443286091,
0.0261038002,
0.0543618277,
-0.0992338136,
-0.1871890128,
-0.0987325609,
-0.077362299,
0.3327876329,
-0.00606472,
0.1644572765,
0.0103619341,
0.1795242727,
0.4635999501,
0.0343805663,
-0.180171296,
0.2851694226,
0.3174892664,
-0.1626901776,
-0.066926837,
0.0285956562,
0.293296814,
0.2905936539,
0.0055146054,
0.0178471673,
-0.1586216837,
-0.1852164567,
-0.0713800713,
0.0422842614,
0.039219033,
0.2712653577,
0.2794288397,
0.0286643151,
-0.0653818026,
0.1784531623,
-0.0235881694,
0.0513589941,
-0.1432748884,
0.2960940301,
-0.1465902328,
-0.5235887766,
0.1866848469,
-0.3249721825,
-0.3480748534,
0.0296941008,
0.339266628,
-0.080281727,
0.2214087695,
0.2769948542,
0.0203872249,
0.1460018754,
0.4759074152,
0.0976115316,
0.3561217785,
-0.0767007247,
-0.0689726844,
-0.501239121,
0.1398175955,
-0.4139974117,
0.0408436917,
0.2894044518,
0.1724707335,
0.3225070238,
0.2895633578,
0.0376226082,
0.140389204,
-0.0968746766,
0.3843569756,
-0.2270289958,
-0.0645690262,
0.1950524151,
0.2118769884,
0.1090167165,
-0.2388572544,
0.323171109,
0.2930502892,
0.0205491446,
-0.2603199184,
0.3992157578,
-0.1971800476,
0.3074828982,
-0.0728125274,
-0.1389237493,
0.5194196701,
0.2293462902,
0.2214034945,
-0.1439767778,
0.0300037079,
-0.0908124149,
0.3211365342,
0.1461284906,
0.4942117631,
-0.4318767488,
-0.2108422071,
-0.0542693175,
0.1428686976,
0.0246402845,
-0.0425272547,
-0.1893386394,
0.2584878802,
-0.2203614414,
-0.014823203,
0.0579342209,
0.0337439179,
0.0794114545,
0.2195666432,
-0.2821283042,
-0.4187389016,
0.4235399365,
-0.1683392525,
-0.5067200661,
0.1799820513,
-0.2447522134,
0.1559958756,
0.1381158233,
-0.5674664378,
-0.1494411826,
0.2118352056,
-0.1582858562,
-0.2038370967,
-0.0375706926,
-0.0058427872,
-0.167292282,
-0.1489331424,
0.3547783792,
-0.1051540226,
-0.1671754122,
-0.4202931523,
-0.3254511952
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 56 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 48 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 23 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 18 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 53 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 22 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 103 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 82 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | @lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 96 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
@lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| [
0.1249789745,
-0.2007294446,
0.0587180294,
0.3256507516,
0.4333939254,
0.0737895146,
-0.2180434167,
0.2950880527,
0.0288313068,
0.4309869707,
0.0965306684,
-0.0946348086,
-0.3058875501,
-0.5752206445,
-0.1799837202,
-0.3347723484,
-0.1305914521,
-0.060313765,
-0.0939676315,
0.2673473954,
-0.2414008081,
0.2181448489,
-0.3488659561,
0.1229341254,
-0.0717327371,
-0.0110546304,
-0.1759236902,
0.1331793815,
-0.2212713957,
-0.5667485595,
0.3025926948,
-0.3079390824,
0.190490678,
0.3594332039,
-0.000114279,
0.0282555185,
0.1901024431,
-0.1784470677,
-0.0109601971,
0.1174561232,
-0.1258537918,
-0.1865427345,
-0.1319399327,
-0.0092581427,
-0.0329880118,
0.0375669524,
0.108069174,
-0.2880085409,
0.0632088333,
0.2449464202,
0.1992428899,
-0.0609459579,
0.2961238325,
-0.2295082659,
-0.124109,
-0.1905778497,
0.197702989,
0.3163278699,
-0.27031371,
-0.177635923,
-0.2714262009,
0.2580879629,
-0.0427771583,
0.2143143713,
0.0936115831,
0.115760006,
0.0853941813,
0.0110053644,
0.0847667381,
-0.2555571496,
0.2671688795,
-0.3263044953,
-0.0301644728,
0.2048873454,
-0.1614337415,
-0.4275713861,
0.1660300493,
0.1187261716,
-0.5047885776,
0.0975702181,
-0.2040270567,
-0.1204813346,
-0.3942312002,
0.1254812032,
-0.0058268365,
0.0910321102,
-0.1965168267,
0.1057426482,
0.3368059397,
0.1566443741,
0.0604364611,
0.2069696039,
-0.1233543307,
0.0125257429,
-0.3743091226,
-0.0881424323,
-0.0584864952,
-0.2326196283,
0.1580233425,
-0.5695320368,
0.5826599598,
-0.0841273218,
0.3524423838,
0.4458707571,
-0.221832186,
0.8173157573,
-0.0972188413,
0.0790161192,
0.0414083563,
0.0784390494,
-0.1152929813,
-0.2438933253,
-0.0898668915,
-0.383959651,
0.2813354433,
0.1884756237,
-0.1235137135,
-0.1992423385,
-0.4400854707,
0.063966237,
-0.0409353599,
0.1174827516,
0.1261953115,
0.3188077807,
0.1651473641,
0.4893710017,
0.3132432997,
0.0720730647,
-0.1783275604,
0.0621532351,
-0.2334483713,
0.2319099456,
-0.2242502719,
0.0308981594,
0.12527439,
0.2297955304,
0.361698091,
-0.2322329283,
0.2106764466,
-0.2574238181,
0.2766294479,
-0.1106608957,
0.0838677585,
0.2026334405,
-0.0995928496,
-0.0087280963,
0.2297708988,
0.2736263573,
0.0345626995,
0.1165989712,
-0.2128034234,
-0.2432082742,
0.3005085588,
0.1580396295,
-0.0586498342,
0.0679568201,
-0.0645574257,
-0.0057820412,
0.2805486619,
-0.0548926704,
-0.3401753008,
0.0868660957,
-0.7389823198,
-0.2600602806,
0.1528926343,
0.0060367691,
-0.1756752878,
0.0054641198,
0.2558614016,
-0.012083536,
0.242209211,
0.0330549739,
0.0680652559,
0.1206670776,
-0.2044020444,
-0.1056599095,
0.3498840332,
-0.8443561196,
-0.1511170268,
-0.0499687083,
-0.1328816116,
-0.0256580431,
0.2559600174,
-0.2146238387,
0.1497689188,
0.1131592169,
0.3785304129,
-0.2864330113,
-0.1795537323,
0.024176117,
-0.1898521185,
-0.1139877811,
0.1790432036,
-0.1413315088,
0.3943663836,
0.0892049298,
0.1655687988,
0.140763998,
0.21558626,
-0.027472388,
0.1473461092,
0.2670477927,
0.2488002628,
-0.6484078765,
0.3060635626,
-0.0628644824,
0.1538830251,
0.1872501522,
-0.2421232164,
0.0660024732,
0.4159047008,
0.429313302,
-0.1300993562,
0.0161139891,
0.0612440184,
-0.1678278148,
0.2202241123,
-0.061580088,
0.306424886,
-0.2538881898,
-0.0041133221,
0.0725797564,
-0.3613116741,
-0.0806771964,
-0.006758682,
-0.2327687889,
-0.1088711992,
-0.22204189,
0.2936438024,
0.1907928884,
0.2006857991,
0.1718477011,
-0.2917718589,
0.3505719602,
0.1063389257,
-0.0170480832,
0.1874937415,
0.1884123087,
-0.1544378847,
-0.4010767043,
0.2174315453,
-0.0282920562,
0.2030490935,
-0.1185925379,
0.236372903,
-0.1250064522,
0.005632909,
0.3543414176,
0.0527255572,
0.313989222,
0.1135730892,
0.2762681842,
0.1866983324,
0.1431760639,
0.3140138984,
-0.4340701401,
-0.2543812394,
-0.3894142807,
0.3616289794,
-0.3148322999,
0.3210272789,
0.150976494,
-0.143353641,
0.4951443672,
-0.1373812109,
-0.1780489981,
-0.0775055662,
-0.3291463554,
0.4842245579,
0.0247814469,
0.0627916232,
0.1173735335,
-0.0368318856,
0.1472533494,
0.1195156649,
0.2113157809,
-0.1094558313,
-0.0626857802,
0.211215049,
-0.4670901895,
0.1594255269,
0.1257491857,
0.1019961163,
0.3387946486,
-0.2200201154,
-0.1152893156,
0.2674163878,
0.2180283368,
-0.132087335,
-0.0435181893,
-0.0258651488,
-0.2954535782,
-0.2042064518,
0.3511810005,
0.1040426865,
0.1294222772,
-0.0459420942,
0.2327173352,
0.241696164,
0.4276041687,
0.2114255428,
-0.0255015176,
-0.1811803877,
0.0590603985,
0.0218604673,
-0.0497093946,
0.1463517845,
0.0862489864,
-0.0498688556,
-0.043571379,
-0.1804244816,
-0.0071560531,
-0.001398679,
0.4104416072,
0.2205945849,
0.0727375075,
-0.2366646975,
-0.0322217382,
0.1743236929,
-0.2374214679,
-0.0384945944,
0.5531132221,
-0.0587111041,
0.0892809555,
-0.0565566011,
-0.1715921611,
-0.0936348066,
-0.3964666128,
-0.0207020324,
0.0413864739,
0.1471430808,
-0.1181742027,
0.140946418,
0.2246728539,
0.1708790809,
0.0079457648,
-0.206276238,
-0.3394730687,
-0.0268060975,
-0.230641216,
-0.1545539349,
0.0618928969,
0.0176214296,
0.6852978468,
0.1380211264,
-0.1405832022,
-0.4560722709,
0.001737113,
-0.2098917067,
-0.03037576,
-0.0160837267,
0.264473021,
-0.0626577437,
-0.1569626182,
-0.2842122316,
-0.0542895347,
0.2124325633,
0.1187748164,
-0.0273833759,
0.0317651741,
0.0322169289,
0.2830832899,
0.5209566951,
0.3953301609,
0.1029952094,
0.2838950455,
0.1921322644,
0.0036796788,
0.0900346413,
-0.1075098664,
0.1794608235,
-0.1067253202,
-0.1737582088,
0.1160285324,
0.0703592524,
-0.1351751238,
-0.197344929,
-0.0087813223,
0.0846388713,
-0.1840718389,
-0.0214703996,
-0.0188061036,
0.5045292974,
0.0923848003,
0.0470348038,
-0.1606875509,
-0.3939411342,
0.1025610492,
-0.0459621139,
0.0670704544,
0.009926605,
-0.0599401891,
-0.0090086982,
-0.7305294871,
0.2685512304,
0.1123603806,
0.4320126772,
-0.102011703,
0.0522878952,
-0.1586078703,
0.1142674834,
0.4286968708,
-0.0644567385,
-0.176528126,
0.0596211776,
0.0524652228,
-0.1683598012,
0.1471427828,
-0.1711663306,
-0.0384162515,
-0.2613118589,
-0.1168814525,
-0.0820593983,
0.0472740158,
-0.0062199864,
0.313118428,
-0.1601985395,
-0.2500495911,
-0.3472498655,
-0.1220533773,
0.0043928418,
-0.2169686109,
-0.1226406991,
0.0895525143,
-0.2176412791,
0.252351135,
0.0227338038,
-0.2952417433,
0.3482631147,
-0.1124062464,
0.1965745091,
-0.4322449267,
0.1332800388,
0.4644438028,
-0.2072868943,
-0.0170490909,
0.1137065366,
0.069550924,
-0.2817789912,
0.2407568991,
0.2017529458,
0.359578222,
0.067577146,
-0.291252315,
0.250919193,
-0.036182344,
0.0853488296,
-0.5771864653,
0.1801709533,
0.0886633322,
0.0613384657,
0.1381757557,
-0.062436115,
0.2326975614,
0.0552650094,
-0.1369006187,
0.2892401814,
-0.0195217151,
-0.2696187496,
0.2825177014,
0.2487514466,
0.7941429615,
-0.1485887319,
-0.0610653199,
0.4458685219,
0.0083941668,
-0.0881055743,
-0.2118182629,
0.5530890822,
-0.1516976953,
-0.0146360025,
0.0871366039,
-0.2238288075,
-0.0913898051,
-0.2526906133,
-0.2605436742,
0.6565312743,
0.0389123,
-0.1428080648,
0.0865544379,
-0.0474395417,
-0.1187873334,
-0.2465844601,
0.2222439498,
0.1842269152,
-0.187706396,
-0.1484000385,
-0.0387456715,
0.0764233992,
0.0927681029,
-0.3213992715,
-0.2134750038,
0.0094134659,
-0.2341892272,
0.1229041517,
-0.2876666188,
0.1384745389,
-0.0338191502,
0.4129704833,
0.3505012095,
0.1347853094,
-0.0439515337,
0.0642215759,
-0.1409433782,
0.0673819259,
0.081678614,
0.1936232746,
-0.0772470832,
-0.0423674844,
-0.2362024635,
0.3239811063,
0.0318995565,
-0.3035769463,
0.0209789444,
0.0041502113,
-0.0676420927,
-0.092741698,
-0.0991551504,
-0.1226346642,
-0.4054274261,
-0.10168387,
0.1665977538,
0.3358541727,
-0.6273183823,
0.3717975616,
0.0599584542,
-0.0581072308,
0.2039711773,
0.3034738302,
0.2402009666,
-0.3711037636,
0.5228542686,
-0.0703089684,
-0.0664501414,
-0.0849605054,
-0.3364022374,
-0.1057755649,
0.0251231939,
0.1875853539,
0.2309451103,
0.0863213986,
-0.2148943543,
0.1295986772,
0.0714633539,
0.2860014439,
0.147819072,
-0.3211326599,
-0.5705015063,
0.1984284818,
-0.1343360692,
0.0697698072,
-0.4777340591,
-0.2928742766,
-0.543330431,
0.0197102558,
-0.2649724782,
0.1309411824,
-0.4698497355,
0.1528990269,
-0.0560234636,
-0.1072278395,
0.241214633,
0.1662406027,
0.1316618919,
0.4861496985,
-0.160918504,
-0.1148331091,
0.013082318,
0.0763764158,
-0.0238657929,
-0.1037725955,
0.2343621254,
0.0766254216,
-0.1278420389,
-0.1201296523,
-0.1803636253,
0.2723796666,
-0.241699785,
0.0868962556,
-0.3836642206,
0.0731594935,
0.6001414061,
0.2037328929,
-0.0219240244,
0.2448607534,
0.0615680069,
0.2490886897,
-0.11190328,
-0.0583464541,
0.2134887874,
0.1071447581,
-0.1107833087,
-0.243285954,
0.1940626055,
-0.2006397098,
-0.230913803,
-0.1189454794,
0.2250618935,
-0.1795282066,
-0.2697107494,
0.0512613356,
0.1457482725,
0.210891515,
0.0513857231,
0.1789450794,
-0.1412661523,
0.0825065896,
0.0582628921,
0.2282674611,
0.1724425554,
-0.2710610628,
-0.0541157685,
-0.0430440418,
0.2277817726,
-0.3114747703,
-0.1649619192,
-0.2481331527,
-0.0783553943,
-0.1232033223,
-0.1370624155,
-0.0019343288,
0.3038542569,
0.5290899873,
-0.2573442459,
0.4064504206,
-0.4600453079,
0.0767791718,
-0.0782731548,
-0.3895432055,
-0.3259200454,
0.3104043603,
0.0393802375,
0.3134307861,
-0.3366589546,
0.122151874,
0.1313459724,
0.1683416814,
-0.1511766464,
-0.20366247,
-0.1160733104,
0.0636429563,
0.1578115672,
-0.3073450625,
0.0246312656,
-0.0502912663,
0.3668291867,
-0.0342526287,
0.3742721975,
0.0016255601,
-0.2236441821,
0.2601146698,
-0.0180129576,
0.5469643474,
0.0100532901,
-0.2832666337,
0.1146140024,
0.4181113839,
0.1426428556,
0.1386207491,
0.2846044898,
0.4829084873,
0.3588484526,
-0.2767453492,
0.2184022069,
-0.1127005219,
-0.1293807924,
-0.0103220344,
0.2846418023,
0.2454684377,
-0.0023277968,
0.185048461,
0.0348167457,
-0.0351409204,
-0.1497596949,
0.0099582104,
0.0568037108,
-0.2226731777,
0.0570196845,
-0.2153230757,
0.025585128,
-0.2253830582,
-0.0923115537,
-0.3778284192,
0.2275395691,
0.009168461,
-0.1401445121,
0.2049317062,
0.0773804933,
0.0560775101,
-0.2662172914,
0.3642235398,
-0.0509137623,
0.2151639611,
-0.6167621613,
-0.2342029214,
-0.1764984429,
0.1513810307,
-0.159351036,
0.4129830301,
-0.1397838444,
0.0939856917,
-0.1402536482,
-0.0286627281,
-0.0677689612,
0.1230889633,
-0.1035883054,
0.2747891545,
-0.3578974009,
-0.2949349582,
0.2261705995,
-0.142180264,
0.2543467879,
-0.4365847707,
-0.1602470875,
-0.2335590422,
0.0107784504,
-0.0389844738,
0.4080348313,
-0.0949811041,
0.5220332146,
0.0629380867,
0.3354321122,
0.5877147317,
-0.0117935184,
-0.2971834838,
-0.1095945537,
-0.1789062619,
-0.2137204409,
-0.4510127306,
-0.0793375522,
0.5294626951,
-0.1782435626,
-0.2955733836,
-0.2922706306,
0.3045113683,
-0.0391485989,
-0.0277266447,
-0.179613173,
0.3239212036,
-0.2037033737,
0.2875930965,
0.2503643334,
0.0669568479,
0.1562661976,
0.4125560224,
-0.3301568925,
-0.0906285569,
0.5843920708,
-0.1609609127,
-0.3511348963,
0.0949685276,
0.2776322067,
0.1976284832,
-0.363720417,
-0.8314568996,
-0.0270131659,
0.2877661586,
0.2366386801,
-0.102311261,
0.0471827462,
0.0729522333,
-0.0134904077,
0.2048306316,
-0.0837524682,
-0.1040182561,
-0.1719588935,
0.114699401,
-0.1332051158
] |
https://github.com/huggingface/datasets/issues/2076 | Issue: Dataset download error | Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 32 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | [
-0.2337625623,
0.1458082795,
0.0028069636,
-0.0309510417,
-0.0274383835,
0.0824486315,
0.3759452701,
0.2059573531,
0.1537597179,
0.0144034671,
0.1848477572,
-0.1723967791,
0.2339598238,
0.2969176471,
0.1645151824,
-0.0703358129,
0.1124436706,
0.0390217677,
-0.2078586519,
0.0084465966,
-0.3404217362,
0.2083994895,
-0.336063236,
0.0776544362,
-0.1339360774,
0.1082170159,
-0.2342873812,
0.2046138346,
0.0053030569,
-0.5016641617,
0.1856250763,
0.2496992052,
0.2551790178,
0.2303702831,
-0.0001261119,
-0.0265722591,
0.435916096,
-0.1366344988,
-0.217359364,
0.0990798399,
-0.4538175464,
-0.2230212688,
-0.1618051678,
-0.3308692276,
0.2659613788,
-0.1933166981,
0.1802406907,
0.3238406479,
0.1627968401,
0.5249043107,
0.0954556316,
0.2440400422,
0.3832688034,
-0.0178589523,
0.0295931138,
-0.1398885548,
0.0056163617,
0.2431161553,
0.1671784371,
-0.1312990189,
0.1934747994,
0.2265263498,
-0.0200184807,
0.0947975814,
0.2447728366,
0.0861288831,
0.2219018638,
-0.4831432104,
0.275297761,
0.0740562752,
0.9506680369,
-0.3367395103,
-0.3953082263,
0.0342548862,
0.1537053436,
-0.0347731411,
0.2187416553,
-0.0993445292,
-0.0766191408,
0.1927041113,
-0.0719741806,
-0.4454040825,
-0.2641429901,
0.2948847711,
-0.0705400407,
0.6482893229,
0.2004716992,
0.1531991214,
0.1943138093,
-0.0314074941,
0.3032344282,
0.1202325821,
-0.1972545832,
-0.002012423,
0.2240179628,
-0.2257650793,
-0.1425873786,
0.1321185976,
-0.0379858874,
0.0900658816,
-0.0158376005,
-0.0804635435,
-0.1313908994,
0.0318030193,
0.2977486849,
-0.0259649977,
-0.0639488921,
-0.1357345432,
0.5959555507,
0.4367472529,
0.1359974146,
-0.0484648384,
0.2467376888,
-0.5086387992,
-0.0841769129,
0.1293987036,
0.3410678208,
-0.0649036765,
-0.240212664,
-0.3356492519,
0.0078357467,
-0.1144976914,
-0.1429987401,
0.2463043183,
-0.0248054359,
0.0981619433,
0.0490982719,
0.1763309538,
-0.0579828732,
-0.2141544074,
0.0657004714,
0.1828425676,
0.0734450594,
0.0571354069,
0.1977763176,
0.2320505679,
-0.0572204404,
-0.0442004018,
-0.3850721419,
-0.2132742703,
-0.2779664099,
0.0655521378,
0.070588924,
-0.0053242245,
-0.0922138616,
0.1173287928,
-0.0756691173,
-0.1958308369,
-0.1742602736,
0.3008241057,
-0.4043316245,
-0.1922465712,
-0.1143398732,
-0.0011620022,
-0.2243248075,
-0.3667370081,
0.1075002104,
0.0201692674,
-0.3128475845,
-0.3899009228,
-0.0386797152,
-0.0872282907,
-0.3737508655,
-0.1814860553,
0.1254691631,
0.7528216243,
-0.547804296,
-0.2115306705,
-0.2793197036,
-0.2170636058,
0.0229440574,
0.2886827588,
-0.1325899512,
0.3553584814,
-0.405444473,
0.1295458078,
0.5153890848,
-0.4172058105,
-0.7371989489,
0.144678846,
-0.0059493375,
-0.1772411168,
0.1121798009,
0.1850416511,
0.124852851,
-0.2103364915,
-0.4866015017,
0.1159007922,
-0.0161941815,
0.0633498952,
-0.1106217206,
-0.5575137734,
0.3404840529,
0.0558740087,
0.2634511292,
0.2367097884,
0.4612345397,
-0.0207830723,
0.4065788388,
-0.0609180219,
0.1000963748,
0.3868403733,
0.477605015,
0.044723846,
0.2310118526,
0.0881086439,
-0.4134583771,
0.1487098634,
0.103504546,
0.0112759518,
-0.3565676212,
-0.05821646,
-0.4483052492,
-0.1214279681,
-0.2669532001,
0.0149107128,
-0.0321030617,
0.0315876864,
0.0605462082,
0.0501001626,
-0.1429136842,
0.0495224372,
-0.1035652459,
-0.0192489419,
0.0885357931,
0.5486965179,
-0.1757844985,
-0.094208315,
0.1593253762,
0.127120629,
0.2328129709,
-0.2303652018,
-0.1200086549,
0.4031562209,
-0.2489544451,
0.4772262871,
0.3295178711,
0.3072072864,
0.1701675504,
-0.4089674652,
0.2946334183,
0.4525769353,
0.0123854335,
0.0576632246,
-0.1450576186,
-0.1638091803,
0.0704363063,
0.2487748861,
0.0597919263,
0.0034617775,
0.177011162,
-0.2544130683,
0.0570460334,
-0.18400383,
-0.3074970245,
-0.1961551756,
-0.0975586474,
-0.2141674608,
-0.0272729658,
0.1944452822,
0.5489945412,
-0.0981291085,
0.285413146,
0.3537484109,
-0.0131100249,
-0.1059929803,
-0.1862700582,
0.63576442,
0.347435683,
-0.0694111139,
-0.1281583458,
0.1623582393,
0.2249325961,
-0.1026634574,
0.2864803672,
0.1101242155,
-0.2034561783,
0.141966328,
-0.0807325542,
-0.1086300313,
-0.0259584952,
0.0884378105,
0.1489774287,
0.33544451,
-0.3748235404,
-0.0133950291,
-0.3511461914,
-0.4899001718,
-0.3558899462,
0.4411512315,
-0.2762394845,
-0.3060372472,
-0.0208474062,
0.3651288152,
-0.1554071158,
0.1203490272,
0.1482290328,
0.3038350642,
0.0550499856,
-0.0216288529,
-0.3250443637,
-0.0932600349,
-0.1645985544,
-0.062913999,
0.3674085438,
0.0479612052,
0.0950698107,
-0.5916243792,
-0.0839567259,
-1.0300797224,
-0.0702777356,
0.0633478314,
0.1601596475,
0.1411255896,
0.2158606201,
0.3985548913,
0.1617076993,
-0.0413315445,
0.110281989,
-0.2546848953,
0.1499241889,
-0.243418619,
-0.1488885283,
0.1329916269,
0.002118757,
-0.1931247711,
-0.5508329868,
-0.1271965057,
0.1204166636,
-0.0660432875,
0.0839749947,
-0.1132253557,
0.29343611,
-0.2033243477,
0.2035321742,
-0.3117203712,
0.1289833337,
0.3097100854,
0.4342479706,
-0.0575690642,
-0.3968018293,
0.2718307376,
0.1163853034,
-0.0004382559,
-0.0436474755,
-0.5142813921,
-0.1939066052,
0.0119603509,
0.2472348511,
-0.0632780492,
0.3359139264,
0.1272756308,
0.1365228891,
0.0328032151,
0.007582712,
-0.2230253816,
-0.124237217,
0.377746582,
0.5201424956,
0.5347799659,
0.427601546,
-0.1535896361,
0.2914153337,
-0.1811153144,
0.0489287823,
0.3592682183,
-0.3136161566,
0.2962453663,
0.1019998416,
-0.2116548866,
0.1593256891,
-0.1649796963,
0.0663421005,
0.2345595211,
-0.0905944332,
-0.0390404873,
-0.041017469,
-0.2618568242,
-0.3001765311,
-0.4504911602,
-0.2143329084,
0.5330836773,
0.2515183985,
0.2891175449,
0.0485667102,
-0.2502556443,
-0.1967388242,
0.4842902422,
0.3863712251,
0.0330062993,
0.1109356359,
0.2658003569,
-0.1529666036,
-0.4952216446,
0.293727994,
0.1064504832,
0.370438844,
-0.0387926921,
0.1575804949,
0.0535718724,
-0.1242309436,
0.5772591233,
-0.2539207935,
0.262244463,
0.0684627891,
0.450742811,
0.2348901033,
-0.1190133542,
-0.1213347316,
0.2323835045,
0.277028501,
0.0421765298,
-0.0232234225,
-0.2797360122,
0.4637603164,
0.3966560066,
-0.2198312134,
-0.166815117,
0.0358490124,
-0.4945953786,
-0.5470474362,
-0.1587895304,
-0.0464202277,
-0.12778382,
-0.2064093202,
0.1471785158,
0.2195530236,
-0.4050369263,
-0.1216314137,
-0.0795790181,
0.3472926021,
0.3004161119,
-0.1756515503,
0.0963393077,
-0.1135503948,
0.0484542027,
0.2051044106,
0.0558826029,
-0.0908672735,
-0.0405819863,
-0.2574217021,
-0.0985094681,
0.3127679229,
-0.0970450267,
0.0623676069,
0.0962244421,
0.090565823,
-0.0373131037,
-0.0823157281,
0.4640597403,
-0.1007034779,
-0.3637643158,
-0.3087790906,
0.3928532302,
-0.1518968195,
-0.113024123,
0.3743217885,
0.2573767304,
-0.2176195532,
-0.1212860346,
-0.1908540875,
0.7290434241,
0.1189943105,
0.0608188808,
0.2324612439,
-0.1031740755,
0.3928862512,
0.0442272089,
0.1866859347,
-0.3072915673,
0.013565612,
-0.1269168556,
0.0699343756,
-0.2178971767,
0.3358351886,
-0.1396818161,
0.5958755612,
0.0264238268,
0.0196548942,
0.1223940551,
0.4716735482,
-0.1609157026,
0.134767428,
0.0217930358,
0.0155309904,
0.0058715385,
0.3723073602,
-0.2040601671,
-0.1112762764,
0.1404048055,
-0.2147952616,
-0.5518470407,
0.0312192813,
-0.2196573466,
0.2581178546,
-0.1295252442,
-0.2145422697,
0.2832956016,
0.2206096202,
0.2376623601,
0.0511693656,
-0.3972945809,
0.3764605522,
-0.1678476334,
-0.1342571527,
-0.0164703541,
0.425186336,
-0.0932803303,
-0.1290361881,
-0.5057974458,
-0.0665258542,
-0.0633844286,
-0.4335305691,
0.0353139266,
-0.1436430067,
0.2073925883,
0.0223263744,
-0.2601280212,
-0.1609869748,
-0.2571827173,
-0.3202685714,
0.0321981795,
-0.1532747746,
0.2593230307,
0.2261018753,
-0.3166200221,
-0.0997115299,
0.0227731168,
0.3828011751,
-0.362580359,
-0.1783668548,
0.7151678801,
0.2753102779,
0.0341884121,
-0.2545824945,
-0.10986536,
-0.2667810023,
-0.5026059747,
0.2774838209,
0.0283323955,
0.2976674139,
-0.1477477998,
0.3914977312,
-0.0281554293,
0.3012160659,
-0.3247285485,
-0.4623773992,
-0.1138150692,
0.1630939394,
0.3029041588,
0.2098995894,
-0.1154577211,
-0.1208948791,
0.2744279802,
-0.772793889,
-0.1710738838,
0.1700762957,
0.1075911596,
-0.1491921246,
0.6299344301,
0.263500005,
0.1223267019,
0.0482029803,
-0.0152931977,
-0.088960059,
0.1578664035,
0.0107661951,
-0.1816477776,
0.1998369098,
-0.1018722057,
-0.3029545546,
-0.0435123928,
-0.3821089566,
-0.0914797708,
0.0892081261,
-0.0704933107,
0.1908291578,
-0.0954103246,
0.1595569849,
0.2407404035,
-0.2178866565,
-0.1527138501,
0.1699924022,
0.1581747681,
0.6770747304,
0.0224984176,
0.5906766057,
0.0715459138,
0.2081639171,
0.1268258691,
-0.02721145,
-0.0118105784,
-0.0902830064,
0.2888883054,
-0.1499811858,
0.0181564298,
0.1129626408,
0.0499140061,
0.5606861115,
-0.3244296312,
-0.1388920099,
0.1753304005,
0.0103011569,
-0.3160126507,
-0.264120996,
0.0585898682,
-0.106705524,
-0.0889443457,
0.0581988432,
0.2003954053,
-0.1789783686,
0.2719346583,
0.1372807324,
0.5460569859,
-0.2183976024,
-0.0025360591,
0.1830998361,
0.0839234367,
0.0638807714,
-0.1288949102,
-0.0195840783,
0.1315480173,
0.2045429051,
-0.2031108886,
-0.180332765,
0.0513298213,
0.2913494706,
-0.1182788014,
-0.3024704456,
0.0350254811,
-0.1756962091,
-0.0054640304,
-0.0331739448,
0.1636321694,
-0.0354049616,
0.0091178343,
0.01762872,
-0.2669948936,
0.3506841362,
0.3031773269,
-0.1372588128,
-0.0752669051,
-0.2641395926,
-0.1847487986,
0.1526068747,
-0.1008403301,
-0.1865116656,
-0.1494012177,
0.1171888709,
-0.0281912945,
0.0020579896,
0.0397116095,
-0.1866705716,
0.3073958457,
-0.2139272392,
0.0651061535,
0.1143323258,
0.0419493765,
0.2495665401,
0.3084128797,
0.3976806104,
0.2047303915,
0.1932729632,
0.035363771,
-0.0516657978,
-0.1282118112,
0.1300673336,
-0.0342165157,
0.0622274838,
0.0144371921,
0.1851659268,
0.0652070418,
0.0129531203,
-0.2733807266,
0.0699007809,
0.0067425924,
-0.0596714988,
0.1353976727,
-0.1359246522,
-0.1752942353,
-0.391338706,
0.1247340068,
-0.2187499851,
-0.2254517078,
0.2953238189,
-0.0370716043,
0.0295270365,
0.0159368366,
-0.0137185082,
-0.0635184497,
0.3564923406,
0.3876615763,
0.2662046552,
-0.2750082314,
-0.3162680268,
-0.6508069634,
0.0528048985,
-0.0115176681,
-0.0463801175,
-0.0717247277,
0.0346123464,
-0.47316733,
-0.2058358192,
0.6622769237,
0.3213905692,
0.0657564551,
0.0941250324,
-0.0088429879,
-0.2726206183,
-0.0666332841,
0.4215420485,
-0.0503577143,
-0.309148699,
0.1369163692,
-0.2878561318,
-0.1207703501,
0.0265604574,
-0.1604079902,
-0.0896116048,
-0.1639433205,
0.4298085272,
-0.0328953005,
0.3747122288,
-0.1414087266,
-0.2511022091,
-0.4756082594,
-0.3053546846,
-0.2396206707,
0.235724777,
-0.064679414,
0.0401486345,
0.0480125435,
0.3212939799,
-0.4206644595,
0.1166842654,
-0.1158883572,
0.2996490896,
-0.1811909825,
0.0739009231,
-0.0550207421,
0.1277781874,
0.3625873923,
-0.1197774112,
-0.142440781,
0.0054812976,
-0.3037088811,
-0.0694786683,
0.3491155207,
0.0033646382,
-0.1348212957,
-0.1744973809,
0.3634094298,
-0.0651311427,
-0.0328343101,
-0.2893852293,
0.0206732247,
0.1345507354,
0.2909767926,
0.0081328684,
-0.0106980568,
-0.0847697631,
0.0984797701,
0.1847165525,
-0.0131015247,
0.2195800394,
-0.3208525181,
-0.0776854232,
-0.0505718589
] |
https://github.com/huggingface/datasets/issues/2076 | Issue: Dataset download error | It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 37 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | [
-0.2658807337,
0.1200054884,
-0.0836952478,
-0.1060318723,
-0.0561512299,
0.013199131,
0.1135272607,
0.3138659894,
0.1883040071,
-0.0665743649,
0.0962726325,
0.0473743118,
0.2630379498,
0.2957365513,
0.0410316512,
0.0087641925,
0.0977709815,
-0.0120597463,
-0.2833595276,
0.0477566496,
-0.4010065198,
0.1854478717,
-0.3126534522,
-0.0935633332,
-0.0601684377,
0.1259150803,
-0.3016750813,
0.1154679954,
-0.0281023104,
-0.626331687,
0.2720077932,
0.3913550675,
0.316203326,
0.1880384982,
-0.0001158188,
-0.1218974516,
0.3769318163,
-0.1369827539,
-0.2984446287,
0.0435838699,
-0.6287519336,
-0.3450358808,
-0.1360736191,
-0.2700527906,
0.22668235,
-0.3958936632,
0.0692492798,
0.2054873705,
0.1902892888,
0.5130624771,
0.1835778654,
0.3192788959,
0.2641102374,
-0.0636403188,
-0.0598327704,
-0.0225949008,
0.0009520505,
0.0705707669,
0.2730743885,
-0.1185736433,
0.2492120117,
0.271538347,
-0.015235357,
0.0100927716,
0.278878063,
-0.0789460614,
0.2402882278,
-0.474293977,
0.1814898252,
-0.0224349219,
0.8869274855,
-0.3021597862,
-0.4625473917,
0.1310071945,
0.0809327662,
-0.0163424462,
0.0607642084,
-0.0797376186,
-0.1218895465,
0.2370424569,
-0.1727015823,
-0.4722522497,
-0.2464636266,
0.3339923322,
0.1414073408,
0.6231670976,
0.1615861505,
0.1888067871,
0.1574318558,
-0.104122512,
0.2951929867,
0.0304812305,
-0.2320183665,
0.0254931245,
-0.0074020219,
-0.2957547009,
-0.0889702365,
0.0468945056,
0.0084476899,
0.2330872267,
-0.0686245784,
0.0362837575,
-0.1587980241,
-0.0047764368,
0.2110501081,
0.0406272225,
0.1961813867,
-0.0088388538,
0.4371443391,
0.6046851277,
0.1306501925,
-0.041873537,
0.2024901211,
-0.3794596195,
-0.2645078003,
0.1908554882,
0.2263666838,
-0.1044935659,
-0.1037601158,
-0.2227148265,
0.0441982001,
-0.1268345267,
-0.047600776,
0.2771446109,
-0.1958621144,
0.2930208147,
0.1614925116,
0.1268987209,
-0.0220558997,
-0.2848354876,
-0.0018294625,
0.0769976377,
0.0430146232,
0.1160065532,
0.1961963475,
0.3151426911,
0.1433614641,
-0.0962004215,
-0.3094978631,
-0.129516378,
-0.1571157128,
0.2209687084,
0.1312756389,
0.0491553955,
-0.1215956062,
0.2386568189,
-0.0439965203,
-0.022794364,
-0.1235124692,
0.2856395543,
-0.2518402934,
-0.2053990811,
-0.1939590573,
0.0960123986,
-0.188402608,
-0.3877759576,
0.0536032952,
-0.0562482588,
-0.2581742406,
-0.350361377,
0.014182792,
-0.0462337174,
-0.3027746081,
-0.1621433944,
0.184140414,
0.5909866691,
-0.4561736584,
-0.1229091734,
-0.1829642504,
-0.206173867,
0.0710775927,
0.198003605,
-0.1920290738,
0.1715581268,
-0.145881936,
0.095549874,
0.525914669,
-0.4413203597,
-0.5953445435,
0.2981189489,
0.0802383274,
-0.1355932802,
0.0588277206,
0.2166191339,
0.0263027623,
-0.223321408,
-0.5292847157,
0.1446318328,
-0.0034887053,
0.1147145033,
-0.2648131251,
-0.5547557473,
0.2628454566,
0.0557121299,
0.0934379324,
0.1474309117,
0.2381833941,
0.1280945987,
0.5918653011,
-0.0884998292,
0.1206209064,
0.2447380424,
0.460272193,
0.2188754529,
0.2180590779,
0.1307166368,
-0.3153167367,
0.176742211,
0.1015621647,
0.0456397124,
-0.3460796773,
-0.1567668617,
-0.4196776152,
-0.0620037876,
-0.2741812468,
-0.2161061019,
0.0659201071,
0.1583598405,
0.1244072989,
-0.1213250235,
-0.2550234795,
0.1691549122,
-0.2095876187,
-0.0120718153,
-0.0166060645,
0.4373681843,
-0.1722994447,
0.037426237,
0.0834377632,
0.0616311766,
0.1808362007,
-0.2504227757,
-0.2579286695,
0.6097425818,
-0.2146878541,
0.2997117937,
0.4298553169,
0.1492436081,
0.1207444221,
-0.3250733316,
0.2012682408,
0.4072019458,
-0.0089439349,
0.1707869619,
-0.0672067478,
-0.1860924512,
-0.0213031247,
0.4060420394,
0.0932736173,
-0.0004357555,
0.1702743322,
-0.2249174416,
-0.0809180886,
-0.2327186316,
-0.2935732603,
-0.1963056326,
-0.258728832,
-0.1721241027,
0.0489454009,
0.247743398,
0.4090801477,
-0.0953667313,
0.0576704368,
0.3085023463,
0.0654461011,
-0.0970145985,
-0.1172316149,
0.6027163267,
0.3352912068,
-0.0526721738,
-0.247640565,
0.1453815103,
0.2162245214,
-0.0910261124,
0.2975566387,
0.1390433311,
-0.0856263861,
0.0401938409,
-0.048190143,
-0.0874652416,
0.0182939488,
-0.0237719957,
0.1500091851,
0.3771412075,
-0.2876276374,
-0.0323112421,
-0.3990881741,
-0.5441098809,
-0.2596680224,
0.2256847471,
-0.1787067056,
-0.3382885754,
0.0340355113,
0.2766571939,
-0.1662929654,
0.2912938893,
0.083088249,
0.2072326988,
-0.0298418812,
0.1257417798,
-0.2831582725,
-0.1041708216,
-0.1987839192,
-0.0051610875,
0.3439478576,
0.0879267678,
0.1258615553,
-0.5627507567,
-0.1183173731,
-0.8395569324,
-0.0598169528,
-0.1080490351,
0.1796330363,
0.1123825684,
0.2555805445,
0.4747666717,
0.2410743386,
-0.1111322194,
0.2254039943,
-0.1684917957,
0.2313162833,
-0.359550029,
-0.0888079554,
0.0528102294,
-0.0316060521,
-0.3374097645,
-0.4721330404,
-0.2592509091,
0.0998061448,
-0.0883100107,
0.1336275637,
-0.0836946964,
0.3151403964,
-0.2561670542,
0.033276584,
-0.2438776493,
0.0764199272,
0.1267908216,
0.3804920018,
-0.1830554307,
-0.4039411843,
0.1734004915,
0.1466894299,
0.1630405486,
-0.1210626438,
-0.4460036457,
-0.2127233893,
0.0524974316,
0.1790833771,
-0.0879112333,
0.3145514131,
0.086670503,
0.0773892105,
-0.0600988232,
-0.0604950339,
-0.1283682883,
-0.1422703415,
0.252017349,
0.608651638,
0.399035871,
0.3653602302,
-0.014084558,
0.2753290236,
-0.0019120444,
-0.0331549384,
0.2885210216,
-0.2751231194,
0.2634462118,
0.1812661588,
-0.3473002911,
0.0599860959,
-0.1347781271,
0.1323148906,
0.180936411,
-0.0634685978,
0.0471935645,
-0.0834674984,
-0.2222917229,
-0.2062917799,
-0.3979876935,
-0.100489825,
0.4765741825,
0.2636370659,
0.3525407612,
0.0868993178,
-0.3535328209,
-0.1068001017,
0.4027781785,
0.3336625993,
-0.0035472277,
0.0683810934,
0.0228770953,
-0.1878337413,
-0.3891741633,
0.3738920093,
0.1154213548,
0.391048342,
0.1219121739,
0.0870750546,
0.0079191774,
-0.1195584536,
0.6106873155,
-0.4253921509,
0.1043015271,
0.0488905199,
0.4268634617,
-0.1118367687,
-0.1418846548,
-0.0411711298,
0.2548785806,
0.2616055608,
0.0971641392,
0.0374438949,
-0.3399624825,
0.347455591,
0.3804398179,
-0.2724184692,
-0.1804115027,
0.1298932284,
-0.4039519429,
-0.6693726182,
-0.2616965175,
-0.1312409788,
-0.1188314557,
-0.1276837587,
0.1464574188,
0.33425349,
-0.134438619,
-0.1007191464,
0.1044347137,
0.1917995661,
0.5774642229,
-0.0842699111,
-0.0353936143,
-0.1307768971,
0.1626769304,
0.1719177216,
-0.0485265404,
-0.1981221437,
-0.2173077017,
-0.1212562323,
0.0316818021,
0.2801322937,
-0.0337841623,
0.0714720786,
0.1753660887,
0.1817181408,
0.0264156442,
0.1469886154,
0.5127022862,
-0.198101595,
-0.2774859369,
-0.5861621499,
0.3841051161,
-0.1813441068,
-0.095809482,
0.3464312553,
0.098162584,
-0.1492696255,
-0.0129501531,
0.0048460378,
0.6299352646,
0.2925106585,
0.0522353873,
0.2048245519,
-0.0285994913,
0.5659810901,
0.0059444797,
0.1267871559,
-0.3390862644,
-0.0320803523,
-0.0287114009,
0.1228827313,
-0.1193820015,
0.2378742248,
-0.1434058994,
0.5463699102,
-0.0078887008,
-0.0930930227,
0.1464378983,
0.4880788028,
-0.1445129812,
-0.0232823975,
-0.106228523,
0.1316645294,
-0.0481891669,
0.3345881701,
-0.0951205343,
-0.122129865,
0.0724356174,
-0.1510442346,
-0.4289672375,
0.107473582,
-0.3221225142,
0.2852959633,
-0.1269461215,
0.1787614673,
0.2097799033,
0.230677709,
0.2053615004,
0.1746482849,
-0.2870623767,
0.3699123263,
-0.0707248598,
-0.1091889739,
0.0266304947,
0.3230379522,
-0.047536321,
-0.2259249836,
-0.5937911272,
-0.0951292217,
0.0163211338,
-0.290143162,
0.1625817269,
-0.2702561021,
0.370439142,
-0.1117240191,
-0.2816073,
-0.0553286932,
-0.2641735971,
-0.2904845178,
0.095732078,
-0.2068890184,
0.0748639032,
0.3429571092,
-0.2037488073,
-0.0831960887,
0.0226183366,
0.3929960728,
-0.3618121445,
-0.1502797455,
0.6512703896,
0.2463870347,
0.1058228016,
-0.3233753741,
-0.0739870593,
-0.2134783268,
-0.5588195324,
0.1342838705,
0.1284736246,
0.2565953434,
-0.1076333523,
0.5815692544,
0.0690359473,
0.313582629,
-0.2030029595,
-0.440582484,
-0.1772630215,
0.1600170285,
0.3316249251,
0.2019184381,
-0.2039651275,
-0.1100360602,
0.1043669134,
-0.6226139665,
-0.2635371685,
0.0713728815,
0.0797324106,
-0.0830929428,
0.5312467813,
0.2811521292,
0.2359325439,
0.0246131085,
0.0306046009,
-0.1111806333,
0.0029791957,
-0.0818332061,
-0.2952366769,
0.143368125,
-0.0078056068,
-0.370046854,
-0.0679018721,
-0.3382747769,
-0.1110148355,
0.0122494996,
-0.2359368354,
0.1323666573,
-0.0991358906,
0.3274613619,
0.1289874762,
-0.2455890179,
-0.079808861,
0.224587217,
0.245607242,
0.6195127368,
0.0893693119,
0.5125226378,
0.034383513,
0.0344540961,
0.190352276,
0.0126584172,
-0.1068080813,
0.0401706733,
0.2409956604,
-0.0635920987,
0.1247480139,
0.2878765166,
0.1464393139,
0.7235214114,
-0.1657292247,
-0.1074037328,
0.1783138663,
0.1075236574,
-0.2422152162,
-0.1480087042,
0.1144231185,
-0.0603428185,
-0.1510428488,
0.0507803932,
0.145988524,
-0.2648043931,
0.3208701611,
0.1363301575,
0.4105604291,
-0.209136039,
0.1390141845,
0.2326118052,
-0.0402197577,
0.0106300404,
-0.260722518,
-0.016524937,
0.1434253305,
0.0729608238,
-0.2590852678,
0.0021660833,
0.1359725147,
0.2214531153,
-0.1256232262,
-0.2092449218,
0.1244171783,
-0.3079871833,
0.0531324483,
-0.0780405924,
0.1538693309,
0.0930998325,
0.0630084127,
-0.0837694556,
-0.1868068576,
0.4469353557,
0.3637335002,
-0.228459388,
-0.3311856389,
-0.2089336962,
-0.2458162308,
-0.0108431811,
-0.1313482523,
-0.2673425674,
-0.0420361869,
0.0208689459,
-0.0651238486,
-0.2304665297,
-0.0795351639,
-0.1641400903,
0.344299227,
-0.1986872852,
-0.034069322,
0.3539013863,
0.0192966796,
0.2935784757,
0.1662085503,
0.3890130818,
0.3031674325,
0.2825599611,
0.1341406554,
-0.0747470185,
-0.0764376447,
0.1327647269,
-0.0515593141,
0.0485228598,
-0.0168990996,
0.2257482558,
0.1243709922,
-0.0633889288,
-0.2191685885,
-0.0188533161,
0.1339442879,
0.006630796,
0.2588453591,
0.0274212249,
-0.0982636437,
-0.379743427,
0.1497978717,
-0.2567155063,
-0.2685226798,
0.2529696226,
-0.0581980012,
0.075430885,
-0.0542056523,
0.0456066504,
-0.2022538483,
0.5885546207,
0.296463728,
-0.0175198838,
-0.2498061955,
-0.3237137794,
-0.6692291498,
-0.0296268109,
0.110743247,
-0.1353234798,
-0.1589659601,
0.0406372286,
-0.3685363233,
-0.1781419814,
0.4535003304,
0.0676384568,
0.0767982304,
0.2088021189,
-0.0742545202,
-0.1603697985,
-0.1425299495,
0.5685744286,
0.1327404976,
-0.2423030436,
0.0843379498,
-0.375014782,
-0.0309349056,
0.0248883367,
-0.2898809314,
0.0856143832,
-0.2652180791,
0.3958437145,
0.0156828761,
0.3200856447,
-0.2106958926,
-0.2838000953,
-0.5346636176,
-0.3248728216,
-0.2505565584,
0.2824266255,
-0.046887096,
0.1986868382,
0.0551881492,
0.3310994506,
-0.4635559618,
-0.0262526777,
-0.1626529992,
0.0588618591,
-0.1297528148,
0.0431795157,
0.0607057773,
0.0616322532,
0.3075375557,
-0.0734092072,
-0.1837177575,
0.0640982985,
-0.2904723883,
-0.1000134498,
0.615092814,
-0.0545789972,
-0.1901323646,
-0.176868245,
0.2843330204,
-0.152860567,
-0.1110521182,
-0.2704385221,
0.0030385011,
0.1568035185,
0.3058634698,
-0.0243738554,
0.1428262889,
-0.1586356461,
0.1243695542,
0.0833777264,
-0.0151748285,
0.1502654701,
-0.3417600393,
-0.1232423931,
-0.0235447064
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.