html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/1857 | Unable to upload "community provided" dataset - 400 Client Error | Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models.
You can find an example here:
https://huggingface.co/datasets/lhoestq/custom_squad/tree/main
We'll update the CLI in the coming days and do a new release :)
Also cc @julien-c maybe we can make improve the error message ? | Hi,
i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens:
```
$ datasets-cli login
$ datasets-cli upload_dataset my_dataset
About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username
About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username
Proceed? [Y/n] Y
Uploading... This might take a while if files are large
400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign
huggingface.co migrated to a new model hosting system.
You need to upgrade to transformers v3.5+ to upload new models.
More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you!
```
I'm using the latest releases of datasets and transformers. | 54 | Unable to upload "community provided" dataset - 400 Client Error
Hi,
i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens:
```
$ datasets-cli login
$ datasets-cli upload_dataset my_dataset
About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username
About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username
Proceed? [Y/n] Y
Uploading... This might take a while if files are large
400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign
huggingface.co migrated to a new model hosting system.
You need to upgrade to transformers v3.5+ to upload new models.
More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you!
```
I'm using the latest releases of datasets and transformers.
Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models.
You can find an example here:
https://huggingface.co/datasets/lhoestq/custom_squad/tree/main
We'll update the CLI in the coming days and do a new release :)
Also cc @julien-c maybe we can make improve the error message ? | [
-0.09157098084688187,
-0.03636622428894043,
0.034416839480400085,
0.06724171340465546,
0.36497053503990173,
-0.049285463988780975,
0.17340518534183502,
0.004484193399548531,
-0.22304560244083405,
-0.14681170880794525,
-0.1488376408815384,
-0.020599959418177605,
0.005085619632154703,
0.35816460847854614,
-0.05711054056882858,
-0.10693012923002243,
-0.026947898790240288,
0.002508392557501793,
-0.44624143838882446,
0.005309899803251028,
-0.10920742899179459,
0.1308569610118866,
0.18414665758609772,
0.006586393341422081,
-0.3465133607387543,
-0.07589642703533173,
-0.0069125378504395485,
0.2234143763780594,
-0.27108973264694214,
-0.13769634068012238,
0.44738149642944336,
0.1389373391866684,
0.2372482568025589,
0.5959688425064087,
-0.00011695556167978793,
0.028455179184675217,
0.354205846786499,
0.023810455575585365,
-0.6256378889083862,
-0.33686503767967224,
-0.0726403295993805,
-0.1940685510635376,
0.008189236745238304,
0.13645793497562408,
-0.1094309389591217,
0.07961020618677139,
0.15069814026355743,
-0.048401739448308945,
0.5985028147697449,
0.09648209810256958,
0.1131025031208992,
0.27006465196609497,
-0.014994526281952858,
-0.22423839569091797,
-0.22020484507083893,
0.3592700958251953,
-0.10433518886566162,
0.21723559498786926,
0.23701217770576477,
0.02221311628818512,
0.1814652979373932,
0.03354284539818764,
0.11541234701871872,
-0.1168871745467186,
0.3684588074684143,
-0.16543078422546387,
-0.41993793845176697,
-0.26003533601760864,
0.11621538549661636,
0.33177608251571655,
0.5857564210891724,
0.0770777016878128,
-0.5686396360397339,
-0.2074171006679535,
-0.02603471465408802,
-0.07012765109539032,
0.18151678144931793,
0.08152048289775848,
-0.05846218392252922,
0.11972824484109879,
-0.4374513030052185,
-0.170843243598938,
-0.36391884088516235,
-0.06123786047101021,
0.18576091527938843,
0.2177206575870514,
-0.19547051191329956,
0.23569248616695404,
-0.11763948947191238,
-0.5343658328056335,
-0.1227308139204979,
-0.039915964007377625,
0.15156857669353485,
0.20143334567546844,
-0.32474225759506226,
-0.10583402961492538,
0.09128198027610779,
0.24997487664222717,
0.34939485788345337,
0.47784802317619324,
-0.12000584602355957,
-0.32940220832824707,
-0.18930241465568542,
-0.06604968756437302,
0.20544229447841644,
-0.12041792273521423,
-0.041739657521247864,
0.0452682301402092,
0.08421158045530319,
0.4836539030075073,
0.3961296081542969,
-0.02196674607694149,
-0.25128820538520813,
-0.04053391143679619,
-0.29292842745780945,
-0.15704300999641418,
0.43551012873649597,
-0.012926403433084488,
-0.03572218492627144,
0.05703318119049072,
0.28940528631210327,
0.09184909611940384,
0.03663579374551773,
0.26197919249534607,
0.017870167270302773,
-0.010714114643633366,
-0.08245648443698883,
0.034284625202417374,
0.06592301279306412,
-0.36396345496177673,
-0.039450403302907944,
-0.18961401283740997,
0.04281338304281235,
0.022477490827441216,
0.15142060816287994,
-0.21340200304985046,
0.0936795026063919,
-0.029545115306973457,
0.45804890990257263,
0.12532870471477509,
-0.14427876472473145,
0.18455280363559723,
-0.11100541055202484,
0.38417309522628784,
0.18879324197769165,
0.46008479595184326,
0.0868835300207138,
-0.1932174265384674,
-0.05943973362445831,
-0.15398186445236206,
-0.20707568526268005,
-0.402940034866333,
-0.4708247780799866,
0.027756432071328163,
0.20765116810798645,
-0.15145285427570343,
-0.3534536361694336,
-0.15195780992507935,
0.06657296419143677,
-0.03730114549398422,
-0.06788188964128494,
0.10482478886842728,
-0.009003096260130405,
-0.04084460809826851,
0.24290597438812256,
0.6290040612220764,
-0.1543014794588089,
-0.1368141770362854,
-0.007055339403450489,
0.21169698238372803,
-0.11286455392837524,
0.4283786118030548,
-0.12027059495449066,
-0.31369370222091675,
-0.13168281316757202,
-0.030703091993927956,
0.1514885425567627,
-0.4831225872039795,
-0.5233075618743896,
0.3477800488471985,
-0.17782792448997498,
-0.15308649837970734,
0.08530887961387634,
0.1088341474533081,
-0.19086907804012299,
-0.04018552973866463,
-0.06105455756187439,
0.346468061208725,
0.07554010301828384,
0.10051833093166351,
-0.13245731592178345,
-0.3333354592323303,
0.030001502484083176,
0.0861644446849823,
-0.2761983573436737,
-0.055034272372722626,
0.04397393763065338,
0.0051617748104035854,
0.1278565227985382,
-0.14167584478855133,
0.2658132314682007,
0.35326087474823,
0.6264162063598633,
-0.05521349236369133,
0.13923364877700806,
0.19169040024280548,
-0.4655219614505768,
0.15523840487003326,
-0.030175579711794853,
0.17501366138458252,
-0.3612290024757385,
-0.09078702330589294,
-0.49385756254196167,
0.15244744718074799,
-0.2330334484577179,
0.1688343733549118,
0.003136374056339264,
-0.14079046249389648,
0.09966263920068741,
-0.20740161836147308,
-0.0429641455411911,
0.47615212202072144,
-0.15682896971702576,
0.31112930178642273,
-0.4384239912033081,
0.26648324728012085,
-0.30468642711639404,
-0.03980609402060509,
0.3985337018966675,
-0.16307330131530762,
0.3846706449985504,
0.02979872189462185,
-0.1488202065229416,
0.32528558373451233,
-0.42546015977859497,
0.20143011212348938,
0.18747614324092865,
0.37893763184547424,
0.3259228467941284,
-0.19137641787528992,
-0.18452130258083344,
0.02340632677078247,
-0.0551307275891304,
0.3489130437374115,
-0.32377055287361145,
0.006853958126157522,
-0.17066125571727753,
0.21337997913360596,
0.004942769184708595,
0.35086876153945923,
0.3105173707008362,
0.13425208628177643,
-0.1620023101568222,
0.18880681693553925,
0.1251215785741806,
-0.028108123689889908,
0.49547630548477173,
-0.19883392751216888,
0.13582304120063782,
-0.0043298304080963135,
0.021835336461663246,
0.022726599127054214,
-0.0362493172287941,
0.11601417511701584,
-0.10076476633548737,
-0.042742565274238586,
0.2822442352771759,
0.3077148497104645,
0.075351782143116,
-0.05903704836964607,
-0.2393876612186432,
-0.09005995839834213,
0.10276230424642563,
-0.0979992225766182,
-0.019001087173819542,
-0.10576197504997253,
0.19554458558559418,
-0.037754930555820465,
0.2462146282196045,
0.24347281455993652,
-0.22175905108451843,
-0.15779174864292145,
-0.015015799552202225,
0.14375633001327515,
-0.30676567554473877,
0.06474269181489944,
-0.04325899854302406,
-0.25713950395584106,
0.19040167331695557,
0.0039526550099253654,
-0.5359177589416504,
-0.11261732876300812,
-0.20296326279640198,
0.05316752940416336,
0.015166552737355232,
0.12056012451648712,
0.23272520303726196,
0.3003385663032532,
0.332348108291626,
-0.08656817674636841,
-0.30278006196022034,
0.2590973675251007,
0.04023982211947441,
0.050102993845939636,
0.10021981596946716,
-0.42914068698883057,
0.11664117127656937,
-0.04333846643567085,
0.3520885407924652,
-0.3359859883785248,
-0.3338155150413513,
0.13104456663131714,
-0.12671519815921783,
0.4911324083805084,
0.16957342624664307,
0.4597929120063782,
-0.11947854608297348,
-0.11570921540260315,
0.24149900674819946,
-0.11967861652374268,
-0.05329442769289017,
0.005624283105134964,
-0.16869723796844482,
-0.1025475263595581,
-0.0004044773813802749,
0.17138761281967163,
-0.0893220379948616,
-0.292887419462204,
0.3449080288410187,
0.15137982368469238,
-0.011091808788478374,
0.3846881687641144,
0.1992628276348114,
0.07673562318086624,
-0.0966847687959671,
0.1581423580646515,
-0.014240788295865059,
-0.5848597884178162,
0.3816191852092743,
-0.20269711315631866,
-0.342944860458374,
-0.02460315264761448,
0.1481398344039917,
0.28097862005233765,
-0.2376185953617096,
-0.1241217851638794,
-0.4074195325374603,
-0.13661892712116241,
0.28940218687057495,
0.06768235564231873,
0.007713631726801395,
0.3739701509475708,
-0.009062987752258778,
0.06580636650323868,
-0.029428567737340927,
-0.4492645561695099,
-0.13443917036056519,
0.3306131064891815,
0.3022271394729614,
-0.05836179479956627,
0.18234340846538544,
0.05156517028808594,
0.8003920316696167,
0.5207500457763672,
-0.1554863005876541,
0.4999685287475586,
-0.004358316771686077,
0.35457292199134827,
0.08321524411439896,
-0.153095081448555,
-0.0170854814350605,
0.23523129522800446,
0.0399298369884491,
0.03172504901885986,
0.27950969338417053,
0.2463771253824234,
-0.15416651964187622,
-0.16770629584789276,
-0.12311767041683197,
-0.049875229597091675,
-0.3460412919521332,
0.058669932186603546,
0.19631075859069824,
0.1161704957485199,
-0.23940758407115936,
-0.1919603943824768,
-0.2947545647621155,
0.002608759794384241,
0.3673122823238373,
0.32084470987319946,
0.13942044973373413,
-0.3435288667678833,
0.013796258717775345,
-0.4768291115760803,
0.22951702773571014,
-0.0217432864010334,
0.06566040217876434,
-0.2315969616174698,
0.19088906049728394,
-0.012232771143317223,
-0.016501087695360184,
0.45410576462745667,
-0.4889235496520996,
-0.05828024446964264,
-0.4311429262161255,
0.2210526168346405,
-0.3148050606250763,
0.19687150418758392,
0.22078636288642883,
-0.010274945758283138,
0.12391319125890732,
0.4903451204299927,
-0.3415440320968628,
-0.022044552490115166,
-0.08651785552501678,
-0.1912459433078766,
-0.15290094912052155,
-0.15926271677017212,
-0.2356320470571518,
-0.4699708819389343,
-0.4909077286720276,
-0.2192818969488144,
0.21494925022125244,
0.179794043302536,
0.051249902695417404,
0.12619200348854065,
0.3211123049259186,
0.157087504863739,
0.1690647453069687,
-0.08185295760631561,
0.19939851760864258,
0.39029181003570557,
0.06572328507900238,
0.07897340506315231,
0.21329258382320404,
0.34589245915412903,
0.7234184145927429,
0.024837510660290718,
-0.4888084828853607,
0.09110866487026215,
0.20460407435894012,
0.23606258630752563,
0.229936882853508,
0.19364754855632782,
0.04031940549612045,
0.45698967576026917,
0.24940888583660126,
-0.23063011467456818,
0.13564717769622803,
0.3005811870098114,
-0.20504441857337952,
-0.39139771461486816,
-0.06774117797613144,
0.4168676733970642,
-0.10353199392557144,
0.12186257541179657,
-0.04263491556048393,
0.48953935503959656,
0.07889820635318756,
0.06549125164747238,
0.12653526663780212,
1.0357900857925415,
-0.29246026277542114,
0.2455255687236786,
-0.11983354389667511,
-0.5208820104598999,
0.7754583954811096,
-0.02011392079293728,
-0.14923213422298431,
-0.4048443138599396,
-0.1508549600839615,
-0.0616818442940712,
-0.02080940641462803,
0.036528997123241425,
0.027663493528962135,
-0.1775851994752884,
0.08938395231962204,
-0.31463849544525146,
0.14034411311149597,
-0.059253036975860596,
0.5753948092460632,
-0.35771048069000244,
-0.20950965583324432,
-0.21620959043502808,
0.128581240773201,
-0.18963278830051422,
0.19980233907699585,
-0.08247483521699905,
-0.24147213995456696,
-0.21214821934700012,
-0.3160798251628876,
-0.23134298622608185,
0.1291576474905014,
0.00825543887913227,
-0.09348715096712112,
0.47836020588874817,
-0.21573133766651154,
0.39040181040763855,
0.24867402017116547,
0.23686517775058746,
0.09641993790864944,
-0.49751439690589905,
0.2585037052631378,
-0.34372732043266296,
-0.17529810965061188,
-0.17257745563983917,
0.031200487166643143,
0.1753031462430954,
-0.09541300684213638,
-0.026151981204748154,
-0.1201227679848671,
0.031303770840168,
-0.06150193512439728,
-0.2928435504436493,
-0.1749282032251358,
-0.11241081357002258,
-0.555335283279419,
0.15501639246940613,
-0.2224549949169159,
0.08373067528009415,
-0.06463154405355453,
0.021572234109044075,
0.08180338889360428,
0.04396429657936096,
-0.39816051721572876,
0.5290646553039551,
0.04690989479422569,
-0.0074927918612957,
0.39993369579315186,
-0.22073811292648315,
-0.1064392626285553,
0.5063542723655701,
0.08680593967437744,
-0.04096217080950737,
0.05509885028004646,
0.00002051282353932038,
0.15538008511066437,
-0.7436202764511108,
-0.010905548930168152,
0.26519331336021423,
0.07528995722532272,
-0.15202513337135315,
0.17811037600040436,
0.20449954271316528,
-0.06928929686546326,
0.2705126702785492,
0.03627636283636093,
-0.22072528302669525,
-0.0655040517449379,
-0.37359872460365295,
-0.016708161681890488,
0.1623823493719101,
-0.0873611569404602,
0.43687939643859863,
0.01828022673726082,
-0.21709245443344116,
-0.10814326256513596,
-0.3802972435951233,
0.024126041680574417,
0.4103037714958191,
-0.2786550223827362,
0.057921845465898514,
-0.07996901124715805,
-0.016435695812106133,
0.013663901016116142,
-0.353111207485199,
-0.081425741314888,
-0.2895401418209076,
0.2039218693971634,
0.3594951927661896,
-0.36096063256263733,
-0.12644526362419128,
-0.17187467217445374,
-0.18802788853645325,
-0.09937511384487152,
-0.19746147096157074,
-0.05556465685367584,
0.09013485908508301,
-0.22001616656780243,
0.1662515550851822,
0.0927826315164566,
-0.32152867317199707,
0.1665600687265396,
0.2040170133113861,
0.1928848922252655,
0.13091683387756348,
0.13433776795864105,
0.08159556984901428,
-0.059279914945364,
-0.10653799772262573,
0.2511463165283203,
0.46748030185699463,
-0.019813382998108864,
0.3256031274795532,
-0.3629274070262909,
-0.07362297922372818,
-0.02572856843471527,
0.4536920189857483,
-0.09729097783565521,
-0.3470793068408966,
0.041258037090301514,
0.07922250777482986,
0.1049644723534584,
-0.06595125049352646,
-0.06501395255327225,
0.06849175691604614,
0.11946383118629456,
-0.07927299290895462,
0.0845513567328453,
0.2587442696094513,
0.005886486265808344,
0.25168919563293457,
0.10264858603477478,
0.5311473608016968,
-0.01805347017943859,
0.05807189270853996,
0.00934742484241724,
-0.16824793815612793,
-0.05204911157488823,
0.4732300639152527,
0.05072266608476639,
-0.06549591571092606,
-0.13053980469703674,
-0.29223987460136414,
0.03395611420273781,
-0.31593719124794006,
-0.027048183605074883,
0.18872052431106567,
-0.28379660844802856,
0.2764684557914734,
-0.16947808861732483,
0.16380088031291962,
0.15819299221038818,
0.027910007163882256,
0.5838848948478699,
-0.20073702931404114,
0.025936078280210495,
-0.39015302062034607,
0.19716589152812958,
-0.08101657778024673,
-0.23652049899101257,
-0.19156081974506378,
-0.11827188730239868,
-0.20091290771961212,
0.04336176812648773,
-0.08162761479616165,
-0.3174017369747162,
0.12028082460165024,
-0.024802712723612785,
0.08078276365995407,
-0.41455450654029846,
-0.06695862859487534,
0.4527415335178375,
0.09312110394239426,
-0.11245603114366531,
0.352593332529068,
0.3666304051876068,
-0.1180027648806572,
0.09788540005683899,
0.2067519873380661,
0.6063758134841919,
0.003943049348890781,
0.2722613513469696,
0.3868845999240875,
0.25547340512275696,
0.11954127997159958,
0.1990562230348587,
0.06816352903842926,
0.05980439484119415,
0.23822352290153503,
0.09974687546491623,
0.03715652599930763,
-0.11505259573459625,
-0.1154235377907753,
-0.4080910384654999,
0.32739487290382385,
-0.3633919954299927,
0.120013028383255,
-0.43712395429611206,
-0.17576158046722412,
-0.2189851552248001,
0.17650948464870453,
-0.2445448935031891,
0.31108924746513367,
0.5170588493347168,
-0.0518474318087101,
0.0027795464266091585,
-0.5339077115058899,
0.024785606190562248,
-0.07180733233690262,
0.49743491411209106,
0.6792609095573425,
0.02311144769191742,
-0.013558552600443363,
-0.2177397757768631,
-0.3219081163406372,
0.13794799149036407,
0.05768342688679695,
0.26028209924697876,
-0.09748563915491104,
-0.008856070227921009,
-0.007396479602903128,
-0.1254078447818756,
0.12864463031291962,
-0.243761345744133,
-0.24404166638851166,
-0.02671564742922783,
-0.0501536950469017,
-0.08994633704423904,
-0.03949243575334549,
0.024394206702709198,
0.04502852261066437,
0.06111721321940422,
0.22032591700553894,
0.23516476154327393,
-0.028945427387952805,
-0.2344934493303299,
-0.1655997633934021,
-0.10574424266815186,
-0.25763237476348877,
0.16713020205497742,
0.36439308524131775,
0.27541276812553406,
-0.04352877661585808,
-0.375265896320343,
-0.2265496402978897,
-0.10347668826580048,
-0.2364063709974289,
0.019788475707173347,
-0.002904854714870453,
0.3410148322582245,
0.05480671301484108,
-0.1026078313589096,
-0.3389885723590851,
-0.1286717802286148,
-0.08884602040052414,
-0.1113579124212265,
-0.1724303513765335,
-0.15312166512012482,
-0.2435724437236786,
0.041338104754686356,
0.10826990008354187,
-0.1378851681947708,
0.16945691406726837,
0.02570098638534546,
-0.25296422839164734,
-0.3108347952365875,
0.5455138683319092,
-0.35689711570739746,
-0.1854250580072403,
0.04702392965555191,
0.18351434171199799,
-0.13155986368656158,
-0.16581329703330994,
-0.320159375667572,
0.18590658903121948,
0.2529091238975525,
-0.03484727442264557,
-0.0790373757481575,
0.22785572707653046,
-0.1121344119310379,
-0.0029698435682803392,
-0.051318418234586716,
0.39337238669395447,
0.1405707448720932,
-0.221369206905365,
0.29749202728271484,
0.0010211264016106725
] |
https://github.com/huggingface/datasets/issues/1856 | load_dataset("amazon_polarity") NonMatchingChecksumError | Hi ! This issue may be related to #996
This comes probably from the Quota Exceeded error from Google Drive.
Can you try again tomorrow and see if you still have the error ?
On my side I didn't get any error today with `load_dataset("amazon_polarity")` | Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
``` | 45 | load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
```
Hi ! This issue may be related to #996
This comes probably from the Quota Exceeded error from Google Drive.
Can you try again tomorrow and see if you still have the error ?
On my side I didn't get any error today with `load_dataset("amazon_polarity")` | [
-0.14463524520397186,
0.1181081160902977,
-0.12130685895681381,
0.24109329283237457,
0.12806227803230286,
-0.003592638298869133,
0.3443527817726135,
0.06529989093542099,
0.2865488827228546,
0.23939190804958344,
0.028122272342443466,
-0.06478916108608246,
0.009715796448290348,
0.15067976713180542,
-0.13854171335697174,
0.20597957074642181,
0.01070354413241148,
-0.04454328119754791,
-0.18880672752857208,
0.1773509532213211,
-0.3683701753616333,
0.3735698461532593,
-0.0902094841003418,
-0.29021725058555603,
-0.05680173635482788,
0.0482148639857769,
0.24922169744968414,
0.1227688416838646,
-0.09995095431804657,
-0.31419265270233154,
0.28921273350715637,
0.06416411697864532,
0.13676564395427704,
0.3216087520122528,
-0.00012273210450075567,
-0.07604559510946274,
0.4037207067012787,
0.02153039537370205,
-0.34896257519721985,
-0.3050132691860199,
-0.34211334586143494,
-0.22062794864177704,
0.0789371207356453,
-0.14135771989822388,
0.198462575674057,
0.22626963257789612,
-0.013439374975860119,
-0.020378580316901207,
0.2310122400522232,
0.14650045335292816,
0.16461896896362305,
0.3472890555858612,
0.42471492290496826,
0.2376423180103302,
0.33629879355430603,
0.034683942794799805,
0.02940424717962742,
0.423983097076416,
0.16855236887931824,
-0.11802195757627487,
-0.1515832096338272,
0.136407271027565,
-0.03508327156305313,
0.46998530626296997,
0.07310514152050018,
-0.07098153233528137,
0.1299198567867279,
-0.30093687772750854,
0.22169530391693115,
0.24023276567459106,
0.5259542465209961,
-0.1580466479063034,
-0.3384304940700531,
0.015718955546617508,
-0.20127473771572113,
-0.3522208631038666,
0.36824116110801697,
0.3873552978038788,
-0.08134178817272186,
-0.24794702231884003,
-0.49342119693756104,
0.12733741104602814,
-0.15640196204185486,
0.23252736032009125,
-0.14096783101558685,
0.18169184029102325,
-0.014190525747835636,
0.14309366047382355,
0.27458277344703674,
-0.25638270378112793,
0.4774480164051056,
-0.1528465300798416,
-0.0680743008852005,
0.16820912063121796,
-0.5600779056549072,
-0.10128874331712723,
-0.027424439787864685,
0.42983677983283997,
0.26865795254707336,
0.503289520740509,
0.12693504989147186,
0.22492241859436035,
0.031123735010623932,
0.21377785503864288,
0.358406662940979,
0.2740330398082733,
-0.2249951809644699,
0.3298181891441345,
0.18385806679725647,
0.32551679015159607,
0.03759993240237236,
0.03436562046408653,
-0.12911653518676758,
-0.3544425964355469,
0.6708119511604309,
0.025658952072262764,
0.3402944505214691,
-0.49907222390174866,
-0.4904986023902893,
0.3258248269557953,
-0.272722452878952,
-0.16308175027370453,
-0.05610863119363785,
0.15520180761814117,
-0.11334310472011566,
0.03650447726249695,
0.08534091711044312,
-0.013622711412608624,
-0.13361458480358124,
0.19100025296211243,
-0.10917896032333374,
0.15570272505283356,
-0.10401646792888641,
0.20021314918994904,
0.3021281063556671,
-0.11430764198303223,
0.30138835310935974,
-0.10796070098876953,
0.3744317293167114,
-0.2520242929458618,
0.5605084300041199,
-0.2755384147167206,
-0.10110839456319809,
0.5101609826087952,
-0.026628147810697556,
-0.04052397236227989,
-0.0029190576169639826,
0.2849734425544739,
-0.14752820134162903,
0.2997645437717438,
-0.22697480022907257,
-0.283696711063385,
0.012599312700331211,
0.1088242307305336,
-0.5122699737548828,
-0.1845042109489441,
-0.2347879260778427,
-0.3862112760543823,
0.22500361502170563,
-0.3119523525238037,
-0.0775260329246521,
-0.33074864745140076,
0.030206339433789253,
-0.1781546175479889,
0.12854711711406708,
0.4043671786785126,
-0.3409205675125122,
0.019828887656331062,
-0.3198651671409607,
-0.09092334657907486,
0.30408185720443726,
0.35987186431884766,
-0.12281014025211334,
0.03903606906533241,
-0.2570708096027374,
-0.30247119069099426,
-0.13425928354263306,
-0.15970583260059357,
-0.44440463185310364,
0.047512881457805634,
-0.15070366859436035,
0.2654610574245453,
-0.0001134128324338235,
-0.0001719365973258391,
0.003077581524848938,
0.04565233737230301,
0.27405551075935364,
0.16310954093933105,
-0.04057938978075981,
0.15992307662963867,
-0.16268518567085266,
-0.3306625783443451,
0.2296401709318161,
0.23032201826572418,
0.2603030204772949,
-0.0007045360980555415,
0.24509888887405396,
-0.13092955946922302,
0.055621370673179626,
-0.028438685461878777,
-0.019589848816394806,
0.3621581792831421,
0.3402881324291229,
-0.09401245415210724,
-0.020522991195321083,
-0.08890673518180847,
-0.5740941166877747,
0.159823477268219,
-0.3095720112323761,
0.10143482685089111,
-0.13889038562774658,
0.14466148614883423,
-0.15642985701560974,
-0.220620796084404,
-0.09648801386356354,
0.04836238920688629,
0.03022630698978901,
0.29303786158561707,
0.1999131739139557,
-0.17716853320598602,
0.0637950673699379,
-0.06433756649494171,
-0.26499369740486145,
0.0469803623855114,
-0.382152795791626,
0.4421381950378418,
-0.06441313773393631,
-0.030085915699601173,
0.1348584145307541,
-0.012162111699581146,
0.19629938900470734,
-0.17857052385807037,
-0.039466679096221924,
0.25567710399627686,
0.09936711192131042,
0.34847819805145264,
-0.017911089584231377,
0.6057213544845581,
0.05461300164461136,
-0.04963503032922745,
-0.05309416353702545,
0.4482402503490448,
0.06155454367399216,
-0.1253737360239029,
-0.23578493297100067,
0.5414234399795532,
-0.19083161652088165,
0.2926020920276642,
-0.07971888035535812,
0.041180651634931564,
0.23285609483718872,
-0.08343978226184845,
-0.130475714802742,
-0.1458672732114792,
0.3699471652507782,
0.18537446856498718,
-0.13062050938606262,
-0.010330220684409142,
-0.028405381366610527,
-0.07968145608901978,
0.2859373986721039,
-0.1639741212129593,
0.02107824571430683,
0.08372382074594498,
-0.023329390212893486,
-0.14718152582645416,
0.16897030174732208,
0.7234522700309753,
0.47567445039749146,
0.12426091730594635,
-0.1934707760810852,
-0.20282840728759766,
-0.022190457209944725,
-0.04424961283802986,
0.1061171218752861,
0.172345831990242,
0.028085993602871895,
0.43933871388435364,
0.21447370946407318,
-0.19845178723335266,
-0.3193226456642151,
-0.24527284502983093,
0.23423723876476288,
0.32315510511398315,
-0.41983523964881897,
-0.058438677340745926,
0.003944547846913338,
0.18747693300247192,
-0.2392982840538025,
0.028734777122735977,
-0.2095084935426712,
-0.3734355568885803,
-0.26402565836906433,
0.5433932542800903,
-0.07946011424064636,
0.08039966225624084,
-0.2748625576496124,
0.15815119445323944,
0.1703450232744217,
-0.4426255226135254,
0.0031614473555237055,
-0.08186342567205429,
-0.0020265046041458845,
-0.005445654038339853,
0.35283881425857544,
-0.14432495832443237,
0.3782065212726593,
-0.15110133588314056,
0.05225610360503197,
-0.5995879769325256,
-0.31020620465278625,
0.024014035239815712,
-0.05601905658841133,
0.21179042756557465,
0.11665904521942139,
0.23977021872997284,
-0.054990701377391815,
-0.08565590530633926,
-0.014656070619821548,
0.12343256175518036,
-0.19656382501125336,
0.1444491595029831,
-0.17039182782173157,
0.08283216506242752,
0.076066754758358,
-0.14042295515537262,
-0.059566546231508255,
-0.38632023334503174,
0.10855411738157272,
0.4139728248119354,
0.20045337080955505,
-0.05296383425593376,
0.004202853422611952,
0.0665590688586235,
0.06067541614174843,
0.14333999156951904,
-0.2855793535709381,
-0.5523834228515625,
0.4413994550704956,
-0.08994736522436142,
-0.22691868245601654,
0.05724114924669266,
0.00980222225189209,
0.23715922236442566,
0.44380688667297363,
-0.462460994720459,
-0.22905440628528595,
-0.3841306269168854,
-0.10361906886100769,
-0.07842671126127243,
0.11161745339632034,
0.2703567445278168,
0.12714698910713196,
-0.060073189437389374,
0.0835442990064621,
-0.4889650046825409,
-0.010848358273506165,
0.22612303495407104,
0.35102999210357666,
-0.05460965260863304,
0.23012524843215942,
-0.30809667706489563,
0.5490031242370605,
-0.09873906522989273,
0.00031912478152662516,
0.1891234666109085,
0.26445066928863525,
0.31373047828674316,
0.0006336334045045078,
-0.11881851404905319,
-0.011117487214505672,
-0.1578204333782196,
0.05734957754611969,
0.08661556988954544,
-0.03295331075787544,
-0.20335981249809265,
-0.062232088297605515,
-0.08754831552505493,
-0.39185693860054016,
-0.19456301629543304,
0.0748153030872345,
-0.13921520113945007,
0.4881861209869385,
0.13460172712802887,
-0.021491220220923424,
-0.26881569623947144,
-0.5046188831329346,
-0.18893754482269287,
-0.06477774679660797,
0.06309951096773148,
-0.10098114609718323,
-0.23343980312347412,
-0.022573580965399742,
-0.1421681046485901,
0.36433783173561096,
-0.03538195788860321,
0.422409325838089,
0.019376512616872787,
-0.004375688266009092,
0.04613027349114418,
-0.24669311940670013,
0.13735029101371765,
-0.1803702712059021,
0.16085222363471985,
0.021520772948861122,
-0.21749086678028107,
-0.15006518363952637,
-0.18099212646484375,
-0.33379673957824707,
0.28907254338264465,
-0.06466585397720337,
0.35971739888191223,
-0.41395074129104614,
0.1336410641670227,
0.13600675761699677,
0.4626380503177643,
-0.2675515413284302,
-0.24524672329425812,
-0.3585156798362732,
-0.2845743000507355,
-0.509145200252533,
0.06980331987142563,
-0.046653810888528824,
0.2883153259754181,
-0.18665525317192078,
0.09933514147996902,
0.11120021343231201,
-0.10786058753728867,
0.1417364478111267,
-0.17965777218341827,
0.475551038980484,
-0.015517489053308964,
0.15786658227443695,
0.2025623470544815,
-0.363986998796463,
0.4272718131542206,
0.6419882774353027,
-0.0033070240169763565,
-0.07837853580713272,
0.2667136788368225,
-0.09113550186157227,
-0.3595600426197052,
0.24073928594589233,
0.11437249183654785,
-0.030224135145545006,
0.42339208722114563,
0.17258478701114655,
-0.05543996021151543,
-0.2608543932437897,
0.14374975860118866,
0.1891072392463684,
-0.25712764263153076,
-0.30339449644088745,
0.04156958684325218,
-0.11166749894618988,
-0.051626261323690414,
0.4951726198196411,
0.2201734036207199,
-0.18804217875003815,
0.15460650622844696,
0.4347302317619324,
1.0237910747528076,
-0.04920848086476326,
0.2442314475774765,
-0.051695991307497025,
-0.17281240224838257,
0.3330747187137604,
-0.18147321045398712,
0.2314368635416031,
-0.4936194121837616,
-0.028300689533352852,
-0.0025317061226814985,
-0.36720868945121765,
0.020241720601916313,
-0.00028536372701637447,
0.04025246575474739,
0.37050262093544006,
-0.01520536933094263,
0.04811202734708786,
0.10733726620674133,
0.1459221988916397,
-0.37275370955467224,
0.020944692194461823,
0.19462721049785614,
0.10112395137548447,
-0.24609479308128357,
0.29267844557762146,
-0.26356178522109985,
0.1294311285018921,
0.2280171811580658,
-0.27020272612571716,
-0.49463990330696106,
-0.0237865149974823,
-0.160028338432312,
0.4113851487636566,
0.2236575037240982,
-0.09135546535253525,
-0.11759631335735321,
-0.022400710731744766,
0.11986496299505234,
0.13877886533737183,
-0.27732548117637634,
0.07002405822277069,
0.2710631191730499,
-0.10218171775341034,
-0.07844094187021255,
-0.054487381130456924,
0.22451528906822205,
-0.09638886898756027,
-0.2602996230125427,
-0.0037653129547834396,
0.031411465257406235,
-0.5006492733955383,
-0.3535878658294678,
0.20009467005729675,
-0.2833966314792633,
-0.32025691866874695,
-0.20090067386627197,
-0.2559007704257965,
-0.3804827630519867,
-0.1931123435497284,
0.1067073866724968,
0.2396746724843979,
-0.16196589171886444,
0.3134117126464844,
0.17297057807445526,
-0.28271129727363586,
-0.25365403294563293,
0.5303877592086792,
0.057430196553468704,
-0.1936880499124527,
0.5586513876914978,
0.05701104551553726,
-0.15261310338974,
-0.21152444183826447,
0.06997408717870712,
0.08155905455350876,
-0.4405601918697357,
0.22684605419635773,
-0.23020145297050476,
0.1997329145669937,
-0.10390645265579224,
0.3816930055618286,
0.3563074767589569,
0.3587634563446045,
0.1471937745809555,
-0.6384473443031311,
-0.1401277780532837,
0.06373248249292374,
0.05981384590268135,
0.31956160068511963,
-0.24182289838790894,
-0.3160453736782074,
0.02118632383644581,
-0.20312586426734924,
-0.26654237508773804,
0.18649731576442719,
-0.401007741689682,
0.010670376010239124,
0.21223270893096924,
-0.24689486622810364,
0.27909982204437256,
0.08298996090888977,
0.09805124998092651,
0.13352908194065094,
-0.14686869084835052,
-0.14155103266239166,
-0.17750930786132812,
0.17335805296897888,
0.06938646733760834,
-0.19764260947704315,
0.07504107058048248,
-0.09823887050151825,
0.033002980053424835,
0.01264108531177044,
0.00786344800144434,
0.13904401659965515,
-0.11865565180778503,
-0.08194595575332642,
0.10119923949241638,
-0.16003096103668213,
-0.0805133730173111,
-0.0879247784614563,
-0.2624417543411255,
-0.009514211677014828,
0.23190008103847504,
0.2567797601222992,
0.32990577816963196,
0.005312680266797543,
-0.09462922811508179,
0.016689492389559746,
0.11748392134904861,
-0.06945335119962692,
0.15959301590919495,
-0.25710150599479675,
-0.2200365662574768,
0.004760868847370148,
0.3969481289386749,
0.4484579861164093,
-0.3414473831653595,
-0.06235307827591896,
0.28128185868263245,
0.19993911683559418,
-0.17037566006183624,
-0.07771046459674835,
0.024561256170272827,
-0.12461795657873154,
0.03779695928096771,
0.1070602536201477,
-0.03967742249369621,
-0.29995667934417725,
0.3996056318283081,
0.21857082843780518,
0.23584502935409546,
-0.6298627853393555,
0.09658880531787872,
0.005411016289144754,
-0.1926877349615097,
-0.12331757694482803,
0.39812517166137695,
-0.04846898466348648,
0.014838894829154015,
-0.13105547428131104,
-0.04937833547592163,
0.17466723918914795,
-0.25384342670440674,
0.1621406078338623,
-0.23032444715499878,
-0.5396323204040527,
0.43703266978263855,
0.21608103811740875,
0.03314896300435066,
0.18584352731704712,
0.1410863995552063,
0.38417330384254456,
-0.06153133884072304,
0.31279122829437256,
-0.575731635093689,
-0.021948445588350296,
-0.19356968998908997,
-0.01897495798766613,
-0.08076924085617065,
-0.3122323751449585,
0.06243599206209183,
0.41207608580589294,
0.099474236369133,
-0.1274213194847107,
0.3273402452468872,
0.1988077312707901,
-0.27628394961357117,
-0.48064443469047546,
0.11169067770242691,
0.06810008734464645,
-0.06634543836116791,
-0.3008175194263458,
0.1126563772559166,
0.440369188785553,
-0.029914921149611473,
-0.01376998983323574,
0.2593504786491394,
0.5040759444236755,
0.35544371604919434,
-0.005328930914402008,
0.050829801708459854,
-0.0166127011179924,
0.0016248930478468537,
0.02268759347498417,
0.5821030735969543,
0.14045771956443787,
0.08585073798894882,
0.23271365463733673,
0.12874439358711243,
-0.20314322412014008,
0.2377801239490509,
-0.09154883772134781,
-0.34998124837875366,
-0.10107652097940445,
0.3797108829021454,
0.06237835809588432,
-0.01635482907295227,
-0.23614081740379333,
0.07321944087743759,
-0.44975292682647705,
-0.3263026177883148,
-0.006223957519978285,
0.11354798078536987,
-0.006978717632591724,
0.07716012746095657,
0.039018504321575165,
-0.12173416465520859,
0.43787312507629395,
0.370848685503006,
0.29172688722610474,
-0.4959539473056793,
-0.026020795106887817,
-0.61343914270401,
0.24697284400463104,
-0.2785327434539795,
0.261333703994751,
0.023295950144529343,
0.28098639845848083,
-0.23793797194957733,
0.19946326315402985,
0.18944166600704193,
-0.012089541181921959,
-0.14582595229148865,
-0.15874917805194855,
-0.29532331228256226,
-0.03239116817712784,
0.45357200503349304,
-0.13721439242362976,
-0.07070732861757278,
-0.3728674352169037,
0.08663741499185562,
-0.0651712641119957,
0.029280006885528564,
-0.22801193594932556,
-0.08623801916837692,
-0.09008648246526718,
0.36460497975349426,
0.2749120891094208,
0.16416506469249725,
0.7399240136146545,
-0.014219438657164574,
-0.19039636850357056,
-0.3088880181312561,
-0.24891673028469086,
-0.08743604272603989,
0.04222358018159866,
0.1307714283466339,
0.5580554008483887,
-0.07101652771234512,
-0.45773255825042725,
-0.3680814504623413,
0.3573642671108246,
-0.24444177746772766,
-0.437650203704834,
0.021613365039229393,
-0.0160226933658123,
0.0019514993764460087,
0.023479506373405457,
-0.10155188292264938,
0.1670093983411789,
0.24023692309856415,
0.1430894285440445,
-0.2573787569999695,
-0.24537219107151031,
0.49231624603271484,
-0.28919100761413574,
-0.2053522765636444,
0.09713602066040039,
0.24294547736644745,
0.07886650413274765,
-0.19831590354442596,
-0.4701845943927765,
0.4567469358444214,
0.26853954792022705,
0.06611353158950806,
-0.19531294703483582,
0.24826261401176453,
-0.24614089727401733,
0.21983279287815094,
0.006248184014111757,
0.11183564364910126,
0.20526154339313507,
-0.2532481253147125,
-0.23654818534851074,
-0.08549164980649948
] |
https://github.com/huggingface/datasets/issues/1856 | load_dataset("amazon_polarity") NonMatchingChecksumError | @lhoestq Hi! I encounter the same error when loading `yelp_review_full`.
```
from datasets import load_dataset
dataset_yp = load_dataset("yelp_review_full")
```
When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive? | Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
``` | 45 | load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
```
@lhoestq Hi! I encounter the same error when loading `yelp_review_full`.
```
from datasets import load_dataset
dataset_yp = load_dataset("yelp_review_full")
```
When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive? | [
-0.06117379292845726,
0.14232762157917023,
-0.10863210260868073,
0.22138342261314392,
0.12633629143238068,
0.12175075709819794,
0.24527676403522491,
0.010380279272794724,
0.3931344747543335,
0.10966632515192032,
-0.13955886662006378,
-0.020144829526543617,
0.036381810903549194,
0.0252379160374403,
-0.17129398882389069,
0.36432307958602905,
0.018545089289546013,
-0.011346648447215557,
-0.07883833348751068,
-0.01027016993612051,
-0.30445396900177,
0.259373277425766,
-0.060082823038101196,
-0.08405618369579315,
-0.0598398819565773,
0.15359559655189514,
0.3166562020778656,
0.04422329366207123,
-0.08336704224348068,
-0.3201693594455719,
0.4210698902606964,
0.137897789478302,
-0.015670740976929665,
0.3289813995361328,
-0.00012590960250236094,
-0.050023894757032394,
0.4167664647102356,
0.03206290677189827,
-0.39876124262809753,
-0.3099807798862457,
-0.4581514596939087,
-0.3251410722732544,
0.15099556744098663,
-0.10070156306028366,
0.14998944103717804,
0.16336843371391296,
0.005327566992491484,
-0.261908620595932,
0.09537670016288757,
0.10011302679777145,
0.11727431416511536,
0.3501995801925659,
0.1059933751821518,
0.20150971412658691,
0.3452162444591522,
0.12262946367263794,
-0.018758075311779976,
0.29132041335105896,
0.18812130391597748,
-0.18215268850326538,
-0.27050477266311646,
0.040586382150650024,
-0.001580629963427782,
0.5240553021430969,
0.20741350948810577,
-0.06581269204616547,
0.28314054012298584,
-0.2702282667160034,
0.24643728137016296,
0.43348434567451477,
0.5518835783004761,
-0.16113530099391937,
-0.31425195932388306,
-0.10849102586507797,
-0.14431960880756378,
-0.20827224850654602,
0.2683826684951782,
0.4797143340110779,
-0.16795219480991364,
-0.19821597635746002,
-0.5444872379302979,
0.16088664531707764,
-0.05065802112221718,
0.188903346657753,
-0.13251392543315887,
0.2468680441379547,
0.034653905779123306,
0.18291424214839935,
0.14957600831985474,
-0.1724342554807663,
0.6086639761924744,
-0.3743199110031128,
0.03492313623428345,
0.2907087504863739,
-0.5965977311134338,
-0.007769468240439892,
0.03407716751098633,
0.5633314847946167,
0.22478517889976501,
0.5783308744430542,
0.16394482553005219,
0.20580552518367767,
0.02571920119225979,
0.27466827630996704,
0.5060391426086426,
0.22001898288726807,
-0.10864455252885818,
0.359693706035614,
0.1931716352701187,
0.2153616100549698,
0.14792951941490173,
0.12440678477287292,
-0.003003516001626849,
-0.27102527022361755,
0.6188274025917053,
-0.07342211157083511,
0.2509360909461975,
-0.5128178596496582,
-0.5945704579353333,
0.3519125282764435,
-0.25081515312194824,
-0.12275899201631546,
0.052964016795158386,
0.2121906876564026,
-0.17590372264385223,
0.16339723765850067,
-0.04886545240879059,
-0.09330086410045624,
-0.1332673281431198,
0.08906081318855286,
-0.20120969414710999,
0.12135384976863861,
-0.02764301188290119,
0.2276744395494461,
0.22793927788734436,
-0.03557407483458519,
0.30270886421203613,
-0.1383720487356186,
0.3369033932685852,
-0.20315659046173096,
0.4234708249568939,
-0.15301281213760376,
-0.15769881010055542,
0.46567922830581665,
0.01880648545920849,
0.13610151410102844,
0.07712956517934799,
0.1752081960439682,
-0.22541283071041107,
0.3178543150424957,
-0.18110470473766327,
-0.19131262600421906,
0.17321842908859253,
0.08431219309568405,
-0.6098443269729614,
-0.18703317642211914,
-0.2142934948205948,
-0.4069157838821411,
0.32835209369659424,
-0.312776654958725,
0.007401004433631897,
-0.35697901248931885,
0.0626094788312912,
-0.14311395585536957,
-0.05134298652410507,
0.43488073348999023,
-0.27825525403022766,
-0.16568763554096222,
-0.39175182580947876,
-0.19668526947498322,
0.38184139132499695,
0.4646115005016327,
-0.12386070936918259,
0.0903286263346672,
-0.2280270904302597,
-0.16861951351165771,
0.038851212710142136,
-0.15464532375335693,
-0.44797849655151367,
0.0987027958035469,
-0.19938889145851135,
0.4591367840766907,
0.0024011617060750723,
0.16776122152805328,
-0.09788311272859573,
-0.018972592428326607,
0.3111744821071625,
0.15398181974887848,
-0.010500985197722912,
0.07566814869642258,
-0.11894303560256958,
-0.1285550445318222,
0.3238057792186737,
0.2631978988647461,
0.193935826420784,
0.00012059738219249994,
0.14938925206661224,
-0.07698637247085571,
0.08753081411123276,
-0.01655939593911171,
-0.0044118547812104225,
0.26841098070144653,
0.36942988634109497,
0.12750308215618134,
-0.05727115273475647,
-0.03696871176362038,
-0.46028056740760803,
0.17194980382919312,
-0.41969600319862366,
0.022422272711992264,
-0.06140703707933426,
0.0927610769867897,
-0.18852972984313965,
-0.13353849947452545,
-0.24068346619606018,
0.05012909695506096,
-0.055418338626623154,
0.344730943441391,
0.14981940388679504,
-0.10164978355169296,
0.07537221908569336,
0.08772610127925873,
-0.43832927942276,
0.030736666172742844,
-0.40013569593429565,
0.2532048523426056,
0.028760915622115135,
0.1389981210231781,
0.07983335852622986,
0.07768907397985458,
0.15928176045417786,
-0.017232876271009445,
-0.02036380209028721,
0.29222655296325684,
0.14122913777828217,
0.40367940068244934,
-0.07896946370601654,
0.4830586910247803,
-0.02872537076473236,
-0.100245401263237,
-0.05110572651028633,
0.4246053397655487,
0.12461613863706589,
-0.22978194057941437,
-0.2653992474079132,
0.6342541575431824,
-0.12469405680894852,
0.3354458212852478,
-0.03684668615460396,
0.10404568910598755,
0.2729400098323822,
0.02486039511859417,
-0.27587583661079407,
-0.18607397377490997,
0.46759888529777527,
0.10569004714488983,
0.003150979056954384,
0.12198445945978165,
0.048666659742593765,
-0.16200469434261322,
0.3148166835308075,
-0.30019888281822205,
0.045932359993457794,
0.050441306084394455,
-0.04942295700311661,
-0.24426113069057465,
0.1841949224472046,
0.6842710375785828,
0.5695008635520935,
0.07901370525360107,
-0.050262413918972015,
-0.15015749633312225,
-0.1702575981616974,
-0.11122271418571472,
0.028954660519957542,
0.18590357899665833,
-0.05498611927032471,
0.49928387999534607,
0.19121241569519043,
-0.224399596452713,
-0.4243573546409607,
-0.16034457087516785,
0.1699371486902237,
0.3191201686859131,
-0.4955601394176483,
-0.08456267416477203,
-0.12217478454113007,
0.22518736124038696,
-0.28429943323135376,
-0.06337142735719681,
-0.16697701811790466,
-0.5736443996429443,
-0.11125972867012024,
0.4169127941131592,
-0.05699450522661209,
0.18197017908096313,
-0.4180184602737427,
0.17344190180301666,
-0.05356474965810776,
-0.46031343936920166,
0.04769127070903778,
-0.23035910725593567,
-0.051144856959581375,
-0.012347766198217869,
0.34348008036613464,
-0.0785728245973587,
0.35977527499198914,
-0.2547631561756134,
0.1363717019557953,
-0.6831148266792297,
-0.2296447455883026,
0.005368972197175026,
-0.11947494745254517,
0.14113976061344147,
0.0413130521774292,
0.13245637714862823,
-0.0009103474440053105,
-0.002576842438429594,
0.027934104204177856,
0.09695252776145935,
-0.2848418056964874,
0.1665334701538086,
-0.19787195324897766,
0.033181771636009216,
0.19299936294555664,
0.004297844134271145,
-0.11319103837013245,
-0.30152615904808044,
0.12962883710861206,
0.43112972378730774,
0.08007866144180298,
-0.08188147842884064,
-0.144648939371109,
0.10021212697029114,
0.12184415012598038,
0.30783405900001526,
-0.3872549831867218,
-0.45427095890045166,
0.5385529398918152,
-0.059984900057315826,
-0.18612569570541382,
-0.0017487256554886699,
0.09508199244737625,
0.2571617662906647,
0.41278207302093506,
-0.48849472403526306,
-0.10797882825136185,
-0.35615459084510803,
-0.1380738466978073,
0.06890778243541718,
-0.036992017179727554,
0.26246529817581177,
0.03662281483411789,
-0.010552539490163326,
0.04302133992314339,
-0.48656076192855835,
0.03233734145760536,
0.048494335263967514,
0.3351127803325653,
-0.09624534845352173,
0.15135113894939423,
-0.26854458451271057,
0.5760499238967896,
0.07135205715894699,
0.01977039873600006,
0.09381481260061264,
0.2711074650287628,
0.3968070149421692,
0.01994309574365616,
-0.07231142371892929,
-0.08361771702766418,
-0.07448349893093109,
0.03752312436699867,
0.1200050637125969,
0.01658755913376808,
-0.23222143948078156,
0.00976553000509739,
-0.002880432642996311,
-0.27988043427467346,
-0.12820649147033691,
-0.03181367740035057,
-0.1907246857881546,
0.34952232241630554,
0.1516788899898529,
0.03630039468407631,
-0.24857057631015778,
-0.547730565071106,
-0.20116354525089264,
0.11521407216787338,
-0.015569468960165977,
-0.10093501955270767,
-0.32313066720962524,
-0.026897957548499107,
-0.03425545617938042,
0.334120512008667,
-0.023824239149689674,
0.4164542853832245,
-0.04730550944805145,
-0.20342595875263214,
0.22102466225624084,
-0.1795637607574463,
0.14225322008132935,
-0.0516008697450161,
0.19984623789787292,
-0.05853456258773804,
-0.11628471314907074,
-0.2715660631656647,
-0.20607659220695496,
-0.26190537214279175,
0.24534372985363007,
-0.077695332467556,
0.22671166062355042,
-0.402666300535202,
0.04278650879859924,
0.06877508014440536,
0.38093122839927673,
-0.29730018973350525,
-0.2171100527048111,
-0.31586042046546936,
-0.2742901146411896,
-0.283430278301239,
-0.05609319731593132,
-0.10546262562274933,
0.2077486664056778,
-0.12031886726617813,
0.1751265972852707,
-0.0006152948481030762,
0.009342004545032978,
0.323375403881073,
-0.06683918088674545,
0.3630557954311371,
-0.10807612538337708,
0.1413899064064026,
0.08626600354909897,
-0.34308910369873047,
0.30260390043258667,
0.7589161396026611,
-0.0703878104686737,
-0.22916445136070251,
0.2544202506542206,
-0.05936373397707939,
-0.31245169043540955,
0.26924020051956177,
0.11704947799444199,
-0.08998356014490128,
0.36340993642807007,
-0.02090848982334137,
-0.05374297499656677,
-0.2774033546447754,
0.14683818817138672,
0.11810759454965591,
-0.34629327058792114,
-0.4122239351272583,
0.13079462945461273,
0.09611161798238754,
-0.10925229638814926,
0.4117065668106079,
0.27583011984825134,
-0.14017020165920258,
0.05399312078952789,
0.4594933092594147,
0.9954107403755188,
-0.13125358521938324,
0.28470057249069214,
-0.06030543893575668,
-0.08718197047710419,
0.31228840351104736,
-0.24893487989902496,
0.10440201312303543,
-0.3933149576187134,
0.147103950381279,
-0.12633031606674194,
-0.33298808336257935,
0.07445892691612244,
0.04016350954771042,
0.22206145524978638,
0.4867366850376129,
0.01506100408732891,
0.12553732097148895,
0.19869622588157654,
0.09324636310338974,
-0.3384926915168762,
-0.014600862748920918,
0.18806520104408264,
0.08345875889062881,
-0.22544211149215698,
0.39009398221969604,
-0.1328975409269333,
0.2234778255224228,
0.019444622099399567,
-0.11878986656665802,
-0.5311703085899353,
-0.036327388137578964,
-0.0562916100025177,
0.4472944438457489,
0.23741532862186432,
-0.20328828692436218,
-0.17887936532497406,
0.1081019788980484,
0.013593040406703949,
0.005353678483515978,
-0.2681930959224701,
0.1548193097114563,
0.3955296277999878,
0.07515126466751099,
-0.028644494712352753,
-0.0019438639283180237,
0.2729853093624115,
-0.05660218000411987,
-0.15182307362556458,
0.0878181979060173,
-0.010167092084884644,
-0.5436388850212097,
-0.3430449962615967,
0.2885994613170624,
-0.23351223766803741,
-0.34504953026771545,
-0.26805388927459717,
-0.2246432602405548,
-0.18284021317958832,
-0.20512759685516357,
0.06651609390974045,
0.2343985140323639,
-0.1421092003583908,
0.21737009286880493,
0.1332426220178604,
-0.3970557451248169,
-0.25347214937210083,
0.5514846444129944,
0.16132551431655884,
-0.11610038578510284,
0.5359881520271301,
-0.11154815554618835,
-0.2558029294013977,
-0.16740533709526062,
0.03229915723204613,
0.07323697209358215,
-0.5194633603096008,
0.07286151498556137,
-0.2384827882051468,
0.171249657869339,
-0.12848570942878723,
0.3552261292934418,
0.35103702545166016,
0.35084500908851624,
-0.026509908959269524,
-0.5613190531730652,
-0.0033331194426864386,
-0.014284135773777962,
0.06191735714673996,
0.32276344299316406,
-0.23905690014362335,
-0.22004301846027374,
-0.03993730992078781,
-0.18071895837783813,
-0.20425808429718018,
0.1239502802491188,
-0.42849019169807434,
-0.030142420902848244,
0.1998591274023056,
-0.08751577138900757,
0.16646763682365417,
0.05767744407057762,
0.07220715284347534,
0.06497189402580261,
-0.21557004749774933,
-0.11945860832929611,
-0.1381189525127411,
0.20429186522960663,
0.10902850329875946,
-0.14237287640571594,
-0.023958474397659302,
-0.033593736588954926,
0.052102718502283096,
-0.04781654104590416,
0.03414519503712654,
0.3134572207927704,
-0.10163884609937668,
-0.01617526262998581,
0.15504640340805054,
-0.1265355348587036,
-0.10682433843612671,
-0.04699641466140747,
-0.297728955745697,
-0.04761892184615135,
0.18590137362480164,
0.09034454822540283,
0.3465734124183655,
0.060511715710163116,
-0.039232607930898666,
0.116716168820858,
0.18099263310432434,
-0.15566694736480713,
0.14714986085891724,
-0.2417292296886444,
-0.03410763666033745,
-0.0012866442557424307,
0.331252783536911,
0.578892707824707,
-0.3147878050804138,
-0.18044397234916687,
0.2346496433019638,
0.1194181889295578,
-0.1353294998407364,
-0.09135399013757706,
0.07580884546041489,
-0.09357975423336029,
0.08941631764173508,
0.13613533973693848,
-0.018028657883405685,
-0.24744011461734772,
0.44630321860313416,
0.11698318272829056,
0.3723030686378479,
-0.610533595085144,
0.17108729481697083,
0.13644111156463623,
-0.11753767728805542,
0.03759661689400673,
0.35817018151283264,
-0.039460550993680954,
-0.029600879177451134,
-0.17149099707603455,
-0.12173734605312347,
0.19950464367866516,
-0.35977715253829956,
0.15934358537197113,
-0.21455371379852295,
-0.6058475375175476,
0.44130346179008484,
0.3200618624687195,
-0.0724707841873169,
0.22713586688041687,
0.17144222557544708,
0.39121517539024353,
-0.1395467221736908,
0.4165733754634857,
-0.5694960355758667,
-0.034903500229120255,
-0.14430388808250427,
-0.17609941959381104,
-0.13240520656108856,
-0.35702887177467346,
0.054708756506443024,
0.30480507016181946,
0.06949018687009811,
-0.1116635873913765,
0.1567237675189972,
0.05290747806429863,
-0.2609960734844208,
-0.4940488636493683,
0.14421166479587555,
-0.09842991083860397,
-0.07991364598274231,
-0.266775906085968,
0.058132562786340714,
0.33639219403266907,
-0.04116939753293991,
0.11700641363859177,
0.18734845519065857,
0.4015205502510071,
0.32237088680267334,
0.060949210077524185,
-0.008996169082820415,
-0.11055497080087662,
-0.016892531886696815,
0.04592777043581009,
0.7341309785842896,
0.011859103105962276,
-0.16862858831882477,
0.22825011610984802,
0.10509683191776276,
-0.16240142285823822,
0.3463476300239563,
-0.0672929510474205,
-0.19695179164409637,
-0.24958769977092743,
0.5849601626396179,
-0.07440347969532013,
0.04054223746061325,
-0.2656804919242859,
0.16460850834846497,
-0.3968411684036255,
-0.43308117985725403,
-0.025616386905312538,
0.0011068686144426465,
0.006221600342541933,
-0.026220517233014107,
0.016120124608278275,
-0.1713743954896927,
0.48755142092704773,
0.4068419933319092,
0.058072254061698914,
-0.4211582541465759,
0.01951642893254757,
-0.6684357523918152,
0.3273189663887024,
-0.38086214661598206,
0.1056365817785263,
-0.042951442301273346,
0.3075511157512665,
-0.1990818977355957,
0.30605095624923706,
0.11973606050014496,
0.022201327607035637,
-0.3295067846775055,
-0.22772766649723053,
-0.1944902539253235,
-0.10706764459609985,
0.33382001519203186,
-0.21072247624397278,
-0.12935933470726013,
-0.3248290419578552,
0.10426723212003708,
0.000891731702722609,
0.008212174288928509,
-0.12308159470558167,
-0.028504425659775734,
-0.02210300602018833,
0.32992681860923767,
0.1967962384223938,
0.1362973004579544,
0.7609400153160095,
0.06711871922016144,
-0.1331508755683899,
-0.25731635093688965,
-0.23982082307338715,
-0.10366331785917282,
0.1768932193517685,
-0.03672756627202034,
0.44638609886169434,
-0.021185364574193954,
-0.40584245324134827,
-0.181215301156044,
0.4622706174850464,
-0.14638474583625793,
-0.4938639998435974,
0.000571513781324029,
-0.051011405885219574,
-0.1060827374458313,
0.07423359155654907,
-0.1120767816901207,
0.0930686891078949,
0.27236732840538025,
0.24888506531715393,
-0.11389661580324173,
-0.2186213880777359,
0.5264893174171448,
-0.3776213228702545,
-0.03174057975411415,
0.11928193271160126,
0.19638288021087646,
0.04534903168678284,
-0.26167774200439453,
-0.446018785238266,
0.347974956035614,
0.3618853986263275,
0.06104286387562752,
-0.12201683968305588,
0.23199424147605896,
-0.4572669267654419,
0.16085033118724823,
-0.0770440623164177,
0.05661816895008087,
0.10849203169345856,
-0.2246621996164322,
-0.1531858891248703,
-0.16413159668445587
] |
https://github.com/huggingface/datasets/issues/1856 | load_dataset("amazon_polarity") NonMatchingChecksumError | > When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive?
Each file on Google Drive can be downloaded only a certain amount of times per day because of a quota. The quota is reset every day. So if too many people download the dataset the same day, then the quota is likely to exceed.
That's a really bad limitations of Google Drive and we should definitely find another host for these dataset than Google Drive.
For now I would suggest to wait and try again later..
So far the issue happened with CNN DailyMail, Amazon Polarity and Yelp Reviews.
Are you experiencing the issue with other datasets ? @calebchiam @dtch1997 | Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
``` | 127 | load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
```
> When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive?
Each file on Google Drive can be downloaded only a certain amount of times per day because of a quota. The quota is reset every day. So if too many people download the dataset the same day, then the quota is likely to exceed.
That's a really bad limitations of Google Drive and we should definitely find another host for these dataset than Google Drive.
For now I would suggest to wait and try again later..
So far the issue happened with CNN DailyMail, Amazon Polarity and Yelp Reviews.
Are you experiencing the issue with other datasets ? @calebchiam @dtch1997 | [
-0.1349429190158844,
0.047477882355451584,
-0.11106205731630325,
0.25881001353263855,
0.062481943517923355,
-0.03678252920508385,
0.2863379418849945,
0.01199390273541212,
0.3435027003288269,
0.2581290006637573,
0.07673431932926178,
-0.0375790111720562,
0.003082318464294076,
0.037952397018671036,
-0.233708456158638,
0.16956916451454163,
-0.021713294088840485,
-0.07363469153642654,
-0.11179638653993607,
0.040675073862075806,
-0.27477172017097473,
0.2887173891067505,
0.00701800687238574,
-0.20344828069210052,
-0.03966144099831581,
0.008733120746910572,
0.3278363049030304,
0.11759621649980545,
-0.1759134829044342,
-0.31167611479759216,
0.33002182841300964,
0.08261255919933319,
0.06831837445497513,
0.34642475843429565,
-0.00012041811714880168,
-0.0683179423213005,
0.39421528577804565,
0.0965760126709938,
-0.41895925998687744,
-0.24621064960956573,
-0.35147127509117126,
-0.35339704155921936,
0.07687614858150482,
-0.14831849932670593,
0.1762084662914276,
0.3158307671546936,
0.13149318099021912,
-0.23690538108348846,
0.17296069860458374,
0.13813148438930511,
0.13241897523403168,
0.42141643166542053,
0.15271912515163422,
0.18100443482398987,
0.36248457431793213,
0.04843790456652641,
-0.03632575273513794,
0.26997730135917664,
0.21515676379203796,
-0.062193747609853745,
-0.29291656613349915,
0.10535512119531631,
-0.03940407559275627,
0.5324476361274719,
0.14419981837272644,
-0.026299534365534782,
0.10127943754196167,
-0.3418426215648651,
0.17161160707473755,
0.38727623224258423,
0.5805901288986206,
-0.12491030246019363,
-0.23386698961257935,
-0.0933414027094841,
-0.2541101574897766,
-0.3007953464984894,
0.37019699811935425,
0.40879157185554504,
-0.18253163993358612,
-0.242086723446846,
-0.46682512760162354,
0.23561914265155792,
-0.11459865421056747,
0.16404667496681213,
-0.17736376821994781,
0.2125670313835144,
0.029611535370349884,
0.21809835731983185,
0.2534276247024536,
-0.07228942215442657,
0.5507885217666626,
-0.33852720260620117,
0.0278646107763052,
0.21654963493347168,
-0.5382952690124512,
-0.05966228246688843,
0.026529861614108086,
0.4756048321723938,
0.1846512258052826,
0.564303994178772,
0.18954409658908844,
0.16553598642349243,
0.049482312053442,
0.29118046164512634,
0.40963637828826904,
0.18556980788707733,
-0.22529557347297668,
0.2780071496963501,
0.21262018382549286,
0.197870135307312,
0.16984276473522186,
0.09874987602233887,
-0.018339551985263824,
-0.3449649214744568,
0.6129298210144043,
-0.07254409790039062,
0.14912700653076172,
-0.44137272238731384,
-0.5689802169799805,
0.36165615916252136,
-0.29591819643974304,
-0.1476629674434662,
0.0714617669582367,
0.12755940854549408,
-0.18861784040927887,
-0.028460757806897163,
0.013129990547895432,
-0.11428491771221161,
-0.15542380511760712,
0.09142298251390457,
-0.1961929351091385,
0.11930301040410995,
-0.09731007367372513,
0.2034061849117279,
0.2082078605890274,
-0.04586290568113327,
0.2794569730758667,
-0.04085161164402962,
0.29505017399787903,
-0.2197560966014862,
0.5377064943313599,
-0.2721767723560333,
-0.18072038888931274,
0.5546467900276184,
-0.05232737213373184,
0.01126082893460989,
0.10489396005868912,
0.18031316995620728,
-0.16029413044452667,
0.2673657238483429,
-0.14790724217891693,
-0.1279229074716568,
0.18715746700763702,
0.1310717910528183,
-0.5833468437194824,
-0.2072044014930725,
-0.16470961272716522,
-0.3109378516674042,
0.23202666640281677,
-0.2921413779258728,
0.023849694058299065,
-0.3568733036518097,
0.016580242663621902,
-0.2122602015733719,
0.024651797488331795,
0.40803495049476624,
-0.21964168548583984,
-0.029267868027091026,
-0.3386439085006714,
-0.1784806102514267,
0.42419812083244324,
0.3356626331806183,
-0.16592592000961304,
0.18277768790721893,
-0.2545884847640991,
-0.1609524041414261,
0.010721549391746521,
-0.10885674506425858,
-0.3976553678512573,
0.050172898918390274,
-0.2954810559749603,
0.4057822525501251,
0.14341731369495392,
0.19287802278995514,
0.014345808885991573,
0.0030358298681676388,
0.28355422616004944,
0.15822134912014008,
-0.014703699387609959,
0.036136090755462646,
-0.1703038513660431,
-0.15700727701187134,
0.17084187269210815,
0.2926815450191498,
0.2981024980545044,
0.00419522263109684,
0.2727926969528198,
-0.12372448295354843,
0.019749963656067848,
-0.004574607126414776,
-0.02260504849255085,
0.2537458539009094,
0.13426455855369568,
-0.02357991598546505,
-0.07285763323307037,
-0.0011669450905174017,
-0.5085257291793823,
0.2030845284461975,
-0.35831546783447266,
0.04993679001927376,
-0.03780236095190048,
0.10986102372407913,
-0.14671587944030762,
-0.22909754514694214,
-0.14286555349826813,
0.0938146710395813,
0.0016223022248595953,
0.3955658972263336,
0.15502814948558807,
-0.16004551947116852,
0.1011648029088974,
0.12783260643482208,
-0.43715235590934753,
0.047345373779535294,
-0.4895060360431671,
0.29927167296409607,
0.01833338290452957,
0.055275171995162964,
0.10591167211532593,
-0.022818705067038536,
0.13570910692214966,
-0.11474789679050446,
0.03401831537485123,
0.3085659146308899,
0.17177726328372955,
0.3997485339641571,
0.04096946120262146,
0.6185168623924255,
-0.1008119136095047,
-0.04229085147380829,
-0.005037345923483372,
0.5124955773353577,
0.08092077076435089,
-0.22709234058856964,
-0.3972211182117462,
0.6124411821365356,
-0.23826636373996735,
0.23214855790138245,
-0.13311626017093658,
0.08427739888429642,
0.264922171831131,
-0.014043224044144154,
-0.27971938252449036,
0.037605807185173035,
0.44473496079444885,
0.2148773968219757,
-0.1085129827260971,
0.05948251858353615,
-0.12572617828845978,
-0.0875001773238182,
0.36860352754592896,
-0.26394206285476685,
-0.009963552467525005,
0.15313339233398438,
-0.014909958466887474,
-0.17583972215652466,
0.09523741155862808,
0.8160724639892578,
0.5828455090522766,
0.1383720189332962,
0.06518658250570297,
-0.18816719949245453,
-0.1472271978855133,
-0.137979656457901,
0.08607202768325806,
0.17569635808467865,
-0.09891404956579208,
0.4286360442638397,
0.10379920154809952,
-0.21196326613426208,
-0.48858195543289185,
-0.2679803967475891,
0.19502711296081543,
0.42747771739959717,
-0.4311172068119049,
0.008034021593630314,
-0.0060759191401302814,
0.22779834270477295,
-0.33021995425224304,
0.021481037139892578,
-0.22902892529964447,
-0.4285721182823181,
-0.13628536462783813,
0.5601518750190735,
-0.021282069385051727,
0.0625668540596962,
-0.32087472081184387,
0.2279883623123169,
0.018312152475118637,
-0.4872387647628784,
-0.042190734297037125,
-0.09390563517808914,
-0.10667568445205688,
0.03113051876425743,
0.4095045328140259,
-0.10109307616949081,
0.4162183105945587,
-0.3030729591846466,
0.11139566451311111,
-0.5681461095809937,
-0.23996251821517944,
-0.044250402599573135,
-0.1286788135766983,
0.11647314578294754,
0.08984415978193283,
0.28636571764945984,
-0.09453366696834564,
0.006007673684507608,
-0.03836268186569214,
0.16576844453811646,
-0.2480383962392807,
0.1248965859413147,
-0.16734175384044647,
0.04282049089670181,
0.11292433738708496,
-0.18048828840255737,
-0.10324133932590485,
-0.34514176845550537,
0.15046881139278412,
0.46862003207206726,
0.16053776443004608,
-0.05038079246878624,
0.0320630744099617,
0.10363192111253738,
0.0961378663778305,
0.21491140127182007,
-0.3637516498565674,
-0.6516870260238647,
0.42630061507225037,
0.028869902715086937,
-0.19001469016075134,
0.04958327114582062,
0.08505329489707947,
0.2140689492225647,
0.42360854148864746,
-0.5703602433204651,
-0.12771116197109222,
-0.39323899149894714,
-0.10568458586931229,
-0.014020299538969994,
0.12535898387432098,
0.3836190700531006,
0.10568256676197052,
-0.07064886391162872,
0.053200192749500275,
-0.43801259994506836,
0.02436470426619053,
0.06259402632713318,
0.3301316201686859,
-0.09297554939985275,
0.20455801486968994,
-0.1958513855934143,
0.6013501286506653,
0.03884507715702057,
-0.014996062964200974,
0.08432471007108688,
0.2517702579498291,
0.43484675884246826,
-0.00029936409555375576,
-0.022702500224113464,
0.04287920519709587,
-0.06429275870323181,
-0.03436071425676346,
0.1285894215106964,
-0.040476951748132706,
-0.21227703988552094,
0.05256740748882294,
-0.03838992863893509,
-0.1745995730161667,
-0.16176536679267883,
0.1090545803308487,
-0.056607089936733246,
0.345162570476532,
0.07066453248262405,
0.04256556183099747,
-0.2898292541503906,
-0.4241088330745697,
-0.22282522916793823,
0.11047762632369995,
0.004039609804749489,
-0.07511911541223526,
-0.3085339069366455,
0.0598783902823925,
-0.11645721644163132,
0.3225315809249878,
-0.07949204742908478,
0.3666820228099823,
-0.11615020781755447,
-0.0807974562048912,
0.21942773461341858,
-0.146388441324234,
0.1137588769197464,
-0.10693629086017609,
0.10287215560674667,
-0.06106868013739586,
-0.0469929575920105,
-0.11381164193153381,
-0.2126425802707672,
-0.31067711114883423,
0.3325224220752716,
-0.019153865054249763,
0.2525077760219574,
-0.4487135410308838,
0.04485451430082321,
0.055743321776390076,
0.3680002689361572,
-0.2528475522994995,
-0.2449685037136078,
-0.3577001690864563,
-0.30701744556427,
-0.34257256984710693,
0.1855706423521042,
0.0011229836381971836,
0.21387295424938202,
-0.1341518759727478,
0.08144241571426392,
0.09664694219827652,
0.036672063171863556,
0.2058677077293396,
-0.08072374761104584,
0.30479931831359863,
-0.05127368122339249,
0.028886878862977028,
0.20297695696353912,
-0.38951581716537476,
0.2778032124042511,
0.6610249876976013,
-0.04379129782319069,
-0.06092867627739906,
0.2704160809516907,
-0.09266489744186401,
-0.3631848692893982,
0.2875853180885315,
0.06794054806232452,
-0.0884699672460556,
0.4182349741458893,
0.12583117187023163,
-0.06996027380228043,
-0.28138694167137146,
0.21642914414405823,
0.1614833027124405,
-0.24664406478405,
-0.3831727206707001,
0.116035096347332,
0.0151443462818861,
-0.12798230350017548,
0.5681807398796082,
0.17251093685626984,
-0.11888433247804642,
0.0885017067193985,
0.41730958223342896,
1.1071867942810059,
-0.1167682483792305,
0.24644464254379272,
-0.003125567454844713,
-0.1765981912612915,
0.3316380977630615,
-0.2680211663246155,
0.19217081367969513,
-0.3988216519355774,
0.03983752802014351,
-0.12734559178352356,
-0.37640970945358276,
0.1355913132429123,
-0.04649744927883148,
0.09215495735406876,
0.42399123311042786,
-0.05160105228424072,
0.08215487003326416,
0.1611684411764145,
0.07101458311080933,
-0.40110376477241516,
0.01094109658151865,
0.21799765527248383,
0.10147886723279953,
-0.21280328929424286,
0.37075769901275635,
-0.20217902958393097,
0.11336667835712433,
0.11074910312891006,
-0.2223910689353943,
-0.4860480725765228,
-0.09605209529399872,
-0.032783981412649155,
0.283648818731308,
0.22052279114723206,
-0.11244305968284607,
-0.23351497948169708,
0.08266899734735489,
0.12139929831027985,
-0.06178223714232445,
-0.1754772663116455,
0.1419455111026764,
0.2989318370819092,
0.025944864377379417,
0.03173013776540756,
-0.08539818227291107,
0.2706812918186188,
-0.11884233355522156,
-0.16286234557628632,
0.052855122834444046,
-0.03602903336286545,
-0.5696086287498474,
-0.23226456344127655,
0.24476483464241028,
-0.12929542362689972,
-0.27739980816841125,
-0.1481332629919052,
-0.15683381259441376,
-0.3212551772594452,
-0.20628128945827484,
0.11146137863397598,
0.31051138043403625,
-0.1522541046142578,
0.3884689211845398,
0.053600676357746124,
-0.37616413831710815,
-0.24940429627895355,
0.47350528836250305,
0.09038145840167999,
-0.04728791117668152,
0.46434473991394043,
-0.0493590421974659,
-0.25575441122055054,
-0.21683230996131897,
0.05458800867199898,
0.0519263781607151,
-0.46440547704696655,
0.15672723948955536,
-0.2019968181848526,
0.2047419548034668,
-0.10243986546993256,
0.3309841454029083,
0.33808019757270813,
0.34946686029434204,
-0.07524743676185608,
-0.6224420666694641,
-0.054829441010951996,
-0.10991054028272629,
0.03153901919722557,
0.37692418694496155,
-0.2181612104177475,
-0.3497454524040222,
0.03949180245399475,
-0.2079380303621292,
-0.2735699713230133,
0.09823732823133469,
-0.42650488018989563,
-0.00774519145488739,
0.18203990161418915,
-0.14306950569152832,
0.25881606340408325,
0.09304218739271164,
0.0909406766295433,
0.04552130401134491,
-0.3256882429122925,
-0.13887301087379456,
-0.13342899084091187,
0.19255097210407257,
0.038602620363235474,
-0.12885789573192596,
0.025297848507761955,
-0.09219234436750412,
0.04497557133436203,
-0.01882527396082878,
-0.05588608235120773,
0.23616346716880798,
-0.14814510941505432,
-0.13541561365127563,
0.19232138991355896,
-0.0158994123339653,
-0.11976722627878189,
-0.18801842629909515,
-0.3041902780532837,
-0.10436252504587173,
0.1823475956916809,
0.1488693803548813,
0.18729911744594574,
-0.049661193042993546,
-0.06946544349193573,
0.11834163963794708,
0.2726775109767914,
-0.10550465434789658,
0.21893329918384552,
-0.19477953016757965,
-0.165370911359787,
-0.0994826927781105,
0.338593989610672,
0.5191003680229187,
-0.2795705497264862,
-0.21230188012123108,
0.239174485206604,
0.18509186804294586,
-0.08136700093746185,
-0.11641186475753784,
0.09856972098350525,
0.02186945639550686,
0.0697927176952362,
0.1930086314678192,
-0.014317696914076805,
-0.30894729495048523,
0.38043513894081116,
0.1134406253695488,
0.3322177529335022,
-0.7211833000183105,
0.038243308663368225,
0.09484932571649551,
-0.22301627695560455,
-0.04897415265440941,
0.4857470691204071,
-0.06271534413099289,
-0.002812985796481371,
-0.13442140817642212,
-0.09951353073120117,
0.16652551293373108,
-0.2666633129119873,
0.10251674801111221,
-0.3384128212928772,
-0.5586663484573364,
0.4284244179725647,
0.34067216515541077,
0.04922935366630554,
0.14773166179656982,
0.21720442175865173,
0.2795031666755676,
-0.11717197299003601,
0.3882197439670563,
-0.5804316401481628,
0.008350302465260029,
-0.1292092502117157,
-0.11991824954748154,
-0.21507522463798523,
-0.32334592938423157,
0.04374969005584717,
0.34269899129867554,
0.09917724877595901,
-0.11918903142213821,
0.22628772258758545,
0.06529158353805542,
-0.28116360306739807,
-0.3712741434574127,
0.0387418307363987,
-0.03300001472234726,
-0.09864816814661026,
-0.2912288010120392,
0.07708369940519333,
0.3421231210231781,
-0.029564283788204193,
0.011745281517505646,
0.2095717340707779,
0.43960338830947876,
0.2685384154319763,
0.09993837028741837,
0.0597686842083931,
-0.07811210304498672,
0.0021206126548349857,
-0.07505804300308228,
0.6987162828445435,
-0.025297466665506363,
-0.10151714831590652,
0.2111513465642929,
0.13820643723011017,
-0.20758527517318726,
0.35037973523139954,
-0.17194361984729767,
-0.3512226343154907,
-0.14744175970554352,
0.5249897837638855,
0.058356091380119324,
0.03212452679872513,
-0.2822971045970917,
0.13205258548259735,
-0.4383368492126465,
-0.31465908885002136,
-0.009482212364673615,
0.058176059275865555,
0.013378450646996498,
0.0018400003900751472,
0.03070017695426941,
-0.1343364119529724,
0.4461660087108612,
0.3831961750984192,
0.167416512966156,
-0.47539886832237244,
0.032894160598516464,
-0.6384223699569702,
0.27685558795928955,
-0.3937018811702728,
0.10022582858800888,
-0.03587418794631958,
0.342617005109787,
-0.15483230352401733,
0.21974758803844452,
0.20840418338775635,
-0.09536251425743103,
-0.1761244833469391,
-0.07302578538656235,
-0.14646856486797333,
-0.028683576732873917,
0.37837645411491394,
-0.1787625253200531,
-0.1578899621963501,
-0.30848339200019836,
0.20948216319084167,
-0.12342915683984756,
0.0764031931757927,
-0.13396410644054413,
-0.015603182837367058,
-0.06206129118800163,
0.25426653027534485,
0.2515357434749603,
0.12449060380458832,
0.6347790956497192,
0.006134548224508762,
-0.0981876403093338,
-0.3610517084598541,
-0.09232882410287857,
-0.21604782342910767,
0.06145842373371124,
0.025380412116646767,
0.6215924620628357,
-0.10011716932058334,
-0.35721707344055176,
-0.26921552419662476,
0.5112687945365906,
-0.14362458884716034,
-0.4518861174583435,
0.09846522659063339,
-0.05925920233130455,
-0.13221965730190277,
0.18416157364845276,
-0.10861428081989288,
0.16544212400913239,
0.3128497004508972,
0.20701462030410767,
-0.23999467492103577,
-0.22647710144519806,
0.5082709193229675,
-0.40229669213294983,
-0.13374832272529602,
0.13960225880146027,
0.1908554881811142,
0.16518764197826385,
-0.18244940042495728,
-0.43939408659935,
0.39903566241264343,
0.2949400842189789,
0.015709390863776207,
-0.1631639003753662,
0.16951699554920197,
-0.4015010893344879,
0.18220244348049164,
0.03830504044890404,
0.03921898826956749,
0.10610617697238922,
-0.21783283352851868,
-0.15429040789604187,
-0.19484154880046844
] |
https://github.com/huggingface/datasets/issues/1856 | load_dataset("amazon_polarity") NonMatchingChecksumError | @lhoestq Gotcha, that is quite problematic...for what it's worth, I've had no issues with the other datasets I tried, such as `yelp_reviews_full` and `amazon_reviews_multi`. | Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
``` | 24 | load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
```
@lhoestq Gotcha, that is quite problematic...for what it's worth, I've had no issues with the other datasets I tried, such as `yelp_reviews_full` and `amazon_reviews_multi`. | [
-0.19478663802146912,
0.0554472990334034,
-0.08366961032152176,
0.15782234072685242,
0.17194846272468567,
0.0804428905248642,
0.23757299780845642,
0.09915191680192947,
0.24162019789218903,
-0.013614020310342312,
-0.08398184925317764,
0.06070075184106827,
-0.003998273983597755,
-0.14103847742080688,
-0.3183493912220001,
0.30286917090415955,
0.08086645603179932,
0.031971342861652374,
-0.1793724000453949,
0.03681851178407669,
-0.32332396507263184,
0.24467584490776062,
-0.04896792396903038,
-0.2615421712398529,
-0.1571849137544632,
0.19282428920269012,
0.195210263133049,
0.018648209050297737,
-0.10129626095294952,
-0.30448612570762634,
0.5374703407287598,
0.1992495059967041,
-0.012076234444975853,
0.3185725808143616,
-0.0001195671793539077,
0.08530574291944504,
0.3367522656917572,
0.024846766144037247,
-0.3156445026397705,
-0.39741721749305725,
-0.3859306871891022,
-0.2944522500038147,
0.09696132689714432,
-0.07509444653987885,
0.10688050091266632,
0.17731818556785583,
0.11158844083547592,
-0.12399623543024063,
0.11564221978187561,
0.18488122522830963,
0.20535072684288025,
0.385219544172287,
0.11663144081830978,
0.19726455211639404,
0.3125816285610199,
0.3064415752887726,
-0.1069202721118927,
0.26796066761016846,
0.12519271671772003,
-0.10115284472703934,
-0.166724294424057,
0.09293308109045029,
-0.11706970632076263,
0.3990476727485657,
0.14471615850925446,
-0.04051383212208748,
0.32008612155914307,
-0.1548222303390503,
0.2880883514881134,
0.49797797203063965,
0.3820735812187195,
-0.12942282855510712,
-0.36181700229644775,
0.030811535194516182,
-0.22950199246406555,
-0.20957240462303162,
0.2629096210002899,
0.3812122046947479,
-0.05787660554051399,
-0.21787746250629425,
-0.46675530076026917,
0.22666412591934204,
-0.025490399450063705,
0.2627209722995758,
0.052506204694509506,
0.34002572298049927,
0.1289115846157074,
0.12332438677549362,
0.15981067717075348,
-0.20953018963336945,
0.4995458126068115,
-0.24413980543613434,
-0.008565284311771393,
0.15881502628326416,
-0.549527645111084,
0.009056203998625278,
-0.031495384871959686,
0.42280420660972595,
0.21752724051475525,
0.5261783599853516,
0.13086029887199402,
0.28615155816078186,
0.018671631813049316,
0.20189327001571655,
0.23498010635375977,
0.1130003035068512,
-0.0022747840266674757,
0.36247268319129944,
0.1853785663843155,
0.24517089128494263,
0.06700798869132996,
0.14502613246440887,
0.09177175164222717,
-0.1510995477437973,
0.6740026473999023,
-0.1330973207950592,
0.29486680030822754,
-0.46547940373420715,
-0.4914766848087311,
0.32479485869407654,
-0.18390445411205292,
-0.0913161039352417,
0.03147269785404205,
0.2384023368358612,
-0.14576564729213715,
0.25409993529319763,
0.04443664103746414,
0.03521866351366043,
-0.15449753403663635,
0.21919642388820648,
-0.19571465253829956,
-0.011142747476696968,
-0.07170648127794266,
0.2342015653848648,
0.2611874043941498,
0.015525305643677711,
0.39985135197639465,
-0.03201005235314369,
0.21157628297805786,
-0.11096671968698502,
0.3717312812805176,
-0.1075838953256607,
-0.06413666158914566,
0.3863781690597534,
-0.08710233122110367,
0.0800861343741417,
0.10765154659748077,
0.12058569490909576,
-0.1914372444152832,
0.11788800358772278,
-0.0960543304681778,
-0.13474102318286896,
-0.038467008620500565,
0.15012049674987793,
-0.564566433429718,
-0.18161514401435852,
0.07558254152536392,
-0.37719181180000305,
0.3030201494693756,
-0.36753401160240173,
-0.04436985403299332,
-0.4381239414215088,
-0.04041263461112976,
-0.12795652449131012,
0.0071099246852099895,
0.30588510632514954,
-0.11307920515537262,
-0.05074025318026543,
-0.33283108472824097,
-0.10520651191473007,
0.43379440903663635,
0.2970631718635559,
-0.01837409846484661,
-0.05392448976635933,
-0.14581726491451263,
-0.27373066544532776,
-0.03628149628639221,
-0.08733639121055603,
-0.29597973823547363,
0.12221532315015793,
-0.11023087799549103,
0.4858846664428711,
-0.013729372061789036,
0.30038344860076904,
-0.20765620470046997,
0.01643252745270729,
0.24735897779464722,
0.08742579817771912,
0.01562321837991476,
0.12711483240127563,
-0.2721618413925171,
-0.21681828796863556,
0.4197227656841278,
0.30421242117881775,
0.14479543268680573,
-0.05499616637825966,
0.031545400619506836,
-0.03759995475411415,
0.19198797643184662,
0.0012868160847574472,
-0.08916007727384567,
0.14625655114650726,
0.3222911059856415,
0.03915008157491684,
0.02889501303434372,
-0.06792863458395004,
-0.4993549883365631,
0.20358610153198242,
-0.24448858201503754,
0.05013955757021904,
-0.07173308730125427,
0.05869685113430023,
-0.14476820826530457,
-0.202016219496727,
-0.22117942571640015,
0.0414225272834301,
0.03793900087475777,
0.38384294509887695,
0.182515487074852,
-0.11797400563955307,
0.02416050434112549,
0.12183186411857605,
-0.3390519917011261,
0.04900490120053291,
-0.4581526517868042,
0.27699965238571167,
0.041090138256549835,
0.11038951575756073,
0.11122746020555496,
0.0895715057849884,
0.0747309997677803,
-0.010037983767688274,
-0.03092222288250923,
0.39220520853996277,
0.08278456330299377,
0.2096947431564331,
-0.030466139316558838,
0.49366581439971924,
-0.10330254584550858,
-0.15651704370975494,
-0.16889409720897675,
0.5129126310348511,
0.13651619851589203,
-0.1889180988073349,
-0.25760647654533386,
0.5926943421363831,
-0.130100816488266,
0.3979542553424835,
-0.06444412469863892,
0.13931328058242798,
0.2574177086353302,
-0.0767962858080864,
-0.35695669054985046,
-0.23106299340724945,
0.5517597198486328,
-0.15496855974197388,
-0.10699000209569931,
0.0832182988524437,
-0.1572752594947815,
-0.11697293817996979,
0.04969152435660362,
-0.13129542768001556,
0.1258498579263687,
0.05750299617648125,
0.10979948937892914,
-0.14434124529361725,
0.12921440601348877,
0.5851315259933472,
0.5111242532730103,
0.10826533287763596,
-0.15153679251670837,
-0.019642861559987068,
-0.3857214152812958,
-0.08634670823812485,
0.04414520040154457,
0.14603234827518463,
0.04051031917333603,
0.38253456354141235,
0.19787746667861938,
-0.1548849195241928,
-0.49804621934890747,
-0.19632965326309204,
0.02859949879348278,
0.2656153440475464,
-0.4287972152233124,
0.0746726542711258,
-0.31764355301856995,
0.22828802466392517,
-0.3036856949329376,
-0.08361823111772537,
-0.1786009520292282,
-0.5703514218330383,
-0.0427638441324234,
0.38457512855529785,
-0.07114739716053009,
0.2192089855670929,
-0.5256512761116028,
0.1033710315823555,
-0.0433536097407341,
-0.47887712717056274,
0.03709910064935684,
-0.24716173112392426,
-0.00793352723121643,
-0.0047993771731853485,
0.36936327815055847,
0.06958096474409103,
0.4405275285243988,
-0.2635096609592438,
0.023203710094094276,
-0.5357099771499634,
-0.26078981161117554,
-0.07549868524074554,
-0.09630827605724335,
0.013861441984772682,
0.1456657499074936,
0.14182695746421814,
0.03322679549455643,
-0.20470239222049713,
0.13690032064914703,
0.04760802164673805,
-0.18991029262542725,
0.2861986756324768,
-0.22028988599777222,
-0.1222565621137619,
0.14102165400981903,
-0.15012750029563904,
-0.01763252541422844,
-0.22995002567768097,
0.017905747517943382,
0.31323257088661194,
0.1129755973815918,
-0.048504848033189774,
-0.002842013956978917,
0.06474973261356354,
-0.1155693382024765,
0.3681407570838928,
-0.29247066378593445,
-0.5026841163635254,
0.5586987733840942,
0.00105502107180655,
-0.18931016325950623,
0.0034449335653334856,
0.04479997605085373,
0.22404025495052338,
0.3211055099964142,
-0.515547513961792,
-0.07710549980401993,
-0.3473513126373291,
-0.1309499889612198,
0.17039011418819427,
-0.043353524059057236,
0.3131449818611145,
0.12131816148757935,
-0.012903746217489243,
-0.0031680988613516092,
-0.4504830241203308,
0.055305782705545425,
-0.06791751086711884,
0.5599038004875183,
-0.21809640526771545,
0.0785483792424202,
-0.23561379313468933,
0.49600446224212646,
0.12442902475595474,
-0.15270952880382538,
-0.007750726770609617,
0.1388251632452011,
0.3288230299949646,
-0.1095917671918869,
-0.22578005492687225,
-0.1408218890428543,
-0.1820831447839737,
0.09833590686321259,
0.020930375903844833,
0.038820549845695496,
-0.3366086184978485,
-0.1184425801038742,
0.2828340530395508,
-0.24130365252494812,
-0.21298848092556,
-0.010434570722281933,
-0.2640119194984436,
0.3414263129234314,
0.17331089079380035,
0.1471133679151535,
-0.1718311309814453,
-0.553651750087738,
-0.10060646384954453,
0.06575919687747955,
-0.1263185292482376,
-0.12819570302963257,
-0.39535143971443176,
-0.08287279307842255,
0.026855293661355972,
0.36187276244163513,
0.030368760228157043,
0.5633288025856018,
-0.033177271485328674,
-0.2938789129257202,
0.07653231918811798,
-0.17289511859416962,
0.07190079241991043,
-0.20820152759552002,
0.18855787813663483,
0.09293892979621887,
-0.14726100862026215,
-0.38719046115875244,
-0.20171330869197845,
-0.19497700035572052,
0.2555859684944153,
-0.05119264870882034,
0.3263746500015259,
-0.3654240369796753,
0.04436957836151123,
0.09887886047363281,
0.3995559811592102,
-0.21195265650749207,
-0.27420029044151306,
-0.3901995122432709,
-0.14978966116905212,
-0.17050117254257202,
-0.06327983736991882,
-0.22623391449451447,
0.1313825100660324,
-0.178898885846138,
0.19582706689834595,
0.02816060185432434,
0.046133216470479965,
0.34075435996055603,
0.02788853459060192,
0.29461073875427246,
-0.08457420766353607,
0.3027666211128235,
0.13136067986488342,
-0.17910026013851166,
0.10142117738723755,
0.7728273868560791,
-0.06775305420160294,
-0.3344687819480896,
0.17642000317573547,
-0.09490060061216354,
-0.29391199350357056,
0.30293962359428406,
0.2060929238796234,
-0.07897218316793442,
0.3323393166065216,
-0.06424900144338608,
-0.0421118326485157,
-0.14749132096767426,
0.18181844055652618,
0.03361162543296814,
-0.3301461338996887,
-0.1793638914823532,
0.09238539636135101,
-0.022410709410905838,
-0.04606180265545845,
0.44206348061561584,
0.15552744269371033,
-0.07008910924196243,
0.3109852373600006,
0.45308056473731995,
0.9685315489768982,
0.0399152934551239,
0.2407519668340683,
0.008241668343544006,
-0.20673753321170807,
0.16995233297348022,
-0.13756200671195984,
0.12088177353143692,
-0.44188979268074036,
0.04152902960777283,
-0.06695447862148285,
-0.20642518997192383,
0.0555013045668602,
-0.024467460811138153,
0.13066601753234863,
0.3444657325744629,
0.0549284853041172,
0.1411392092704773,
0.08722146600484848,
0.050062019377946854,
-0.27777326107025146,
-0.053060133010149,
0.10670287907123566,
0.1831929236650467,
-0.13933026790618896,
0.21374432742595673,
-0.11270136386156082,
0.20576512813568115,
0.061012789607048035,
-0.1952584683895111,
-0.45947742462158203,
0.05004105716943741,
0.13866503536701202,
0.43514731526374817,
0.4156050682067871,
-0.049229007214307785,
-0.21959953010082245,
0.05270301178097725,
0.14163212478160858,
0.04401792213320732,
-0.3519322872161865,
0.10947722941637039,
0.42871391773223877,
0.07112234085798264,
0.01846376806497574,
-0.1683940589427948,
0.30013951659202576,
-0.024165654554963112,
-0.14457440376281738,
0.009976964443922043,
0.03853932395577431,
-0.4615330100059509,
-0.2100616842508316,
0.024034667760133743,
-0.20818322896957397,
-0.2153233140707016,
-0.16979514062404633,
-0.11315494775772095,
-0.08307664096355438,
-0.2635006606578827,
0.14058609306812286,
0.2836170792579651,
-0.09461041539907455,
0.3060813546180725,
0.2413632869720459,
-0.35730257630348206,
-0.1883837878704071,
0.5763759016990662,
-0.034318871796131134,
-0.15315929055213928,
0.3977431356906891,
0.009703581221401691,
-0.2667921185493469,
-0.22589342296123505,
0.2647128105163574,
-0.008720031939446926,
-0.5552689433097839,
0.005358561407774687,
-0.24425549805164337,
0.09470419585704803,
-0.060376234352588654,
0.38461917638778687,
0.2534621059894562,
0.15251867473125458,
0.0655350312590599,
-0.568719744682312,
-0.010274619795382023,
0.06887347996234894,
0.17081612348556519,
0.41635462641716003,
-0.367218941450119,
-0.30881109833717346,
-0.08680469542741776,
-0.11364729702472687,
-0.2778409719467163,
0.011419286951422691,
-0.37570059299468994,
0.011329333297908306,
-0.10583764314651489,
-0.05572732910513878,
0.1868758201599121,
0.0056311218068003654,
0.15961810946464539,
-0.0025283924769610167,
-0.2202315628528595,
-0.16304367780685425,
-0.21616153419017792,
0.1567675620317459,
0.12829691171646118,
-0.12939810752868652,
0.10670177638530731,
-0.0669194832444191,
0.05157403647899628,
-0.09495968371629715,
-0.1071285530924797,
0.3279497027397156,
-0.1974288672208786,
0.06880898028612137,
0.02848462387919426,
-0.0793265774846077,
0.054270900785923004,
-0.20813784003257751,
-0.3427087366580963,
-0.15417084097862244,
0.29028400778770447,
-0.06083957850933075,
0.13408015668392181,
-0.015065327286720276,
0.17647117376327515,
0.16670075058937073,
0.059737082570791245,
-0.1213480532169342,
0.31090977787971497,
-0.29659342765808105,
-0.06901552528142929,
0.06954319775104523,
0.3078794479370117,
0.5859783291816711,
-0.324809730052948,
-0.07010365277528763,
0.23605354130268097,
0.19943518936634064,
-0.26967474818229675,
-0.10611411184072495,
0.08822288364171982,
0.09646362066268921,
0.10122184455394745,
0.07778002321720123,
-0.13693086802959442,
-0.29713174700737,
0.47333797812461853,
0.19763989746570587,
0.1944734901189804,
-0.7444222569465637,
0.12110178172588348,
0.11189279705286026,
-0.20942749083042145,
-0.0126873217523098,
0.22133471071720123,
-0.1534295380115509,
-0.09091202914714813,
-0.20603972673416138,
-0.0669834166765213,
0.38161423802375793,
-0.3638485074043274,
0.20922096073627472,
-0.22616812586784363,
-0.30459484457969666,
0.38761892914772034,
-0.0022028388921171427,
-0.050628867000341415,
0.18732163310050964,
0.2213815450668335,
0.41707882285118103,
-0.1789330691099167,
0.3228992521762848,
-0.6740230321884155,
-0.1435573399066925,
-0.05055370181798935,
-0.19977083802223206,
-0.30837273597717285,
-0.2873627543449402,
-0.06269877403974533,
0.17035293579101562,
-0.014221969060599804,
-0.01858951710164547,
0.3029107451438904,
0.07466866821050644,
-0.2003737986087799,
-0.6321527361869812,
0.11774448305368423,
-0.16338296234607697,
0.023380978032946587,
-0.18738563358783722,
-0.005405919160693884,
0.40429049730300903,
-0.07043146342039108,
0.09786263108253479,
0.14439918100833893,
0.37898334860801697,
0.35322242975234985,
-0.01141601987183094,
0.021593693643808365,
-0.2928696572780609,
-0.0741366520524025,
0.09634610265493393,
0.8004986047744751,
0.1237497329711914,
-0.11629674583673477,
0.34065157175064087,
0.1436724066734314,
-0.21669815480709076,
0.5199922323226929,
-0.14798764884471893,
-0.015721386298537254,
-0.035081926733255386,
0.7006475925445557,
0.05409131199121475,
0.1681731939315796,
-0.20486710965633392,
0.12548670172691345,
-0.34518304467201233,
-0.4681113064289093,
0.02209547907114029,
0.13300707936286926,
0.04374292865395546,
-0.018366258591413498,
0.05753875523805618,
-0.04709766432642937,
0.5547435879707336,
0.2790664732456207,
0.018334604799747467,
-0.4084366261959076,
0.010895995423197746,
-0.6790780425071716,
0.2003028839826584,
-0.3235700726509094,
0.19870613515377045,
-0.008651872165501118,
0.32249027490615845,
0.03900900110602379,
0.405305951833725,
0.09740176796913147,
-0.12429556995630264,
-0.1956338882446289,
-0.039381079375743866,
-0.222172349691391,
-0.010410808026790619,
0.27492228150367737,
-0.14896611869335175,
-0.07784523814916611,
-0.23556922376155853,
0.07266613095998764,
0.033634476363658905,
0.0702485740184784,
-0.042269591242074966,
-0.2567170262336731,
-0.029331320896744728,
0.2860664427280426,
0.1323135942220688,
0.07552984356880188,
0.6710899472236633,
0.04725067690014839,
-0.11629223078489304,
-0.4180583357810974,
-0.2712436616420746,
0.003296374110504985,
0.12239380180835724,
-0.05068355053663254,
0.5432872772216797,
-0.03294701874256134,
-0.35038378834724426,
-0.18068400025367737,
0.29769888520240784,
-0.2001117765903473,
-0.5811735987663269,
-0.13009536266326904,
0.051218513399362564,
-0.06861267983913422,
0.20988458395004272,
-0.2360984981060028,
0.05550302565097809,
0.17037515342235565,
0.1922391653060913,
-0.09839396178722382,
-0.27200204133987427,
0.6404879689216614,
-0.1993485987186432,
-0.058099567890167236,
0.02152407541871071,
0.1502724140882492,
-0.044108256697654724,
-0.1477537751197815,
-0.504607081413269,
0.18363888561725616,
0.200816348195076,
0.04201079159975052,
-0.10029833763837814,
0.13920511305332184,
-0.3728255331516266,
0.2734105587005615,
-0.09023413062095642,
0.21148830652236938,
0.09140492975711823,
-0.18394865095615387,
-0.22373038530349731,
-0.1556934267282486
] |
https://github.com/huggingface/datasets/issues/1856 | load_dataset("amazon_polarity") NonMatchingChecksumError | Same issue today with "big_patent", though the symptoms are slightly different.
When running
```py
from datasets import load_dataset
load_dataset("big_patent", split="validation")
```
I get the following
`FileNotFoundError: Local file \huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist`
I had to look into `6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5` (which is a file instead of a folder) and got the following:
`<!DOCTYPE html><html><head><title>Google Drive - Quota exceeded</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><link href=/static/doclist/client/css/4033072956-untrustedcontent.css rel="stylesheet" nonce="JV0t61Smks2TEKdFCGAUFA"><link rel="icon" href="//ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"/><style nonce="JV0t61Smks2TEKdFCGAUFA">#gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}
</style><script nonce="iNUHigT+ENVQ3UZrLkFtRw"></script></head><body><div id=gbar><nobr><a target=_blank class=gb1 href="https://www.google.fr/webhp?tab=ow">Search</a> <a target=_blank class=gb1 href="http://www.google.fr/imghp?hl=en&tab=oi">Images</a> <a target=_blank class=gb1 href="https://maps.google.fr/maps?hl=en&tab=ol">Maps</a> <a target=_blank class=gb1 href="https://play.google.com/?hl=en&tab=o8">Play</a> <a target=_blank class=gb1 href="https://www.youtube.com/?gl=FR&tab=o1">YouTube</a> <a target=_blank class=gb1 href="https://news.google.com/?tab=on">News</a> <a target=_blank class=gb1 href="https://mail.google.com/mail/?tab=om">Gmail</a> <b class=gb1>Drive</b> <a target=_blank class=gb1 style="text-decoration:none" href="https://www.google.fr/intl/en/about/products?tab=oh"><u>More</u> »</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a target="_self" href="/settings?hl=en_US" class=gb4>Settings</a> | <a target=_blank href="//support.google.com/drive/?p=web_home&hl=en_US" class=gb4>Help</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://drive.google.com/uc%3Fexport%3Ddownload%26id%3D1J3mucMFTWrgAYa3LuBZoLRR3CzzYD3fa&service=writely&ec=GAZAMQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div class="uc-main"><div id="uc-text"><p class="uc-error-caption">Sorry, you can't view or download this file at this time.</p><p class="uc-error-subcaption">Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.</p></div></div><div class="uc-footer"><hr class="uc-footer-divider">© 2021 Google - <a class="goog-link" href="//support.google.com/drive/?p=web_home">Help</a> - <a class="goog-link" href="//support.google.com/drive/bin/answer.py?hl=en_US&answer=2450387">Privacy & Terms</a></div></body></html>` | Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
``` | 230 | load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError.
To reproduce:
```
load_dataset("amazon_polarity")
```
This will give the following error:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-3-8559a03fe0f8> in <module>()
----> 1 dataset = load_dataset("amazon_polarity")
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download']
```
Same issue today with "big_patent", though the symptoms are slightly different.
When running
```py
from datasets import load_dataset
load_dataset("big_patent", split="validation")
```
I get the following
`FileNotFoundError: Local file \huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist`
I had to look into `6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5` (which is a file instead of a folder) and got the following:
`<!DOCTYPE html><html><head><title>Google Drive - Quota exceeded</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><link href=/static/doclist/client/css/4033072956-untrustedcontent.css rel="stylesheet" nonce="JV0t61Smks2TEKdFCGAUFA"><link rel="icon" href="//ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"/><style nonce="JV0t61Smks2TEKdFCGAUFA">#gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}
</style><script nonce="iNUHigT+ENVQ3UZrLkFtRw"></script></head><body><div id=gbar><nobr><a target=_blank class=gb1 href="https://www.google.fr/webhp?tab=ow">Search</a> <a target=_blank class=gb1 href="http://www.google.fr/imghp?hl=en&tab=oi">Images</a> <a target=_blank class=gb1 href="https://maps.google.fr/maps?hl=en&tab=ol">Maps</a> <a target=_blank class=gb1 href="https://play.google.com/?hl=en&tab=o8">Play</a> <a target=_blank class=gb1 href="https://www.youtube.com/?gl=FR&tab=o1">YouTube</a> <a target=_blank class=gb1 href="https://news.google.com/?tab=on">News</a> <a target=_blank class=gb1 href="https://mail.google.com/mail/?tab=om">Gmail</a> <b class=gb1>Drive</b> <a target=_blank class=gb1 style="text-decoration:none" href="https://www.google.fr/intl/en/about/products?tab=oh"><u>More</u> »</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a target="_self" href="/settings?hl=en_US" class=gb4>Settings</a> | <a target=_blank href="//support.google.com/drive/?p=web_home&hl=en_US" class=gb4>Help</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://drive.google.com/uc%3Fexport%3Ddownload%26id%3D1J3mucMFTWrgAYa3LuBZoLRR3CzzYD3fa&service=writely&ec=GAZAMQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div class="uc-main"><div id="uc-text"><p class="uc-error-caption">Sorry, you can't view or download this file at this time.</p><p class="uc-error-subcaption">Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.</p></div></div><div class="uc-footer"><hr class="uc-footer-divider">© 2021 Google - <a class="goog-link" href="//support.google.com/drive/?p=web_home">Help</a> - <a class="goog-link" href="//support.google.com/drive/bin/answer.py?hl=en_US&answer=2450387">Privacy & Terms</a></div></body></html>` | [
-0.19774773716926575,
0.16995744407176971,
-0.051092568784952164,
0.2398211508989334,
0.14944009482860565,
-0.05001041293144226,
0.2648402750492096,
0.22645094990730286,
0.3186415433883667,
0.06029510498046875,
-0.062127187848091125,
0.007255561649799347,
-0.004848541226238012,
-0.13671769201755524,
-0.207506462931633,
0.35183054208755493,
0.13856536149978638,
-0.01695334166288376,
-0.225968599319458,
0.019292229786515236,
-0.24702614545822144,
0.2507210969924927,
-0.08148405700922012,
-0.1623283177614212,
-0.08144573122262955,
0.24533963203430176,
0.18591994047164917,
0.11965138465166092,
-0.0924425721168518,
-0.43328309059143066,
0.35416242480278015,
0.12079507857561111,
0.05541669949889183,
0.36158087849617004,
-0.00012471100490074605,
0.1088825911283493,
0.38872024416923523,
0.05794370919466019,
-0.2862358093261719,
-0.17275510728359222,
-0.44701117277145386,
-0.3646291196346283,
-0.03329494222998619,
0.0008808948332443833,
0.18492154777050018,
0.07026001065969467,
0.06946100294589996,
-0.06314818561077118,
0.005541618447750807,
0.23876287043094635,
0.14213518798351288,
0.4269421398639679,
0.23958782851696014,
0.11778587847948074,
0.26586854457855225,
0.2129858285188675,
-0.09012371301651001,
0.26914286613464355,
0.21039564907550812,
-0.21427437663078308,
-0.25081175565719604,
0.11914185434579849,
-0.18595218658447266,
0.4146885275840759,
0.10368179529905319,
0.011696437373757362,
0.2535800337791443,
-0.1878894716501236,
0.23648905754089355,
0.5302155613899231,
0.3473127484321594,
-0.08484141528606415,
-0.45748382806777954,
-0.16866101324558258,
-0.1927177608013153,
-0.3431212604045868,
0.3405180275440216,
0.2637239694595337,
-0.08643695712089539,
-0.1382092386484146,
-0.35545971989631653,
0.13517239689826965,
-0.08915866166353226,
0.24016258120536804,
-0.09994093328714371,
0.15850421786308289,
0.10897465795278549,
0.05111071839928627,
0.08961446583271027,
-0.2831465005874634,
0.47396743297576904,
-0.4253409504890442,
-0.01520597841590643,
0.1840304434299469,
-0.5253771543502808,
0.053872279822826385,
0.01913147047162056,
0.5155975818634033,
0.3433680832386017,
0.4453735053539276,
0.16382113099098206,
0.15424694120883942,
-0.11320868134498596,
0.17500005662441254,
0.10057792067527771,
0.16485773026943207,
-0.12466759234666824,
0.28379732370376587,
0.33444952964782715,
0.23281821608543396,
0.06633272767066956,
0.1549249291419983,
-0.056504033505916595,
-0.27418121695518494,
0.5267844200134277,
-0.11085257679224014,
0.3137880563735962,
-0.5724890828132629,
-0.4306187331676483,
0.3364913761615753,
-0.1928466260433197,
-0.028217332437634468,
0.06756696105003357,
0.2280798852443695,
-0.23874531686306,
0.3099792003631592,
-0.06434756517410278,
0.00048068331670947373,
-0.1664959341287613,
0.050248172134160995,
-0.20335674285888672,
-0.018749792128801346,
-0.08107300102710724,
0.2882339656352997,
0.3058468699455261,
-0.029948608949780464,
0.3222575783729553,
-0.014861823059618473,
0.2578919529914856,
-0.09378150850534439,
0.27369073033332825,
-0.14260947704315186,
0.009733057580888271,
0.42591148614883423,
-0.2763504385948181,
0.03172670677304268,
0.08268147706985474,
0.059914976358413696,
-0.14994950592517853,
0.18885569274425507,
-0.12199627608060837,
-0.103756844997406,
0.03411172702908516,
0.08559850603342056,
-0.7176015377044678,
-0.19093352556228638,
0.023606546223163605,
-0.43702247738838196,
0.23197607696056366,
-0.46604281663894653,
-0.04554981738328934,
-0.5799204707145691,
0.025052083656191826,
-0.14464245736598969,
0.15258756279945374,
0.3106122612953186,
-0.15751208364963531,
-0.11120457947254181,
-0.1945008784532547,
-0.04211924225091934,
0.3214517831802368,
0.3376629650592804,
-0.09742219746112823,
0.024970684200525284,
-0.26040738821029663,
-0.15382929146289825,
0.018292507156729698,
-0.21522903442382812,
-0.4789545238018036,
0.09745316952466965,
-0.1639356017112732,
0.5817306637763977,
0.1618591696023941,
0.16498084366321564,
-0.21306484937667847,
0.050692975521087646,
0.2002902626991272,
0.0676921084523201,
-0.012575680390000343,
0.16301919519901276,
-0.23480933904647827,
-0.19295848906040192,
0.3607846200466156,
0.23277825117111206,
0.23136019706726074,
-0.024612847715616226,
0.09428399056196213,
-0.04694212228059769,
0.2663869261741638,
-0.029554329812526703,
-0.12640520930290222,
0.1404908299446106,
0.2977232336997986,
-0.05658058077096939,
-0.015216892585158348,
-0.03633636608719826,
-0.4510761797428131,
0.2887571454048157,
-0.1545192450284958,
0.023689357563853264,
-0.10396046191453934,
0.10782173275947571,
-0.1292864978313446,
-0.23087845742702484,
-0.2409706860780716,
-0.09346410632133484,
-0.032929398119449615,
0.4628790318965912,
0.1729547530412674,
0.0034064105711877346,
0.02806028723716736,
0.24539683759212494,
-0.26407530903816223,
0.10126902908086777,
-0.5871549248695374,
0.2537437379360199,
0.10945501923561096,
0.09824616461992264,
0.03883257880806923,
0.08060205727815628,
0.06886572390794754,
-0.04026947543025017,
-0.04837454482913017,
0.33879661560058594,
0.21071738004684448,
0.1517690271139145,
-0.0045258356258273125,
0.5949782729148865,
-0.05148893594741821,
-0.04011218249797821,
-0.06819949299097061,
0.407559871673584,
0.16744594275951385,
-0.12227220088243484,
-0.2599923014640808,
0.6478689908981323,
-0.14875464141368866,
0.4013354480266571,
-0.02442297153174877,
-0.02539326623082161,
0.25951293110847473,
-0.14132726192474365,
-0.41564249992370605,
-0.06062747910618782,
0.49047473073005676,
-0.058750253170728683,
-0.11783004552125931,
0.09458515048027039,
-0.20395135879516602,
-0.15348748862743378,
0.2384009212255478,
-0.18651776015758514,
-0.003563615493476391,
0.025902805849909782,
-0.11448641866445541,
-0.07292595505714417,
0.11158093810081482,
0.6173872947692871,
0.6931012272834778,
0.09067575633525848,
-0.1532771736383438,
-0.0719936415553093,
-0.2084602564573288,
-0.13191452622413635,
0.0589388906955719,
0.16594456136226654,
-0.03449387848377228,
0.48404985666275024,
0.26092442870140076,
-0.17415286600589752,
-0.45428329706192017,
-0.2900518476963043,
0.09695208817720413,
0.16411103308200836,
-0.4628486633300781,
0.08096060156822205,
-0.30646610260009766,
0.1440185308456421,
-0.4473997950553894,
0.008925349451601505,
-0.30479782819747925,
-0.4628068208694458,
-0.16764502227306366,
0.5472719073295593,
-0.01570659503340721,
0.20099900662899017,
-0.6645439267158508,
0.16471421718597412,
-0.059483543038368225,
-0.46753427386283875,
0.06937225908041,
-0.10887733846902847,
-0.014326456934213638,
-0.04951956495642662,
0.37604111433029175,
-0.08424593508243561,
0.3908679783344269,
-0.1910768747329712,
-0.01815067045390606,
-0.5628095865249634,
-0.4042612612247467,
-0.03154740855097771,
-0.0961565226316452,
-0.0866461992263794,
0.14876753091812134,
0.06610573083162308,
0.20450818538665771,
-0.10822979360818863,
0.12198945879936218,
0.0034571229480206966,
-0.25153109431266785,
0.19216614961624146,
-0.13921406865119934,
-0.08676651865243912,
0.1303485780954361,
-0.15731792151927948,
-0.055560722947120667,
-0.2416151911020279,
0.12640057504177094,
0.22307468950748444,
0.042624130845069885,
0.08445578813552856,
-0.034071095287799835,
0.13429729640483856,
-0.18463099002838135,
0.2868456542491913,
-0.21104243397712708,
-0.4735351502895355,
0.49392223358154297,
0.013770388439297676,
-0.20863227546215057,
-0.1078977957367897,
0.01147993840277195,
0.20314250886440277,
0.3830663561820984,
-0.5122942328453064,
-0.050041019916534424,
-0.38212689757347107,
-0.01228545792400837,
0.14951744675636292,
-0.03816736862063408,
0.2434108704328537,
0.07763399928808212,
0.0006715281051583588,
-0.0634189322590828,
-0.3752560317516327,
0.011935886926949024,
-0.051598384976387024,
0.555439293384552,
-0.16580830514431,
0.13079798221588135,
-0.21956448256969452,
0.5205672383308411,
0.020453544333577156,
-0.17738880217075348,
-0.015097475610673428,
0.12093262374401093,
0.45799607038497925,
-0.08203592896461487,
-0.23750929534435272,
-0.013643941842019558,
-0.09285587072372437,
0.03101160190999508,
0.01677316427230835,
-0.045957453548908234,
-0.05460771918296814,
-0.02330545149743557,
0.1757572591304779,
-0.1513456553220749,
-0.19527460634708405,
0.07363327592611313,
-0.20625384151935577,
0.26662835478782654,
0.14918768405914307,
0.0829501524567604,
-0.27367886900901794,
-0.4601069390773773,
-0.0883166566491127,
0.0990174263715744,
0.013199356384575367,
-0.11417362838983536,
-0.3601975739002228,
0.002856435487046838,
-0.08659340441226959,
0.3694242238998413,
0.06774333864450455,
0.5374170541763306,
0.003499900922179222,
-0.4062409996986389,
-0.027481094002723694,
-0.198094442486763,
0.1366260051727295,
0.04133351147174835,
0.1518659144639969,
0.0760895237326622,
-0.2618226408958435,
-0.26187145709991455,
-0.3011714518070221,
-0.14559327065944672,
0.19725394248962402,
0.010223835706710815,
0.42639607191085815,
-0.31119054555892944,
0.009013079106807709,
0.0770426094532013,
0.5044949054718018,
-0.17369253933429718,
-0.16611672937870026,
-0.3287205100059509,
-0.1103905737400055,
-0.20562991499900818,
-0.06700028479099274,
-0.14884114265441895,
0.18985360860824585,
-0.2760045528411865,
0.28807419538497925,
-0.11593233793973923,
-0.04205215349793434,
0.38818007707595825,
0.0811639055609703,
0.2963176667690277,
-0.08518508076667786,
0.3596171438694,
0.18657135963439941,
-0.09970235824584961,
0.2935772240161896,
0.7036967277526855,
-0.0759231448173523,
-0.44036632776260376,
0.13707493245601654,
-0.08124537765979767,
-0.2529207468032837,
0.3446386754512787,
0.042170509696006775,
-0.02072661742568016,
0.4141943156719208,
-0.06938517838716507,
-0.15437833964824677,
0.05176231265068054,
0.2886781692504883,
0.11547531187534332,
-0.3386644124984741,
-0.23887117207050323,
0.14380529522895813,
0.06972363591194153,
-0.15266616642475128,
0.46296003460884094,
0.0509202741086483,
-0.10791579633951187,
0.1011272594332695,
0.12036363780498505,
0.8393627405166626,
0.11404422670602798,
0.37781956791877747,
0.026708191260695457,
-0.039132677018642426,
0.29217657446861267,
-0.013615247793495655,
0.20006276667118073,
-0.49181926250457764,
-0.23180022835731506,
-0.06688195466995239,
-0.320964515209198,
0.19609110057353973,
-0.10471703112125397,
0.27094751596450806,
0.4352647662162781,
0.21989712119102478,
0.2370733618736267,
0.13467775285243988,
0.09945035725831985,
-0.12655188143253326,
0.00807628408074379,
0.05436859652400017,
0.09918447583913803,
-0.19567641615867615,
0.40315455198287964,
-0.04686547443270683,
0.09235356003046036,
-0.09315821528434753,
-0.23608924448490143,
-0.45144563913345337,
0.1142919585108757,
0.02594262920320034,
0.41911792755126953,
0.3971007764339447,
-0.059575293213129044,
-0.2479572892189026,
0.14148998260498047,
0.16917456686496735,
0.04258565977215767,
-0.27663782238960266,
0.17846941947937012,
0.46716922521591187,
0.0909845307469368,
0.028695689514279366,
-0.217768132686615,
0.32023078203201294,
0.019105086103081703,
-0.11458766460418701,
-0.004473383072763681,
-0.00870013888925314,
-0.42151522636413574,
-0.2650596797466278,
-0.0038218568079173565,
-0.01793164387345314,
-0.26585519313812256,
-0.13915808498859406,
-0.1247057169675827,
-0.012354770675301552,
-0.24723264575004578,
0.08719471096992493,
0.37069642543792725,
-0.12432525306940079,
0.2302156537771225,
0.15208140015602112,
-0.35444948077201843,
-0.20478729903697968,
0.5908538103103638,
-0.122772715985775,
-0.2588188350200653,
0.5218561887741089,
-0.11360250413417816,
-0.13347795605659485,
-0.14093852043151855,
0.22751961648464203,
0.09631097316741943,
-0.4837854206562042,
0.05009199306368828,
-0.20602408051490784,
0.026119831949472427,
0.007829902693629265,
0.2911915183067322,
0.2244146466255188,
-0.017045021057128906,
0.09978757798671722,
-0.5264371037483215,
-0.0796760767698288,
0.09519278258085251,
0.057517554610967636,
0.4152061343193054,
-0.27211007475852966,
-0.23814474046230316,
-0.35413074493408203,
-0.2754940688610077,
-0.2271353304386139,
0.09206853806972504,
-0.20975978672504425,
-0.039622675627470016,
-0.018889714032411575,
-0.034364402294158936,
0.24262893199920654,
-0.0293569453060627,
0.1448667198419571,
0.04599957913160324,
-0.12306219339370728,
-0.12126538157463074,
-0.2768173813819885,
0.20218956470489502,
0.11572721600532532,
-0.09818242490291595,
0.06931784749031067,
-0.09418733417987823,
0.11005400866270065,
-0.11274519562721252,
0.11771173775196075,
0.29052990674972534,
-0.17019133269786835,
-0.05985873565077782,
0.01586884818971157,
-0.0449264831840992,
0.14175693690776825,
-0.008064004592597485,
-0.36330312490463257,
-0.09027813374996185,
0.37482208013534546,
0.07045931369066238,
0.024340305477380753,
0.027413083240389824,
0.05990951880812645,
0.13173316419124603,
-0.03100782260298729,
-0.13022159039974213,
0.4147026538848877,
-0.32551664113998413,
-0.1937367171049118,
0.07433603703975677,
0.27901580929756165,
0.616660475730896,
-0.3277212381362915,
-0.10521414875984192,
0.2799760103225708,
0.17889615893363953,
-0.2058529406785965,
-0.14309555292129517,
0.197278693318367,
-0.01526399701833725,
0.10522705316543579,
0.15600523352622986,
-0.0999644473195076,
-0.267452597618103,
0.3703504204750061,
0.1576053649187088,
0.2714170217514038,
-0.49415233731269836,
0.19630509614944458,
0.26573365926742554,
-0.16137683391571045,
-0.010738208889961243,
0.2556590735912323,
-0.09219679236412048,
-0.06561283767223358,
0.005615304224193096,
-0.053290873765945435,
0.32977983355522156,
-0.434121310710907,
0.0854649543762207,
-0.18958966434001923,
-0.4409664571285248,
0.2892753481864929,
0.07980938255786896,
-0.03378293290734291,
0.2495213747024536,
0.141672283411026,
0.3144388198852539,
-0.2166258543729782,
0.3021007478237152,
-0.5998127460479736,
-0.01769348792731762,
-0.030402973294258118,
-0.18134160339832306,
-0.1573517918586731,
-0.3583909869194031,
0.0924844741821289,
0.24133507907390594,
-0.009432121179997921,
0.025511834770441055,
0.33371925354003906,
0.15918372571468353,
-0.2511439621448517,
-0.5507918000221252,
-0.08350806683301926,
-0.05674949288368225,
0.03599243238568306,
-0.17819011211395264,
0.033706799149513245,
0.41500964760780334,
-0.10863208770751953,
0.14954817295074463,
0.21842515468597412,
0.5513752698898315,
0.3730781078338623,
0.05042934790253639,
-0.1465502828359604,
-0.22408828139305115,
-0.017787443473935127,
0.04497220367193222,
0.7161062955856323,
-0.01401061937212944,
-0.057387784123420715,
0.3180461525917053,
0.08893629163503647,
-0.1314573585987091,
0.38085684180259705,
-0.29007068276405334,
-0.17175151407718658,
-0.08608123660087585,
0.6210691928863525,
0.009714302606880665,
0.16109250485897064,
-0.24362213909626007,
0.18752604722976685,
-0.3157784938812256,
-0.3980681002140045,
0.13995510339736938,
0.19684617221355438,
0.04639929160475731,
0.08362255245447159,
0.022741004824638367,
-0.15172003209590912,
0.5273542404174805,
0.3188103139400482,
0.0647687092423439,
-0.4174140393733978,
0.0885213166475296,
-0.7221713662147522,
0.3024904131889343,
-0.3389051854610443,
0.15215347707271576,
-0.09381042420864105,
0.21136119961738586,
0.08346830308437347,
0.20103873312473297,
0.04665436968207359,
-0.22461116313934326,
-0.12089630216360092,
-0.12126103043556213,
-0.24254603683948517,
-0.09150761365890503,
0.3232159912586212,
-0.21684181690216064,
-0.05142556503415108,
-0.3011358678340912,
0.13131965696811676,
-0.013224403373897076,
0.07395686954259872,
0.012301957234740257,
-0.028963381424546242,
-0.17690280079841614,
0.24764785170555115,
0.11431224644184113,
0.17318184673786163,
0.7652645707130432,
0.0657588541507721,
-0.2970636487007141,
-0.46816006302833557,
-0.285873681306839,
-0.09809461981058121,
0.2642613351345062,
-0.1359902024269104,
0.6043869853019714,
-0.005483848974108696,
-0.32125765085220337,
-0.27437490224838257,
0.3681736886501312,
-0.15998798608779907,
-0.5791296362876892,
0.042579665780067444,
0.03648067265748978,
-0.11747092008590698,
0.23599369823932648,
-0.12782274186611176,
0.10467232763767242,
0.1012214720249176,
0.2595416307449341,
-0.16834528744220734,
-0.3132416605949402,
0.6432462334632874,
-0.38363614678382874,
-0.02906111069023609,
-0.013375270180404186,
0.21578679978847504,
-0.04617069661617279,
-0.07882843911647797,
-0.5784173607826233,
0.26468485593795776,
0.27598488330841064,
0.0526709221303463,
-0.2628397047519684,
0.10175121575593948,
-0.2769649922847748,
0.27393215894699097,
-0.031927440315485,
0.2957463264465332,
0.022110367193818092,
-0.3565129339694977,
-0.19946520030498505,
-0.03006371296942234
] |
https://github.com/huggingface/datasets/issues/1854 | Feature Request: Dataset.add_item | Hi @sshleifer.
I am not sure of understanding the need of the `add_item` approach...
By just reading your "Desired API" section, I would say you could (nearly) get it with a 1-column Dataset:
```python
data = {"input_ids": [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])]}
ds = Dataset.from_dict(data)
assert (ds["input_ids"][0] == np.array([4,4,2])).all()
``` | I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`.
Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries.
### Desired API
```python
import numpy as np
tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset:
"""FIXME"""
dataset = EmptyDataset()
for t in tokenized: dataset.append(t)
return dataset
ds = build_dataset_from_tokenized(tokenized)
assert (ds[0] == np.array([4,4,2])).all()
```
### What I tried
grep, google for "add one entry at a time", "datasets.append"
### Current Code
This code achieves the same result but doesn't fit into the `add_item` abstraction.
```python
dataset = load_dataset('text', data_files={'train': 'train.txt'})
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096)
def tokenize_function(examples):
ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids']
return {'input_ids': [x[1:] for x in ids]}
ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache)
print(ds['train'][0]) => np array
```
Thanks in advance! | 48 | Feature Request: Dataset.add_item
I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`.
Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries.
### Desired API
```python
import numpy as np
tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset:
"""FIXME"""
dataset = EmptyDataset()
for t in tokenized: dataset.append(t)
return dataset
ds = build_dataset_from_tokenized(tokenized)
assert (ds[0] == np.array([4,4,2])).all()
```
### What I tried
grep, google for "add one entry at a time", "datasets.append"
### Current Code
This code achieves the same result but doesn't fit into the `add_item` abstraction.
```python
dataset = load_dataset('text', data_files={'train': 'train.txt'})
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096)
def tokenize_function(examples):
ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids']
return {'input_ids': [x[1:] for x in ids]}
ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache)
print(ds['train'][0]) => np array
```
Thanks in advance!
Hi @sshleifer.
I am not sure of understanding the need of the `add_item` approach...
By just reading your "Desired API" section, I would say you could (nearly) get it with a 1-column Dataset:
```python
data = {"input_ids": [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])]}
ds = Dataset.from_dict(data)
assert (ds["input_ids"][0] == np.array([4,4,2])).all()
``` | [
-0.264629602432251,
0.16031573712825775,
-0.04589061811566353,
0.1386154443025589,
-0.025280846282839775,
0.12016993761062622,
0.15693829953670502,
0.1071404293179512,
0.05867019668221474,
0.04408647119998932,
0.10954906791448593,
0.5823285579681396,
-0.15739132463932037,
0.1380067616701126,
0.44512757658958435,
-0.13564705848693848,
0.10213273018598557,
0.20480725169181824,
-0.1752965748310089,
0.07040908932685852,
-0.2645281255245209,
-0.09055250138044357,
-0.15192125737667084,
-0.17901986837387085,
-0.05793258920311928,
-0.06132209673523903,
-0.41286298632621765,
-0.30235758423805237,
-0.2655976712703705,
-0.792965829372406,
-0.012385664507746696,
-0.000912095420062542,
-0.0839306190609932,
0.262416273355484,
-0.00012833451910410076,
0.011733503080904484,
0.16709822416305542,
-0.053995802998542786,
-0.5640702843666077,
-0.045696601271629333,
-0.15539704263210297,
-0.23874807357788086,
0.1454959362745285,
-0.3138716518878937,
0.22605712711811066,
-0.7180807590484619,
0.3229590058326721,
-0.1545698344707489,
0.08908480405807495,
0.12501373887062073,
-0.0003757276863325387,
0.4948112368583679,
0.19910478591918945,
-0.3639473021030426,
0.26215654611587524,
-0.045342087745666504,
-0.13952836394309998,
-0.1721627116203308,
0.37630999088287354,
-0.20688188076019287,
0.08242138475179672,
-0.1125960648059845,
0.26589298248291016,
-0.0915566086769104,
0.4066391885280609,
0.12621363997459412,
-0.012745629996061325,
-0.1426651030778885,
-0.1565273553133011,
0.290387362241745,
0.22641600668430328,
-0.4190441370010376,
-0.6362018585205078,
-0.4910080134868622,
0.30177852511405945,
-0.03996877744793892,
-0.13481281697750092,
0.060155291110277176,
-0.07117359340190887,
-0.07603807002305984,
-0.06980986893177032,
-0.37702059745788574,
-0.11191236972808838,
0.23817099630832672,
0.07179460674524307,
0.44282305240631104,
0.14254288375377655,
0.16436076164245605,
0.1441980004310608,
-0.12719404697418213,
-0.2345663160085678,
0.015186508186161518,
-0.12329388409852982,
0.3333291709423065,
-0.10311085730791092,
-0.11664585769176483,
0.10923080891370773,
-0.04701317846775055,
0.4755120277404785,
-0.06129996478557587,
0.17372733354568481,
0.11571221053600311,
-0.3675784766674042,
0.08663423359394073,
0.17147664725780487,
-0.10088074207305908,
0.2137439250946045,
-0.2119159698486328,
-0.31287357211112976,
0.07727570086717606,
0.4092108905315399,
0.062039509415626526,
-0.18246060609817505,
0.10737372189760208,
-0.2618187963962555,
-0.3582350015640259,
-0.06813853979110718,
0.40377917885780334,
-0.12076177448034286,
-0.027362585067749023,
-0.010700106620788574,
0.0841953381896019,
-0.04728778079152107,
0.17367775738239288,
0.17173120379447937,
-0.3679119944572449,
-0.23938311636447906,
0.20148047804832458,
0.12630784511566162,
-0.010278943926095963,
0.08163461834192276,
0.21795883774757385,
-0.1080404743552208,
0.17659525573253632,
0.10082332044839859,
-0.0010512808803468943,
-0.014449643902480602,
-0.0649891272187233,
0.06919379532337189,
0.07838848978281021,
-0.011410471983253956,
-0.18047566711902618,
0.2521997392177582,
0.010660374537110329,
0.05325589329004288,
-0.045652393251657486,
-0.10148540139198303,
-0.44049206376075745,
-0.47814926505088806,
0.21988125145435333,
-0.10788790136575699,
-0.18129047751426697,
-0.2244117259979248,
-0.06419800221920013,
0.004239278379827738,
-0.16428972780704498,
-0.19526760280132294,
0.5241125226020813,
0.3831298053264618,
-0.23584052920341492,
0.1302088350057602,
-0.1283583790063858,
-0.5635908246040344,
-0.17915163934230804,
0.19442667067050934,
0.3399141728878021,
-0.4468759000301361,
-0.3274410367012024,
-0.1016853004693985,
-0.015818314626812935,
-0.4132903218269348,
0.129503071308136,
-0.09444640576839447,
0.2800899147987366,
-0.43382495641708374,
0.40841299295425415,
0.3091627359390259,
-0.16581690311431885,
-0.22073675692081451,
0.1308983415365219,
-0.17825369536876678,
0.037655748426914215,
0.08423420041799545,
0.39586493372917175,
0.2953100800514221,
0.06001996621489525,
0.45100167393684387,
0.25852885842323303,
-0.07952145487070084,
-0.08993522822856903,
0.07368911057710648,
-0.4146662950515747,
0.30074501037597656,
-0.01119351014494896,
-0.12632036209106445,
-0.0905316025018692,
0.02795794978737831,
-0.5407934784889221,
0.16449198126792908,
-0.10661730170249939,
0.33689865469932556,
-0.03835663944482803,
0.4019220471382141,
-0.007630700711160898,
-0.10582403838634491,
-0.5203374624252319,
-0.36272814869880676,
0.13841192424297333,
-0.0773245170712471,
0.1222197562456131,
-0.11240386217832565,
-0.43580949306488037,
-0.14829599857330322,
0.4267142117023468,
-0.13473910093307495,
-0.021468814462423325,
-0.06915103644132614,
0.05720730125904083,
-0.009346416220068932,
-0.12008322030305862,
-0.4359643757343292,
0.14287817478179932,
0.22834143042564392,
0.30765417218208313,
-0.4393090605735779,
-0.049837626516819,
0.2686481475830078,
-0.18490685522556305,
-0.12170199304819107,
0.17337198555469513,
-0.14107543230056763,
-0.14435340464115143,
0.20837141573429108,
0.28238505125045776,
-0.08674094080924988,
-0.2701042592525482,
0.12039095908403397,
0.2604828178882599,
0.2900446057319641,
0.3060084879398346,
-0.10014399886131287,
-0.20570605993270874,
0.3140791356563568,
-0.25328296422958374,
-0.22917066514492035,
0.5499862432479858,
0.04193060100078583,
0.4261952340602875,
0.13705743849277496,
0.03928472101688385,
0.02019556239247322,
0.25116193294525146,
-0.2537921667098999,
-0.25780314207077026,
-0.04990612342953682,
0.14885665476322174,
0.21238495409488678,
-0.11960567533969879,
-0.10451830178499222,
0.16266587376594543,
0.14226263761520386,
0.1596190482378006,
0.17707408964633942,
0.1443222016096115,
-0.21447335183620453,
0.062301475554704666,
0.06796956807374954,
0.014987176284193993,
0.45754340291023254,
0.05440144240856171,
0.1145167276263237,
0.06591577082872391,
0.11104559153318405,
0.056890565901994705,
0.058982957154512405,
0.031461525708436966,
-0.11707420647144318,
0.03847290948033333,
0.5389946699142456,
0.06154679134488106,
-0.021839162334799767,
-0.13882115483283997,
0.11369729787111282,
-0.04325581341981888,
-0.1218186467885971,
0.039755940437316895,
0.044824909418821335,
0.07221527397632599,
-0.25302931666374207,
-0.37167736887931824,
-0.08491867780685425,
-0.08437677472829819,
0.26894116401672363,
0.03143112361431122,
0.015641525387763977,
0.3010812997817993,
0.13798753917217255,
0.7158764004707336,
0.10474400967359543,
-0.47317323088645935,
-0.08592276275157928,
0.006562171038240194,
0.21826109290122986,
-0.10107164084911346,
-0.10317320376634598,
0.3030090928077698,
0.4021121859550476,
0.08699042350053787,
-0.03165712580084801,
-0.3475196063518524,
-0.5039149522781372,
0.10952740907669067,
-0.051787324249744415,
0.43373143672943115,
0.3948708772659302,
-0.335601270198822,
-0.11234211921691895,
-0.2517050802707672,
0.18364831805229187,
0.03734773024916649,
-0.1394076645374298,
-0.18606454133987427,
-0.09768553823232651,
-0.2373921126127243,
-0.049655765295028687,
0.10303237289190292,
-0.20601606369018555,
-0.17669329047203064,
0.4733738899230957,
0.15361252427101135,
0.25191253423690796,
-0.22289307415485382,
0.09829558432102203,
0.033695172518491745,
-0.13969336450099945,
-0.12086665630340576,
0.07183166593313217,
-0.004220983944833279,
0.4730607569217682,
-0.36195674538612366,
-0.17627833783626556,
-0.16062316298484802,
-0.5109414458274841,
0.11148491501808167,
0.3774943947792053,
-0.28791725635528564,
-0.3993913531303406,
-0.261313259601593,
0.3807622790336609,
-0.09368492662906647,
0.27055636048316956,
0.49555718898773193,
0.004103290382772684,
0.1533956676721573,
0.057399965822696686,
-0.28794342279434204,
0.3740732967853546,
0.18566884100437164,
0.05989977344870567,
0.08098167181015015,
0.17045249044895172,
0.08677641302347183,
0.6634983420372009,
0.18454381823539734,
-0.10840774327516556,
0.14336346089839935,
-0.5918189883232117,
0.36275342106819153,
-0.2168654054403305,
-0.2220131903886795,
-0.17964677512645721,
-0.11066211014986038,
0.09413609653711319,
0.060779232531785965,
-0.026392783969640732,
0.1260295808315277,
0.07124596834182739,
0.3468840718269348,
0.054196733981370926,
-0.19858424365520477,
0.17935307323932648,
0.021064022555947304,
0.33733615279197693,
-0.01932469941675663,
-0.02240077033638954,
-0.3871431350708008,
0.01736484095454216,
-0.04099233075976372,
0.2764793038368225,
0.23895877599716187,
-0.17706914246082306,
-0.4978466033935547,
-0.14098744094371796,
-0.3073578178882599,
0.0694863572716713,
0.3090185225009918,
0.44739028811454773,
0.24807758629322052,
-0.15971817076206207,
0.04323470592498779,
-0.20205317437648773,
0.7236328125,
0.3253345489501953,
-0.4594324827194214,
0.008428258821368217,
0.09381786733865738,
-0.2563484013080597,
0.17329420149326324,
0.013920453377068043,
0.5422022342681885,
0.18147282302379608,
0.2524054944515228,
-0.454291433095932,
0.25500839948654175,
0.2051479071378708,
0.17938899993896484,
-0.18166573345661163,
-0.17783844470977783,
-0.11380825936794281,
-0.12891288101673126,
-0.23156343400478363,
0.1871419996023178,
0.1932210922241211,
0.22092831134796143,
0.46918755769729614,
-0.09896083176136017,
-0.40842205286026,
0.06687755882740021,
0.10205339640378952,
-0.033317022025585175,
0.004495684523135424,
0.14979767799377441,
0.5072351098060608,
-0.11103856563568115,
-0.207859069108963,
0.44003361463546753,
0.40423086285591125,
-0.13303832709789276,
-0.4836511015892029,
-0.16117578744888306,
-0.20422443747520447,
0.4172762632369995,
0.2799089252948761,
0.16675493121147156,
0.27386897802352905,
0.048915207386016846,
0.16796064376831055,
-0.23839925229549408,
0.2513350546360016,
0.09252839535474777,
-0.12772540748119354,
-0.35820138454437256,
-0.3206031620502472,
0.44010767340660095,
-0.05054309591650963,
-0.05108627304434776,
0.0931558609008789,
0.18601082265377045,
-0.31321585178375244,
0.3559415638446808,
-0.03830690681934357,
0.8532407879829407,
0.01401817612349987,
0.4227762520313263,
0.27811190485954285,
-0.03986094892024994,
0.31474393606185913,
-0.03836722671985626,
0.2110484391450882,
-0.4547419250011444,
-0.21354860067367554,
-0.03939863666892052,
-0.146322563290596,
0.16004043817520142,
0.20316147804260254,
-0.15104247629642487,
0.2056574821472168,
0.24870699644088745,
0.002485342090949416,
-0.11763009428977966,
0.2441384196281433,
-0.2815455198287964,
-0.49947798252105713,
-0.31872689723968506,
-0.07894223183393478,
0.1857926845550537,
-0.06793404370546341,
-0.11852794885635376,
-0.0023449936416000128,
-0.0017805423121899366,
-0.28009089827537537,
-0.3747289776802063,
-0.3991493582725525,
-0.3093169927597046,
-0.15894010663032532,
0.6127158999443054,
-0.26488855481147766,
0.2600618004798889,
-0.0347004197537899,
-0.03426285460591316,
0.17095999419689178,
0.11673951894044876,
0.08110843598842621,
-0.019356919452548027,
-0.13601668179035187,
-0.04074319079518318,
-0.3909027874469757,
0.17596077919006348,
0.24661673605442047,
0.01663109101355076,
0.27449458837509155,
-0.11718278378248215,
-0.2790035903453827,
-0.21064746379852295,
0.21838141977787018,
0.23843291401863098,
-0.29302623867988586,
-0.2510789632797241,
0.1993105113506317,
0.11795353889465332,
-0.2569964826107025,
-0.11513945460319519,
0.174787238240242,
-0.24996516108512878,
0.1552373468875885,
0.052532512694597244,
-0.03694681078195572,
-0.005872865207493305,
0.2975791096687317,
-0.18962937593460083,
-0.2781781852245331,
0.35393017530441284,
0.1428745687007904,
-0.0727735087275505,
-0.07928888499736786,
-0.0266165342181921,
0.43774423003196716,
-0.21364149451255798,
-0.07195749878883362,
0.054706934839487076,
-0.04837960749864578,
-0.2827552556991577,
0.07057482749223709,
0.07421214878559113,
0.18390345573425293,
-0.10512731969356537,
-0.29116833209991455,
-0.4044684171676636,
0.27638933062553406,
0.3002137541770935,
0.37218326330184937,
0.1848500818014145,
0.17024381458759308,
-0.25245627760887146,
0.4358139932155609,
-0.11690615117549896,
0.14791764318943024,
0.14597856998443604,
0.15027129650115967,
0.18546470999717712,
0.11600197851657867,
-0.08262118697166443,
0.12804998457431793,
-0.07828173786401749,
0.15506158769130707,
-0.1440821886062622,
0.015192638151347637,
-0.17475110292434692,
0.21273815631866455,
0.23315849900245667,
-0.01122654415667057,
-0.14788426458835602,
-0.11468401551246643,
-0.17620889842510223,
-0.39478394389152527,
0.3163354694843292,
-0.0946522131562233,
-0.27002033591270447,
-0.19961492717266083,
0.6224364042282104,
0.25772929191589355,
-0.09895074367523193,
0.5540857315063477,
0.2836504280567169,
0.47066450119018555,
0.18089620769023895,
0.2874777615070343,
-0.3524554967880249,
0.07644663006067276,
0.33858656883239746,
0.4616110622882843,
0.3684313893318176,
-0.04640793427824974,
0.040841229259967804,
-0.20603317022323608,
-0.008124502375721931,
0.14027950167655945,
0.22865021228790283,
0.5841596126556396,
-0.2424766719341278,
0.08344750851392746,
0.3389270305633545,
0.013256533071398735,
-0.18867386877536774,
0.009598327800631523,
0.28297334909439087,
-0.1192663162946701,
0.28851720690727234,
0.44387495517730713,
-0.14190638065338135,
0.1382751166820526,
-0.15664657950401306,
0.08617430180311203,
0.010040711611509323,
0.014658722095191479,
-0.15473538637161255,
-0.0930766761302948,
-0.035152509808540344,
-0.14315304160118103,
0.14801070094108582,
0.3850332796573639,
0.32572299242019653,
0.599268913269043,
-0.2377142608165741,
0.49899399280548096,
0.5984044075012207,
0.00660242885351181,
0.19620779156684875,
0.01953982003033161,
0.05399198830127716,
0.526033878326416,
0.6944860219955444,
0.11543536931276321,
0.3511894643306732,
0.41296854615211487,
-0.07078617811203003,
-0.07139242440462112,
0.0020068292506039143,
0.17996865510940552,
0.19092825055122375,
-0.3396002948284149,
0.12106736749410629,
-0.19975031912326813,
-0.2255670577287674,
-0.09369334578514099,
-0.04386270046234131,
-0.390854150056839,
0.055697761476039886,
-0.03286721557378769,
0.3594781756401062,
-0.482616662979126,
0.07417040318250656,
0.21901176869869232,
0.06761753559112549,
-0.306722491979599,
0.16837570071220398,
0.01932610385119915,
0.16121892631053925,
0.0985935777425766,
0.08855117112398148,
0.15398752689361572,
0.2236359417438507,
-0.041226912289857864,
0.3775158226490021,
-0.5520080327987671,
0.09237167239189148,
-0.06420978158712387,
-0.06269244104623795,
-0.012871207669377327,
-0.0502019040286541,
0.2981150448322296,
-0.07037226110696793,
0.027540378272533417,
0.16847053170204163,
0.24425935745239258,
-0.11067061126232147,
-0.5813177227973938,
-0.005478761158883572,
0.007751178927719593,
-0.2768871784210205,
-0.08205677568912506,
-0.014522030018270016,
-0.04413747787475586,
-0.06875941157341003,
0.29841727018356323,
-0.3923065960407257,
0.03525051102042198,
0.16577927768230438,
-0.014820453710854053,
-0.15874822437763214,
0.1636197566986084,
0.506517231464386,
0.29000124335289,
-0.07103007286787033,
-0.24688412249088287,
-0.5102571845054626,
-0.009848201647400856,
-0.11190424114465714,
-0.1957143098115921,
-0.055648211389780045,
0.11794853955507278,
0.026969918981194496,
0.20014117658138275,
0.1611221581697464,
-0.009064958430826664,
-0.03408857062458992,
0.3953382074832916,
-0.17830893397331238,
-0.046291448175907135,
-0.08578488230705261,
0.10226964950561523,
0.1350231170654297,
-0.26319175958633423,
-0.16529390215873718,
-0.07073836773633957,
-0.16213303804397583,
-0.10256887227296829,
-0.009249042719602585,
-0.05376095697283745,
-0.12468899041414261,
0.5808815360069275,
0.2099566012620926,
0.14341795444488525,
-0.10437186807394028,
-0.014057118445634842,
-0.21728067100048065,
-0.11253213882446289,
-0.33627673983573914,
0.6051656007766724,
0.028251104056835175,
0.06292751431465149,
-0.14583665132522583,
0.03556330129504204,
0.018791530281305313,
0.00468993466347456,
0.08922401070594788,
-0.15652397274971008,
-0.1970905065536499,
0.3591449558734894,
-0.39626598358154297,
0.11759534478187561,
-0.13634854555130005,
0.3045371472835541,
0.21002285182476044,
0.21699604392051697,
0.18470267951488495,
-0.09158094972372055,
0.23190370202064514,
-0.4541725218296051,
-0.3235701620578766,
-0.07796091586351395,
0.02189270220696926,
0.0010353513062000275,
-0.3787173628807068,
-0.5221461653709412,
-0.2875072956085205,
0.33966630697250366,
-0.011159748770296574,
-0.043744202703237534,
0.04622361436486244,
-0.18471673130989075,
-0.12373749166727066,
-0.476980596780777,
0.47858378291130066,
-0.019891897216439247,
-0.0834573432803154,
-0.09862789511680603,
-0.5801851749420166
] |
https://github.com/huggingface/datasets/issues/1854 | Feature Request: Dataset.add_item | Hi @sshleifer :)
We don't have methods like `Dataset.add_batch` or `Dataset.add_entry/add_item` yet.
But that's something we'll add pretty soon. Would an API that looks roughly like this help ? Do you have suggestions ?
```python
import numpy as np
from datasets import Dataset
tokenized = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
# API suggestion (not available yet)
d = Dataset()
for input_ids in tokenized:
d.add_item({"input_ids": input_ids})
print(d[0]["input_ids"])
# [4, 4, 2]
```
Currently you can define a dataset with what @albertvillanova suggest, or via a generator using dataset builders. It's also possible to [concatenate datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets). | I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`.
Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries.
### Desired API
```python
import numpy as np
tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset:
"""FIXME"""
dataset = EmptyDataset()
for t in tokenized: dataset.append(t)
return dataset
ds = build_dataset_from_tokenized(tokenized)
assert (ds[0] == np.array([4,4,2])).all()
```
### What I tried
grep, google for "add one entry at a time", "datasets.append"
### Current Code
This code achieves the same result but doesn't fit into the `add_item` abstraction.
```python
dataset = load_dataset('text', data_files={'train': 'train.txt'})
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096)
def tokenize_function(examples):
ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids']
return {'input_ids': [x[1:] for x in ids]}
ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache)
print(ds['train'][0]) => np array
```
Thanks in advance! | 92 | Feature Request: Dataset.add_item
I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`.
Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries.
### Desired API
```python
import numpy as np
tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset:
"""FIXME"""
dataset = EmptyDataset()
for t in tokenized: dataset.append(t)
return dataset
ds = build_dataset_from_tokenized(tokenized)
assert (ds[0] == np.array([4,4,2])).all()
```
### What I tried
grep, google for "add one entry at a time", "datasets.append"
### Current Code
This code achieves the same result but doesn't fit into the `add_item` abstraction.
```python
dataset = load_dataset('text', data_files={'train': 'train.txt'})
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096)
def tokenize_function(examples):
ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids']
return {'input_ids': [x[1:] for x in ids]}
ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache)
print(ds['train'][0]) => np array
```
Thanks in advance!
Hi @sshleifer :)
We don't have methods like `Dataset.add_batch` or `Dataset.add_entry/add_item` yet.
But that's something we'll add pretty soon. Would an API that looks roughly like this help ? Do you have suggestions ?
```python
import numpy as np
from datasets import Dataset
tokenized = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])
# API suggestion (not available yet)
d = Dataset()
for input_ids in tokenized:
d.add_item({"input_ids": input_ids})
print(d[0]["input_ids"])
# [4, 4, 2]
```
Currently you can define a dataset with what @albertvillanova suggest, or via a generator using dataset builders. It's also possible to [concatenate datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets). | [
-0.264629602432251,
0.16031573712825775,
-0.04589061811566353,
0.1386154443025589,
-0.025280846282839775,
0.12016993761062622,
0.15693829953670502,
0.1071404293179512,
0.05867019668221474,
0.04408647119998932,
0.10954906791448593,
0.5823285579681396,
-0.15739132463932037,
0.1380067616701126,
0.44512757658958435,
-0.13564705848693848,
0.10213273018598557,
0.20480725169181824,
-0.1752965748310089,
0.07040908932685852,
-0.2645281255245209,
-0.09055250138044357,
-0.15192125737667084,
-0.17901986837387085,
-0.05793258920311928,
-0.06132209673523903,
-0.41286298632621765,
-0.30235758423805237,
-0.2655976712703705,
-0.792965829372406,
-0.012385664507746696,
-0.000912095420062542,
-0.0839306190609932,
0.262416273355484,
-0.00012833451910410076,
0.011733503080904484,
0.16709822416305542,
-0.053995802998542786,
-0.5640702843666077,
-0.045696601271629333,
-0.15539704263210297,
-0.23874807357788086,
0.1454959362745285,
-0.3138716518878937,
0.22605712711811066,
-0.7180807590484619,
0.3229590058326721,
-0.1545698344707489,
0.08908480405807495,
0.12501373887062073,
-0.0003757276863325387,
0.4948112368583679,
0.19910478591918945,
-0.3639473021030426,
0.26215654611587524,
-0.045342087745666504,
-0.13952836394309998,
-0.1721627116203308,
0.37630999088287354,
-0.20688188076019287,
0.08242138475179672,
-0.1125960648059845,
0.26589298248291016,
-0.0915566086769104,
0.4066391885280609,
0.12621363997459412,
-0.012745629996061325,
-0.1426651030778885,
-0.1565273553133011,
0.290387362241745,
0.22641600668430328,
-0.4190441370010376,
-0.6362018585205078,
-0.4910080134868622,
0.30177852511405945,
-0.03996877744793892,
-0.13481281697750092,
0.060155291110277176,
-0.07117359340190887,
-0.07603807002305984,
-0.06980986893177032,
-0.37702059745788574,
-0.11191236972808838,
0.23817099630832672,
0.07179460674524307,
0.44282305240631104,
0.14254288375377655,
0.16436076164245605,
0.1441980004310608,
-0.12719404697418213,
-0.2345663160085678,
0.015186508186161518,
-0.12329388409852982,
0.3333291709423065,
-0.10311085730791092,
-0.11664585769176483,
0.10923080891370773,
-0.04701317846775055,
0.4755120277404785,
-0.06129996478557587,
0.17372733354568481,
0.11571221053600311,
-0.3675784766674042,
0.08663423359394073,
0.17147664725780487,
-0.10088074207305908,
0.2137439250946045,
-0.2119159698486328,
-0.31287357211112976,
0.07727570086717606,
0.4092108905315399,
0.062039509415626526,
-0.18246060609817505,
0.10737372189760208,
-0.2618187963962555,
-0.3582350015640259,
-0.06813853979110718,
0.40377917885780334,
-0.12076177448034286,
-0.027362585067749023,
-0.010700106620788574,
0.0841953381896019,
-0.04728778079152107,
0.17367775738239288,
0.17173120379447937,
-0.3679119944572449,
-0.23938311636447906,
0.20148047804832458,
0.12630784511566162,
-0.010278943926095963,
0.08163461834192276,
0.21795883774757385,
-0.1080404743552208,
0.17659525573253632,
0.10082332044839859,
-0.0010512808803468943,
-0.014449643902480602,
-0.0649891272187233,
0.06919379532337189,
0.07838848978281021,
-0.011410471983253956,
-0.18047566711902618,
0.2521997392177582,
0.010660374537110329,
0.05325589329004288,
-0.045652393251657486,
-0.10148540139198303,
-0.44049206376075745,
-0.47814926505088806,
0.21988125145435333,
-0.10788790136575699,
-0.18129047751426697,
-0.2244117259979248,
-0.06419800221920013,
0.004239278379827738,
-0.16428972780704498,
-0.19526760280132294,
0.5241125226020813,
0.3831298053264618,
-0.23584052920341492,
0.1302088350057602,
-0.1283583790063858,
-0.5635908246040344,
-0.17915163934230804,
0.19442667067050934,
0.3399141728878021,
-0.4468759000301361,
-0.3274410367012024,
-0.1016853004693985,
-0.015818314626812935,
-0.4132903218269348,
0.129503071308136,
-0.09444640576839447,
0.2800899147987366,
-0.43382495641708374,
0.40841299295425415,
0.3091627359390259,
-0.16581690311431885,
-0.22073675692081451,
0.1308983415365219,
-0.17825369536876678,
0.037655748426914215,
0.08423420041799545,
0.39586493372917175,
0.2953100800514221,
0.06001996621489525,
0.45100167393684387,
0.25852885842323303,
-0.07952145487070084,
-0.08993522822856903,
0.07368911057710648,
-0.4146662950515747,
0.30074501037597656,
-0.01119351014494896,
-0.12632036209106445,
-0.0905316025018692,
0.02795794978737831,
-0.5407934784889221,
0.16449198126792908,
-0.10661730170249939,
0.33689865469932556,
-0.03835663944482803,
0.4019220471382141,
-0.007630700711160898,
-0.10582403838634491,
-0.5203374624252319,
-0.36272814869880676,
0.13841192424297333,
-0.0773245170712471,
0.1222197562456131,
-0.11240386217832565,
-0.43580949306488037,
-0.14829599857330322,
0.4267142117023468,
-0.13473910093307495,
-0.021468814462423325,
-0.06915103644132614,
0.05720730125904083,
-0.009346416220068932,
-0.12008322030305862,
-0.4359643757343292,
0.14287817478179932,
0.22834143042564392,
0.30765417218208313,
-0.4393090605735779,
-0.049837626516819,
0.2686481475830078,
-0.18490685522556305,
-0.12170199304819107,
0.17337198555469513,
-0.14107543230056763,
-0.14435340464115143,
0.20837141573429108,
0.28238505125045776,
-0.08674094080924988,
-0.2701042592525482,
0.12039095908403397,
0.2604828178882599,
0.2900446057319641,
0.3060084879398346,
-0.10014399886131287,
-0.20570605993270874,
0.3140791356563568,
-0.25328296422958374,
-0.22917066514492035,
0.5499862432479858,
0.04193060100078583,
0.4261952340602875,
0.13705743849277496,
0.03928472101688385,
0.02019556239247322,
0.25116193294525146,
-0.2537921667098999,
-0.25780314207077026,
-0.04990612342953682,
0.14885665476322174,
0.21238495409488678,
-0.11960567533969879,
-0.10451830178499222,
0.16266587376594543,
0.14226263761520386,
0.1596190482378006,
0.17707408964633942,
0.1443222016096115,
-0.21447335183620453,
0.062301475554704666,
0.06796956807374954,
0.014987176284193993,
0.45754340291023254,
0.05440144240856171,
0.1145167276263237,
0.06591577082872391,
0.11104559153318405,
0.056890565901994705,
0.058982957154512405,
0.031461525708436966,
-0.11707420647144318,
0.03847290948033333,
0.5389946699142456,
0.06154679134488106,
-0.021839162334799767,
-0.13882115483283997,
0.11369729787111282,
-0.04325581341981888,
-0.1218186467885971,
0.039755940437316895,
0.044824909418821335,
0.07221527397632599,
-0.25302931666374207,
-0.37167736887931824,
-0.08491867780685425,
-0.08437677472829819,
0.26894116401672363,
0.03143112361431122,
0.015641525387763977,
0.3010812997817993,
0.13798753917217255,
0.7158764004707336,
0.10474400967359543,
-0.47317323088645935,
-0.08592276275157928,
0.006562171038240194,
0.21826109290122986,
-0.10107164084911346,
-0.10317320376634598,
0.3030090928077698,
0.4021121859550476,
0.08699042350053787,
-0.03165712580084801,
-0.3475196063518524,
-0.5039149522781372,
0.10952740907669067,
-0.051787324249744415,
0.43373143672943115,
0.3948708772659302,
-0.335601270198822,
-0.11234211921691895,
-0.2517050802707672,
0.18364831805229187,
0.03734773024916649,
-0.1394076645374298,
-0.18606454133987427,
-0.09768553823232651,
-0.2373921126127243,
-0.049655765295028687,
0.10303237289190292,
-0.20601606369018555,
-0.17669329047203064,
0.4733738899230957,
0.15361252427101135,
0.25191253423690796,
-0.22289307415485382,
0.09829558432102203,
0.033695172518491745,
-0.13969336450099945,
-0.12086665630340576,
0.07183166593313217,
-0.004220983944833279,
0.4730607569217682,
-0.36195674538612366,
-0.17627833783626556,
-0.16062316298484802,
-0.5109414458274841,
0.11148491501808167,
0.3774943947792053,
-0.28791725635528564,
-0.3993913531303406,
-0.261313259601593,
0.3807622790336609,
-0.09368492662906647,
0.27055636048316956,
0.49555718898773193,
0.004103290382772684,
0.1533956676721573,
0.057399965822696686,
-0.28794342279434204,
0.3740732967853546,
0.18566884100437164,
0.05989977344870567,
0.08098167181015015,
0.17045249044895172,
0.08677641302347183,
0.6634983420372009,
0.18454381823539734,
-0.10840774327516556,
0.14336346089839935,
-0.5918189883232117,
0.36275342106819153,
-0.2168654054403305,
-0.2220131903886795,
-0.17964677512645721,
-0.11066211014986038,
0.09413609653711319,
0.060779232531785965,
-0.026392783969640732,
0.1260295808315277,
0.07124596834182739,
0.3468840718269348,
0.054196733981370926,
-0.19858424365520477,
0.17935307323932648,
0.021064022555947304,
0.33733615279197693,
-0.01932469941675663,
-0.02240077033638954,
-0.3871431350708008,
0.01736484095454216,
-0.04099233075976372,
0.2764793038368225,
0.23895877599716187,
-0.17706914246082306,
-0.4978466033935547,
-0.14098744094371796,
-0.3073578178882599,
0.0694863572716713,
0.3090185225009918,
0.44739028811454773,
0.24807758629322052,
-0.15971817076206207,
0.04323470592498779,
-0.20205317437648773,
0.7236328125,
0.3253345489501953,
-0.4594324827194214,
0.008428258821368217,
0.09381786733865738,
-0.2563484013080597,
0.17329420149326324,
0.013920453377068043,
0.5422022342681885,
0.18147282302379608,
0.2524054944515228,
-0.454291433095932,
0.25500839948654175,
0.2051479071378708,
0.17938899993896484,
-0.18166573345661163,
-0.17783844470977783,
-0.11380825936794281,
-0.12891288101673126,
-0.23156343400478363,
0.1871419996023178,
0.1932210922241211,
0.22092831134796143,
0.46918755769729614,
-0.09896083176136017,
-0.40842205286026,
0.06687755882740021,
0.10205339640378952,
-0.033317022025585175,
0.004495684523135424,
0.14979767799377441,
0.5072351098060608,
-0.11103856563568115,
-0.207859069108963,
0.44003361463546753,
0.40423086285591125,
-0.13303832709789276,
-0.4836511015892029,
-0.16117578744888306,
-0.20422443747520447,
0.4172762632369995,
0.2799089252948761,
0.16675493121147156,
0.27386897802352905,
0.048915207386016846,
0.16796064376831055,
-0.23839925229549408,
0.2513350546360016,
0.09252839535474777,
-0.12772540748119354,
-0.35820138454437256,
-0.3206031620502472,
0.44010767340660095,
-0.05054309591650963,
-0.05108627304434776,
0.0931558609008789,
0.18601082265377045,
-0.31321585178375244,
0.3559415638446808,
-0.03830690681934357,
0.8532407879829407,
0.01401817612349987,
0.4227762520313263,
0.27811190485954285,
-0.03986094892024994,
0.31474393606185913,
-0.03836722671985626,
0.2110484391450882,
-0.4547419250011444,
-0.21354860067367554,
-0.03939863666892052,
-0.146322563290596,
0.16004043817520142,
0.20316147804260254,
-0.15104247629642487,
0.2056574821472168,
0.24870699644088745,
0.002485342090949416,
-0.11763009428977966,
0.2441384196281433,
-0.2815455198287964,
-0.49947798252105713,
-0.31872689723968506,
-0.07894223183393478,
0.1857926845550537,
-0.06793404370546341,
-0.11852794885635376,
-0.0023449936416000128,
-0.0017805423121899366,
-0.28009089827537537,
-0.3747289776802063,
-0.3991493582725525,
-0.3093169927597046,
-0.15894010663032532,
0.6127158999443054,
-0.26488855481147766,
0.2600618004798889,
-0.0347004197537899,
-0.03426285460591316,
0.17095999419689178,
0.11673951894044876,
0.08110843598842621,
-0.019356919452548027,
-0.13601668179035187,
-0.04074319079518318,
-0.3909027874469757,
0.17596077919006348,
0.24661673605442047,
0.01663109101355076,
0.27449458837509155,
-0.11718278378248215,
-0.2790035903453827,
-0.21064746379852295,
0.21838141977787018,
0.23843291401863098,
-0.29302623867988586,
-0.2510789632797241,
0.1993105113506317,
0.11795353889465332,
-0.2569964826107025,
-0.11513945460319519,
0.174787238240242,
-0.24996516108512878,
0.1552373468875885,
0.052532512694597244,
-0.03694681078195572,
-0.005872865207493305,
0.2975791096687317,
-0.18962937593460083,
-0.2781781852245331,
0.35393017530441284,
0.1428745687007904,
-0.0727735087275505,
-0.07928888499736786,
-0.0266165342181921,
0.43774423003196716,
-0.21364149451255798,
-0.07195749878883362,
0.054706934839487076,
-0.04837960749864578,
-0.2827552556991577,
0.07057482749223709,
0.07421214878559113,
0.18390345573425293,
-0.10512731969356537,
-0.29116833209991455,
-0.4044684171676636,
0.27638933062553406,
0.3002137541770935,
0.37218326330184937,
0.1848500818014145,
0.17024381458759308,
-0.25245627760887146,
0.4358139932155609,
-0.11690615117549896,
0.14791764318943024,
0.14597856998443604,
0.15027129650115967,
0.18546470999717712,
0.11600197851657867,
-0.08262118697166443,
0.12804998457431793,
-0.07828173786401749,
0.15506158769130707,
-0.1440821886062622,
0.015192638151347637,
-0.17475110292434692,
0.21273815631866455,
0.23315849900245667,
-0.01122654415667057,
-0.14788426458835602,
-0.11468401551246643,
-0.17620889842510223,
-0.39478394389152527,
0.3163354694843292,
-0.0946522131562233,
-0.27002033591270447,
-0.19961492717266083,
0.6224364042282104,
0.25772929191589355,
-0.09895074367523193,
0.5540857315063477,
0.2836504280567169,
0.47066450119018555,
0.18089620769023895,
0.2874777615070343,
-0.3524554967880249,
0.07644663006067276,
0.33858656883239746,
0.4616110622882843,
0.3684313893318176,
-0.04640793427824974,
0.040841229259967804,
-0.20603317022323608,
-0.008124502375721931,
0.14027950167655945,
0.22865021228790283,
0.5841596126556396,
-0.2424766719341278,
0.08344750851392746,
0.3389270305633545,
0.013256533071398735,
-0.18867386877536774,
0.009598327800631523,
0.28297334909439087,
-0.1192663162946701,
0.28851720690727234,
0.44387495517730713,
-0.14190638065338135,
0.1382751166820526,
-0.15664657950401306,
0.08617430180311203,
0.010040711611509323,
0.014658722095191479,
-0.15473538637161255,
-0.0930766761302948,
-0.035152509808540344,
-0.14315304160118103,
0.14801070094108582,
0.3850332796573639,
0.32572299242019653,
0.599268913269043,
-0.2377142608165741,
0.49899399280548096,
0.5984044075012207,
0.00660242885351181,
0.19620779156684875,
0.01953982003033161,
0.05399198830127716,
0.526033878326416,
0.6944860219955444,
0.11543536931276321,
0.3511894643306732,
0.41296854615211487,
-0.07078617811203003,
-0.07139242440462112,
0.0020068292506039143,
0.17996865510940552,
0.19092825055122375,
-0.3396002948284149,
0.12106736749410629,
-0.19975031912326813,
-0.2255670577287674,
-0.09369334578514099,
-0.04386270046234131,
-0.390854150056839,
0.055697761476039886,
-0.03286721557378769,
0.3594781756401062,
-0.482616662979126,
0.07417040318250656,
0.21901176869869232,
0.06761753559112549,
-0.306722491979599,
0.16837570071220398,
0.01932610385119915,
0.16121892631053925,
0.0985935777425766,
0.08855117112398148,
0.15398752689361572,
0.2236359417438507,
-0.041226912289857864,
0.3775158226490021,
-0.5520080327987671,
0.09237167239189148,
-0.06420978158712387,
-0.06269244104623795,
-0.012871207669377327,
-0.0502019040286541,
0.2981150448322296,
-0.07037226110696793,
0.027540378272533417,
0.16847053170204163,
0.24425935745239258,
-0.11067061126232147,
-0.5813177227973938,
-0.005478761158883572,
0.007751178927719593,
-0.2768871784210205,
-0.08205677568912506,
-0.014522030018270016,
-0.04413747787475586,
-0.06875941157341003,
0.29841727018356323,
-0.3923065960407257,
0.03525051102042198,
0.16577927768230438,
-0.014820453710854053,
-0.15874822437763214,
0.1636197566986084,
0.506517231464386,
0.29000124335289,
-0.07103007286787033,
-0.24688412249088287,
-0.5102571845054626,
-0.009848201647400856,
-0.11190424114465714,
-0.1957143098115921,
-0.055648211389780045,
0.11794853955507278,
0.026969918981194496,
0.20014117658138275,
0.1611221581697464,
-0.009064958430826664,
-0.03408857062458992,
0.3953382074832916,
-0.17830893397331238,
-0.046291448175907135,
-0.08578488230705261,
0.10226964950561523,
0.1350231170654297,
-0.26319175958633423,
-0.16529390215873718,
-0.07073836773633957,
-0.16213303804397583,
-0.10256887227296829,
-0.009249042719602585,
-0.05376095697283745,
-0.12468899041414261,
0.5808815360069275,
0.2099566012620926,
0.14341795444488525,
-0.10437186807394028,
-0.014057118445634842,
-0.21728067100048065,
-0.11253213882446289,
-0.33627673983573914,
0.6051656007766724,
0.028251104056835175,
0.06292751431465149,
-0.14583665132522583,
0.03556330129504204,
0.018791530281305313,
0.00468993466347456,
0.08922401070594788,
-0.15652397274971008,
-0.1970905065536499,
0.3591449558734894,
-0.39626598358154297,
0.11759534478187561,
-0.13634854555130005,
0.3045371472835541,
0.21002285182476044,
0.21699604392051697,
0.18470267951488495,
-0.09158094972372055,
0.23190370202064514,
-0.4541725218296051,
-0.3235701620578766,
-0.07796091586351395,
0.02189270220696926,
0.0010353513062000275,
-0.3787173628807068,
-0.5221461653709412,
-0.2875072956085205,
0.33966630697250366,
-0.011159748770296574,
-0.043744202703237534,
0.04622361436486244,
-0.18471673130989075,
-0.12373749166727066,
-0.476980596780777,
0.47858378291130066,
-0.019891897216439247,
-0.0834573432803154,
-0.09862789511680603,
-0.5801851749420166
] |
https://github.com/huggingface/datasets/issues/1849 | Add TIMIT | @patrickvonplaten Could you please help me with how the output text has to be represented in the data? TIMIT has Words, Phonemes and texts. Also has lot on info on the speaker and the dialect. Could you please help me? An example of how to arrange it would be super helpful!
| ## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 51 | Add TIMIT
## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
@patrickvonplaten Could you please help me with how the output text has to be represented in the data? TIMIT has Words, Phonemes and texts. Also has lot on info on the speaker and the dialect. Could you please help me? An example of how to arrange it would be super helpful!
| [
0.07334112375974655,
-0.3110240697860718,
-0.1762830913066864,
0.18871566653251648,
0.08587668836116791,
-0.10724178701639175,
0.11768975853919983,
0.0632871463894844,
-0.42619067430496216,
-0.13589204847812653,
-0.2996528744697571,
0.13682131469249725,
-0.07004347443580627,
0.3138224184513092,
0.2315152883529663,
-0.3812040388584137,
-0.09241615980863571,
0.12396831065416336,
-0.2485862672328949,
-0.16811485588550568,
-0.02067471668124199,
0.20142796635627747,
0.060208410024642944,
-0.017016738653182983,
-0.07883252203464508,
-0.18578298389911652,
-0.10645777732133865,
-0.19129683077335358,
-0.2009378969669342,
-0.4111645519733429,
-0.1293073147535324,
0.03937859460711479,
0.09966257214546204,
0.5218947529792786,
-0.00010906290845014155,
-0.11164316534996033,
-0.08479679375886917,
-0.27521809935569763,
-0.04820667952299118,
-0.19770251214504242,
0.0026014072354882956,
0.017240898683667183,
-0.18760855495929718,
0.03326250612735748,
-0.11618580669164658,
0.004350458271801472,
0.17673364281654358,
-0.25665247440338135,
0.15262311697006226,
0.25602713227272034,
0.17965836822986603,
-0.23972371220588684,
0.0037529843393713236,
0.12031975388526917,
0.18378832936286926,
0.35329025983810425,
-0.16591191291809082,
-0.1861262321472168,
0.44236451387405396,
0.36910513043403625,
0.1545248031616211,
0.2054739147424698,
-0.2338324934244156,
-0.16024550795555115,
0.11722240597009659,
0.15880239009857178,
-0.12801311910152435,
-0.4249422550201416,
-0.20013166964054108,
0.16148601472377777,
1.080381155014038,
-0.27308645844459534,
-0.21022695302963257,
-0.16821525990962982,
-0.006715201307088137,
-0.038844697177410126,
0.05452742800116539,
0.09478520601987839,
-0.10754004120826721,
0.28220412135124207,
-0.12841160595417023,
-0.08735587447881699,
-0.403623104095459,
0.29983818531036377,
0.17510873079299927,
-0.09039601683616638,
-0.16518977284431458,
-0.08172082901000977,
-0.2652522325515747,
-0.022478602826595306,
-0.12658852338790894,
-0.06915092468261719,
0.18290892243385315,
0.14437060058116913,
0.12643110752105713,
-0.20703689754009247,
-0.07222367823123932,
-0.23967868089675903,
0.1297904998064041,
0.07993350178003311,
0.15789039433002472,
0.12824980914592743,
-0.3613843023777008,
-0.035532888025045395,
0.3212116062641144,
-0.1483234465122223,
0.16046427190303802,
-0.30204182863235474,
0.030455289408564568,
-0.3613665997982025,
0.1621885448694229,
-0.28479957580566406,
-0.2428911328315735,
0.2361747771501541,
0.13779030740261078,
-0.046789079904556274,
0.14815659821033478,
-0.22798596322536469,
0.0026647611521184444,
0.05271431803703308,
-0.018034806475043297,
0.05892916023731232,
-0.03035866655409336,
0.08373813331127167,
-0.14452119171619415,
0.14644908905029297,
0.11820980906486511,
0.23814363777637482,
-0.015013483352959156,
-0.11150363087654114,
0.08406885713338852,
-0.04577203840017319,
-0.255597859621048,
0.18171556293964386,
0.05202701687812805,
-0.1000453531742096,
0.16858144104480743,
0.19605785608291626,
-0.01181806344538927,
-0.07843607664108276,
-0.1366562694311142,
-0.1784198135137558,
0.2777075171470642,
-0.1461721956729889,
0.052780669182538986,
0.13902634382247925,
-0.19031909108161926,
-0.04703051224350929,
-0.36331474781036377,
0.12110830098390579,
0.16795231401920319,
-0.042293015867471695,
-0.045313090085983276,
0.18672388792037964,
-0.012482212856411934,
-0.15626390278339386,
-0.1769186407327652,
0.7114768624305725,
0.27492064237594604,
-0.10273962467908859,
-0.007508374284952879,
0.19399137794971466,
-0.5860923528671265,
-0.10502409934997559,
0.17764347791671753,
0.05855930969119072,
-0.6696822643280029,
0.021252170205116272,
-0.037868402898311615,
0.16111676394939423,
0.2975306808948517,
0.2125633805990219,
0.33957695960998535,
0.5863779783248901,
0.02100558951497078,
0.2667873501777649,
0.17175526916980743,
-0.2706252336502075,
-0.14310994744300842,
0.13693779706954956,
-0.1598665416240692,
-0.11708547174930573,
-0.04734845459461212,
0.14493770897388458,
0.479286253452301,
-0.10187666863203049,
0.029485251754522324,
0.1940069943666458,
-0.20144253969192505,
-0.023552918806672096,
-0.029060766100883484,
-0.03718969225883484,
-0.12045903503894806,
0.07785837352275848,
-0.19898799061775208,
-0.10679586231708527,
-0.12518011033535004,
0.21775102615356445,
0.22465112805366516,
0.06529466807842255,
0.347046822309494,
0.06921157240867615,
0.3847994804382324,
0.19090020656585693,
0.12973520159721375,
-0.4917134642601013,
0.4033920168876648,
-0.19642183184623718,
0.15266536176204681,
0.4782302677631378,
-0.14731864631175995,
-0.16714224219322205,
-0.35963037610054016,
-0.22060902416706085,
-0.05166446790099144,
0.26066771149635315,
0.22058150172233582,
0.19911757111549377,
-0.009456119500100613,
0.08572014421224594,
0.035581883043050766,
0.4501104950904846,
-0.007556529715657234,
-0.241934671998024,
-0.32012733817100525,
0.25044557452201843,
0.09513832628726959,
-0.34468308091163635,
-0.014948016032576561,
0.49894240498542786,
-0.08319252729415894,
0.14938022196292877,
0.13808681070804596,
0.24662910401821136,
0.00387931102886796,
0.01359772589057684,
-0.20220384001731873,
-0.11014462262392044,
0.2628400921821594,
-0.42288222908973694,
0.33136409521102905,
0.06269051134586334,
0.0637858584523201,
-0.22584611177444458,
0.03935537859797478,
-0.020557409152388573,
0.15597479045391083,
0.07061982154846191,
-0.14247256517410278,
-0.10161592066287994,
-0.13290619850158691,
0.04966089501976967,
-0.056905463337898254,
-0.11066111922264099,
0.0648704543709755,
0.11938253045082092,
-0.056270770728588104,
-0.2600484788417816,
-0.26264718174934387,
0.24233120679855347,
0.268644779920578,
0.0061959158629179,
0.09210614114999771,
0.04663436859846115,
-0.2050527185201645,
0.2062923163175583,
-0.047899723052978516,
-0.4742143750190735,
-0.005433893296867609,
0.29854297637939453,
0.1934996247291565,
-0.03869173303246498,
0.11781831830739975,
-0.00005681108814314939,
0.07349765300750732,
0.1441572606563568,
-0.14068004488945007,
0.2691238224506378,
-0.16840852797031403,
0.014477040618658066,
-0.2006816267967224,
-0.06469587981700897,
-0.2875884175300598,
0.039223309606313705,
-0.1764378398656845,
-0.1992069035768509,
0.07650131732225418,
-0.18412083387374878,
-0.24531368911266327,
-0.3167240023612976,
0.09951211512088776,
0.06108599528670311,
0.2686392664909363,
0.14800716936588287,
0.04912654310464859,
-0.010122555308043957,
0.21242037415504456,
0.15072625875473022,
0.023235147818922997,
-0.00013432794366963208,
-0.02151831053197384,
-0.032080139964818954,
-0.1561594009399414,
0.16968412697315216,
0.07609442621469498,
0.30614346265792847,
0.45288577675819397,
-0.3062445819377899,
0.014612969942390919,
0.08024531602859497,
-0.01783110946416855,
0.23041701316833496,
-0.3757926821708679,
0.2834009528160095,
0.028936047106981277,
-0.000025291061319876462,
-0.3605327606201172,
-0.41153860092163086,
0.016146261245012283,
-0.03152254596352577,
-0.29192861914634705,
0.07438784092664719,
-0.09567851573228836,
-0.13400138914585114,
0.11572160571813583,
-0.44453489780426025,
-0.29717183113098145,
-0.30250346660614014,
0.3352983295917511,
0.08214481174945831,
0.22495800256729126,
0.16999183595180511,
-0.12080767005681992,
0.17537814378738403,
0.16364558041095734,
0.43416106700897217,
-0.3202280104160309,
-0.3624626398086548,
0.3046228587627411,
-0.25488170981407166,
-0.2976193428039551,
-0.08710124343633652,
0.006007313262671232,
0.026022499427199364,
0.06352641433477402,
-0.20883052051067352,
0.14199593663215637,
-0.010043948888778687,
0.0497109480202198,
0.08470185846090317,
0.17801307141780853,
0.15832416713237762,
0.07651882618665695,
-0.07987720519304276,
-0.23206700384616852,
0.03285519778728485,
0.14761081337928772,
0.16697557270526886,
0.19662941992282867,
0.2978929877281189,
0.014754815958440304,
0.006802527233958244,
0.34933772683143616,
0.49522414803504944,
0.03258528560400009,
0.0620584562420845,
0.28227341175079346,
0.003373070154339075,
-0.017472941428422928,
-0.3049691915512085,
0.19448643922805786,
0.049722738564014435,
0.10941987484693527,
0.618950366973877,
0.2590445280075073,
-0.031625933945178986,
-0.12968893349170685,
-0.15733569860458374,
-0.3830249011516571,
-0.1344003677368164,
0.2337816208600998,
-0.26622578501701355,
0.1417679786682129,
-0.3733879029750824,
-0.15008705854415894,
-0.02144780382514,
-0.17250117659568787,
0.06449095159769058,
-0.02319847047328949,
0.06950006633996964,
0.017031420022249222,
-0.45991870760917664,
-0.11790061742067337,
-0.44047844409942627,
-0.1500287652015686,
0.36992037296295166,
0.06646834313869476,
-0.25453880429267883,
0.05896294489502907,
0.016657033935189247,
0.42829492688179016,
0.2871991693973541,
-0.3595501780509949,
-0.08175083249807358,
-0.05954797938466072,
0.32083889842033386,
-0.23375296592712402,
0.363339900970459,
-0.3790825605392456,
0.06113007664680481,
0.24092069268226624,
-0.016108782961964607,
-0.19468379020690918,
0.16996251046657562,
0.06844079494476318,
0.35526514053344727,
-0.10936140269041061,
-0.3979184329509735,
0.11073336005210876,
-0.3221362233161926,
-0.037720344960689545,
0.047611840069293976,
0.2975735068321228,
0.010838404297828674,
0.27650320529937744,
-0.3337194323539734,
0.3182637095451355,
0.2296828329563141,
0.5717843174934387,
-0.07925067842006683,
0.12951095402240753,
0.1711018830537796,
0.10022449493408203,
0.43727439641952515,
0.08105781674385071,
0.061337463557720184,
0.33551281690597534,
-0.008458088152110577,
-0.0838698148727417,
0.04230170696973801,
-0.6474964022636414,
0.6383489966392517,
0.17787571251392365,
0.5054206252098083,
0.05788154900074005,
-0.09885583817958832,
-0.17916463315486908,
-0.31234732270240784,
0.08295194804668427,
0.27655118703842163,
0.22879773378372192,
-0.5406428575515747,
-0.48270997405052185,
0.36881357431411743,
-0.050815094262361526,
-0.016092708334326744,
0.3932928144931793,
0.08660999685525894,
-0.5273908376693726,
0.4000515043735504,
0.13467906415462494,
1.2645556926727295,
-0.07298220694065094,
0.0805896446108818,
0.016674568876624107,
0.21393246948719025,
0.11046923696994781,
-0.3328997492790222,
-0.10022386908531189,
-0.11849705129861832,
0.0039251116104424,
-0.18404248356819153,
0.14892514050006866,
-0.11249958723783493,
0.44660598039627075,
-0.6558457016944885,
-0.2342241108417511,
0.11346213519573212,
0.18014852702617645,
0.031666796654462814,
0.2309562861919403,
-0.08756166696548462,
-0.5443075895309448,
-0.10684646666049957,
0.13332854211330414,
-0.09437697380781174,
-0.10515263676643372,
0.07793411612510681,
-0.14074017107486725,
-0.0990867093205452,
0.1872476488351822,
-0.5839388370513916,
-0.19350707530975342,
-0.2705625891685486,
-0.2539995014667511,
-0.26427018642425537,
-0.454912930727005,
0.46144354343414307,
0.3034355342388153,
0.47119632363319397,
0.26482194662094116,
-0.09883321821689606,
-0.27002835273742676,
0.25651541352272034,
-0.24409815669059753,
0.11321606487035751,
-0.05641823261976242,
0.23614922165870667,
-0.2565661668777466,
-0.40203267335891724,
0.11990665644407272,
0.23404666781425476,
0.055813904851675034,
-0.1997072398662567,
-0.242824986577034,
0.2773272395133972,
-0.6060071587562561,
0.03326420113444328,
0.40399450063705444,
0.039299655705690384,
0.056162621825933456,
0.1593710482120514,
0.32194414734840393,
-0.27039653062820435,
0.3919323980808258,
-0.07288389652967453,
-0.11713210493326187,
-0.09170091152191162,
-0.01402005460113287,
0.3209594786167145,
-0.09505388885736465,
0.2667018175125122,
0.3177778720855713,
-0.206605926156044,
-0.1901085525751114,
0.1254207342863083,
-0.002546114381402731,
-0.06991841644048691,
-0.1668092906475067,
-0.000829006137792021,
0.036496374756097794,
-0.22431497275829315,
0.25828978419303894,
0.2697300612926483,
-0.1312965601682663,
-0.23894812166690826,
-0.16251525282859802,
-0.40660619735717773,
0.14960862696170807,
0.24640591442584991,
0.20300884544849396,
0.05685827508568764,
0.10913615673780441,
0.10584699362516403,
0.1297784000635147,
-0.3844205141067505,
-0.3562225103378296,
0.16252148151397705,
0.39111238718032837,
0.2898438572883606,
-0.09931981563568115,
0.05262238532304764,
-0.13960763812065125,
0.11516239494085312,
0.1162932887673378,
-0.12752406299114227,
-0.21183675527572632,
-0.12850183248519897,
0.1377587914466858,
0.11933914572000504,
-0.2392580211162567,
-0.045786600559949875,
-0.15537171065807343,
-0.20568114519119263,
-0.1629975289106369,
-0.00044794054701924324,
0.43571823835372925,
0.0395272858440876,
0.37204858660697937,
0.20681540668010712,
0.12072941660881042,
-0.11142902821302414,
-0.13430222868919373,
0.08866336941719055,
0.06583388149738312,
0.1747950166463852,
-0.014456409029662609,
0.06395354121923447,
-0.15197834372520447,
0.05204722285270691,
0.3738810420036316,
0.35499247908592224,
-0.12321469932794571,
0.1929377317428589,
-0.11402632296085358,
0.26566022634506226,
0.3561334013938904,
0.2540929317474365,
0.1947012096643448,
0.15259629487991333,
-0.13671231269836426,
0.18333536386489868,
0.2633680999279022,
0.005277297459542751,
0.07480015605688095,
-0.2822595238685608,
-0.13670019805431366,
0.05136127769947052,
0.2769150137901306,
0.1008644849061966,
-0.08527138829231262,
0.2514650821685791,
-0.07312715798616409,
0.14880764484405518,
-0.08419337123632431,
-0.06418934464454651,
0.36898767948150635,
0.1300588995218277,
-0.04578332602977753,
0.0508011095225811,
0.22023092210292816,
0.01763959787786007,
0.08830852806568146,
0.004229132551699877,
0.09742630273103714,
-0.11537189036607742,
0.10032250732183456,
0.17487174272537231,
0.0657179057598114,
-0.025954008102416992,
0.2681545913219452,
-0.10540694743394852,
0.18854980170726776,
0.20588992536067963,
0.6595246195793152,
-0.06018637865781784,
-0.10495900362730026,
0.1661819964647293,
-0.006503469310700893,
-0.055218715220689774,
0.07875645905733109,
-0.6642003059387207,
-0.2857769727706909,
-0.05304752290248871,
-0.41377395391464233,
0.04849337413907051,
-0.3519781231880188,
0.0782284364104271,
0.11374428123235703,
0.07023768872022629,
-0.41516295075416565,
-0.05278163030743599,
-0.20305056869983673,
0.3201819658279419,
-0.25294381380081177,
0.2339249700307846,
0.22237126529216766,
-0.04413405433297157,
0.16097749769687653,
0.3641621768474579,
0.15343321859836578,
-0.05330946668982506,
-0.3757953643798828,
0.4693296551704407,
-0.2915988564491272,
-0.25233927369117737,
0.09521301090717316,
0.34390541911125183,
0.07589457184076309,
-0.003580717835575342,
0.11966922134160995,
0.19784638285636902,
-0.04689915105700493,
-0.19371813535690308,
0.4577818214893341,
-0.364566445350647,
0.12806425988674164,
0.13830524682998657,
0.11339228600263596,
-0.33781471848487854,
-0.1734229475259781,
-0.34411805868148804,
-0.4632588326931,
0.006294942460954189,
0.7435662746429443,
-0.27067989110946655,
-0.012798464857041836,
-0.047273099422454834,
0.10165628790855408,
0.034843359142541885,
0.05373474583029747,
0.5934010148048401,
0.29328590631484985,
0.14232049882411957,
-0.17337773740291595,
-0.1467892825603485,
0.10804640501737595,
0.13896891474723816,
-0.33660420775413513,
-0.06523792445659637,
-0.05202997848391533,
0.36820188164711,
0.36340847611427307,
-0.05646444112062454,
-0.306018590927124,
-0.732879638671875,
0.23986665904521942,
-0.18637457489967346,
0.034514591097831726,
-0.06668295711278915,
0.6858642101287842,
-0.1334247589111328,
0.054028645157814026,
-0.2784757614135742,
0.3473326861858368,
0.07631663978099823,
-0.40324667096138,
0.12324851006269455,
-0.06566468626260757,
0.20846305787563324,
-0.15248426795005798,
-0.0060835834592580795,
0.41599076986312866,
-0.3321261703968048,
0.17454735934734344,
0.12447424232959747,
0.05565902590751648,
-0.3289286494255066,
0.2753642499446869,
0.1652964949607849,
0.3569642901420593,
-0.2938207983970642,
0.1285812258720398,
0.017426464706659317,
0.08919766545295715,
0.12506088614463806,
0.04324014112353325,
-0.21586115658283234,
0.05523880198597908,
-0.29385221004486084,
-0.1764225959777832,
0.05602602660655975,
0.38177087903022766,
-0.047323938459157944,
-0.025754038244485855,
-0.3988318145275116,
-0.41084009408950806,
0.0059379758313298225,
0.008929955773055553,
-0.44033652544021606,
0.15046192705631256,
-0.030387213453650475,
-0.018161673098802567,
0.22316434979438782,
-0.7285834550857544,
-0.08740373700857162,
0.4551883637905121,
0.020122120156884193,
0.08900468796491623,
0.23690135776996613,
0.04753042384982109,
-0.15702714025974274,
-0.0915602371096611,
0.4929834008216858,
0.1033172756433487,
-0.1523526906967163,
-0.19843702018260956,
-0.5478038191795349
] |
https://github.com/huggingface/datasets/issues/1849 | Add TIMIT | Hey @vrindaprabhu - sure I'll help you :-) Could you open a first PR for TIMIT where you copy-paste more or less the `librispeech_asr` script: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L93 (obviously replacing all the naming and links correctly...) and then you can list all possible outputs in the features dict: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L104 (words, phonemes should probably be of kind `datasets.Sequence(datasets.Value("string"))` and texts I think should be of type `"text": datasets.Value("string")`.
When you've opened a first PR, I think it'll be much easier for us to take a look together :-) | ## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 85 | Add TIMIT
## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hey @vrindaprabhu - sure I'll help you :-) Could you open a first PR for TIMIT where you copy-paste more or less the `librispeech_asr` script: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L93 (obviously replacing all the naming and links correctly...) and then you can list all possible outputs in the features dict: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L104 (words, phonemes should probably be of kind `datasets.Sequence(datasets.Value("string"))` and texts I think should be of type `"text": datasets.Value("string")`.
When you've opened a first PR, I think it'll be much easier for us to take a look together :-) | [
-0.24468469619750977,
-0.47310420870780945,
-0.17479470372200012,
0.05118829011917114,
0.12573257088661194,
-0.09047053754329681,
0.07210580259561539,
0.21556350588798523,
-0.2834831774234772,
0.12188906967639923,
-0.3020021915435791,
0.1912917047739029,
-0.3662663400173187,
0.1645153909921646,
0.13558685779571533,
-0.04946000128984451,
-0.15291152894496918,
0.11668273061513901,
-0.06517796218395233,
-0.10856308043003082,
-0.09382973611354828,
0.26619651913642883,
-0.007682168856263161,
-0.08310624957084656,
0.07404949516057968,
0.001232824637554586,
0.02712271362543106,
-0.26144587993621826,
-0.2260965257883072,
-0.43112656474113464,
-0.28076741099357605,
0.10978321731090546,
0.042012035846710205,
0.26065489649772644,
-0.00010121671948581934,
-0.09954839944839478,
0.10226967185735703,
-0.2563874423503876,
-0.23640848696231842,
-0.27711281180381775,
0.0944206491112709,
0.22497132420539856,
-0.10207335650920868,
0.033096060156822205,
-0.35129156708717346,
-0.08708404749631882,
0.17362751066684723,
-0.29906219244003296,
0.09423608332872391,
0.44839274883270264,
0.2870047092437744,
0.10876739025115967,
0.017240002751350403,
-0.04707292839884758,
0.3513863682746887,
0.08922833949327469,
-0.16798542439937592,
-0.10174938291311264,
0.2633754312992096,
0.1719558984041214,
-0.11541429907083511,
0.2804044783115387,
-0.07344914972782135,
-0.0649397224187851,
0.16999921202659607,
0.06320925801992416,
-0.15344274044036865,
-0.4414428770542145,
-0.12580668926239014,
0.19198192656040192,
0.5023941993713379,
-0.3778822720050812,
-0.24965719878673553,
-0.23434007167816162,
0.0014086092123761773,
-0.23833009600639343,
0.03169994056224823,
0.08528140932321548,
-0.43213751912117004,
0.24406230449676514,
0.0006117313168942928,
-0.1649404764175415,
-0.11422114819288254,
0.21034109592437744,
0.35623663663864136,
-0.06611937284469604,
-0.20362134277820587,
-0.2457413375377655,
0.0624927282333374,
-0.11293891817331314,
-0.19851869344711304,
0.08735679090023041,
0.14477387070655823,
0.11884885281324387,
-0.021980857476592064,
-0.17500603199005127,
0.22421368956565857,
-0.1459820717573166,
0.2494656890630722,
0.1811545044183731,
0.29159295558929443,
0.24775174260139465,
-0.27516016364097595,
-0.008246276527643204,
0.06623082607984543,
0.01622396521270275,
0.2081098109483719,
-0.31574907898902893,
0.17483243346214294,
0.07498734444379807,
0.10833276808261871,
-0.10479265451431274,
-0.11581162363290787,
0.32351043820381165,
0.05458151549100876,
-0.09489815682172775,
0.1270531564950943,
-0.1975926011800766,
-0.14941826462745667,
-0.06540875136852264,
-0.0892631933093071,
-0.05293358862400055,
0.026162106543779373,
0.33333805203437805,
-0.03328854590654373,
0.1628892868757248,
0.18775011599063873,
0.19653339684009552,
-0.1016978994011879,
-0.13918037712574005,
-0.016942370682954788,
0.07193758338689804,
-0.0720689594745636,
0.14179883897304535,
0.2965698838233948,
-0.1536211520433426,
0.21459431946277618,
0.0117733059450984,
0.053140006959438324,
0.022748224437236786,
-0.08996126800775528,
-0.002037518657743931,
0.23732537031173706,
-0.121846042573452,
0.023186875507235527,
-0.07825484126806259,
-0.20072858035564423,
-0.047329388558864594,
-0.2776864767074585,
-0.13556979596614838,
0.34567978978157043,
-0.007960074581205845,
-0.08296285569667816,
0.3332655429840088,
-0.08928058296442032,
-0.11178551614284515,
0.0752040222287178,
0.6522989869117737,
0.10525424778461456,
-0.14940698444843292,
-0.012488669715821743,
0.12183576822280884,
-0.5117611885070801,
-0.08225081861019135,
0.1544603705406189,
0.15376873314380646,
-0.1783183515071869,
-0.17356586456298828,
0.1369713842868805,
0.05027006193995476,
0.09504582732915878,
0.16648924350738525,
0.14061319828033447,
0.14407247304916382,
-0.14383819699287415,
0.3682309687137604,
0.1132027879357338,
-0.2234620451927185,
-0.24753312766551971,
-0.030293161049485207,
-0.16984966397285461,
-0.08154916763305664,
0.24415132403373718,
0.16581062972545624,
0.35595375299453735,
-0.05546984449028969,
0.1300068199634552,
0.187443807721138,
0.0038797142915427685,
-0.06747864186763763,
-0.24166353046894073,
-0.20775267481803894,
-0.19628165662288666,
0.216688871383667,
-0.07965736091136932,
0.026989765465259552,
0.01006441842764616,
0.22761774063110352,
0.28254783153533936,
-0.15273840725421906,
0.31405574083328247,
0.08151070028543472,
0.3197687268257141,
0.07829062640666962,
0.17774376273155212,
-0.589912474155426,
0.23973219096660614,
-0.21061819791793823,
-0.09541212022304535,
0.5726776123046875,
-0.14580126106739044,
-0.3300551176071167,
-0.1602557897567749,
-0.23734991252422333,
0.03239482641220093,
0.1230168268084526,
0.3529720902442932,
0.45234957337379456,
0.06818167120218277,
0.1242334321141243,
-0.07140348106622696,
0.28737872838974,
0.05655859783291817,
-0.13086284697055817,
-0.2722584307193756,
0.043839938938617706,
-0.07347281277179718,
-0.22394539415836334,
0.2974454462528229,
0.32552218437194824,
-0.15483932197093964,
0.09116140753030777,
0.12028353661298752,
0.22557185590267181,
-0.049788735806941986,
0.02336309105157852,
-0.15309002995491028,
0.09252287447452545,
0.13621051609516144,
-0.403967946767807,
-0.02008758671581745,
0.1621854156255722,
0.084308922290802,
-0.09320259094238281,
-0.0050542522221803665,
0.11343835294246674,
0.4156929552555084,
0.028997398912906647,
0.2748588025569916,
0.09982958436012268,
0.072725810110569,
-0.06466225534677505,
-0.26923826336860657,
-0.08808629214763641,
0.23969177901744843,
-0.20247134566307068,
0.031107908114790916,
-0.13338559865951538,
-0.43742695450782776,
0.09217214584350586,
0.29568803310394287,
-0.05181000754237175,
0.19796715676784515,
0.15823408961296082,
-0.28275352716445923,
0.08483265340328217,
-0.0343032032251358,
-0.3078751266002655,
-0.023096732795238495,
0.3893950879573822,
0.0923011302947998,
-0.08831577748060226,
-0.06539997458457947,
0.01060350053012371,
0.09369666129350662,
0.19974808394908905,
-0.2894522249698639,
0.2492719143629074,
0.12730072438716888,
-0.1350727379322052,
-0.5136488080024719,
-0.15540026128292084,
-0.2910384237766266,
0.05270327255129814,
-0.16084139049053192,
-0.17692993581295013,
0.018801197409629822,
-0.2057589292526245,
0.005927554797381163,
-0.16778619587421417,
0.038699861615896225,
0.05474860593676567,
0.35676300525665283,
0.23623749613761902,
-0.11754094064235687,
0.09634151309728622,
-0.07783722132444382,
0.17247074842453003,
0.03358984366059303,
-0.08172336220741272,
-0.11402218043804169,
-0.007857754826545715,
-0.006550847552716732,
0.24027901887893677,
0.1958114057779312,
0.20844879746437073,
0.47207969427108765,
-0.09747433662414551,
0.04280071333050728,
-0.08279545605182648,
-0.11795349419116974,
0.2676108479499817,
-0.2731456458568573,
0.15026973187923431,
0.12843088805675507,
-0.23018299043178558,
-0.16928082704544067,
-0.5684170722961426,
0.02879071608185768,
-0.19865410029888153,
-0.38135990500450134,
0.10551346093416214,
-0.03238184005022049,
-0.05636076256632805,
-0.13990002870559692,
-0.5737687349319458,
-0.16266202926635742,
-0.5080015063285828,
0.4297765791416168,
0.30658620595932007,
0.12781032919883728,
0.27185311913490295,
-0.140886589884758,
0.16211891174316406,
0.00032372507848776877,
0.4808391034603119,
-0.28257355093955994,
-0.10734821110963821,
0.21775147318840027,
-0.338589072227478,
-0.24480998516082764,
-0.32681676745414734,
-0.17652808129787445,
0.17401699721813202,
0.06785418093204498,
-0.2126876413822174,
-0.06785515695810318,
-0.08936639130115509,
0.2051258534193039,
0.021938201040029526,
-0.03298145532608032,
0.29718947410583496,
0.29303881525993347,
-0.22297731041908264,
-0.17002664506435394,
0.012999330647289753,
0.23246197402477264,
-0.07469984889030457,
0.060560666024684906,
0.2563900053501129,
-0.04548761621117592,
-0.05390986055135727,
0.3795769512653351,
0.1761084794998169,
-0.03811424598097801,
0.3560258746147156,
-0.06587526947259903,
0.12788338959217072,
-0.049506496638059616,
-0.25655797123908997,
0.19384126365184784,
0.029687918722629547,
0.04292457550764084,
0.5046960115432739,
0.08303892612457275,
-0.12171974033117294,
-0.12120286375284195,
0.03297291323542595,
-0.2757849395275116,
-0.2715730369091034,
0.038121309131383896,
-0.1754385232925415,
0.22038879990577698,
-0.20522338151931763,
0.07568389177322388,
-0.026229552924633026,
-0.1750732660293579,
0.29108163714408875,
-0.09163010120391846,
0.045308712869882584,
-0.15279987454414368,
-0.3904530704021454,
0.09527848660945892,
-0.47698405385017395,
0.12119226902723312,
0.37205711007118225,
0.1703338474035263,
-0.1272701621055603,
-0.3410018980503082,
-0.10476672649383545,
0.14636215567588806,
0.08023112267255783,
-0.3026007413864136,
-0.10442833602428436,
0.1990414559841156,
0.21790257096290588,
-0.09600182622671127,
0.3850281238555908,
-0.412727952003479,
-0.11404617130756378,
0.14582879841327667,
0.14844445884227753,
-0.32448482513427734,
0.13591931760311127,
0.14037972688674927,
0.24017861485481262,
0.03725101798772812,
-0.09196127206087112,
0.06767507642507553,
-0.2784230709075928,
-0.21202364563941956,
0.07964031398296356,
0.14095652103424072,
0.07515203952789307,
0.06093708053231239,
0.01716240681707859,
0.1617177277803421,
0.015729110687971115,
0.6219574809074402,
0.12620259821414948,
0.23059870302677155,
0.03457004576921463,
0.30148351192474365,
0.17986944317817688,
0.06779351830482483,
-0.03502493351697922,
0.32683295011520386,
0.03597079962491989,
-0.31967809796333313,
-0.030756471678614616,
-0.3156147599220276,
0.3362608551979065,
0.010559482499957085,
0.16935348510742188,
0.2757963240146637,
0.02073182538151741,
0.048033811151981354,
-0.22430191934108734,
0.22894179821014404,
0.24759593605995178,
0.12155278772115707,
-0.25564539432525635,
-0.3392491340637207,
0.22847571969032288,
-0.15065118670463562,
-0.1627783477306366,
0.18301922082901,
-0.08998698741197586,
-0.3301515579223633,
0.551691472530365,
-0.09426544606685638,
1.028205156326294,
-0.05904466658830643,
0.07681848108768463,
0.10523731261491776,
0.2488810271024704,
0.12122294306755066,
-0.3813137114048004,
0.13503298163414001,
-0.06216982379555702,
-0.10110858827829361,
-0.06956160813570023,
0.13100722432136536,
-0.2805921733379364,
0.20876511931419373,
-0.6060705780982971,
-0.1267579048871994,
0.2254347950220108,
0.13574640452861786,
0.04675394669175148,
0.4178178310394287,
-0.21072383224964142,
-0.5592307448387146,
-0.23292267322540283,
0.26713278889656067,
0.059636007994413376,
0.15500308573246002,
0.3905988037586212,
-0.1615728735923767,
0.011656642891466618,
-0.13911789655685425,
-0.4064038097858429,
-0.05498465523123741,
-0.3689366281032562,
-0.2309938669204712,
-0.19445648789405823,
-0.23076890408992767,
0.24001798033714294,
0.26232293248176575,
0.32074451446533203,
0.36330902576446533,
-0.24770136177539825,
-0.19123809039592743,
0.256392240524292,
-0.09425731748342514,
0.02204773761332035,
0.06942057609558105,
0.2842489182949066,
-0.12925423681735992,
-0.16181720793247223,
0.25730177760124207,
0.2658284306526184,
-0.08590853959321976,
-0.18152178823947906,
-0.241618350148201,
0.10665523260831833,
-0.4168112874031067,
0.12457913905382156,
0.1638926863670349,
-0.3157113790512085,
-0.19938451051712036,
0.24438859522342682,
0.18668648600578308,
-0.3711601793766022,
0.11895729601383209,
0.207797572016716,
-0.05006749927997589,
-0.15994296967983246,
0.22266915440559387,
0.26228830218315125,
-0.16925379633903503,
0.33356717228889465,
0.14945445954799652,
-0.22389796376228333,
-0.3878360986709595,
-0.30326804518699646,
-0.16982312500476837,
-0.18355077505111694,
0.015424381010234356,
0.1517455279827118,
-0.21164637804031372,
-0.06637808680534363,
0.29871368408203125,
0.10459044575691223,
0.06416098773479462,
-0.26350194215774536,
0.014530367217957973,
-0.5142239928245544,
0.2843671441078186,
0.16385573148727417,
0.349605917930603,
-0.0192264337092638,
0.18845993280410767,
-0.0024215648882091045,
-0.045059360563755035,
-0.5011374354362488,
-0.28102168440818787,
-0.28628426790237427,
0.2542145848274231,
0.2158791422843933,
-0.23189178109169006,
0.2132054567337036,
0.04314680024981499,
0.3190138339996338,
0.14156793057918549,
-0.03178378939628601,
-0.2971877455711365,
-0.17712372541427612,
0.07874580472707748,
-0.01487597543746233,
0.05695869401097298,
-0.04456869512796402,
0.04148193448781967,
-0.1326996088027954,
-0.09376157075166702,
-0.042043790221214294,
0.3803984522819519,
0.01114350464195013,
0.2373117059469223,
0.18086151778697968,
-0.0908328965306282,
0.25140413641929626,
-0.09497004747390747,
-0.012564001604914665,
0.10850422084331512,
0.11664650589227676,
0.005061067640781403,
-0.07604219764471054,
-0.12885630130767822,
0.22724086046218872,
0.3243498206138611,
0.32109808921813965,
-0.2039882391691208,
0.13829314708709717,
0.049784690141677856,
-0.058176103979349136,
0.4174615740776062,
0.3369733393192291,
0.1587650626897812,
-0.04499225318431854,
-0.02708284929394722,
0.2871136963367462,
0.38271981477737427,
-0.24869470298290253,
0.03873073682188988,
-0.31373167037963867,
-0.27047818899154663,
0.37032392621040344,
0.3311016857624054,
0.002678754273802042,
-0.1017884761095047,
0.3540259301662445,
-0.05621202290058136,
-0.09273661673069,
-0.17351779341697693,
-0.10180024057626724,
0.27364692091941833,
0.23078231513500214,
-0.1702154278755188,
0.04188549146056175,
0.03155294433236122,
0.15826253592967987,
0.24948084354400635,
-0.2579774260520935,
0.18776708841323853,
-0.19769755005836487,
0.10826345533132553,
0.33826062083244324,
0.13664759695529938,
-0.06762756407260895,
0.18597312271595,
0.06567325443029404,
0.3725665211677551,
0.0044235908426344395,
0.7724069356918335,
0.010954974219202995,
0.04569917172193527,
0.04335533082485199,
0.22059069573879242,
-0.11918115615844727,
-0.13632646203041077,
-0.2501586973667145,
-0.2826462686061859,
-0.13024254143238068,
-0.26544204354286194,
0.18743978440761566,
-0.08116751909255981,
0.12886668741703033,
0.04959195852279663,
0.09234114736318588,
-0.2246045619249344,
-0.1778474748134613,
-0.16490572690963745,
0.42229509353637695,
-0.274044007062912,
0.2454620748758316,
0.12571419775485992,
0.08393444120883942,
0.21431641280651093,
0.3574659526348114,
0.28376099467277527,
-0.00007102216477505863,
-0.3314856290817261,
0.35977494716644287,
-0.33364373445510864,
-0.1156691238284111,
-0.20689135789871216,
0.3654173016548157,
0.30158817768096924,
0.12808729708194733,
0.31350407004356384,
0.22181954979896545,
-0.22733578085899353,
-0.05644543468952179,
0.07466910779476166,
-0.2550734281539917,
-0.065004862844944,
0.17653286457061768,
0.058225322514772415,
-0.11350614577531815,
-0.4047630727291107,
-0.2626596689224243,
-0.5181843638420105,
0.11703838407993317,
0.33406883478164673,
-0.07819323241710663,
0.08963865786790848,
-0.13099755346775055,
0.15656693279743195,
0.016366373747587204,
0.12159352004528046,
0.42052242159843445,
0.2626701593399048,
0.07875385880470276,
-0.25659653544425964,
-0.3723423182964325,
0.044584617018699646,
0.1857987642288208,
-0.19277314841747284,
-0.1286540925502777,
0.06975410878658295,
0.40654706954956055,
0.33130499720573425,
-0.18914762139320374,
-0.1789577603340149,
-0.5281738638877869,
0.2662973999977112,
-0.21419274806976318,
0.10764036327600479,
-0.07345689833164215,
0.264422208070755,
0.13409189879894257,
-0.1748877763748169,
-0.17157498002052307,
0.14855791628360748,
0.20264317095279694,
-0.31428709626197815,
0.16653917729854584,
-0.12487620860338211,
0.05491873249411583,
0.017008621245622635,
-0.01731005497276783,
0.36023083329200745,
-0.5139238238334656,
-0.1095188558101654,
-0.015457682311534882,
-0.19671830534934998,
-0.3190579414367676,
0.0358908548951149,
0.17548198997974396,
0.41603145003318787,
-0.059851013123989105,
-0.07918880879878998,
-0.08588644862174988,
0.19167964160442352,
0.24380016326904297,
0.031747907400131226,
-0.16199557483196259,
0.13784575462341309,
-0.2386990785598755,
-0.016406601294875145,
-0.06540497392416,
0.36017465591430664,
-0.02694021724164486,
-0.04835483804345131,
-0.34285882115364075,
-0.6533902287483215,
0.3332822322845459,
-0.12101539224386215,
-0.2877958416938782,
0.0354306623339653,
0.207001730799675,
0.0498088113963604,
-0.06921739131212234,
-0.7117758393287659,
-0.04916654899716377,
0.3691146969795227,
0.10504307597875595,
-0.006304384209215641,
0.27046534419059753,
-0.0664266049861908,
-0.08872222155332565,
-0.16514526307582855,
0.4005810618400574,
0.28275367617607117,
-0.1001334935426712,
-0.09855639189481735,
-0.4512099325656891
] |
https://github.com/huggingface/datasets/issues/1849 | Add TIMIT | I am sorry! I created the PR [#1903](https://github.com/huggingface/datasets/pull/1903#). Requesting your comments! CircleCI tests are failing, will address them along with your comments! | ## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 22 | Add TIMIT
## Adding a Dataset
- **Name:** *TIMIT*
- **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems*
- **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT
- **Data:** *https://deepai.org/dataset/timit*
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I am sorry! I created the PR [#1903](https://github.com/huggingface/datasets/pull/1903#). Requesting your comments! CircleCI tests are failing, will address them along with your comments! | [
-0.24184942245483398,
-0.34229138493537903,
-0.14152643084526062,
0.07103144377470016,
-0.03408156707882881,
-0.09505589306354523,
0.1323646605014801,
0.13229112327098846,
-0.318258136510849,
0.21849268674850464,
-0.3416486084461212,
0.18533483147621155,
-0.22746430337429047,
0.2172827571630478,
0.11034166067838669,
-0.2743069529533386,
-0.09841682761907578,
0.07613358646631241,
0.04097740352153778,
-0.015481541864573956,
0.0028424724005162716,
0.17515403032302856,
-0.11235637217760086,
-0.2232402265071869,
-0.030483579263091087,
-0.17091761529445648,
-0.010465840809047222,
-0.1952396035194397,
-0.25214168429374695,
-0.4360911548137665,
-0.2043972760438919,
0.16321632266044617,
-0.0707424134016037,
0.4781770408153534,
-0.00009880099241854623,
-0.04325053095817566,
0.3008359372615814,
-0.2335776388645172,
-0.2098337560892105,
-0.08557028323411942,
0.14705975353717804,
0.0775860995054245,
-0.20774665474891663,
0.013736794702708721,
-0.36321836709976196,
0.08198580145835876,
0.09919557720422745,
-0.11893590539693832,
0.1455514281988144,
0.32980501651763916,
0.3028060793876648,
0.21057499945163727,
0.18437860906124115,
-0.1484052687883377,
0.2919992208480835,
0.12594474852085114,
-0.24496640264987946,
-0.008054102770984173,
0.31580910086631775,
0.265002965927124,
-0.09714695811271667,
0.35748714208602905,
-0.062465496361255646,
-0.011533518321812153,
0.08879470825195312,
-0.056279439479112625,
-0.17253226041793823,
-0.2879767119884491,
-0.09537770599126816,
0.20196478068828583,
0.6051997542381287,
-0.3522334098815918,
-0.32225310802459717,
-0.1541467308998108,
0.11140508949756622,
-0.2598358690738678,
0.04262453317642212,
0.06668306142091751,
-0.344367653131485,
0.2692183554172516,
-0.10051015019416809,
-0.11660803854465485,
-0.10490260273218155,
0.13865283131599426,
0.16674557328224182,
-0.05242900922894478,
-0.19554102420806885,
-0.22955377399921417,
0.049006327986717224,
-0.18060755729675293,
-0.3074803948402405,
0.12588021159172058,
0.060078125447034836,
0.021044738590717316,
0.016498342156410217,
-0.26957231760025024,
0.06441494077444077,
-0.010356809943914413,
0.1720128059387207,
0.27211320400238037,
0.20652936398983002,
0.2726243734359741,
-0.19455280900001526,
0.014900237321853638,
0.03284582868218422,
-0.09673310816287994,
-0.01396060548722744,
-0.2702677547931671,
0.23396079242229462,
-0.02919660322368145,
0.07165170460939407,
-0.03329525515437126,
0.09325864911079407,
0.2528770864009857,
-0.03033057041466236,
-0.18926386535167694,
-0.008639171719551086,
-0.13492241501808167,
-0.16714473068714142,
-0.007682772818952799,
-0.10766025632619858,
-0.031766507774591446,
0.08060554414987564,
0.30811724066734314,
-0.016019213944673538,
0.1887349933385849,
0.02807491645216942,
0.29082563519477844,
-0.10901973396539688,
-0.15775665640830994,
-0.044177234172821045,
0.003654258092865348,
0.06935746222734451,
0.2889716923236847,
0.3754378855228424,
0.01597038097679615,
0.3058302700519562,
-0.010898035950958729,
0.0807986781001091,
0.09819556772708893,
-0.0059637282975018024,
-0.042716823518276215,
0.21094971895217896,
0.030229272320866585,
0.13739095628261566,
-0.028944099321961403,
-0.18011730909347534,
-0.09467320889234543,
-0.21718576550483704,
-0.11171690374612808,
0.15748007595539093,
-0.0062219006940722466,
-0.16788099706172943,
0.3103875517845154,
-0.036877114325761795,
-0.2231859713792801,
0.06277796626091003,
0.5657605528831482,
0.14435994625091553,
-0.24896137416362762,
0.011632327921688557,
0.2420763373374939,
-0.5268596410751343,
0.017017193138599396,
0.12853246927261353,
0.23612740635871887,
-0.11031927913427353,
-0.18066145479679108,
0.02846967987716198,
0.1733754277229309,
0.20712152123451233,
0.3799462616443634,
0.06892576813697815,
0.18846562504768372,
-0.06096501648426056,
0.28286507725715637,
0.027242710813879967,
-0.29479289054870605,
-0.300678014755249,
-0.02058984525501728,
-0.25148284435272217,
-0.022567033767700195,
0.15426751971244812,
0.10468284040689468,
0.18747055530548096,
-0.09376116096973419,
0.21203500032424927,
-0.04559227451682091,
0.019175725057721138,
-0.007250345312058926,
-0.25531432032585144,
-0.18715281784534454,
-0.1492055356502533,
0.1607581079006195,
-0.07634488493204117,
-0.0939919725060463,
0.02108006924390793,
0.11628016084432602,
0.2667902708053589,
-0.05166884884238243,
0.2920295000076294,
0.2032509297132492,
0.32117730379104614,
-0.07045084238052368,
0.15485845506191254,
-0.49718019366264343,
0.36126235127449036,
-0.17646558582782745,
-0.07482488453388214,
0.561905562877655,
-0.16173189878463745,
-0.31721803545951843,
-0.23742912709712982,
-0.15712861716747284,
0.07724951207637787,
0.10639837384223938,
0.32053342461586,
0.26937463879585266,
0.006288104224950075,
0.247822567820549,
-0.05632288008928299,
0.3235149383544922,
-0.04774627834558487,
-0.0809994712471962,
-0.10751410573720932,
-0.0702727884054184,
-0.10817476361989975,
-0.19824032485485077,
0.21347418427467346,
0.3048529028892517,
-0.24919676780700684,
0.10014913976192474,
0.11286845803260803,
0.20631493628025055,
0.0032750191166996956,
0.14448182284832,
-0.09718798846006393,
-0.015565297566354275,
0.3050766885280609,
-0.5114293694496155,
-0.09849949181079865,
0.11172200739383698,
0.1653171330690384,
-0.10061558336019516,
-0.05156805366277695,
0.06793080270290375,
0.4120129644870758,
-0.21242685616016388,
0.048091139644384384,
0.010254287160933018,
0.1641916036605835,
-0.00018485120381228626,
-0.18251635134220123,
-0.13450630009174347,
0.21800348162651062,
0.04898344725370407,
0.08487880975008011,
-0.10276161879301071,
-0.2898692190647125,
0.08874469995498657,
0.19339734315872192,
-0.07005992531776428,
0.2708612382411957,
0.13305296003818512,
-0.25820934772491455,
-0.01508584339171648,
-0.024368921294808388,
-0.2392418384552002,
0.06982710212469101,
0.37994492053985596,
0.1702328771352768,
-0.09907973557710648,
0.06378809362649918,
-0.12425725162029266,
0.17395953834056854,
0.1781301647424698,
-0.333064466714859,
0.22771212458610535,
0.1620798259973526,
0.0017154375091195107,
-0.5846607685089111,
-0.01863176003098488,
-0.1945096105337143,
0.04776757210493088,
-0.2202494591474533,
-0.28042668104171753,
0.08223994076251984,
-0.14020122587680817,
0.039712920784950256,
-0.03471841663122177,
-0.01605612225830555,
0.07515036314725876,
0.36848023533821106,
0.2897177040576935,
-0.11196742951869965,
0.08002644032239914,
-0.07680513709783554,
0.35737451910972595,
0.05504954233765602,
-0.08020392805337906,
-0.18604888021945953,
-0.12917491793632507,
-0.0031824202742427588,
0.2529430389404297,
0.18038628995418549,
0.05368966609239578,
0.4089684784412384,
-0.17186488211154938,
0.23514193296432495,
-0.06996683031320572,
-0.2305307537317276,
0.2565392255783081,
-0.32409927248954773,
0.17489874362945557,
0.06806295365095139,
-0.07923547178506851,
-0.31350627541542053,
-0.587350070476532,
-0.045759037137031555,
-0.2532636821269989,
-0.37231138348579407,
0.010399158112704754,
-0.20134852826595306,
-0.15472742915153503,
-0.23506039381027222,
-0.4306771755218506,
-0.14914731681346893,
-0.4586871862411499,
0.4364931881427765,
0.2045639604330063,
-0.09679710865020752,
0.3382940888404846,
-0.2340959906578064,
0.18165840208530426,
-0.020919805392622948,
0.530971884727478,
-0.3852651119232178,
-0.3563809394836426,
0.2105848491191864,
-0.37856605648994446,
-0.32608142495155334,
-0.27777528762817383,
-0.08220674842596054,
0.1823607236146927,
0.02849057875573635,
-0.2786485552787781,
-0.04565325379371643,
-0.16037966310977936,
0.21617716550827026,
0.07454114407300949,
0.06275951117277145,
0.19091357290744781,
0.2142299860715866,
-0.2686978578567505,
-0.11287903785705566,
-0.04054771363735199,
0.13609758019447327,
0.07163187116384506,
0.14387735724449158,
0.1299644410610199,
-0.1350651979446411,
0.022693563252687454,
0.5563358664512634,
0.23717932403087616,
0.011820447631180286,
0.4369502663612366,
-0.016248978674411774,
0.3077050745487213,
-0.189900204539299,
-0.19969391822814941,
0.26422953605651855,
0.07332716137170792,
0.04866071045398712,
0.4626653790473938,
0.14905120432376862,
-0.3474371135234833,
-0.15629637241363525,
-0.1398710012435913,
-0.24326983094215393,
-0.3702932298183441,
-0.050472550094127655,
-0.054760292172431946,
0.2536337077617645,
-0.10290008783340454,
0.09045851230621338,
-0.12875880300998688,
-0.2342311292886734,
0.2971390187740326,
-0.07439856976270676,
-0.008165602572262287,
-0.21439343690872192,
-0.47032231092453003,
-0.02358175255358219,
-0.5126329064369202,
0.08935041725635529,
0.44683247804641724,
0.22003407776355743,
-0.2683325707912445,
-0.31910568475723267,
-0.05925337225198746,
0.1669139564037323,
0.15646062791347504,
-0.35307806730270386,
-0.14647521078586578,
0.1531504988670349,
0.2743318974971771,
-0.20082105696201324,
0.48389387130737305,
-0.33852455019950867,
-0.09983120858669281,
0.07667738944292068,
0.12654441595077515,
-0.25305846333503723,
0.18956969678401947,
0.1489553451538086,
0.23155486583709717,
0.06222642958164215,
-0.0610579252243042,
0.08712150901556015,
-0.4036608040332794,
-0.1309872418642044,
0.2098194658756256,
0.23389428853988647,
0.16437557339668274,
0.24136678874492645,
0.04847100377082825,
0.1633080393075943,
0.03648350015282631,
0.471426784992218,
0.19709047675132751,
0.16340814530849457,
0.29297804832458496,
0.2803604006767273,
0.17417728900909424,
-0.05315212532877922,
-0.0616629496216774,
0.269021600484848,
0.021143823862075806,
-0.23797902464866638,
-0.15629765391349792,
-0.3631967306137085,
0.2750830352306366,
0.11267358809709549,
0.295468270778656,
0.2113284170627594,
0.0046407547779381275,
0.00901686679571867,
-0.2982656955718994,
0.20845040678977966,
0.1584712415933609,
0.03639713674783707,
-0.31521284580230713,
-0.15679502487182617,
0.06354168802499771,
0.03785162791609764,
-0.03350897878408432,
0.27423110604286194,
0.09553682804107666,
-0.22515159845352173,
0.527974545955658,
-0.0991850346326828,
1.0494732856750488,
-0.023163164034485817,
0.11429504305124283,
0.20589286088943481,
0.16534851491451263,
0.029746195301413536,
-0.25304847955703735,
0.05831601843237877,
0.10285577923059464,
-0.07053062319755554,
-0.005825205706059933,
0.17214466631412506,
-0.20542606711387634,
0.03660130500793457,
-0.4967794120311737,
-0.2816060781478882,
0.25306999683380127,
0.12010205537080765,
0.05397476628422737,
0.34806349873542786,
-0.3170427680015564,
-0.4831202030181885,
-0.170665442943573,
0.31555458903312683,
0.18843281269073486,
0.11580359190702438,
0.25702986121177673,
-0.1254664659500122,
0.01303112506866455,
-0.15305666625499725,
-0.5004336833953857,
-0.18469540774822235,
-0.34754884243011475,
-0.10613520443439484,
-0.12956944108009338,
-0.33799681067466736,
0.2349824756383896,
0.2575417459011078,
0.44675949215888977,
0.30000948905944824,
-0.41855403780937195,
0.09336096793413162,
0.15637847781181335,
-0.08427231013774872,
0.0815119817852974,
0.06697441637516022,
0.27129751443862915,
-0.18066416680812836,
-0.18902155756950378,
0.20537568628787994,
0.11329707503318787,
-0.14876072108745575,
-0.1699918955564499,
-0.12867844104766846,
0.024422623217105865,
-0.29152876138687134,
0.19596488773822784,
0.17398114502429962,
-0.2148865908384323,
-0.21018429100513458,
0.2649528980255127,
0.11412417888641357,
-0.19108448922634125,
0.1638028770685196,
0.0705643817782402,
-0.1502559334039688,
-0.13235367834568024,
0.30768710374832153,
0.12993407249450684,
-0.07643064856529236,
0.29301348328590393,
0.05301850661635399,
-0.23169150948524475,
-0.4250810444355011,
-0.04152580723166466,
-0.27921754121780396,
-0.20171144604682922,
0.0445268489420414,
0.2725238502025604,
-0.1493816375732422,
0.037769071757793427,
0.30835434794425964,
0.07113063335418701,
-0.17822372913360596,
-0.18621736764907837,
0.11855732649564743,
-0.5278727412223816,
0.2509501874446869,
0.05872993543744087,
0.26265767216682434,
0.19052591919898987,
0.22677430510520935,
0.048966098576784134,
-0.14481434226036072,
-0.5076661705970764,
-0.2179989516735077,
-0.23652446269989014,
0.152261883020401,
0.10292928665876389,
-0.33039817214012146,
0.21653781831264496,
-0.03127635642886162,
0.29404574632644653,
0.10687484592199326,
-0.06704481691122055,
-0.32912081480026245,
-0.17182248830795288,
0.0825052335858345,
-0.060948003083467484,
-0.03725605830550194,
0.06753651797771454,
0.04612872749567032,
-0.19000013172626495,
-0.07984801381826401,
0.0884203240275383,
0.33995622396469116,
0.0525493286550045,
0.2045462727546692,
0.05481667071580887,
0.03515656292438507,
0.08850700408220291,
-0.07933633029460907,
0.03933664783835411,
0.12436584383249283,
0.06937182694673538,
-0.06365224719047546,
-0.023176448419690132,
-0.14757391810417175,
0.24098093807697296,
0.3583119809627533,
0.3597869277000427,
-0.17917954921722412,
0.14445096254348755,
0.011083193123340607,
-0.0464872308075428,
0.4243444800376892,
0.30721530318260193,
0.1391834318637848,
-0.06905991584062576,
0.00937624555081129,
0.34175220131874084,
0.37569400668144226,
-0.2730284035205841,
-0.013354961760342121,
-0.22093547880649567,
-0.21016648411750793,
0.3712543547153473,
0.2329464554786682,
0.027400176972150803,
-0.1402464061975479,
0.22001971304416656,
-0.03392051160335541,
0.0619056299328804,
-0.2646511197090149,
-0.14782747626304626,
0.18412889540195465,
0.267627477645874,
-0.13142234086990356,
-0.027513699606060982,
0.052631936967372894,
0.1726982295513153,
0.15478527545928955,
-0.037827569991350174,
0.30558979511260986,
-0.121230848133564,
0.21797777712345123,
0.26083433628082275,
0.1016797125339508,
-0.02204889990389347,
0.059182796627283096,
-0.033441491425037384,
0.33912694454193115,
0.13043293356895447,
0.734674334526062,
-0.028430210426449776,
-0.16054606437683105,
-0.14130473136901855,
0.12004022300243378,
-0.07490599900484085,
-0.18714094161987305,
-0.3938404321670532,
-0.16893479228019714,
-0.02013072557747364,
-0.22072988748550415,
0.16005577147006989,
0.09200489521026611,
0.06087829917669296,
0.04112781584262848,
-0.0018080089939758182,
-0.43894147872924805,
-0.2392473816871643,
-0.1338045746088028,
0.51312255859375,
-0.2622467875480652,
0.15531280636787415,
0.17380979657173157,
-0.11433570086956024,
0.1716642826795578,
0.44021135568618774,
0.3661366105079651,
-0.21684706211090088,
-0.22350116074085236,
0.2903325855731964,
-0.35936805605888367,
-0.11056896299123764,
-0.23416052758693695,
0.4193158745765686,
0.33140525221824646,
0.04628818482160568,
0.295257568359375,
0.24430853128433228,
-0.2006039172410965,
-0.10427960008382797,
0.19254235923290253,
-0.17966271936893463,
-0.17949609458446503,
0.11840911954641342,
-0.10559685528278351,
-0.07571589201688766,
-0.37252792716026306,
-0.24550464749336243,
-0.38388723134994507,
0.23198023438453674,
0.3348488211631775,
-0.20792102813720703,
0.0855826586484909,
-0.18158210813999176,
0.1607811599969864,
0.12193338572978973,
0.2953214645385742,
0.38586461544036865,
0.09111706912517548,
0.16557510197162628,
-0.21646304428577423,
-0.40147897601127625,
0.04405341297388077,
0.1756744682788849,
0.11830425262451172,
-0.19427458941936493,
-0.04005037993192673,
0.3752785921096802,
0.21826711297035217,
-0.1899237483739853,
-0.22121542692184448,
-0.5325389504432678,
0.14689096808433533,
-0.28211501240730286,
0.2319543957710266,
-0.10069623589515686,
0.21952883899211884,
0.08636251837015152,
-0.12299253046512604,
-0.05462593957781792,
0.11866511404514313,
0.20420721173286438,
-0.30104610323905945,
0.05138840526342392,
-0.1029086783528328,
0.09876284748315811,
0.12828285992145538,
-0.033226776868104935,
0.2983715534210205,
-0.49848636984825134,
-0.0636935830116272,
-0.16085195541381836,
-0.14273309707641602,
-0.20073071122169495,
0.07257318496704102,
0.14835770428180695,
0.3701210021972656,
-0.12529543042182922,
-0.03703378140926361,
0.17892102897167206,
0.23037000000476837,
0.20462824404239655,
0.12546436488628387,
-0.19384120404720306,
0.13635499775409698,
-0.21219807863235474,
-0.034990742802619934,
-0.12036938965320587,
0.36384573578834534,
-0.08562453091144562,
-0.015538512729108334,
-0.19828961789608002,
-0.6546860933303833,
0.348566472530365,
-0.09600741416215897,
-0.24562901258468628,
0.061892904341220856,
0.1563703864812851,
-0.08879698812961578,
-0.05378717929124832,
-0.6362180709838867,
0.0021298080682754517,
0.2910185754299164,
0.06208503618836403,
-0.1628783494234085,
0.3317238688468933,
0.03929448500275612,
-0.2380174696445465,
-0.18697841465473175,
0.586060643196106,
0.17302043735980988,
-0.0988856703042984,
-0.04499470442533493,
-0.2793036997318268
] |
https://github.com/huggingface/datasets/issues/1844 | Update Open Subtitles corpus with original sentence IDs | Hi ! You're right this can can useful.
This should be easy to add, so feel free to give it a try if you want to contribute :)
I think we just need to add it to the _generate_examples method of the OpenSubtitles dataset builder [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L103) | Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks! | 46 | Update Open Subtitles corpus with original sentence IDs
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks!
Hi ! You're right this can can useful.
This should be easy to add, so feel free to give it a try if you want to contribute :)
I think we just need to add it to the _generate_examples method of the OpenSubtitles dataset builder [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L103) | [
0.20111314952373505,
0.16045242547988892,
-0.04834134504199028,
-0.20894064009189606,
-0.13016551733016968,
0.2428107112646103,
0.27112454175949097,
0.25712400674819946,
-0.2969919443130493,
-0.03867390379309654,
-0.31456419825553894,
0.24536386132240295,
0.2158559262752533,
-0.07630900293588638,
0.0854991003870964,
-0.33255714178085327,
0.11799400299787521,
0.002580695552751422,
0.5615066885948181,
-0.20760557055473328,
-0.34362590312957764,
0.19639717042446136,
0.012337506748735905,
-0.1273040473461151,
-0.19219864904880524,
0.30858075618743896,
-0.4058002233505249,
0.04762432724237442,
0.057544462382793427,
-0.531326413154602,
0.023193461820483208,
0.5336878299713135,
0.29392969608306885,
0.06753095984458923,
-0.0001140424792538397,
-0.17198456823825836,
0.2067972868680954,
-0.23935924470424652,
-0.2624622583389282,
-0.07093257457017899,
0.08785229176282883,
-0.3210979402065277,
-0.23366431891918182,
-0.3475591838359833,
0.02438722550868988,
0.00292117428034544,
0.08485276997089386,
-0.3639577329158783,
-0.19324196875095367,
0.11321873962879181,
0.100274957716465,
-0.003048193408176303,
0.01376827247440815,
-0.1201961562037468,
0.576749324798584,
-0.030885301530361176,
0.18409119546413422,
0.31087279319763184,
0.5937849283218384,
0.20887349545955658,
0.17910929024219513,
0.3953012228012085,
-0.42678484320640564,
-0.4061584174633026,
-0.22259335219860077,
-0.0590541809797287,
-0.04441562667489052,
-0.2765916585922241,
-0.07530830055475235,
0.14901843667030334,
0.43002650141716003,
-0.11632014065980911,
-0.7273464798927307,
-0.41939467191696167,
0.037132058292627335,
-0.20229260623455048,
-0.2925473153591156,
0.44440609216690063,
0.3025397062301636,
0.33188343048095703,
0.12088606506586075,
-0.1308562159538269,
0.08795499056577682,
-0.07989675551652908,
0.3085596561431885,
0.18706704676151276,
0.24938257038593292,
-0.14552059769630432,
0.11236464232206345,
-0.13167844712734222,
-0.24918170273303986,
0.1970633715391159,
-0.40268632769584656,
0.03559150546789169,
-0.009151686914265156,
-0.11931207031011581,
-0.10486944764852524,
-0.48676303029060364,
-0.08578228950500488,
-0.03607551380991936,
0.05946061760187149,
0.08932945877313614,
-0.2421431839466095,
-0.10717692971229553,
0.10650685429573059,
0.2985197603702545,
0.43470028042793274,
0.20944634079933167,
-0.08220457285642624,
0.043052613735198975,
-0.13784068822860718,
-0.04079820588231087,
-0.2322014570236206,
0.23161669075489044,
-0.31860125064849854,
0.24694278836250305,
0.13919638097286224,
0.05571271851658821,
-0.003922872710973024,
0.1390763521194458,
-0.45420828461647034,
-0.05862277001142502,
-0.1460413783788681,
0.014532579109072685,
0.08818084746599197,
0.2371000349521637,
0.22807033360004425,
0.11761296540498734,
-0.011767088435590267,
-0.34543460607528687,
-0.09803684800863266,
-0.022603211924433708,
0.05254180729389191,
0.07269024848937988,
-0.10430138558149338,
-0.3754672706127167,
0.3222719132900238,
-0.2243034690618515,
-0.154977485537529,
-0.14108285307884216,
-0.2971782386302948,
0.14998437464237213,
0.03973602503538132,
-0.19256550073623657,
0.041253864765167236,
0.015070478431880474,
-0.14075611531734467,
-0.2130511850118637,
0.037502072751522064,
0.23652829229831696,
-0.11831336468458176,
-0.30880147218704224,
-0.3827461898326874,
0.10784809291362762,
-0.39662912487983704,
-0.31418734788894653,
0.37817901372909546,
0.37225303053855896,
0.19208300113677979,
-0.2534312605857849,
0.2706924080848694,
0.14604975283145905,
-0.26371505856513977,
0.15512706339359283,
-0.15512774884700775,
0.618880033493042,
-0.03130742162466049,
-0.11252061277627945,
0.43396714329719543,
0.16162604093551636,
0.15794770419597626,
0.10298918187618256,
0.41291236877441406,
0.05533622205257416,
-0.010922342538833618,
0.05937333032488823,
-0.4170093834400177,
-0.6448663473129272,
-0.013277431949973106,
0.02969987690448761,
0.09563495218753815,
0.0773250088095665,
0.33469846844673157,
-0.005737136118113995,
0.6432272791862488,
-0.39047151803970337,
-0.13780608773231506,
-0.02482667751610279,
0.01373231690376997,
0.11155259609222412,
-0.17397955060005188,
-0.16759099066257477,
-0.28263339400291443,
0.17587195336818695,
-0.06575057655572891,
0.1716846376657486,
0.30920299887657166,
0.07023349404335022,
0.4772825837135315,
-0.14974580705165863,
0.1135956421494484,
0.03082924708724022,
-0.0855417251586914,
0.40202200412750244,
0.1651069074869156,
0.13937897980213165,
0.16537031531333923,
0.12263572961091995,
0.10773145407438278,
0.3007264733314514,
0.15163059532642365,
-0.2972259223461151,
-0.007740254979580641,
-0.018493743613362312,
0.1842532455921173,
-0.2402288168668747,
0.026861287653446198,
0.08024567365646362,
-0.15752021968364716,
0.23021972179412842,
-0.32264918088912964,
0.10638861358165741,
-0.19105474650859833,
0.032015759497880936,
-0.23047634959220886,
-0.10933350771665573,
0.19024235010147095,
0.024031538516283035,
-0.024654466658830643,
0.3475865423679352,
-0.13663151860237122,
0.12595802545547485,
-0.1365872323513031,
0.4836278557777405,
-0.07065574079751968,
0.4251634180545807,
0.16385599970817566,
-0.1920097917318344,
0.34966811537742615,
-0.27630025148391724,
0.13532719016075134,
-0.05118623375892639,
-0.1747104674577713,
-0.01206752099096775,
-0.06255517154932022,
0.0382838174700737,
-0.032681480050086975,
-0.05374971404671669,
-0.0300626028329134,
0.06769009679555893,
-0.17351560294628143,
0.057038988918066025,
-0.5073081254959106,
-0.3154095411300659,
-0.042331188917160034,
0.06572332233190536,
-0.4276808500289917,
0.060606569051742554,
-0.14913310110569,
0.19117023050785065,
0.15270203351974487,
-0.33507880568504333,
-0.016220860183238983,
0.315186083316803,
-0.030840417370200157,
0.048844464123249054,
0.0017454972257837653,
0.12141397595405579,
0.03305578604340553,
0.21844078600406647,
0.17317704856395721,
0.19669023156166077,
0.5540253520011902,
-0.3212427496910095,
0.2545955181121826,
0.38763323426246643,
-0.24620971083641052,
-0.012334933504462242,
0.2942352294921875,
0.2663767337799072,
-0.22167742252349854,
0.5088400840759277,
0.015541378408670425,
0.030017398297786713,
-0.09838982671499252,
0.002421253826469183,
-0.23008081316947937,
-0.43148842453956604,
0.0451226681470871,
-0.4368385970592499,
-0.0910852774977684,
-0.028429130092263222,
0.20962078869342804,
-0.2738001048564911,
-0.31436532735824585,
0.3792944848537445,
0.25404658913612366,
0.21356375515460968,
-0.14553920924663544,
0.0765378326177597,
0.05472422018647194,
-0.5638502240180969,
0.2563210725784302,
0.005590645130723715,
-0.16943392157554626,
-0.14029668271541595,
0.10020216554403305,
-0.3154428005218506,
0.09402657300233841,
-0.35242798924446106,
-0.2280275523662567,
-0.24671977758407593,
-0.04561469703912735,
-0.026766762137413025,
0.4491197466850281,
-0.2979276478290558,
-0.12813958525657654,
-0.25952082872390747,
-0.09630463272333145,
-0.04213075712323189,
-0.16364282369613647,
-0.2893580496311188,
-0.06609855592250824,
0.003379630157724023,
-0.20846274495124817,
-0.13786593079566956,
-0.241098091006279,
-0.42640286684036255,
0.4629021883010864,
-0.015184923075139523,
0.14536164700984955,
0.32185500860214233,
-0.10292685031890869,
-0.13518399000167847,
-0.0863545835018158,
0.12377241253852844,
-0.047182876616716385,
-0.5483480095863342,
0.10134729743003845,
-0.263550341129303,
-0.09495997428894043,
-0.2201230525970459,
-0.1992487907409668,
-0.19493918120861053,
-0.3742797076702118,
-0.12437598407268524,
0.13961192965507507,
0.18858809769153595,
-0.165631964802742,
0.5132588148117065,
0.3430977761745453,
0.010856439359486103,
0.015214059501886368,
-0.007551121059805155,
-0.17368671298027039,
-0.24860134720802307,
0.11736607551574707,
0.37634557485580444,
0.09782219678163528,
0.011675017885863781,
0.1348608434200287,
0.10203159600496292,
0.014149375259876251,
0.06178285554051399,
0.03846150264143944,
0.34458479285240173,
0.09133587777614594,
0.26370084285736084,
0.09939712285995483,
-0.48505064845085144,
0.15641184151172638,
-0.1270902454853058,
0.005801289342343807,
0.46932217478752136,
0.20178630948066711,
-0.22099854052066803,
-0.07314013689756393,
-0.4381101429462433,
-0.11399400979280472,
-0.15372727811336517,
-0.2047858089208603,
-0.35173270106315613,
0.28498801589012146,
0.24827192723751068,
-0.13062116503715515,
-0.2383817583322525,
-0.09966295212507248,
0.09692081063985825,
0.041692040860652924,
0.5833786725997925,
0.07282758504152298,
-0.08383890986442566,
0.15343303978443146,
0.29567426443099976,
0.1817958503961563,
0.4823205769062042,
-0.13139544427394867,
0.34250444173812866,
-0.1902778148651123,
0.07162541151046753,
0.28950005769729614,
0.32054245471954346,
-0.1360018402338028,
-0.327641099691391,
0.02791261486709118,
0.055018145591020584,
-0.0351121760904789,
-0.1570398360490799,
0.22971779108047485,
-0.39355701208114624,
0.5220838189125061,
-0.13180191814899445,
-0.08091777563095093,
0.2195267677307129,
0.46116262674331665,
-0.18753913044929504,
-0.13226117193698883,
-0.18748076260089874,
-0.02389889769256115,
-0.16248400509357452,
-0.6518242955207825,
0.013277951627969742,
0.022375376895070076,
-0.20794786512851715,
0.05204395949840546,
0.017108675092458725,
0.040080439299345016,
0.23638026416301727,
0.07201191037893295,
-0.143366277217865,
0.0447874590754509,
0.5176128149032593,
0.21862760186195374,
0.10451123863458633,
-0.14030581712722778,
0.1684902012348175,
0.45280739665031433,
-0.4579150378704071,
-0.00114030996337533,
-0.20725741982460022,
0.01959456317126751,
0.35988226532936096,
0.3509310185909271,
0.4492095112800598,
0.04550781100988388,
0.18359766900539398,
-0.2512091100215912,
-0.04176223278045654,
-0.09711170941591263,
-0.14152857661247253,
-0.0001776824501575902,
-0.11033656448125839,
-0.6272034645080566,
0.07981500029563904,
-0.3005560636520386,
-0.08088415861129761,
-0.6132519245147705,
0.14876066148281097,
-0.07299922406673431,
0.38172727823257446,
0.3588346838951111,
0.9718952178955078,
0.11647774279117584,
-0.003187938127666712,
-0.11295045167207718,
0.023306356742978096,
0.5999670028686523,
0.12887363135814667,
-0.14293712377548218,
-0.1546355038881302,
-0.07747361063957214,
0.11473958194255829,
0.1504564732313156,
-0.24651658535003662,
-0.2554110586643219,
-0.32861948013305664,
-0.01188710704445839,
0.45633259415626526,
-0.08105242252349854,
0.28316763043403625,
0.16639450192451477,
0.12661868333816528,
-0.4115236699581146,
0.24087148904800415,
0.05317438766360283,
-0.016110479831695557,
0.12228542566299438,
0.029314074665308,
-0.34165868163108826,
0.2991665303707123,
-0.042087044566869736,
-0.2901458144187927,
-0.006262999959290028,
-0.022911865264177322,
-0.17377574741840363,
0.008344236761331558,
-0.01630876027047634,
-0.03141806647181511,
0.48206827044487,
0.40394049882888794,
0.20794464647769928,
0.32599177956581116,
0.15581446886062622,
0.6453319191932678,
-0.24280180037021637,
0.203120157122612,
0.16558973491191864,
0.32809269428253174,
-0.18769825994968414,
-0.33549878001213074,
-0.10833711922168732,
0.20841996371746063,
-0.09745525568723679,
-0.15421423316001892,
-0.1353328824043274,
-0.06440186500549316,
0.1207851842045784,
-0.05367215350270271,
0.15611104667186737,
-0.12906140089035034,
-0.26357805728912354,
0.03457042574882507,
0.06935019046068192,
-0.20684196054935455,
-0.10446786880493164,
-0.21203340590000153,
-0.2099652737379074,
-0.1732969731092453,
0.2547554075717926,
0.051198702305555344,
-0.3391386568546295,
0.24685142934322357,
0.4144500195980072,
0.01823241077363491,
0.11217712610960007,
0.06474275141954422,
-0.49476346373558044,
-0.3805942237377167,
0.08185987174510956,
-0.14771588146686554,
-0.10538872331380844,
-0.03823825344443321,
0.003004944883286953,
0.06544359028339386,
0.27610743045806885,
0.07738864421844482,
0.061019547283649445,
-0.5125805735588074,
0.14177687466144562,
-0.21698853373527527,
0.1952538788318634,
-0.07053788006305695,
-0.4104268550872803,
-0.09728096425533295,
0.08495616167783737,
-0.2472589761018753,
0.11677204072475433,
0.0008765058591961861,
0.014864899218082428,
0.5638492107391357,
-0.06998461484909058,
-0.2095898538827896,
-0.35243114829063416,
0.030410723760724068,
0.17927898466587067,
0.13760967552661896,
-0.07306628674268723,
-0.3910711407661438,
0.14693324267864227,
-0.0028445404022932053,
0.20717039704322815,
-0.026740072295069695,
-0.06757038086652756,
0.10649986565113068,
-0.2079852968454361,
-0.11042637377977371,
0.3379041254520416,
-0.020573267713189125,
0.4321057200431824,
0.1507405936717987,
0.11594585329294205,
0.06842179596424103,
0.09469754248857498,
0.1331353336572647,
0.2541625499725342,
-0.07556603103876114,
0.10817818343639374,
-0.21997231245040894,
-0.11549754440784454,
0.398003488779068,
0.11266490817070007,
0.32495731115341187,
0.13414788246154785,
0.3710058331489563,
0.16622623801231384,
0.2087058275938034,
0.3805689513683319,
-0.08650241047143936,
-0.02611026167869568,
-0.13075630366802216,
-0.04566827788949013,
0.0539926216006279,
0.14767548441886902,
-0.28267669677734375,
0.25303956866264343,
-0.13120721280574799,
-0.07670368999242783,
-0.05607245862483978,
0.39001673460006714,
0.21056319773197174,
-0.11010172963142395,
0.020421581342816353,
0.258775532245636,
0.1919853389263153,
0.22413909435272217,
0.24550502002239227,
0.36734214425086975,
0.11780249327421188,
-0.1513083279132843,
-0.23452520370483398,
-0.12153845280408859,
0.23630152642726898,
-0.0868084579706192,
-0.1539429873228073,
0.0963260605931282,
0.6369194388389587,
0.2987172305583954,
0.3417820334434509,
0.2459932565689087,
0.22330068051815033,
0.1631590574979782,
0.15148517489433289,
0.1554122120141983,
0.1427953988313675,
0.15424026548862457,
0.3192991614341736,
-0.06369199603796005,
0.11141082644462585,
0.826048731803894,
0.1878919154405594,
-0.38553279638290405,
-0.3495057225227356,
0.07462319731712341,
-0.055497828871011734,
-0.27687790989875793,
-0.014108322560787201,
0.03825385868549347,
-0.4017593562602997,
0.07687291502952576,
0.01685091108083725,
-0.11809409409761429,
-0.4902292788028717,
-0.4592854082584381,
0.5727486610412598,
-0.2730345129966736,
-0.08359445631504059,
0.38947606086730957,
-0.05972764641046524,
0.4841773509979248,
0.6211233735084534,
0.30141305923461914,
0.05034983903169632,
0.08070816099643707,
0.4370158612728119,
-0.20491795241832733,
0.01706846058368683,
0.27130091190338135,
0.24280844628810883,
0.17798876762390137,
0.13398247957229614,
0.04212384298443794,
0.03340020403265953,
-0.08925238251686096,
0.08767948299646378,
-0.09865810722112656,
-0.011544108390808105,
-0.087525874376297,
0.480568528175354,
0.1768520474433899,
-0.22676414251327515,
-0.15391846001148224,
0.28142520785331726,
-0.31285545229911804,
0.12963160872459412,
0.07032144069671631,
-0.059743884950876236,
-0.11075333505868912,
0.09998416900634766,
0.03456161916255951,
0.12254463136196136,
0.2274809628725052,
0.529346227645874,
0.04868598282337189,
0.04729960113763809,
0.06719307601451874,
-0.370539128780365,
-0.23245547711849213,
0.3131972551345825,
0.15875422954559326,
0.10722155123949051,
-0.26130080223083496,
0.5000705718994141,
0.32677358388900757,
-0.31887322664260864,
-0.15764766931533813,
-0.45474112033843994,
0.16576151549816132,
-0.14729933440685272,
0.003909410443156958,
0.17365024983882904,
0.1379595547914505,
0.03778085485100746,
0.3426952064037323,
-0.2642752528190613,
-0.48458126187324524,
-0.051927950233221054,
0.17417271435260773,
0.03939012810587883,
0.03168205916881561,
-0.08917498588562012,
0.03425939008593559,
-0.10339521616697311,
-0.053446024656295776,
-0.13808485865592957,
-0.10362444072961807,
-0.1395941972732544,
-0.5137284398078918,
-0.1348688006401062,
0.0003542316553648561,
-0.11348503828048706,
0.3835102915763855,
-0.02621561847627163,
-0.17794394493103027,
0.15348440408706665,
-0.201599583029747,
0.06930037587881088,
-0.007451409939676523,
-0.5337439179420471,
0.05496453121304512,
-0.03533731773495674,
-0.15747472643852234,
0.22660760581493378,
0.14938072860240936,
0.13262785971164703,
0.25816842913627625,
-0.43739309906959534,
-0.49707236886024475,
0.572513997554779,
-0.23977741599082947,
0.12965992093086243,
-0.25250044465065,
0.27743983268737793,
0.195723295211792,
0.07596773654222488,
-0.5542812943458557,
0.05961143970489502,
0.3096807301044464,
0.006181848235428333,
-0.39369043707847595,
0.18284828960895538,
0.1197395920753479,
-0.0011749928817152977,
-0.18912409245967865,
-0.31560686230659485,
0.28811585903167725,
-0.19431747496128082,
-0.2394295483827591,
-0.020411239936947823
] |
https://github.com/huggingface/datasets/issues/1844 | Update Open Subtitles corpus with original sentence IDs | Hey @lhoestq , absolutely yes! Just one question before I start implementing. The ids found in the zip file have this format:
(the following is line `22497315` of the `ids` file of the `de-en` dump)
`de/2017/7006210/7063319.xml.gz en/2017/7006210/7050201.xml.gz 335 339 340` (every space is actually a tab, aside from the space between `339` and `340`)
Where filenames encode the information like this: `lang/year/imdb_id/opensubtitles_id.xml.gz` whereas the numbers correspond to the sentence ids which are linked together (i.e. sentence `335` of the German subtitle corresponds to lines `339` and `340` of the English file)
That being said, do you think I should stick to the raw sentence id (and replace the current sequential id) or should I include more detailed metadata (or both things maybe)?
Going with raw ID is surely simpler, but including `year`, `imdbId` and `subtitleId` should save space as they're just integers; besides, any operation (like filtering or grouping) will be much easier if users don't have to manually parse the ids every time.
As for the language-specific sentenceIds, what could be the best option? A list of integers or a comma-separated string?
**Note:** I did not find any official information about this encoding, but it appears to check out:
https://www.imdb.com/title/tt7006210/, https://www.opensubtitles.org/en/subtitles/7063319 and https://www.opensubtitles.org/en/subtitles/7050201 all link to the same episode, so I guess (I hope!) it's correct.
| Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks! | 217 | Update Open Subtitles corpus with original sentence IDs
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks!
Hey @lhoestq , absolutely yes! Just one question before I start implementing. The ids found in the zip file have this format:
(the following is line `22497315` of the `ids` file of the `de-en` dump)
`de/2017/7006210/7063319.xml.gz en/2017/7006210/7050201.xml.gz 335 339 340` (every space is actually a tab, aside from the space between `339` and `340`)
Where filenames encode the information like this: `lang/year/imdb_id/opensubtitles_id.xml.gz` whereas the numbers correspond to the sentence ids which are linked together (i.e. sentence `335` of the German subtitle corresponds to lines `339` and `340` of the English file)
That being said, do you think I should stick to the raw sentence id (and replace the current sequential id) or should I include more detailed metadata (or both things maybe)?
Going with raw ID is surely simpler, but including `year`, `imdbId` and `subtitleId` should save space as they're just integers; besides, any operation (like filtering or grouping) will be much easier if users don't have to manually parse the ids every time.
As for the language-specific sentenceIds, what could be the best option? A list of integers or a comma-separated string?
**Note:** I did not find any official information about this encoding, but it appears to check out:
https://www.imdb.com/title/tt7006210/, https://www.opensubtitles.org/en/subtitles/7063319 and https://www.opensubtitles.org/en/subtitles/7050201 all link to the same episode, so I guess (I hope!) it's correct.
| [
0.25303956866264343,
0.2482582926750183,
-0.01338670402765274,
-0.1263539344072342,
-0.2649044096469879,
0.16548404097557068,
0.2578907310962677,
0.2178698182106018,
-0.3385523557662964,
-0.11331034451723099,
-0.31917351484298706,
0.3215388357639313,
0.1591855138540268,
-0.14851902425289154,
0.07733912765979767,
-0.2948981523513794,
0.13163137435913086,
-0.12500137090682983,
0.4648749828338623,
-0.23000063002109528,
-0.3619813621044159,
0.3236781656742096,
-0.037035781890153885,
-0.09360092133283615,
-0.06153500825166702,
0.35297834873199463,
-0.4526572823524475,
0.2638050317764282,
-0.04466957971453667,
-0.4046931862831116,
-0.06947671622037888,
0.5757683515548706,
0.32399845123291016,
0.12948836386203766,
-0.00011813001037808135,
-0.2874707877635956,
0.10348869860172272,
-0.33695507049560547,
-0.19638794660568237,
0.013003941625356674,
-0.008869812823832035,
-0.45481839776039124,
-0.3890918791294098,
-0.4192703664302826,
0.1541498750448227,
-0.026184460148215294,
0.11121084541082382,
-0.3906290531158447,
0.12096373736858368,
0.08185958117246628,
0.041335564106702805,
-0.20768293738365173,
0.1595655232667923,
-0.07562438398599625,
0.5919957160949707,
0.01165164913982153,
0.2608611285686493,
0.3210153579711914,
0.6891133785247803,
0.17039327323436737,
0.0037902332842350006,
0.30197709798812866,
-0.28698045015335083,
-0.36340028047561646,
-0.11784512549638748,
-0.0524752251803875,
0.16508790850639343,
-0.3370412290096283,
-0.09824961423873901,
0.05359208956360817,
0.38325145840644836,
-0.1271124631166458,
-0.6749774813652039,
-0.40485793352127075,
-0.12872527539730072,
-0.2527375817298889,
-0.23952056467533112,
0.24748696386814117,
0.21076421439647675,
0.30219435691833496,
0.20629005134105682,
-0.08327176421880722,
0.033934760838747025,
-0.009423982352018356,
0.12937812507152557,
0.5042905211448669,
0.30082982778549194,
-0.13671880960464478,
0.18754665553569794,
-0.12222571671009064,
-0.15834587812423706,
0.10580502450466156,
-0.3015631437301636,
0.058504655957221985,
0.09428797662258148,
-0.2353825718164444,
-0.16159725189208984,
-0.6308350563049316,
0.07443341612815857,
-0.04008594527840614,
0.07091906666755676,
0.1509944349527359,
-0.12247104942798615,
-0.13616831600666046,
0.16982479393482208,
0.42949092388153076,
0.4613444209098816,
0.10246454924345016,
-0.15213699638843536,
0.012433545663952827,
0.06591460853815079,
0.07664106041193008,
-0.21180754899978638,
0.15157450735569,
-0.35875168442726135,
0.4623747169971466,
-0.025166597217321396,
0.054059118032455444,
0.08127225190401077,
0.17481310665607452,
-0.3938654065132141,
-0.16476330161094666,
-0.17462846636772156,
-0.16310830414295197,
0.0896611362695694,
0.3201335668563843,
0.1945275366306305,
0.085331492125988,
-0.02481582947075367,
-0.3484390676021576,
-0.03040519542992115,
-0.023160507902503014,
-0.0796521008014679,
-0.030186524614691734,
-0.09082046151161194,
-0.2682773768901825,
0.24770338833332062,
-0.22996187210083008,
-0.1800292432308197,
-0.10327264666557312,
-0.22971872985363007,
0.12825027108192444,
0.06654411554336548,
-0.2357315868139267,
-0.058126308023929596,
0.005192786920815706,
-0.16248413920402527,
-0.25964149832725525,
-0.06650803238153458,
0.25974422693252563,
-0.19970379769802094,
-0.22259652614593506,
-0.3762700855731964,
0.055048465728759766,
-0.3740643262863159,
-0.2558545172214508,
0.4713924527168274,
0.41036927700042725,
0.16033951938152313,
-0.30926886200904846,
0.20566421747207642,
0.23611344397068024,
-0.28182438015937805,
0.12934905290603638,
-0.22696667909622192,
0.6784197688102722,
-0.2738693356513977,
0.026213979348540306,
0.32774680852890015,
0.22427250444889069,
0.29164451360702515,
0.0869121253490448,
0.34883177280426025,
-0.018048278987407684,
0.10294990241527557,
0.1082906424999237,
-0.3351134955883026,
-0.5341983437538147,
0.004710379056632519,
0.16751806437969208,
0.00810393039137125,
0.10241779685020447,
0.3291328251361847,
-0.09774245321750641,
0.5350018739700317,
-0.4903382956981659,
-0.00557717215269804,
-0.004530356731265783,
-0.004121718462556601,
0.10316655039787292,
-0.23951037228107452,
-0.2100033164024353,
-0.18952837586402893,
0.12656712532043457,
-0.018291262909770012,
0.01773773692548275,
0.2711999714374542,
0.08739599585533142,
0.4465693533420563,
-0.11886115372180939,
0.13697215914726257,
0.08709104359149933,
-0.17913928627967834,
0.41757845878601074,
0.18146856129169464,
0.3354213237762451,
-0.055051691830158234,
0.08757086098194122,
-0.07125706225633621,
0.2913721799850464,
0.0699675902724266,
-0.2244156450033188,
0.004741210024803877,
-0.08303797245025635,
0.16839070618152618,
-0.2202780395746231,
0.02113347500562668,
0.20273186266422272,
-0.09428506344556808,
0.053580690175294876,
-0.34074661135673523,
0.07406432926654816,
0.030033499002456665,
0.024565283209085464,
-0.3404153883457184,
-0.09290957450866699,
0.0669451504945755,
0.034207362681627274,
-0.06375758349895477,
0.25283437967300415,
-0.06909390538930893,
-0.04180068150162697,
-0.07419184595346451,
0.4374389946460724,
0.08160699903964996,
0.1990164965391159,
0.07984321564435959,
-0.1302943229675293,
0.4036842882633209,
-0.19520962238311768,
0.31031298637390137,
0.008368570357561111,
-0.16332946717739105,
-0.12017682194709778,
-0.11960170418024063,
0.052189067006111145,
-0.13442349433898926,
-0.12013866007328033,
-0.1318625658750534,
-0.042953960597515106,
-0.18005095422267914,
0.0462145060300827,
-0.5524294376373291,
-0.3059338629245758,
-0.12597747147083282,
0.07822860777378082,
-0.35594508051872253,
0.20434799790382385,
-0.033742357045412064,
0.07002950459718704,
0.17989195883274078,
-0.3022332191467285,
-0.18355682492256165,
0.29939326643943787,
0.1039043590426445,
-0.028523901477456093,
0.08373285084962845,
0.1877773255109787,
0.10980164259672165,
0.2179262638092041,
0.2721731662750244,
0.18564805388450623,
0.5387429594993591,
-0.3212418556213379,
0.1539241522550583,
0.37750527262687683,
-0.27003782987594604,
0.09313134104013443,
0.16638898849487305,
0.33744874596595764,
-0.07460591197013855,
0.4613170027732849,
0.13286978006362915,
-0.02137313224375248,
-0.09505666792392731,
0.10007297247648239,
-0.1170581728219986,
-0.4870333671569824,
0.05278950184583664,
-0.4062764644622803,
-0.09331551939249039,
-0.0032705944031476974,
0.29487937688827515,
-0.4022116959095001,
-0.4209003150463104,
0.3982211947441101,
0.44751203060150146,
0.2819496691226959,
-0.16609816253185272,
0.04999029263854027,
-0.055149029940366745,
-0.5353000164031982,
0.14355570077896118,
-0.017098763957619667,
0.026980221271514893,
-0.07719864696264267,
-0.038211479783058167,
-0.3761483132839203,
0.08115364611148834,
-0.2757059335708618,
-0.37157824635505676,
-0.23721152544021606,
-0.10246254503726959,
0.056387584656476974,
0.32515308260917664,
-0.18168315291404724,
-0.14083321392536163,
-0.3250475823879242,
-0.09822654724121094,
0.03373930603265762,
-0.12492641806602478,
-0.2722988724708557,
0.0482245571911335,
-0.05976538732647896,
-0.2288578748703003,
-0.10427485406398773,
-0.3540494441986084,
-0.38074764609336853,
0.3775182366371155,
0.04172555357217789,
0.2504078447818756,
0.2632564306259155,
-0.1098388284444809,
-0.22204433381557465,
0.0035443524830043316,
0.0477159321308136,
-0.05024375766515732,
-0.5488940477371216,
0.14635001122951508,
-0.2529657483100891,
-0.08062199503183365,
-0.23956198990345,
-0.2055957019329071,
-0.08891715854406357,
-0.2992270886898041,
-0.0037734091747552156,
0.17298458516597748,
0.23577022552490234,
-0.1624864786863327,
0.3506122827529907,
0.3530941903591156,
0.16058452427387238,
0.012619851157069206,
0.037452444434165955,
-0.15947000682353973,
-0.13148944079875946,
0.23385968804359436,
0.41422945261001587,
0.16997990012168884,
0.11128676682710648,
0.006885339040309191,
0.2042994499206543,
-0.00313134235329926,
0.09562262892723083,
0.06477969139814377,
0.27459555864334106,
0.2683444619178772,
0.19466201961040497,
0.09586485475301743,
-0.38048794865608215,
-0.018142057582736015,
-0.049197420477867126,
-0.04049070551991463,
0.5621248483657837,
0.1404634714126587,
-0.3641778826713562,
-0.2375997006893158,
-0.20990203320980072,
-0.08275572210550308,
-0.18771854043006897,
-0.10308448225259781,
-0.1791365146636963,
0.16771559417247772,
0.18129515647888184,
-0.12903453409671783,
-0.3685336112976074,
-0.0173309538513422,
0.08364313095808029,
0.022530196234583855,
0.5093557834625244,
0.1372777670621872,
-0.027088137343525887,
0.237823024392128,
0.15795733034610748,
0.2556654214859009,
0.44533610343933105,
-0.1813916563987732,
0.30572429299354553,
-0.22147920727729797,
0.06650616228580475,
0.12079039961099625,
0.12766431272029877,
-0.13939553499221802,
-0.2735547423362732,
0.14306668937206268,
0.13581250607967377,
0.005356500390917063,
-0.18448665738105774,
0.07937082648277283,
-0.5605741739273071,
0.6572227478027344,
-0.2063099592924118,
-0.31284984946250916,
0.11389322578907013,
0.3463485538959503,
-0.2300785332918167,
-0.05025194212794304,
-0.18497121334075928,
0.1273478865623474,
-0.22020132839679718,
-0.5741532444953918,
-0.008901474066078663,
0.13343650102615356,
-0.26749879121780396,
0.1891990303993225,
0.09039796888828278,
0.1831369400024414,
0.21046407520771027,
0.12014565616846085,
-0.14546161890029907,
-0.1112171933054924,
0.5019412040710449,
0.0752011239528656,
0.13966409862041473,
-0.13228070735931396,
0.15097324550151825,
0.321626216173172,
-0.4710199236869812,
-0.056966982781887054,
-0.12523095309734344,
-0.06596618890762329,
0.23200824856758118,
0.4689914882183075,
0.3784625828266144,
-0.22327162325382233,
0.16396819055080414,
-0.2812078893184662,
-0.08889634162187576,
-0.15284034609794617,
-0.051398273557424545,
0.014265654608607292,
-0.0724855288863182,
-0.5687927603721619,
0.025669347494840622,
-0.1905837059020996,
-0.20895475149154663,
-0.46142297983169556,
-0.013613156042993069,
-0.17130956053733826,
0.5519627332687378,
0.40348777174949646,
1.0733833312988281,
0.14489366114139557,
-0.018529940396547318,
-0.14812350273132324,
0.06400948762893677,
0.49129343032836914,
-0.018307745456695557,
-0.132243350148201,
-0.09088791161775589,
0.03395882993936539,
0.020684685558080673,
0.1917443573474884,
-0.15988798439502716,
0.030486447736620903,
-0.3327673077583313,
0.012082469649612904,
0.4895658791065216,
-0.3025802671909332,
0.16467784345149994,
0.2287432998418808,
0.0793672725558281,
-0.35939285159111023,
0.2810900807380676,
0.030774537473917007,
-0.07432112097740173,
0.13365726172924042,
0.023589786142110825,
-0.45084938406944275,
0.06300105899572372,
-0.11769260466098785,
-0.17711761593818665,
-0.10228975117206573,
-0.16403990983963013,
-0.1470663845539093,
-0.15710560977458954,
0.0631597563624382,
-0.0823279395699501,
0.4446714222431183,
0.3506681025028229,
0.15070343017578125,
0.36119362711906433,
0.03091485984623432,
0.7040260434150696,
-0.15926530957221985,
0.2576505243778229,
0.08566999435424805,
0.3726046085357666,
-0.1405431479215622,
-0.17358046770095825,
-0.15606556832790375,
0.12236680835485458,
-0.05193031206727028,
-0.09589841961860657,
-0.14764179289340973,
0.0959714949131012,
0.07698479294776917,
0.006542561575770378,
0.3046066164970398,
-0.34876614809036255,
-0.08539579063653946,
0.019490431994199753,
-0.012628941796720028,
-0.23871959745883942,
0.051356710493564606,
-0.3527485728263855,
-0.1641177386045456,
-0.11403792351484299,
0.23145611584186554,
-0.04779363423585892,
-0.37624391913414,
0.08495532721281052,
0.37657007575035095,
-0.06806161999702454,
0.15894228219985962,
0.03155514597892761,
-0.5533148646354675,
-0.46057403087615967,
-0.0533403679728508,
-0.2023480236530304,
-0.23779450356960297,
-0.06323084980249405,
0.031679634004831314,
0.2875439524650574,
0.29548534750938416,
0.2739045321941376,
0.13881738483905792,
-0.4811055362224579,
0.25812676548957825,
-0.17333288490772247,
0.209906667470932,
-0.04421113431453705,
-0.5055652260780334,
-0.12442295998334885,
0.07458227872848511,
-0.2233344465494156,
0.21714885532855988,
0.1428261399269104,
-0.03370361030101776,
0.5198437571525574,
-0.1664751023054123,
-0.332339882850647,
-0.28783097863197327,
-0.0012587916571646929,
0.27724960446357727,
0.12124636024236679,
-0.024707503616809845,
-0.25373414158821106,
0.1573597490787506,
0.04111599922180176,
-0.057244136929512024,
0.07723096013069153,
-0.0840780958533287,
0.060328416526317596,
-0.15456002950668335,
-0.07044634222984314,
0.24450546503067017,
0.004030470736324787,
0.3842100203037262,
0.32613447308540344,
0.22467634081840515,
0.05690523982048035,
0.20616549253463745,
0.208181694149971,
0.3820979595184326,
-0.15889544785022736,
0.1095414087176323,
-0.24455459415912628,
-0.14863191545009613,
0.40110716223716736,
0.20849916338920593,
0.3131086230278015,
0.07997953146696091,
0.37482750415802,
0.15595588088035583,
0.17768599092960358,
0.4541480541229248,
-0.15974563360214233,
0.14509102702140808,
-0.11014094948768616,
-0.12711387872695923,
0.11001704633235931,
0.1496826708316803,
-0.17344310879707336,
0.25256264209747314,
-0.08960028737783432,
0.1228642463684082,
-0.07680607587099075,
0.3847638964653015,
0.2813182473182678,
-0.1984006017446518,
0.061817411333322525,
0.26564425230026245,
0.2513608932495117,
0.34866517782211304,
0.2069728821516037,
0.41526341438293457,
0.012570437975227833,
-0.07083822041749954,
-0.346115380525589,
-0.04147879779338837,
0.2416093647480011,
-0.22970423102378845,
-0.11931430548429489,
-0.00934903509914875,
0.6945894360542297,
0.39472490549087524,
0.18839281797409058,
0.05239447206258774,
0.09065201133489609,
0.3460868000984192,
0.2865169942378998,
0.1587851494550705,
0.27902793884277344,
0.15090817213058472,
0.3806927502155304,
-0.06959689408540726,
0.07841961830854416,
0.8199090361595154,
0.1561668962240219,
-0.2231377214193344,
-0.40241581201553345,
0.04781435802578926,
-0.18161505460739136,
-0.2417522817850113,
-0.15966594219207764,
-0.047802429646253586,
-0.3144458532333374,
0.07781936228275299,
0.14369143545627594,
0.014725392684340477,
-0.4442601203918457,
-0.6542367935180664,
0.5127460956573486,
-0.296085923910141,
0.14539863169193268,
0.45293277502059937,
-0.1335957795381546,
0.5429688692092896,
0.5608373880386353,
0.2101539671421051,
0.014920814894139767,
0.12369096279144287,
0.3338794708251953,
-0.23330377042293549,
0.02647228166460991,
0.19821804761886597,
0.3579055368900299,
0.17133399844169617,
0.061768658459186554,
0.036017682403326035,
-0.0044265370815992355,
-0.07104601711034775,
-0.12276455014944077,
-0.05123572051525116,
-0.07653773576021194,
0.15131588280200958,
0.4317426085472107,
0.2671120762825012,
-0.14254966378211975,
0.06839808821678162,
0.08139686286449432,
-0.3937855064868927,
0.031868137419223785,
-0.093443363904953,
-0.011761191301047802,
0.035645078867673874,
0.1442168653011322,
0.009041761048138142,
0.10348964482545853,
0.12837177515029907,
0.42883434891700745,
-0.03542830049991608,
-0.036274734884500504,
-0.028119685128331184,
-0.39737582206726074,
-0.24212433397769928,
0.35891345143318176,
0.2464035302400589,
-0.013507056050002575,
-0.2603781819343567,
0.4524380564689636,
0.4628758430480957,
-0.3483905792236328,
-0.0927271917462349,
-0.3676122725009918,
0.33557525277137756,
-0.34715181589126587,
0.2463448941707611,
0.434396892786026,
0.19939494132995605,
0.07083360105752945,
0.35119637846946716,
-0.2094087451696396,
-0.3332328796386719,
-0.08043874055147171,
0.20597517490386963,
-0.07852600514888763,
-0.001729172538034618,
0.05449853464961052,
-0.043844517320394516,
-0.07781525701284409,
0.07447409629821777,
-0.10331904888153076,
-0.07860343903303146,
-0.09539119899272919,
-0.2745007574558258,
-0.1010475680232048,
0.00020116324594710022,
-0.04922804608941078,
0.3249865472316742,
-0.08844213932752609,
-0.10825429856777191,
0.09119310230016708,
-0.28998926281929016,
-0.07293042540550232,
0.02581295184791088,
-0.6710774302482605,
0.02935536950826645,
-0.057779423892498016,
-0.10401025414466858,
0.20803093910217285,
0.27729853987693787,
0.24545195698738098,
0.2480410486459732,
-0.4210083484649658,
-0.4685884714126587,
0.5776048898696899,
-0.08899269998073578,
0.09675077348947525,
-0.2642006576061249,
0.12314863502979279,
0.29442140460014343,
0.1640370786190033,
-0.3554767370223999,
0.060945719480514526,
0.19703027606010437,
-0.02034624293446541,
-0.2716576159000397,
0.07761181145906448,
-0.017560673877596855,
-0.19643165171146393,
-0.24486877024173737,
-0.29258954524993896,
0.23467721045017242,
-0.1828182488679886,
-0.3121432662010193,
-0.05810512974858284
] |
https://github.com/huggingface/datasets/issues/1844 | Update Open Subtitles corpus with original sentence IDs | I like the idea of having `year`, `imdbId` and `subtitleId` as columns for filtering for example.
And for the `sentenceIds` a list of integers is fine. | Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks! | 26 | Update Open Subtitles corpus with original sentence IDs
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks!
I like the idea of having `year`, `imdbId` and `subtitleId` as columns for filtering for example.
And for the `sentenceIds` a list of integers is fine. | [
0.20258626341819763,
0.15204806625843048,
-0.046398378908634186,
-0.215180441737175,
-0.20975883305072784,
0.22186361253261566,
0.29271450638771057,
0.3270959258079529,
-0.2807449996471405,
-0.08636625856161118,
-0.34239351749420166,
0.17482228577136993,
0.1811576634645462,
-0.13348941504955292,
0.028532125055789948,
-0.3397964835166931,
0.13690617680549622,
-0.0015651358989998698,
0.6896280646324158,
-0.22065648436546326,
-0.35826748609542847,
0.24269495904445648,
-0.06531459093093872,
-0.056227557361125946,
-0.18818998336791992,
0.29431575536727905,
-0.4418639838695526,
0.10194586217403412,
-0.022852711379528046,
-0.4655095636844635,
-0.11289945989847183,
0.5621752142906189,
0.31121793389320374,
0.04260794445872307,
-0.00012075169070158154,
-0.2834956645965576,
0.1895882785320282,
-0.25009214878082275,
-0.2641490697860718,
0.06429983675479889,
0.04724816977977753,
-0.28897640109062195,
-0.1915719211101532,
-0.3414883613586426,
0.06597200036048889,
-0.009986606426537037,
0.0176819059997797,
-0.37285417318344116,
-0.18405462801456451,
0.13969554007053375,
0.05855831131339073,
-0.10177088528871536,
0.027239060029387474,
-0.09780759364366531,
0.5829443335533142,
-0.059742990881204605,
0.19454318284988403,
0.2558286488056183,
0.7497331500053406,
0.1804828941822052,
0.225927472114563,
0.3277648389339447,
-0.5435166954994202,
-0.42967864871025085,
-0.14454102516174316,
-0.07945935428142548,
0.003576617920771241,
-0.23531608283519745,
0.00015235881437547505,
0.10741014033555984,
0.4455191493034363,
-0.04367225244641304,
-0.6220411658287048,
-0.3864545524120331,
-0.06505969911813736,
-0.21826207637786865,
-0.2932420074939728,
0.3142325282096863,
0.282357394695282,
0.37105727195739746,
0.12165271490812302,
-0.13385696709156036,
0.11207910627126694,
-0.017410747706890106,
0.27323591709136963,
0.2782098948955536,
0.2881123721599579,
-0.13882827758789062,
0.140750914812088,
-0.11996906250715256,
-0.21388165652751923,
0.15297262370586395,
-0.3576207458972931,
0.023526599630713463,
0.014302517287433147,
-0.22083517909049988,
-0.13214389979839325,
-0.5561726689338684,
-0.16938988864421844,
-0.09905792027711868,
0.0849318876862526,
0.11060073971748352,
-0.07651939243078232,
-0.10256830602884293,
0.16074606776237488,
0.27038517594337463,
0.40418025851249695,
0.13895072042942047,
-0.12161856144666672,
-0.06475116312503815,
-0.1501908004283905,
-0.03331141918897629,
-0.22526930272579193,
0.31262004375457764,
-0.2768229842185974,
0.25748157501220703,
0.05922076851129532,
0.028795769438147545,
0.005072780419141054,
0.12691400945186615,
-0.45851820707321167,
-0.05672251433134079,
-0.13811297714710236,
-0.004900381434708834,
0.11799964308738708,
0.23690125346183777,
0.20826654136180878,
0.10772302746772766,
0.024255579337477684,
-0.4484049379825592,
-0.08716485649347305,
0.024688733741641045,
0.052552204579114914,
-0.03597325459122658,
-0.11401957273483276,
-0.3677076995372772,
0.23248781263828278,
-0.22349776327610016,
-0.22072958946228027,
-0.202127605676651,
-0.2647818624973297,
0.1669386625289917,
0.11200877279043198,
-0.12802009284496307,
0.0895146057009697,
0.06087663024663925,
-0.1455751210451126,
-0.14221137762069702,
0.0009649197454564273,
0.28891879320144653,
-0.1694343537092209,
-0.38822224736213684,
-0.4193804860115051,
0.0715942531824112,
-0.34913599491119385,
-0.30357539653778076,
0.41861477494239807,
0.36181002855300903,
0.2122468650341034,
-0.2627323567867279,
0.27000096440315247,
0.14011985063552856,
-0.3034571409225464,
0.09731421619653702,
-0.23338744044303894,
0.5517137050628662,
-0.11103478819131851,
0.009220954030752182,
0.29506683349609375,
0.2318437695503235,
0.19405098259449005,
0.11537137627601624,
0.4618019759654999,
0.006567998323589563,
0.11396878957748413,
0.01764487288892269,
-0.3239235281944275,
-0.540544867515564,
0.05319447070360184,
0.02896316535770893,
0.09200991690158844,
0.036595046520233154,
0.33350294828414917,
0.024993086233735085,
0.6625000238418579,
-0.4460940957069397,
-0.09476485103368759,
-0.05499644577503204,
-0.08074548095464706,
0.0978236049413681,
-0.17326052486896515,
-0.1785656213760376,
-0.35341960191726685,
0.15263371169567108,
0.01050593052059412,
0.1988876312971115,
0.3615283966064453,
0.06389739364385605,
0.4545426368713379,
-0.10580720752477646,
0.09293797612190247,
-0.006892674136906862,
-0.09401136636734009,
0.4595707952976227,
0.16896416246891022,
0.17949481308460236,
0.14529044926166534,
0.06087939441204071,
0.1969761699438095,
0.24310550093650818,
0.2571724057197571,
-0.2650688588619232,
-0.009863552637398243,
-0.01658514514565468,
0.3412773013114929,
-0.1586160957813263,
-0.007730746641755104,
0.10107126832008362,
-0.1333780288696289,
0.15117216110229492,
-0.4317303001880646,
0.10677187889814377,
-0.20143228769302368,
-0.0007565628038719296,
-0.13445411622524261,
-0.16988146305084229,
0.16812819242477417,
-0.047191839665174484,
-0.020396839827299118,
0.2770134210586548,
-0.11284097284078598,
0.10627494007349014,
-0.09830231219530106,
0.44565415382385254,
-0.07352911680936813,
0.35372817516326904,
0.05852274224162102,
-0.023234426975250244,
0.28862422704696655,
-0.2466837614774704,
0.16736538708209991,
-0.16675922274589539,
-0.19789478182792664,
-0.07747816294431686,
0.05330454185605049,
0.016147717833518982,
-0.09392309188842773,
-0.08084020763635635,
-0.1326182633638382,
0.036587174981832504,
-0.2571314871311188,
0.06562023609876633,
-0.46245893836021423,
-0.24569249153137207,
-0.0678144097328186,
0.06294790655374527,
-0.5987551808357239,
0.08716601133346558,
-0.19130757451057434,
0.16865618526935577,
0.07480304688215256,
-0.2727588415145874,
0.004081846680492163,
0.2686508893966675,
0.0531393364071846,
-0.022954456508159637,
-0.04082004353404045,
0.04611852765083313,
0.00783456489443779,
0.1784643530845642,
0.1472983956336975,
0.15798704326152802,
0.5284189581871033,
-0.29435428977012634,
0.2633446156978607,
0.4139413833618164,
-0.314646452665329,
-0.05067908391356468,
0.27915406227111816,
0.334371417760849,
-0.15810182690620422,
0.528850793838501,
0.007489032577723265,
0.05863221362233162,
-0.09982423484325409,
0.0074821640737354755,
-0.1781919300556183,
-0.44558873772621155,
0.2280280590057373,
-0.4807475209236145,
0.0258940402418375,
0.011060194112360477,
0.21368418633937836,
-0.20007111132144928,
-0.3091622591018677,
0.29629772901535034,
0.1574106514453888,
0.35548391938209534,
-0.1057543233036995,
0.11368062347173691,
-0.03384322300553322,
-0.49569231271743774,
0.21975697576999664,
-0.026655452325940132,
-0.1890278309583664,
-0.09950316697359085,
0.07172559201717377,
-0.2529872953891754,
0.14598289132118225,
-0.30894699692726135,
-0.2556656301021576,
-0.317292720079422,
-0.01037136185914278,
0.000021665027816197835,
0.39981842041015625,
-0.1479937881231308,
-0.2118763029575348,
-0.25986236333847046,
-0.11578988283872604,
-0.03471239656209946,
-0.13423645496368408,
-0.26728492975234985,
0.03889315202832222,
-0.07500187307596207,
-0.15978878736495972,
-0.0255381241440773,
-0.16992118954658508,
-0.4189922511577606,
0.2884586453437805,
-0.03393861651420593,
0.17666666209697723,
0.23201481997966766,
-0.06878699362277985,
-0.22205208241939545,
-0.044998928904533386,
0.1599312275648117,
-0.03392679989337921,
-0.5086305141448975,
0.08215418457984924,
-0.17387795448303223,
-0.060997430235147476,
-0.20351211726665497,
-0.18488198518753052,
-0.30070918798446655,
-0.2854410707950592,
-0.06579829752445221,
0.20146793127059937,
0.27416518330574036,
-0.2688773572444916,
0.561276912689209,
0.21551750600337982,
0.04840901866555214,
-0.03934665396809578,
0.031208140775561333,
-0.17454667389392853,
-0.3107944130897522,
0.09059988707304001,
0.47779688239097595,
0.11615339666604996,
0.045528706163167953,
0.1407918781042099,
0.08753523230552673,
-0.036404747515916824,
0.017718471586704254,
0.010344790294766426,
0.3364097476005554,
0.19124028086662292,
0.19117388129234314,
0.03501850366592407,
-0.5634855031967163,
0.08375813066959381,
-0.030250247567892075,
-0.06813395768404007,
0.5521844029426575,
0.19221805036067963,
-0.2857975959777832,
-0.14580374956130981,
-0.2934899926185608,
-0.1148098036646843,
-0.08044109493494034,
-0.12620338797569275,
-0.25188693404197693,
0.3526642322540283,
0.2575189173221588,
-0.14407603442668915,
-0.2897815406322479,
-0.14916250109672546,
0.050848692655563354,
0.09847026318311691,
0.5742338299751282,
0.12505555152893066,
-0.023849215358495712,
0.19022808969020844,
0.3251267075538635,
0.22063413262367249,
0.47229063510894775,
-0.10294433683156967,
0.29000431299209595,
-0.23743584752082825,
0.17867572605609894,
0.3376530706882477,
0.22172591090202332,
-0.23464442789554596,
-0.36853349208831787,
0.09109150618314743,
0.020917698740959167,
0.04531749710440636,
-0.13809336721897125,
0.2159673273563385,
-0.5401027202606201,
0.6022509336471558,
-0.1985393613576889,
-0.03147003427147865,
0.21850751340389252,
0.47791463136672974,
-0.2694037854671478,
-0.11370553076267242,
-0.20321832597255707,
0.05124395340681076,
-0.12245512753725052,
-0.5893531441688538,
-0.0019229404861107469,
0.04216191917657852,
-0.2644689381122589,
0.1517617553472519,
-0.02468211017549038,
0.07173788547515869,
0.2086346596479416,
0.0964045375585556,
-0.14310526847839355,
-0.06272982060909271,
0.599765956401825,
0.1291746199131012,
0.11224501579999924,
-0.14741580188274384,
0.17949871718883514,
0.2560945451259613,
-0.49615761637687683,
0.09317069500684738,
-0.1482698917388916,
-0.012206532061100006,
0.34699946641921997,
0.3949161469936371,
0.4357193410396576,
0.016992764547467232,
0.1802898347377777,
-0.3192501962184906,
0.06965113431215286,
-0.14874355494976044,
-0.1462886780500412,
-0.05063615366816521,
-0.094440758228302,
-0.6300878524780273,
0.02567877247929573,
-0.27061450481414795,
-0.1397591382265091,
-0.5500953197479248,
0.1543128341436386,
-0.04568751901388168,
0.4206377863883972,
0.41092872619628906,
1.0612913370132446,
0.04544783756136894,
-0.1464199423789978,
-0.24696345627307892,
0.041936881840229034,
0.549252450466156,
0.16201668977737427,
-0.09130306541919708,
-0.16076287627220154,
0.03210734203457832,
0.09893769025802612,
0.11614696681499481,
-0.27941909432411194,
-0.2541392743587494,
-0.3178933560848236,
-0.08728837221860886,
0.46871915459632874,
-0.10887731611728668,
0.2544688582420349,
0.1779147982597351,
0.22308814525604248,
-0.30083152651786804,
0.32466578483581543,
0.01442497968673706,
-0.03006182797253132,
0.1073244959115982,
0.036657676100730896,
-0.32813483476638794,
0.26053449511528015,
-0.05390756204724312,
-0.30640318989753723,
-0.19653865694999695,
0.05928047001361847,
-0.18146666884422302,
-0.005046788137406111,
-0.035471104085445404,
-0.03512614220380783,
0.43212342262268066,
0.4008663296699524,
0.11904601007699966,
0.36983683705329895,
0.024153584614396095,
0.7271578907966614,
-0.2729676365852356,
0.17305326461791992,
0.15800093114376068,
0.3656668961048126,
-0.1582159399986267,
-0.2347855269908905,
-0.04312271252274513,
0.2181018441915512,
-0.24316464364528656,
-0.1812124252319336,
-0.08483117818832397,
0.10395793616771698,
0.0822019949555397,
-0.06762847304344177,
0.09146202355623245,
-0.1539803445339203,
-0.22642971575260162,
-0.0026956486981362104,
0.06117001548409462,
-0.05505071207880974,
-0.08915197104215622,
-0.13791266083717346,
-0.18500664830207825,
-0.1715221405029297,
0.20257462561130524,
0.060508135706186295,
-0.43580538034439087,
0.16260170936584473,
0.42468559741973877,
-0.006994426250457764,
0.16477493941783905,
-0.00026133967912755907,
-0.6238166689872742,
-0.284828245639801,
0.11415327340364456,
-0.26113179326057434,
-0.21344804763793945,
0.0011069263564422727,
0.049572497606277466,
0.09994582086801529,
0.3431378901004791,
0.13338834047317505,
0.10015921294689178,
-0.47504153847694397,
0.1921488344669342,
-0.25634104013442993,
0.1356140673160553,
-0.15495304763317108,
-0.47973740100860596,
-0.10535141825675964,
0.01466171070933342,
-0.1941797137260437,
0.09780079871416092,
0.060711413621902466,
0.045481812208890915,
0.5873954892158508,
-0.02772560529410839,
-0.3805016577243805,
-0.32556697726249695,
-0.03074982576072216,
0.16008876264095306,
0.17224544286727905,
-0.023335998877882957,
-0.27561885118484497,
0.19589020311832428,
0.05424240231513977,
0.16532185673713684,
-0.07563275098800659,
-0.10267998278141022,
0.06729311496019363,
-0.16685983538627625,
-0.2070131003856659,
0.31388628482818604,
0.014466548338532448,
0.28595590591430664,
0.19228790700435638,
0.09586150199174881,
0.08528916537761688,
0.1718427538871765,
0.14045415818691254,
0.20240411162376404,
-0.15024344623088837,
0.11574994027614594,
-0.1683477759361267,
-0.14091505110263824,
0.5077629089355469,
0.1434129923582077,
0.30527716875076294,
0.06373969465494156,
0.399505078792572,
0.22788676619529724,
0.22096987068653107,
0.4789084494113922,
-0.20550957322120667,
0.025128977373242378,
-0.15544745326042175,
-0.08122360706329346,
-0.037696052342653275,
0.124928317964077,
-0.1966223120689392,
0.2986120879650116,
-0.12737494707107544,
0.1797408014535904,
-0.10880733281373978,
0.3950020372867584,
0.22687052190303802,
-0.21640644967556,
0.08760061115026474,
0.28353428840637207,
0.24829761683940887,
0.21385426819324493,
0.17802372574806213,
0.340466171503067,
0.12276436388492584,
-0.15380221605300903,
-0.21846289932727814,
-0.11275209486484528,
0.16512610018253326,
-0.16208286583423615,
-0.07313645631074905,
-0.05633903294801712,
0.7049536108970642,
0.30489686131477356,
0.31844452023506165,
0.22545213997364044,
0.25800764560699463,
0.2470727413892746,
0.14878644049167633,
0.1365233063697815,
0.22025953233242035,
0.03210963308811188,
0.46216732263565063,
-0.049097269773483276,
0.07929384708404541,
0.795859694480896,
0.09310121834278107,
-0.2446577399969101,
-0.41602107882499695,
0.05455256998538971,
-0.020830288529396057,
-0.30625206232070923,
-0.03516267240047455,
0.1146579459309578,
-0.38425007462501526,
0.06529334932565689,
0.04821978136897087,
-0.0895354375243187,
-0.4640112519264221,
-0.4744279384613037,
0.5227256417274475,
-0.27811959385871887,
-0.11289408057928085,
0.30380916595458984,
0.008464737795293331,
0.6416427493095398,
0.5664150714874268,
0.26429492235183716,
0.10104779899120331,
0.08641926199197769,
0.4559990167617798,
-0.25568488240242004,
-0.051441073417663574,
0.22702807188034058,
0.32197242975234985,
0.23846659064292908,
0.14850105345249176,
-0.0434490330517292,
-0.004267214331775904,
-0.04997881129384041,
0.08329545706510544,
-0.12635603547096252,
0.05814480781555176,
-0.01814435049891472,
0.4207743704319,
0.2323184311389923,
-0.2503962218761444,
-0.0348530113697052,
0.22785253822803497,
-0.21587319672107697,
0.12681899964809418,
0.04584246501326561,
-0.06576739996671677,
-0.12506672739982605,
0.13177374005317688,
-0.0000038715388654964045,
0.12726576626300812,
0.08598754554986954,
0.5072779655456543,
-0.00020750414114445448,
0.08757079392671585,
0.02289571426808834,
-0.2934548556804657,
-0.2539842128753662,
0.3089722692966461,
0.23832502961158752,
0.12091561406850815,
-0.22247758507728577,
0.5440024733543396,
0.41170555353164673,
-0.2848433256149292,
-0.10102520883083344,
-0.5488215088844299,
0.27064964175224304,
-0.17946521937847137,
0.0458366684615612,
0.25990259647369385,
0.169855535030365,
-0.003322540782392025,
0.3813747763633728,
-0.16001415252685547,
-0.5111727714538574,
-0.06796828657388687,
0.15546083450317383,
-0.08923199027776718,
0.0950695276260376,
0.10218320786952972,
-0.05991067364811897,
-0.09743516892194748,
0.0022092096041888,
-0.1403127908706665,
0.025714455172419548,
-0.17270724475383759,
-0.40734952688217163,
-0.0814874991774559,
-0.017417529597878456,
-0.09323088824748993,
0.33976227045059204,
-0.02609182335436344,
-0.13584451377391815,
0.21750734746456146,
-0.15468131005764008,
0.014402791857719421,
-0.025814805179834366,
-0.5638813972473145,
0.06543008983135223,
-0.03969092294573784,
-0.06613197922706604,
0.2783849537372589,
0.0630611702799797,
0.19045770168304443,
0.262751966714859,
-0.46435028314590454,
-0.5056294202804565,
0.5837915539741516,
-0.20524170994758606,
0.0938970074057579,
-0.2969116270542145,
0.308984637260437,
0.24188904464244843,
0.16432107985019684,
-0.41745972633361816,
-0.0529586598277092,
0.2758622467517853,
-0.08632030338048935,
-0.31643345952033997,
0.1886342614889145,
0.13104300200939178,
0.021328788250684738,
-0.15739735960960388,
-0.38989394903182983,
0.30805617570877075,
-0.1276140809059143,
-0.35633304715156555,
-0.04170519486069679
] |
https://github.com/huggingface/datasets/issues/1844 | Update Open Subtitles corpus with original sentence IDs | Something like this? (adapted from [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L114))
```python
result = (
sentence_counter,
{
"id": str(sentence_counter),
"meta": {
"year": year,
"imdbId": imdb_id,
"subtitleId": {l1: l1_sub_id, l2: l2_sub_id},
"sentenceIds": {l1: [... source_sids ...], l2: [... target_sids ...]},
# or maybe src/tgt? I'd go with the first one for consistency with 'translation'
"subtitleId": {"src": l1_sub_id, "tgt": l2_sub_id},
"sentenceIds": {"src": [... source_sids ...], "tgt": [... target_sids ...]},
},
"translation": {l1: x, l2: y},
},
)
```
Or at top level, avoiding nesting into 'meta'? | Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks! | 79 | Update Open Subtitles corpus with original sentence IDs
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles).
I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts.
I think I should tag @abhishekkrthakur as he's the one who added it in the first place.
Thanks!
Something like this? (adapted from [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L114))
```python
result = (
sentence_counter,
{
"id": str(sentence_counter),
"meta": {
"year": year,
"imdbId": imdb_id,
"subtitleId": {l1: l1_sub_id, l2: l2_sub_id},
"sentenceIds": {l1: [... source_sids ...], l2: [... target_sids ...]},
# or maybe src/tgt? I'd go with the first one for consistency with 'translation'
"subtitleId": {"src": l1_sub_id, "tgt": l2_sub_id},
"sentenceIds": {"src": [... source_sids ...], "tgt": [... target_sids ...]},
},
"translation": {l1: x, l2: y},
},
)
```
Or at top level, avoiding nesting into 'meta'? | [
0.22097864747047424,
0.034774865955114365,
-0.017486119642853737,
-0.15179544687271118,
-0.20496001839637756,
0.3104090094566345,
0.3499244451522827,
0.23899142444133759,
-0.4182048439979553,
-0.11902163922786713,
-0.39921995997428894,
0.2717110514640808,
0.2253200113773346,
-0.12070716917514801,
0.10574605315923691,
-0.2710323929786682,
0.15779486298561096,
-0.06479507684707642,
0.5990245938301086,
-0.19728082418441772,
-0.3916415572166443,
0.23155972361564636,
0.023285318166017532,
-0.10528949648141861,
-0.1919489949941635,
0.3326810300350189,
-0.5179933905601501,
0.18938356637954712,
0.05586147680878639,
-0.4463600218296051,
-0.051931917667388916,
0.5385538339614868,
0.2594016492366791,
0.06866369396448135,
-0.0001201749691972509,
-0.18870478868484497,
0.15327076613903046,
-0.2464020550251007,
-0.2476087510585785,
-0.0682026818394661,
0.16302238404750824,
-0.26733699440956116,
-0.2945556938648224,
-0.30697697401046753,
0.09791036695241928,
-0.05977809429168701,
0.008120892569422722,
-0.4214209318161011,
-0.15652890503406525,
0.03954974189400673,
0.04648821800947189,
-0.041784461587667465,
0.03532351180911064,
-0.10262425988912582,
0.5562955737113953,
-0.002026088535785675,
0.24942941963672638,
0.32105645537376404,
0.6099580526351929,
0.2494789958000183,
0.23386508226394653,
0.3001669645309448,
-0.4769382178783417,
-0.470883309841156,
-0.12876014411449432,
-0.02720814384520054,
0.02821003645658493,
-0.192234605550766,
-0.06981135904788971,
0.041339337825775146,
0.3280799686908722,
-0.13307885825634003,
-0.7111257910728455,
-0.4584238827228546,
-0.046118807047605515,
-0.21369072794914246,
-0.4144754409790039,
0.3474138379096985,
0.35777631402015686,
0.33909526467323303,
0.05519454926252365,
-0.16470272839069366,
0.17309679090976715,
0.023302996531128883,
0.27413028478622437,
0.2407238483428955,
0.23408761620521545,
-0.07190986722707748,
0.15933802723884583,
-0.12634362280368805,
-0.3018878102302551,
0.096115343272686,
-0.35303962230682373,
-0.023111144080758095,
0.05522139370441437,
-0.1803237646818161,
-0.03991909325122833,
-0.5612185597419739,
-0.06887517869472504,
-0.06347019970417023,
0.12004639953374863,
0.036732062697410583,
-0.12030394375324249,
-0.07871952652931213,
0.1772688329219818,
0.32840949296951294,
0.3404315412044525,
0.09054160118103027,
-0.14240282773971558,
0.026658225804567337,
-0.11318981647491455,
-0.01105201244354248,
-0.1618151217699051,
0.29037830233573914,
-0.35192134976387024,
0.2706139087677002,
0.10150423645973206,
0.16308312118053436,
-0.010381066240370274,
0.09793473035097122,
-0.49132394790649414,
-0.08826885372400284,
-0.16286148130893707,
0.012042740359902382,
0.1813019961118698,
0.27789103984832764,
0.21037070453166962,
0.21652629971504211,
0.01949242502450943,
-0.3489284813404083,
-0.1100480780005455,
0.028266465291380882,
0.07729699462652206,
0.06549374759197235,
-0.12797673046588898,
-0.3086245656013489,
0.3220810890197754,
-0.2250380963087082,
-0.06506800651550293,
-0.20308348536491394,
-0.3065248429775238,
0.13057653605937958,
0.07327105849981308,
-0.1596943885087967,
0.09171313047409058,
0.09787332266569138,
-0.136748269200325,
-0.12294390052556992,
-0.013852214440703392,
0.22163841128349304,
-0.16445180773735046,
-0.3561447560787201,
-0.21581578254699707,
0.046560171991586685,
-0.34732532501220703,
-0.34196022152900696,
0.24205034971237183,
0.40232422947883606,
0.22668956220149994,
-0.2590719759464264,
0.2422269880771637,
0.18452051281929016,
-0.34988337755203247,
0.059220679104328156,
-0.13137154281139374,
0.6238115429878235,
-0.007766733877360821,
-0.08329595625400543,
0.38779503107070923,
0.27206525206565857,
0.08591503649950027,
0.16775374114513397,
0.4032241106033325,
0.053636159747838974,
0.047007184475660324,
0.043260607868433,
-0.41018787026405334,
-0.624488353729248,
0.038359928876161575,
0.04822929948568344,
-0.03450194373726845,
0.13059654831886292,
0.35571935772895813,
0.0006950527895241976,
0.522342324256897,
-0.41223615407943726,
-0.0007474187295883894,
-0.03319704160094261,
-0.015766790136694908,
0.09644607454538345,
-0.1680334061384201,
-0.23565784096717834,
-0.2997710108757019,
0.11348665505647659,
-0.06493660062551498,
0.13169127702713013,
0.29487520456314087,
0.0013579456135630608,
0.46460819244384766,
-0.1661222130060196,
0.07938364893198013,
-0.034539707005023956,
-0.08439293503761292,
0.3948904275894165,
0.12124767154455185,
0.19216862320899963,
-0.04292286932468414,
0.110750213265419,
0.1654115915298462,
0.24146321415901184,
0.19154217839241028,
-0.2982219159603119,
0.04935874044895172,
-0.034386057406663895,
0.21780461072921753,
-0.267089307308197,
-0.015209635719656944,
0.15297602117061615,
-0.12493689358234406,
0.17045563459396362,
-0.39607304334640503,
-0.016191808506846428,
-0.07769141346216202,
0.07755257934331894,
-0.19728845357894897,
-0.10505230724811554,
0.16278700530529022,
0.03764218091964722,
-0.04992084950208664,
0.32257285714149475,
-0.08503372967243195,
0.058369264006614685,
0.0013717246474698186,
0.4663870930671692,
-0.026458289474248886,
0.48594844341278076,
0.047754667699337006,
-0.11755765229463577,
0.3558056354522705,
-0.24901090562343597,
0.1458485722541809,
-0.0890546590089798,
-0.1667504906654358,
-0.13846509158611298,
-0.001822067191824317,
0.04633995145559311,
-0.07065998017787933,
-0.03860648721456528,
-0.037169963121414185,
-0.007378672249615192,
-0.3098450005054474,
0.09877261519432068,
-0.48320966958999634,
-0.3038070797920227,
-0.07896291464567184,
0.0930200070142746,
-0.44929972290992737,
0.14169149100780487,
-0.13757391273975372,
0.23616234958171844,
0.10314451903104782,
-0.30405500531196594,
-0.07717134803533554,
0.2178611159324646,
-0.04489098861813545,
-0.004224549513310194,
-0.044380754232406616,
0.06552529335021973,
0.09416300058364868,
0.21017757058143616,
0.17719580233097076,
0.2408747375011444,
0.603732168674469,
-0.29183050990104675,
0.26777419447898865,
0.4215085804462433,
-0.2798592448234558,
0.009012464433908463,
0.3630819618701935,
0.3062953054904938,
-0.16108456254005432,
0.5001876950263977,
0.015114796347916126,
-0.029345853254199028,
-0.15571536123752594,
0.025598755106329918,
-0.15574395656585693,
-0.34633320569992065,
0.022558463737368584,
-0.5094441175460815,
-0.05309281870722771,
-0.07384014129638672,
0.1577111929655075,
-0.24634623527526855,
-0.3293328881263733,
0.24780040979385376,
0.24944865703582764,
0.24260760843753815,
-0.18325190246105194,
0.0030819482635706663,
0.0344851128757,
-0.5286226868629456,
0.31137582659721375,
-0.06450604647397995,
-0.10910049825906754,
-0.18356309831142426,
-0.00545110646635294,
-0.30632612109184265,
0.08512751758098602,
-0.30047693848609924,
-0.29671281576156616,
-0.2904578447341919,
-0.12312614172697067,
-0.030331283807754517,
0.4129614531993866,
-0.2559932768344879,
-0.14729943871498108,
-0.29083672165870667,
0.026472218334674835,
0.017898399382829666,
-0.16153176128864288,
-0.317531943321228,
0.02341652289032936,
-0.1008802205324173,
-0.2108381986618042,
-0.09294763207435608,
-0.22805510461330414,
-0.37864524126052856,
0.4878305196762085,
-0.0483488030731678,
0.10763442516326904,
0.26929202675819397,
-0.07818441838026047,
-0.23707634210586548,
-0.1841222643852234,
0.14739325642585754,
-0.05027449503540993,
-0.5810420513153076,
0.07226119935512543,
-0.19572041928768158,
-0.028628550469875336,
-0.2978212535381317,
-0.14490415155887604,
-0.2162145972251892,
-0.3066576421260834,
-0.09892243146896362,
0.1704227775335312,
0.24136018753051758,
-0.23422051966190338,
0.5072844624519348,
0.36993199586868286,
-0.010472714900970459,
-0.04427103325724602,
0.035991132259368896,
-0.19817058742046356,
-0.24082782864570618,
0.12448932975530624,
0.4949030876159668,
0.030468273907899857,
0.013462436385452747,
0.16553430259227753,
0.1943969577550888,
0.10373973101377487,
0.09541705250740051,
-0.0017627922352403402,
0.3459445536136627,
0.128749817609787,
0.2338254302740097,
0.09049912542104721,
-0.6101647615432739,
0.05914020910859108,
-0.12778449058532715,
-0.04005424305796623,
0.496954083442688,
0.17660094797611237,
-0.20337417721748352,
-0.1965545266866684,
-0.34672096371650696,
-0.042635440826416016,
-0.1534169763326645,
-0.18737033009529114,
-0.17455635964870453,
0.2824782431125641,
0.25526106357574463,
-0.176839679479599,
-0.24429155886173248,
-0.06258438527584076,
0.07281655818223953,
0.10158222913742065,
0.5623083710670471,
0.15681315958499908,
-0.08020543307065964,
0.10299345850944519,
0.20306333899497986,
0.213046133518219,
0.5398974418640137,
-0.10103379189968109,
0.3852148652076721,
-0.2962692081928253,
0.07368909567594528,
0.24673496186733246,
0.2528204023838043,
-0.14314040541648865,
-0.32503682374954224,
0.09065692126750946,
-0.07714533060789108,
-0.04798373579978943,
-0.08477669954299927,
0.23880138993263245,
-0.4861278831958771,
0.6551350355148315,
-0.04466937482357025,
-0.1383964866399765,
0.22075296938419342,
0.45054367184638977,
-0.25185203552246094,
-0.06144268438220024,
-0.20979440212249756,
-0.00869120191782713,
-0.12198442220687866,
-0.6096367239952087,
-0.05745420977473259,
0.03752512484788895,
-0.21380288898944855,
0.15934859216213226,
0.0025435995776206255,
0.08818003535270691,
0.15997794270515442,
0.1477338671684265,
-0.12156771123409271,
-0.08276240527629852,
0.5291160941123962,
0.1702377051115036,
0.1728867143392563,
-0.09090925753116608,
0.3126513659954071,
0.40047258138656616,
-0.4411032199859619,
0.05557533726096153,
-0.29098156094551086,
0.03609277307987213,
0.44816911220550537,
0.3489742875099182,
0.35699233412742615,
-0.003616088768467307,
0.14566388726234436,
-0.2892710268497467,
-0.0880410373210907,
-0.14213822782039642,
-0.105402871966362,
-0.022924847900867462,
-0.042439963668584824,
-0.5799978971481323,
0.08735910058021545,
-0.2452295869588852,
-0.05975623056292534,
-0.6179404258728027,
0.1658027619123459,
-0.11910905689001083,
0.3421131670475006,
0.35986536741256714,
1.0053173303604126,
0.12381767481565475,
0.08802051842212677,
-0.11645539104938507,
0.1319580078125,
0.5445366501808167,
0.1574394702911377,
-0.11658318340778351,
-0.11653415113687515,
0.05904001370072365,
0.1269250512123108,
0.08886255323886871,
-0.26674607396125793,
-0.2439642697572708,
-0.28335604071617126,
-0.023720338940620422,
0.44245463609695435,
-0.0461772084236145,
0.22957617044448853,
0.13055060803890228,
0.18712042272090912,
-0.29227346181869507,
0.2862826883792877,
-0.02275552786886692,
0.014183870516717434,
0.05684928596019745,
0.009498726576566696,
-0.31298041343688965,
0.140381321310997,
-0.09348985552787781,
-0.2328750342130661,
-0.1617424339056015,
-0.08398348093032837,
-0.14421838521957397,
-0.1318129599094391,
-0.009192408993840218,
-0.028359755873680115,
0.3801964521408081,
0.3602818250656128,
0.13806729018688202,
0.3586060702800751,
-0.023959755897521973,
0.6386117935180664,
-0.26331955194473267,
0.14275114238262177,
0.08634215593338013,
0.26322805881500244,
-0.09972106665372849,
-0.2440456598997116,
-0.11777961999177933,
0.23793727159500122,
-0.15311308205127716,
-0.2227316051721573,
-0.07341324537992477,
-0.019321370869874954,
0.1067313551902771,
-0.10660409182310104,
0.2211960405111313,
-0.16741053760051727,
-0.24966061115264893,
-0.02749737910926342,
0.06623073667287827,
-0.1441972702741623,
-0.12043300271034241,
-0.25712284445762634,
-0.22713994979858398,
-0.15210074186325073,
0.2999039888381958,
0.01101144589483738,
-0.38455215096473694,
0.1977357268333435,
0.4038407802581787,
-0.015292070806026459,
0.20564009249210358,
0.07377006113529205,
-0.5600079298019409,
-0.3261534571647644,
0.15431542694568634,
-0.2055312991142273,
-0.1241181492805481,
-0.09724663943052292,
0.09449131786823273,
0.11754033714532852,
0.3015243411064148,
0.15949788689613342,
0.0825539156794548,
-0.4828439950942993,
0.27532052993774414,
-0.2664932608604431,
0.17545080184936523,
-0.030631190165877342,
-0.3450261950492859,
-0.16099761426448822,
0.1279793530702591,
-0.19141976535320282,
0.17959058284759521,
0.1290138065814972,
-0.022878557443618774,
0.5700924396514893,
-0.13853462040424347,
-0.2587909996509552,
-0.31955695152282715,
-0.017411716282367706,
0.1505298763513565,
0.1474251002073288,
-0.01891382597386837,
-0.3108357787132263,
0.1858167201280594,
0.10508187860250473,
0.22384944558143616,
0.007543941494077444,
-0.028107939288020134,
0.0899486243724823,
-0.22630150616168976,
-0.08960376679897308,
0.3430851697921753,
0.08690229803323746,
0.28060460090637207,
0.18324926495552063,
0.1089402362704277,
-0.011504963040351868,
0.18620862066745758,
0.2204471081495285,
0.14327561855316162,
-0.11629753559827805,
0.08192144334316254,
-0.2621046006679535,
-0.11713141947984695,
0.5180974006652832,
0.13312925398349762,
0.39207568764686584,
0.12302892655134201,
0.38137033581733704,
0.18141014873981476,
0.15239901840686798,
0.3915373384952545,
-0.09629952162504196,
0.05032053962349892,
-0.0888623297214508,
-0.046953655779361725,
-0.05952097102999687,
0.10103714466094971,
-0.1800716519355774,
0.2891722619533539,
0.004001629073172808,
0.11043652892112732,
-0.028808118775486946,
0.4164353609085083,
0.22671052813529968,
-0.10729605704545975,
-0.06030634045600891,
0.2415638118982315,
0.2479131668806076,
0.3363708257675171,
0.2434166669845581,
0.27990633249282837,
0.13740211725234985,
-0.11328204721212387,
-0.1982467919588089,
0.03177362680435181,
0.29132601618766785,
-0.17010819911956787,
-0.13765668869018555,
0.03230296075344086,
0.6526055932044983,
0.17217311263084412,
0.41239601373672485,
0.23162180185317993,
0.20147980749607086,
0.2239348590373993,
0.3061025142669678,
0.11052743345499039,
0.10288803279399872,
0.1833372563123703,
0.4449324905872345,
-0.04682501032948494,
0.16267073154449463,
0.8947772979736328,
0.11343743652105331,
-0.37876370549201965,
-0.313711017370224,
0.06611969321966171,
-0.10216207802295685,
-0.29683464765548706,
-0.09134797751903534,
-0.09678468108177185,
-0.3326014578342438,
0.05465405806899071,
0.08101686835289001,
-0.11873210966587067,
-0.5291759967803955,
-0.4242376983165741,
0.517699122428894,
-0.3008619248867035,
-0.0995447114109993,
0.43256905674934387,
-0.017716525122523308,
0.5202096700668335,
0.5960308909416199,
0.3152930438518524,
0.06761883944272995,
0.07064344733953476,
0.428995281457901,
-0.26210933923721313,
0.0018366656731814146,
0.2203693985939026,
0.25705990195274353,
0.09678412228822708,
0.05939260870218277,
0.07227297872304916,
-0.004069661255925894,
-0.051076773554086685,
-0.031432654708623886,
-0.054235078394412994,
0.07115210592746735,
-0.1385302096605301,
0.47409072518348694,
0.024608701467514038,
-0.18480567634105682,
0.0072493706829845905,
0.31132546067237854,
-0.3124319612979889,
0.13747122883796692,
0.0962599515914917,
-0.08262444287538528,
-0.10981470346450806,
0.1103905737400055,
-0.00012456449621822685,
0.10498631745576859,
0.1413685381412506,
0.49954578280448914,
0.002236363012343645,
0.014609841629862785,
0.036958299577236176,
-0.3628651201725006,
-0.25463172793388367,
0.3638891875743866,
0.233900785446167,
0.07204602658748627,
-0.1506691426038742,
0.5485127568244934,
0.4051661789417267,
-0.22888734936714172,
0.016216685995459557,
-0.5260785222053528,
0.2718013823032379,
-0.13917522132396698,
0.07990437000989914,
0.13064707815647125,
0.03149177506566048,
0.07679396122694016,
0.4003417193889618,
-0.3214031457901001,
-0.4901401400566101,
-0.09518217295408249,
0.13732418417930603,
0.02010284550487995,
-0.060118064284324646,
-0.0938892737030983,
-0.04823819175362587,
-0.0940655767917633,
-0.018173281103372574,
-0.07978232949972153,
-0.1192050352692604,
-0.20021899044513702,
-0.40867307782173157,
-0.10553474724292755,
0.028871798887848854,
-0.15623290836811066,
0.37729600071907043,
-0.1519806683063507,
-0.11899450421333313,
0.18036530911922455,
-0.19503726065158844,
0.13516610860824585,
-0.14045073091983795,
-0.5362729430198669,
0.1425040066242218,
-0.09600632637739182,
-0.1436719447374344,
0.25054773688316345,
0.2519666254520416,
0.15383414924144745,
0.32092544436454773,
-0.38750889897346497,
-0.5163574814796448,
0.6283261179924011,
-0.23688533902168274,
0.13267241418361664,
-0.2854484021663666,
0.27631187438964844,
0.2571355402469635,
0.16624681651592255,
-0.5226240158081055,
0.03203986585140228,
0.28935104608535767,
-0.02061726711690426,
-0.35451677441596985,
0.19280493259429932,
0.038117196410894394,
-0.11577344685792923,
-0.1874920129776001,
-0.3579196035861969,
0.30213040113449097,
-0.12331604212522507,
-0.24826528131961823,
-0.07224735617637634
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | That's awesome! Actually, I just noticed that this dataset might become a bit too big!
MuST-C is the main dataset used for IWSLT19 and should probably be added as a standalone dataset. Would you be interested also in adding `datasets/MuST-C` instead?
Description:
_MuST-C is a multilingual speech translation corpus whose size and quality facilitates the training of end-to-end systems for speech translation from English into several languages. For each target language, MuST-C comprises several hundred hours of audio recordings from English TED Talks, which are automatically aligned at the sentence level with their manual transcriptions and translations._
Paper: https://www.aclweb.org/anthology/N19-1202.pdf
Dataset: https://ict.fbk.eu/must-c/ (One needs to fill out a short from to download the data, but it's very easy).
It would be awesome if you're interested in adding this datates. I'm very happy to guide you through the PR! I think the easiest way to start would probably be to read [this README on how to add a dataset](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) and open a PR. Think you can copy & paste some code from:
- Librispeech_asr: https://github.com/huggingface/datasets/blob/master/datasets/librispeech_asr/librispeech_asr.py
- Flores Translation: https://github.com/huggingface/datasets/blob/master/datasets/flores/flores.py
Think all the rest can be handled on the PR :-) | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 188 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
That's awesome! Actually, I just noticed that this dataset might become a bit too big!
MuST-C is the main dataset used for IWSLT19 and should probably be added as a standalone dataset. Would you be interested also in adding `datasets/MuST-C` instead?
Description:
_MuST-C is a multilingual speech translation corpus whose size and quality facilitates the training of end-to-end systems for speech translation from English into several languages. For each target language, MuST-C comprises several hundred hours of audio recordings from English TED Talks, which are automatically aligned at the sentence level with their manual transcriptions and translations._
Paper: https://www.aclweb.org/anthology/N19-1202.pdf
Dataset: https://ict.fbk.eu/must-c/ (One needs to fill out a short from to download the data, but it's very easy).
It would be awesome if you're interested in adding this datates. I'm very happy to guide you through the PR! I think the easiest way to start would probably be to read [this README on how to add a dataset](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) and open a PR. Think you can copy & paste some code from:
- Librispeech_asr: https://github.com/huggingface/datasets/blob/master/datasets/librispeech_asr/librispeech_asr.py
- Flores Translation: https://github.com/huggingface/datasets/blob/master/datasets/flores/flores.py
Think all the rest can be handled on the PR :-) | [
-0.28751295804977417,
0.17527498304843903,
-0.05233779177069664,
-0.016081223264336586,
-0.10274030268192291,
0.04134631156921387,
0.03224589303135872,
0.15731316804885864,
-0.3544584810733795,
0.23967675864696503,
-0.23819857835769653,
-0.11117725074291229,
-0.19824498891830444,
0.10468839108943939,
0.1299677938222885,
-0.1173933893442154,
0.06263233721256256,
0.1621662825345993,
-0.2575621008872986,
-0.24262866377830505,
-0.08484046906232834,
-0.021014807745814323,
-0.1676175892353058,
-0.21543116867542267,
-0.2636868357658386,
-0.23435896635055542,
-0.34441113471984863,
-0.022243060171604156,
-0.22282961010932922,
-0.1175919696688652,
0.1175151988863945,
0.24841362237930298,
0.2399592250585556,
0.4444422721862793,
-0.00010515679605305195,
-0.19214244186878204,
0.1900986284017563,
-0.3233174979686737,
-0.32892468571662903,
-0.007507700938731432,
-0.23929427564144135,
-0.1538309007883072,
-0.5299214124679565,
-0.050316572189331055,
-0.08309465646743774,
-0.3202909231185913,
0.04071345180273056,
0.16451701521873474,
0.20446878671646118,
0.5778823494911194,
0.214056134223938,
0.16669631004333496,
0.348229318857193,
-0.11885487288236618,
0.23721028864383698,
0.10144507884979248,
-0.12061995267868042,
0.1359511911869049,
0.32142576575279236,
0.050292450934648514,
0.1298288106918335,
0.35192978382110596,
0.07516219466924667,
-0.2078210860490799,
-0.001317418529652059,
-0.29706114530563354,
-0.17037269473075867,
-0.46972712874412537,
0.05461995676159859,
0.3466716408729553,
0.5668891668319702,
-0.2300916463136673,
-0.13793516159057617,
-0.18856582045555115,
0.23853258788585663,
-0.27539414167404175,
-0.14257943630218506,
0.10175437480211258,
-0.24686536192893982,
0.22015510499477386,
0.13388389348983765,
-0.19836154580116272,
-0.26175692677497864,
0.42355525493621826,
-0.03932252526283264,
0.26889050006866455,
-0.021024780347943306,
-0.06641878187656403,
0.15837641060352325,
-0.24045158922672272,
-0.27389445900917053,
-0.022595681250095367,
0.10158170014619827,
-0.008362317457795143,
-0.2182193398475647,
-0.31578484177589417,
0.2978571355342865,
-0.1357147991657257,
0.17325109243392944,
-0.3756062686443329,
-0.1892125904560089,
-0.15222474932670593,
-0.1686466932296753,
0.03083012066781521,
0.10539510101079941,
0.34807315468788147,
-0.12742581963539124,
0.10759609937667847,
-0.03609419986605644,
-0.16727596521377563,
0.0026850802823901176,
0.21271318197250366,
-0.1308421641588211,
0.15243461728096008,
-0.33704084157943726,
0.25810763239860535,
-0.13946373760700226,
-0.10064955800771713,
-0.22708652913570404,
0.1519315242767334,
-0.15494529902935028,
0.1976892054080963,
-0.049768444150686264,
0.1678735315799713,
0.15022270381450653,
0.41239699721336365,
-0.0852503851056099,
0.3266166150569916,
0.04359529912471771,
-0.18593375384807587,
-0.05001121759414673,
0.15480011701583862,
-0.25427156686782837,
0.2566568851470947,
0.237821564078331,
0.31298738718032837,
0.17836837470531464,
0.005379163660109043,
0.327602356672287,
0.061762403696775436,
-0.09912631660699844,
-0.051157016307115555,
0.28839004039764404,
0.10071340948343277,
0.136355459690094,
0.000026172019715886563,
-0.2535659372806549,
-0.17372667789459229,
-0.27744823694229126,
0.009300503879785538,
0.13574281334877014,
-0.17946186661720276,
-0.1582837998867035,
0.23795484006404877,
-0.10186555236577988,
-0.1741173267364502,
-0.30404120683670044,
0.7007138133049011,
-0.06063685938715935,
-0.12106315046548843,
0.052895959466695786,
-0.05322130769491196,
-0.36572808027267456,
0.034251224249601364,
-0.08725186437368393,
0.31262317299842834,
-0.28720971941947937,
0.03939417004585266,
0.05746816471219063,
0.0726872906088829,
0.1355341672897339,
0.1585349291563034,
-0.12878181040287018,
0.35932302474975586,
-0.0331004336476326,
0.34601926803588867,
-0.04887518659234047,
-0.4397498071193695,
-0.2815991938114166,
0.15357275307178497,
-0.21276888251304626,
0.09607348591089249,
0.17831426858901978,
-0.10739738494157791,
0.5414621233940125,
-0.37189897894859314,
0.034977637231349945,
0.3706715703010559,
-0.17272727191448212,
0.034049320966005325,
-0.18943676352500916,
-0.28468596935272217,
0.0788007378578186,
0.18390117585659027,
-0.03232085704803467,
-0.08002267777919769,
-0.04356282204389572,
0.37276116013526917,
0.2667350172996521,
-0.3871520161628723,
0.22023537755012512,
0.25635290145874023,
-0.044742558151483536,
-0.07487811148166656,
-0.028326768428087234,
-0.19607652723789215,
-0.18361084163188934,
-0.05902637913823128,
0.19121472537517548,
0.6219030022621155,
0.15502969920635223,
-0.25316596031188965,
-0.14195549488067627,
-0.2369057536125183,
-0.1443941444158554,
-0.06201328709721565,
0.22814825177192688,
0.31509795784950256,
0.11076156795024872,
-0.11259818822145462,
-0.08612730354070663,
0.20711995661258698,
-0.5647341012954712,
-0.26470866799354553,
-0.15389375388622284,
0.18142615258693695,
0.008467954583466053,
-0.2195855975151062,
0.3080780506134033,
0.4227021634578705,
0.014659851789474487,
0.053554851561784744,
0.028554968535900116,
0.13541217148303986,
-0.16197983920574188,
0.25796058773994446,
0.0781194195151329,
0.1648443192243576,
0.2727852165699005,
-0.567776620388031,
0.13320988416671753,
0.46465831995010376,
0.07762639969587326,
-0.17824265360832214,
-0.08203057199716568,
0.12444866448640823,
0.2989768385887146,
0.18296560645103455,
0.16404594480991364,
-0.1839013546705246,
0.1819780319929123,
-0.00043214220204390585,
-0.212380513548851,
-0.04353906586766243,
0.1498967409133911,
0.16381478309631348,
-0.23492823541164398,
0.03654130920767784,
-0.35421690344810486,
0.2235676646232605,
0.451802521944046,
-0.22634504735469818,
0.26484987139701843,
0.3474595546722412,
-0.0424366295337677,
-0.1756831258535385,
-0.00047306963824667037,
-0.103401318192482,
0.3319275677204132,
0.36276501417160034,
0.24225379526615143,
0.007105597294867039,
0.0717024877667427,
-0.07307744771242142,
0.13889534771442413,
0.123782679438591,
-0.11277788877487183,
0.2940681278705597,
0.18112404644489288,
-0.0422678217291832,
-0.3254458010196686,
-0.0892077311873436,
-0.0382540337741375,
0.18449684977531433,
-0.10446276515722275,
-0.29789412021636963,
0.013378740288317204,
-0.20839159190654755,
-0.23774531483650208,
0.012981371954083443,
0.0028976919129490852,
0.030368966981768608,
0.35400357842445374,
0.047979895025491714,
-0.2579820156097412,
0.2546871602535248,
0.261828750371933,
0.267757773399353,
-0.34537383913993835,
-0.07911722362041473,
0.05458950623869896,
-0.4009777307510376,
-0.3158775866031647,
0.21584132313728333,
0.30167824029922485,
0.255600243806839,
0.18602710962295532,
-0.19140751659870148,
0.10035176575183868,
-0.1630120873451233,
-0.3969954252243042,
0.16237755119800568,
-0.3061777651309967,
0.061260294169187546,
-0.1400398463010788,
0.10189040005207062,
0.021082833409309387,
-0.5848550796508789,
-0.2191082239151001,
0.14481711387634277,
-0.11598753929138184,
-0.10499599575996399,
-0.5161016583442688,
-0.1699136644601822,
-0.04853252321481705,
-0.6011017560958862,
-0.4975528120994568,
-0.44638508558273315,
0.2768107056617737,
-0.19840139150619507,
0.057374849915504456,
0.09794831275939941,
0.12523503601551056,
0.06776375323534012,
0.008916212245821953,
0.17878854274749756,
-0.23387442529201508,
-0.08126451075077057,
0.1727399379014969,
-0.21968993544578552,
-0.2960349917411804,
-0.25032418966293335,
-0.12694670259952545,
0.034507546573877335,
-0.04537074640393257,
-0.3076550364494324,
0.15687111020088196,
-0.1172698438167572,
0.18627285957336426,
0.06958939135074615,
0.16463041305541992,
0.3058904707431793,
-0.03661198168992996,
-0.13271866738796234,
-0.10652924329042435,
-0.10932749509811401,
0.03631070628762245,
0.3674372136592865,
0.2547685503959656,
0.0032194913364946842,
0.003039564937353134,
-0.023649005219340324,
0.5740102529525757,
0.2956700623035431,
-0.12115506827831268,
0.10027047246694565,
0.04732324555516243,
0.27982670068740845,
-0.19511660933494568,
-0.33201754093170166,
0.45445603132247925,
0.0547158345580101,
-0.059497661888599396,
0.5838137269020081,
0.015740906819701195,
-0.45951539278030396,
-0.04947877302765846,
-0.24811245501041412,
-0.24015088379383087,
-0.29292023181915283,
0.35754847526550293,
0.16843754053115845,
0.2732198238372803,
-0.0738992765545845,
-0.26944777369499207,
-0.2592245638370514,
-0.20805086195468903,
0.1178254634141922,
0.14267653226852417,
0.031976982951164246,
0.03504442051053047,
-0.25505295395851135,
-0.014842309057712555,
-0.2404083013534546,
-0.05144785717129707,
0.3507370948791504,
0.266936331987381,
-0.3556981682777405,
0.0085829459130764,
-0.13415001332759857,
0.12011957168579102,
0.2352532297372818,
-0.3290528357028961,
-0.12411097437143326,
0.16914521157741547,
0.6236922144889832,
0.058091431856155396,
0.24498651921749115,
-0.27829959988594055,
-0.4077100455760956,
0.5713492035865784,
0.32709378004074097,
-0.3180732727050781,
0.02955836057662964,
0.18056964874267578,
0.4551045894622803,
0.01963180862367153,
-0.1199946478009224,
0.06692951917648315,
-0.41885679960250854,
-0.39545631408691406,
0.2638201415538788,
0.4192441403865814,
-0.03022092394530773,
0.14443635940551758,
0.05137499421834946,
0.2739146947860718,
-0.09937259554862976,
0.5432238578796387,
0.04442950338125229,
0.004227501340210438,
0.5168452262878418,
0.06524253636598587,
-0.02138742431998253,
-0.1969529390335083,
0.15595166385173798,
0.2522524893283844,
-0.07593358308076859,
-0.25593823194503784,
0.08561239391565323,
-0.19646723568439484,
0.3721095025539398,
0.3864423334598541,
0.12510371208190918,
0.015251132659614086,
-0.0959918200969696,
0.03403034433722496,
-0.22133126854896545,
0.323151558637619,
0.1718502938747406,
0.07879834622144699,
-0.2946382761001587,
-0.1797347068786621,
0.404314786195755,
0.021440420299768448,
-0.07492541521787643,
0.1412544548511505,
0.18432925641536713,
-0.2057359218597412,
0.35135525465011597,
-0.1385091096162796,
1.2044342756271362,
0.23801997303962708,
0.05688949301838875,
0.26590821146965027,
-0.10963762551546097,
0.08832918852567673,
-0.4995723366737366,
-0.08496398478746414,
0.3907923400402069,
0.25976574420928955,
-0.019022217020392418,
0.2098601907491684,
-0.1178993284702301,
0.2537156045436859,
-0.43998023867607117,
0.24260951578617096,
0.11508097499608994,
-0.007401485927402973,
0.23064200580120087,
0.5852326154708862,
-0.17134961485862732,
-0.5080519318580627,
-0.24036802351474762,
0.21984991431236267,
0.09457532316446304,
0.06718689203262329,
0.1623474508523941,
-0.27439039945602417,
0.11779393255710602,
-0.012320291250944138,
-0.6150580644607544,
0.09306015819311142,
-0.2432054728269577,
-0.20297157764434814,
-0.42964649200439453,
-0.1472194641828537,
0.37992650270462036,
0.21046313643455505,
0.2985905110836029,
0.016884081065654755,
-0.22639602422714233,
0.17326267063617706,
0.08656234294176102,
-0.022394780069589615,
0.08274742215871811,
-0.17294704914093018,
0.4044259488582611,
-0.2710452377796173,
-0.29509246349334717,
0.20022645592689514,
0.07041792571544647,
0.013364302925765514,
-0.4002259075641632,
-0.26003497838974,
0.24563172459602356,
0.14672867953777313,
0.24034805595874786,
0.6309664845466614,
-0.03597000986337662,
-0.27702170610427856,
0.18739189207553864,
-0.18144534528255463,
-0.388457328081131,
0.2241792231798172,
-0.2762511074542999,
-0.11897710710763931,
-0.22002427279949188,
0.061596356332302094,
0.27486807107925415,
-0.06350879371166229,
0.33371493220329285,
0.32253971695899963,
-0.0669051930308342,
-0.39630913734436035,
0.030445246025919914,
-0.010454713366925716,
-0.44092512130737305,
-0.0201864093542099,
0.09051104635000229,
-0.127953439950943,
-0.21170403063297272,
0.44161999225616455,
0.20736201107501984,
-0.07166662812232971,
-0.014257864095270634,
-0.04645073413848877,
-0.33226391673088074,
-0.016414014622569084,
0.09120462834835052,
0.19123341143131256,
-0.09927588701248169,
0.3792116940021515,
-0.03255922347307205,
0.11845025420188904,
-0.43360793590545654,
0.07619869709014893,
-0.162681445479393,
0.2437879741191864,
0.26326125860214233,
-0.14266082644462585,
0.24889598786830902,
0.04140833765268326,
0.15913882851600647,
0.010206462815403938,
-0.061905138194561005,
-0.22238798439502716,
-0.16574272513389587,
0.08454612642526627,
0.11847580224275589,
0.19009263813495636,
0.08741592615842819,
-0.04353973641991615,
-0.17226292192935944,
0.10139284282922745,
0.2535378038883209,
0.11840664595365524,
-0.03530227020382881,
0.15907110273838043,
-0.02477135881781578,
-0.057376399636268616,
0.12676072120666504,
-0.02225712314248085,
0.3171495795249939,
0.34229588508605957,
0.059077683836221695,
0.1731787770986557,
0.009803298860788345,
-0.21613706648349762,
-0.0024717908818274736,
0.3561342656612396,
0.21034662425518036,
0.023045113310217857,
0.04137708991765976,
0.15746848285198212,
0.02889123558998108,
0.2351682037115097,
0.04910552129149437,
0.05484816059470177,
-0.04705435410141945,
-0.021470610052347183,
0.2766655385494232,
0.2646976709365845,
-0.15335285663604736,
0.2425716668367386,
-0.25376248359680176,
-0.3012731671333313,
0.1291773021221161,
0.10176088660955429,
0.10319285094738007,
-0.13119247555732727,
0.2717265784740448,
-0.10537439584732056,
-0.23172660171985626,
0.04902896657586098,
-0.035723574459552765,
0.23772044479846954,
0.12845592200756073,
-0.08594729006290436,
-0.056269679218530655,
0.031223883852362633,
0.22075095772743225,
-0.03867441043257713,
-0.1650402545928955,
0.5045080780982971,
0.05536647140979767,
0.09405488520860672,
0.27530166506767273,
-0.16371692717075348,
0.09640447050333023,
0.056849364191293716,
0.21947713196277618,
0.15393377840518951,
0.05172085762023926,
0.42313194274902344,
0.04822009056806564,
-0.3117499053478241,
-0.14600178599357605,
0.2333991825580597,
0.10638371855020523,
0.010845184326171875,
-0.2279702126979828,
-0.21692106127738953,
-0.25330445170402527,
-0.03146317973732948,
0.016939593479037285,
-0.34706974029541016,
-0.04720335081219673,
0.15840095281600952,
-0.13481858372688293,
-0.19554170966148376,
-0.18274527788162231,
-0.22272449731826782,
0.15877245366573334,
-0.1729852259159088,
0.3621601164340973,
0.23587562143802643,
-0.15192577242851257,
0.15467286109924316,
0.4195306897163391,
0.503429114818573,
0.016471905633807182,
-0.2659989595413208,
0.2552724778652191,
0.07221581786870956,
-0.11349651962518692,
0.004205790348351002,
0.3613186776638031,
0.043830614537000656,
0.05309394374489784,
0.2383309006690979,
0.22130243480205536,
-0.260759174823761,
-0.2357931137084961,
0.09989773482084274,
-0.19373266398906708,
-0.11343049257993698,
0.09294648468494415,
-0.053952161222696304,
0.190490260720253,
-0.43259552121162415,
-0.037257686257362366,
-0.6131444573402405,
0.14929763972759247,
0.5136847496032715,
-0.23913927376270294,
0.07910944521427155,
-0.1282249093055725,
0.11622679233551025,
-0.3067200481891632,
0.33763304352760315,
0.3489735424518585,
0.1395459622144699,
-0.21940717101097107,
-0.20143936574459076,
-0.32091060280799866,
-0.014734996482729912,
-0.0631306990981102,
-0.10132332146167755,
-0.3647855222225189,
0.09813675284385681,
0.45249462127685547,
0.3658348321914673,
-0.26821470260620117,
-0.2221839278936386,
-0.3807547390460968,
0.18275202810764313,
-0.31414276361465454,
0.2570052742958069,
-0.02531488426029682,
0.42052191495895386,
0.09024813026189804,
-0.24136853218078613,
-0.2607528269290924,
0.18645323812961578,
0.08945309370756149,
-0.13241221010684967,
-0.08810066431760788,
-0.12447360903024673,
-0.05158334597945213,
0.10090304166078568,
-0.040192946791648865,
0.5253701210021973,
-0.2989618182182312,
-0.12349575757980347,
-0.16563409566879272,
0.001045223674736917,
-0.18615686893463135,
-0.05951822176575661,
-0.042781930416822433,
0.3104829788208008,
-0.22207404673099518,
0.3915451467037201,
-0.03504974767565727,
-0.2125219851732254,
0.12080399692058563,
0.06129106879234314,
-0.2969563603401184,
0.11239785701036453,
-0.21639733016490936,
0.04075360670685768,
0.03706202283501625,
0.3508244454860687,
0.002081019803881645,
-0.05121568962931633,
-0.2930358350276947,
-0.2200293391942978,
0.5129662752151489,
-0.14261694252490997,
-0.2901851236820221,
-0.026788363233208656,
0.33279457688331604,
0.122095488011837,
0.1083657294511795,
-0.6881360411643982,
0.275684118270874,
0.23023740947246552,
0.14843696355819702,
-0.04744239151477814,
0.19266517460346222,
0.058399658650159836,
-0.07805567979812622,
-0.04383573308587074,
-0.048791565001010895,
0.05657634139060974,
-0.21921585500240326,
0.07280565053224564,
-0.35674428939819336
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Hi @patrickvonplaten
I have tried downloading this dataset, but the connection seems to reset all the time. I have tried it via the browser, wget, and using gdown . But it gives me an error message. _"The server is busy or down, pls try again"_ (rephrasing the message here)
I have completed adding 4 datasets in the previous data sprint (including the IWSLT dataset #1676 ) ...so just checking if you are able to download it at your end. Otherwise will write to the dataset authors to update the links.
| ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 90 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @patrickvonplaten
I have tried downloading this dataset, but the connection seems to reset all the time. I have tried it via the browser, wget, and using gdown . But it gives me an error message. _"The server is busy or down, pls try again"_ (rephrasing the message here)
I have completed adding 4 datasets in the previous data sprint (including the IWSLT dataset #1676 ) ...so just checking if you are able to download it at your end. Otherwise will write to the dataset authors to update the links.
| [
-0.405750572681427,
0.11951646208763123,
-0.003910532221198082,
0.1509024202823639,
0.0220462828874588,
-0.0853213369846344,
-0.13353091478347778,
-0.00625575752928853,
-0.24000242352485657,
0.12572908401489258,
-0.2750508785247803,
-0.31894734501838684,
0.10233280807733536,
0.13984721899032593,
0.1449170857667923,
-0.09393055737018585,
0.12054317444562912,
0.02590516395866871,
-0.33614692091941833,
-0.265754759311676,
-0.08172178268432617,
0.049120910465717316,
-0.21699078381061554,
-0.2889324426651001,
-0.24526867270469666,
-0.07997217774391174,
-0.3513830006122589,
-0.12463837116956711,
-0.4012852609157562,
-0.199617400765419,
0.1150280013680458,
0.2857920527458191,
0.06138911098241806,
0.39383187890052795,
-0.00010921758075710386,
-0.11872143298387527,
0.27976664900779724,
-0.2949182689189911,
-0.4690209925174713,
-0.21306143701076508,
-0.46738332509994507,
-0.2018318772315979,
-0.3875802159309387,
0.09611877799034119,
-0.0633573979139328,
-0.11151165515184402,
0.20502054691314697,
0.11715619266033173,
0.34081077575683594,
0.5179668068885803,
0.19697564840316772,
0.06982037425041199,
0.44410210847854614,
-0.2930302321910858,
0.06935727596282959,
-0.04178712144494057,
-0.019698616117239,
0.2912704050540924,
0.25342315435409546,
0.02117512747645378,
0.19610081613063812,
0.0892120823264122,
-0.05230313166975975,
-0.13984915614128113,
-0.06792508810758591,
-0.24158911406993866,
-0.08774830400943756,
-0.4039776623249054,
0.47379767894744873,
0.3026018738746643,
0.8854362964630127,
-0.12355158478021622,
-0.05721335485577583,
0.05575177073478699,
0.3473546504974365,
-0.1545780599117279,
0.05949597433209419,
-0.036159347742795944,
-0.23031099140644073,
0.2189464420080185,
0.03700099512934685,
-0.30954185128211975,
-0.254293829202652,
0.45019200444221497,
-0.02630285732448101,
0.32997310161590576,
-0.04263649135828018,
0.09615568071603775,
0.1398075670003891,
-0.20916640758514404,
-0.11205551028251648,
-0.06455118954181671,
-0.10944470018148422,
0.13295522332191467,
-0.34834185242652893,
-0.07176274806261063,
0.11174401640892029,
-0.014107557013630867,
0.045082852244377136,
-0.24686384201049805,
-0.23099343478679657,
0.005750925280153751,
-0.08934418857097626,
-0.08717788755893707,
0.18811500072479248,
0.3799707591533661,
-0.029560238122940063,
-0.11595499515533447,
0.15222935378551483,
-0.017390716820955276,
0.014199415221810341,
0.009937996976077557,
-0.11142878979444504,
0.05474105477333069,
-0.34089645743370056,
0.16528551280498505,
0.08062383532524109,
-0.20363333821296692,
-0.21363034844398499,
0.08811946213245392,
-0.20036639273166656,
-0.046621061861515045,
-0.10082443058490753,
0.4376765191555023,
-0.059108562767505646,
0.30932778120040894,
-0.06037721037864685,
0.19304482638835907,
-0.1479226052761078,
-0.3695371448993683,
-0.08712630718946457,
-0.016754234209656715,
-0.27185142040252686,
0.08073198795318604,
0.23283985257148743,
0.25965195894241333,
0.05901326611638069,
0.09371239691972733,
0.04921252653002739,
-0.0665861964225769,
-0.23986192047595978,
-0.03846371918916702,
0.2115904986858368,
0.1285414844751358,
0.06984864920377731,
0.2205137461423874,
-0.09208448976278305,
-0.2250448316335678,
-0.04268242418766022,
0.1004713848233223,
0.08373958617448807,
-0.07450249791145325,
-0.12879957258701324,
0.19206655025482178,
-0.17977271974086761,
-0.31410133838653564,
-0.3180530071258545,
0.5080111622810364,
-0.24146191775798798,
-0.06528676301240921,
0.032365985214710236,
0.10246217995882034,
-0.4688640534877777,
-0.0210201907902956,
0.04072575271129608,
0.559644877910614,
-0.44361552596092224,
-0.030784202739596367,
0.08801857382059097,
-0.03090401366353035,
0.14536601305007935,
0.15752507746219635,
-0.15458054840564728,
0.3193620443344116,
-0.021449146792292595,
0.3011644780635834,
-0.028509676456451416,
-0.22304998338222504,
-0.6605324745178223,
0.07810624688863754,
-0.09664804488420486,
-0.06668450683355331,
0.06184535101056099,
-0.009019337594509125,
0.6679306030273438,
0.04562997445464134,
-0.1564013510942459,
0.4466239809989929,
0.04941203072667122,
-0.07151216268539429,
-0.14203068614006042,
-0.3319183588027954,
0.2892172336578369,
-0.01979486644268036,
0.16870258748531342,
-0.05372365936636925,
0.13308085501194,
0.3083944618701935,
0.31693002581596375,
-0.014078553766012192,
0.29645460844039917,
0.3474658131599426,
0.08166494220495224,
-0.01889520324766636,
0.048490479588508606,
0.02459918148815632,
-0.3104141354560852,
0.14868082106113434,
0.21966294944286346,
0.4836668074131012,
-0.09787828475236893,
0.003281413810327649,
-0.23448282480239868,
-0.13089369237422943,
-0.3603484332561493,
-0.1023181602358818,
0.18766358494758606,
0.37287575006484985,
0.14797614514827728,
0.09668651223182678,
-0.07755690068006516,
0.39410102367401123,
-0.2766839265823364,
-0.10551534593105316,
-0.08797170221805573,
0.4249131381511688,
-0.006178012117743492,
-0.2714400291442871,
0.18619993329048157,
0.2040863037109375,
0.33420655131340027,
-0.0953063815832138,
-0.026194315403699875,
0.25057223439216614,
-0.248203307390213,
0.36514198780059814,
0.11219602078199387,
0.09923108667135239,
0.26522383093833923,
-0.5659908652305603,
0.21993781626224518,
0.44329702854156494,
0.22069966793060303,
-0.3255325257778168,
0.005689458921551704,
-0.15500237047672272,
0.2652456760406494,
0.1565915197134018,
0.09057630598545074,
0.029094668105244637,
0.4552963376045227,
-0.08147868514060974,
-0.1654934287071228,
0.03456118702888489,
0.25612714886665344,
0.22512473165988922,
-0.17972318828105927,
-0.11533253639936447,
-0.27866360545158386,
0.25715845823287964,
0.3868493437767029,
-0.30513015389442444,
0.26232239603996277,
0.15704955160617828,
-0.036199118942022324,
-0.2613963186740875,
-0.01969643123447895,
-0.10091562569141388,
0.27626582980155945,
0.17339129745960236,
0.304048627614975,
0.09634796530008316,
0.056576814502477646,
-0.06220851466059685,
0.20410767197608948,
0.021330557763576508,
-0.17221495509147644,
0.21428830921649933,
0.13728269934654236,
-0.20129336416721344,
-0.3991735279560089,
0.08783270418643951,
0.1849178522825241,
0.31507211923599243,
-0.09807910770177841,
-0.2744603455066681,
-0.21131961047649384,
-0.2693473994731903,
-0.30654245615005493,
-0.09197402000427246,
-0.3515453040599823,
-0.08077937364578247,
0.18751539289951324,
0.07191891968250275,
0.13176430761814117,
0.21879293024539948,
0.22437088191509247,
0.23386003077030182,
-0.3013218641281128,
-0.04228906333446503,
0.028026681393384933,
-0.3736099302768707,
-0.4183722138404846,
0.07495855540037155,
0.34465208649635315,
0.26060858368873596,
0.24958278238773346,
-0.19365353882312775,
0.017234064638614655,
-0.33355653285980225,
-0.20545487105846405,
0.26994451880455017,
-0.115175761282444,
0.049855753779411316,
-0.2566849887371063,
0.33048322796821594,
-0.05549294874072075,
-0.2536813020706177,
-0.15106090903282166,
-0.07299678027629852,
0.07809070497751236,
-0.029139768332242966,
-0.3341873288154602,
-0.18402335047721863,
0.08490755409002304,
-0.5110991597175598,
-0.42482519149780273,
-0.29906561970710754,
0.3247787654399872,
-0.37236133217811584,
-0.07137243449687958,
0.1569875031709671,
0.04702743887901306,
0.12903377413749695,
-0.07992500811815262,
0.004536588676273823,
-0.42044517397880554,
-0.09208663552999496,
0.16202561557292938,
-0.06627446413040161,
-0.41014206409454346,
0.12325223535299301,
0.14406810700893402,
0.16362734138965607,
-0.045678913593292236,
-0.3998609781265259,
0.24959218502044678,
-0.11164737492799759,
0.2885935604572296,
0.2177090346813202,
0.11705423891544342,
0.32759755849838257,
-0.15101787447929382,
-0.07645893841981888,
-0.13975736498832703,
-0.19710487127304077,
0.036246512085199356,
0.3786500096321106,
0.4517073333263397,
0.10345408320426941,
0.0949346125125885,
0.0015621721977367997,
0.5036550760269165,
0.24244128167629242,
-0.003121028421446681,
0.19955891370773315,
-0.03233269229531288,
0.34518471360206604,
-0.12026938796043396,
-0.47841084003448486,
0.3422199487686157,
-0.1209317147731781,
-0.10801366716623306,
0.3984336256980896,
-0.023738184943795204,
-0.4457188546657562,
-0.28674831986427307,
-0.20881716907024384,
-0.17307321727275848,
-0.3948393762111664,
0.2035854309797287,
0.3248837888240814,
0.19424955546855927,
0.089413121342659,
-0.06773529201745987,
-0.06992437690496445,
-0.24380287528038025,
0.25303220748901367,
0.19205734133720398,
-0.1503225862979889,
0.045789144933223724,
-0.22620224952697754,
-0.06157108023762703,
-0.522759735584259,
-0.003161159111186862,
0.08835756033658981,
0.6162905097007751,
-0.5153847336769104,
0.2788063883781433,
0.16378910839557648,
0.11187737435102463,
0.4498521685600281,
-0.46745535731315613,
0.02567431516945362,
0.2579939365386963,
0.5658133625984192,
-0.024493085220456123,
0.08525025844573975,
-0.18263936042785645,
-0.3291037082672119,
0.7147038578987122,
0.19014529883861542,
-0.2403813898563385,
0.14965423941612244,
0.07431193441152573,
0.422189325094223,
-0.09127549082040787,
-0.10627321153879166,
0.0818331241607666,
-0.46520760655403137,
-0.36230435967445374,
0.016763219609856606,
0.21979548037052155,
0.023224102333188057,
0.30309784412384033,
0.1681034117937088,
0.286833792924881,
-0.0858306810259819,
0.27004367113113403,
-0.06969435513019562,
-0.06538833677768707,
0.619154691696167,
0.18404529988765717,
0.17789216339588165,
-0.09543300420045853,
-0.1222425028681755,
0.38810816407203674,
-0.11372808367013931,
-0.34067052602767944,
0.0815933421254158,
-0.2186899334192276,
0.28967446088790894,
0.44770652055740356,
0.19239944219589233,
0.13422495126724243,
0.09141071885824203,
0.054112546145915985,
-0.2861170470714569,
0.24857884645462036,
0.29365992546081543,
0.17742666602134705,
-0.33531367778778076,
-0.4066302478313446,
0.4526827335357666,
-0.1107046902179718,
-0.07927898317575455,
0.1087721511721611,
0.11368933320045471,
-0.1474587619304657,
0.10332944244146347,
-0.22809292376041412,
1.3418976068496704,
0.2603316903114319,
-0.103619784116745,
0.15968072414398193,
-0.3964630365371704,
0.04892204329371452,
-0.48837125301361084,
0.05775284022092819,
0.24189850687980652,
0.12644949555397034,
-0.07929251343011856,
0.23860542476177216,
-0.07683355361223221,
0.048862311989068985,
-0.4408451020717621,
0.45171403884887695,
0.0355282761156559,
0.08242606371641159,
0.20135560631752014,
0.5475211143493652,
-0.14084981381893158,
-0.29707950353622437,
-0.18802157044410706,
0.22207410633563995,
0.1191570982336998,
0.42472904920578003,
0.0701708197593689,
-0.1490737795829773,
0.15834088623523712,
-0.08466470241546631,
-0.8224695324897766,
0.10918368399143219,
-0.3392356336116791,
-0.03964000195264816,
-0.45345255732536316,
-0.046716563403606415,
0.17599919438362122,
0.04544151946902275,
0.302859902381897,
-0.009631016291677952,
-0.3284364342689514,
0.32357895374298096,
-0.11580725759267807,
-0.06657975167036057,
0.12939481437206268,
-0.10589806735515594,
0.255230575799942,
-0.2061973661184311,
-0.4552621841430664,
0.17739088833332062,
0.1539207249879837,
0.007360029499977827,
-0.3866432309150696,
-0.28271105885505676,
0.022493379190564156,
0.09629669785499573,
0.2535407245159149,
0.5415590405464172,
0.05583838000893593,
-0.18778151273727417,
0.1313236951828003,
-0.10406225174665451,
-0.25733011960983276,
0.266568124294281,
-0.2013321965932846,
-0.2123294621706009,
-0.23596183955669403,
0.44191667437553406,
0.0364743173122406,
-0.07239557802677155,
0.4562739133834839,
0.5152435302734375,
-0.18427713215351105,
-0.28911393880844116,
-0.11906906962394714,
-0.07730937749147415,
-0.5514751672744751,
-0.08087195456027985,
-0.04935475438833237,
0.0920359417796135,
-0.2553328275680542,
0.3498761057853699,
0.06987885385751724,
0.017356524243950844,
-0.09593404084444046,
-0.19917461276054382,
-0.15583817660808563,
-0.0977616235613823,
0.28871655464172363,
0.2710488736629486,
-0.20012056827545166,
0.13033108413219452,
0.25511568784713745,
-0.1390501856803894,
-0.34071192145347595,
0.11936317384243011,
-0.14130185544490814,
0.18808375298976898,
0.28512370586395264,
-0.29648277163505554,
0.3054426312446594,
0.00537464302033186,
0.08207900077104568,
-0.1342374086380005,
-0.08786408603191376,
-0.11900180578231812,
-0.04584791138768196,
0.10821449756622314,
0.06909477710723877,
-0.002401632722467184,
-0.16773800551891327,
-0.36039188504219055,
-0.15494857728481293,
0.2408122420310974,
0.18007612228393555,
0.2694816291332245,
-0.11452370882034302,
0.022833524271845818,
-0.00593350687995553,
0.014790652319788933,
0.1496972292661667,
0.00040033255936577916,
0.28443172574043274,
0.5005567669868469,
0.15752224624156952,
0.21742744743824005,
0.059482064098119736,
-0.026523884385824203,
-0.2028450220823288,
0.3382105529308319,
0.15226802229881287,
-0.16358615458011627,
0.16328923404216766,
-0.009359298273921013,
0.09800051152706146,
0.19106736779212952,
0.1548508256673813,
0.24135582149028778,
-0.041681669652462006,
-0.18475335836410522,
0.42563381791114807,
0.1649841070175171,
-0.17445489764213562,
0.028038300573825836,
-0.14189474284648895,
-0.05083459988236427,
0.023178698495030403,
0.04877181351184845,
-0.004996009636670351,
-0.32027697563171387,
0.15850678086280823,
-0.03471186384558678,
0.008387296460568905,
0.08323194831609726,
0.035887084901332855,
0.2588764727115631,
0.030473215505480766,
-0.17394955456256866,
0.08404037356376648,
0.039826102554798126,
-0.07761664688587189,
-0.040623754262924194,
-0.16572751104831696,
0.3330056071281433,
-0.06223509833216667,
0.2478659600019455,
0.1206946074962616,
-0.2034357786178589,
0.06793992966413498,
0.1265934705734253,
0.06781827658414841,
0.0898023471236229,
0.05542007461190224,
0.4078163504600525,
0.038784999400377274,
-0.1463385373353958,
-0.2957151532173157,
0.35138893127441406,
0.14440296590328217,
-0.06649835407733917,
-0.09862762689590454,
-0.36918866634368896,
-0.3593112528324127,
0.14439356327056885,
0.055378854274749756,
-0.2998840808868408,
0.040899887681007385,
0.28409671783447266,
-0.17506179213523865,
-0.162592351436615,
-0.30258673429489136,
-0.21623943746089935,
0.040769435465335846,
-0.30844736099243164,
0.3035302460193634,
0.1948905885219574,
-0.024065326899290085,
0.16237372159957886,
0.5255325436592102,
0.42403098940849304,
0.1362576186656952,
-0.2181157022714615,
0.42444276809692383,
0.10532274097204208,
-0.0706629827618599,
0.09540172666311264,
0.4309613108634949,
0.11977564543485641,
0.031717002391815186,
0.2487390786409378,
0.13319112360477448,
-0.13525286316871643,
-0.09084068238735199,
0.030153390020132065,
0.0016618053195998073,
-0.17248667776584625,
0.05893740803003311,
0.0017149205086752772,
0.3237994611263275,
-0.5256593823432922,
-0.1704334020614624,
-0.6494347453117371,
0.10553619265556335,
0.3118800222873688,
-0.2809126079082489,
0.27774548530578613,
-0.220042884349823,
0.07651037722826004,
-0.35349759459495544,
0.3516309857368469,
0.31778132915496826,
0.1568412184715271,
-0.2055826336145401,
-0.22691789269447327,
-0.42492255568504333,
-0.13975723087787628,
-0.1353379487991333,
0.09342214465141296,
-0.28003573417663574,
0.09738054126501083,
0.2640996277332306,
0.22546300292015076,
0.03991096094250679,
-0.011921628378331661,
-0.421878844499588,
0.3082428574562073,
-0.18785403668880463,
0.10518171638250351,
0.13755883276462555,
0.5417035818099976,
-0.050484899431467056,
-0.08526839315891266,
-0.035154178738594055,
0.1570747345685959,
0.01319774892181158,
-0.06135094165802002,
-0.21571587026119232,
-0.11668556183576584,
-0.2601780593395233,
0.11197511106729507,
0.04905414953827858,
0.5883554220199585,
-0.1400182992219925,
-0.07036150991916656,
-0.4372202754020691,
-0.10420659929513931,
-0.03013540804386139,
-0.04357188194990158,
-0.019224856048822403,
0.1632123440504074,
-0.08836422115564346,
0.3698635399341583,
-0.2326095998287201,
-0.24435359239578247,
-0.09029503911733627,
0.35235169529914856,
-0.3444109559059143,
-0.06611495465040207,
-0.1640641838312149,
0.16833846271038055,
-0.0599140003323555,
0.11664684116840363,
-0.026647822931408882,
-0.05754147469997406,
-0.2933109998703003,
-0.09798024594783783,
0.413792222738266,
-0.19227734208106995,
-0.3772279620170593,
-0.2222600281238556,
0.30684348940849304,
-0.01494775153696537,
0.14554180204868317,
-0.6260251998901367,
0.2453351616859436,
0.22478148341178894,
0.05619537830352783,
-0.08777610957622528,
0.1486869603395462,
0.14266449213027954,
0.13320519030094147,
-0.06931764632463455,
0.055434565991163254,
0.23442357778549194,
-0.2237687110900879,
0.20150141417980194,
-0.20662403106689453
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | @skyprince999, I think I'm getting the same error you're getting :-/
```
Sorry, you can't view or download this file at this time.
Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.
```
It would be great if you could write the authors to see whether they can fix it.
Also cc @lhoestq - do you think we could mirror the dataset? | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 117 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
@skyprince999, I think I'm getting the same error you're getting :-/
```
Sorry, you can't view or download this file at this time.
Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.
```
It would be great if you could write the authors to see whether they can fix it.
Also cc @lhoestq - do you think we could mirror the dataset? | [
-0.3741525113582611,
0.051990289241075516,
-0.04828917235136032,
0.0795520469546318,
-0.013570498675107956,
0.01749902032315731,
0.08156539499759674,
0.18861348927021027,
-0.20640353858470917,
0.38557514548301697,
-0.3391422927379608,
-0.5373646020889282,
-0.053258638828992844,
-0.010436592623591423,
0.1305617243051529,
-0.21010315418243408,
0.0005455631180666387,
-0.0619700588285923,
-0.2461220622062683,
-0.1063695102930069,
-0.10544712096452713,
0.03694853186607361,
-0.12918271124362946,
-0.023843595758080482,
-0.20577934384346008,
-0.10446885973215103,
-0.33553558588027954,
-0.06736420840024948,
-0.3276139795780182,
-0.26889315247535706,
0.019658034667372704,
0.2734159529209137,
0.11549974232912064,
0.40121474862098694,
-0.00010457434109412134,
0.00014951983757782727,
0.40673720836639404,
-0.04819472134113312,
-0.3458152711391449,
-0.17425164580345154,
-0.1645575314760208,
-0.2898889482021332,
-0.4356118142604828,
0.05966188386082649,
-0.22533702850341797,
-0.1871689260005951,
0.2630779445171356,
0.04619697853922844,
0.33122527599334717,
0.5269787907600403,
0.2198280245065689,
-0.05756048858165741,
0.3618282079696655,
-0.30246391892433167,
0.30618879199028015,
-0.1263411045074463,
-0.08863040059804916,
0.37887322902679443,
0.36227962374687195,
0.12810805439949036,
0.19285079836845398,
0.2564084529876709,
-0.049439575523138046,
-0.12817786633968353,
0.009310950525105,
-0.3232196569442749,
-0.06198795884847641,
-0.37819039821624756,
0.11266203969717026,
0.25088611245155334,
0.8849614262580872,
0.11650965362787247,
-0.23764368891716003,
-0.04537022113800049,
0.18586890399456024,
-0.08202808350324631,
0.1716371327638626,
0.08199591189622879,
-0.09749791771173477,
0.24207273125648499,
0.010666663758456707,
-0.2699158489704132,
-0.2761211395263672,
0.2845785319805145,
0.061082374304533005,
0.14045512676239014,
-0.07214696705341339,
0.10895240306854248,
0.21836580336093903,
-0.2003875970840454,
-0.26036423444747925,
0.18270736932754517,
-0.09529582411050797,
0.22843188047409058,
-0.11515036225318909,
-0.03163916990160942,
0.23588436841964722,
-0.16714726388454437,
-0.0537562295794487,
-0.1710323840379715,
-0.13050352036952972,
-0.19165614247322083,
-0.20570126175880432,
0.09875251352787018,
-0.001143633620813489,
0.4225841164588928,
-0.025822332128882408,
-0.09396632015705109,
0.24319054186344147,
-0.12161771208047867,
-0.040877170860767365,
0.06720280647277832,
-0.1611657589673996,
-0.15631701052188873,
-0.47414273023605347,
0.25873813033103943,
0.08589863777160645,
-0.15744523704051971,
-0.2232067734003067,
0.008140666410326958,
-0.06438623368740082,
-0.026837386190891266,
0.026604346930980682,
0.3763578236103058,
-0.04674447700381279,
0.21724086999893188,
0.07224682718515396,
0.24953466653823853,
-0.07253564894199371,
-0.35026147961616516,
-0.06449971348047256,
0.09667450934648514,
-0.5013259053230286,
0.17742525041103363,
0.3367810845375061,
0.12709449231624603,
0.02283748984336853,
-0.021809885278344154,
0.14302349090576172,
-0.15200012922286987,
-0.15420962870121002,
-0.13165000081062317,
0.07182639837265015,
0.14739809930324554,
0.163230299949646,
0.288765013217926,
-0.06352529674768448,
-0.20757722854614258,
-0.04148877412080765,
0.020189400762319565,
-0.12725161015987396,
-0.3853570520877838,
-0.1358782947063446,
0.2640461325645447,
-0.12399698793888092,
-0.0538659505546093,
-0.33789876103401184,
0.4284423589706421,
-0.25009387731552124,
-0.2704096734523773,
-0.18366071581840515,
0.21934126317501068,
-0.4041493237018585,
-0.09899359196424484,
-0.061613135039806366,
0.5527360439300537,
-0.2626291811466217,
0.10055375844240189,
-0.06429889798164368,
-0.0722765401005745,
0.07273213565349579,
0.3385041058063507,
-0.3098074495792389,
0.29245996475219727,
-0.11300119012594223,
0.24164481461048126,
0.08202341198921204,
-0.3433908522129059,
-0.6367424726486206,
0.15747517347335815,
-0.3702492415904999,
-0.12314795702695847,
0.36225131154060364,
-0.08138290047645569,
0.7645024657249451,
-0.3859056532382965,
-0.04157821461558342,
0.25804853439331055,
0.2841435968875885,
0.00823866669088602,
-0.2456495314836502,
-0.2950388193130493,
0.12855738401412964,
0.09932876378297806,
0.03454222530126572,
0.12004929780960083,
0.25881850719451904,
0.3030823767185211,
0.3145303726196289,
-0.14032158255577087,
0.1904459148645401,
0.373602956533432,
0.0648750513792038,
0.14245030283927917,
-0.04100184887647629,
-0.03350500762462616,
-0.07726618647575378,
0.04287955164909363,
0.11944655328989029,
0.2878556549549103,
0.13236743211746216,
-0.1839859038591385,
-0.3479398488998413,
-0.2124462127685547,
-0.38999760150909424,
-0.06713362783193588,
0.21372829377651215,
0.3639141023159027,
0.13347996771335602,
0.054698701947927475,
0.1492205411195755,
0.3630464971065521,
-0.34333935379981995,
-0.16818544268608093,
-0.1203390508890152,
0.37633898854255676,
-0.1943972259759903,
-0.09724510461091995,
0.2011358141899109,
0.18187086284160614,
0.3316042125225067,
-0.09486176073551178,
-0.028607487678527832,
0.1882954090833664,
-0.2663229703903198,
0.2544401288032532,
0.20893850922584534,
0.18665564060211182,
0.28243663907051086,
-0.7307381629943848,
0.3003782629966736,
0.32129427790641785,
0.24252906441688538,
-0.12430816143751144,
-0.12570980191230774,
-0.030530055984854698,
0.2592160701751709,
0.06855006515979767,
0.10280591994524002,
-0.05096084624528885,
0.4734237492084503,
0.004328742623329163,
-0.07415667176246643,
-0.025405429303646088,
0.24931015074253082,
0.26756682991981506,
-0.3308173716068268,
-0.16317743062973022,
-0.1564381867647171,
0.08932372182607651,
0.39584457874298096,
-0.14097581803798676,
0.03044542856514454,
0.21754418313503265,
0.007372206076979637,
-0.18569709360599518,
-0.03863588720560074,
-0.15484486520290375,
0.18786631524562836,
0.29404428601264954,
0.2710776925086975,
0.041888561099767685,
0.19363395869731903,
-0.11560052633285522,
0.22622926533222198,
0.08442917466163635,
-0.234462708234787,
0.16121339797973633,
0.19956248998641968,
0.011399248614907265,
-0.1993487924337387,
-0.1330864280462265,
0.23036158084869385,
0.2885449230670929,
-0.19606317579746246,
-0.31737008690834045,
0.035617049783468246,
-0.2672508656978607,
-0.12097808718681335,
-0.0798083171248436,
-0.2716400623321533,
-0.11204934865236282,
0.1761445850133896,
0.2219208925962448,
-0.13003239035606384,
0.05250168964266777,
0.30185428261756897,
0.26637887954711914,
-0.23952993750572205,
0.16973914206027985,
-0.08989938348531723,
-0.2039329707622528,
-0.24183478951454163,
0.15179595351219177,
0.3139508068561554,
-0.02350286953151226,
0.2608109414577484,
-0.1703243851661682,
0.25813472270965576,
-0.41933488845825195,
-0.24843496084213257,
0.07255510240793228,
-0.1565432846546173,
0.12843181192874908,
-0.38581743836402893,
0.2875356078147888,
0.04107280820608139,
-0.455840140581131,
-0.04802088439464569,
-0.04962284862995148,
-0.006789807695895433,
0.02229994162917137,
-0.2981387972831726,
-0.1353979855775833,
0.004304703790694475,
-0.5185346007347107,
-0.5353163480758667,
-0.4876825213432312,
0.3409768342971802,
-0.2174546867609024,
0.04693148285150528,
0.1393301635980606,
0.11687292903661728,
0.15930041670799255,
-0.09936055541038513,
0.18086694180965424,
-0.29021841287612915,
-0.20105649530887604,
0.15144142508506775,
-0.3761216104030609,
-0.3692209720611572,
0.09506022185087204,
0.24834509193897247,
-0.042692072689533234,
-0.11076749116182327,
-0.48232993483543396,
0.16883528232574463,
-0.34148168563842773,
0.176894873380661,
0.05422006547451019,
0.026152856647968292,
0.17994192242622375,
-0.1657063215970993,
-0.13135509192943573,
-0.0023246672935783863,
-0.20003840327262878,
-0.061942342668771744,
0.30848851799964905,
0.2828820049762726,
-0.14652131497859955,
0.1768692433834076,
0.12625376880168915,
0.730859637260437,
0.33726081252098083,
0.21937300264835358,
0.22548051178455353,
0.05925101041793823,
0.3217627704143524,
-0.25762978196144104,
-0.4247918128967285,
0.4319261312484741,
-0.19595271348953247,
0.0024232910946011543,
0.45223936438560486,
0.08290891349315643,
-0.3256204128265381,
-0.2853493094444275,
-0.4064795970916748,
-0.3902539312839508,
-0.42016732692718506,
0.055118076503276825,
0.3270704746246338,
0.09527230262756348,
0.128849059343338,
-0.13038797676563263,
-0.18084855377674103,
-0.28254684805870056,
0.23671312630176544,
0.3933318853378296,
-0.06132679805159569,
0.048230282962322235,
-0.055415090173482895,
-0.10637494921684265,
-0.29483675956726074,
0.16871367394924164,
0.11416219174861908,
0.35052725672721863,
-0.5199878811836243,
0.2094111144542694,
0.2939940094947815,
0.1402668058872223,
0.5945844650268555,
-0.3036940395832062,
0.23898836970329285,
0.08575382828712463,
0.4931543469429016,
0.012979003600776196,
0.08222987502813339,
-0.19533562660217285,
-0.22386498749256134,
0.683693528175354,
0.23629239201545715,
-0.22470511496067047,
0.23382653295993805,
0.1791153997182846,
0.21379519999027252,
-0.039146538823843,
-0.10975569486618042,
0.03564943000674248,
-0.35319533944129944,
-0.4895446002483368,
0.12203291058540344,
0.33988040685653687,
0.12821145355701447,
0.06626021862030029,
0.011531757190823555,
0.2779918313026428,
-0.11564754694700241,
0.3644886910915375,
0.03952999413013458,
0.024725906550884247,
0.6241260170936584,
0.1497078537940979,
0.17967619001865387,
-0.09256091713905334,
-0.17485450208187103,
0.5049248933792114,
-0.004521937109529972,
-0.27216166257858276,
0.05290452763438225,
-0.18283149600028992,
0.15261290967464447,
0.4952748119831085,
0.003414691425859928,
-0.0024313139729201794,
0.1519777476787567,
0.083847776055336,
-0.23810672760009766,
0.31399306654930115,
0.20474980771541595,
0.005121506750583649,
-0.4276716113090515,
-0.32961270213127136,
0.48168274760246277,
0.08168132603168488,
-0.18380922079086304,
0.21211840212345123,
0.19736064970493317,
-0.04827076941728592,
0.12124063819646835,
-0.3054206073284149,
1.26702082157135,
-0.03450847044587135,
-0.026274193078279495,
0.14362768828868866,
-0.2191208302974701,
0.056431688368320465,
-0.5175658464431763,
0.08865316212177277,
0.21122516691684723,
-0.01256136316806078,
0.020039845257997513,
0.09092225879430771,
0.005387423560023308,
0.14987124502658844,
-0.356277734041214,
0.0733414813876152,
0.03189174830913544,
0.0326337069272995,
-0.023646216839551926,
0.5749593377113342,
-0.1809689998626709,
-0.12838029861450195,
-0.1721373349428177,
0.20325841009616852,
0.023101666942238808,
0.3418019413948059,
0.059490181505680084,
-0.21162377297878265,
0.038443051278591156,
-0.11935746669769287,
-0.710800290107727,
0.14040662348270416,
-0.20198197662830353,
-0.014248727820813656,
-0.500438928604126,
-0.10420338064432144,
0.4435342848300934,
0.11945131421089172,
0.17692378163337708,
0.24400287866592407,
-0.39419054985046387,
0.24166390299797058,
-0.14660800993442535,
-0.1694500744342804,
-0.05211459472775459,
-0.02791443280875683,
0.30195900797843933,
-0.2829476594924927,
-0.3729138672351837,
0.28363561630249023,
-0.0017942659324035048,
0.02822544239461422,
-0.4600769281387329,
-0.05111733078956604,
0.1826191246509552,
0.01978360302746296,
0.22070477902889252,
0.37979856133461,
-0.17711490392684937,
-0.2517743706703186,
0.14492367208003998,
-0.06852807849645615,
-0.36427274346351624,
-0.04338973015546799,
-0.16732479631900787,
-0.24437840282917023,
0.027283810079097748,
0.3833364248275757,
0.1490146815776825,
-0.10595396161079407,
0.5424476861953735,
0.3601782023906708,
-0.2853144705295563,
-0.2442195862531662,
-0.14118432998657227,
-0.11648886650800705,
-0.7241875529289246,
-0.010691423900425434,
0.07644794136285782,
0.05802072957158089,
-0.1022748127579689,
0.2253740131855011,
0.235011488199234,
-0.05691538006067276,
-0.010107443667948246,
-0.305707186460495,
-0.2525347173213959,
-0.08369594812393188,
-0.07834716141223907,
0.015638910233974457,
-0.055772360414266586,
0.23277340829372406,
0.23388046026229858,
-0.0516495518386364,
-0.3866991102695465,
0.09639345109462738,
-0.14170245826244354,
0.15725502371788025,
0.35183021426200867,
-0.26266905665397644,
0.2583807110786438,
0.09980598837137222,
0.12145691365003586,
0.03685365617275238,
-0.18256394565105438,
-0.1610727161169052,
-0.05657404288649559,
0.11140497773885727,
0.06813771277666092,
-0.028857799246907234,
-0.040442146360874176,
-0.36409690976142883,
-0.07177028059959412,
0.2755313813686371,
0.21000897884368896,
0.19298022985458374,
-0.00688211852684617,
-0.06666643172502518,
-0.0738978385925293,
-0.017861349508166313,
0.26827576756477356,
0.21908897161483765,
0.08596939593553543,
0.40514829754829407,
0.1010475680232048,
0.20302194356918335,
0.05254215747117996,
-0.08906032145023346,
-0.28415387868881226,
0.11980267614126205,
0.14993931353092194,
0.05182007700204849,
0.1336270570755005,
-0.07912255078554153,
0.27453604340553284,
0.2660781145095825,
0.16166526079177856,
0.06667772680521011,
-0.09280530363321304,
-0.09011276066303253,
0.4874474108219147,
0.2030070275068283,
-0.2415478676557541,
0.07627695053815842,
-0.11213596910238266,
-0.18488194048404694,
0.012460877187550068,
-0.10283853113651276,
0.11345688253641129,
-0.20102459192276,
0.1946468949317932,
-0.03808394446969032,
-0.028170578181743622,
-0.019415900111198425,
0.029357893392443657,
0.339316725730896,
-0.04188494756817818,
-0.23447991907596588,
0.11692558974027634,
0.14332130551338196,
-0.013723836280405521,
0.2548775374889374,
-0.18080510199069977,
0.28454726934432983,
-0.05375851318240166,
0.22205282747745514,
0.030296565964818,
-0.35637202858924866,
0.11204459518194199,
0.07069066166877747,
-0.06677418947219849,
0.2324637770652771,
-0.00550327030941844,
0.238044872879982,
-0.0018272015731781721,
0.06176134571433067,
-0.22196263074874878,
0.30449986457824707,
0.14095750451087952,
0.07310019433498383,
0.0690348744392395,
-0.2575114667415619,
-0.2445531040430069,
0.07425557076931,
-0.07768502086400986,
-0.28909534215927124,
-0.11145690828561783,
0.2190823256969452,
-0.2013314813375473,
-0.13367481529712677,
-0.11047502607107162,
-0.16310995817184448,
0.1939912736415863,
-0.3072599470615387,
0.3899516463279724,
0.08092327415943146,
-0.0012230484280735254,
0.39017587900161743,
0.3995128870010376,
0.4556729197502136,
0.07928142696619034,
-0.12068001925945282,
0.2690315842628479,
-0.07153357565402985,
-0.10906821489334106,
0.001828005537390709,
0.5251641273498535,
0.3019498288631439,
0.13444332778453827,
0.37273287773132324,
0.1574205607175827,
-0.19413334131240845,
-0.12153976410627365,
0.012079690583050251,
-0.03149452060461044,
-0.19553136825561523,
0.1012362688779831,
-0.23754388093948364,
-0.05939195305109024,
-0.4787736237049103,
-0.18212772905826569,
-0.7445862293243408,
0.012056753039360046,
0.44571420550346375,
-0.29513150453567505,
0.12176898866891861,
-0.2555832266807556,
0.0848085954785347,
-0.16297617554664612,
0.27833446860313416,
0.43914085626602173,
0.22042731940746307,
-0.06074686348438263,
-0.07936668395996094,
-0.5453094840049744,
0.09166693687438965,
-0.10293849557638168,
0.20133446156978607,
-0.23000723123550415,
0.13448013365268707,
0.18559598922729492,
0.10588278621435165,
0.08453240990638733,
-0.015599137172102928,
-0.2895372211933136,
0.14737644791603088,
-0.1530163437128067,
0.06044202297925949,
0.11550134420394897,
0.4367619752883911,
-0.04577525332570076,
-0.16159270703792572,
-0.03116299770772457,
0.07095813751220703,
0.03244372084736824,
-0.05763839930295944,
-0.10009516775608063,
-0.27332937717437744,
-0.2293981909751892,
0.2840519845485687,
0.10853246599435806,
0.5500637292861938,
-0.1439036875963211,
-0.056183405220508575,
-0.4176401197910309,
-0.13136738538742065,
0.008235666900873184,
0.02966141141951084,
0.17820985615253448,
0.259719580411911,
-0.14033736288547516,
0.2682729661464691,
-0.04551523178815842,
-0.2081950306892395,
-0.11686138808727264,
0.17635372281074524,
-0.3187258243560791,
-0.039725448936223984,
-0.10877514630556107,
0.14643652737140656,
0.06855994462966919,
0.09353413432836533,
0.124454066157341,
-0.24271579086780548,
-0.30762287974357605,
-0.1533096581697464,
0.5325171947479248,
-0.24896298348903656,
-0.4053455591201782,
0.07484780997037888,
0.4408690929412842,
-0.018104875460267067,
0.1790774166584015,
-0.5474327206611633,
0.3000044524669647,
0.31797710061073303,
0.124256432056427,
0.02369685098528862,
0.12113197892904282,
-0.051477596163749695,
-0.030004728585481644,
-0.01761484146118164,
-0.07394387573003769,
0.11506608128547668,
-0.1863279938697815,
0.22791412472724915,
-0.22542521357536316
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Also there are huge those datasets. Think downloading MuST-C v1.2 amounts to ~ 1000GB... because there are 14 possible configs each around 60-70GB. I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in `datasets` no? cc @lhoestq | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 64 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Also there are huge those datasets. Think downloading MuST-C v1.2 amounts to ~ 1000GB... because there are 14 possible configs each around 60-70GB. I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in `datasets` no? cc @lhoestq | [
-0.3945275843143463,
0.2756195068359375,
-0.08757786452770233,
0.006215598434209824,
-0.06524164229631424,
0.028635524213314056,
-0.18247246742248535,
0.2685893774032593,
-0.2595134675502777,
0.3226705491542816,
-0.29367634654045105,
-0.2957717478275299,
-0.19456133246421814,
0.1870189607143402,
0.20893964171409607,
0.09105267375707626,
0.030066682025790215,
0.2597108483314514,
-0.48891133069992065,
-0.10478129237890244,
-0.02449062094092369,
0.14151595532894135,
-0.18158039450645447,
-0.1668795943260193,
-0.20452705025672913,
-0.013639993034303188,
-0.317777544260025,
-0.2916284501552582,
-0.316622257232666,
-0.3389555513858795,
0.2591310143470764,
0.4024866223335266,
0.26826345920562744,
0.26437413692474365,
-0.00011650470696622506,
-0.18141581118106842,
0.19771122932434082,
-0.28725165128707886,
-0.49841296672821045,
0.014720166102051735,
-0.27070292830467224,
-0.39959970116615295,
-0.42797914147377014,
0.04961562156677246,
0.01310684159398079,
-0.25869518518447876,
0.2993297576904297,
0.1313706934452057,
0.15402129292488098,
0.6043410897254944,
0.11893847584724426,
0.1227988749742508,
0.19797730445861816,
-0.20261447131633759,
0.3769964575767517,
0.036264508962631226,
-0.08841461688280106,
0.24862264096736908,
0.21131464838981628,
0.09405982494354248,
0.3303394913673401,
0.32439014315605164,
0.2032758742570877,
-0.1683722883462906,
0.040536392480134964,
-0.32250088453292847,
-0.25065669417381287,
-0.5101647973060608,
-0.013899323530495167,
0.4631098210811615,
0.6668587327003479,
-0.3101229965686798,
-0.13223038613796234,
-0.17011389136314392,
0.24393896758556366,
-0.17599906027317047,
0.012359723448753357,
0.048672039061784744,
-0.28941988945007324,
0.2103223353624344,
0.005815994460135698,
-0.34254100918769836,
-0.23238332569599152,
0.39280256628990173,
-0.1653020828962326,
0.09851528704166412,
-0.13631652295589447,
-0.04381004720926285,
0.22208452224731445,
-0.23043297231197357,
-0.2993950843811035,
-0.04861069843173027,
-0.010329518467187881,
0.08449883759021759,
-0.23372672498226166,
-0.4959622025489807,
0.16984359920024872,
-0.03157854452729225,
0.17684561014175415,
-0.45618966221809387,
-0.19868233799934387,
-0.21898195147514343,
-0.27753952145576477,
0.002993788570165634,
0.11458280682563782,
0.36863094568252563,
0.0729002133011818,
0.09450836479663849,
0.1670207679271698,
-0.3023114800453186,
0.10476037114858627,
0.08556962013244629,
-0.1426623910665512,
0.13739751279354095,
-0.4395267069339752,
0.15892614424228668,
-0.14223839342594147,
-0.07562552392482758,
-0.3051208555698395,
0.1805661916732788,
-0.0362616591155529,
0.15406683087348938,
-0.043328721076250076,
0.1592666506767273,
0.06386636942625046,
0.33216604590415955,
0.00863558053970337,
0.27128303050994873,
0.07370762526988983,
-0.23598791658878326,
-0.015637895092368126,
0.07431657612323761,
-0.18801337480545044,
0.2972605526447296,
0.3724644184112549,
0.16952528059482574,
0.2306046336889267,
-0.12340519577264786,
0.2562735974788666,
0.2554161846637726,
-0.15759292244911194,
-0.07712150365114212,
0.08425229787826538,
0.20031003654003143,
-0.007614715024828911,
0.0768665000796318,
-0.3242167532444,
0.03852899745106697,
-0.3530518412590027,
0.11655674874782562,
0.14611560106277466,
-0.16819271445274353,
-0.004242070950567722,
0.12086047232151031,
-0.1454242616891861,
-0.18469038605690002,
-0.3141503930091858,
0.6670891642570496,
-0.16588950157165527,
-0.18843995034694672,
-0.03261944279074669,
-0.06200270354747772,
-0.33569440245628357,
0.09286925941705704,
-0.20540162920951843,
0.36280739307403564,
-0.45991334319114685,
-0.031291477382183075,
0.05167348310351372,
-0.01947220228612423,
-0.01658342033624649,
0.28704023361206055,
-0.16584207117557526,
0.2281007021665573,
-0.11188050359487534,
0.143123060464859,
0.11213479191064835,
-0.3574816584587097,
-0.40232813358306885,
0.22973239421844482,
-0.02509954385459423,
-0.052822183817625046,
0.313252717256546,
-0.015469950623810291,
0.600057065486908,
-0.4032658636569977,
-0.15610040724277496,
0.30505433678627014,
0.06639030575752258,
-0.06498861312866211,
-0.21709789335727692,
-0.5506219267845154,
0.07572232186794281,
0.08201061934232712,
0.25629881024360657,
0.06704068183898926,
0.13276998698711395,
0.44509875774383545,
0.42379188537597656,
-0.2013004869222641,
0.1830306053161621,
0.18107911944389343,
0.10052794218063354,
-0.07628892362117767,
-0.09048168361186981,
-0.3603587746620178,
-0.22457516193389893,
0.07524152845144272,
0.16994641721248627,
0.296194463968277,
0.29974669218063354,
-0.37670525908470154,
0.05662471428513527,
-0.2456873059272766,
0.06677282601594925,
-0.015130504965782166,
0.09871267527341843,
0.21765945851802826,
0.2734743356704712,
-0.1541106253862381,
-0.13042886555194855,
0.3823816478252411,
-0.46417373418807983,
-0.23128820955753326,
0.06439463049173355,
0.1478847712278366,
0.06510646641254425,
-0.10284992307424545,
0.16760292649269104,
0.0703044906258583,
0.11732487380504608,
0.05399639159440994,
0.08473548293113708,
0.13485947251319885,
-0.15689785778522491,
0.11024823784828186,
-0.07234371453523636,
0.09681404381990433,
0.3385636806488037,
-0.44926998019218445,
0.27064621448516846,
0.36655569076538086,
0.1374395340681076,
-0.09891074895858765,
-0.2362751066684723,
0.0285661518573761,
0.28208181262016296,
0.12193670123815536,
0.28269556164741516,
-0.16131721436977386,
0.23316794633865356,
0.14160855114459991,
-0.18273040652275085,
-0.3336016535758972,
0.10056141018867493,
0.33411869406700134,
-0.2534901797771454,
0.13249333202838898,
-0.28080227971076965,
-0.0448419451713562,
0.5708274245262146,
-0.08698423951864243,
0.32578930258750916,
0.4019412398338318,
-0.02706804871559143,
-0.21966876089572906,
0.16173924505710602,
-0.1772949993610382,
0.3905666768550873,
0.42278680205345154,
0.4028218984603882,
0.08942118287086487,
0.08766025304794312,
-0.1421586275100708,
0.17281615734100342,
-0.04891231283545494,
-0.27925553917884827,
0.10393832623958588,
0.03643723577260971,
-0.0634937435388565,
-0.3835657238960266,
-0.11890856176614761,
0.06261485815048218,
0.1745641827583313,
-0.18547435104846954,
-0.4444790482521057,
-0.16930721700191498,
-0.14560288190841675,
-0.07099737226963043,
0.08946529030799866,
-0.0064908540807664394,
-0.05007665231823921,
0.29222941398620605,
0.1339637190103531,
-0.1373102217912674,
0.11324045807123184,
0.02937319502234459,
0.4036889970302582,
-0.35973837971687317,
-0.09852004796266556,
-0.010885834693908691,
-0.17405514419078827,
-0.3488500118255615,
0.10274911671876907,
0.15262030065059662,
0.03514137491583824,
0.03464870899915695,
-0.2288290560245514,
0.14616915583610535,
-0.17697711288928986,
-0.42109349370002747,
0.20963343977928162,
-0.16065730154514313,
0.03149744123220444,
-0.18834786117076874,
0.18517814576625824,
0.018418552353978157,
-0.2307131290435791,
-0.33560311794281006,
0.08435903489589691,
-0.14304094016551971,
-0.07944805920124054,
-0.4712265431880951,
-0.08721774816513062,
-0.04901944473385811,
-0.36708539724349976,
-0.4791995584964752,
-0.4064484238624573,
0.41877731680870056,
-0.13183265924453735,
0.1176660805940628,
0.1957017481327057,
0.18257230520248413,
0.03932647779583931,
-0.24410833418369293,
0.1794230192899704,
-0.17954668402671814,
-0.20610381662845612,
0.3044102191925049,
-0.2531209886074066,
-0.16930587589740753,
-0.16192741692066193,
0.12876205146312714,
0.07214262336492538,
0.15999145805835724,
-0.47169873118400574,
0.27161356806755066,
-0.3734460771083832,
0.39908531308174133,
0.08092952519655228,
0.19739609956741333,
0.31722089648246765,
-0.2313878983259201,
-0.05706873536109924,
-0.036183323711156845,
-0.14246614277362823,
0.0372336320579052,
0.40064406394958496,
0.1502837836742401,
-0.10700543969869614,
0.08745665103197098,
0.26456236839294434,
0.6685686707496643,
0.23415766656398773,
0.03707239776849747,
0.12523235380649567,
0.10931669920682907,
0.6374334692955017,
-0.23020972311496735,
-0.18133606016635895,
0.41564276814460754,
0.21946518123149872,
0.01606440544128418,
0.43947654962539673,
0.039807211607694626,
-0.33086320757865906,
-0.1140274927020073,
-0.29878902435302734,
-0.043948907405138016,
-0.2636795938014984,
0.29184457659721375,
-0.030159885063767433,
0.18688488006591797,
0.04417017847299576,
-0.18291810154914856,
-0.19492769241333008,
-0.11149546504020691,
0.0028250699397176504,
0.18893851339817047,
0.025974003598093987,
0.1535167247056961,
-0.11687079071998596,
-0.10048702359199524,
-0.24016685783863068,
-0.08251697570085526,
0.09020813554525375,
0.36494874954223633,
-0.34482696652412415,
0.05591772496700287,
-0.10135135799646378,
0.1461898386478424,
0.32173022627830505,
-0.20756836235523224,
-0.10450465977191925,
0.08681011945009232,
0.6164700984954834,
-0.2222558856010437,
0.09912891685962677,
-0.15850070118904114,
-0.4502090513706207,
0.5935953259468079,
0.18604424595832825,
-0.2508346438407898,
-0.08680085837841034,
0.2934372127056122,
0.3685336410999298,
0.008427806198596954,
-0.16604378819465637,
0.017077984288334846,
-0.2766517400741577,
-0.40735748410224915,
0.3156576454639435,
0.38497862219810486,
-0.1538507342338562,
0.21923327445983887,
-0.03002690151333809,
0.05181553587317467,
-0.284720242023468,
0.38869279623031616,
-0.024538248777389526,
-0.100730299949646,
0.5650278329849243,
0.17475628852844238,
-0.09819430112838745,
-0.4175640046596527,
0.009270021691918373,
0.3048288822174072,
-0.07425868511199951,
-0.32600218057632446,
0.03517036885023117,
-0.08172323554754257,
0.33399498462677,
0.45969051122665405,
-0.1333197057247162,
-0.04588856175541878,
-0.1416228860616684,
0.08587491512298584,
-0.10065103322267532,
0.4539078176021576,
0.1133178249001503,
-0.03405334800481796,
-0.2912557125091553,
-0.3026302754878998,
0.4794854521751404,
0.06599856913089752,
-0.1266181468963623,
0.20279090106487274,
0.0990392193198204,
-0.3326156735420227,
0.06564710289239883,
-0.1355232447385788,
1.2328366041183472,
0.1060665100812912,
0.11316388845443726,
0.021870307624340057,
-0.2788861095905304,
0.28063514828681946,
-0.6616120934486389,
-0.014122813008725643,
0.454961895942688,
0.1489107757806778,
-0.0561080127954483,
0.22307586669921875,
0.19392246007919312,
0.36260539293289185,
-0.33575353026390076,
0.31826233863830566,
0.11215027421712875,
0.17344553768634796,
0.21293380856513977,
0.5456160306930542,
-0.5706210136413574,
-0.3597716689109802,
-0.11818283051252365,
0.15149934589862823,
0.13576334714889526,
0.16877278685569763,
0.011525367386639118,
-0.15165318548679352,
0.36835986375808716,
-0.06218785420060158,
-0.6386958360671997,
0.10009936988353729,
-0.34319964051246643,
-0.11128570139408112,
-0.5482460856437683,
0.06909137964248657,
0.3296593427658081,
0.27979937195777893,
0.24341274797916412,
0.36962056159973145,
-0.3438282608985901,
0.2961901128292084,
-0.04472066089510918,
0.029231637716293335,
0.12492449581623077,
-0.17969125509262085,
0.16811124980449677,
-0.3176144063472748,
-0.16607123613357544,
0.19710898399353027,
0.18284422159194946,
-0.006847314070910215,
-0.3814735412597656,
-0.19822409749031067,
0.17440932989120483,
0.22314979135990143,
0.16685380041599274,
0.633223295211792,
-0.02688499167561531,
-0.18476484715938568,
0.09419157356023788,
-0.05393553897738457,
-0.29787126183509827,
0.282198965549469,
-0.4007064998149872,
-0.23259110748767853,
-0.3334188163280487,
0.29647257924079895,
0.2167980819940567,
-0.03973839432001114,
0.2869245409965515,
0.08102290332317352,
-0.2079162299633026,
-0.37850525975227356,
0.007560116704553366,
-0.23190560936927795,
-0.42023128271102905,
0.04163282364606857,
0.025049613788723946,
-0.11959224194288254,
-0.35401424765586853,
0.42489108443260193,
0.2778802812099457,
-0.1271965503692627,
0.10377002507448196,
-0.007914770394563675,
-0.32897496223449707,
-0.12410163134336472,
0.11378813534975052,
0.23268228769302368,
-0.020834846422076225,
0.23856499791145325,
0.037387263029813766,
0.07707522064447403,
-0.300009548664093,
0.04349708557128906,
0.10292135179042816,
0.16607888042926788,
0.10940247774124146,
0.12520815432071686,
0.29471004009246826,
0.022357337176799774,
0.021725062280893326,
0.12341435998678207,
-0.06279606372117996,
-0.06287944316864014,
-0.15101498365402222,
0.1382300704717636,
0.19911473989486694,
0.25118809938430786,
-0.010789540596306324,
-0.13299094140529633,
-0.13904277980327606,
0.08400490880012512,
0.3748178482055664,
0.3341170847415924,
-0.10511254519224167,
0.24555332958698273,
-0.06215312331914902,
-0.10953913629055023,
0.11723386496305466,
0.09818346053361893,
0.31585144996643066,
0.3510114252567291,
0.21240584552288055,
0.34871044754981995,
0.038874924182891846,
-0.16963964700698853,
-0.08793831616640091,
0.41348129510879517,
-0.020313207060098648,
-0.04974636808037758,
-0.0338478609919548,
0.11996909976005554,
0.09418731927871704,
0.2626904845237732,
-0.05829963833093643,
0.21624436974525452,
0.07376906275749207,
-0.09635607898235321,
0.4845878481864929,
0.15905052423477173,
-0.18363654613494873,
0.17445696890354156,
-0.3760051429271698,
-0.18988725543022156,
0.01688113808631897,
0.12982413172721863,
0.020485524088144302,
-0.19607225060462952,
0.43942227959632874,
-0.0681828036904335,
-0.24962441623210907,
0.14918729662895203,
0.10736268013715744,
0.261435866355896,
0.1854945719242096,
-0.13752958178520203,
0.17848514020442963,
0.07979830354452133,
0.23436005413532257,
0.2207278162240982,
-0.3789796531200409,
0.2936009466648102,
0.12807776033878326,
0.12608522176742554,
0.19322413206100464,
-0.34211280941963196,
0.13575725257396698,
0.23708923161029816,
0.019966302439570427,
0.11606372892856598,
0.04083624109625816,
0.04341521114110947,
0.002709676045924425,
-0.09693114459514618,
-0.33383825421333313,
0.05465158075094223,
0.060865599662065506,
0.00034733250504359603,
-0.1674051433801651,
-0.25180357694625854,
-0.08564956486225128,
0.17869585752487183,
0.015707748010754585,
-0.5163862705230713,
-0.0341341458261013,
0.2421741932630539,
-0.1619967520236969,
-0.34919002652168274,
0.09154433012008667,
-0.23023642599582672,
0.14701958000659943,
-0.31180065870285034,
0.4185451865196228,
0.0030816756188869476,
-0.1227409690618515,
0.26326289772987366,
0.35525259375572205,
0.39307883381843567,
0.0928434506058693,
0.05198397487401962,
0.19284804165363312,
-0.042066823691129684,
-0.06527542322874069,
-0.15564459562301636,
0.34562569856643677,
0.036683179438114166,
0.43788012862205505,
0.21637125313282013,
0.15741761028766632,
-0.15737955272197723,
-0.16539357602596283,
0.0571071058511734,
-0.190005823969841,
-0.36274728178977966,
0.2912067472934723,
0.060648441314697266,
0.19025671482086182,
-0.2029949426651001,
0.028335612267255783,
-0.5914895534515381,
-0.044667553156614304,
0.4822022616863251,
-0.3417668640613556,
0.2164018452167511,
-0.2335924357175827,
0.053647447377443314,
-0.20620377361774445,
0.24281930923461914,
0.35256427526474,
-0.017420349642634392,
-0.21161340177059174,
-0.056950490921735764,
-0.25938645005226135,
-0.2869325876235962,
-0.11897232383489609,
0.08251947909593582,
-0.3457997143268585,
0.2447005808353424,
0.25789108872413635,
0.3945358097553253,
-0.20881028473377228,
0.2064211219549179,
-0.2922373116016388,
0.057698771357536316,
-0.2314189225435257,
0.2513570785522461,
0.028817279264330864,
0.6024894714355469,
0.0707646980881691,
-0.38216903805732727,
-0.16068871319293976,
0.08457902073860168,
-0.03253278508782387,
-0.20922359824180603,
-0.003353396663442254,
0.011918646283447742,
-0.19064554572105408,
0.37469029426574707,
-0.06062128767371178,
0.5547398328781128,
-0.12992747128009796,
-0.019129104912281036,
-0.2614656984806061,
0.1284421980381012,
-0.18601518869400024,
-0.16695669293403625,
-0.035150494426488876,
0.2119603455066681,
-0.3294379413127899,
0.3177523612976074,
-0.00820265430957079,
-0.03436698019504547,
0.012650128453969955,
0.049577679485082626,
0.025830136612057686,
-0.08174046874046326,
-0.20753522217273712,
0.13161012530326843,
0.013499455526471138,
0.2541102468967438,
-0.014394230209290981,
-0.11893372237682343,
-0.28979361057281494,
-0.2972881495952606,
0.3701491951942444,
-0.1548672616481781,
-0.231807678937912,
-0.1498015969991684,
0.38868603110313416,
0.28761228919029236,
-0.0012165299849584699,
-0.5777562260627747,
0.2842468023300171,
0.37284111976623535,
0.10473030060529709,
0.0706947073340416,
0.2855328321456909,
-0.005319315940141678,
-0.05315900221467018,
-0.12513196468353271,
0.1858728975057602,
0.07846200466156006,
-0.38334155082702637,
-0.08483826369047165,
-0.48003682494163513
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | > Also cc @lhoestq - do you think we could mirror the dataset?
Yes we can mirror it if the authors are fine with it. You can create a dataset repo on huggingface.co (possibly under the relevant org) and add the mirrored data files.
> I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in datasets no? cc @lhoestq
If there are different download links for each configuration we can make the dataset builder download only the files related to the requested configuration. | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 110 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> Also cc @lhoestq - do you think we could mirror the dataset?
Yes we can mirror it if the authors are fine with it. You can create a dataset repo on huggingface.co (possibly under the relevant org) and add the mirrored data files.
> I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in datasets no? cc @lhoestq
If there are different download links for each configuration we can make the dataset builder download only the files related to the requested configuration. | [
-0.3701684772968292,
0.07569365203380585,
-0.05002211406826973,
0.1428012251853943,
-0.1143721267580986,
-0.022535670548677444,
0.024504680186510086,
0.25288209319114685,
-0.21712948381900787,
0.2163129448890686,
-0.36347687244415283,
-0.2713865041732788,
-0.09528888016939163,
0.2548370659351349,
0.11782366782426834,
-0.22566677629947662,
0.07152462750673294,
0.06289312988519669,
-0.49343958497047424,
-0.18065741658210754,
-0.016799647361040115,
0.08003765344619751,
-0.07713205367326736,
-0.16086819767951965,
-0.22869092226028442,
0.0514313206076622,
-0.34973767399787903,
-0.21925345063209534,
-0.34887778759002686,
-0.21128694713115692,
0.0303792841732502,
0.23466017842292786,
0.20907098054885864,
0.35337525606155396,
-0.00010471884161233902,
-0.09389320760965347,
0.21018163859844208,
-0.22755272686481476,
-0.4023521840572357,
-0.14741763472557068,
-0.16945569217205048,
-0.21650409698486328,
-0.4638262093067169,
0.043207086622714996,
-0.23017846047878265,
-0.19329190254211426,
0.10554392635822296,
0.09089024364948273,
0.3507656157016754,
0.39854657649993896,
0.20882956683635712,
0.16811853647232056,
0.13849540054798126,
-0.17704617977142334,
0.12944279611110687,
-0.02711331844329834,
-0.0644720122218132,
0.19530226290225983,
0.2781897783279419,
0.24234060943126678,
0.02506749890744686,
0.48227259516716003,
0.051012638956308365,
-0.11217737197875977,
0.06458237767219543,
-0.30235055088996887,
-0.12285859882831573,
-0.49705106019973755,
0.05851775407791138,
0.45497745275497437,
0.7421860098838806,
-0.23275132477283478,
-0.2601962685585022,
-0.32964542508125305,
0.241710364818573,
-0.06080569326877594,
-0.04126296192407608,
0.12689529359340668,
-0.2630254030227661,
0.3054470717906952,
-0.0407550074160099,
-0.30757617950439453,
-0.185080885887146,
0.30044472217559814,
-0.02464432269334793,
0.2349754422903061,
-0.15256750583648682,
-0.049446072429418564,
0.09383400529623032,
-0.3000546395778656,
-0.3330550491809845,
-0.13879768550395966,
-0.01952240988612175,
0.18395410478115082,
-0.13062016665935516,
-0.3575485348701477,
0.1271691471338272,
-0.06992413103580475,
0.26951804757118225,
-0.24683958292007446,
-0.1844831258058548,
-0.16024234890937805,
-0.1086534783244133,
-0.017474979162216187,
0.19749584794044495,
0.4110046923160553,
0.05085986107587814,
-0.04481508955359459,
0.049041662365198135,
-0.21039456129074097,
0.08389793336391449,
0.0806303322315216,
-0.05428687110543251,
0.20222319662570953,
-0.46363580226898193,
0.0314626581966877,
-0.06570219993591309,
-0.1599665880203247,
-0.10692790150642395,
0.0018304310506209731,
0.045621249824762344,
0.022190727293491364,
0.013932033441960812,
0.262964129447937,
-0.025419652462005615,
0.27734214067459106,
-0.08891262114048004,
0.331889271736145,
0.007695864420384169,
-0.2727165222167969,
-0.05564167723059654,
0.038754310458898544,
-0.2634619474411011,
0.2528848946094513,
0.24206142127513885,
0.24993838369846344,
0.2341475635766983,
-0.018229380249977112,
0.27145180106163025,
0.07346290349960327,
-0.1332445740699768,
-0.021227017045021057,
0.12947800755500793,
0.017868757247924805,
0.026199769228696823,
0.11651130020618439,
-0.28892552852630615,
-0.15743127465248108,
-0.3001946806907654,
-0.007091696374118328,
0.07253961265087128,
-0.16728946566581726,
-0.15035639703273773,
0.23125897347927094,
-0.2765890657901764,
-0.21987928450107574,
-0.3784278929233551,
0.7613046765327454,
-0.15716543793678284,
-0.06713171303272247,
-0.025860996916890144,
0.16048474609851837,
-0.4984613358974457,
0.031219061464071274,
-0.018465599045157433,
0.572506844997406,
-0.2136993408203125,
-0.23643295466899872,
0.18528017401695251,
-0.04073743522167206,
-0.03292803093791008,
0.3206630349159241,
-0.1548604965209961,
0.23705007135868073,
-0.06432276219129562,
0.3969774842262268,
0.08621131628751755,
-0.33656740188598633,
-0.3337925374507904,
0.20036198198795319,
-0.16307446360588074,
0.012682358734309673,
0.2968083322048187,
-0.10839861631393433,
0.6236364841461182,
-0.3085470199584961,
-0.06562154740095139,
0.44079890847206116,
0.04368884116411209,
0.07631456106901169,
-0.21914221346378326,
-0.44115734100341797,
0.17379777133464813,
0.21975046396255493,
0.09457754343748093,
0.007713074330240488,
-0.05419188737869263,
0.3305046260356903,
0.28519800305366516,
-0.27743110060691833,
0.3457454442977905,
0.18454845249652863,
-0.03755556419491768,
-0.031410474330186844,
-0.02894890122115612,
-0.24945509433746338,
-0.23960810899734497,
0.0701974481344223,
0.10386288911104202,
0.4097926914691925,
0.2049584537744522,
-0.25755611062049866,
-0.14352214336395264,
-0.22723838686943054,
-0.23293597996234894,
-0.1436641961336136,
0.2024191915988922,
0.17300228774547577,
0.22261691093444824,
-0.014086438342928886,
-0.16226467490196228,
0.32761865854263306,
-0.3089619576931,
-0.11294969916343689,
-0.12025024741888046,
0.21346606314182281,
0.05811856687068939,
-0.16024531424045563,
0.24803124368190765,
0.3261515498161316,
0.10551106184720993,
0.022946089506149292,
0.08194530755281448,
0.16556145250797272,
-0.23605607450008392,
0.2517370581626892,
0.10589048266410828,
0.23298178613185883,
0.34964683651924133,
-0.44386613368988037,
0.3718280494213104,
0.3226098120212555,
0.10470705479383469,
-0.1649797558784485,
-0.20938949286937714,
0.11102808266878128,
0.3269997835159302,
0.11794351786375046,
0.14519013464450836,
-0.06758581846952438,
0.2856111526489258,
0.036730535328388214,
-0.2883065938949585,
-0.17367707192897797,
0.11106648296117783,
0.12113888561725616,
0.009760146960616112,
0.1580420434474945,
-0.3687121272087097,
0.16987857222557068,
0.45626452565193176,
-0.14241977035999298,
0.16896580159664154,
0.3246619999408722,
-0.20693087577819824,
-0.1832820326089859,
0.08713265508413315,
-0.10433728247880936,
0.22615519165992737,
0.37138548493385315,
0.39327719807624817,
0.1242208182811737,
0.23005816340446472,
-0.08347862213850021,
0.12328081578016281,
-0.10062121599912643,
-0.2778016924858093,
0.17179612815380096,
-0.006829072721302509,
-0.08285558968782425,
-0.32441824674606323,
0.011756903491914272,
-0.033959344029426575,
0.10242751985788345,
-0.1919403374195099,
-0.4238786995410919,
-0.038980625569820404,
-0.42754971981048584,
-0.3429192006587982,
0.06872066110372543,
-0.2192067950963974,
0.08120496571063995,
0.3772013485431671,
0.017146877944469452,
-0.20119813084602356,
0.19204166531562805,
0.24464106559753418,
0.28573983907699585,
-0.37916886806488037,
-0.06796834617853165,
-0.02926328405737877,
-0.21931599080562592,
-0.14486047625541687,
0.15910561382770538,
0.2893212139606476,
0.13323187828063965,
0.2628845274448395,
-0.2597987651824951,
0.05451751872897148,
-0.2878352701663971,
-0.3296543061733246,
0.25913989543914795,
-0.181674063205719,
0.0342453271150589,
-0.21465174853801727,
0.12871859967708588,
-0.009862038306891918,
-0.33604907989501953,
-0.13463032245635986,
0.13601621985435486,
-0.06627166271209717,
-0.1435023546218872,
-0.3694379925727844,
-0.19058074057102203,
0.015817362815141678,
-0.4421801269054413,
-0.5470237731933594,
-0.4363859295845032,
0.44188934564590454,
-0.23288851976394653,
-0.011750651523470879,
0.03890760615468025,
0.14858421683311462,
0.08612764626741409,
-0.2614697813987732,
0.19995331764221191,
-0.2780718505382538,
-0.25216007232666016,
0.19674763083457947,
-0.2384423315525055,
-0.3239271938800812,
-0.21679142117500305,
0.1482233852148056,
0.03298718482255936,
-0.05882694944739342,
-0.367588073015213,
0.0656411349773407,
-0.21718725562095642,
0.3849049210548401,
0.16570758819580078,
0.3021329641342163,
0.20847949385643005,
-0.05489233881235123,
-0.09974580258131027,
-0.04849453642964363,
-0.13711711764335632,
0.09446096420288086,
0.29403790831565857,
0.12074058502912521,
-0.037363506853580475,
-0.013513070531189442,
0.07064016163349152,
0.7331619262695312,
0.4433308243751526,
0.0359315350651741,
0.1378311663866043,
0.06682638823986053,
0.4425567388534546,
-0.2520740330219269,
-0.2575766146183014,
0.48648449778556824,
0.11102914065122604,
0.04801599681377411,
0.5023175477981567,
0.14461642503738403,
-0.35313454270362854,
-0.16212786734104156,
-0.3827892243862152,
-0.16127845644950867,
-0.3055439293384552,
0.3122987449169159,
0.148702934384346,
0.14914551377296448,
0.0018651270074769855,
-0.20881474018096924,
-0.1799127608537674,
-0.0995183140039444,
0.1411104053258896,
0.18655610084533691,
-0.06725277006626129,
0.1155247762799263,
-0.2071308046579361,
-0.06096799299120903,
-0.4196380078792572,
-0.1190638616681099,
0.15407554805278778,
0.16395314037799835,
-0.3308216631412506,
0.06458576768636703,
-0.03119782544672489,
0.18475517630577087,
0.3390967547893524,
-0.1980145126581192,
-0.04496308043599129,
-0.03397674486041069,
0.3296681344509125,
-0.058274611830711365,
0.22819700837135315,
-0.13638851046562195,
-0.3484114408493042,
0.5243239402770996,
0.32746902108192444,
-0.4339466691017151,
-0.08513874560594559,
0.18360477685928345,
0.45202964544296265,
-0.045954104512929916,
-0.20493170619010925,
0.16893063485622406,
-0.30005714297294617,
-0.4342630207538605,
0.20328234136104584,
0.4088585078716278,
-0.11144701391458511,
0.19113220274448395,
0.07830823957920074,
0.2157871425151825,
-0.050450243055820465,
0.36585935950279236,
0.11753900349140167,
-0.0030355125200003386,
0.41301628947257996,
0.20293736457824707,
0.08965732902288437,
-0.06909866631031036,
-0.08989328145980835,
0.37720808386802673,
-0.02360360324382782,
-0.30432331562042236,
-0.1228894516825676,
-0.21317239105701447,
0.20437459647655487,
0.39479583501815796,
0.09382504969835281,
-0.04376855865120888,
-0.007769566960632801,
0.12363351881504059,
-0.2165965437889099,
0.15428996086120605,
0.1270654797554016,
0.22243672609329224,
-0.3160656690597534,
-0.3919181227684021,
0.5125020146369934,
0.0450156107544899,
-0.09174510091543198,
0.05867195874452591,
0.2783919870853424,
-0.22305071353912354,
0.1936856508255005,
-0.21504051983356476,
1.2153533697128296,
0.18812443315982819,
0.11481824517250061,
0.20177963376045227,
-0.24695518612861633,
0.20230898261070251,
-0.3942829966545105,
-0.18970471620559692,
0.27210569381713867,
0.24573485553264618,
0.0009762172121554613,
0.2117396891117096,
-0.08133194595575333,
0.27847859263420105,
-0.4962836802005768,
0.27118968963623047,
0.11138977855443954,
0.04556943103671074,
0.088385671377182,
0.580912172794342,
-0.4232155382633209,
-0.4742903411388397,
-0.37061968445777893,
0.23871354758739471,
0.09024962037801743,
0.18753090500831604,
0.11564891040325165,
-0.23398926854133606,
0.16497637331485748,
-0.04282978177070618,
-0.6325407028198242,
0.10840380936861038,
-0.2850003242492676,
-0.21058228611946106,
-0.3871234059333801,
-0.009105024859309196,
0.3368227481842041,
0.27096036076545715,
0.28404873609542847,
0.01978943683207035,
-0.32685932517051697,
0.22026343643665314,
-0.08454420417547226,
0.04965021833777428,
0.09463968873023987,
-0.09912297129631042,
0.42906156182289124,
-0.33329251408576965,
-0.2859703004360199,
0.06804776936769485,
0.16077183187007904,
0.1462601274251938,
-0.4129219353199005,
-0.279424786567688,
0.07100842148065567,
-0.0287157092243433,
0.13410143554210663,
0.557669997215271,
0.020814845338463783,
-0.1288643479347229,
0.16562817990779877,
-0.0068199350498616695,
-0.4491666555404663,
0.24233368039131165,
-0.13952118158340454,
-0.22030813992023468,
-0.1989901065826416,
0.21897763013839722,
0.21481379866600037,
-0.058596767485141754,
0.3552796244621277,
0.22563602030277252,
-0.17963163554668427,
-0.3044046461582184,
-0.0684860348701477,
0.07818368822336197,
-0.5221436619758606,
0.03592110425233841,
0.0717630684375763,
-0.1466497927904129,
-0.337851881980896,
0.26616737246513367,
0.24907329678535461,
-0.10298237949609756,
0.02472822368144989,
0.00022307297331281006,
-0.27183470129966736,
0.026480598375201225,
0.16963188350200653,
0.17596052587032318,
-0.12324289232492447,
0.2195596545934677,
0.1706392616033554,
-0.07800816744565964,
-0.4171721935272217,
0.03272360935807228,
-0.023665500804781914,
0.1987483650445938,
0.3878061771392822,
-0.031005220487713814,
0.15623503923416138,
0.03505817800760269,
0.10312972217798233,
-0.09030159562826157,
-0.22461724281311035,
-0.20403459668159485,
-0.20997118949890137,
0.09569843113422394,
0.112855926156044,
0.12286782264709473,
0.032709751278162,
-0.11714372783899307,
-0.1364218294620514,
0.059190861880779266,
0.3521559536457062,
0.3154355585575104,
-0.07667036354541779,
0.2034245729446411,
0.03855084255337715,
-0.08210700750350952,
0.06481914967298508,
0.19831742346286774,
0.3428342640399933,
0.30746757984161377,
0.10404399037361145,
0.22096706926822662,
0.00718810735270381,
-0.11541299521923065,
0.07406199723482132,
0.3046559691429138,
0.18571972846984863,
0.0020018445793539286,
0.0726078450679779,
0.10450102388858795,
0.20164304971694946,
0.29571664333343506,
0.17133504152297974,
0.17346236109733582,
-0.05004621297121048,
-0.0748889148235321,
0.4209255874156952,
0.2539655864238739,
-0.1479899138212204,
0.1724185347557068,
-0.012595186941325665,
-0.24789710342884064,
0.172413170337677,
0.1482938677072525,
0.10703155398368835,
-0.04117630422115326,
0.2748093008995056,
-0.13275274634361267,
-0.11535957455635071,
0.11353079974651337,
0.06601577252149582,
0.24150526523590088,
0.12964430451393127,
-0.07226713746786118,
0.01946909911930561,
0.1619674116373062,
0.17290113866329193,
0.02560228854417801,
-0.2666926681995392,
0.35123252868652344,
-0.009679812006652355,
0.23217131197452545,
0.20023749768733978,
-0.13443350791931152,
0.11862615495920181,
0.17569595575332642,
0.13157722353935242,
0.2086506187915802,
-0.04271264374256134,
0.30435577034950256,
0.040630634874105453,
-0.27040109038352966,
-0.11325716227293015,
0.31846192479133606,
0.0908866673707962,
-0.0968172550201416,
-0.14209303259849548,
-0.29337698221206665,
-0.30843666195869446,
0.11664507538080215,
-0.06996359676122665,
-0.42487210035324097,
-0.0010504430392757058,
0.18266157805919647,
-0.07671605050563812,
-0.1978779435157776,
-0.0527084656059742,
-0.1791323572397232,
0.1575370877981186,
-0.277676522731781,
0.3628767728805542,
0.16349105536937714,
-0.12490628659725189,
0.3019222617149353,
0.559583842754364,
0.407001793384552,
-0.01300848089158535,
-0.0583067461848259,
0.33106234669685364,
0.0331278070807457,
-0.04450711980462074,
-0.14094343781471252,
0.2963183522224426,
0.017303870990872383,
0.06160508841276169,
0.2934180498123169,
0.1977272778749466,
-0.22780920565128326,
-0.23081205785274506,
-0.028046607971191406,
-0.20649883151054382,
-0.21125927567481995,
0.0871778130531311,
-0.07415983080863953,
0.13216300308704376,
-0.40741416811943054,
-0.16994252800941467,
-0.6608303189277649,
0.15932925045490265,
0.4730759561061859,
-0.26150888204574585,
0.14294055104255676,
-0.1474590301513672,
0.10281509906053543,
-0.12276193499565125,
0.3599652945995331,
0.3447946310043335,
0.029528815299272537,
-0.10411131381988525,
-0.13276176154613495,
-0.42923930287361145,
-0.21398960053920746,
0.037732306867837906,
0.08936149626970291,
-0.2855095863342285,
0.15093456208705902,
0.28794315457344055,
0.3707047402858734,
-0.13182732462882996,
0.007548599969595671,
-0.4060834050178528,
0.09434793144464493,
-0.23347342014312744,
0.11232203990221024,
-0.04999908059835434,
0.6286009550094604,
0.1807158887386322,
-0.13378478586673737,
-0.17895394563674927,
0.18589337170124054,
0.029987487941980362,
-0.04306742921471596,
0.10705237835645676,
-0.2027403712272644,
-0.4029412269592285,
0.0968325063586235,
0.008099933154881,
0.468854159116745,
-0.2251967191696167,
-0.025557691231369972,
-0.1893637478351593,
-0.03418928012251854,
-0.3663245141506195,
-0.026794565841555595,
-0.02591180056333542,
0.2615013122558594,
-0.27571168541908264,
0.245453342795372,
-0.0735747292637825,
-0.15641102194786072,
0.07538427412509918,
-0.016962449997663498,
-0.2175993025302887,
0.04149876534938812,
-0.11020044982433319,
0.08605115860700607,
-0.02242138423025608,
0.3933384120464325,
-0.10968921333551407,
-0.09776841104030609,
-0.25310397148132324,
-0.24900072813034058,
0.4857107996940613,
-0.1461969017982483,
-0.22771726548671722,
-0.055689021944999695,
0.1905222237110138,
0.17708951234817505,
-0.04303622245788574,
-0.7272623777389526,
0.3224763572216034,
0.26321250200271606,
0.10821334272623062,
0.07521568983793259,
0.24620142579078674,
0.0293009914457798,
-0.084495909512043,
-0.18439719080924988,
0.06426525115966797,
0.11963515728712082,
-0.24615609645843506,
0.13798712193965912,
-0.34592047333717346
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | I have written to the dataset authors, highlighting this issue. Waiting for their response.
Update on 25th Feb:
The authors have replied back, they are updating the download link and will revert back shortly!
```
first of all thanks a lot for being interested in MuST-C and for building the data-loader.
Before answering your request, I'd like to clarify that the creation, maintenance, and expansion of MuST-c are not supported by any funded project, so this means that we need to find economic support for all these activities. This also includes permanently moving all the data to AWS or GCP. We are working at this with the goal of facilitating the use of MuST-C, but this is not something that can happen today. We hope to have some news ASAP and you will be among the first to be informed.
I hope you understand our situation.
```
| ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 147 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I have written to the dataset authors, highlighting this issue. Waiting for their response.
Update on 25th Feb:
The authors have replied back, they are updating the download link and will revert back shortly!
```
first of all thanks a lot for being interested in MuST-C and for building the data-loader.
Before answering your request, I'd like to clarify that the creation, maintenance, and expansion of MuST-c are not supported by any funded project, so this means that we need to find economic support for all these activities. This also includes permanently moving all the data to AWS or GCP. We are working at this with the goal of facilitating the use of MuST-C, but this is not something that can happen today. We hope to have some news ASAP and you will be among the first to be informed.
I hope you understand our situation.
```
| [
-0.19946876168251038,
0.2436532825231552,
-0.09747280180454254,
-0.07846877723932266,
-0.010633702389895916,
-0.14516587555408478,
0.052475761622190475,
0.07501109689474106,
-0.12100738286972046,
0.30050280690193176,
-0.16881239414215088,
-0.12146369367837906,
-0.09290602058172226,
0.10149198025465012,
0.04924052208662033,
0.0520470105111599,
0.015937183052301407,
0.14174547791481018,
-0.4235430359840393,
-0.21375779807567596,
0.06769201159477234,
0.16524434089660645,
-0.1971704512834549,
-0.11856013536453247,
-0.24176812171936035,
-0.005175167694687843,
-0.19879701733589172,
-0.1627391129732132,
-0.27737218141555786,
-0.17551305890083313,
0.3096406161785126,
0.18611109256744385,
-0.049367282539606094,
0.41380396485328674,
-0.00010417112935101613,
-0.08866847306489944,
0.26804327964782715,
-0.2699055075645447,
-0.575939953327179,
-0.186933234333992,
-0.26990073919296265,
-0.3016946315765381,
-0.3962218761444092,
0.000575430050957948,
-0.15655860304832458,
-0.25017526745796204,
0.19012008607387543,
0.08452147990465164,
0.19829601049423218,
0.5663022994995117,
0.2318572849035263,
0.1294274628162384,
0.15951471030712128,
-0.2813529372215271,
0.21314463019371033,
0.1161143109202385,
-0.12013207376003265,
0.33041274547576904,
0.3230339586734772,
-0.05376927927136421,
0.05123400315642357,
0.33517780900001526,
0.14303888380527496,
-0.1815524697303772,
-0.03451254591345787,
-0.4015652537345886,
-0.11710246652364731,
-0.27424681186676025,
0.020795954391360283,
0.20205891132354736,
0.6257650852203369,
-0.2948608994483948,
-0.12838266789913177,
-0.0489041730761528,
0.26168322563171387,
-0.049109749495983124,
0.07344413548707962,
-0.02195637673139572,
-0.1568528264760971,
0.2644259035587311,
0.25546061992645264,
-0.14691390097141266,
-0.30022165179252625,
0.34917986392974854,
-0.10341976583003998,
0.2759411633014679,
-0.1623290777206421,
-0.09582975506782532,
0.06700653582811356,
-0.13474079966545105,
-0.19822484254837036,
0.04341166093945503,
0.07948905974626541,
0.02685970813035965,
-0.2630912959575653,
-0.23747557401657104,
0.1905117928981781,
-0.1299905776977539,
-0.0011349593987688422,
-0.2518422603607178,
-0.03306545689702034,
-0.13789089024066925,
-0.24237170815467834,
0.16906656324863434,
0.027531536296010017,
0.39159947633743286,
0.04780491068959236,
0.02589683048427105,
0.04543822631239891,
-0.11203362792730331,
0.016895340755581856,
0.0804203525185585,
-0.07517416030168533,
0.12114166468381882,
-0.43992337584495544,
0.21645408868789673,
-0.11259479075670242,
-0.08307528495788574,
-0.3828398883342743,
0.2213926613330841,
0.012134922668337822,
0.20580129325389862,
-0.08277714997529984,
0.2824519872665405,
0.11290506273508072,
0.3342098295688629,
0.07860458642244339,
0.31836971640586853,
-0.052351951599121094,
-0.23995211720466614,
-0.0853365883231163,
0.15758471190929413,
-0.30827468633651733,
0.19938887655735016,
0.3140442967414856,
0.19703087210655212,
0.2421511709690094,
0.038502469658851624,
0.3347856104373932,
0.10338019579648972,
-0.25050628185272217,
0.017321940511465073,
0.16288186609745026,
0.18110188841819763,
0.054134879261255264,
0.1432269960641861,
-0.12621594965457916,
-0.10760784149169922,
-0.11034760624170303,
-0.00723838247358799,
0.11774517595767975,
-0.1387743055820465,
-0.1597450226545334,
0.27938389778137207,
-0.09145468473434448,
-0.1464097797870636,
-0.25642088055610657,
0.48645448684692383,
-0.16669614613056183,
-0.2322053760290146,
-0.03342057392001152,
-0.0739753395318985,
-0.24278436601161957,
0.06479693949222565,
-0.057057805359363556,
0.3744240701198578,
-0.49993136525154114,
-0.04487396031618118,
-0.06089897081255913,
0.039091382175683975,
0.21534599363803864,
0.28507766127586365,
-0.19692778587341309,
0.22096700966358185,
-0.15839068591594696,
0.15260744094848633,
-0.0754714235663414,
-0.3909395635128021,
-0.4706938862800598,
0.24471160769462585,
-0.1340879201889038,
0.02262202277779579,
0.20442163944244385,
-0.14138725399971008,
0.497031033039093,
-0.31353750824928284,
-0.090555340051651,
0.2267126888036728,
0.1310691386461258,
0.020900797098875046,
-0.34858670830726624,
-0.26384437084198,
0.22145643830299377,
0.09604765474796295,
-0.005267385393381119,
0.07032011449337006,
0.14849713444709778,
0.29473236203193665,
0.24755091965198517,
-0.19667969644069672,
0.1935804933309555,
0.25088661909103394,
0.04292590171098709,
-0.11770913749933243,
0.026825090870261192,
-0.036282893270254135,
-0.21714256703853607,
0.01608094945549965,
0.05337938293814659,
0.5594961643218994,
0.04956837370991707,
-0.18252159655094147,
-0.22433744370937347,
-0.08057986944913864,
-0.09102048724889755,
-0.09417756646871567,
0.23625719547271729,
0.2504654824733734,
-0.00047875853488221765,
-0.0016523334197700024,
0.02619086019694805,
0.36736923456192017,
-0.5647371411323547,
-0.36079296469688416,
-0.05396963283419609,
0.3357366621494293,
-0.07399777323007584,
-0.19659793376922607,
0.18269875645637512,
0.15745872259140015,
0.2013041377067566,
0.0631333515048027,
-0.038997672498226166,
0.06410101801156998,
-0.1801031082868576,
0.3866426646709442,
-0.00824462529271841,
0.07210925966501236,
0.2638551592826843,
-0.6111436486244202,
0.23645049333572388,
0.376316636800766,
0.2113751471042633,
-0.2172631025314331,
-0.11777360737323761,
0.1943623423576355,
0.2179945409297943,
0.10463429987430573,
0.1812201291322708,
-0.10039865970611572,
0.4180649518966675,
0.03320711851119995,
-0.15433911979198456,
-0.21846413612365723,
0.18551377952098846,
0.2518806457519531,
-0.2344924658536911,
0.0502600260078907,
-0.24993309378623962,
0.11588796973228455,
0.5303115844726562,
-0.0432325154542923,
0.2990736961364746,
0.2960604727268219,
-0.020463941618800163,
-0.22502835094928741,
0.14317113161087036,
-0.17258253693580627,
0.33132418990135193,
0.3123633563518524,
0.1839495599269867,
0.018274694681167603,
0.11119449138641357,
-0.23185686767101288,
0.25868552923202515,
0.06422258168458939,
-0.1848549246788025,
0.26624658703804016,
0.16692733764648438,
-0.09632568806409836,
-0.40544986724853516,
-0.09044352918863297,
0.10065184533596039,
0.16564379632472992,
-0.20151029527187347,
-0.28088417649269104,
-0.09344138950109482,
-0.004067357629537582,
-0.03404364734888077,
0.012092753313481808,
-0.11517206579446793,
-0.17633859813213348,
0.369687557220459,
0.14510107040405273,
-0.2763327360153198,
0.2118779867887497,
0.17016732692718506,
0.27206942439079285,
-0.3504619896411896,
-0.12712602317333221,
-0.2708381414413452,
-0.385951429605484,
-0.33275848627090454,
0.16987596452236176,
0.15694034099578857,
0.214690163731575,
0.13930003345012665,
-0.10367418825626373,
0.12194838374853134,
-0.2698877155780792,
-0.3286661207675934,
0.19645076990127563,
-0.28295573592185974,
0.19264143705368042,
-0.15228517353534698,
0.10866051912307739,
-0.06628935039043427,
-0.38728997111320496,
-0.19750362634658813,
-0.03996877744793892,
-0.11091390997171402,
0.02991233766078949,
-0.4460119605064392,
-0.04198596626520157,
-0.17166483402252197,
-0.4508725106716156,
-0.5141521692276001,
-0.48730817437171936,
0.19614364206790924,
-0.23058243095874786,
0.08912406861782074,
0.2859635651111603,
0.18027721345424652,
-0.06894761323928833,
0.04844092205166817,
0.1605440229177475,
-0.33845749497413635,
-0.30267462134361267,
0.2091611623764038,
-0.25445756316185,
-0.2924199104309082,
-0.1641886681318283,
0.09638036787509918,
0.2745870351791382,
-0.12033025175333023,
-0.3925466239452362,
0.2880350649356842,
-0.16405974328517914,
0.3043844401836395,
0.04737791046500206,
0.0017229978693649173,
0.350322961807251,
-0.18562765419483185,
-0.1792619526386261,
-0.21700261533260345,
-0.175256609916687,
0.04252444580197334,
0.39766114950180054,
0.20706342160701752,
-0.054181646555662155,
0.052715450525283813,
0.10864178836345673,
0.5772774815559387,
0.13537579774856567,
-0.021799031645059586,
0.26152798533439636,
0.09093982726335526,
0.4808559715747833,
-0.22865094244480133,
-0.3318844735622406,
0.30997133255004883,
0.14300526678562164,
-0.05374706909060478,
0.4422290027141571,
-0.06037237122654915,
-0.3396676778793335,
-0.07211209088563919,
-0.2483978569507599,
-0.21713434159755707,
-0.2148473858833313,
0.289090096950531,
0.016824087128043175,
0.2655293047428131,
0.07364360243082047,
-0.10337300598621368,
-0.2026953399181366,
-0.13603554666042328,
0.18131472170352936,
0.11130949854850769,
0.07078991830348969,
-0.017417440190911293,
-0.07590720057487488,
0.023656651377677917,
-0.2593645751476288,
-0.09691915661096573,
0.11128399521112442,
0.3616999685764313,
-0.4803871214389801,
0.03053451143205166,
0.03401882201433182,
0.09669552743434906,
0.3674912750720978,
-0.2934882938861847,
0.04350459203124046,
0.30527666211128235,
0.6362549066543579,
-0.1275072991847992,
0.1157650500535965,
-0.26745977997779846,
-0.36584949493408203,
0.6204193830490112,
0.16985133290290833,
-0.26206138730049133,
-0.016906587406992912,
0.011989705264568329,
0.2751438319683075,
-0.015639768913388252,
-0.22679565846920013,
0.03383326902985573,
-0.3036283850669861,
-0.36584120988845825,
0.23292258381843567,
0.43878892064094543,
0.0009313920745626092,
0.08622454851865768,
0.08773867040872574,
0.12069863826036453,
-0.12330572307109833,
0.4253792464733124,
-0.021681630983948708,
0.05687614530324936,
0.467291921377182,
0.12634573876857758,
-0.09974642097949982,
-0.22780482470989227,
-0.019439738243818283,
0.42845121026039124,
0.04373155161738396,
-0.2520926892757416,
0.193125382065773,
-0.1505158394575119,
0.32661113142967224,
0.35901540517807007,
0.0778016671538353,
-0.08119791746139526,
-0.10516427457332611,
0.030905503779649734,
-0.11803511530160904,
0.2863195836544037,
0.16819165647029877,
-0.0060650366358459,
-0.29758894443511963,
-0.14507725834846497,
0.29084381461143494,
-0.1543271243572235,
-0.14238907396793365,
0.055068470537662506,
0.12462352216243744,
-0.19989784061908722,
0.29637041687965393,
-0.1650329828262329,
1.2194265127182007,
0.22365033626556396,
0.014955579303205013,
0.17214740812778473,
-0.25627264380455017,
0.04603128507733345,
-0.5465515851974487,
-0.10119350254535675,
0.28515374660491943,
0.05964510142803192,
0.03130276873707771,
0.2506735324859619,
0.061870723962783813,
0.32079222798347473,
-0.3977724015712738,
0.16669821739196777,
0.062493789941072464,
0.047825705260038376,
0.2526814937591553,
0.48724690079689026,
-0.29545480012893677,
-0.4569346010684967,
-0.4111870527267456,
0.2819785475730896,
0.15541207790374756,
0.17006856203079224,
0.12637446820735931,
-0.2567601799964905,
0.31198087334632874,
-0.06565715372562408,
-0.4868174195289612,
0.29260149598121643,
-0.24129720032215118,
-0.07545337080955505,
-0.41495317220687866,
-0.001980165485292673,
0.5006416440010071,
0.14658673107624054,
0.18779399991035461,
0.1889207661151886,
-0.20836563408374786,
0.36738142371177673,
0.07406212389469147,
0.0009788245661184192,
0.14979636669158936,
-0.031718071550130844,
0.31776729226112366,
-0.26019591093063354,
-0.29626065492630005,
0.22223131358623505,
0.04584313929080963,
-0.12835656106472015,
-0.34814146161079407,
-0.14228129386901855,
0.13433317840099335,
0.12770894169807434,
0.19806048274040222,
0.48068612813949585,
-0.11199921369552612,
-0.3046714961528778,
0.1981637179851532,
-0.13009490072727203,
-0.38272345066070557,
0.2528735101222992,
-0.25196775794029236,
-0.299704909324646,
-0.24460020661354065,
0.38139545917510986,
0.17682406306266785,
0.03698007017374039,
0.4371751546859741,
0.2896377742290497,
-0.2361137717962265,
-0.46959054470062256,
-0.11107366532087326,
-0.06074516847729683,
-0.6077983379364014,
0.08017545193433762,
0.1317831575870514,
-0.17477867007255554,
-0.1215532124042511,
0.4586312174797058,
0.1244470402598381,
-0.0960199236869812,
-0.04950224608182907,
-0.19597122073173523,
-0.30873921513557434,
-0.18028610944747925,
0.07636674493551254,
0.1393088847398758,
0.08405981212854385,
0.27933844923973083,
-0.007221955340355635,
-0.030710890889167786,
-0.44798797369003296,
0.08970624953508377,
-0.1554456502199173,
0.16972611844539642,
0.026673996821045876,
-0.18966536223888397,
0.4018847346305847,
0.06061812490224838,
0.1980849802494049,
0.10598794370889664,
-0.03715980425477028,
-0.2394755631685257,
-0.14743101596832275,
0.0904163122177124,
0.19010215997695923,
0.3105752766132355,
-0.12292763590812683,
-0.11927998811006546,
-0.14778243005275726,
0.12485618889331818,
0.3903585374355316,
0.2951332926750183,
-0.11268497258424759,
0.22861990332603455,
-0.12750321626663208,
0.15388812124729156,
0.20717643201351166,
-0.12383941560983658,
0.23680022358894348,
0.373945951461792,
0.06923002004623413,
0.12963509559631348,
-0.019329551607370377,
-0.16988982260227203,
-0.09978563338518143,
0.3650919497013092,
-0.03632945939898491,
0.1720937043428421,
0.1370667666196823,
0.036598846316337585,
0.12790095806121826,
0.14740274846553802,
0.016156423836946487,
-0.019126562401652336,
-0.025065459311008453,
-0.2337157130241394,
0.40904998779296875,
0.29812002182006836,
-0.32872363924980164,
0.11986545473337173,
-0.48336830735206604,
-0.17938081920146942,
0.12374404817819595,
-0.01783018559217453,
0.10649662464857101,
-0.1830836981534958,
0.4820238947868347,
-0.006135943811386824,
-0.16580139100551605,
-0.053481653332710266,
-0.03714872896671295,
0.11064070463180542,
0.06599126756191254,
-0.049297962337732315,
0.1264680027961731,
-0.02641417272388935,
0.03287948668003082,
0.11688778549432755,
-0.21441222727298737,
0.4423992931842804,
0.1650189310312271,
0.20334839820861816,
0.1549123227596283,
-0.24640820920467377,
0.06353496015071869,
0.11941908299922943,
0.0035675654653459787,
0.28203022480010986,
0.06365424394607544,
0.16508027911186218,
-0.07727408409118652,
-0.15189504623413086,
-0.25472214818000793,
0.0581931546330452,
-0.01914466917514801,
0.03798789158463478,
-0.28617969155311584,
-0.19991271197795868,
-0.17099441587924957,
0.04851982742547989,
0.005086160730570555,
-0.20919200778007507,
0.0001080194124369882,
0.1914757639169693,
-0.23313356935977936,
-0.28153863549232483,
-0.12377297878265381,
-0.12306751310825348,
0.17282776534557343,
-0.2622760534286499,
0.4665760099887848,
0.127889484167099,
0.010811040177941322,
0.19993573427200317,
0.33508819341659546,
0.4866558909416199,
0.01781703718006611,
-0.07814337313175201,
0.09810033440589905,
-0.04841819033026695,
-0.16086919605731964,
-0.034588176757097244,
0.49153223633766174,
0.05959583446383476,
0.29034703969955444,
0.23336784541606903,
0.2629183232784271,
-0.26012250781059265,
-0.22371013462543488,
0.23665699362754822,
-0.09091629087924957,
-0.13182029128074646,
0.2377183735370636,
0.038578566163778305,
0.16026826202869415,
-0.47328177094459534,
-0.05027926340699196,
-0.6061914563179016,
-0.09877409040927887,
0.3786173164844513,
-0.22552992403507233,
0.2581450045108795,
-0.2684156894683838,
0.14973363280296326,
-0.24982723593711853,
0.337790310382843,
0.348275363445282,
-0.014710811898112297,
-0.208676278591156,
-0.12431862205266953,
-0.24749507009983063,
-0.05014042183756828,
0.07806606590747833,
0.0436139851808548,
-0.42006030678749084,
0.11174605041742325,
0.4651493728160858,
0.14752283692359924,
-0.17277099192142487,
0.11166683584451675,
-0.29464003443717957,
0.07354211807250977,
-0.313127726316452,
0.3269432485103607,
0.10251618921756744,
0.47206395864486694,
0.06353357434272766,
-0.2327401489019394,
-0.30491650104522705,
0.26804447174072266,
0.0959118977189064,
-0.12548573315143585,
-0.10326160490512848,
-0.10062087327241898,
-0.08354789763689041,
0.342315673828125,
-0.035719018429517746,
0.4685291051864624,
-0.28293007612228394,
-0.009579986333847046,
-0.23340505361557007,
-0.11468441784381866,
-0.046146243810653687,
-0.0356917679309845,
-0.0001258904521819204,
0.24952930212020874,
-0.06529153138399124,
0.2796505093574524,
-0.09385094791650772,
-0.06763634085655212,
0.0154785281047225,
0.06324739009141922,
-0.21293525397777557,
0.17209291458129883,
-0.21636846661567688,
0.09715747088193893,
-0.24149605631828308,
0.20025262236595154,
0.10393434762954712,
-0.15385372936725616,
-0.33137065172195435,
-0.27565619349479675,
0.38220614194869995,
-0.14178022742271423,
-0.3627891540527344,
0.0031980432104319334,
0.346735417842865,
0.1424880027770996,
0.05439625680446625,
-0.5818461179733276,
0.20407651364803314,
0.29361671209335327,
0.06264818459749222,
0.09746645390987396,
0.1681451052427292,
0.01845904439687729,
-0.013143129646778107,
-0.11005163937807083,
0.03965416178107262,
0.1952480524778366,
-0.26444560289382935,
0.057830147445201874,
-0.33412277698516846
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Awesome, actually @lhoestq let's just ask the authors if we should host the dataset no? They could just use our links then as well for their website - what do you think? Is it fine to use our AWS dataset storage also as external links? | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 45 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Awesome, actually @lhoestq let's just ask the authors if we should host the dataset no? They could just use our links then as well for their website - what do you think? Is it fine to use our AWS dataset storage also as external links? | [
-0.17688919603824615,
0.23500777781009674,
-0.0860685184597969,
0.2041037529706955,
-0.23309792578220367,
-0.04346412420272827,
0.3742261528968811,
-0.04431677609682083,
0.06548832356929779,
0.1011236384510994,
-0.4423069655895233,
-0.2948478162288666,
-0.053012654185295105,
0.19022223353385925,
0.18855538964271545,
0.06279916316270828,
0.19078296422958374,
-0.22387133538722992,
-0.167001411318779,
-0.19653846323490143,
-0.17660897970199585,
-0.07325848937034607,
0.07063477486371994,
-0.05589583143591881,
-0.10986942052841187,
-0.03467043489217758,
-0.2770484983921051,
-0.2518584132194519,
-0.13460098206996918,
-0.10938446968793869,
-0.08872564136981964,
0.07147380709648132,
0.21228136122226715,
0.3748488128185272,
-0.00011114583321614191,
-0.038317807018756866,
0.19570858776569366,
-0.056541718542575836,
-0.35099712014198303,
-0.16939717531204224,
-0.5732917785644531,
0.06604457646608353,
-0.5719038844108582,
-0.10174395889043808,
-0.1267906278371811,
-0.2210603952407837,
-0.024783195927739143,
-0.026252685114741325,
-0.02177860587835312,
0.4211544394493103,
0.1724235564470291,
0.07670672982931137,
-0.07573489099740982,
0.07121696323156357,
0.5016145706176758,
0.19039733707904816,
-0.12085410952568054,
0.04860804229974747,
0.15751807391643524,
0.24470962584018707,
0.03805406764149666,
0.4838588237762451,
-0.00238856696523726,
-0.09432340413331985,
0.14079050719738007,
-0.06521669775247574,
-0.2729617953300476,
-0.21059618890285492,
-0.05848899483680725,
0.12729589641094208,
0.923836350440979,
-0.08048754930496216,
-0.3618766665458679,
-0.08672083169221878,
0.12704697251319885,
0.025629909709095955,
-0.022561540827155113,
0.3293757140636444,
0.0880344808101654,
0.48146212100982666,
0.07300282269716263,
-0.5656751990318298,
-0.254256010055542,
0.42202264070510864,
-0.007557559758424759,
0.4286479949951172,
-0.11967945843935013,
0.06453046202659607,
-0.2250847965478897,
-0.007290602661669254,
0.10061857104301453,
-0.39012280106544495,
0.08256904035806656,
-0.1444494128227234,
0.02190408483147621,
-0.26024329662323,
0.1390446126461029,
-0.0016059636836871505,
-0.03521040827035904,
-0.11277828365564346,
-0.028062373399734497,
-0.2498503029346466,
-0.183634951710701,
0.17592908442020416,
0.11288971453905106,
0.1946854442358017,
-0.05571085959672928,
0.12342078238725662,
0.3331666886806488,
-0.11840139329433441,
0.10244528949260712,
0.05359043553471565,
0.050621677190065384,
0.3487093448638916,
-0.6194533705711365,
-0.15461337566375732,
0.05354435741901398,
-0.17302709817886353,
-0.25320595502853394,
0.27150610089302063,
0.07610908895730972,
0.08112195134162903,
0.09384998679161072,
0.22817160189151764,
0.11549066007137299,
0.0970764085650444,
-0.09829159826040268,
0.43229448795318604,
0.2728835940361023,
-0.21296121180057526,
0.06882521510124207,
0.06875578314065933,
-0.12553448975086212,
0.2854406237602234,
-0.01345148216933012,
0.43730631470680237,
0.0432116761803627,
0.07233484834432602,
0.45368289947509766,
-0.049640871584415436,
0.08444571495056152,
-0.07907580584287643,
0.14106284081935883,
0.18447422981262207,
0.11133332550525665,
0.20039378106594086,
-0.26961857080459595,
-0.08290665596723557,
-0.09824156761169434,
0.1392482966184616,
0.041065603494644165,
-0.42833641171455383,
-0.20542412996292114,
0.15301662683486938,
-0.24116720259189606,
-0.1772436946630478,
-0.3937395513057709,
0.4677191972732544,
-0.10898075252771378,
-0.15801861882209778,
0.06681574881076813,
0.3648849427700043,
-0.5243887305259705,
0.03202611207962036,
-0.2461237907409668,
0.30351582169532776,
-0.2656872868537903,
0.16246725618839264,
0.15068483352661133,
0.36103472113609314,
-0.002628084272146225,
0.3630704879760742,
-0.30292269587516785,
0.35894453525543213,
-0.046887099742889404,
0.26672062277793884,
0.196294367313385,
-0.2316156029701233,
-0.3109979033470154,
0.38332998752593994,
-0.15814068913459778,
-0.08030287176370621,
0.12024520337581635,
-0.09302255511283875,
0.31541410088539124,
-0.25493666529655457,
0.03801523521542549,
0.3598024845123291,
0.3089081645011902,
0.15845032036304474,
-0.2977129817008972,
-0.3035259246826172,
0.19377705454826355,
0.29189333319664,
-0.005383318290114403,
0.040141887962818146,
0.20563220977783203,
0.1810542494058609,
0.08135119080543518,
-0.44835156202316284,
0.3314915597438812,
0.18314099311828613,
0.06472518295049667,
-0.0849556177854538,
-0.08951582759618759,
0.021044999361038208,
-0.23346100747585297,
-0.014325371012091637,
0.17697693407535553,
0.5444403886795044,
0.016345668584108353,
-0.3388363718986511,
-0.10663989186286926,
-0.0903186947107315,
-0.12110494077205658,
-0.23754210770130157,
0.12937596440315247,
0.10122151672840118,
-0.022610820829868317,
0.21130047738552094,
-0.15140163898468018,
0.12175404280424118,
-0.3733398914337158,
-0.1286693960428238,
-0.06279962509870529,
0.3903953731060028,
-0.02691621333360672,
0.16042320430278778,
0.09971321374177933,
0.26311126351356506,
0.018151579424738884,
-0.11166514456272125,
0.12293622642755508,
0.17795395851135254,
-0.19912610948085785,
0.4674479365348816,
0.287553995847702,
0.27188044786453247,
0.4537723660469055,
-0.4568027853965759,
0.4307047426700592,
0.11179256439208984,
0.0557061992585659,
-0.27083316445350647,
-0.09530962258577347,
0.14117437601089478,
0.07126544415950775,
0.2798333466053009,
-0.08128231018781662,
-0.013990846462547779,
0.122794508934021,
0.15296979248523712,
-0.31945398449897766,
-0.06755462288856506,
0.11929825693368912,
0.39071622490882874,
-0.05007852241396904,
0.08405701071023941,
-0.24869374930858612,
0.26496854424476624,
0.22243979573249817,
-0.14015662670135498,
0.12981155514717102,
0.20511190593242645,
-0.16181142628192902,
-0.30604588985443115,
0.3169538676738739,
0.010889819823205471,
0.3427010774612427,
0.225962832570076,
0.3396803140640259,
-0.03801769018173218,
0.20256415009498596,
-0.19476445019245148,
0.39986956119537354,
0.12127390503883362,
-0.23179244995117188,
0.0261173527687788,
0.05983386188745499,
-0.22109615802764893,
-0.19626305997371674,
-0.14364221692085266,
0.06851144134998322,
-0.022015538066625595,
-0.292875200510025,
-0.12601874768733978,
0.35310715436935425,
-0.2213844507932663,
-0.14543874561786652,
-0.08895782381296158,
-0.22368597984313965,
-0.07370314002037048,
0.29395854473114014,
0.026152051985263824,
-0.38821640610694885,
0.052742764353752136,
0.1434531956911087,
0.42673876881599426,
-0.49904903769493103,
-0.22494621574878693,
-0.14993368089199066,
-0.30448415875434875,
-0.05681717395782471,
0.11554180085659027,
0.4216358959674835,
0.0927080363035202,
0.12397678941488266,
0.01991959661245346,
0.16071607172489166,
-0.5759223103523254,
-0.08785663545131683,
0.11583790928125381,
-0.22589409351348877,
0.10478395223617554,
-0.1758357584476471,
0.005703270900994539,
-0.11092095077037811,
-0.3367811441421509,
-0.10697091370820999,
0.25747621059417725,
0.3168454170227051,
-0.27733054757118225,
-0.16004379093647003,
-0.1456630378961563,
0.02777116186916828,
-0.3274398446083069,
-0.49717292189598083,
-0.2563108503818512,
0.2121647149324417,
-0.16059403121471405,
-0.036346133798360825,
-0.1856091320514679,
0.12090957909822464,
0.027658449485898018,
0.26401007175445557,
-0.1219029352068901,
-0.3577713370323181,
-0.44570550322532654,
0.2771979570388794,
-0.27925658226013184,
-0.31867554783821106,
-0.21655815839767456,
0.22022925317287445,
0.3044363558292389,
0.00728690205141902,
-0.5050763487815857,
0.12216977030038834,
0.11365360021591187,
0.23362410068511963,
0.16581042110919952,
0.2572152614593506,
-0.11630740761756897,
-0.04563062638044357,
-0.09722327440977097,
-0.033504318445920944,
-0.05299420282244682,
-0.01453250553458929,
0.35112670063972473,
0.1141984611749649,
0.18473395705223083,
-0.06527537107467651,
0.04659349098801613,
0.8114852905273438,
0.20521454513072968,
0.09424547851085663,
0.20723922550678253,
0.12226389348506927,
0.2584120035171509,
-0.10968685150146484,
-0.23267674446105957,
0.45075562596321106,
-0.011075273156166077,
-0.4531015455722809,
0.40924012660980225,
0.19363591074943542,
-0.4243689775466919,
-0.1811831295490265,
-0.19274243712425232,
-0.25581124424934387,
-0.2215341329574585,
0.22017152607440948,
-0.0004186495207250118,
0.23257313668727875,
0.25501084327697754,
-0.3409237265586853,
-0.15010103583335876,
-0.22516284883022308,
0.17382492125034332,
0.10808945447206497,
0.15004688501358032,
-0.033922381699085236,
-0.15731798112392426,
0.007291465066373348,
-0.42443522810935974,
0.12239107489585876,
0.10364443808794022,
-0.053573861718177795,
-0.15059299767017365,
0.04375661909580231,
0.2378767430782318,
0.04675726220011711,
0.23734131455421448,
-0.6042851805686951,
-0.23360860347747803,
-0.1005125641822815,
0.5441199541091919,
-0.08723822981119156,
0.2938614785671234,
-0.07094531506299973,
-0.32174140214920044,
0.43243682384490967,
0.07963962107896805,
-0.31607937812805176,
0.1735692322254181,
-0.037849634885787964,
0.1786249428987503,
0.015404898673295975,
-0.24830560386180878,
0.16220946609973907,
-0.262696236371994,
-0.3507334291934967,
0.02457618899643421,
0.44275209307670593,
-0.2547818422317505,
0.11673998832702637,
0.10652705281972885,
0.18454498052597046,
0.1730906069278717,
0.37461596727371216,
0.027827298268675804,
-0.20921456813812256,
0.26845282316207886,
-0.1993257999420166,
-0.0012186419917270541,
-0.030335325747728348,
0.11175458878278732,
0.534727156162262,
0.12441781163215637,
-0.09206296503543854,
-0.06595120579004288,
-0.31508222222328186,
0.24783292412757874,
0.4789135456085205,
0.15419873595237732,
-0.01927538961172104,
-0.13799096643924713,
0.018234577029943466,
-0.23636394739151,
0.11493963748216629,
0.04476495459675789,
0.16968108713626862,
-0.1691150665283203,
-0.31247058510780334,
0.47166937589645386,
-0.116142638027668,
-0.27484408020973206,
0.13535039126873016,
0.46105608344078064,
-0.3331754803657532,
0.3812476396560669,
-0.07772143185138702,
1.2574037313461304,
0.20912715792655945,
0.30341610312461853,
0.1667194813489914,
-0.21478991210460663,
0.3622976243495941,
-0.8011133670806885,
-0.33741316199302673,
0.24670208990573883,
0.40708717703819275,
-0.18610332906246185,
0.05393281579017639,
-0.11686970293521881,
0.2588732838630676,
-0.26020708680152893,
0.10859483480453491,
0.3884544372558594,
0.2679692208766937,
0.04731303080916405,
0.6848996877670288,
-0.161489799618721,
-0.37345707416534424,
-0.399385929107666,
0.22342073917388916,
-0.05499608814716339,
0.11945442855358124,
-0.11274287849664688,
-0.07171827554702759,
0.026759866625070572,
-0.020831100642681122,
-0.4345807135105133,
0.05076446011662483,
-0.1732655018568039,
0.10412368923425674,
-0.7388641238212585,
-0.19871114194393158,
0.48515784740448,
0.26175087690353394,
0.3026667535305023,
-0.1319669783115387,
-0.3229515850543976,
0.1003108099102974,
-0.13608932495117188,
0.20563234388828278,
0.07880251854658127,
-0.2793514132499695,
0.24902093410491943,
-0.1946902722120285,
-0.16996175050735474,
0.30360740423202515,
0.18267694115638733,
-0.12577490508556366,
-0.18696749210357666,
-0.2314065396785736,
-0.06341570615768433,
-0.1014576181769371,
0.06453704833984375,
0.7086160778999329,
-0.12422683835029602,
-0.14234650135040283,
0.08981921523809433,
-0.03551893308758736,
-0.1823466271162033,
0.06302449107170105,
-0.1724219024181366,
-0.25836291909217834,
-0.2958756983280182,
0.2627398669719696,
0.14361049234867096,
-0.1657795011997223,
0.16065442562103271,
0.20662924647331238,
-0.20302243530750275,
-0.23323453962802887,
0.29716041684150696,
-0.1968930959701538,
-0.40409281849861145,
-0.09789726883172989,
0.10394220799207687,
0.008909523487091064,
-0.647946298122406,
0.012277510017156601,
0.3014068007469177,
0.05656731501221657,
0.01247434038668871,
-0.0032780668698251247,
-0.10575972497463226,
0.1153571605682373,
0.19631288945674896,
0.19570676982402802,
-0.004136563744395971,
0.02217569388449192,
-0.004019188228994608,
-0.2936592698097229,
-0.32576897740364075,
0.1216534823179245,
0.13220615684986115,
0.015142595395445824,
0.23047249019145966,
-0.05592477321624756,
0.3730342388153076,
-0.13030865788459778,
0.0037818881683051586,
-0.2780868411064148,
-0.13216346502304077,
-0.1266547590494156,
-0.09024661779403687,
0.13399666547775269,
0.3759603798389435,
-0.10652431100606918,
-0.31965312361717224,
-0.3233654201030731,
-0.10003097355365753,
0.17223834991455078,
0.24965409934520721,
0.2512977421283722,
-0.2086668461561203,
0.024166563525795937,
-0.0898846909403801,
-0.07304379343986511,
-0.12854531407356262,
0.053214188665151596,
0.20117060840129852,
0.42495593428611755,
-0.06613772362470627,
0.2151748389005661,
0.22741660475730896,
-0.15336382389068604,
-0.028383681550621986,
0.3125062584877014,
0.0812123641371727,
0.3080125153064728,
0.27523377537727356,
0.004460130352526903,
0.1644081324338913,
0.14269673824310303,
0.1786898523569107,
0.24650749564170837,
-0.15804244577884674,
-0.24832873046398163,
0.24003876745700836,
0.18790745735168457,
-0.014929510653018951,
0.12488064169883728,
-0.24573427438735962,
-0.10615549236536026,
0.1178540289402008,
0.12354091554880142,
0.40392372012138367,
0.13746479153633118,
-0.005647070240229368,
-0.037706341594457626,
-0.03369840234518051,
-0.07295108586549759,
-0.04408277943730354,
0.037548813968896866,
-0.04809974506497383,
0.21222437918186188,
-0.05621044337749481,
0.13018348813056946,
0.056459732353687286,
0.14029468595981598,
-0.25299060344696045,
0.4280240833759308,
0.3958536684513092,
0.06099352613091469,
0.23221617937088013,
0.18270210921764374,
0.039514411240816116,
-0.10882305353879929,
0.09875248372554779,
0.1106773391366005,
0.1932627409696579,
0.10295670479536057,
0.04995964467525482,
-0.08836210519075394,
-0.1628962606191635,
0.22125008702278137,
0.15593783557415009,
-0.054639093577861786,
-0.3222889304161072,
-0.22646236419677734,
-0.2032475471496582,
0.039344266057014465,
-0.21803517639636993,
-0.30612698197364807,
-0.0036360484082251787,
0.18274718523025513,
0.01857757568359375,
-0.16396522521972656,
0.21267813444137573,
-0.13893796503543854,
0.10957304388284683,
-0.17861326038837433,
0.2214949131011963,
0.17736992239952087,
0.051876988261938095,
0.14550428092479706,
0.5054802894592285,
0.40302574634552,
-0.09547199308872223,
-0.11775816977024078,
0.2130495309829712,
-0.0850205048918724,
-0.041526518762111664,
-0.050150901079177856,
0.36987635493278503,
-0.09476323425769806,
-0.0204169824719429,
0.45808467268943787,
0.12083229422569275,
-0.12284451723098755,
0.03589877113699913,
-0.06578274071216583,
-0.015514903701841831,
-0.18482857942581177,
0.20888222754001617,
-0.06471993029117584,
-0.08886148780584335,
-0.19721952080726624,
-0.23230893909931183,
-0.45678290724754333,
0.08731351792812347,
0.628559410572052,
-0.44153568148612976,
0.18775279819965363,
-0.16885800659656525,
0.06379064917564392,
-0.1417001485824585,
0.4888124167919159,
0.22919179499149323,
0.12238430976867676,
-0.34866324067115784,
-0.07727638632059097,
-0.3244710862636566,
-0.0844900831580162,
0.030824821442365646,
0.18851852416992188,
-0.5234082341194153,
0.1661740094423294,
0.39574694633483887,
0.4661051630973816,
-0.30109357833862305,
0.0578126385807991,
-0.7391781210899353,
0.13252127170562744,
-0.26320680975914,
0.2868499457836151,
-0.2400151938199997,
0.7252264022827148,
-0.09475347399711609,
0.09524493664503098,
-0.08407926559448242,
0.28257763385772705,
-0.06991714984178543,
-0.253846675157547,
0.09707004576921463,
-0.18750634789466858,
-0.2575332522392273,
0.3402141332626343,
-0.0026481992099434137,
0.2787727117538452,
-0.18990424275398254,
0.022958211600780487,
-0.22575952112674713,
-0.2839415371417999,
-0.053341928869485855,
0.11287929862737656,
-0.15347401797771454,
0.22662092745304108,
-0.21433661878108978,
0.016655774787068367,
-0.03171037137508392,
-0.27892616391181946,
-0.03958135098218918,
0.23075267672538757,
-0.12914174795150757,
-0.06281954050064087,
-0.2441750466823578,
0.1129017025232315,
-0.09183113276958466,
0.3301851153373718,
-0.02578776888549328,
-0.08229316771030426,
-0.28013157844543457,
-0.26004841923713684,
0.3812655806541443,
-0.0150175541639328,
-0.2919612526893616,
0.34056544303894043,
0.3671388030052185,
0.22141332924365997,
-0.047507695853710175,
-0.7940040230751038,
0.10445625334978104,
0.3324849009513855,
0.10106834769248962,
-0.04505656659603119,
0.07021701335906982,
0.1605490744113922,
-0.024524204432964325,
-0.25140315294265747,
0.018531683832406998,
-0.11451812088489532,
-0.26853710412979126,
-0.10672380030155182,
-0.3115549385547638
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Yes definitely. Shall we suggest them to create a dataset repository under their org on huggingface.co ? @julien-c
The dataset is around 1TB | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Yes definitely. Shall we suggest them to create a dataset repository under their org on huggingface.co ? @julien-c
The dataset is around 1TB | [
-0.28197425603866577,
0.13165096938610077,
-0.11428958177566528,
0.1891249567270279,
-0.07617292553186417,
0.023895250633358955,
-0.015186971053481102,
0.13233540952205658,
-0.2927868664264679,
0.15688274800777435,
-0.2882779538631439,
-0.22735287249088287,
-0.13568992912769318,
0.17714568972587585,
0.19771085679531097,
-0.16475747525691986,
0.12651988863945007,
-0.023116594180464745,
-0.32716765999794006,
-0.2998180091381073,
-0.09859649091959,
0.07615017890930176,
-0.08869712799787521,
-0.1920020580291748,
-0.26979348063468933,
-0.036812469363212585,
-0.3112088739871979,
-0.2177727073431015,
-0.36723753809928894,
-0.21104855835437775,
0.03926796466112137,
0.059467822313308716,
0.16564242541790009,
0.5584834814071655,
-0.0001052458756021224,
-0.12061160802841187,
0.1992836743593216,
-0.23859892785549164,
-0.2963813841342926,
-0.13447561860084534,
-0.2026970237493515,
-0.2349897176027298,
-0.6540787220001221,
0.03312094137072563,
-0.25151681900024414,
-0.1497752070426941,
0.02420777827501297,
-0.0051270341500639915,
0.1849747896194458,
0.5032082796096802,
0.22876381874084473,
0.1169009804725647,
0.2910440266132355,
-0.14726820588111877,
0.24384458363056183,
0.07538733631372452,
-0.160988911986351,
0.1551642268896103,
0.2891930937767029,
0.2260185331106186,
0.11283224076032639,
0.5088255405426025,
0.04985440894961357,
-0.2827509641647339,
-0.0035755292046815157,
-0.3058145344257355,
-0.19649796187877655,
-0.4243428707122803,
0.14942626655101776,
0.2748364508152008,
0.5471500754356384,
-0.2278178334236145,
-0.22908195853233337,
-0.16973815858364105,
0.2611936628818512,
-0.1568029522895813,
-0.04991937428712845,
0.11228925734758377,
-0.16897590458393097,
0.3771129846572876,
0.10190494358539581,
-0.3955150246620178,
-0.21127213537693024,
0.28540366888046265,
0.023280544206500053,
0.28177976608276367,
-0.15768693387508392,
-0.09900155663490295,
0.10042262077331543,
-0.26466241478919983,
-0.38530823588371277,
-0.08338768780231476,
-0.007706545293331146,
0.09231270104646683,
-0.17226415872573853,
-0.3142678439617157,
0.2135918289422989,
-0.006790292449295521,
0.25829222798347473,
-0.3227827250957489,
-0.22629883885383606,
-0.15160232782363892,
-0.19317394495010376,
-0.08005432784557343,
0.09862235188484192,
0.3844139277935028,
-0.06728550791740417,
-0.016043394804000854,
0.10915055871009827,
-0.22921791672706604,
0.07161539793014526,
0.14436478912830353,
-0.07460770756006241,
0.17867411673069,
-0.4144826829433441,
0.07346542179584503,
0.02918761968612671,
-0.219457745552063,
-0.1896156668663025,
0.12062633037567139,
-0.030719026923179626,
0.05993123725056648,
-0.011248870752751827,
0.32623907923698425,
0.052554357796907425,
0.2642127573490143,
-0.10743724554777145,
0.35351279377937317,
-0.04940710589289665,
-0.22312283515930176,
-0.09070882946252823,
0.12493939697742462,
-0.1816270351409912,
0.15852628648281097,
0.22242794930934906,
0.25212907791137695,
0.08082424849271774,
-0.030709750950336456,
0.25430479645729065,
0.11203586310148239,
-0.21700915694236755,
-0.04385850951075554,
0.22661085426807404,
0.03436712175607681,
-0.006522669922560453,
0.05747026577591896,
-0.21888653934001923,
-0.11990411579608917,
-0.2017613649368286,
0.05618875473737717,
0.0737985372543335,
-0.13034817576408386,
-0.24507860839366913,
0.23723652958869934,
-0.1433439552783966,
-0.23461320996284485,
-0.3658261299133301,
0.6624663472175598,
-0.09893884509801865,
-0.06188306212425232,
0.09156172722578049,
0.22918595373630524,
-0.4113316535949707,
0.041374918073415756,
-0.07402367889881134,
0.3984496593475342,
-0.13735076785087585,
-0.130941241979599,
0.11314249038696289,
0.03831899166107178,
0.013881579972803593,
0.29075121879577637,
-0.03837418928742409,
0.1933073103427887,
-0.03245044872164726,
0.348006933927536,
0.034185975790023804,
-0.40460726618766785,
-0.44452810287475586,
0.14928001165390015,
-0.2617086172103882,
-0.0849771723151207,
0.23052269220352173,
-0.07539894431829453,
0.563113272190094,
-0.2706467807292938,
-0.006291999481618404,
0.29146188497543335,
-0.02472437173128128,
0.09287329018115997,
-0.23497681319713593,
-0.41557449102401733,
0.22836898267269135,
0.16995802521705627,
0.08371468633413315,
-0.045387446880340576,
-0.03900701925158501,
0.3225709795951843,
0.19395214319229126,
-0.26404690742492676,
0.27395445108413696,
0.26384836435317993,
0.11226468533277512,
-0.1178823709487915,
-0.01053248718380928,
-0.22655344009399414,
-0.16221825778484344,
-0.0458206944167614,
0.16517485678195953,
0.5588305592536926,
0.03934216871857643,
-0.24820764362812042,
-0.10936485230922699,
-0.17966246604919434,
-0.19668048620224,
-0.1557607203722,
0.23795592784881592,
0.2530171573162079,
0.19449850916862488,
0.1405172497034073,
-0.1418553739786148,
0.2613064646720886,
-0.31850653886795044,
-0.18505537509918213,
-0.13663822412490845,
0.23913465440273285,
-0.006254422012716532,
-0.21495993435382843,
0.24084126949310303,
0.49561557173728943,
0.08686845749616623,
-0.07899191975593567,
0.07189638912677765,
0.05545756593346596,
-0.3503279983997345,
0.17385396361351013,
0.12443957477807999,
0.23394246399402618,
0.32750028371810913,
-0.5012202858924866,
0.2246924340724945,
0.27097296714782715,
0.10816579312086105,
-0.159850612282753,
-0.11660415679216385,
0.15067200362682343,
0.2914885878562927,
0.0830969586968422,
0.056992847472429276,
-0.08835793286561966,
0.33506861329078674,
0.09631705284118652,
-0.12943321466445923,
-0.0824156403541565,
0.11843673884868622,
0.19736960530281067,
0.008263234049081802,
0.12310600280761719,
-0.30710938572883606,
0.17546100914478302,
0.5225203037261963,
-0.18223382532596588,
0.30809712409973145,
0.33165478706359863,
-0.0987376868724823,
-0.13552330434322357,
0.08561927825212479,
-0.18747428059577942,
0.2695053815841675,
0.30261239409446716,
0.21792249381542206,
-0.0037575673777610064,
0.32384198904037476,
-0.07486474514007568,
0.12743477523326874,
0.01602945663034916,
-0.2442697435617447,
0.1969398707151413,
0.19473502039909363,
-0.10073813050985336,
-0.34687140583992004,
0.04540152847766876,
-0.038537122309207916,
0.23384994268417358,
-0.07250713557004929,
-0.347493052482605,
0.13094432651996613,
-0.29006490111351013,
-0.263168603181839,
0.08697861433029175,
-0.2649090588092804,
0.07767277210950851,
0.32616594433784485,
-0.022097349166870117,
-0.0791148692369461,
0.2016182392835617,
0.2447785884141922,
0.34286731481552124,
-0.4011155068874359,
-0.08043026179075241,
-0.017580755054950714,
-0.327769011259079,
-0.14392772316932678,
0.18106578290462494,
0.2856895327568054,
0.1181081235408783,
0.29695767164230347,
-0.18189162015914917,
0.14762435853481293,
-0.28223517537117004,
-0.3307647109031677,
0.22424738109111786,
-0.2791377902030945,
0.040908075869083405,
-0.19014915823936462,
0.03445980325341225,
-0.05750492587685585,
-0.3769896328449249,
-0.14642395079135895,
0.06300773471593857,
-0.11375365406274796,
-0.10054878890514374,
-0.42175212502479553,
-0.13026943802833557,
0.026524413377046585,
-0.4483318626880646,
-0.5188707709312439,
-0.4268540143966675,
0.4857849180698395,
-0.25412842631340027,
-0.06963248550891876,
0.004320947919040918,
0.02237706258893013,
0.19442176818847656,
-0.09268330782651901,
0.18667301535606384,
-0.27600324153900146,
-0.2769814133644104,
0.16211676597595215,
-0.2088312953710556,
-0.30527859926223755,
-0.21771489083766937,
0.04256816208362579,
0.08882200717926025,
-0.11373580247163773,
-0.41256704926490784,
0.1012406200170517,
-0.15009750425815582,
0.3791902959346771,
0.19745157659053802,
0.15988849103450775,
0.26224783062934875,
-0.13202857971191406,
-0.11258756369352341,
-0.10748207569122314,
-0.20575585961341858,
0.020997826009988785,
0.35345789790153503,
0.20229408144950867,
-0.005076033063232899,
0.10066160559654236,
0.07428133487701416,
0.6177754402160645,
0.3007920980453491,
-0.014930548146367073,
0.20794901251792908,
0.10917503386735916,
0.4607525169849396,
-0.26626619696617126,
-0.4412497282028198,
0.5007207989692688,
0.1288643181324005,
0.006646784488111734,
0.4606543481349945,
0.14169710874557495,
-0.3381607234477997,
-0.12342396378517151,
-0.4403936564922333,
-0.1857142150402069,
-0.2916959226131439,
0.30457258224487305,
0.1676306128501892,
0.20781482756137848,
-0.06558072566986084,
-0.23408052325248718,
-0.2560780346393585,
-0.14121267199516296,
0.21514080464839935,
0.19322045147418976,
-0.0028481916524469852,
0.009607137180864811,
-0.19962811470031738,
-0.0454900749027729,
-0.5053685903549194,
-0.07741514593362808,
0.17000813782215118,
0.2866503596305847,
-0.46978330612182617,
0.10195846110582352,
0.015118923969566822,
0.11037350445985794,
0.33224815130233765,
-0.29764991998672485,
-0.08149661123752594,
0.12115594744682312,
0.38477617502212524,
0.041549231857061386,
0.3428763449192047,
-0.1924239546060562,
-0.18005996942520142,
0.5656817555427551,
0.320042222738266,
-0.4232356548309326,
-0.047300178557634354,
0.28940966725349426,
0.3699549436569214,
-0.02235095389187336,
-0.10714886337518692,
0.11507059633731842,
-0.376330703496933,
-0.3671841621398926,
0.2561836838722229,
0.4782503545284271,
0.014907761476933956,
0.29876604676246643,
0.1430375874042511,
0.1744924932718277,
-0.07851804047822952,
0.43223536014556885,
-0.08490054309368134,
-0.07094370573759079,
0.4809970259666443,
0.1570383906364441,
0.04984462261199951,
-0.011931155808269978,
-0.04713941365480423,
0.31871217489242554,
-0.0961809977889061,
-0.36103036999702454,
0.01015835627913475,
-0.2590031027793884,
0.36011263728141785,
0.38178569078445435,
0.16502507030963898,
0.04773440212011337,
-0.06674911081790924,
0.09958517551422119,
-0.2544427514076233,
0.14955243468284607,
0.23855121433734894,
0.20916648209095,
-0.3974749445915222,
-0.23173467814922333,
0.3972524404525757,
0.018185492604970932,
-0.036224786192178726,
0.022150779142975807,
0.31180110573768616,
-0.21926826238632202,
0.2298458069562912,
-0.19932496547698975,
1.299212098121643,
0.16325075924396515,
0.09036492556333542,
0.21979698538780212,
-0.21111106872558594,
0.1376827508211136,
-0.3781128525733948,
-0.176121786236763,
0.27716562151908875,
0.20058917999267578,
0.00011461917165433988,
0.2628123462200165,
-0.0071458700112998486,
0.1968728005886078,
-0.43090522289276123,
0.2430017739534378,
0.0824820026755333,
0.11203070729970932,
0.0918792188167572,
0.5037052631378174,
-0.21236371994018555,
-0.4368632733821869,
-0.4565170109272003,
0.26593607664108276,
0.13286881148815155,
0.21410638093948364,
0.10907744616270065,
-0.2810111939907074,
0.12475559860467911,
-0.03852912411093712,
-0.6611132025718689,
0.018588820472359657,
-0.24859324097633362,
-0.09873748570680618,
-0.3500002920627594,
-0.17877325415611267,
0.3545897603034973,
0.20690971612930298,
0.39119261503219604,
0.006571296136826277,
-0.2554774284362793,
0.1793653517961502,
-0.05393020436167717,
-0.016611414030194283,
0.23459471762180328,
-0.11298610270023346,
0.3398459553718567,
-0.3037160634994507,
-0.3038266897201538,
0.11857934296131134,
0.1789139360189438,
-0.05877556651830673,
-0.42784664034843445,
-0.19759345054626465,
0.08248274028301239,
0.020846370607614517,
0.13243025541305542,
0.5716293454170227,
-0.07250707596540451,
-0.18655289709568024,
0.1920008659362793,
0.0037561231292784214,
-0.3681875467300415,
0.17158670723438263,
-0.12643596529960632,
-0.24244950711727142,
-0.24661920964717865,
0.22817084193229675,
0.21115736663341522,
-0.07086404412984848,
0.32063421607017517,
0.2639295756816864,
-0.21182240545749664,
-0.351190984249115,
-0.02774139866232872,
0.15814466774463654,
-0.6010571718215942,
-0.023775193840265274,
0.11530935764312744,
-0.14786499738693237,
-0.29182958602905273,
0.224910706281662,
0.1622532606124878,
-0.1301773488521576,
-0.02170722559094429,
0.0005142837180756032,
-0.3193923234939575,
0.040890783071517944,
0.19097675383090973,
0.12800002098083496,
-0.09403064101934433,
0.26172730326652527,
0.08424099534749985,
-0.10707955062389374,
-0.42646628618240356,
0.10155531018972397,
-0.09285987168550491,
0.15036173164844513,
0.3520089387893677,
-0.12294694036245346,
0.16425016522407532,
-0.00846527237445116,
0.1471758782863617,
-0.04994457587599754,
-0.1253853142261505,
-0.2292289435863495,
-0.10272227972745895,
0.09125423431396484,
0.04680737853050232,
0.1537684202194214,
0.02538185380399227,
-0.1104474887251854,
-0.21515117585659027,
0.12173137068748474,
0.3245623707771301,
0.286136656999588,
0.0006524593918584287,
0.09007729589939117,
-0.016749752685427666,
-0.052209895104169846,
0.17076262831687927,
0.07091084122657776,
0.3654763996601105,
0.34591391682624817,
0.11996837705373764,
0.1675560623407364,
0.0461907833814621,
-0.1234661415219307,
-0.01786312833428383,
0.3209614157676697,
0.2223621904850006,
0.0574946328997612,
0.06834915280342102,
0.0039024902507662773,
0.1513947695493698,
0.49497276544570923,
0.05590278282761574,
-0.01938573829829693,
-0.11283080279827118,
-0.012218724004924297,
0.40422603487968445,
0.2655511796474457,
-0.21756868064403534,
0.157707080245018,
-0.1165616363286972,
-0.2681824266910553,
0.145345538854599,
0.13605384528636932,
0.02595800720155239,
0.049324192106723785,
0.21347235143184662,
-0.050025321543216705,
-0.11258839815855026,
0.11137836426496506,
0.03325273469090462,
0.15687872469425201,
0.17740188539028168,
-0.04045660048723221,
0.07922568917274475,
0.10816778242588043,
0.14492033421993256,
0.0022458985913544893,
-0.21281860768795013,
0.4793623983860016,
0.06011908873915672,
0.17907680571079254,
0.27768775820732117,
-0.057801276445388794,
0.04608415067195892,
0.20104627311229706,
0.1733364760875702,
0.15914447605609894,
-0.0010347062489017844,
0.4170065224170685,
0.010353753343224525,
-0.31269893050193787,
-0.13726966083049774,
0.2817865014076233,
-0.04075270891189575,
-0.042251769453287125,
0.039839815348386765,
-0.22051627933979034,
-0.2530547082424164,
0.03426560014486313,
-0.072173111140728,
-0.3266577422618866,
-0.03588728606700897,
0.17900091409683228,
-0.1568438559770584,
-0.20474888384342194,
-0.1355966180562973,
-0.17444388568401337,
0.1936502307653427,
-0.18436288833618164,
0.41018998622894287,
0.19324122369289398,
-0.09744041413068771,
0.16638219356536865,
0.5504932403564453,
0.5049689412117004,
-0.028465401381254196,
-0.11324107646942139,
0.2732325792312622,
-0.07761528342962265,
-0.07311491668224335,
-0.050764285027980804,
0.4047098457813263,
0.01044265367090702,
0.11425434052944183,
0.20260779559612274,
0.21173837780952454,
-0.19361156225204468,
-0.19274482131004333,
0.12687894701957703,
-0.13385933637619019,
-0.23485097289085388,
0.17271485924720764,
-0.18696390092372894,
0.09055141359567642,
-0.5943129658699036,
-0.13082876801490784,
-0.5543193817138672,
0.12384451180696487,
0.40935543179512024,
-0.30347397923469543,
0.10661840438842773,
-0.19987615942955017,
0.1063452884554863,
-0.19017142057418823,
0.36640191078186035,
0.311494380235672,
0.049018580466508865,
-0.1517062932252884,
-0.16765710711479187,
-0.45842602849006653,
-0.1184765100479126,
0.06615226715803146,
0.13424767553806305,
-0.36919182538986206,
0.10727179050445557,
0.3487350344657898,
0.35701823234558105,
-0.1373612880706787,
-0.13993582129478455,
-0.4183523952960968,
0.08044305443763733,
-0.3068990707397461,
0.19139109551906586,
0.012566836550831795,
0.5848875641822815,
0.17087990045547485,
-0.14090673625469208,
-0.16986578702926636,
0.27866697311401367,
0.06360164284706116,
-0.1539645791053772,
0.09591098874807358,
-0.3254547417163849,
-0.30922847986221313,
0.10154606401920319,
0.0018899069400504231,
0.3967322111129761,
-0.2579965889453888,
-0.12280343472957611,
-0.16811853647232056,
-0.1251891851425171,
-0.1553906500339508,
0.0849934071302414,
-0.013785231858491898,
0.28102830052375793,
-0.22724878787994385,
0.21922928094863892,
-0.01450463104993105,
-0.11480274051427841,
0.0029683823231607676,
0.03718629106879234,
-0.24829375743865967,
0.11146239936351776,
-0.11980144679546356,
0.004251442849636078,
-0.10657452791929245,
0.30878353118896484,
-0.03393177688121796,
-0.05537604168057442,
-0.24795491993427277,
-0.23580284416675568,
0.45888885855674744,
-0.11825079470872879,
-0.2737710475921631,
-0.020878775045275688,
0.3357265293598175,
0.16701197624206543,
-0.1263706386089325,
-0.7813281416893005,
0.2783121168613434,
0.2228352576494217,
0.21469828486442566,
-0.009278066456317902,
0.24614962935447693,
-0.009981870651245117,
-0.11097827553749084,
-0.12768620252609253,
0.0075315614230930805,
-0.0001097853819373995,
-0.2153111845254898,
0.2524287700653076,
-0.2783288061618805
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Sounds good!
Order of magnitude is storage costs ~$20 per TB per month (not including bandwidth).
Happy to provide this to the community as I feel this is an important dataset. Let us know what the authors want to do!
| ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 40 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Sounds good!
Order of magnitude is storage costs ~$20 per TB per month (not including bandwidth).
Happy to provide this to the community as I feel this is an important dataset. Let us know what the authors want to do!
| [
-0.26745620369911194,
0.3468383252620697,
-0.11506323516368866,
0.07435581833124161,
-0.10949254035949707,
0.028010863810777664,
0.0628126934170723,
0.20077265799045563,
-0.30660879611968994,
0.21898315846920013,
-0.2691018879413605,
-0.2065333127975464,
-0.18998733162879944,
0.13933338224887848,
0.17807336151599884,
-0.15057088434696198,
0.19186925888061523,
0.0074416170828044415,
-0.28749361634254456,
-0.2704443335533142,
-0.086042620241642,
-0.03860580176115036,
-0.13796137273311615,
-0.2685127258300781,
-0.22993072867393494,
-0.09461216628551483,
-0.3455687165260315,
-0.286912202835083,
-0.32323193550109863,
-0.19623692333698273,
-0.05565044283866882,
0.1350371241569519,
0.12405325472354889,
0.4940180480480194,
-0.00010455669689690694,
-0.2592288553714752,
0.12507152557373047,
-0.2645714282989502,
-0.3532477617263794,
-0.03809542953968048,
-0.19961653649806976,
-0.17570684850215912,
-0.6599071025848389,
0.030460268259048462,
-0.09560218453407288,
-0.2508483827114105,
0.0672222301363945,
-0.02633020468056202,
0.12660066783428192,
0.5544309020042419,
0.21401502192020416,
-0.013065812177956104,
0.1716800034046173,
-0.13714231550693512,
0.28714072704315186,
0.07588318735361099,
-0.20845867693424225,
0.07722695916891098,
0.3049245774745941,
0.1136060580611229,
0.03169262781739235,
0.4821647107601166,
-0.007535656914114952,
-0.2882494628429413,
-0.031844597309827805,
-0.37903591990470886,
-0.17721882462501526,
-0.4207233190536499,
0.10508248209953308,
0.3116883635520935,
0.6529281735420227,
-0.20263566076755524,
-0.1981210559606552,
-0.09611517935991287,
0.26682308316230774,
-0.1598120778799057,
-0.04989730566740036,
0.17370982468128204,
-0.12413278967142105,
0.3310909569263458,
0.13926714658737183,
-0.24838562309741974,
-0.24729293584823608,
0.30751970410346985,
0.05446512624621391,
0.3040253520011902,
-0.08623115718364716,
-0.09898822009563446,
0.08838123083114624,
-0.27422526478767395,
-0.27668771147727966,
-0.06266295164823532,
0.007281988859176636,
0.10950952768325806,
-0.1418617218732834,
-0.370109498500824,
0.21697743237018585,
-0.13201801478862762,
0.07934752106666565,
-0.36745017766952515,
-0.1592278778553009,
-0.13633936643600464,
-0.08307939767837524,
0.07130300998687744,
-0.018354540690779686,
0.35843634605407715,
-0.08028057217597961,
-0.07807717472314835,
0.10047206282615662,
-0.27375802397727966,
0.046574171632528305,
0.12799417972564697,
-0.07597194612026215,
0.3356284201145172,
-0.3972548842430115,
0.0821799710392952,
-0.08616146445274353,
-0.16653387248516083,
-0.24630896747112274,
0.1953471153974533,
-0.0466940812766552,
0.09150337427854538,
-0.0893515795469284,
0.31729283928871155,
0.04417286813259125,
0.3904412090778351,
-0.08309594541788101,
0.336887925863266,
0.05179176852107048,
-0.1928996592760086,
-0.06038980185985565,
0.22416985034942627,
-0.20172899961471558,
0.25463783740997314,
0.23245103657245636,
0.45219674706459045,
0.04944339022040367,
0.018300294876098633,
0.20407623052597046,
0.06864238530397415,
-0.08888927847146988,
-0.04917207732796669,
0.27163878083229065,
0.02595791220664978,
-0.0311120618134737,
-0.004762842785567045,
-0.2496473342180252,
-0.1610572338104248,
-0.20354722440242767,
-0.010768801905214787,
0.14201484620571136,
-0.11017443984746933,
-0.29799383878707886,
0.2533712387084961,
-0.071698859333992,
-0.267749547958374,
-0.2793785333633423,
0.7518097758293152,
-0.1782980114221573,
-0.11155674606561661,
0.06970497220754623,
0.17381100356578827,
-0.46041905879974365,
0.04593953490257263,
-0.13681137561798096,
0.372390478849411,
-0.23632150888442993,
-0.039901003241539,
0.09808564186096191,
0.2054738998413086,
0.04437343403697014,
0.20607756078243256,
-0.08105875551700592,
0.26221922039985657,
0.05490950122475624,
0.31789830327033997,
0.04426954686641693,
-0.40653789043426514,
-0.4463207721710205,
0.15850478410720825,
-0.17605839669704437,
-0.18460799753665924,
0.2989751696586609,
-0.000152128966874443,
0.6347367763519287,
-0.33938756585121155,
-0.013722126372158527,
0.3644087612628937,
-0.06311207264661789,
0.07184541970491409,
-0.2582838535308838,
-0.47862541675567627,
0.19882071018218994,
0.1503828912973404,
0.041200388222932816,
-0.057538025081157684,
0.06441941857337952,
0.3694818317890167,
0.21831665933132172,
-0.32776114344596863,
0.24049070477485657,
0.2785544693470001,
0.06227368861436844,
-0.1536896675825119,
-0.04515602067112923,
-0.16933326423168182,
-0.1587284952402115,
-0.08306088298559189,
0.17816293239593506,
0.46127909421920776,
0.11146208643913269,
-0.20929186046123505,
-0.007270835805684328,
-0.21706731617450714,
-0.11831084638834,
-0.12574124336242676,
0.25823941826820374,
0.25705668330192566,
0.11289530247449875,
0.11889666318893433,
-0.12457209080457687,
0.19129547476768494,
-0.27648869156837463,
-0.24797958135604858,
0.004834884777665138,
0.23405517637729645,
0.055653683841228485,
-0.29282400012016296,
0.26934900879859924,
0.41564813256263733,
0.12356933951377869,
0.007520325947552919,
-0.03546848148107529,
0.12156125158071518,
-0.20713946223258972,
0.2657056748867035,
0.17018702626228333,
0.3067456781864166,
0.23183311522006989,
-0.4714108109474182,
0.30652204155921936,
0.34071385860443115,
0.17274734377861023,
-0.2098977267742157,
-0.2183401733636856,
0.1196061372756958,
0.3287128508090973,
0.05227009952068329,
0.05051190406084061,
-0.0918181836605072,
0.29114389419555664,
0.09294494241476059,
-0.11881227791309357,
-0.12938715517520905,
0.1732153445482254,
0.27098530530929565,
-0.09853934496641159,
0.1335851550102234,
-0.26801449060440063,
0.20480027794837952,
0.5615864992141724,
-0.13041141629219055,
0.30697304010391235,
0.19905121624469757,
-0.0527813695371151,
-0.2780837416648865,
0.12042492628097534,
-0.19624392688274384,
0.29163721203804016,
0.28101569414138794,
0.22564207017421722,
0.01647811569273472,
0.2985714077949524,
-0.1521056592464447,
0.1900840699672699,
-0.05073576793074608,
-0.25168851017951965,
0.16039177775382996,
0.2035173922777176,
-0.10734891891479492,
-0.32170775532722473,
0.04682223126292229,
0.0054195234552025795,
0.1432110071182251,
0.03972204774618149,
-0.2647111415863037,
0.11322879791259766,
-0.2363811582326889,
-0.16198556125164032,
0.03706591576337814,
-0.15967582166194916,
-0.003251926973462105,
0.3915064334869385,
0.048502929508686066,
-0.20694175362586975,
0.15350127220153809,
0.21651646494865417,
0.3693401515483856,
-0.3941744267940521,
-0.08281482011079788,
0.009604638442397118,
-0.3672119081020355,
-0.17861390113830566,
0.18657398223876953,
0.19845014810562134,
0.16283999383449554,
0.27977433800697327,
-0.12823554873466492,
0.1851777732372284,
-0.2126666158437729,
-0.3121670186519623,
0.15509960055351257,
-0.2662826180458069,
0.05243883281946182,
-0.2734869718551636,
0.018325576558709145,
-0.05668928474187851,
-0.3820497989654541,
-0.26533713936805725,
0.03158324211835861,
0.026381323114037514,
0.0323772206902504,
-0.3927340507507324,
-0.13357748091220856,
0.020835276693105698,
-0.38911211490631104,
-0.5565213561058044,
-0.44716235995292664,
0.38652050495147705,
-0.25173163414001465,
-0.009263670071959496,
-0.0017910574097186327,
0.009908872656524181,
0.1746542602777481,
-0.07993568480014801,
0.20393511652946472,
-0.2852185368537903,
-0.23104165494441986,
0.15995252132415771,
-0.2169169932603836,
-0.3349027931690216,
-0.15407627820968628,
0.0391128733754158,
0.06207846850156784,
-0.1150846928358078,
-0.4363951086997986,
0.17836786806583405,
-0.09870344400405884,
0.33345118165016174,
0.16526110470294952,
0.010132933035492897,
0.29762277007102966,
-0.10610751062631607,
-0.1565745770931244,
-0.1825391948223114,
-0.16879072785377502,
-0.04810855910181999,
0.4235720932483673,
0.12049932032823563,
-0.013476727530360222,
-0.038083452731370926,
0.12233278900384903,
0.5573821067810059,
0.20542414486408234,
0.027466408908367157,
0.2063637524843216,
0.14982612431049347,
0.4568348824977875,
-0.2330973744392395,
-0.39748919010162354,
0.5278068780899048,
0.13687847554683685,
-0.07438842207193375,
0.5241378545761108,
0.07323457300662994,
-0.5568886995315552,
-0.10711745172739029,
-0.3339172601699829,
-0.08183587342500687,
-0.2224314659833908,
0.3396264314651489,
0.09924584627151489,
0.1561366617679596,
0.020661326125264168,
-0.1405639797449112,
-0.2554541826248169,
-0.2717418372631073,
0.18959005177021027,
0.0959593653678894,
-0.0478782020509243,
0.0007001509657129645,
-0.16022655367851257,
-0.06201837584376335,
-0.3980845808982849,
-0.10726986825466156,
0.15695776045322418,
0.24646539986133575,
-0.5303565263748169,
0.08707296848297119,
0.004621094558387995,
0.17633819580078125,
0.1798844188451767,
-0.3207392990589142,
-0.08123519271612167,
0.23424482345581055,
0.5497137904167175,
-0.018840426579117775,
0.18530713021755219,
-0.2950848340988159,
-0.3423019349575043,
0.5709081292152405,
0.308667927980423,
-0.18302617967128754,
0.03391091525554657,
0.16770164668560028,
0.4645706117153168,
-0.04900495707988739,
-0.045713577419519424,
0.13972903788089752,
-0.3151710033416748,
-0.312052845954895,
0.308937132358551,
0.4163503348827362,
-0.014675598591566086,
0.26813626289367676,
0.15160082280635834,
0.18201817572116852,
-0.008261822164058685,
0.4942665696144104,
-0.07715127617120743,
-0.10442561656236649,
0.4753468334674835,
0.09180549532175064,
-0.03779997676610947,
-0.11172564327716827,
-0.08473891764879227,
0.15284861624240875,
-0.061277344822883606,
-0.20442508161067963,
0.0375259704887867,
-0.3595806658267975,
0.35386011004447937,
0.42100605368614197,
0.12466683983802795,
0.01186932623386383,
-0.1096944808959961,
0.1038222685456276,
-0.30496862530708313,
0.17419500648975372,
0.26453259587287903,
0.10566580295562744,
-0.3500523567199707,
-0.234619140625,
0.37283971905708313,
0.060627203434705734,
-0.12133845686912537,
0.09690114855766296,
0.16829778254032135,
-0.21650536358356476,
0.3552688956260681,
-0.13982675969600677,
1.3028794527053833,
0.2360524982213974,
0.15263019502162933,
0.19171904027462006,
-0.23249581456184387,
0.07360143959522247,
-0.37255221605300903,
-0.15488186478614807,
0.3520878851413727,
0.17677652835845947,
-0.024960357695817947,
0.22058333456516266,
-0.04685331881046295,
0.20854000747203827,
-0.571134626865387,
0.2264649122953415,
-0.009279422461986542,
0.1269485503435135,
0.12255586683750153,
0.47478702664375305,
-0.2686777412891388,
-0.4689060151576996,
-0.26841309666633606,
0.29126667976379395,
0.13500407338142395,
0.04003186151385307,
0.15096460282802582,
-0.2544364035129547,
0.15122713148593903,
0.06269590556621552,
-0.7009257078170776,
0.1211337074637413,
-0.11797969788312912,
-0.027463283389806747,
-0.5845332741737366,
-0.04701133444905281,
0.21154345571994781,
0.18146605789661407,
0.3393007218837738,
0.0038950236048549414,
-0.2309698611497879,
0.15327924489974976,
-0.0033097267150878906,
0.0046115173026919365,
0.22768396139144897,
-0.14183427393436432,
0.41548603773117065,
-0.31453439593315125,
-0.20732025802135468,
0.2223329097032547,
0.1595190018415451,
0.03235790506005287,
-0.45934435725212097,
-0.19397608935832977,
0.1733250916004181,
0.04966697469353676,
0.2545647621154785,
0.5486979484558105,
-0.11401843279600143,
-0.22716453671455383,
0.1972653865814209,
-0.0021886823233217,
-0.36674439907073975,
0.2793435752391815,
-0.2162351906299591,
-0.24337631464004517,
-0.20376156270503998,
0.20190908014774323,
0.2641421854496002,
-0.041403960436582565,
0.28546884655952454,
0.22601835429668427,
-0.2272040843963623,
-0.4182305634021759,
0.06258326768875122,
-0.006831942591816187,
-0.4837261140346527,
0.020874766632914543,
0.03440512344241142,
-0.2015656977891922,
-0.33092787861824036,
0.2069537341594696,
0.0655929371714592,
-0.12836194038391113,
-0.08479355275630951,
-0.04094976186752319,
-0.2633303105831146,
0.013385169208049774,
0.19925972819328308,
0.11334631592035294,
-0.10205130279064178,
0.17076994478702545,
0.007911920547485352,
-0.0708647146821022,
-0.4309117794036865,
0.129805788397789,
-0.04415346309542656,
0.1981441229581833,
0.20452381670475006,
-0.14167171716690063,
0.1859092116355896,
0.00714536290615797,
0.14056657254695892,
-0.09058280289173126,
-0.13172848522663116,
-0.23358900845050812,
-0.16614235937595367,
0.09327096492052078,
0.11773369461297989,
0.19455498456954956,
0.018449490889906883,
-0.18877361714839935,
-0.24214746057987213,
0.06825393438339233,
0.24406416714191437,
0.2484220564365387,
-0.07957211136817932,
0.12648363411426544,
-0.028905294835567474,
0.04782881960272789,
0.2515588700771332,
0.05763760581612587,
0.32433220744132996,
0.4395713210105896,
-0.056537337601184845,
0.16096659004688263,
0.08651469647884369,
-0.2113104909658432,
-0.025599878281354904,
0.34949779510498047,
0.05736175924539566,
0.000010665635272744112,
0.11253120750188828,
0.0271211676299572,
0.22476471960544586,
0.3390500843524933,
-0.06555098295211792,
0.04019560292363167,
-0.059009402990341187,
-0.0711367204785347,
0.3415957987308502,
0.2797172963619232,
-0.1062903180718422,
0.09150318056344986,
-0.18584692478179932,
-0.1766529381275177,
0.15573033690452576,
0.11838759481906891,
0.1122666746377945,
-0.11096275597810745,
0.20801666378974915,
-0.08155931532382965,
-0.1713954210281372,
0.07378028333187103,
0.03762445226311684,
0.1666731834411621,
0.1785571128129959,
-0.10198739916086197,
-0.0332605317234993,
0.10569103807210922,
0.13749945163726807,
0.0014792014844715595,
-0.16476692259311676,
0.4625001549720764,
0.18571847677230835,
0.10346750169992447,
0.19841977953910828,
-0.01247472781687975,
0.13374410569667816,
0.16427986323833466,
0.08601237088441849,
0.2504074275493622,
0.04659008979797363,
0.2660349905490875,
-0.0584481880068779,
-0.30783888697624207,
-0.11159808933734894,
0.21435916423797607,
0.049842625856399536,
0.01850762590765953,
-0.020373141393065453,
-0.19856393337249756,
-0.25635969638824463,
0.07050584256649017,
-0.0141694825142622,
-0.21234698593616486,
-0.060129132121801376,
0.2392934113740921,
-0.09220708161592484,
-0.10583610087633133,
-0.052646033465862274,
-0.16349464654922485,
0.2898862063884735,
-0.25934037566185,
0.36429068446159363,
0.1571875661611557,
-0.04093191400170326,
0.2152029275894165,
0.44096311926841736,
0.479742169380188,
-0.08141068369150162,
-0.20351094007492065,
0.3172043263912201,
-0.08816275745630264,
-0.12253350764513016,
-0.013027006760239601,
0.435364693403244,
0.015437731519341469,
0.1728733777999878,
0.1735209822654724,
0.21337296068668365,
-0.18363888561725616,
-0.1990479677915573,
0.1639767587184906,
-0.06995007395744324,
-0.13238126039505005,
0.13194358348846436,
-0.05585040524601936,
0.10011059045791626,
-0.5145981907844543,
-0.11353348195552826,
-0.5816863775253296,
0.1198294386267662,
0.40900683403015137,
-0.31903183460235596,
0.1662037968635559,
-0.12665995955467224,
0.11590024828910828,
-0.17480556666851044,
0.31872525811195374,
0.26756179332733154,
0.033846188336610794,
-0.07516632229089737,
-0.11098372936248779,
-0.2891765236854553,
-0.1746111512184143,
0.13183678686618805,
0.21511141955852509,
-0.3938133716583252,
0.13225851953029633,
0.3189953863620758,
0.389898419380188,
-0.16704490780830383,
-0.044437065720558167,
-0.5264092087745667,
0.11362633109092712,
-0.38799047470092773,
0.2637177109718323,
0.16134004294872284,
0.6632788181304932,
0.09197840839624405,
-0.1655248999595642,
-0.18932759761810303,
0.2305864840745926,
0.09485010802745819,
-0.19516512751579285,
-0.0920034721493721,
-0.28944918513298035,
-0.22290416061878204,
0.1501593142747879,
-0.051628150045871735,
0.30967584252357483,
-0.2479175329208374,
-0.11904579401016235,
-0.1820569783449173,
-0.03486984968185425,
-0.10492648184299469,
-0.08672089874744415,
0.012521966360509396,
0.2685782313346863,
-0.24934439361095428,
0.33192867040634155,
0.09710796922445297,
-0.05669688433408737,
-0.048425909131765366,
0.07739575952291489,
-0.25544214248657227,
0.09295881539583206,
-0.16707628965377808,
0.1511126458644867,
-0.18695411086082458,
0.23037414252758026,
-0.04324302077293396,
-0.08687309920787811,
-0.2548585534095764,
-0.19708488881587982,
0.44784337282180786,
-0.10705123096704483,
-0.3662915825843811,
-0.035873375833034515,
0.319202184677124,
0.1614575982093811,
0.04379793256521225,
-0.6474657654762268,
0.22081147134304047,
0.2300787717103958,
0.14810135960578918,
0.03563038259744644,
0.2190491259098053,
0.009154311381280422,
-0.08580531179904938,
-0.13266883790493011,
-0.038729581981897354,
0.010559258982539177,
-0.18244396150112152,
0.1066598892211914,
-0.31016111373901367
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Great! @skyprince999, do you think you could ping the authors here or link to this thread? I think it could be a cool idea to host the dataset on our side then | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 32 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Great! @skyprince999, do you think you could ping the authors here or link to this thread? I think it could be a cool idea to host the dataset on our side then | [
-0.26381513476371765,
0.25565075874328613,
-0.1020893082022667,
0.06742620468139648,
-0.11630119383335114,
0.004987317603081465,
0.2088761031627655,
0.13246676325798035,
-0.23804666101932526,
0.19588711857795715,
-0.2925174832344055,
-0.1947900950908661,
-0.12356529384851456,
0.1762092262506485,
0.2179546356201172,
-0.09659788012504578,
0.1338677853345871,
-0.048060931265354156,
-0.2836480140686035,
-0.30601292848587036,
-0.053871117532253265,
-0.060047607868909836,
-0.11377144604921341,
-0.18403878808021545,
-0.223112091422081,
-0.031440459191799164,
-0.31027713418006897,
-0.21159698069095612,
-0.2723541557788849,
-0.21861326694488525,
0.024947630241513252,
0.14330489933490753,
0.1645146608352661,
0.48072391748428345,
-0.00010310799552826211,
-0.11604273319244385,
0.19767093658447266,
-0.19728700816631317,
-0.2979801595211029,
-0.11328791826963425,
-0.2479344755411148,
-0.15204331278800964,
-0.6573243737220764,
0.012598084285855293,
-0.3099522590637207,
-0.2509469985961914,
0.026570817455649376,
0.022253111004829407,
0.11635426431894302,
0.5167065262794495,
0.24084272980690002,
0.05547298491001129,
0.16730737686157227,
-0.13491903245449066,
0.2340436428785324,
0.11276708543300629,
-0.20159940421581268,
0.10496082156896591,
0.30359774827957153,
0.12370458245277405,
0.0485423319041729,
0.43949559330940247,
-0.02615077793598175,
-0.271329402923584,
-0.058594781905412674,
-0.3038039207458496,
-0.2033456414937973,
-0.359701544046402,
0.033138662576675415,
0.3472296893596649,
0.6664749979972839,
-0.161084845662117,
-0.18603509664535522,
-0.15026205778121948,
0.21883536875247955,
-0.1186533197760582,
-0.05083559453487396,
0.08330638706684113,
-0.12094195187091827,
0.36799728870391846,
0.16170597076416016,
-0.30449730157852173,
-0.21775886416435242,
0.27289843559265137,
0.042705945670604706,
0.42577221989631653,
-0.062148358672857285,
-0.07888627797365189,
-0.05868915095925331,
-0.2083938717842102,
-0.21321511268615723,
-0.08974696695804596,
0.014605590142309666,
0.07520554959774017,
-0.16601386666297913,
-0.34939712285995483,
0.30360478162765503,
-0.15039199590682983,
0.16011999547481537,
-0.3179900348186493,
-0.16445890069007874,
-0.11521728336811066,
-0.17380787432193756,
0.02886863611638546,
0.07012094557285309,
0.32641473412513733,
-0.02323736436665058,
-0.043852269649505615,
0.1637263149023056,
-0.18920083343982697,
0.06261227279901505,
0.15448686480522156,
-0.032362889498472214,
0.23427143692970276,
-0.451301634311676,
0.22866955399513245,
0.027099624276161194,
-0.1980847865343094,
-0.23857764899730682,
0.12152127176523209,
-0.030024316161870956,
0.08164461702108383,
0.0075869569554924965,
0.2975359559059143,
0.04896917939186096,
0.3509751856327057,
-0.10109297931194305,
0.32719334959983826,
-0.0031222354155033827,
-0.21373885869979858,
-0.07116999477148056,
0.1336992084980011,
-0.23833216726779938,
0.17205792665481567,
0.2494344860315323,
0.42159155011177063,
0.05350925028324127,
0.08210387080907822,
0.32263362407684326,
0.07473490387201309,
-0.15552830696105957,
0.02607228420674801,
0.27221164107322693,
-0.03373415395617485,
0.04750335216522217,
0.0337504968047142,
-0.2039002925157547,
-0.16631753742694855,
-0.22464515268802643,
0.05925879254937172,
0.13139386475086212,
-0.11610198020935059,
-0.2872762382030487,
0.2791670262813568,
-0.12984797358512878,
-0.23529839515686035,
-0.27715370059013367,
0.7251248955726624,
-0.1624796837568283,
-0.07741545885801315,
0.113264299929142,
0.22749800980091095,
-0.4088669419288635,
0.05219145119190216,
-0.09453153610229492,
0.3656329810619354,
-0.2517017722129822,
-0.016954319551587105,
0.17095358669757843,
0.1352587640285492,
0.0225045308470726,
0.14823496341705322,
-0.08284296840429306,
0.31583184003829956,
-0.05817273259162903,
0.3497925400733948,
0.03925821930170059,
-0.3666364550590515,
-0.3150380849838257,
0.13170559704303741,
-0.23573271930217743,
-0.03502969071269035,
0.25653091073036194,
-0.13284467160701752,
0.6240291595458984,
-0.3125278353691101,
-0.012289680540561676,
0.4339908957481384,
0.006510554812848568,
0.13161766529083252,
-0.19828596711158752,
-0.32149094343185425,
0.23603734374046326,
0.18154023587703705,
-0.005643713288009167,
-0.0182659812271595,
0.044129207730293274,
0.27509409189224243,
0.2775231599807739,
-0.3302542269229889,
0.2896014153957367,
0.22148217260837555,
0.03549915924668312,
-0.13818787038326263,
0.0164784025400877,
-0.1379673331975937,
-0.15458647906780243,
-0.0750245526432991,
0.1970405876636505,
0.5770366787910461,
0.12242387235164642,
-0.24678049981594086,
-0.16966255009174347,
-0.19548827409744263,
-0.19232793152332306,
-0.17297734320163727,
0.27309906482696533,
0.28221774101257324,
0.056213442236185074,
0.13980863988399506,
-0.13649320602416992,
0.2650599181652069,
-0.3373708426952362,
-0.21615146100521088,
-0.044190213084220886,
0.24888934195041656,
0.0546998605132103,
-0.2353997826576233,
0.1652754545211792,
0.47162064909935,
0.1654154360294342,
-0.03177017718553543,
0.004644009750336409,
0.07431072741746902,
-0.273206502199173,
0.23474307358264923,
0.15412484109401703,
0.21907515823841095,
0.30900245904922485,
-0.5264610648155212,
0.2203456461429596,
0.2899043560028076,
0.09910354018211365,
-0.20109142363071442,
-0.07364063709974289,
0.17214806377887726,
0.2992253303527832,
0.1554921716451645,
0.00930868275463581,
-0.011654907837510109,
0.307735413312912,
0.03052704595029354,
-0.18020114302635193,
-0.06001004949212074,
0.13244622945785522,
0.2860772907733917,
-0.14370138943195343,
0.0011754595907405019,
-0.29452523589134216,
0.25303560495376587,
0.4543096125125885,
-0.17885471880435944,
0.2692892849445343,
0.16500766575336456,
-0.04552553966641426,
-0.139726459980011,
0.1442493349313736,
-0.2406741976737976,
0.2386837899684906,
0.303423672914505,
0.33869999647140503,
0.023740295320749283,
0.20882943272590637,
-0.0828208327293396,
0.19225843250751495,
-0.04724437743425369,
-0.30744805932044983,
0.12861056625843048,
0.18185484409332275,
-0.1868809163570404,
-0.3317627012729645,
-0.0036383650731295347,
-0.02418726496398449,
0.10927178710699081,
-0.1317533403635025,
-0.2908285856246948,
0.16346457600593567,
-0.2110125720500946,
-0.21896713972091675,
-0.06185096874833107,
-0.2294011414051056,
0.02623116411268711,
0.4298076033592224,
0.03831642493605614,
-0.21140077710151672,
0.20071035623550415,
0.23228949308395386,
0.3449687957763672,
-0.45110198855400085,
-0.032989539206027985,
-0.05738850310444832,
-0.3996436893939972,
-0.1822763979434967,
0.20011672377586365,
0.2146734744310379,
0.18154215812683105,
0.26034095883369446,
-0.11864805966615677,
0.14926591515541077,
-0.27108311653137207,
-0.3136158585548401,
0.18688812851905823,
-0.271903932094574,
0.12089893966913223,
-0.19015149772167206,
0.009240135550498962,
-0.020303228870034218,
-0.4290497601032257,
-0.20168817043304443,
0.0887615978717804,
-0.03042038530111313,
-0.08557505905628204,
-0.4141586422920227,
-0.08887147158384323,
-0.04153856635093689,
-0.4858825206756592,
-0.479618102312088,
-0.4333895742893219,
0.29886594414711,
-0.27107396721839905,
-0.024724097922444344,
-0.017353937029838562,
0.040207505226135254,
0.07020364701747894,
-0.020696628838777542,
0.1687847375869751,
-0.3169856667518616,
-0.2643290162086487,
0.1111539676785469,
-0.3181256353855133,
-0.29123401641845703,
-0.21739384531974792,
0.05071193724870682,
0.12305509299039841,
-0.1351744383573532,
-0.3304986357688904,
0.14052437245845795,
-0.05067868158221245,
0.35998353362083435,
0.17923058569431305,
0.09345626831054688,
0.23196204006671906,
-0.051955245435237885,
-0.14445942640304565,
-0.16842854022979736,
-0.14502401649951935,
0.025761352851986885,
0.3778434991836548,
0.16474421322345734,
0.0651211068034172,
-0.004789349157363176,
0.05896224081516266,
0.6301652193069458,
0.17608989775180817,
0.047284480184316635,
0.26317083835601807,
0.08107472211122513,
0.3796311020851135,
-0.21927283704280853,
-0.41166919469833374,
0.535342276096344,
0.11328727751970291,
-0.08979929983615875,
0.4373249411582947,
0.08514188975095749,
-0.4881730079650879,
-0.14432482421398163,
-0.3178867995738983,
-0.22332997620105743,
-0.25531768798828125,
0.2832994759082794,
0.08770966529846191,
0.16788354516029358,
0.01710895635187626,
-0.17644302546977997,
-0.26347675919532776,
-0.19804278016090393,
0.26782262325286865,
0.12960828840732574,
0.048440784215927124,
-0.0313362218439579,
-0.19269292056560516,
-0.035571739077568054,
-0.402143269777298,
-0.09528675675392151,
0.1271766871213913,
0.2549349069595337,
-0.48314619064331055,
0.036327049136161804,
0.06024821847677231,
0.14741136133670807,
0.32757410407066345,
-0.35933825373649597,
-0.07683713734149933,
0.1758434921503067,
0.5461904406547546,
0.061782099306583405,
0.20763224363327026,
-0.1776832938194275,
-0.3074546158313751,
0.5304548144340515,
0.30001920461654663,
-0.346390962600708,
0.05798516795039177,
0.15937963128089905,
0.32366782426834106,
-0.009709857404232025,
-0.13327080011367798,
0.13161416351795197,
-0.3605438470840454,
-0.31846344470977783,
0.29398423433303833,
0.5474275946617126,
-0.011618008837103844,
0.20718838274478912,
0.1299879550933838,
0.23189660906791687,
0.04470951855182648,
0.4415345788002014,
0.011290689930319786,
-0.10383157432079315,
0.47468164563179016,
0.06909647583961487,
0.05151703208684921,
-0.004530743695795536,
-0.17095796763896942,
0.26696062088012695,
-0.03387773036956787,
-0.32021015882492065,
0.015854593366384506,
-0.27540263533592224,
0.41067013144493103,
0.4015181064605713,
0.20560239255428314,
-0.007871180772781372,
-0.10765321552753448,
-0.00632933434098959,
-0.2898706793785095,
0.19494256377220154,
0.18902498483657837,
0.15428541600704193,
-0.34929895401000977,
-0.316161185503006,
0.37064576148986816,
-0.007075004745274782,
-0.1426127403974533,
0.12224932014942169,
0.2197236269712448,
-0.26606833934783936,
0.3476289212703705,
-0.18866565823554993,
1.295457363128662,
0.2701725661754608,
0.11891864985227585,
0.21701791882514954,
-0.24967192113399506,
0.07938963174819946,
-0.4509883522987366,
-0.13103725016117096,
0.2621338665485382,
0.24157872796058655,
-0.026086261495947838,
0.19373197853565216,
-0.13027434051036835,
0.24976882338523865,
-0.4515492916107178,
0.21200712025165558,
0.037554994225502014,
0.13023188710212708,
0.11486570537090302,
0.4553399682044983,
-0.15657566487789154,
-0.4293518662452698,
-0.34793969988822937,
0.28758445382118225,
0.07909427583217621,
0.12527543306350708,
0.10662327706813812,
-0.2575729489326477,
0.12084509432315826,
-0.031474608927965164,
-0.617052435874939,
0.11918371915817261,
-0.1857529580593109,
-0.13615794479846954,
-0.46337950229644775,
-0.17352953553199768,
0.30355674028396606,
0.1740546077489853,
0.4051640033721924,
0.00844232551753521,
-0.24363060295581818,
0.20137862861156464,
0.03218786418437958,
0.0925617516040802,
0.17751352488994598,
-0.1293594241142273,
0.38484734296798706,
-0.2787674367427826,
-0.3417515456676483,
0.24096530675888062,
0.16347818076610565,
-0.05912159010767937,
-0.4578176438808441,
-0.20844557881355286,
0.1368909478187561,
0.040602218359708786,
0.2614339590072632,
0.5941091179847717,
0.06737752258777618,
-0.2787318825721741,
0.20334318280220032,
-0.05380021408200264,
-0.40278360247612,
0.1477174162864685,
-0.14250747859477997,
-0.25638025999069214,
-0.19851665198802948,
0.18515366315841675,
0.23064757883548737,
-0.064566470682621,
0.2740061283111572,
0.3334342837333679,
-0.19196659326553345,
-0.3687167465686798,
-0.03614634647965431,
0.13797833025455475,
-0.5049201250076294,
-0.06748434901237488,
0.10387496650218964,
-0.19104495644569397,
-0.3406737148761749,
0.20936548709869385,
0.0821785256266594,
-0.038600191473960876,
-0.08555135875940323,
-0.03274190425872803,
-0.22908928990364075,
-0.02544470690190792,
0.12959636747837067,
0.1540958285331726,
-0.08907905220985413,
0.22741304337978363,
0.023222092539072037,
-0.16216525435447693,
-0.4529195725917816,
0.02617836371064186,
-0.07936890423297882,
0.16656096279621124,
0.2855006754398346,
-0.16010206937789917,
0.15233130753040314,
0.02812635339796543,
0.166366845369339,
-0.13318988680839539,
-0.09039822965860367,
-0.2454136610031128,
-0.1575043797492981,
0.09153401851654053,
0.1256607323884964,
0.1855221390724182,
-0.0839325413107872,
-0.1678895652294159,
-0.20963658392429352,
0.08964599668979645,
0.34443044662475586,
0.2475687861442566,
-0.03926342353224754,
0.14914058148860931,
-0.060604218393564224,
0.01101751159876585,
0.18458572030067444,
0.04113610461354256,
0.3104195296764374,
0.3498605787754059,
0.048457663506269455,
0.14586739242076874,
0.024168526753783226,
-0.17238564789295197,
0.025220191106200218,
0.32439640164375305,
0.16318060457706451,
0.12044169008731842,
0.04279111325740814,
0.09649353474378586,
0.1619206666946411,
0.38789302110671997,
0.04905785247683525,
-0.004477101378142834,
-0.09398606419563293,
-0.09076538681983948,
0.38715457916259766,
0.30039262771606445,
-0.15891078114509583,
0.1513034701347351,
-0.16658803820610046,
-0.2660658061504364,
0.18865133821964264,
0.11151354014873505,
0.12210793048143387,
-0.0199777539819479,
0.1961945742368698,
-0.057128846645355225,
-0.1632777899503708,
0.06694979220628738,
-0.0034571774303913116,
0.16575302183628082,
0.057228490710258484,
-0.05304949730634689,
0.04044805094599724,
0.030417155474424362,
0.06588222831487656,
0.07163219898939133,
-0.13898630440235138,
0.49800899624824524,
0.15499022603034973,
0.06173046678304672,
0.2575606405735016,
-0.010311623103916645,
0.13854476809501648,
0.04128360003232956,
0.15099501609802246,
0.18698464334011078,
0.05236804857850075,
0.31828567385673523,
-0.08225835859775543,
-0.2897353768348694,
-0.11896291375160217,
0.243565171957016,
0.029378587380051613,
0.024535544216632843,
-0.09469503164291382,
-0.20036450028419495,
-0.26214495301246643,
-0.06363454461097717,
-0.026088517159223557,
-0.22405853867530823,
-0.012469056993722916,
0.13751575350761414,
-0.17639252543449402,
-0.08286038786172867,
-0.16582940518856049,
-0.20997890830039978,
0.18943332135677338,
-0.19930556416511536,
0.33927884697914124,
0.1630559265613556,
-0.07616355270147324,
0.21806569397449493,
0.5704175233840942,
0.46189063787460327,
-0.03981933742761612,
-0.2486359030008316,
0.25524279475212097,
-0.0810580849647522,
-0.12699711322784424,
-0.03865933418273926,
0.46181175112724304,
-0.009413843974471092,
0.11877735704183578,
0.20675574243068695,
0.2340579777956009,
-0.2017280012369156,
-0.19156409800052643,
0.15244698524475098,
-0.14338335394859314,
-0.10961075872182846,
0.16936220228672028,
-0.0820125937461853,
0.09176569432020187,
-0.5450371503829956,
-0.2100185602903366,
-0.5755994319915771,
0.04187518358230591,
0.47606638073921204,
-0.27571436762809753,
0.1057838723063469,
-0.22612664103507996,
0.12408557534217834,
-0.15598390996456146,
0.3006066679954529,
0.29199469089508057,
0.05390274524688721,
-0.11427083611488342,
-0.09736132621765137,
-0.42136308550834656,
-0.06557468324899673,
0.1224702000617981,
0.1246526837348938,
-0.39549046754837036,
0.031145423650741577,
0.45048871636390686,
0.3158789277076721,
-0.1747771054506302,
-0.10543912649154663,
-0.4539693593978882,
0.14669443666934967,
-0.38676002621650696,
0.20354917645454407,
0.04927658662199974,
0.6177332401275635,
0.06775879114866257,
-0.10909482091665268,
-0.19677817821502686,
0.34459882974624634,
0.09746166318655014,
-0.12781110405921936,
-0.08028851449489594,
-0.1693013310432434,
-0.2848246395587921,
0.1839171200990677,
-0.015608154237270355,
0.40052467584609985,
-0.28934919834136963,
-0.10235779732465744,
-0.20124606788158417,
-0.1380588263273239,
-0.1710933893918991,
-0.022949356585741043,
-0.10174690186977386,
0.24473203718662262,
-0.1519683450460434,
0.2543821632862091,
0.008115696720778942,
-0.16546231508255005,
-0.006854219362139702,
0.10927890241146088,
-0.23975449800491333,
0.09361720085144043,
-0.17069609463214874,
0.02455550618469715,
-0.1309184581041336,
0.2695035934448242,
-0.00446285167708993,
-0.07164096087217331,
-0.2301650047302246,
-0.25156137347221375,
0.4586345851421356,
-0.13341011106967926,
-0.3858566880226135,
-0.03628344088792801,
0.35882553458213806,
0.056627899408340454,
0.02538720890879631,
-0.6963674426078796,
0.23846222460269928,
0.22749967873096466,
0.16369226574897766,
0.08623526245355606,
0.1958485245704651,
0.08442822843790054,
-0.016970615833997726,
-0.10648123919963837,
-0.018486568704247475,
0.040272828191518784,
-0.16922633349895477,
0.10031889379024506,
-0.29697689414024353
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Done. They replied back, and they want to have a call over a meet/ skype. Is that possible ?
Btw @patrickvonplaten you are looped in that email (_pls check you gmail account_) | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 32 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Done. They replied back, and they want to have a call over a meet/ skype. Is that possible ?
Btw @patrickvonplaten you are looped in that email (_pls check you gmail account_) | [
-0.2442641258239746,
0.07631390541791916,
-0.12693443894386292,
0.12922494113445282,
-0.060205936431884766,
-0.10816596448421478,
0.09540992230176926,
0.029259175062179565,
-0.19839420914649963,
0.22876231372356415,
-0.21634231507778168,
-0.30687740445137024,
-0.036102257668972015,
0.20483775436878204,
0.1446813941001892,
-0.12050341069698334,
-0.07638294249773026,
0.03521106392145157,
-0.25308123230934143,
-0.3930395543575287,
-0.07044276595115662,
0.010074064135551453,
-0.00257704290561378,
-0.14566023647785187,
-0.197494775056839,
-0.10069060325622559,
-0.4669634699821472,
0.004109260626137257,
-0.2524195611476898,
0.12154283374547958,
0.09294898808002472,
0.16690310835838318,
-0.061797644942998886,
0.22323159873485565,
-0.00010504856618354097,
-0.19276545941829681,
0.3581826090812683,
-0.1252589225769043,
-0.28432655334472656,
-0.13710547983646393,
-0.1715058833360672,
-0.16087190806865692,
-0.5996176600456238,
-0.05780726671218872,
-0.3517880439758301,
-0.05513053759932518,
-0.029753463342785835,
0.01723041944205761,
0.3423309624195099,
0.5917040705680847,
0.20084638893604279,
0.08227568119764328,
0.4183856248855591,
-0.1769322007894516,
0.11353061348199844,
0.12897512316703796,
-0.016101282089948654,
0.195362851023674,
0.07922882586717606,
0.06270729005336761,
0.41145259141921997,
0.17693740129470825,
-0.03876078128814697,
-0.3774368464946747,
-0.1423315554857254,
-0.20573897659778595,
-0.26385563611984253,
-0.4930152893066406,
0.13223491609096527,
0.2659473121166229,
0.6440941095352173,
0.013219214044511318,
-0.13940288126468658,
-0.02398519031703472,
0.25382065773010254,
-0.2253907322883606,
-0.010475214570760727,
-0.14470024406909943,
-0.26815128326416016,
0.20216399431228638,
0.04742716997861862,
-0.3013003170490265,
-0.1538134515285492,
0.4731573164463043,
0.022878319025039673,
0.18061092495918274,
-0.014997893944382668,
0.05533032491803169,
-0.05035014823079109,
-0.21775491535663605,
-0.31652384996414185,
0.015790022909641266,
-0.0045936317183077335,
0.17692498862743378,
-0.23437997698783875,
-0.43437790870666504,
0.3938581347465515,
-0.007243031170219183,
0.07167578488588333,
-0.16935889422893524,
-0.19282062351703644,
-0.05082840099930763,
-0.11169176548719406,
-0.07493147999048233,
0.24850283563137054,
0.33527085185050964,
0.17838148772716522,
-0.06560700386762619,
-0.011993578635156155,
-0.26475220918655396,
0.18809416890144348,
0.07784160226583481,
-0.07602731138467789,
0.1250346601009369,
-0.4210846424102783,
0.4101143181324005,
0.08163874596357346,
-0.1434597223997116,
-0.2587287724018097,
0.16535459458827972,
-0.18848393857479095,
0.17034320533275604,
-0.08824177086353302,
0.3126606345176697,
-0.08463060855865479,
0.18506139516830444,
0.022162392735481262,
0.17081129550933838,
-0.08715652674436569,
-0.1974155157804489,
-0.12892772257328033,
0.23709014058113098,
-0.24070177972316742,
0.16928164660930634,
0.0548066683113575,
0.4120903015136719,
-0.04618067294359207,
0.10595738142728806,
0.4214029014110565,
-0.027200890704989433,
-0.17010681331157684,
0.030168531462550163,
0.15266482532024384,
-0.00490209087729454,
0.11046293377876282,
0.10515911877155304,
-0.12406010925769806,
0.04275130480527878,
-0.12277443706989288,
0.04076492413878441,
0.06307774782180786,
0.013862167485058308,
-0.1744505614042282,
0.26804319024086,
-0.047499097883701324,
-0.19056794047355652,
-0.3329373896121979,
0.4064125120639801,
-0.20537468791007996,
0.005335809662938118,
0.2562304139137268,
0.13695399463176727,
-0.33206266164779663,
0.144187331199646,
-0.046115726232528687,
0.19192521274089813,
-0.2280556559562683,
0.0026740122120827436,
-0.08386535197496414,
0.13088178634643555,
0.20197434723377228,
0.15958812832832336,
-0.1489664912223816,
0.2493918091058731,
-0.13731221854686737,
0.35561975836753845,
0.09832517802715302,
-0.4499592185020447,
-0.3781096935272217,
0.031888317316770554,
-0.3757970929145813,
-0.02306889370083809,
0.07452647387981415,
-0.22590665519237518,
0.5838214159011841,
-0.18401525914669037,
0.07123573869466782,
0.3171502351760864,
-0.1127629280090332,
-0.050895653665065765,
-0.09992862492799759,
-0.32609981298446655,
0.13345003128051758,
0.08847954869270325,
-0.03406408056616783,
0.05603935569524765,
0.02986287511885166,
0.31265947222709656,
0.16481807827949524,
-0.2535800337791443,
0.06420887261629105,
0.3471507132053375,
0.13755078613758087,
-0.07331794500350952,
-0.046764399856328964,
-0.015037648379802704,
-0.18908151984214783,
-0.06012720614671707,
0.13090018928050995,
0.6019641160964966,
0.17817465960979462,
-0.3046553432941437,
-0.1507045328617096,
-0.17057357728481293,
-0.003508115652948618,
-0.13738253712654114,
0.2381710261106491,
0.1877823919057846,
0.15917861461639404,
0.02748243510723114,
0.05610363930463791,
0.24452286958694458,
-0.35817310214042664,
-0.3407772481441498,
-0.04497500881552696,
0.26066407561302185,
-0.004839899018406868,
-0.25919008255004883,
0.1548839956521988,
0.35638636350631714,
0.3486473262310028,
0.03769950196146965,
0.05718064680695534,
-0.06609977781772614,
-0.2662832736968994,
0.16544368863105774,
-0.001878674840554595,
0.09225573390722275,
0.1486012488603592,
-0.4431711435317993,
0.15912222862243652,
0.20658962428569794,
0.2204490303993225,
-0.31445688009262085,
-0.06703151017427444,
0.45346328616142273,
0.48910942673683167,
0.03627742454409599,
0.10738515108823776,
0.025402352213859558,
0.3179672956466675,
-0.04152166098356247,
-0.18600057065486908,
-0.0038359633181244135,
0.16255280375480652,
0.26361316442489624,
0.04100925847887993,
-0.0934467539191246,
-0.4189378023147583,
0.2829909324645996,
0.7185624241828918,
-0.1966499239206314,
0.2558170258998871,
0.2333909422159195,
0.031402409076690674,
-0.22711215913295746,
0.046625006943941116,
-0.4440741539001465,
0.2549782991409302,
0.27884846925735474,
0.26810428500175476,
0.1341446489095688,
0.17815947532653809,
0.04830474406480789,
0.1395658552646637,
-0.06607003509998322,
-0.2460414320230484,
0.11307615041732788,
0.08998701721429825,
-0.08760698139667511,
-0.2514941096305847,
0.08532726764678955,
-0.04503606632351875,
0.12532654404640198,
-0.2006135731935501,
-0.30338358879089355,
0.1786474585533142,
-0.1797260344028473,
-0.16301487386226654,
-0.1822068989276886,
-0.3148113489151001,
-0.05921541526913643,
0.1858021765947342,
0.043219536542892456,
-0.04975755140185356,
0.055833857506513596,
0.38852691650390625,
0.45854732394218445,
-0.18453876674175262,
0.06911838799715042,
-0.15973934531211853,
-0.2830004096031189,
-0.26477736234664917,
0.18322856724262238,
0.16877177357673645,
0.26084697246551514,
0.32313814759254456,
-0.10662563145160675,
0.08184974640607834,
-0.3442072570323944,
-0.30769792199134827,
0.23933765292167664,
-0.2616443336009979,
0.1837858259677887,
-0.0070955343544483185,
0.15236614644527435,
-0.019883403554558754,
-0.23663561046123505,
-0.15701498091220856,
0.20151934027671814,
-0.2649659216403961,
-0.09711667150259018,
-0.38708579540252686,
0.06354262679815292,
-0.05554288253188133,
-0.46657201647758484,
-0.556801974773407,
-0.28786012530326843,
0.45218580961227417,
-0.2267303168773651,
-0.0383327417075634,
0.027200529351830482,
0.08055901527404785,
0.1978020966053009,
-0.08090993016958237,
0.011396888643503189,
-0.467509001493454,
-0.24783536791801453,
0.022990558296442032,
-0.12719106674194336,
-0.3666253685951233,
-0.245218887925148,
0.03049486130475998,
0.17175720632076263,
-0.3337722420692444,
-0.31765216588974,
-0.07138948142528534,
-0.20553044974803925,
0.24886290729045868,
0.10332082211971283,
-0.12966105341911316,
0.33619681000709534,
-0.36227232217788696,
-0.2165347933769226,
-0.18753264844417572,
-0.09919039160013199,
0.1613570749759674,
0.3437243700027466,
0.19816988706588745,
0.11437759548425674,
0.27819839119911194,
-0.07409802079200745,
0.6019594669342041,
0.1301017850637436,
0.04680217057466507,
0.14445020258426666,
-0.02795235626399517,
0.2085118144750595,
-0.21768875420093536,
-0.5086157321929932,
0.4292479455471039,
0.11679412424564362,
-0.2174568921327591,
0.20876331627368927,
-0.15430119633674622,
-0.37727344036102295,
-0.13950446248054504,
-0.45918482542037964,
-0.074568971991539,
-0.291377454996109,
0.31912413239479065,
0.08438869565725327,
-0.09951694309711456,
0.006829042918980122,
-0.19419485330581665,
-0.21850337088108063,
-0.1206645593047142,
0.13029071688652039,
0.12676429748535156,
0.03625613451004028,
0.08843767642974854,
-0.3209337592124939,
-0.14581900835037231,
-0.4038727879524231,
0.017974719405174255,
0.18517625331878662,
0.4507628083229065,
-0.5764362215995789,
0.28847411274909973,
0.08597084134817123,
0.008828852325677872,
0.3867127299308777,
-0.21529653668403625,
0.0027770877350121737,
0.25854426622390747,
0.4470023810863495,
0.2073511779308319,
0.283202201128006,
-0.19604116678237915,
-0.2514168322086334,
0.4858676791191101,
0.3070962131023407,
-0.2200411558151245,
0.030125727877020836,
0.2143297642469406,
0.18483491241931915,
-0.13721945881843567,
0.02978547476232052,
0.0585818774998188,
-0.39150166511535645,
-0.3112422823905945,
0.3392796814441681,
0.5661071538925171,
-0.0368625670671463,
-0.01797979138791561,
0.029543612152338028,
0.21675565838813782,
0.005474110133945942,
0.4134860634803772,
-0.2228558510541916,
-0.0817754939198494,
0.3747667670249939,
-0.004029726609587669,
0.11484840512275696,
-0.01743260584771633,
-0.026049528270959854,
0.3623436391353607,
0.1521308720111847,
-0.2679072618484497,
0.06530559062957764,
-0.39426910877227783,
0.4741293489933014,
0.3924332559108734,
0.09457854181528091,
-0.03113483265042305,
-0.003803290193900466,
0.14063340425491333,
-0.2975142002105713,
0.2862846851348877,
0.32174092531204224,
0.2720930576324463,
-0.34057852625846863,
-0.3129264712333679,
0.3925608992576599,
0.025136655196547508,
0.035251371562480927,
0.225388303399086,
0.24077968299388885,
-0.19570747017860413,
-0.02172897383570671,
-0.09407468885183334,
1.3331979513168335,
0.44699612259864807,
0.15337784588336945,
0.14188362658023834,
-0.24851089715957642,
0.10710633546113968,
-0.23316234350204468,
-0.2041025161743164,
0.25810638070106506,
0.21542246639728546,
-0.09540502727031708,
0.22300875186920166,
-0.0015442189760506153,
0.31544265151023865,
-0.35483402013778687,
0.24008436501026154,
-0.210933119058609,
-0.09995272010564804,
0.1728614866733551,
0.4671242833137512,
-0.09792080521583557,
-0.20798465609550476,
-0.258856862783432,
0.2586875259876251,
0.09882781654596329,
0.22391048073768616,
0.16472752392292023,
-0.2662481367588043,
-0.04264213517308235,
-0.30189016461372375,
-0.6961416602134705,
0.10056910663843155,
-0.3184013068675995,
-0.34171855449676514,
-0.545469343662262,
-0.12995614111423492,
0.28267934918403625,
0.03617934510111809,
0.16273672878742218,
0.06529794633388519,
-0.280762642621994,
0.20302237570285797,
0.009891162626445293,
0.09957897663116455,
0.15260139107704163,
-0.14826206862926483,
0.4521447718143463,
-0.27731212973594666,
-0.3156798481941223,
0.25509870052337646,
0.00586666539311409,
-0.06232515349984169,
-0.5047739744186401,
-0.05135776475071907,
0.011871705763041973,
0.01623152382671833,
0.10437687486410141,
0.43192142248153687,
0.043241508305072784,
-0.20516620576381683,
0.19859783351421356,
-0.12141367048025131,
-0.25319716334342957,
0.07502452284097672,
-0.09757505357265472,
-0.27552080154418945,
-0.16468051075935364,
0.45041143894195557,
0.14989687502384186,
-0.22654014825820923,
0.48090070486068726,
0.3105871081352234,
-0.1643417328596115,
-0.3908766806125641,
-0.08368609845638275,
0.24942991137504578,
-0.5234824419021606,
0.07702421396970749,
-0.028225719928741455,
0.03691549226641655,
-0.33903732895851135,
0.2942005693912506,
-0.04097641631960869,
0.038659654557704926,
-0.0992506891489029,
-0.23836933076381683,
-0.19474966824054718,
-0.05977790430188179,
0.08219961822032928,
0.13659456372261047,
-0.0713142678141594,
0.3921562135219574,
0.13778625428676605,
-0.22780391573905945,
-0.4338136911392212,
-0.022294415161013603,
-0.22620122134685516,
0.2120441496372223,
0.4315141439437866,
-0.1325906217098236,
0.25580111145973206,
-0.04972798749804497,
0.14941734075546265,
-0.105142742395401,
0.027796920388936996,
-0.26231083273887634,
-0.04299096390604973,
0.08236146718263626,
0.11803027242422104,
0.1856117844581604,
0.13231271505355835,
-0.10524635761976242,
-0.11970780789852142,
0.24835991859436035,
0.2296338975429535,
0.1773596853017807,
0.06114853918552399,
0.04863400757312775,
-0.09895843267440796,
0.1509985625743866,
0.11235491186380386,
-0.13948750495910645,
0.3923625349998474,
0.41676777601242065,
-0.13481155037879944,
0.19316311180591583,
0.018141161650419235,
-0.07725074142217636,
0.08993709832429886,
0.1283000409603119,
0.22439225018024445,
0.05424033850431442,
-0.09957359731197357,
0.14472554624080658,
0.10097392648458481,
0.26637527346611023,
0.07747494429349899,
-0.02080562710762024,
-0.15611015260219574,
0.0022619622759521008,
0.2824700176715851,
0.2942679226398468,
-0.04855890944600105,
0.16140848398208618,
-0.19192112982273102,
-0.38251635432243347,
0.031091930344700813,
0.022492893040180206,
-0.04331454634666443,
0.12346900999546051,
0.19324028491973877,
-0.20461821556091309,
-0.15610280632972717,
0.052625104784965515,
0.05685625225305557,
0.19833023846149445,
-0.1778894066810608,
-0.061146657913923264,
0.2848474979400635,
0.049113139510154724,
-0.02541237883269787,
0.14815020561218262,
-0.15199144184589386,
0.26482945680618286,
0.10130566358566284,
0.21097494661808014,
0.20454199612140656,
-0.19110284745693207,
0.13170555233955383,
0.10005256533622742,
0.1552889347076416,
0.32952913641929626,
-0.0076278867200016975,
0.39781633019447327,
-0.04416168853640556,
-0.21464170515537262,
-0.036216504871845245,
0.3101043701171875,
-0.09886668622493744,
0.08223170787096024,
-0.050283126533031464,
-0.20623649656772614,
-0.4170130789279938,
0.011311298236250877,
-0.020957287400960922,
-0.13312532007694244,
-0.012766842730343342,
0.01117717381566763,
-0.2615371346473694,
0.03507661446928978,
-0.3658250570297241,
-0.2692306339740753,
-0.0033944491297006607,
-0.3910616934299469,
0.4116288125514984,
0.24469979107379913,
-0.10394399613142014,
0.17127394676208496,
0.47625333070755005,
0.46048951148986816,
0.013183549046516418,
-0.13290539383888245,
0.22549627721309662,
0.17440757155418396,
-0.16479748487472534,
0.05815925821661949,
0.3664778769016266,
0.05629819631576538,
0.04349951073527336,
0.05735999718308449,
0.2743002772331238,
-0.2606216073036194,
0.010690742172300816,
0.06695983558893204,
0.13824562728405,
-0.2532539665699005,
0.1898958832025528,
-0.10795840620994568,
0.24674543738365173,
-0.7149044275283813,
-0.07745859026908875,
-0.5943194031715393,
-0.03919949382543564,
0.4606374204158783,
-0.08980285376310349,
0.1058059111237526,
-0.35241398215293884,
0.13924524188041687,
-0.39433228969573975,
0.325502872467041,
0.24739643931388855,
0.2696201503276825,
-0.03998773917555809,
0.012463675811886787,
-0.17451530694961548,
-0.05069602280855179,
0.1536048948764801,
0.1097060814499855,
-0.3314901888370514,
-0.03740846738219261,
0.38653987646102905,
0.18272489309310913,
0.03906799480319023,
-0.1203208938241005,
-0.42150360345840454,
0.16723452508449554,
-0.31054720282554626,
0.2724180221557617,
0.0003341864503454417,
0.5711429715156555,
0.12390228360891342,
-0.1267716884613037,
-0.0959693118929863,
0.323210746049881,
0.11457085609436035,
-0.21182981133460999,
-0.221675306558609,
-0.0772077813744545,
-0.09159158170223236,
0.05294247344136238,
0.0604761503636837,
0.8049707412719727,
-0.28860366344451904,
-0.08352073282003403,
0.06893102079629898,
0.0784924328327179,
-0.14894640445709229,
-0.007467641495168209,
-0.07291357964277267,
0.20281462371349335,
0.03653588145971298,
0.30548208951950073,
-0.09905587136745453,
-0.23754499852657318,
-0.08398962765932083,
0.006491284351795912,
-0.2925959825515747,
0.010008273646235466,
-0.14158228039741516,
-0.06673874706029892,
-0.17465955018997192,
0.24185362458229065,
-0.012543007731437683,
-0.07497862726449966,
-0.2496630847454071,
-0.12446270883083344,
0.4570590555667877,
-0.0845227763056755,
-0.2663293182849884,
-0.09242376685142517,
0.32272079586982727,
-0.039157480001449585,
-0.0024179192259907722,
-0.5286852121353149,
0.15864524245262146,
0.23033268749713898,
0.0859345868229866,
0.17097309231758118,
0.20767538249492645,
0.23881636559963226,
0.12077881395816803,
-0.11165041476488113,
-0.010602690279483795,
0.2412821650505066,
0.025633102282881737,
0.16395659744739532,
-0.30270957946777344
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | @gegallego there were some concerns regarding dataset usage & attribution by a for-profit company, so couldn't take it forward. Also the download links were unstable.
But I guess if you want to test the fairseq benchmarks, you can connect with them directly for downloading the dataset. | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 46 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
@gegallego there were some concerns regarding dataset usage & attribution by a for-profit company, so couldn't take it forward. Also the download links were unstable.
But I guess if you want to test the fairseq benchmarks, you can connect with them directly for downloading the dataset. | [
-0.355178564786911,
0.2733173966407776,
-0.08489160239696503,
0.04397100210189819,
-0.21060748398303986,
-0.09972155839204788,
0.014361183159053326,
0.16643017530441284,
-0.333497017621994,
0.18587277829647064,
-0.25435999035835266,
-0.07739317417144775,
0.05462557449936867,
-0.11916165053844452,
0.1883630007505417,
-0.26745644211769104,
0.12726041674613953,
0.015944773331284523,
-0.4990532696247101,
-0.28875645995140076,
-0.002271823352202773,
0.08252871036529541,
-0.3534402549266815,
-0.065828837454319,
-0.22671030461788177,
-0.0015481632435694337,
-0.3274195194244385,
-0.14230628311634064,
-0.26022806763648987,
-0.24817827343940735,
-0.059322696179151535,
0.186507910490036,
0.07233159244060516,
0.5039704442024231,
-0.00010577376815490425,
-0.18892858922481537,
0.37329840660095215,
-0.2488802820444107,
-0.3008492887020111,
0.08204148709774017,
-0.26679757237434387,
0.07941790670156479,
-0.5366253852844238,
-0.08511094748973846,
-0.22786344587802887,
-0.28439193964004517,
0.02115718461573124,
-0.05453364923596382,
0.14953140914440155,
0.637439489364624,
0.22251687943935394,
0.2601226568222046,
0.08486263453960419,
-0.1991487443447113,
0.18560929596424103,
-0.16398383677005768,
-0.06907784193754196,
0.19053876399993896,
0.2750358283519745,
-0.021032650023698807,
-0.0819738507270813,
0.299850195646286,
0.10422179102897644,
-0.04456563666462898,
-0.23737730085849762,
-0.30531397461891174,
-0.1707397699356079,
-0.34541958570480347,
0.12469992786645889,
0.5373836755752563,
0.541961133480072,
-0.14564743638038635,
-0.3013558089733124,
-0.021301455795764923,
0.21596653759479523,
-0.013928170315921307,
-0.025854771956801414,
0.0006626354297623038,
-0.13791628181934357,
0.22468902170658112,
-0.0034159987699240446,
-0.07485658675432205,
-0.20431652665138245,
0.15446250140666962,
-0.06557009369134903,
0.4908929169178009,
-0.021509287878870964,
-0.1548566073179245,
0.18463219702243805,
-0.24811558425426483,
-0.2701604962348938,
-0.025791065767407417,
-0.22894254326820374,
0.044423773884773254,
-0.19478636980056763,
-0.30743664503097534,
0.21981072425842285,
-0.14595861732959747,
0.10539788752794266,
-0.5148686766624451,
-0.25203749537467957,
0.07679228484630585,
-0.029842039570212364,
0.038018371909856796,
0.028798257932066917,
0.43036413192749023,
0.08225373923778534,
0.013924148865044117,
0.014389152638614178,
-0.12868276238441467,
-0.024852987378835678,
0.2848428189754486,
0.008504072204232216,
0.12349031865596771,
-0.6589144468307495,
0.23969824612140656,
-0.19562813639640808,
-0.3423025906085968,
-0.39119216799736023,
0.10411281883716583,
0.10851925611495972,
0.012172797694802284,
-0.10719627887010574,
0.3425154387950897,
-0.03214617073535919,
0.11864174157381058,
-0.2888520658016205,
0.3779186010360718,
-0.22018083930015564,
-0.3948867917060852,
-0.06383813917636871,
0.22100289165973663,
-0.27298325300216675,
0.07725347578525543,
0.33877384662628174,
0.477176696062088,
0.18673934042453766,
-0.08890208601951599,
0.2831927537918091,
0.03269803524017334,
-0.04127611219882965,
-0.06439968943595886,
0.2550361752510071,
-0.061850134283304214,
0.09184025973081589,
0.010809093713760376,
-0.12704652547836304,
-0.2597828507423401,
-0.25918418169021606,
-0.006658037658780813,
0.12930622696876526,
-0.033812571316957474,
-0.1639394611120224,
0.23012930154800415,
-0.13514596223831177,
-0.26540207862854004,
-0.26420992612838745,
0.6950770020484924,
-0.2816905379295349,
-0.17592643201351166,
0.1762409210205078,
0.05130314454436302,
-0.42134740948677063,
0.2301773577928543,
-0.008359027095139027,
0.37261083722114563,
-0.38707053661346436,
-0.056972526013851166,
0.12884579598903656,
0.13566020131111145,
-0.02021695487201214,
0.16021984815597534,
-0.15454566478729248,
0.2842653691768646,
-0.07054491341114044,
0.3429219126701355,
0.15545940399169922,
-0.46639779210090637,
-0.42665985226631165,
0.1362530142068863,
-0.053778890520334244,
-0.014940268360078335,
0.1475270837545395,
-0.2671595811843872,
0.7280392646789551,
-0.20253877341747284,
-0.03575402498245239,
0.39766159653663635,
0.1310449242591858,
0.19789205491542816,
-0.23835362493991852,
-0.28949692845344543,
0.33423081040382385,
0.19568827748298645,
-0.02427103742957115,
-0.06914834678173065,
-0.021808063611388206,
0.08383279293775558,
0.15794019401073456,
-0.29658401012420654,
0.14826324582099915,
0.19800366461277008,
-0.016970869153738022,
-0.32432806491851807,
0.11543764173984528,
-0.11889923363924026,
0.01439796295017004,
0.08778836578130722,
-0.1610722839832306,
0.5759603381156921,
0.31113359332084656,
-0.14695137739181519,
-0.21399885416030884,
-0.23470231890678406,
-0.07711254060268402,
-0.3021525740623474,
0.22283364832401276,
0.18029776215553284,
0.1322677731513977,
0.2183845341205597,
-0.06274258345365524,
0.1829935759305954,
-0.17975176870822906,
-0.30597659945487976,
0.06323706358671188,
0.15463194251060486,
0.03358738496899605,
-0.26362964510917664,
0.2943398058414459,
0.28895220160484314,
-0.008817474357783794,
-0.017070071771740913,
-0.12835167348384857,
0.14942333102226257,
-0.18895916640758514,
0.30210113525390625,
0.35405781865119934,
0.08781024813652039,
0.25570574402809143,
-0.5296874046325684,
0.10476765781641006,
0.4869788885116577,
0.17433273792266846,
-0.08210957050323486,
-0.20450496673583984,
0.4014045000076294,
0.3025280833244324,
0.07748500257730484,
0.25972238183021545,
-0.17156557738780975,
0.27477800846099854,
0.011066075414419174,
-0.18124745786190033,
0.03983968496322632,
0.373065710067749,
0.25774821639060974,
-0.18588578701019287,
-0.004004377406090498,
-0.21104346215724945,
0.20287875831127167,
0.6933567523956299,
-0.14992143213748932,
0.4464183449745178,
0.23415474593639374,
-0.14736829698085785,
-0.2394639402627945,
0.11440607160329819,
-0.3307744562625885,
0.383800208568573,
0.225208580493927,
0.3287407457828522,
0.03171362355351448,
0.11547791957855225,
-0.017530245706439018,
0.20932136476039886,
-0.04898718744516373,
-0.440438449382782,
0.040412116795778275,
0.2045614868402481,
-0.276551216840744,
-0.2801453173160553,
-0.02691289596259594,
0.011517856270074844,
0.1130233034491539,
-0.1419905722141266,
-0.1876506358385086,
0.01644541509449482,
-0.043546002358198166,
-0.11730821430683136,
-0.028065674006938934,
-0.2799030542373657,
-0.012959985993802547,
0.49967288970947266,
0.03516646847128868,
-0.07766850292682648,
0.2945323884487152,
0.22815676033496857,
0.40966203808784485,
-0.2071637511253357,
-0.0615268349647522,
-0.138093963265419,
-0.4016678035259247,
-0.35573458671569824,
0.2032829225063324,
0.12438078224658966,
0.4340551495552063,
0.06779131293296814,
-0.17085658013820648,
0.2648131549358368,
-0.14784753322601318,
-0.16423623263835907,
0.26598501205444336,
-0.25367602705955505,
0.30711987614631653,
-0.3555362820625305,
-0.09926360845565796,
-0.2620576024055481,
-0.21195554733276367,
-0.1934891790151596,
-0.11728349328041077,
-0.019376663491129875,
0.009281352162361145,
-0.35799315571784973,
-0.24844829738140106,
0.0018926082411780953,
-0.4207037687301636,
-0.35747578740119934,
-0.3441027104854584,
0.2667473256587982,
-0.3142564296722412,
-0.04575420916080475,
-0.23315797746181488,
0.05380509793758392,
0.22835145890712738,
-0.11810024082660675,
0.1282990425825119,
-0.3086585998535156,
-0.3723422586917877,
0.23619677126407623,
-0.3731282651424408,
-0.43473872542381287,
-0.19016651809215546,
0.11284437030553818,
0.20090807974338531,
-0.1962299942970276,
-0.2799495458602905,
0.08984033763408661,
-0.07578738033771515,
0.2916795015335083,
0.19344550371170044,
0.07358206063508987,
0.25072890520095825,
-0.22089783847332,
-0.14608719944953918,
-0.07676775008440018,
-0.1419752538204193,
0.10741502046585083,
0.4329070746898651,
0.1741039901971817,
-0.16418494284152985,
-0.0780734196305275,
-0.03977753594517708,
0.7484599947929382,
0.18186935782432556,
-0.03613327071070671,
0.1550901234149933,
-0.11572711169719696,
0.2861981689929962,
-0.17949147522449493,
-0.20037062466144562,
0.4559268653392792,
0.07021382451057434,
0.07965044677257538,
0.5873459577560425,
-0.05965019017457962,
-0.4037901759147644,
-0.13146275281906128,
-0.06342130154371262,
-0.31091025471687317,
-0.2188236266374588,
0.24484044313430786,
0.15566445887088776,
0.12024538964033127,
0.09251219034194946,
0.006711941212415695,
-0.14991475641727448,
-0.2149374932050705,
0.3076750934123993,
0.0630064383149147,
0.004088639747351408,
-0.05397609621286392,
-0.18392130732536316,
-0.09869986772537231,
-0.23306074738502502,
0.04509056732058525,
0.12559497356414795,
0.4172133803367615,
-0.3388795256614685,
0.1059628576040268,
0.014138706959784031,
0.07126744091510773,
0.3088398277759552,
-0.2470693290233612,
0.006138327997177839,
0.26746866106987,
0.4904707074165344,
-0.0374627485871315,
0.12442181259393692,
-0.3506263196468353,
-0.27443674206733704,
0.5050275921821594,
0.044320303946733475,
-0.20603106915950775,
0.1372441053390503,
0.18444697558879852,
0.18018122017383575,
-0.0555899441242218,
-0.053287141025066376,
-0.17775675654411316,
-0.3515925109386444,
-0.16249443590641022,
0.43720677495002747,
0.2988066077232361,
-0.0007251938804984093,
-0.06718308478593826,
0.24529217183589935,
0.11700373888015747,
-0.08119796216487885,
0.3922603726387024,
0.1679968237876892,
-0.02937360294163227,
0.3057391345500946,
0.08868139237165451,
0.028456825762987137,
-0.28491225838661194,
-0.17886267602443695,
0.17632095515727997,
0.22739547491073608,
-0.17640051245689392,
0.22874730825424194,
-0.24364058673381805,
0.2854171097278595,
0.26117321848869324,
0.11362376809120178,
-0.05138498917222023,
-0.09460420906543732,
-0.0017240801826119423,
-0.16714268922805786,
0.26432672142982483,
0.25623080134391785,
0.2736632525920868,
-0.2923053205013275,
-0.08539187908172607,
0.4494594931602478,
-0.008611634373664856,
-0.08778554201126099,
0.041632991284132004,
0.11388737708330154,
-0.2260623574256897,
0.263806015253067,
-0.18474429845809937,
1.143046498298645,
0.1728740632534027,
0.03636276721954346,
0.2057211846113205,
-0.1620514988899231,
0.14554205536842346,
-0.5122426748275757,
-0.02857717126607895,
0.2491752803325653,
-0.06427203863859177,
-0.060098640620708466,
0.1466672420501709,
0.14656732976436615,
0.15770171582698822,
-0.6139906048774719,
0.4243777096271515,
0.1543359011411667,
-0.1389872133731842,
0.24336017668247223,
0.537838339805603,
-0.049526397138834,
-0.31928062438964844,
-0.3945879340171814,
0.2510225772857666,
0.04036484658718109,
0.2110508233308792,
0.20649583637714386,
-0.12213851511478424,
-0.059170957654714584,
-0.01984713226556778,
-0.5190375447273254,
0.20812083780765533,
-0.043888647109270096,
-0.13149027526378632,
-0.19248798489570618,
-0.035057730972766876,
0.2932002544403076,
0.08340010046958923,
0.2890949845314026,
0.04649466276168823,
-0.2714976668357849,
0.3969091773033142,
-0.01668662019073963,
0.06819923222064972,
0.3073759973049164,
-0.11669103801250458,
0.23695947229862213,
-0.23754441738128662,
-0.3936285376548767,
0.43143773078918457,
0.12355868518352509,
-0.023586459457874298,
-0.40869101881980896,
-0.30949825048446655,
0.032517265528440475,
0.11469532549381256,
0.22702288627624512,
0.4223170578479767,
-0.037303194403648376,
-0.2104548066854477,
0.17700614035129547,
-0.11102571338415146,
-0.4937489628791809,
0.3757801353931427,
-0.09942733496427536,
-0.3258652687072754,
-0.17525549232959747,
0.3120812773704529,
0.04495923966169357,
-0.016084495931863785,
0.26875975728034973,
0.32699209451675415,
-0.05787400156259537,
-0.3581145405769348,
-0.18322670459747314,
0.15344223380088806,
-0.5673996806144714,
-0.0913340374827385,
-0.11732061207294464,
-0.1728059947490692,
-0.19165252149105072,
0.31146207451820374,
0.0914904922246933,
-0.04709507152438164,
-0.03898364305496216,
0.030808305367827415,
-0.17441348731517792,
-0.08221802860498428,
0.17608954012393951,
0.10849453508853912,
-0.12083954364061356,
0.10854349285364151,
0.04950635880231857,
-0.06346914917230606,
-0.40718236565589905,
0.017054783180356026,
-0.15130554139614105,
0.17561353743076324,
0.14964158833026886,
-0.15068110823631287,
0.10053900629281998,
0.14116539061069489,
0.13926179707050323,
0.001843725680373609,
-0.12659750878810883,
-0.24102850258350372,
-0.15317408740520477,
0.07932480424642563,
0.02332220785319805,
0.09617748111486435,
-0.16203732788562775,
-0.040535252541303635,
-0.19949127733707428,
0.02794371172785759,
0.1965477466583252,
-0.08158103376626968,
-0.1364138424396515,
0.1721741110086441,
0.043389152735471725,
-0.1003304198384285,
0.14937056601047516,
0.03969274461269379,
0.28799545764923096,
0.38411590456962585,
0.07710431516170502,
0.3171367347240448,
0.06957865506410599,
-0.1613859087228775,
-0.03549114987254143,
0.3563215136528015,
0.08119736611843109,
0.1574624925851822,
0.013486725278198719,
-0.0027525078039616346,
0.2572343051433563,
0.1577938050031662,
0.11148522049188614,
0.0853399857878685,
-0.11157704144716263,
-0.31100231409072876,
0.38512229919433594,
0.24498555064201355,
-0.16008919477462769,
0.05312217026948929,
-0.17238737642765045,
-0.14832168817520142,
0.2773466408252716,
0.013106286525726318,
-0.005473581608384848,
-0.012704627588391304,
0.417985737323761,
-0.006904075387865305,
-0.13112622499465942,
0.10084458440542221,
-0.06128648668527603,
-0.12407837063074112,
-0.004174083471298218,
-0.05300458148121834,
0.030239297077059746,
0.025292761623859406,
0.08653804659843445,
-0.02417709305882454,
-0.008701072074472904,
0.5746209621429443,
0.2038387954235077,
0.3148149847984314,
0.11402624100446701,
-0.025513475760817528,
0.14453068375587463,
0.18091601133346558,
0.2090105414390564,
0.35375621914863586,
0.08608442544937134,
0.14796817302703857,
-0.2432381808757782,
-0.31472206115722656,
-0.38566678762435913,
0.0855126827955246,
0.20593954622745514,
-0.12565217912197113,
0.12578685581684113,
-0.23867271840572357,
-0.2533561885356903,
0.06280385702848434,
-0.07040892541408539,
-0.013312321156263351,
-0.07975799590349197,
0.09355919808149338,
-0.08587857335805893,
-0.10892108827829361,
-0.2355789840221405,
-0.25241413712501526,
0.172162726521492,
-0.1859840601682663,
0.47692418098449707,
0.10654525458812714,
-0.007556122727692127,
0.16429392993450165,
0.6191946268081665,
0.2939890921115875,
-0.04604297876358032,
-0.4676014482975006,
0.1814696341753006,
-0.14888618886470795,
-0.01723475754261017,
0.1076631173491478,
0.46706125140190125,
0.12898629903793335,
-0.01367930881679058,
0.2001291662454605,
0.22691017389297485,
-0.19320514798164368,
-0.17446622252464294,
0.06690575927495956,
-0.1085856705904007,
-0.24204528331756592,
-0.023925675079226494,
-0.03046455793082714,
0.355922132730484,
-0.43217194080352783,
-0.23568463325500488,
-0.5966394543647766,
-0.03256116807460785,
0.2817837595939636,
-0.29851290583610535,
0.06423844397068024,
-0.13089317083358765,
0.11206892877817154,
-0.21247248351573944,
0.47386613488197327,
0.2863328456878662,
0.4016744792461395,
-0.1726589947938919,
-0.17637546360492706,
-0.3388220965862274,
0.0885566845536232,
0.06959381699562073,
0.1894708126783371,
-0.24205972254276276,
0.2347683310508728,
0.20825275778770447,
0.4279850721359253,
0.009279578924179077,
0.03890223056077957,
-0.49011436104774475,
0.18814824521541595,
-0.36551347374916077,
0.20483841001987457,
-0.18749655783176422,
0.49447333812713623,
0.00814320519566536,
-0.184575155377388,
-0.13464081287384033,
0.11675412952899933,
0.09167890250682831,
0.033401086926460266,
-0.17269529402256012,
0.037583086639642715,
-0.23082561790943146,
0.2265026569366455,
0.009993048384785652,
0.45468559861183167,
-0.10578416287899017,
-0.12657788395881653,
-0.19319123029708862,
-0.07315059751272202,
0.03168313950300217,
-0.12310861051082611,
-0.04005678743124008,
0.17662300169467926,
-0.016121458262205124,
0.2943892478942871,
0.008163769729435444,
0.01854158192873001,
0.17097268998622894,
0.07982764393091202,
-0.22548797726631165,
-0.011062807403504848,
-0.09638403356075287,
0.027143379673361778,
-0.10960033535957336,
0.23352685570716858,
0.05899711698293686,
0.1276865005493164,
-0.11615694314241409,
0.039712682366371155,
0.44055211544036865,
-0.31460314989089966,
-0.3092559278011322,
-0.1535414606332779,
0.35225367546081543,
0.05733900144696236,
-0.10253851860761642,
-0.5595284700393677,
0.18163414299488068,
0.3045869767665863,
0.18080705404281616,
0.14672692120075226,
0.12566113471984863,
0.07413139194250107,
0.08588884770870209,
-0.1564195603132248,
0.04402945935726166,
0.05840516462922096,
-0.0969722718000412,
0.1654687523841858,
-0.23972657322883606
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | Yes, that dataset is not easy to download... I had to copy it to my Google Drive and use `rsync` to be able to download it.
However, we could add the dataset with a manual download, right? | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 37 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Yes, that dataset is not easy to download... I had to copy it to my Google Drive and use `rsync` to be able to download it.
However, we could add the dataset with a manual download, right? | [
-0.3261702060699463,
0.2585773169994354,
-0.0921742394566536,
-0.033368173986673355,
-0.05543072521686554,
0.02017766423523426,
0.0042869108729064465,
0.12214869260787964,
-0.3325348496437073,
0.2870289981365204,
-0.24631133675575256,
-0.16635258495807648,
-0.08833853155374527,
0.043067049235105515,
0.1519545614719391,
-0.04609275236725807,
0.10058815032243729,
0.008411194197833538,
-0.28160062432289124,
-0.31707143783569336,
-0.09997681528329849,
0.0702599510550499,
-0.10389336943626404,
-0.1798480898141861,
-0.10231112688779831,
-0.11362051963806152,
-0.28798797726631165,
-0.12926167249679565,
-0.3628218173980713,
-0.16106204688549042,
0.08287791907787323,
0.21185915172100067,
0.10541841387748718,
0.33857691287994385,
-0.00010498319898033515,
-0.1688215434551239,
0.21882064640522003,
-0.210108682513237,
-0.46503549814224243,
-0.12277830392122269,
-0.2633398175239563,
-0.1900157481431961,
-0.5593051314353943,
-0.05893906205892563,
-0.13183744251728058,
-0.15389937162399292,
0.19063103199005127,
0.10638469457626343,
0.1001439169049263,
0.5843329429626465,
0.22896382212638855,
0.07180803269147873,
0.1717672049999237,
-0.22169826924800873,
0.30095013976097107,
0.1132301315665245,
-0.14456123113632202,
0.21216082572937012,
0.20203951001167297,
0.1368398517370224,
0.1879914402961731,
0.24985527992248535,
0.062300339341163635,
-0.15414084494113922,
-0.03129255399107933,
-0.26171812415122986,
-0.1831345558166504,
-0.46053653955459595,
0.10670149326324463,
0.42210158705711365,
0.6699702739715576,
-0.16043952107429504,
-0.22267429530620575,
-0.11127648502588272,
0.3161413073539734,
-0.13186784088611603,
-0.04156716540455818,
0.07622505724430084,
-0.18028175830841064,
0.242228701710701,
0.08786173909902573,
-0.3472369313240051,
-0.18163472414016724,
0.2786095142364502,
0.003074330510571599,
0.31511542201042175,
-0.09892416000366211,
-0.08513043075799942,
0.05905650928616524,
-0.1815016120672226,
-0.31608209013938904,
-0.07768719643354416,
0.02006719447672367,
0.16416825354099274,
-0.04844237491488457,
-0.2551894187927246,
0.26030269265174866,
-0.1156945452094078,
0.12743933498859406,
-0.3338727056980133,
-0.19082657992839813,
-0.11293651163578033,
-0.18095789849758148,
0.032701440155506134,
-0.0087534599006176,
0.3533170521259308,
-0.03891441226005554,
0.006752657704055309,
0.16031774878501892,
-0.25777462124824524,
0.1317540407180786,
0.09493076056241989,
-0.10609893500804901,
0.10619436204433441,
-0.4424651265144348,
0.2819642126560211,
0.017517006024718285,
-0.15212871134281158,
-0.36087360978126526,
0.0009046494960784912,
-0.09837120771408081,
0.09526440501213074,
-0.18402965366840363,
0.2711251974105835,
0.059411823749542236,
0.22063176333904266,
-0.029946083202958107,
0.3511989414691925,
-0.08161747455596924,
-0.16763433814048767,
-0.06350184977054596,
0.18211576342582703,
-0.1835428774356842,
0.14106404781341553,
0.2064751833677292,
0.4040094316005707,
0.13548614084720612,
-0.03828331455588341,
0.21919502317905426,
0.10655999183654785,
-0.2609095275402069,
-0.023015817627310753,
0.13150937855243683,
0.04755854234099388,
0.13053560256958008,
0.2011224329471588,
-0.2909490764141083,
-0.24011683464050293,
-0.31647130846977234,
0.03723837062716484,
0.11651100963354111,
-0.03248082101345062,
-0.17996928095817566,
0.26990315318107605,
-0.11493667215108871,
-0.28233689069747925,
-0.33006706833839417,
0.6548684239387512,
-0.1671612560749054,
-0.1585749089717865,
0.02694890834391117,
0.1318163126707077,
-0.40724754333496094,
0.0298856720328331,
-0.09194711595773697,
0.3723156154155731,
-0.3409883677959442,
-0.0958038866519928,
0.04077792912721634,
0.01293266098946333,
0.10609304904937744,
0.16490182280540466,
-0.04548570513725281,
0.37976035475730896,
-0.1272125095129013,
0.33401450514793396,
0.1738114356994629,
-0.2973580062389374,
-0.4280664026737213,
0.10873129963874817,
-0.1839878261089325,
0.05625671148300171,
0.2124159336090088,
-0.08880015462636948,
0.6740358471870422,
-0.2896541655063629,
-0.05302392318844795,
0.5153853893280029,
-0.007286510430276394,
0.0726592168211937,
-0.1864732801914215,
-0.3875894844532013,
0.2624821662902832,
0.11653951555490494,
0.13136044144630432,
0.10882823169231415,
0.18102554976940155,
0.3644091784954071,
0.3500252962112427,
-0.27079886198043823,
0.1428895890712738,
0.3335075378417969,
0.1223837211728096,
-0.15555061399936676,
0.012886793352663517,
-0.03796860948204994,
-0.259890615940094,
0.012490874156355858,
0.08379195630550385,
0.5217414498329163,
0.019242364913225174,
-0.2437840700149536,
-0.10163259506225586,
-0.2844206988811493,
-0.16746707260608673,
-0.09777253866195679,
0.23946478962898254,
0.30289575457572937,
0.15539686381816864,
0.037133023142814636,
0.034858446568250656,
0.2901745140552521,
-0.3526088297367096,
-0.2636922001838684,
-0.07625098526477814,
0.12942345440387726,
-0.016773371025919914,
-0.19084769487380981,
0.17620521783828735,
0.22715653479099274,
0.19903281331062317,
-0.07359716296195984,
-0.017036790028214455,
0.1629079133272171,
-0.23283804953098297,
0.3128562271595001,
0.046400077641010284,
0.15135064721107483,
0.31063592433929443,
-0.5115104913711548,
0.1572941541671753,
0.41619279980659485,
0.14678998291492462,
-0.27364370226860046,
-0.24583686888217926,
0.1721503734588623,
0.3308231830596924,
0.15574727952480316,
0.24337191879749298,
-0.01840650476515293,
0.49589696526527405,
0.10717617720365524,
-0.19740945100784302,
-0.05404375493526459,
0.14980368316173553,
0.3694208562374115,
-0.09561683982610703,
-0.054292358458042145,
-0.30670931935310364,
0.21389643847942352,
0.621229350566864,
-0.19692929089069366,
0.24066901206970215,
0.25204744935035706,
-0.07882116734981537,
-0.14635294675827026,
0.02909247763454914,
-0.1906289905309677,
0.2503052353858948,
0.3527507781982422,
0.3592059314250946,
0.10537824779748917,
0.1532028168439865,
-0.10187133401632309,
0.12130070477724075,
0.08636358380317688,
-0.2057517170906067,
0.1337575763463974,
0.1239679753780365,
-0.09414087235927582,
-0.41687729954719543,
0.019733579829335213,
0.04483497887849808,
0.17797967791557312,
-0.1667904108762741,
-0.3204415738582611,
0.11410423368215561,
-0.16008375585079193,
-0.17688152194023132,
0.0601247139275074,
-0.19969387352466583,
-0.1120593473315239,
0.33035504817962646,
0.09858617186546326,
-0.18965952098369598,
0.20491302013397217,
0.2834314703941345,
0.27778124809265137,
-0.4166874587535858,
-0.1525239795446396,
-0.01592843234539032,
-0.32039955258369446,
-0.2732067108154297,
0.18605750799179077,
0.23245324194431305,
0.2177063673734665,
0.2699488401412964,
-0.2892928719520569,
0.18739373981952667,
-0.3356780707836151,
-0.31984731554985046,
0.23178339004516602,
-0.24859675765037537,
0.06740700453519821,
-0.24116668105125427,
0.08072131872177124,
0.002706344472244382,
-0.355165958404541,
-0.2997346520423889,
-0.012559066526591778,
-0.10879925638437271,
-0.09835391491651535,
-0.49783146381378174,
-0.2145538181066513,
-0.08783862739801407,
-0.5328081250190735,
-0.5634717345237732,
-0.3825628161430359,
0.3526051938533783,
-0.14245645701885223,
-0.027619626373052597,
0.04331193491816521,
0.004082754720002413,
0.10982181131839752,
0.02933502197265625,
0.23571504652500153,
-0.28322136402130127,
-0.05614068731665611,
0.24338394403457642,
-0.2432820349931717,
-0.4001320004463196,
-0.10833795368671417,
0.053757764399051666,
0.05012008175253868,
-0.0360996276140213,
-0.33123981952667236,
0.20805113017559052,
-0.1621936857700348,
0.3929626941680908,
0.13195474445819855,
0.12935958802700043,
0.34792715311050415,
-0.18761923909187317,
-0.127312570810318,
-0.1407836675643921,
-0.11034523695707321,
0.07690402120351791,
0.43005499243736267,
0.2432563751935959,
-0.09913138300180435,
0.11578146368265152,
0.032439764589071274,
0.6805481314659119,
0.16297470033168793,
0.05031709745526314,
0.13356110453605652,
-0.06713614612817764,
0.4736748933792114,
-0.22701199352741241,
-0.2605067789554596,
0.4579937160015106,
0.04270932450890541,
-0.11451701819896698,
0.43647974729537964,
0.008746933192014694,
-0.4343087673187256,
-0.10886988788843155,
-0.19944919645786285,
-0.234345942735672,
-0.281628280878067,
0.24889257550239563,
0.12712326645851135,
0.09769976884126663,
0.20116478204727173,
-0.041190821677446365,
-0.1799497902393341,
-0.1331416815519333,
0.28955715894699097,
0.11789465695619583,
0.057545118033885956,
0.028898781165480614,
-0.15300068259239197,
-0.06469224393367767,
-0.5273181796073914,
-0.05315561220049858,
0.20051585137844086,
0.2830534875392914,
-0.43980467319488525,
0.014541340991854668,
-0.03561946377158165,
0.09019844979047775,
0.3260074853897095,
-0.2868438959121704,
-0.025601696223020554,
0.2564722001552582,
0.6237996816635132,
-0.03274870291352272,
0.09541015326976776,
-0.3140835165977478,
-0.31943127512931824,
0.682736873626709,
0.314884752035141,
-0.34089982509613037,
0.08245488256216049,
0.17013758420944214,
0.41300949454307556,
-0.07266052067279816,
-0.06954129785299301,
0.007024906575679779,
-0.5352044701576233,
-0.31323549151420593,
0.2133859097957611,
0.42889830470085144,
-0.013669833540916443,
0.10453984886407852,
0.1903574913740158,
0.16778811812400818,
0.006786187645047903,
0.3933689296245575,
-0.06707558035850525,
-0.026713760569691658,
0.5132442116737366,
0.0416400171816349,
0.0016658047679811716,
-0.06518341600894928,
-0.18731455504894257,
0.45694074034690857,
-0.015506602823734283,
-0.3477785289287567,
0.09078816324472427,
-0.3210061192512512,
0.27612265944480896,
0.4049687683582306,
0.13503381609916687,
-0.04840266704559326,
-0.08328027278184891,
0.06966669112443924,
-0.21098832786083221,
0.2506787180900574,
0.21781156957149506,
0.04175181686878204,
-0.3729914724826813,
-0.312932550907135,
0.414970338344574,
0.00866011157631874,
-0.13629765808582306,
0.10767147690057755,
0.20485220849514008,
-0.2556142210960388,
0.2249552458524704,
-0.2107977420091629,
1.2595274448394775,
0.2037072330713272,
0.0730992928147316,
0.265743613243103,
-0.3186555802822113,
0.1554662436246872,
-0.5350131988525391,
-0.09454399347305298,
0.32711493968963623,
0.1984901875257492,
-0.02248559333384037,
0.23172782361507416,
-0.06716357171535492,
0.20905686914920807,
-0.4089977741241455,
0.3646213412284851,
0.056059401482343674,
0.11152859777212143,
0.22942224144935608,
0.5157219171524048,
-0.182692289352417,
-0.34920790791511536,
-0.09843320399522781,
0.2707854211330414,
0.13937518000602722,
0.2220137119293213,
0.10908292233943939,
-0.26639845967292786,
0.20035046339035034,
-0.1368194967508316,
-0.6051576733589172,
0.2714416980743408,
-0.21389375627040863,
-0.05720781162381172,
-0.5069353580474854,
-0.12188974767923355,
0.22732049226760864,
0.13640280067920685,
0.3495372235774994,
0.03223872557282448,
-0.24903185665607452,
0.28390803933143616,
0.02426678128540516,
0.12548190355300903,
0.2574925422668457,
-0.058383598923683167,
0.3492226302623749,
-0.2727704346179962,
-0.19538164138793945,
0.19961436092853546,
-0.034093886613845825,
-0.05029699578881264,
-0.4092879593372345,
-0.29931581020355225,
0.02743028663098812,
0.21172505617141724,
0.14713698625564575,
0.6069583296775818,
-0.14619335532188416,
-0.26965779066085815,
0.18629410862922668,
-0.14871373772621155,
-0.34340256452560425,
0.23650723695755005,
-0.22078709304332733,
-0.33091065287590027,
-0.27009302377700806,
0.37044164538383484,
0.18460635840892792,
-0.018414154648780823,
0.37586504220962524,
0.20976270735263824,
-0.24239060282707214,
-0.3236144185066223,
-0.08372888714075089,
0.08622436225414276,
-0.5519274473190308,
-0.08096645772457123,
0.031101401895284653,
-0.011934985406696796,
-0.3298693299293518,
0.3230452239513397,
0.045469529926776886,
0.017841702327132225,
-0.12661099433898926,
-0.04719545692205429,
-0.19497868418693542,
-0.0875413715839386,
0.17221276462078094,
0.06280017644166946,
-0.0167922992259264,
0.19222477078437805,
0.08464213460683823,
-0.1631115972995758,
-0.43556785583496094,
-0.0034867103677242994,
-0.07851354777812958,
0.1691964864730835,
0.21990953385829926,
-0.028361398726701736,
0.23503513634204865,
-0.013018366880714893,
0.18014469742774963,
-0.02551312930881977,
-0.06446851044893265,
-0.22821125388145447,
-0.14379152655601501,
0.08786621689796448,
0.14385376870632172,
0.2226475179195404,
0.01580563746392727,
-0.130937859416008,
-0.23106111586093903,
0.12579981982707977,
0.3019747734069824,
0.26649564504623413,
-0.09473685920238495,
0.06705259531736374,
-0.1655740737915039,
0.07372303307056427,
0.162873774766922,
0.009417662397027016,
0.22011511027812958,
0.42627549171447754,
0.031113242730498314,
0.2439989298582077,
0.012867898680269718,
-0.0977618470788002,
-0.03770264983177185,
0.2497139871120453,
0.15822702646255493,
0.028849342837929726,
0.008228600956499577,
0.037466589361429214,
0.18663521111011505,
0.22590887546539307,
0.03516817465424538,
0.04538402706384659,
-0.10834964364767075,
-0.11056219786405563,
0.4241487383842468,
0.2845560610294342,
-0.24801068007946014,
0.15913540124893188,
-0.32669949531555176,
-0.2526807487010956,
0.13914217054843903,
0.056315645575523376,
0.0221229400485754,
-0.10916800796985626,
0.30568835139274597,
-0.12328939884901047,
-0.14438745379447937,
0.017091667279601097,
0.02369627356529236,
0.24356915056705475,
0.08324511349201202,
-0.0350535586476326,
0.03183853626251221,
0.05666274577379227,
0.005073040723800659,
0.13703587651252747,
-0.25716841220855713,
0.3858582079410553,
0.07961062341928482,
0.15197475254535675,
0.1933545619249344,
-0.1582801640033722,
0.04655951261520386,
0.07297775894403458,
0.05780143290758133,
0.2665906548500061,
0.1312708556652069,
0.12933877110481262,
-0.16783995926380157,
-0.1768580973148346,
-0.20610985159873962,
0.12530097365379333,
0.06346021592617035,
0.0756327211856842,
-0.05241871997714043,
-0.2231832593679428,
-0.2190258800983429,
0.11126499623060226,
-0.012350235134363174,
-0.2395031899213791,
-0.1248282864689827,
0.13318438827991486,
-0.11993325501680374,
-0.044873908162117004,
-0.1700446605682373,
-0.3792727589607239,
0.12375006079673767,
-0.2863720953464508,
0.34079334139823914,
0.12899187207221985,
-0.04862021654844284,
0.14648252725601196,
0.4481005072593689,
0.39947423338890076,
0.10075563192367554,
-0.15466360747814178,
0.20852097868919373,
0.01823417842388153,
-0.1115252673625946,
0.01806415244936943,
0.41380244493484497,
0.11495193094015121,
0.0738479495048523,
0.18768726289272308,
0.22964897751808167,
-0.22419936954975128,
-0.032560285180807114,
0.12068670243024826,
-0.0927174910902977,
-0.09405221790075302,
0.21845586597919464,
-0.14288543164730072,
0.1763339340686798,
-0.5103024244308472,
-0.11386221647262573,
-0.5821380019187927,
0.01360618881881237,
0.3610701858997345,
-0.2312156856060028,
0.19266463816165924,
-0.15979883074760437,
0.11386428028345108,
-0.21106798946857452,
0.37066513299942017,
0.38440290093421936,
0.10412635654211044,
-0.08183571696281433,
-0.09604306519031525,
-0.39687496423721313,
-0.13870154321193695,
0.04722651466727257,
0.0885295569896698,
-0.3193569481372833,
0.20288312435150146,
0.39512479305267334,
0.29927411675453186,
-0.0766487792134285,
0.046278711408376694,
-0.3797617554664612,
0.11337302625179291,
-0.28283512592315674,
0.1392633616924286,
0.06718330085277557,
0.5116133093833923,
0.010285384953022003,
-0.25014570355415344,
-0.15180085599422455,
0.1326693296432495,
0.10153938829898834,
-0.1446295529603958,
-0.005260246805846691,
-0.14812351763248444,
-0.18148751556873322,
0.25802159309387207,
-0.06734520941972733,
0.42929476499557495,
-0.2882858216762543,
-0.1358596533536911,
-0.158432736992836,
-0.006951419170945883,
-0.11215712130069733,
-0.022591017186641693,
-0.1224217563867569,
0.19815753400325775,
-0.0691540464758873,
0.34081119298934937,
-0.04442111402750015,
-0.14713425934314728,
-0.04131612926721573,
0.07860474288463593,
-0.39511021971702576,
0.09343156963586807,
-0.27261021733283997,
0.1314876526594162,
-0.12905070185661316,
0.18551203608512878,
-0.0007182490080595016,
-0.13412578403949738,
-0.2878398001194,
-0.16648584604263306,
0.4465268552303314,
-0.13181965053081512,
-0.29641905426979065,
-0.07052643597126007,
0.3546961843967438,
0.12908470630645752,
0.006930530071258545,
-0.5353888869285583,
0.25541985034942627,
0.25776031613349915,
0.04324048385024071,
0.04039371386170387,
0.15969891846179962,
0.057777319103479385,
-0.0230263601988554,
-0.09843320399522781,
-0.006353864446282387,
0.09065677970647812,
-0.22191810607910156,
0.07002410292625427,
-0.4112517237663269
] |
https://github.com/huggingface/datasets/issues/1843 | MustC Speech Translation | yes that is possible. I couldn't unfortunately complete this PR, If you would like to add it, please feel free to do it. | ## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | MustC Speech Translation
## Adding a Dataset
- **Name:** *IWSLT19*
- **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.*
- **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation*
- **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2"
- **Motivation:** Important speech dataset
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
yes that is possible. I couldn't unfortunately complete this PR, If you would like to add it, please feel free to do it. | [
-0.31441691517829895,
0.24071379005908966,
-0.09851743280887604,
0.0024263772647827864,
-0.04147341474890709,
-0.036333050578832626,
0.0861029103398323,
0.15631262958049774,
-0.3312878906726837,
0.16874495148658752,
-0.3144814372062683,
-0.08722835779190063,
-0.08008407056331635,
0.11771374940872192,
0.2429230809211731,
-0.23413096368312836,
0.12590473890304565,
0.05045605078339577,
-0.3424839377403259,
-0.24945978820323944,
-0.021338898688554764,
0.06726726144552231,
-0.07884251326322556,
-0.13443931937217712,
-0.1448362171649933,
0.03217000141739845,
-0.2795511484146118,
-0.23418688774108887,
-0.30203497409820557,
-0.1368788629770279,
-0.0195764172822237,
0.10978444665670395,
0.1033443883061409,
0.3815741240978241,
-0.000102702368167229,
-0.12752260267734528,
0.25279539823532104,
-0.2727609872817993,
-0.33889663219451904,
-0.12785476446151733,
-0.18108558654785156,
-0.08172699064016342,
-0.590947151184082,
0.005200973246246576,
-0.3022560477256775,
-0.23989522457122803,
-0.007225519046187401,
0.09973972290754318,
0.22619454562664032,
0.5919897556304932,
0.25051388144493103,
0.07011987268924713,
0.24646739661693573,
-0.17653819918632507,
0.2097943127155304,
0.13428547978401184,
-0.19434109330177307,
0.07489199936389923,
0.24926598370075226,
0.10584062337875366,
0.13419859111309052,
0.35475271940231323,
0.09580105543136597,
-0.19330626726150513,
-0.08367983251810074,
-0.28053683042526245,
-0.08627799153327942,
-0.34722819924354553,
0.09634384512901306,
0.38627639412879944,
0.5706560015678406,
-0.14905960857868195,
-0.2005544751882553,
-0.10980269312858582,
0.31913286447525024,
-0.21819816529750824,
-0.10300601273775101,
0.07135805487632751,
-0.24414390325546265,
0.2761051654815674,
0.16571074724197388,
-0.3014529347419739,
-0.16010627150535583,
0.25862565636634827,
0.0814657062292099,
0.34502822160720825,
-0.08520675450563431,
-0.12230377644300461,
0.03758801519870758,
-0.24551865458488464,
-0.2540190815925598,
0.00606704642996192,
-0.04611850157380104,
0.08126406371593475,
-0.1872428059577942,
-0.28068017959594727,
0.2276117503643036,
-0.10330826789140701,
0.14978814125061035,
-0.3863222002983093,
-0.15641437470912933,
-0.12693391740322113,
-0.19218873977661133,
0.044004905968904495,
0.11500132828950882,
0.37884220480918884,
-0.026463055983185768,
0.03777465969324112,
0.047492045909166336,
-0.25182485580444336,
0.04977138340473175,
0.1109478622674942,
0.0034478569868952036,
0.11971943080425262,
-0.45592010021209717,
0.29560723900794983,
-0.03506679832935333,
-0.16813437640666962,
-0.2250044196844101,
0.010360313579440117,
-0.09615667164325714,
0.11250914633274078,
-0.09187397360801697,
0.2835102379322052,
0.13210217654705048,
0.2797350585460663,
-0.0397721566259861,
0.36094316840171814,
-0.022474268451333046,
-0.1811033934354782,
-0.024214433506131172,
0.20698270201683044,
-0.27135971188545227,
0.19403506815433502,
0.1961507797241211,
0.4122074544429779,
0.1024266704916954,
0.024708764627575874,
0.2995334267616272,
0.06390628218650818,
-0.2043532133102417,
0.030297644436359406,
0.291341096162796,
-0.02420903742313385,
0.08462265878915787,
0.00534196337684989,
-0.21979151666164398,
-0.23987415432929993,
-0.2191120982170105,
0.08411500602960587,
0.15763111412525177,
0.017869489267468452,
-0.2563849091529846,
0.2600444555282593,
-0.06845194101333618,
-0.24235673248767853,
-0.278537780046463,
0.7449663281440735,
-0.10150212794542313,
-0.12975609302520752,
0.09342469274997711,
0.1164594516158104,
-0.41053786873817444,
0.16276724636554718,
-0.06977616995573044,
0.24694614112377167,
-0.1938311904668808,
-0.12824073433876038,
0.17058320343494415,
0.03469445928931236,
-0.014272693544626236,
0.17066486179828644,
-0.07731357216835022,
0.2162143588066101,
-0.12216401100158691,
0.3464403748512268,
0.06982284039258957,
-0.365792453289032,
-0.21030020713806152,
0.08619999885559082,
-0.16949507594108582,
-0.03468650206923485,
0.23783279955387115,
-0.15478108823299408,
0.6538498997688293,
-0.2722485363483429,
0.015309063717722893,
0.3843722939491272,
-0.03677801415324211,
0.0969170555472374,
-0.1929127424955368,
-0.3223569989204407,
0.32366833090782166,
0.12448494881391525,
0.039555177092552185,
0.08096276223659515,
-0.047145672142505646,
0.3634018898010254,
0.330748051404953,
-0.3230013847351074,
0.27203187346458435,
0.2625043988227844,
0.05173935741186142,
-0.1940387487411499,
0.0653446763753891,
-0.1876688301563263,
-0.020785700529813766,
-0.14142467081546783,
0.10560593008995056,
0.6179710626602173,
0.21540206670761108,
-0.26421913504600525,
-0.12496048212051392,
-0.30515891313552856,
-0.12023797631263733,
-0.20979976654052734,
0.28880301117897034,
0.2694256007671356,
0.07025622576475143,
0.04118749871850014,
-0.09886733442544937,
0.24387763440608978,
-0.2970067262649536,
-0.2975800931453705,
-0.018252497538924217,
0.24787859618663788,
0.01964888721704483,
-0.24290961027145386,
0.22228990495204926,
0.4088081419467926,
0.15729042887687683,
0.03522864729166031,
-0.05046220123767853,
0.04140165075659752,
-0.2443636953830719,
0.2295621633529663,
0.09517361223697662,
0.17217318713665009,
0.26416194438934326,
-0.4821298122406006,
0.13075359165668488,
0.37081000208854675,
0.06347063183784485,
-0.18448816239833832,
-0.09787669777870178,
0.21774199604988098,
0.4107002913951874,
0.15224233269691467,
0.1553032249212265,
-0.028025368228554726,
0.42734265327453613,
-0.03199215605854988,
-0.21933071315288544,
-0.07383996248245239,
0.09802436083555222,
0.22687356173992157,
-0.15454792976379395,
-0.05781194940209389,
-0.3017585575580597,
0.19530262053012848,
0.5034915208816528,
-0.15340092778205872,
0.29433855414390564,
0.22147072851657867,
-0.05523910000920296,
-0.11726690083742142,
0.0382302850484848,
-0.25721773505210876,
0.23649358749389648,
0.3023202121257782,
0.3069230616092682,
0.031172866001725197,
0.19606822729110718,
-0.02992868423461914,
0.13785776495933533,
-0.03431648388504982,
-0.25663575530052185,
0.18402963876724243,
0.20569908618927002,
-0.238939106464386,
-0.38774561882019043,
0.09466700255870819,
0.03097507730126381,
0.10880907624959946,
-0.17276912927627563,
-0.33004093170166016,
0.09641359746456146,
-0.2699225842952728,
-0.2532966732978821,
0.04540545120835304,
-0.13986338675022125,
0.025938311591744423,
0.42458829283714294,
0.05583130568265915,
-0.17605194449424744,
0.2835519313812256,
0.34056299924850464,
0.2605621814727783,
-0.4604910612106323,
0.04293816164135933,
-0.10588335245847702,
-0.3384133279323578,
-0.15018020570278168,
0.2364140748977661,
0.1870856136083603,
0.2369816154241562,
0.19452494382858276,
-0.14542053639888763,
0.06934382766485214,
-0.2870323061943054,
-0.2716104984283447,
0.24884524941444397,
-0.2595181465148926,
0.08376986533403397,
-0.2471226453781128,
-0.03345530480146408,
0.030546296387910843,
-0.4345565140247345,
-0.20077276229858398,
0.013966531492769718,
-0.12613138556480408,
-0.11296173185110092,
-0.4465985894203186,
-0.12314223498106003,
-0.11976242810487747,
-0.4519714415073395,
-0.5385050773620605,
-0.41788509488105774,
0.39243653416633606,
-0.19686971604824066,
-0.05865367874503136,
-0.07999233901500702,
-0.028854331001639366,
0.03845058009028435,
-0.04336259514093399,
0.12071804702281952,
-0.34195205569267273,
-0.14262525737285614,
0.0722506195306778,
-0.35471299290657043,
-0.3084486722946167,
-0.21751350164413452,
0.025479476898908615,
0.11710766702890396,
-0.19032548367977142,
-0.1839791089296341,
0.08403927087783813,
-0.051838237792253494,
0.3439907431602478,
0.0942208468914032,
0.052040524780750275,
0.23405961692333221,
-0.13342759013175964,
-0.15585461258888245,
-0.16844981908798218,
-0.1474100649356842,
0.087095707654953,
0.4020911455154419,
0.20115908980369568,
-0.014140680432319641,
-0.015215120278298855,
-0.010617636144161224,
0.5695927739143372,
0.21298126876354218,
0.003286541672423482,
0.19647808372974396,
-0.06911735981702805,
0.4202745854854584,
-0.3030356168746948,
-0.2824949622154236,
0.4688384234905243,
0.04416491836309433,
-0.06989847868680954,
0.4359489977359772,
0.03206877037882805,
-0.4763181209564209,
-0.09402734786272049,
-0.25049883127212524,
-0.28372785449028015,
-0.2808147966861725,
0.3004736006259918,
0.1049327552318573,
0.14180545508861542,
0.017523562535643578,
-0.18536625802516937,
-0.23669111728668213,
-0.13869412243366241,
0.30925554037094116,
0.09522745013237,
0.10584817826747894,
-0.010956468060612679,
-0.2383207529783249,
-0.03220941498875618,
-0.3911246657371521,
-0.17593131959438324,
0.1685512661933899,
0.2604578137397766,
-0.47492632269859314,
0.1247687041759491,
-0.09683901816606522,
0.12605157494544983,
0.33914417028427124,
-0.3525823950767517,
-0.031048597767949104,
0.30518531799316406,
0.4792056679725647,
0.08724822849035263,
0.18700630962848663,
-0.24852313101291656,
-0.34644815325737,
0.6289085745811462,
0.3033204972743988,
-0.3392406105995178,
0.07346289604902267,
0.17140710353851318,
0.3540358543395996,
-0.05671451613306999,
-0.1258447766304016,
0.10362603515386581,
-0.31306204199790955,
-0.35133862495422363,
0.29418468475341797,
0.586397111415863,
-0.0044183204881846905,
0.13273228704929352,
0.0856681615114212,
0.157393217086792,
-0.0330052450299263,
0.4120716154575348,
-0.05655641481280327,
0.004982022102922201,
0.5083365440368652,
0.07415762543678284,
-0.05853089317679405,
-0.09969877451658249,
-0.13609741628170013,
0.23600399494171143,
-0.02949063666164875,
-0.3625955283641815,
0.04109442979097366,
-0.3179112672805786,
0.3410196602344513,
0.3419695496559143,
0.19690901041030884,
0.055420469492673874,
-0.11516634374856949,
-0.004926823545247316,
-0.17862606048583984,
0.17871639132499695,
0.2119586318731308,
0.21977779269218445,
-0.2665576934814453,
-0.2907716929912567,
0.33278998732566833,
0.02384806051850319,
-0.13564276695251465,
0.08002597093582153,
0.14265352487564087,
-0.26395362615585327,
0.30238059163093567,
-0.20551720261573792,
1.2013118267059326,
0.2142936736345291,
0.07088771462440491,
0.18532250821590424,
-0.2761237621307373,
0.05569590628147125,
-0.42827069759368896,
-0.1648579239845276,
0.25096145272254944,
0.13837231695652008,
0.0014108337927609682,
0.23329651355743408,
-0.09270216524600983,
0.1877400428056717,
-0.46810755133628845,
0.20749139785766602,
-0.033150531351566315,
0.05491770803928375,
0.14737378060817719,
0.4590066373348236,
-0.14142389595508575,
-0.40732142329216003,
-0.37705495953559875,
0.2764764726161957,
0.16170327365398407,
0.10014756768941879,
0.18671594560146332,
-0.3114004135131836,
0.16491110622882843,
-0.022920601069927216,
-0.6706445217132568,
0.17730145156383514,
-0.18283455073833466,
-0.18681083619594574,
-0.47172027826309204,
-0.1523209512233734,
0.23508819937705994,
0.21902185678482056,
0.4069218933582306,
-0.019995754584670067,
-0.24313446879386902,
0.2917391061782837,
0.023936878889799118,
0.1518756002187729,
0.13129644095897675,
-0.060253746807575226,
0.33630698919296265,
-0.30789700150489807,
-0.2724236249923706,
0.22592824697494507,
0.07136164605617523,
-0.07578073441982269,
-0.3984648883342743,
-0.2754770815372467,
0.096308633685112,
0.1583930104970932,
0.24447137117385864,
0.5786367058753967,
-0.022087374702095985,
-0.31357917189598083,
0.21439334750175476,
-0.11599794030189514,
-0.453707218170166,
0.13476739823818207,
-0.1388077437877655,
-0.24216260015964508,
-0.1848853975534439,
0.22235840559005737,
0.27633917331695557,
0.005673618521541357,
0.3082563877105713,
0.2500695586204529,
-0.10525844991207123,
-0.36053386330604553,
-0.13908343017101288,
0.18911510705947876,
-0.45640215277671814,
-0.02129421941936016,
0.14255042374134064,
-0.15464548766613007,
-0.2860094904899597,
0.27140629291534424,
0.033189788460731506,
0.05671810358762741,
-0.16729971766471863,
-0.01243949867784977,
-0.23014655709266663,
-0.09230081737041473,
0.11381366103887558,
0.08984853327274323,
-0.04566047713160515,
0.3371569514274597,
0.05580297112464905,
-0.09541743248701096,
-0.4461347758769989,
0.004695876035839319,
-0.10531175136566162,
0.22452004253864288,
0.24909070134162903,
-0.11897023767232895,
0.09175273030996323,
0.011686857789754868,
0.1757110357284546,
-0.0036671285051852465,
-0.03173365071415901,
-0.2695859372615814,
-0.19374361634254456,
0.07640458643436432,
0.15058791637420654,
0.25307825207710266,
-0.009254380129277706,
-0.05828282982110977,
-0.16966815292835236,
0.08401967585086823,
0.3346136808395386,
0.26203101873397827,
-0.06977716833353043,
0.13935285806655884,
-0.04888584464788437,
0.03398946300148964,
0.2634318768978119,
-0.0036808426957577467,
0.3496931493282318,
0.2920740246772766,
0.04169226437807083,
0.15400363504886627,
0.04115258902311325,
-0.08303586393594742,
-0.0032428435515612364,
0.23002801835536957,
0.19344517588615417,
0.11719630658626556,
-0.06116251274943352,
0.15714530646800995,
0.1814698874950409,
0.2435404509305954,
0.07426542043685913,
0.029963595792651176,
-0.07709839195013046,
-0.015186007134616375,
0.39085790514945984,
0.30262291431427,
-0.22794762253761292,
0.17203634977340698,
-0.20257872343063354,
-0.3291875720024109,
0.18947798013687134,
0.06838838756084442,
0.04711747169494629,
-0.06919525563716888,
0.35559603571891785,
-0.12295329570770264,
-0.275238960981369,
0.024660686030983925,
0.07923191040754318,
0.1658143848180771,
0.09474737197160721,
-0.0498003326356411,
0.021851854398846626,
-0.04674949869513512,
0.07433363050222397,
0.016036806628108025,
-0.17189711332321167,
0.4392324686050415,
0.12955495715141296,
0.17243774235248566,
0.29567012190818787,
0.08155215531587601,
0.09781762957572937,
0.027422836050391197,
0.17824667692184448,
0.2709982097148895,
0.11748135834932327,
0.2897266447544098,
-0.0029121842235326767,
-0.36235612630844116,
-0.16115741431713104,
0.26551729440689087,
0.05468706414103508,
-0.023885663598775864,
-0.048071134835481644,
-0.16416902840137482,
-0.21514946222305298,
-0.03873960301280022,
-0.005995897576212883,
-0.17575643956661224,
-0.13096123933792114,
0.12933187186717987,
-0.16347046196460724,
-0.037223637104034424,
-0.1534479856491089,
-0.22954334318637848,
0.1345548927783966,
-0.2233675867319107,
0.349835604429245,
0.17688468098640442,
-0.07745557278394699,
0.2122642695903778,
0.5102564692497253,
0.4451509118080139,
-0.0017902534455060959,
-0.16064079105854034,
0.15998999774456024,
-0.029454654082655907,
-0.08546001464128494,
0.02356291562318802,
0.3419021666049957,
0.16737234592437744,
0.06707064807415009,
0.1742619127035141,
0.2570086121559143,
-0.2493707686662674,
-0.11580593138933182,
0.13141827285289764,
-0.09739942848682404,
-0.09163420647382736,
0.12999935448169708,
-0.076967753469944,
0.1917339265346527,
-0.6140168905258179,
-0.21668405830860138,
-0.5189552903175354,
0.10084506869316101,
0.3167089819908142,
-0.24512887001037598,
0.08564047515392303,
-0.0976700633764267,
0.1314333826303482,
-0.16944052278995514,
0.26276347041130066,
0.20988915860652924,
0.07793768495321274,
-0.08091333508491516,
-0.1441604346036911,
-0.3445737063884735,
-0.06007193401455879,
0.11624429374933243,
0.08938600867986679,
-0.3636897802352905,
0.012003813870251179,
0.49302610754966736,
0.31697404384613037,
-0.14386586844921112,
-0.13196511566638947,
-0.35371333360671997,
0.17927025258541107,
-0.40544354915618896,
0.22298917174339294,
0.0674990713596344,
0.613632082939148,
0.19628389179706573,
-0.12558689713478088,
-0.2397259920835495,
0.2737296223640442,
0.11329134553670883,
-0.04164368286728859,
-0.051667265594005585,
-0.23663011193275452,
-0.21261291205883026,
0.1456015408039093,
-0.05307815968990326,
0.4831133484840393,
-0.3111391067504883,
-0.0611148327589035,
-0.04976947233080864,
-0.16246865689754486,
-0.19494707882404327,
0.002376595279201865,
-0.04528240114450455,
0.21947136521339417,
-0.10705050826072693,
0.2709199786186218,
-0.040550004690885544,
-0.1780356764793396,
-0.046567272394895554,
0.06095130369067192,
-0.2925069332122803,
0.13954056799411774,
-0.10163116455078125,
0.020233267918229103,
-0.19367149472236633,
0.2009616643190384,
-0.0456455759704113,
-0.09389156103134155,
-0.22835370898246765,
-0.18692001700401306,
0.4489102363586426,
-0.14104118943214417,
-0.33844196796417236,
-0.06486772745847702,
0.30417895317077637,
0.09849315136671066,
-0.06793055683374405,
-0.6517700552940369,
0.21813009679317474,
0.23313121497631073,
0.1671428382396698,
0.15499407052993774,
0.15831434726715088,
0.059993844479322433,
0.054956186562776566,
-0.10764064639806747,
-0.05922975018620491,
0.16673167049884796,
-0.15695610642433167,
0.04283929988741875,
-0.32238709926605225
] |
https://github.com/huggingface/datasets/issues/1840 | Add common voice | Hey @BirgerMoell - awesome that you started working on Common Voice. Common Voice is a bit special since, there is no direct download link to download the data. In these cases we usually consider two options:
1) Find a hacky solution to extract the download link somehow from the XLM tree of the website
2) If this doesn't work we force the user to download the data himself and add a `"data_dir"` as an input parameter. E.g. you can take a look at how it is done for [this](https://github.com/huggingface/datasets/blob/66f2a7eece98d2778bd22bb5034cb7c2376032d4/datasets/arxiv_dataset/arxiv_dataset.py#L66)
Also the documentation here: https://huggingface.co/docs/datasets/add_dataset.html?highlight=data_dir#downloading-data-files-and-organizing-splits (especially the "note") might be helpful. | ## Adding a Dataset
- **Name:** *common voice*
- **Description:** *Mozilla Common Voice Dataset*
- **Paper:** Homepage: https://voice.mozilla.org/en/datasets
- **Data:** https://voice.mozilla.org/en/datasets
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 100 | Add common voice
## Adding a Dataset
- **Name:** *common voice*
- **Description:** *Mozilla Common Voice Dataset*
- **Paper:** Homepage: https://voice.mozilla.org/en/datasets
- **Data:** https://voice.mozilla.org/en/datasets
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hey @BirgerMoell - awesome that you started working on Common Voice. Common Voice is a bit special since, there is no direct download link to download the data. In these cases we usually consider two options:
1) Find a hacky solution to extract the download link somehow from the XLM tree of the website
2) If this doesn't work we force the user to download the data himself and add a `"data_dir"` as an input parameter. E.g. you can take a look at how it is done for [this](https://github.com/huggingface/datasets/blob/66f2a7eece98d2778bd22bb5034cb7c2376032d4/datasets/arxiv_dataset/arxiv_dataset.py#L66)
Also the documentation here: https://huggingface.co/docs/datasets/add_dataset.html?highlight=data_dir#downloading-data-files-and-organizing-splits (especially the "note") might be helpful. | [
-0.19141416251659393,
-0.23302234709262848,
-0.057918839156627655,
-0.16404199600219727,
0.14640496671199799,
-0.07734158635139465,
0.22383488714694977,
0.28073135018348694,
-0.20906198024749756,
0.3071739971637726,
-0.44875437021255493,
0.041479140520095825,
-0.05049744248390198,
-0.06181102991104126,
0.1337495595216751,
-0.17996852099895477,
-0.29891398549079895,
0.09284184873104095,
0.07319518178701401,
-0.08930152654647827,
0.1916295737028122,
0.07035369426012039,
0.006779348012059927,
0.010302542708814144,
-0.06486362218856812,
-0.08363258093595505,
0.06589201837778091,
-0.0585373118519783,
0.04358557611703873,
-0.132630854845047,
-0.1019376665353775,
0.22079668939113617,
-0.13196122646331787,
0.49090322852134705,
-0.00009582506027072668,
-0.029878579080104828,
0.1239589974284172,
-0.17157629132270813,
-0.18750430643558502,
-0.14831925928592682,
-0.26291483640670776,
0.199973925948143,
-0.33991989493370056,
0.1386551558971405,
-0.23242132365703583,
-0.0841773971915245,
0.08358460664749146,
-0.17362256348133087,
0.36701101064682007,
0.4226415157318115,
0.3214832544326782,
0.17549216747283936,
-0.0686001256108284,
0.03312430530786514,
0.19890116155147552,
0.10556952655315399,
-0.18644224107265472,
0.14507849514484406,
0.19814209640026093,
-0.004716979805380106,
-0.026942981407046318,
0.3730791509151459,
0.04014307260513306,
-0.11042281985282898,
-0.14066557586193085,
0.05418158322572708,
-0.0711619034409523,
-0.40517231822013855,
0.046636853367090225,
0.49606776237487793,
0.5813149809837341,
-0.2943415939807892,
-0.13199308514595032,
-0.2549912929534912,
0.09393780678510666,
-0.07445881515741348,
-0.011960911564528942,
0.1040295735001564,
-0.37310245633125305,
0.2526133358478546,
0.14004456996917725,
-0.17295290529727936,
-0.09266501665115356,
0.18064750730991364,
0.09820429980754852,
0.28733059763908386,
-0.09023984521627426,
-0.3477495610713959,
0.03502795100212097,
-0.12978681921958923,
-0.27824538946151733,
0.17417100071907043,
0.37455853819847107,
0.07190902531147003,
-0.20254379510879517,
-0.20451819896697998,
0.17220541834831238,
-0.49435120820999146,
0.33736327290534973,
-0.2338498830795288,
0.3088488280773163,
0.19370140135288239,
-0.2733049690723419,
0.1480512171983719,
-0.0929490327835083,
0.14153969287872314,
0.03365979716181755,
-0.2610836923122406,
0.4790061116218567,
0.07963158190250397,
0.10170478373765945,
0.0869898721575737,
-0.03551740571856499,
0.09551141411066055,
-0.16837745904922485,
0.008145501837134361,
0.11574392020702362,
0.12869656085968018,
-0.274697482585907,
-0.024859121069312096,
-0.07742242515087128,
0.03419036418199539,
0.10076244175434113,
0.31438297033309937,
-0.16743580996990204,
0.2423110455274582,
0.012937437742948532,
0.10063556581735611,
-0.0871870145201683,
-0.43836721777915955,
-0.1132013350725174,
-0.09015043824911118,
-0.042265575379133224,
0.2203017622232437,
0.2512872815132141,
0.008131819777190685,
0.17946839332580566,
-0.03837081044912338,
0.36359521746635437,
-0.044910769909620285,
-0.058028899133205414,
0.16590015590190887,
-0.11608772724866867,
-0.006317289546132088,
0.17763379216194153,
0.10120677947998047,
-0.09472053498029709,
-0.05067147687077522,
-0.15217019617557526,
-0.08140145987272263,
0.0066566746681928635,
-0.24002395570278168,
-0.2349158674478531,
0.38187524676322937,
0.2067500352859497,
-0.09162089973688126,
0.1751001924276352,
0.4059944152832031,
0.0205772016197443,
-0.11331074684858322,
0.05760323628783226,
0.2704983949661255,
-0.3937544822692871,
0.0019520429195836186,
0.2353147268295288,
0.13869819045066833,
-0.10300297290086746,
-0.212718203663826,
-0.08870062232017517,
0.025946859270334244,
-0.08997172862291336,
0.2812160849571228,
-0.05472401902079582,
0.147356778383255,
-0.0783703550696373,
0.5168426036834717,
0.3876641094684601,
-0.3474631905555725,
-0.3929835259914398,
0.15681099891662598,
-0.3701218366622925,
-0.0025555347092449665,
0.1129031702876091,
-0.03256026655435562,
0.2321353554725647,
0.00546408211812377,
0.30861589312553406,
0.2736944258213043,
-0.0658043920993805,
0.25189968943595886,
-0.25283926725387573,
-0.2755354642868042,
-0.11300394684076309,
0.22014807164669037,
-0.20392069220542908,
-0.04755087569355965,
-0.021995414048433304,
0.01144091971218586,
0.3305027186870575,
-0.27747324109077454,
0.22741954028606415,
0.13726375997066498,
0.36578860878944397,
0.08011756837368011,
0.03492952510714531,
-0.1751103699207306,
-0.04720878228545189,
-0.0706852525472641,
-0.04694036766886711,
0.2627592384815216,
-0.11961930990219116,
-0.5422859191894531,
-0.3234485983848572,
-0.29061102867126465,
-0.0741250142455101,
0.0678829774260521,
0.35333073139190674,
0.20433951914310455,
0.12405546754598618,
0.09032748639583588,
-0.13201718032360077,
0.16203130781650543,
-0.015211542136967182,
0.019896024838089943,
0.07437606155872345,
0.09135480970144272,
-0.23566371202468872,
0.006216603796929121,
0.2639213502407074,
0.17404572665691376,
-0.10942645370960236,
-0.04701923578977585,
0.012195229530334473,
0.4601745903491974,
-0.3491533100605011,
0.4136950373649597,
-0.07079684734344482,
0.2818540632724762,
0.23625561594963074,
-0.2704651653766632,
0.09320887923240662,
0.23708799481391907,
0.030820723623037338,
-0.009886194951832294,
0.1947709619998932,
0.020402051508426666,
0.4368933141231537,
-0.18290534615516663,
0.2546637952327728,
-0.016099821776151657,
0.30137649178504944,
-0.07862699776887894,
-0.10484233498573303,
-0.08269844204187393,
-0.027450598776340485,
-0.07762492448091507,
0.15357479453086853,
-0.16326765716075897,
-0.5607642531394958,
0.21254462003707886,
0.5365678668022156,
-0.1590389609336853,
0.3975816071033478,
0.23106077313423157,
-0.3788747191429138,
-0.034025561064481735,
0.04175874590873718,
-0.18181906640529633,
0.05794832855463028,
0.33448755741119385,
0.22488251328468323,
0.05089472234249115,
-0.026341773569583893,
-0.2014661729335785,
0.12717454135417938,
-0.05369935557246208,
-0.20163165032863617,
0.39899182319641113,
0.17250730097293854,
-0.010492268949747086,
-0.5637578368186951,
-0.1607818454504013,
-0.1286460906267166,
-0.09806322306394577,
-0.2647339999675751,
-0.1571463793516159,
-0.1429147720336914,
-0.4420362412929535,
-0.12841518223285675,
0.03895321860909462,
-0.13040609657764435,
-0.11477430164813995,
0.47929972410202026,
0.3162684440612793,
-0.0680871531367302,
0.20696114003658295,
0.03798330947756767,
0.38995087146759033,
0.08941364288330078,
-0.02796521969139576,
0.0022464643698185682,
-0.05615095794200897,
-0.16873383522033691,
0.26362472772598267,
0.05402521789073944,
-0.12383896112442017,
0.2293986976146698,
-0.04529815539717674,
0.1493048518896103,
-0.03344335779547691,
-0.3091452419757843,
0.3005315661430359,
-0.1655348837375641,
-0.30475902557373047,
-0.12069720029830933,
0.07273150235414505,
0.15899649262428284,
-0.3374803960323334,
-0.010548915714025497,
-0.15801820158958435,
-0.21900531649589539,
-0.03412799909710884,
0.022926976904273033,
-0.01310891192406416,
-0.33205437660217285,
-0.4506060481071472,
-0.20568153262138367,
-0.5207066535949707,
0.11988966912031174,
-0.2591119408607483,
0.11618369072675705,
0.11220373213291168,
-0.2233247011899948,
0.1942959874868393,
-0.18675513565540314,
0.4712707996368408,
-0.3216317296028137,
-0.18634967505931854,
0.3625207245349884,
-0.36882922053337097,
-0.3724723756313324,
-0.16738392412662506,
-0.06067616865038872,
0.3532100021839142,
-0.07753458619117737,
-0.21527402102947235,
-0.11164811998605728,
-0.0815468579530716,
0.16899141669273376,
-0.04731016233563423,
0.032615985721349716,
0.19930170476436615,
0.159100741147995,
-0.25225433707237244,
-0.1729520708322525,
0.05195976421236992,
0.05568629130721092,
0.21034738421440125,
0.01034463569521904,
0.01189364306628704,
0.07780078053474426,
0.2278720587491989,
0.7560044527053833,
0.08107731491327286,
-0.0760718509554863,
0.19223380088806152,
-0.24191050231456757,
0.07154428213834763,
0.09795116633176804,
-0.05802181735634804,
0.3411955237388611,
0.13540320098400116,
0.1990298479795456,
0.5835257172584534,
0.13468201458454132,
-0.1079588457942009,
-0.09354397654533386,
0.01940704882144928,
-0.30154740810394287,
-0.40966129302978516,
0.019702516496181488,
-0.06512968987226486,
0.14747852087020874,
-0.014564640820026398,
-0.021039750427007675,
-0.014076181687414646,
-0.02046954073011875,
0.4538124203681946,
0.13233405351638794,
-0.18648482859134674,
-0.17997612059116364,
0.21314352750778198,
0.14758168160915375,
-0.31764742732048035,
0.13307516276836395,
0.27698299288749695,
0.0023005891125649214,
-0.2478591501712799,
-0.248775452375412,
-0.11710295081138611,
0.13139399886131287,
0.28568965196609497,
-0.13991965353488922,
-0.12060703337192535,
-0.159856379032135,
0.234841451048851,
-0.0035144907888025045,
0.34971141815185547,
-0.1370624303817749,
-0.30631372332572937,
0.12639762461185455,
-0.00624012341722846,
-0.325307160615921,
-0.015769995748996735,
-0.18430796265602112,
0.07753592729568481,
-0.09265554696321487,
-0.01582181453704834,
-0.004391552414745092,
-0.2653483748435974,
-0.23054830729961395,
0.01718425750732422,
0.08674388378858566,
0.0055583082139492035,
-0.05112652853131294,
-0.14438305795192719,
0.42018312215805054,
-0.254615843296051,
0.32205891609191895,
0.22042407095432281,
-0.08597363531589508,
0.24817165732383728,
0.073148213326931,
0.1424105167388916,
0.14606769382953644,
0.016386881470680237,
0.14828136563301086,
0.23388443887233734,
-0.25429877638816833,
-0.24963200092315674,
-0.18747292459011078,
0.1962052285671234,
0.11799579113721848,
0.19184289872646332,
0.06964846700429916,
0.007057722192257643,
0.17857003211975098,
-0.1386415809392929,
0.2552044689655304,
0.2867584526538849,
0.12823376059532166,
-0.0800250694155693,
-0.2555854320526123,
0.19261975586414337,
-0.10532283037900925,
-0.10155513137578964,
0.2771305739879608,
0.02409539185464382,
-0.30378055572509766,
-0.07060287892818451,
-0.28821200132369995,
1.0026527643203735,
0.1183435320854187,
0.19081100821495056,
0.3410579562187195,
0.07266486436128616,
0.17097215354442596,
-0.45450931787490845,
0.2086755484342575,
0.16320495307445526,
-0.1537921279668808,
-0.05465412884950638,
0.14201222360134125,
-0.2863588333129883,
0.1268392950296402,
-0.37610796093940735,
-0.061679475009441376,
-0.021405527368187904,
0.06274017691612244,
0.1325070858001709,
0.42391979694366455,
-0.15108820796012878,
-0.478864461183548,
-0.31542685627937317,
0.264237642288208,
-0.08672831952571869,
0.23626522719860077,
0.2626684010028839,
-0.2529899775981903,
-0.11492853611707687,
-0.06371333450078964,
-0.15414388477802277,
0.2917878031730652,
-0.29246097803115845,
-0.04934342950582504,
-0.20721271634101868,
0.09981316328048706,
0.2420370727777481,
0.1741274744272232,
0.23200656473636627,
0.13933195173740387,
-0.30674877762794495,
0.15881861746311188,
0.19394701719284058,
0.1440841257572174,
-0.09949994087219238,
0.059138692915439606,
0.3088832199573517,
-0.27169838547706604,
-0.1698356717824936,
0.23942993581295013,
0.2570657730102539,
-0.06989540904760361,
-0.26733505725860596,
-0.31583312153816223,
-0.003501123981550336,
-0.09664519131183624,
0.31009045243263245,
0.3235732614994049,
-0.15490905940532684,
-0.10275514423847198,
0.2644546329975128,
0.020974094048142433,
-0.2815409004688263,
-0.11086238920688629,
0.23352809250354767,
0.032775670289993286,
-0.15012654662132263,
0.25139960646629333,
0.06102399155497551,
-0.009882473386824131,
0.24717943370342255,
0.02418600767850876,
-0.19096483290195465,
-0.366853266954422,
-0.2549310326576233,
-0.23068061470985413,
-0.1314147263765335,
-0.13065402209758759,
-0.13456259667873383,
-0.2067376673221588,
-0.24587927758693695,
0.15646950900554657,
-0.14426609873771667,
0.19526053965091705,
-0.08517767488956451,
0.0032715918496251106,
-0.36731958389282227,
0.06181125342845917,
0.19463631510734558,
0.13362503051757812,
-0.11246679723262787,
0.3103487193584442,
0.07744006812572479,
0.0023242367897182703,
-0.524767279624939,
-0.20344331860542297,
0.0491652712225914,
-0.03545995056629181,
0.32344406843185425,
-0.19276368618011475,
0.40319496393203735,
0.012477850541472435,
0.3258100748062134,
0.048692487180233,
-0.07744801044464111,
-0.3793223798274994,
-0.2583360970020294,
0.0795324444770813,
0.2376994639635086,
-0.018728580325841904,
0.07884331792593002,
0.06484489887952805,
-0.14208365976810455,
-0.016444554552435875,
0.3288494050502777,
0.0724925696849823,
0.007933538407087326,
0.09021810442209244,
-0.0863250270485878,
0.05524178594350815,
0.09650646150112152,
-0.1942553073167801,
-0.050323233008384705,
0.2289922684431076,
0.1543940305709839,
0.024210670962929726,
-0.123921237885952,
-0.24028755724430084,
-0.10213383287191391,
0.1974298506975174,
0.35674354434013367,
-0.08043473213911057,
0.23299628496170044,
0.009796824306249619,
-0.14020472764968872,
0.12930479645729065,
0.3861316442489624,
-0.0911685973405838,
-0.24123336374759674,
-0.12753009796142578,
0.2536957263946533,
0.408332496881485,
-0.21388530731201172,
0.12255101650953293,
-0.06038642302155495,
-0.3291769027709961,
0.3680534362792969,
0.1795027107000351,
-0.1302819848060608,
0.2072899043560028,
0.04379093274474144,
-0.031670548021793365,
-0.12170835584402084,
-0.11714594066143036,
0.06134279817342758,
0.11343252658843994,
-0.04817426949739456,
0.005647335201501846,
0.009660890325903893,
-0.027804752811789513,
0.30238619446754456,
0.06773301959037781,
-0.35837605595588684,
0.20189228653907776,
0.039966944605112076,
-0.08621706813573837,
0.40243545174598694,
0.07038851082324982,
-0.07352349907159805,
0.01533861830830574,
-0.13961106538772583,
0.21650442481040955,
0.10230594128370285,
0.4589155614376068,
-0.18301637470722198,
-0.019577348604798317,
0.028137844055891037,
0.3724353313446045,
0.03334341198205948,
-0.04429011791944504,
-0.2614049017429352,
-0.04734199494123459,
-0.2303520143032074,
-0.16367779672145844,
0.2782403528690338,
-0.07065702974796295,
0.041174620389938354,
0.036336567252874374,
-0.049693044275045395,
-0.1757366806268692,
-0.017737077549099922,
0.04396170750260353,
0.4665778875350952,
-0.08180166035890579,
0.10765790939331055,
0.007829861715435982,
-0.24805575609207153,
0.14564067125320435,
0.2919995188713074,
0.09385061264038086,
-0.07347683608531952,
-0.2089616358280182,
0.35584479570388794,
-0.07808741927146912,
-0.07678307592868805,
-0.11041584610939026,
0.05554671585559845,
0.2791467308998108,
0.11994410306215286,
0.21188470721244812,
0.26748496294021606,
-0.34825146198272705,
-0.10668911784887314,
0.018400344997644424,
-0.01976814679801464,
-0.0893203616142273,
0.15952278673648834,
-0.10012869536876678,
0.03076276183128357,
-0.3655952513217926,
-0.25461724400520325,
-0.5871136784553528,
-0.02984580770134926,
0.32389914989471436,
-0.13538745045661926,
0.13938504457473755,
-0.35213446617126465,
0.17496880888938904,
0.054331257939338684,
0.2641288638114929,
0.28293460607528687,
0.04922186955809593,
0.3644106984138489,
-0.06164594739675522,
-0.43853363394737244,
0.25956252217292786,
0.23885837197303772,
-0.0972762256860733,
-0.36902403831481934,
0.023348255082964897,
0.2873702943325043,
0.14676541090011597,
-0.010103744454681873,
-0.294248104095459,
-0.2715737223625183,
-0.21557992696762085,
-0.16580183804035187,
0.1621248424053192,
-0.3059234917163849,
0.28326544165611267,
0.21294650435447693,
-0.3117227554321289,
0.0671115592122078,
-0.07842390239238739,
0.24113185703754425,
-0.046023424714803696,
0.17960156500339508,
-0.1786734014749527,
-0.33565646409988403,
0.2401757836341858,
-0.12344857305288315,
0.24309760332107544,
-0.3953340947628021,
-0.20576700568199158,
0.1390499323606491,
-0.005031391512602568,
-0.2132119983434677,
-0.05777201056480408,
0.11268175393342972,
0.3333127200603485,
0.07565976679325104,
-0.08009680360555649,
-0.23068198561668396,
0.1676315814256668,
0.18346549570560455,
-0.15877528488636017,
-0.0100850285962224,
0.0971829742193222,
-0.022935016080737114,
-0.03814798593521118,
0.08628766983747482,
0.1610187292098999,
-0.25503259897232056,
-0.06843332946300507,
-0.13316473364830017,
-0.5474575757980347,
0.2972135841846466,
-0.18074113130569458,
-0.1177976056933403,
-0.11959799379110336,
0.34742259979248047,
0.021325087174773216,
0.05120920017361641,
-0.3489222824573517,
0.16873377561569214,
0.23285317420959473,
0.03474760055541992,
-0.19495713710784912,
0.15635515749454498,
0.009339101612567902,
-0.22001051902770996,
-0.12831129133701324,
0.4098033905029297,
0.2252567559480667,
-0.0901624783873558,
0.09762566536664963,
-0.3563472628593445
] |
https://github.com/huggingface/datasets/issues/1840 | Add common voice | I added a Work in Progress pull request (hope that is ok). I've made a card for the dataset and filled out the common_voice.py file with information about the datset (not completely).
I didn't manage to get the tagging tool working locally on my machine but will look into that later.
Left to do.
- Tag the dataset
- Add missing information and update common_voice.py
https://github.com/huggingface/datasets/pull/1886 | ## Adding a Dataset
- **Name:** *common voice*
- **Description:** *Mozilla Common Voice Dataset*
- **Paper:** Homepage: https://voice.mozilla.org/en/datasets
- **Data:** https://voice.mozilla.org/en/datasets
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 66 | Add common voice
## Adding a Dataset
- **Name:** *common voice*
- **Description:** *Mozilla Common Voice Dataset*
- **Paper:** Homepage: https://voice.mozilla.org/en/datasets
- **Data:** https://voice.mozilla.org/en/datasets
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I added a Work in Progress pull request (hope that is ok). I've made a card for the dataset and filled out the common_voice.py file with information about the datset (not completely).
I didn't manage to get the tagging tool working locally on my machine but will look into that later.
Left to do.
- Tag the dataset
- Add missing information and update common_voice.py
https://github.com/huggingface/datasets/pull/1886 | [
-0.1344468742609024,
-0.2228565216064453,
0.00019300229905638844,
-0.15788565576076508,
0.19370679557323456,
0.0049484190531075,
0.2681260406970978,
0.30204564332962036,
-0.24950100481510162,
0.17952275276184082,
-0.3955017626285553,
0.23003479838371277,
-0.04257671907544136,
-0.026486340910196304,
0.006709379609674215,
-0.1008291244506836,
-0.10253505408763885,
0.1595253050327301,
0.1041882261633873,
-0.24802076816558838,
0.19491489231586456,
0.06684669852256775,
0.11330649256706238,
-0.07900284230709076,
-0.3241569697856903,
-0.1644454002380371,
0.023104649037122726,
-0.14355675876140594,
-0.0003260029188822955,
-0.15492744743824005,
-0.04535476863384247,
0.27155590057373047,
-0.21029864251613617,
0.6402721405029297,
-0.00010049115371657535,
-0.04443714767694473,
0.03419151529669762,
-0.24572135508060455,
-0.08319005370140076,
-0.19360439479351044,
-0.11551936715841293,
0.10766573250293732,
-0.2947715222835541,
0.11475305259227753,
-0.29591625928878784,
-0.2513289749622345,
-0.018147176131606102,
-0.23231786489486694,
0.3075140118598938,
0.30867645144462585,
0.2740311324596405,
0.0791771337389946,
0.00370590016245842,
0.10204986482858658,
0.19465556740760803,
0.15001678466796875,
-0.22055001556873322,
0.1714191734790802,
0.32425180077552795,
-0.13661032915115356,
-0.047170352190732956,
0.46626874804496765,
0.09553906321525574,
-0.206376850605011,
0.07212278246879578,
0.03368568792939186,
-0.1408480703830719,
-0.43908947706222534,
0.07487882673740387,
0.4949434697628021,
0.5199846625328064,
-0.4264082908630371,
-0.36177390813827515,
-0.31734034419059753,
0.10820264369249344,
-0.25141769647598267,
0.10102967172861099,
-0.11797520518302917,
-0.25573933124542236,
0.2239130586385727,
0.10838694125413895,
-0.12834694981575012,
-0.04898737370967865,
0.08111697435379028,
0.12946900725364685,
0.42180246114730835,
0.03177400305867195,
-0.25749069452285767,
-0.08358535170555115,
-0.13443569839000702,
-0.40912097692489624,
0.2767674922943115,
0.24516043066978455,
0.21319100260734558,
-0.29559487104415894,
-0.1637173742055893,
0.21937386691570282,
-0.5752837061882019,
0.2983841598033905,
-0.14189299941062927,
0.20433689653873444,
0.17898382246494293,
-0.33651313185691833,
0.1185014396905899,
-0.07308115065097809,
0.13830134272575378,
0.12299598753452301,
-0.18102581799030304,
0.23078280687332153,
-0.07752329856157303,
-0.05081842094659805,
0.025660891085863113,
-0.03548447787761688,
0.11081211268901825,
-0.07373365014791489,
0.009948636405169964,
0.15763495862483978,
0.002899804152548313,
-0.21170799434185028,
0.15031684935092926,
-0.19717486202716827,
-0.013434252701699734,
0.02162064053118229,
0.2945629954338074,
-0.15806664526462555,
0.32483330368995667,
-0.03216962516307831,
0.09629480540752411,
0.046116676181554794,
-0.16754254698753357,
-0.11636281758546829,
-0.10513406246900558,
-0.05985741689801216,
0.17833726108074188,
0.2899332344532013,
-0.23062705993652344,
0.24745133519172668,
0.09061593562364578,
0.2151055634021759,
0.023989086970686913,
-0.11302025616168976,
0.14889590442180634,
0.035211797803640366,
0.013094588182866573,
-0.05304015800356865,
0.14883242547512054,
-0.016197919845581055,
-0.04610434174537659,
-0.11226871609687805,
-0.14885210990905762,
0.10258528590202332,
-0.09914427250623703,
-0.4022327661514282,
0.33751392364501953,
0.1065637618303299,
-0.081678606569767,
0.3401320278644562,
0.3973250091075897,
0.18109014630317688,
-0.26076534390449524,
0.08631586283445358,
0.20446264743804932,
-0.40285617113113403,
-0.13372330367565155,
0.29882627725601196,
0.04281235858798027,
-0.25014352798461914,
-0.12954536080360413,
-0.003745324444025755,
0.06622365862131119,
-0.044556647539138794,
0.22062894701957703,
0.05884137749671936,
0.06576962769031525,
-0.08018802851438522,
0.42270025610923767,
0.2906525731086731,
-0.291836678981781,
-0.3610621690750122,
0.16778282821178436,
-0.23687055706977844,
0.14163373410701752,
0.1983558088541031,
-0.10596377402544022,
0.20487836003303528,
-0.004846273921430111,
0.506551206111908,
0.21914342045783997,
-0.22161991894245148,
0.059620607644319534,
-0.28879934549331665,
-0.1531592458486557,
0.08183419704437256,
0.09171821177005768,
-0.13946092128753662,
-0.06966595351696014,
-0.1532018631696701,
-0.1108912006020546,
0.2634883522987366,
-0.2050188183784485,
0.17995263636112213,
0.13281647861003876,
0.4978141188621521,
0.11841066181659698,
0.10319499671459198,
-0.2038646936416626,
-0.18842004239559174,
0.01005591917783022,
0.005453308112919331,
0.3142547607421875,
-0.08591693639755249,
-0.5233684182167053,
-0.29343560338020325,
-0.3056119978427887,
-0.12412820756435394,
0.010429233312606812,
0.30782249569892883,
0.2625296413898468,
0.02566591650247574,
0.020396417006850243,
-0.24929076433181763,
0.1213693916797638,
0.011215259321033955,
0.0795271024107933,
0.023016298189759254,
0.0897836908698082,
-0.2401885688304901,
-0.16040626168251038,
0.2288624346256256,
0.3455808460712433,
-0.15916572511196136,
-0.060273148119449615,
-0.0589509978890419,
0.3045242428779602,
-0.36867210268974304,
0.33526530861854553,
-0.07823077589273453,
0.3569920063018799,
0.18490156531333923,
-0.1701759397983551,
0.020104289054870605,
0.19424641132354736,
0.07412039488554001,
-0.1760631650686264,
0.1142839789390564,
0.10503935068845749,
0.3372463583946228,
-0.14759118854999542,
0.08756499737501144,
-0.160045325756073,
0.30910468101501465,
0.010209813714027405,
-0.09800931066274643,
-0.06314126402139664,
-0.07624050974845886,
-0.18100014328956604,
0.2161414623260498,
-0.015531355515122414,
-0.6039137244224548,
0.2193378061056137,
0.6066969037055969,
-0.050264161080121994,
0.26645708084106445,
0.1890585869550705,
-0.3052855134010315,
0.009105951525270939,
0.09645862132310867,
-0.23719274997711182,
0.07765848189592361,
0.2682398855686188,
0.16865608096122742,
0.03856328874826431,
-0.03255118429660797,
-0.1328755021095276,
0.028776515275239944,
-0.06176486611366272,
-0.048239704221487045,
0.5199928283691406,
0.23964820802211761,
0.12906256318092346,
-0.4704147279262543,
-0.20760279893875122,
-0.10374083369970322,
0.08200906217098236,
-0.2697701156139374,
-0.16348201036453247,
-0.07283470034599304,
-0.3710722029209137,
-0.05085476115345955,
-0.0506703183054924,
-0.3408683240413666,
-0.1255006194114685,
0.3960849940776825,
0.32985377311706543,
0.008716125041246414,
0.4096944332122803,
0.05115428939461708,
0.15715338289737701,
0.06009870022535324,
-0.12926208972930908,
-0.07130026817321777,
-0.08996128290891647,
-0.16714631021022797,
0.23671011626720428,
0.14320261776447296,
-0.1959051936864853,
0.23391449451446533,
-0.005052514374256134,
0.12643538415431976,
0.035935740917921066,
-0.48797714710235596,
0.18575149774551392,
-0.4026753008365631,
-0.2273770570755005,
0.005752498283982277,
0.00002851152567018289,
0.08938421308994293,
-0.4461907148361206,
0.07067189365625381,
-0.27567383646965027,
-0.2109450399875641,
-0.09130407869815826,
-0.17451465129852295,
0.0008465869468636811,
-0.30018818378448486,
-0.5085433721542358,
-0.12444864213466644,
-0.5271832346916199,
0.17929549515247345,
-0.28192204236984253,
0.11613161861896515,
0.2779879570007324,
-0.1688767969608307,
0.10679084062576294,
-0.2514389157295227,
0.44547101855278015,
-0.3080190122127533,
-0.22585085034370422,
0.2266341745853424,
-0.19530656933784485,
-0.30691787600517273,
0.031414374709129333,
-0.15082161128520966,
0.5303364396095276,
-0.015935929492115974,
-0.08824081718921661,
-0.17844921350479126,
-0.028380844742059708,
0.2868048846721649,
-0.03142588585615158,
0.06839492917060852,
0.23626196384429932,
0.2672899663448334,
-0.2033078521490097,
-0.16307295858860016,
-0.1307862550020218,
0.02340814657509327,
0.19730667769908905,
0.0784575417637825,
-0.01497564371675253,
0.18011872470378876,
0.13507923483848572,
0.8288182020187378,
0.06008829176425934,
-0.2452116310596466,
0.2792579233646393,
-0.2965867817401886,
0.2424112856388092,
0.012059488333761692,
-0.23159335553646088,
0.34892621636390686,
0.1363295018672943,
0.18739226460456848,
0.48026740550994873,
0.08529625087976456,
-0.014055339619517326,
-0.09350321441888809,
0.0953894779086113,
-0.34115520119667053,
-0.3090343475341797,
0.21234676241874695,
-0.1360483467578888,
0.13840430974960327,
0.02142239920794964,
0.0657254159450531,
-0.19595248997211456,
-0.10944319516420364,
0.36814871430397034,
0.1309850513935089,
-0.06330357491970062,
-0.15359456837177277,
0.14432209730148315,
-0.014917312189936638,
-0.31114837527275085,
0.04327187314629555,
0.2908511161804199,
0.16502070426940918,
-0.30336642265319824,
-0.15878787636756897,
-0.20497214794158936,
0.209376722574234,
0.25483420491218567,
-0.20755383372306824,
-0.17398719489574432,
0.16005292534828186,
0.24650269746780396,
0.019007911905646324,
0.27263912558555603,
-0.09692483395338058,
-0.11665623635053635,
0.15923970937728882,
0.16345001757144928,
-0.35005372762680054,
-0.05767907574772835,
-0.21007861196994781,
0.23656295239925385,
-0.040483176708221436,
0.07869729399681091,
-0.04890675097703934,
-0.2119986116886139,
-0.26928600668907166,
-0.030338509008288383,
0.09344550967216492,
-0.021628716960549355,
-0.016563834622502327,
-0.01746312901377678,
0.3813253343105316,
-0.23553182184696198,
0.4151551425457001,
0.3084324300289154,
0.009539156220853329,
0.28116652369499207,
0.2500530481338501,
0.11806412786245346,
0.22237752377986908,
0.023211268708109856,
0.31184905767440796,
0.11292461305856705,
-0.21612197160720825,
-0.1879102736711502,
-0.19739563763141632,
0.44517236948013306,
0.11900743842124939,
0.21692213416099548,
0.08251634985208511,
-0.07614678889513016,
0.029180441051721573,
-0.18120723962783813,
0.332491934299469,
0.30719736218452454,
0.22143658995628357,
-0.18135373294353485,
-0.2902567982673645,
0.14264066517353058,
-0.006095959339290857,
-0.17870767414569855,
0.3708271384239197,
-0.011330618523061275,
-0.31258341670036316,
0.12018303573131561,
-0.38054510951042175,
1.053937554359436,
0.10600553452968597,
0.17056307196617126,
0.3440307676792145,
0.17082682251930237,
0.2144337147474289,
-0.43251991271972656,
0.141215518116951,
0.062288738787174225,
-0.2115292251110077,
0.057501114904880524,
0.16621653735637665,
-0.1885235607624054,
0.03317001461982727,
-0.36312294006347656,
0.06026608124375343,
0.01590863987803459,
0.060248665511608124,
0.13082261383533478,
0.3993856608867645,
-0.06641828268766403,
-0.4873318672180176,
-0.2496802806854248,
0.19656968116760254,
-0.12725929915905,
0.260157972574234,
0.1786092072725296,
-0.24985389411449432,
-0.2813640534877777,
-0.08410672843456268,
-0.22189857065677643,
0.20950385928153992,
-0.24998360872268677,
-0.2165777087211609,
-0.05864105373620987,
0.05421580374240875,
0.2628610134124756,
0.023547373712062836,
0.2635435163974762,
0.1367250680923462,
-0.2656131982803345,
0.16961242258548737,
0.20357686281204224,
0.14257536828517914,
-0.03953736275434494,
0.10316126048564911,
0.48672252893447876,
-0.2618868350982666,
-0.18681956827640533,
0.1463111788034439,
0.09677513688802719,
-0.008075004443526268,
-0.36744993925094604,
-0.3758530616760254,
0.06263868510723114,
-0.21917547285556793,
0.3816475570201874,
0.23621916770935059,
-0.07461382448673248,
-0.12784390151500702,
0.2453705370426178,
0.18140946328639984,
-0.39470404386520386,
0.012283115647733212,
0.12933064997196198,
0.0621427446603775,
-0.15878134965896606,
0.16833750903606415,
0.1127035990357399,
-0.049609165638685226,
0.30671554803848267,
0.12754806876182556,
-0.057534489780664444,
-0.30171582102775574,
-0.31669852137565613,
0.023554392158985138,
-0.22332242131233215,
-0.33518335223197937,
0.0105897793546319,
-0.3136933445930481,
-0.10528121888637543,
0.26681843400001526,
0.06110585853457451,
0.1855640858411789,
0.0070175849832594395,
-0.055381935089826584,
-0.5129721164703369,
0.10316350311040878,
0.08678749203681946,
0.1530071645975113,
-0.2143237441778183,
0.3322763741016388,
0.10865166038274765,
0.1653895080089569,
-0.5192533135414124,
-0.24624262750148773,
0.033290646970272064,
0.19248537719249725,
0.18423260748386383,
-0.27023786306381226,
0.3270450234413147,
-0.11535816639661789,
0.33272331953048706,
0.03619356080889702,
-0.030536532402038574,
-0.3145813047885895,
-0.20677639544010162,
0.0717499703168869,
0.2016596645116806,
-0.004105612635612488,
0.14886881411075592,
0.19700390100479126,
-0.21910107135772705,
-0.14338237047195435,
0.23317433893680573,
0.06077137961983681,
-0.010069345124065876,
0.1859634667634964,
0.005492521915584803,
0.08294180780649185,
0.2363806813955307,
-0.33513009548187256,
0.07736344635486603,
0.1577957421541214,
0.125300794839859,
-0.02042701281607151,
-0.2257256954908371,
-0.2216385453939438,
0.02099066600203514,
0.19401243329048157,
0.17620950937271118,
-0.08129891008138657,
0.21194219589233398,
-0.01267677079886198,
-0.13161368668079376,
0.24304698407649994,
0.4936257004737854,
0.03720733895897865,
-0.1053428128361702,
-0.017730707302689552,
0.3020397126674652,
0.37562182545661926,
-0.30246350169181824,
0.15578703582286835,
0.11947526782751083,
-0.18147769570350647,
0.3449593186378479,
0.11649022251367569,
-0.001555191702209413,
0.12042020261287689,
-0.04639296233654022,
-0.026950493454933167,
-0.05550558492541313,
-0.23702122271060944,
0.029638785868883133,
0.03038761392235756,
-0.05365478992462158,
0.026065640151500702,
0.10193967074155807,
-0.008862804621458054,
0.3165411651134491,
0.2017362266778946,
-0.21977901458740234,
0.3501242995262146,
0.11471859365701675,
-0.15322230756282806,
0.43215855956077576,
-0.05663253739476204,
0.015575245022773743,
0.0331123061478138,
-0.06502477079629898,
0.21848149597644806,
0.08243498206138611,
0.5198341012001038,
-0.1819768100976944,
-0.2765977084636688,
0.15746945142745972,
0.3043005168437958,
-0.060805000364780426,
-0.05194807052612305,
-0.13808798789978027,
-0.028654037043452263,
-0.12118510901927948,
-0.2810139060020447,
0.214259535074234,
-0.034556347876787186,
0.13609693944454193,
-0.022732054814696312,
-0.11950680613517761,
-0.09476020187139511,
-0.2054433822631836,
0.09517966210842133,
0.5703052878379822,
-0.04886326193809509,
0.22979800403118134,
0.09430313855409622,
-0.35981467366218567,
0.10324238985776901,
0.34856706857681274,
0.28550073504447937,
-0.11418016999959946,
-0.170252725481987,
0.4518781006336212,
-0.12363246083259583,
-0.0518495999276638,
-0.0853939950466156,
0.1682271510362625,
0.24829241633415222,
0.037215955555438995,
0.09634008258581161,
0.23968300223350525,
-0.28873518109321594,
-0.18794018030166626,
0.01634630747139454,
0.014206006191670895,
-0.0523938424885273,
0.14530140161514282,
-0.18795964121818542,
-0.15689410269260406,
-0.35509631037712097,
-0.10935521125793457,
-0.5188397765159607,
-0.12691566348075867,
0.4577679932117462,
0.09511268138885498,
0.14408966898918152,
-0.35248351097106934,
0.15030723810195923,
0.07764929533004761,
0.16505879163742065,
0.38416463136672974,
0.10569018870592117,
0.25536033511161804,
0.012490306049585342,
-0.49825891852378845,
0.2732190489768982,
0.17420706152915955,
-0.07872892171144485,
-0.30843713879585266,
-0.020290032029151917,
0.38063791394233704,
0.06946273893117905,
0.05835661292076111,
-0.2635871469974518,
-0.16060864925384521,
-0.310697466135025,
-0.25412246584892273,
-0.012029346078634262,
-0.34385570883750916,
0.150567427277565,
0.22030551731586456,
-0.19606061279773712,
0.012534353882074356,
-0.2732778787612915,
0.2478053867816925,
-0.1533525437116623,
0.08552233874797821,
-0.05753277614712715,
-0.17119766771793365,
0.2229480743408203,
-0.04617132619023323,
0.2796878516674042,
-0.33144327998161316,
-0.2411099523305893,
-0.007700663059949875,
-0.14235837757587433,
-0.3083869516849518,
0.12256409972906113,
0.07038873434066772,
0.5162592530250549,
0.05529901012778282,
-0.13878118991851807,
-0.2611922323703766,
0.1268993616104126,
0.14181014895439148,
-0.24113669991493225,
-0.1124153584241867,
0.3134896755218506,
-0.021800201386213303,
0.07893255352973938,
0.11398256570100784,
0.2645879089832306,
-0.18105661869049072,
-0.023557135835289955,
-0.2825872004032135,
-0.5902603268623352,
0.40513917803764343,
-0.26498091220855713,
-0.2718053162097931,
-0.22904419898986816,
0.2613844871520996,
0.049172673374414444,
0.03271781653165817,
-0.5370392799377441,
0.11342913657426834,
0.2650887072086334,
0.1048499122262001,
-0.2321517914533615,
0.03501401096582413,
-0.011358862742781639,
-0.27136310935020447,
-0.09939414262771606,
0.29484865069389343,
0.09603186696767807,
-0.05318289250135422,
0.10733310878276825,
-0.2708474397659302
] |
https://github.com/huggingface/datasets/issues/1838 | Add tedlium | Hi @patrickvonplaten
I can have a look to this dataset later since I am trying to add the OpenSLR dataset https://github.com/huggingface/datasets/pull/2173
Hopefully I have enough space since the compressed file is 21GB. The release 3 is even bigger: 54GB :-0 | ## Adding a Dataset
- **Name:** *tedlium*
- **Description:** *The TED-LIUM 1-3 corpus is English-language TED talks, with transcriptions, sampled at 16kHz. It contains about 118 hours of speech.*
- **Paper:** Homepage: http://www.openslr.org/7/, https://lium.univ-lemans.fr/en/ted-lium2/ &, https://www.openslr.org/51/
- **Data:** http://www.openslr.org/7/
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/tedlium
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 40 | Add tedlium
## Adding a Dataset
- **Name:** *tedlium*
- **Description:** *The TED-LIUM 1-3 corpus is English-language TED talks, with transcriptions, sampled at 16kHz. It contains about 118 hours of speech.*
- **Paper:** Homepage: http://www.openslr.org/7/, https://lium.univ-lemans.fr/en/ted-lium2/ &, https://www.openslr.org/51/
- **Data:** http://www.openslr.org/7/
- **Motivation:** Important speech dataset
- **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/tedlium
If interested in tackling this issue, feel free to tag @patrickvonplaten
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @patrickvonplaten
I can have a look to this dataset later since I am trying to add the OpenSLR dataset https://github.com/huggingface/datasets/pull/2173
Hopefully I have enough space since the compressed file is 21GB. The release 3 is even bigger: 54GB :-0 | [
-0.34317752718925476,
0.07050645351409912,
-0.06830784678459167,
0.13331177830696106,
0.06836728751659393,
-0.020419856533408165,
0.035358116030693054,
0.37950700521469116,
-0.42947453260421753,
0.27444109320640564,
-0.2579483389854431,
0.3504011631011963,
-0.20843695104122162,
-0.09178823977708817,
0.22697386145591736,
-0.3618195652961731,
-0.14128348231315613,
0.19737207889556885,
-0.16586948931217194,
-0.18006159365177155,
0.04707271605730057,
0.1284918189048767,
-0.05396535247564316,
-0.45203617215156555,
-0.2660464644432068,
-0.08072824031114578,
-0.11426270753145218,
0.025998307392001152,
-0.18035706877708435,
-0.03263765946030617,
-0.010999839752912521,
0.10458783060312271,
0.002043140586465597,
0.5920299887657166,
-0.00010600442328723148,
0.07620113343000412,
0.256340354681015,
-0.19704186916351318,
-0.12616606056690216,
-0.09200426191091537,
0.22391365468502045,
-0.18769711256027222,
-0.40690934658050537,
0.016464026644825935,
-0.2588905096054077,
-0.30763721466064453,
0.08345425128936768,
-0.005160368047654629,
0.209291011095047,
0.3986491858959198,
0.23539166152477264,
0.5247442126274109,
0.34597083926200867,
-0.13761933147907257,
0.2615656554698944,
0.05995696410536766,
-0.18796288967132568,
-0.006951279006898403,
0.1280573457479477,
0.16609860956668854,
0.09799440205097198,
0.37114423513412476,
-0.06103793904185295,
-0.13150598108768463,
-0.09253830462694168,
0.04558029770851135,
-0.3500027358531952,
-0.23853114247322083,
0.0007921262877061963,
0.5430954694747925,
0.6054988503456116,
-0.013903587125241756,
-0.1867125779390335,
-0.13106651604175568,
0.06369846314191818,
-0.43263304233551025,
0.083490289747715,
0.1428719311952591,
-0.23880355060100555,
0.13386020064353943,
0.14944425225257874,
-0.1192982867360115,
-0.3330070376396179,
0.4302210509777069,
0.13756228983402252,
0.21578609943389893,
-0.14521516859531403,
-0.09252554923295975,
0.15935923159122467,
-0.17506524920463562,
-0.22677864134311676,
0.13491928577423096,
0.08575909584760666,
0.0308887530118227,
-0.29977622628211975,
-0.18996088206768036,
0.048235759139060974,
-0.32863643765449524,
0.3431006073951721,
-0.1068294420838356,
0.03705886751413345,
0.09686014801263809,
-0.1972140073776245,
-0.09674392640590668,
-0.14319626986980438,
0.12444372475147247,
-0.19614467024803162,
0.056293319910764694,
0.026355355978012085,
-0.07687978446483612,
-0.0339646115899086,
0.04442836344242096,
-0.18014399707317352,
0.0054020872339606285,
-0.19894398748874664,
-0.17564861476421356,
0.005603479687124491,
0.028463110327720642,
0.07304078340530396,
0.02557411603629589,
-0.11701533198356628,
-0.007727514486759901,
-0.05212635546922684,
0.26151716709136963,
-0.07376176118850708,
0.19352978467941284,
0.06409405171871185,
0.17936469614505768,
-0.06681004166603088,
-0.22734335064888,
-0.2411784678697586,
0.20276840031147003,
0.008669490925967693,
0.18342278897762299,
0.20941607654094696,
-0.16752484440803528,
0.44418996572494507,
-0.0717102661728859,
0.30502933263778687,
0.1925257295370102,
0.26712507009506226,
-0.09309688955545425,
0.12177024036645889,
0.3277331590652466,
0.0867614820599556,
0.13704487681388855,
-0.018653417006134987,
-0.10395176708698273,
-0.09375467151403427,
0.12360604107379913,
-0.042606890201568604,
-0.18356281518936157,
-0.3241637945175171,
0.2468050867319107,
0.04723604768514633,
-0.17240440845489502,
-0.26655226945877075,
0.4495430886745453,
0.02543695643544197,
0.011574894189834595,
-0.013362298719584942,
0.091233029961586,
-0.4628693461418152,
0.008844791911542416,
0.13888339698314667,
0.06605423241853714,
-0.18564336001873016,
0.0794808566570282,
-0.009876635856926441,
0.2739852964878082,
0.30115166306495667,
0.3396630883216858,
-0.1163511574268341,
0.14940637350082397,
-0.05226774141192436,
0.3731701970100403,
0.3246428370475769,
-0.5450290441513062,
-0.45335853099823,
0.10476977378129959,
-0.3069199025630951,
0.05193508788943291,
0.25197094678878784,
0.14997044205665588,
0.37376081943511963,
-0.08304568380117416,
0.4227800965309143,
0.2034454643726349,
0.011058079078793526,
-0.1320338249206543,
-0.32993417978286743,
-0.21081990003585815,
0.07213882356882095,
0.23344427347183228,
-0.0465109758079052,
-0.1430468112230301,
-0.18277738988399506,
0.5555555820465088,
0.21206727623939514,
-0.1718607246875763,
0.11728531122207642,
0.32813760638237,
0.05916060134768486,
0.058817896991968155,
-0.017208635807037354,
-0.22878779470920563,
-0.07493364810943604,
-0.12331154942512512,
0.2061927318572998,
0.5123472809791565,
0.3007344901561737,
-0.28306740522384644,
-0.11932750046253204,
-0.2881750762462616,
-0.005893399473279715,
-0.004929482936859131,
0.2434930056333542,
0.19549798965454102,
0.14457249641418457,
0.059277866035699844,
-0.1752578616142273,
0.20670801401138306,
-0.3404856324195862,
0.08654332160949707,
-0.3777463436126709,
0.14741358160972595,
-0.07588477432727814,
-0.2832172214984894,
0.32211020588874817,
0.07952483743429184,
-0.06625178456306458,
-0.22124865651130676,
0.11549016088247299,
0.13404163718223572,
-0.23289330303668976,
0.20997239649295807,
-0.06790412962436676,
0.2508220970630646,
0.24302397668361664,
-0.2084759622812271,
-0.04382771626114845,
0.3286625146865845,
-0.03762093186378479,
-0.13054583966732025,
-0.04505251720547676,
-0.050719257444143295,
0.26231542229652405,
-0.24464023113250732,
-0.018198348581790924,
-0.03206663578748703,
0.30464550852775574,
-0.08504384756088257,
-0.14130426943302155,
-0.19665579497814178,
0.2957744896411896,
0.21944613754749298,
-0.12822571396827698,
-0.0062851314432919025,
-0.4803936183452606,
0.22966015338897705,
0.3415328562259674,
-0.16804289817810059,
0.1300329566001892,
0.25494611263275146,
-0.2882515490055084,
-0.03194244205951691,
-0.04856298118829727,
-0.18393667042255402,
0.2958206534385681,
0.3423230051994324,
0.18629898130893707,
-0.010988088324666023,
0.032456111162900925,
-0.27779626846313477,
0.15960992872714996,
-0.0229555182158947,
0.017058826982975006,
0.39795365929603577,
0.26679909229278564,
0.10276129841804504,
-0.45139333605766296,
-0.010057823732495308,
0.04960942268371582,
0.25149697065353394,
-0.11098426580429077,
-0.2317356914281845,
-0.27712345123291016,
-0.2104731947183609,
-0.10243988782167435,
-0.13423967361450195,
0.005529569461941719,
-0.040166422724723816,
0.2574995756149292,
0.30702951550483704,
-0.11065378785133362,
0.1858118623495102,
0.1710905134677887,
0.03871949017047882,
0.15629589557647705,
-0.11126299947500229,
0.021046645939350128,
0.001996108330786228,
-0.14980792999267578,
0.17644236981868744,
0.13085199892520905,
0.1032978892326355,
0.33104872703552246,
-0.05679628252983093,
0.005551908630877733,
-0.16061635315418243,
-0.5656262636184692,
0.27930667996406555,
-0.38470596075057983,
0.0875755324959755,
-0.0339028500020504,
0.24602913856506348,
0.1505427211523056,
-0.459891676902771,
0.02922673337161541,
0.08525487780570984,
-0.2532879710197449,
-0.047189559787511826,
-0.18322807550430298,
-0.10326256603002548,
-0.17880630493164062,
-0.48048433661460876,
-0.1146160215139389,
-0.5522741079330444,
0.19624117016792297,
0.06530642509460449,
0.06348367780447006,
0.42901426553726196,
-0.0963236391544342,
0.17652545869350433,
0.06469862163066864,
0.1573942005634308,
-0.3818119764328003,
-0.2910323143005371,
0.5326827168464661,
-0.37730085849761963,
-0.4238978326320648,
-0.09341218322515488,
-0.11861854046583176,
0.10722137987613678,
-0.0012674168683588505,
-0.391693651676178,
-0.3313251733779907,
-0.13924981653690338,
-0.04912744462490082,
-0.05119287595152855,
0.020505163818597794,
0.24273797869682312,
-0.16082856059074402,
-0.2102481722831726,
-0.18639078736305237,
0.007603323552757502,
0.16238613426685333,
0.17662829160690308,
0.06794159859418869,
-0.10427720844745636,
0.1803443282842636,
-0.02731727436184883,
0.23209930956363678,
0.3803938031196594,
-0.13082070648670197,
0.23891808092594147,
-0.12932848930358887,
0.20535768568515778,
-0.21617376804351807,
-0.150118887424469,
0.30809518694877625,
0.2239319533109665,
0.10043435543775558,
0.4423476755619049,
0.0839700847864151,
-0.006821816321462393,
0.04870598763227463,
-0.2918665111064911,
-0.046013541519641876,
-0.2875131666660309,
0.20974354445934296,
0.3304285705089569,
0.09423628449440002,
-0.03931981697678566,
-0.1384405791759491,
-0.2583667039871216,
-0.32347849011421204,
0.19807671010494232,
0.23724927008152008,
-0.11271843314170837,
-0.0732654482126236,
-0.4805627763271332,
0.3063940405845642,
-0.6605842113494873,
0.04691325128078461,
0.1685171127319336,
0.23971788585186005,
-0.23501056432724,
-0.054812319576740265,
-0.09030008316040039,
0.03486185893416405,
0.5300663709640503,
-0.2390969842672348,
-0.11947577446699142,
0.1587284505367279,
0.18214745819568634,
-0.16536326706409454,
0.3114030957221985,
-0.22986777126789093,
-0.22696030139923096,
0.2978043258190155,
0.47356313467025757,
-0.32141679525375366,
0.0065114726312458515,
0.3584793210029602,
0.358286589384079,
0.07073576748371124,
-0.0315973274409771,
-0.1629655361175537,
-0.5779339075088501,
-0.16531479358673096,
-0.10914222151041031,
0.22320228815078735,
0.29616260528564453,
0.2642088532447815,
-0.23368695378303528,
0.2393154799938202,
-0.14970806241035461,
0.38350075483322144,
-0.12889249622821808,
0.16939787566661835,
0.46447625756263733,
0.1934642642736435,
-0.026081128045916557,
-0.0012997158337384462,
0.16904836893081665,
0.1843128353357315,
0.12550967931747437,
-0.3187142610549927,
0.09650655090808868,
-0.4157077372074127,
0.07754840701818466,
0.11776841431856155,
-0.00813674833625555,
0.21318376064300537,
-0.3196205496788025,
0.3337208330631256,
-0.23758280277252197,
0.48724716901779175,
0.3090243339538574,
0.038047049194574356,
-0.3609594702720642,
-0.22621452808380127,
0.3978452980518341,
0.02006441168487072,
0.16308711469173431,
0.6163820624351501,
0.17523744702339172,
-0.2517215609550476,
0.20078614354133606,
-0.11263862997293472,
1.06847083568573,
0.004505799151957035,
0.14938144385814667,
0.49841123819351196,
0.15195024013519287,
0.4557754099369049,
-0.40850383043289185,
0.09112925827503204,
0.32473987340927124,
-0.22845277190208435,
0.047040339559316635,
0.13970409333705902,
-0.16720525920391083,
-0.08585052937269211,
-0.49164238572120667,
-0.06979774683713913,
-0.020287776365876198,
-0.09104691445827484,
0.030360370874404907,
0.5705024600028992,
0.05274835601449013,
-0.45451921224594116,
-0.4049416780471802,
0.23123309016227722,
0.23293055593967438,
0.11132947355508804,
0.14141738414764404,
-0.16985777020454407,
-0.23187759518623352,
-0.0795401930809021,
-0.39217767119407654,
-0.00854512955993414,
-0.1524391770362854,
-0.10356543213129044,
-0.07071620970964432,
-0.33873942494392395,
0.1403518170118332,
0.2051343470811844,
0.4466014802455902,
0.0653495118021965,
-0.2453504502773285,
0.15920522809028625,
-0.3543907701969147,
-0.20519296824932098,
0.020993443205952644,
-0.17987661063671112,
0.3663346767425537,
-0.3109210431575775,
0.03398909047245979,
0.22564396262168884,
0.1066405326128006,
-0.2248930037021637,
-0.1531495898962021,
-0.28632044792175293,
-0.11657209694385529,
-0.12289583683013916,
0.041750214993953705,
0.43275973200798035,
-0.22382155060768127,
-0.14104963839054108,
0.20169013738632202,
-0.00934240035712719,
-0.3379737436771393,
-0.0702148899435997,
0.18146713078022003,
-0.16633763909339905,
-0.013168850913643837,
0.24019291996955872,
0.33086100220680237,
-0.041789427399635315,
0.4671463370323181,
0.275114506483078,
-0.1293354034423828,
-0.24958348274230957,
-0.22516700625419617,
-0.06196673586964607,
-0.293313205242157,
0.023881640285253525,
0.14277751743793488,
0.024141043424606323,
0.05208008363842964,
0.5436134934425354,
0.007055767811834812,
-0.10380800813436508,
-0.1791742891073227,
0.017617816105484962,
-0.47040268778800964,
0.060273341834545135,
-0.1382644772529602,
0.110406793653965,
-0.07395476847887039,
0.49508538842201233,
-0.05994197726249695,
0.20715539157390594,
-0.40440669655799866,
0.028052465990185738,
-0.10699119418859482,
0.1881232112646103,
0.3210679590702057,
-0.15310774743556976,
0.3761626183986664,
-0.009804900735616684,
0.17064876854419708,
0.0929282084107399,
-0.18388976156711578,
-0.2533869445323944,
-0.23445087671279907,
0.062620148062706,
0.1027790755033493,
-0.08437448740005493,
0.08307704329490662,
-0.11792478710412979,
-0.28848981857299805,
-0.03096282295882702,
0.3303529620170593,
0.07960745692253113,
-0.06392001360654831,
-0.008284063078463078,
0.010266542434692383,
-0.021512549370527267,
0.132753387093544,
-0.03855488449335098,
0.12752439081668854,
0.2622135877609253,
0.08459936082363129,
-0.02693762443959713,
0.07923467457294464,
-0.18813066184520721,
-0.11152227967977524,
0.21778680384159088,
0.1796775758266449,
-0.22911188006401062,
0.23723676800727844,
-0.11429522931575775,
-0.09210047125816345,
0.15452681481838226,
0.17131341993808746,
-0.11870213598012924,
-0.1974862515926361,
0.04277073219418526,
0.2852046489715576,
0.28012898564338684,
-0.321232408285141,
-0.02420363761484623,
0.1220371201634407,
-0.04266020283102989,
0.21538189053535461,
0.06799016892910004,
0.02460663393139839,
0.0851311907172203,
0.08556424826383591,
0.06167912483215332,
0.051207516342401505,
0.029098669067025185,
0.10722179710865021,
0.09474644809961319,
0.05217725411057472,
0.013673301786184311,
-0.08816283196210861,
-0.02368350327014923,
0.1438586562871933,
-0.049496568739414215,
-0.04202910140156746,
0.47596800327301025,
0.06040751561522484,
0.0208889152854681,
0.1528875231742859,
-0.08183441311120987,
-0.1796119660139084,
0.2707376480102539,
0.148234561085701,
0.3688294589519501,
-0.0102098248898983,
0.575325071811676,
0.0780443623661995,
-0.08323483914136887,
-0.03231966122984886,
0.330831915140152,
-0.030084187164902687,
-0.1051604226231575,
-0.22051958739757538,
-0.08473941683769226,
-0.17597566545009613,
-0.0009998312452808022,
0.17675107717514038,
-0.09959717094898224,
-0.36185532808303833,
0.20245327055454254,
-0.17533227801322937,
-0.01028226688504219,
-0.11822593212127686,
0.036201171576976776,
0.02175130695104599,
-0.1454070508480072,
0.3191003203392029,
0.17872187495231628,
-0.15709808468818665,
0.09542509913444519,
0.3117290735244751,
0.3932819962501526,
-0.03461776673793793,
-0.03258458524942398,
0.37844032049179077,
-0.0071039642207324505,
-0.042668431997299194,
-0.10957000404596329,
0.36526915431022644,
0.30005472898483276,
-0.14500002562999725,
0.2046090066432953,
0.17622657120227814,
-0.31389912962913513,
-0.010108215734362602,
0.019819116219878197,
-0.09884369373321533,
-0.21416014432907104,
-0.11335926502943039,
-0.04545034095644951,
0.027653886005282402,
-0.4261866509914398,
-0.2730330228805542,
-0.48598647117614746,
0.2697597146034241,
0.43828150629997253,
-0.1422920823097229,
0.05457962676882744,
-0.08690118044614792,
0.13180816173553467,
-0.3137735426425934,
0.3943658471107483,
0.316816121339798,
0.1392354965209961,
0.09830613434314728,
-0.45399823784828186,
-0.44401684403419495,
0.3314884603023529,
-0.19362474977970123,
-0.3071642220020294,
-0.16997425258159637,
0.2537257671356201,
0.47976255416870117,
0.21207311749458313,
-0.05764888972043991,
-0.6558502912521362,
-0.11153394728899002,
0.020235421136021614,
-0.3238794803619385,
0.2111014425754547,
-0.16958685219287872,
0.18981124460697174,
0.1044226735830307,
-0.12298473715782166,
-0.0006071042735129595,
0.028497476130723953,
0.14516423642635345,
-0.4149312376976013,
0.28972119092941284,
-0.20879869163036346,
0.012734221294522285,
0.19098162651062012,
-0.07229457795619965,
0.27293089032173157,
-0.31623226404190063,
-0.13068920373916626,
-0.13382703065872192,
0.13076426088809967,
-0.2490921914577484,
-0.2017725557088852,
0.15915101766586304,
0.3778848946094513,
-0.1294214278459549,
0.2802940309047699,
-0.10988201946020126,
0.31183913350105286,
0.011589250527322292,
-0.027020759880542755,
-0.3153155744075775,
0.2775218188762665,
-0.10674029588699341,
-0.10656605660915375,
0.12288760393857956,
0.4937790036201477,
-0.03325517848134041,
-0.03168341889977455,
-0.2956218719482422,
-0.5551958680152893,
0.43372252583503723,
-0.5333992838859558,
-0.2663988173007965,
0.10709193348884583,
0.03607049211859703,
0.16705720126628876,
-0.011262195184826851,
-0.7686282396316528,
0.2083083987236023,
0.2306218296289444,
0.2212299257516861,
-0.1843513697385788,
0.3145610988140106,
0.06856738775968552,
-0.0572856143116951,
-0.031486865133047104,
0.10106677561998367,
0.13174894452095032,
-0.2307509332895279,
-0.12340875715017319,
-0.3093240261077881
] |
https://github.com/huggingface/datasets/issues/1831 | Some question about raw dataset download info in the project . | Hi ! The `dl_manager` is a `DownloadManager` object and is responsible for downloading the raw data files.
It is used by dataset builders in their `_split_generators` method to download the raw data files that are necessary to build the datasets splits.
The `Conll2003` class is a dataset builder, and so you can download all the raw data files by calling `_split_generators` with a download manager:
```python
from datasets import DownloadManager
from datasets.load import import_main_class
conll2003_builder = import_main_class(...)
dl_manager = DownloadManager()
splis_generators = conll2003_builder._split_generators(dl_manager)
```
Then you can see what files have been downloaded with
```python
dl_manager.get_recorded_sizes_checksums()
```
It returns a dictionary with the format {url: {num_bytes: int, checksum: str}}
Then you can get the actual location of the downloaded files with
```python
from datasets import cached_path
local_path_to_downloaded_file = cached_path(url)
```
------------------
Note that you can also get the urls from the Dataset object:
```python
from datasets import load_dataset
conll2003 = load_dataset("conll2003")
print(conll2003["train"].download_checksums)
```
It returns the same dictionary with the format {url: {num_bytes: int, checksum: str}} | Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ? | 166 | Some question about raw dataset download info in the project .
Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ?
Hi ! The `dl_manager` is a `DownloadManager` object and is responsible for downloading the raw data files.
It is used by dataset builders in their `_split_generators` method to download the raw data files that are necessary to build the datasets splits.
The `Conll2003` class is a dataset builder, and so you can download all the raw data files by calling `_split_generators` with a download manager:
```python
from datasets import DownloadManager
from datasets.load import import_main_class
conll2003_builder = import_main_class(...)
dl_manager = DownloadManager()
splis_generators = conll2003_builder._split_generators(dl_manager)
```
Then you can see what files have been downloaded with
```python
dl_manager.get_recorded_sizes_checksums()
```
It returns a dictionary with the format {url: {num_bytes: int, checksum: str}}
Then you can get the actual location of the downloaded files with
```python
from datasets import cached_path
local_path_to_downloaded_file = cached_path(url)
```
------------------
Note that you can also get the urls from the Dataset object:
```python
from datasets import load_dataset
conll2003 = load_dataset("conll2003")
print(conll2003["train"].download_checksums)
```
It returns the same dictionary with the format {url: {num_bytes: int, checksum: str}} | [
-0.13929522037506104,
-0.09699501097202301,
-0.057543739676475525,
0.5315549969673157,
0.1806543618440628,
-0.07769414782524109,
0.12914760410785675,
-0.06849304586648941,
0.13074743747711182,
0.1263672113418579,
-0.4010898470878601,
0.19039911031723022,
-0.07171807438135147,
0.5283397436141968,
0.16424044966697693,
-0.06509823352098465,
-0.11068353056907654,
0.147578164935112,
-0.09337645024061203,
-0.07304345816373825,
-0.3944443464279175,
0.2827211022377014,
-0.31262725591659546,
0.1286267191171646,
-0.13044406473636627,
0.0052320766262710094,
-0.03755929321050644,
0.28819406032562256,
-0.4633621573448181,
-0.27664637565612793,
0.35594165325164795,
0.22831186652183533,
0.41031014919281006,
0.25496184825897217,
-0.00012279486691113561,
0.045344140380620956,
0.29476723074913025,
-0.32166606187820435,
-0.5304582118988037,
-0.35046395659446716,
-0.6374028325080872,
-0.0066076843068003654,
-0.08765878528356552,
-0.3026109039783478,
0.07270073145627975,
-0.044414639472961426,
-0.07044865190982819,
-0.2377198338508606,
0.11797062307596207,
0.10204333066940308,
0.07890815287828445,
0.280170738697052,
-0.025804506614804268,
0.04328441619873047,
0.28489670157432556,
0.28035929799079895,
0.05253811553120613,
0.10770343989133835,
-0.07476820796728134,
0.4011954069137573,
0.25058257579803467,
0.3100159764289856,
0.1377086341381073,
0.15744730830192566,
0.5022884011268616,
0.3205776810646057,
-0.27263110876083374,
-0.3046388328075409,
0.1046135276556015,
0.1935165822505951,
0.40408119559288025,
-0.3673972189426422,
-0.5436564683914185,
-0.3483606278896332,
-0.16833697259426117,
-0.5926064848899841,
0.032203901559114456,
0.14673785865306854,
-0.3645539879798889,
0.30694636702537537,
-0.5524965524673462,
-0.42425620555877686,
-0.10692363232374191,
-0.02951398678123951,
-0.19636361300945282,
0.3718147277832031,
-0.35957425832748413,
0.06532438844442368,
0.07806874066591263,
0.42947402596473694,
0.19982323050498962,
-0.29332926869392395,
-0.0176408551633358,
0.27592211961746216,
-0.17268051207065582,
-0.08907771110534668,
-0.02109771966934204,
0.30464354157447815,
0.19167837500572205,
-0.003178991610184312,
-0.11859028786420822,
-0.19603213667869568,
0.06447891891002655,
0.09115496277809143,
0.36028334498405457,
0.13484063744544983,
0.12200536578893661,
0.2712996006011963,
0.22105401754379272,
0.15820345282554626,
0.16287493705749512,
-0.2994876205921173,
-0.039951056241989136,
-0.049970097839832306,
-0.3093302249908447,
0.16166254878044128,
0.07092636823654175,
-0.12266479432582855,
-0.1993660181760788,
-0.21416184306144714,
-0.10704226791858673,
-0.2923625707626343,
0.32213518023490906,
0.4048182964324951,
-0.11206220835447311,
0.07313163578510284,
-0.019703015685081482,
0.04848184064030647,
0.1325499415397644,
-0.21030448377132416,
-0.10686518251895905,
-0.14259180426597595,
-0.14245228469371796,
0.13092100620269775,
-0.2759811580181122,
-0.07525267452001572,
0.3806263506412506,
0.052351608872413635,
0.015530174598097801,
0.007027763873338699,
0.020547764375805855,
-0.13927718997001648,
0.20368967950344086,
0.15111379325389862,
-0.013135691173374653,
0.30025792121887207,
-0.15822602808475494,
-0.33505597710609436,
-0.19506101310253143,
-0.09400484710931778,
-0.36492836475372314,
-0.421602338552475,
0.015824642032384872,
0.025518091395497322,
-0.22532309591770172,
0.10368631780147552,
-0.30645686388015747,
-0.025836260989308357,
0.10352835804224014,
0.355207234621048,
0.0736040249466896,
-0.04130443558096886,
-0.4622364044189453,
-0.26651158928871155,
0.44003674387931824,
0.48189738392829895,
-0.24818412959575653,
-0.14288948476314545,
0.048859816044569016,
-0.37079858779907227,
0.11049751192331314,
0.024711698293685913,
-0.3937755525112152,
0.5463495254516602,
-0.4110983908176422,
-0.12885069847106934,
0.41116297245025635,
-0.4205343425273895,
-0.2743716835975647,
0.5594004392623901,
0.11898863315582275,
-0.00406314292922616,
0.35081401467323303,
-0.002953228773549199,
0.2521328628063202,
-0.08631306886672974,
-0.11830601841211319,
0.5005714297294617,
0.178505539894104,
-0.11542893946170807,
-0.015046822838485241,
-0.19980955123901367,
-0.1504230797290802,
-0.10768312215805054,
-0.1324988156557083,
0.25103285908699036,
0.03637873753905296,
-0.09306126087903976,
0.5309392809867859,
-0.11459650844335556,
0.19996729493141174,
0.3154316842556,
0.026568636298179626,
0.24618805944919586,
-0.019120806828141212,
0.02923436090350151,
-0.6519913673400879,
0.16605418920516968,
-0.35801878571510315,
-0.24228942394256592,
-0.3038731515407562,
-0.3468746840953827,
-0.3359970450401306,
0.1526380330324173,
-0.29515400528907776,
-0.3711605668067932,
-0.05847170948982239,
0.16493074595928192,
0.49272873997688293,
-0.033501382917165756,
-0.30862531065940857,
0.5376638174057007,
-0.07711273431777954,
0.11037103831768036,
-0.1524745225906372,
0.02150636352598667,
0.109948068857193,
0.1840829998254776,
-0.06649656593799591,
0.1019262820482254,
0.10839793086051941,
-0.1885494440793991,
0.05988143011927605,
0.5309789776802063,
0.23963366448879242,
0.18183352053165436,
0.15408767759799957,
0.02922111749649048,
0.24965788424015045,
0.12449216842651367,
-0.07289434969425201,
-0.2197054922580719,
0.21307416260242462,
0.2021094560623169,
0.09575781971216202,
0.41944384574890137,
0.003916363697499037,
0.2770683765411377,
0.13969860970973969,
-0.07814790308475494,
0.1378968358039856,
-0.061810027807950974,
0.15540392696857452,
-0.16009922325611115,
-0.17537154257297516,
0.20472827553749084,
0.36872920393943787,
0.13241852819919586,
-0.2014482468366623,
0.19544470310211182,
0.36349985003471375,
-0.08196800947189331,
-0.2479620724916458,
0.01651756837964058,
-0.2928123474121094,
-0.040300916880369186,
0.020246459171175957,
0.7880975604057312,
0.4842379689216614,
0.00991138070821762,
0.1930086761713028,
0.08171802759170532,
0.2897278964519501,
-0.13008108735084534,
0.4044664204120636,
0.1461007446050644,
-0.07099325209856033,
-0.03355235978960991,
-0.476540744304657,
-0.173686683177948,
0.16128069162368774,
-0.018255406990647316,
0.15604199469089508,
0.13740858435630798,
-0.37707722187042236,
0.12285380065441132,
-0.24532456696033478,
-0.35932278633117676,
-0.2825257182121277,
-0.18249079585075378,
0.07965684682130814,
-0.17885376513004303,
-0.30236464738845825,
-0.09605281054973602,
-0.08657409995794296,
-0.19618497788906097,
-0.028491055592894554,
0.007861386053264141,
-0.26903340220451355,
0.03462629020214081,
-0.1725914627313614,
-0.18462292850017548,
-0.1305118203163147,
-0.07384445518255234,
0.16627751290798187,
0.03421027585864067,
0.0837579295039177,
-0.47064346075057983,
0.06891775131225586,
-0.16951458156108856,
0.17596380412578583,
0.3247343599796295,
0.05701715499162674,
0.1776960790157318,
0.39063262939453125,
0.1428866684436798,
-0.1417597532272339,
0.02283598482608795,
-0.07063513249158859,
0.1046680361032486,
-0.1442243754863739,
-0.39273521304130554,
0.13368089497089386,
0.06083898991346359,
-0.10030274838209152,
-0.179795041680336,
-0.7018498182296753,
-0.09427110105752945,
0.1484004259109497,
-0.11413601040840149,
0.22856244444847107,
-0.06347543746232986,
-0.18335981667041779,
0.11429049074649811,
-0.2739398777484894,
0.04979582503437996,
-0.23460833728313446,
-0.787110447883606,
0.28944048285484314,
-0.3476833403110504,
-0.2662128210067749,
-0.044054269790649414,
-0.09772435575723648,
0.1984015852212906,
0.015491784550249577,
-0.253775417804718,
-0.03174092620611191,
-0.2202955037355423,
0.1711454689502716,
0.10691198706626892,
0.3687536120414734,
0.01276154164224863,
-0.10263656824827194,
0.13000407814979553,
-0.19757048785686493,
-0.061782922595739365,
0.1827079951763153,
-0.38249439001083374,
0.30856597423553467,
0.38242167234420776,
-0.03352133929729462,
0.1748531311750412,
0.7821300625801086,
0.24443946778774261,
-0.13550728559494019,
0.1809845119714737,
-0.07585599273443222,
0.4101744592189789,
0.2839818298816681,
-0.21862244606018066,
-0.04893288016319275,
-0.03390513360500336,
-0.10784849524497986,
0.1440032720565796,
0.06047004833817482,
0.18966349959373474,
-0.3165879547595978,
-0.11236932128667831,
-0.15005283057689667,
-0.15170490741729736,
-0.12551553547382355,
0.5231509208679199,
0.1893755942583084,
0.061599355190992355,
0.19744515419006348,
-0.006582463160157204,
0.09127949923276901,
0.0618567131459713,
0.43060407042503357,
0.3460768461227417,
0.19759716093540192,
-0.19607210159301758,
-0.08577319234609604,
-0.20449258387088776,
0.11648893356323242,
0.2858867049217224,
-0.1161118820309639,
0.1796921342611313,
0.12008314579725266,
0.17902831733226776,
0.11770565062761307,
0.6446797251701355,
0.022620659321546555,
-0.04019542038440704,
-0.12750887870788574,
-0.31012171506881714,
-0.07607907056808472,
0.12807303667068481,
-0.15003257989883423,
0.07375382632017136,
0.42132216691970825,
0.16378803551197052,
-0.4036843478679657,
-0.3825344741344452,
0.074540875852108,
0.1352338194847107,
-0.28817281126976013,
-0.14954401552677155,
-0.14889231324195862,
-0.20912858843803406,
-0.17887014150619507,
-0.23087628185749054,
0.12962737679481506,
0.1278058886528015,
0.03469744324684143,
0.0025444396305829287,
0.05059606209397316,
0.11937059462070465,
0.003073018044233322,
0.07472933083772659,
0.36750930547714233,
-0.05619899556040764,
-0.10574156045913696,
0.37542665004730225,
0.3393508493900299,
0.16903796792030334,
0.4490529000759125,
-0.3288883864879608,
-0.18515293300151825,
-0.06483689695596695,
0.09757150709629059,
0.6481597423553467,
0.14968165755271912,
-0.4898110032081604,
0.04934898018836975,
0.03485482558608055,
-0.14900581538677216,
-0.38975992798805237,
0.2432526797056198,
0.26383304595947266,
0.007181154098361731,
-0.09935559332370758,
-0.7190077304840088,
0.4855562448501587,
-0.007340210489928722,
-0.22853615880012512,
0.16060705482959747,
0.08338005840778351,
-0.3551580607891083,
-0.13822780549526215,
0.03491950407624245,
0.8198534846305847,
0.1342671662569046,
0.08225288987159729,
0.10077759623527527,
-0.48302802443504333,
0.5889973640441895,
-0.06021615117788315,
-0.17315921187400818,
-0.2225247025489807,
0.022235127165913582,
-0.15202142298221588,
-0.28602340817451477,
0.07052190601825714,
-0.07608041167259216,
-0.10988257825374603,
0.3645528256893158,
-0.0983017310500145,
0.04982353001832962,
0.04359564930200577,
0.5104308128356934,
-0.0831175297498703,
-0.14096838235855103,
0.07536731660366058,
-0.08400038629770279,
0.19180844724178314,
0.4800061583518982,
-0.11400317400693893,
-0.43102532625198364,
-0.25505685806274414,
0.07956983149051666,
-0.06545128673315048,
-0.1017838716506958,
-0.4333568811416626,
0.030224114656448364,
0.01337385643273592,
-0.32176947593688965,
-0.037124503403902054,
0.6608511209487915,
0.27904975414276123,
0.016436776146292686,
-0.21993325650691986,
0.06367030739784241,
-0.09201616048812866,
0.127336785197258,
0.25037139654159546,
0.12391126155853271,
-0.05763985961675644,
-0.053483955562114716,
-0.16293521225452423,
0.1557440459728241,
-0.0058318739756941795,
-0.18104785680770874,
0.17484979331493378,
-0.10168586671352386,
0.21251992881298065,
-0.25074130296707153,
-0.05611558258533478,
-0.010821178555488586,
0.06260702759027481,
-0.06816088408231735,
-0.0006634347373619676,
0.24378298223018646,
-0.36987975239753723,
0.07067304104566574,
-0.2798643410205841,
-0.422711580991745,
-0.19077274203300476,
0.360604465007782,
-0.07194449752569199,
0.07881804555654526,
0.2684696912765503,
-0.10255067050457001,
-0.22497853636741638,
-0.030909908935427666,
0.28865689039230347,
-0.10915720462799072,
-0.31594038009643555,
0.2659705579280853,
0.3049022853374481,
0.17883816361427307,
-0.4056988060474396,
0.25608307123184204,
0.0011084148427471519,
-0.28174301981925964,
-0.2222936898469925,
-0.4993056058883667,
-0.20701850950717926,
0.1097567230463028,
-0.29584822058677673,
0.1551876813173294,
-0.01273779571056366,
0.17065010964870453,
0.10408902168273926,
0.02838505618274212,
-0.19552499055862427,
0.015760453417897224,
-0.08422820270061493,
-0.10643309354782104,
0.3375101089477539,
0.0971304327249527,
0.24823953211307526,
-0.0030778178479522467,
-0.05896027758717537,
-0.0390099361538887,
-0.09004685282707214,
-0.03145594894886017,
-0.22686411440372467,
0.18874995410442352,
-0.08398500084877014,
-0.20173023641109467,
0.0876309797167778,
-0.06170894205570221,
-0.0786992758512497,
0.05908216908574104,
0.2508068382740021,
0.2661229968070984,
0.12934355437755585,
0.39786574244499207,
-0.05771537497639656,
-0.003434442915022373,
-0.5778408050537109,
0.3355066180229187,
0.06922325491905212,
0.40350326895713806,
-0.07793082296848297,
0.4459480345249176,
-0.3849087059497833,
-0.10467059910297394,
0.12545228004455566,
-0.12114670872688293,
0.012670855969190598,
-0.08861855417490005,
0.4348568916320801,
-0.04359506815671921,
0.10812577605247498,
0.11747175455093384,
0.2370530217885971,
0.23825408518314362,
-0.08969896286725998,
0.029673108831048012,
0.19401007890701294,
-0.027352288365364075,
-0.008573068305850029,
0.023925811052322388,
-0.13703075051307678,
-0.04063639044761658,
0.024102725088596344,
0.3481299579143524,
0.3333757221698761,
0.03856005519628525,
-0.07780642062425613,
-0.27102231979370117,
0.40112701058387756,
0.4406712055206299,
0.04602151736617088,
0.5709136128425598,
0.12831351161003113,
0.362793892621994,
0.21173721551895142,
0.6090320944786072,
0.1564062237739563,
0.3393484354019165,
-0.2610030174255371,
-0.008979862555861473,
-0.08740972727537155,
0.2450067549943924,
0.310730904340744,
-0.4485321044921875,
0.17224177718162537,
0.20228832960128784,
-0.22620466351509094,
0.02192590944468975,
-0.29941266775131226,
0.5222716331481934,
-0.15516014397144318,
0.1328141838312149,
-0.10601036995649338,
0.4710692763328552,
0.04575185850262642,
-0.28849226236343384,
-0.17623353004455566,
-0.1881159245967865,
-0.13175058364868164,
0.15237335860729218,
-0.04613471403717995,
-0.4370723068714142,
0.1362341195344925,
-0.14644522964954376,
0.042722515761852264,
0.018353424966335297,
0.053092941641807556,
0.10409627854824066,
0.02159535139799118,
-0.21229581534862518,
0.19153659045696259,
-0.0416562557220459,
0.2909668982028961,
0.32884734869003296,
0.28295063972473145,
0.06739635765552521,
0.33882924914360046,
0.14623071253299713,
-0.21369455754756927,
0.22142790257930756,
-0.06889870762825012,
-0.08749055117368698,
0.024939322844147682,
-0.20105282962322235,
-0.0747036337852478,
0.44967982172966003,
-0.010302700102329254,
-0.02285909652709961,
-0.3053920269012451,
0.14118334650993347,
0.3131190836429596,
-0.014102944172918797,
0.5945336818695068,
-0.02593057230114937,
0.06706357002258301,
0.09257025271654129,
0.06102711334824562,
-0.4617905616760254,
0.06957083195447922,
0.27481940388679504,
-0.2647777199745178,
0.21410825848579407,
-0.001973441569134593,
0.012139239348471165,
-0.024173352867364883,
0.37117063999176025,
0.20920738577842712,
0.33825862407684326,
-0.42826101183891296,
-0.21278059482574463,
-0.49220365285873413,
-0.2341066300868988,
0.3432755470275879,
-0.2409980297088623,
-0.061452336609363556,
0.3055996000766754,
-0.22224199771881104,
0.24406181275844574,
-0.042408719658851624,
0.27618208527565,
-0.0096675343811512,
0.09546149522066116,
-0.05047311261296272,
-0.15809817612171173,
-0.37761929631233215,
0.14843426644802094,
0.11209826916456223,
-0.22211283445358276,
0.33929964900016785,
-0.21881867945194244,
-0.11058713495731354,
-0.0895138829946518,
0.2348073571920395,
0.16858850419521332,
-0.22783884406089783,
0.17039307951927185,
-0.01797454059123993,
0.14916202425956726,
-0.06057479605078697,
0.03191521391272545,
0.25149592757225037,
0.24191272258758545,
-0.2968151867389679,
-0.008200623095035553,
-0.14755025506019592,
-0.13395057618618011,
-0.32015252113342285,
0.02095830626785755,
-0.4668421745300293,
0.3759162425994873,
0.3198999762535095,
0.00025100429775193334,
-0.04862496256828308,
-0.024210626259446144,
-0.40645670890808105,
0.038235850632190704,
0.531079113483429,
0.16299724578857422,
-0.27170947194099426,
0.06989596039056778,
-0.21878404915332794,
-0.05781639367341995,
0.558748722076416,
-0.2671598792076111,
0.12109892815351486,
0.04034985601902008,
0.22793202102184296,
0.3333330750465393,
-0.09136779606342316,
-0.5478305816650391,
0.28014400601387024,
0.5396885871887207,
-0.08369603753089905,
0.033646635711193085,
0.21228338778018951,
0.08878020197153091,
-0.0016807916108518839,
-0.12197524309158325,
0.4751990735530853,
0.1540817767381668,
-0.3386337459087372,
0.09727643430233002,
-0.02989802695810795
] |
https://github.com/huggingface/datasets/issues/1831 | Some question about raw dataset download info in the project . | I am afraid that there is not a very straightforward way to get that location.
Another option, from _split_generators would be to use:
- `dl_manager._download_config.cache_dir` to get the directory where all the raw downloaded files are:
```python
download_dir = dl_manager._download_config.cache_dir
```
- the function `datasets.utils.file_utils.hash_url_to_filename` to get the filenames of the raw downloaded files:
```python
filenames = [hash_url_to_filename(url) for url in urls_to_download.values()]
```
Therefore the complete path to the raw downloaded files would be the join of both:
```python
downloaded_paths = [os.path.join(download_dir, filename) for filename in filenames]
```
Maybe it would be interesting to make these paths accessible more easily. I could work on this. What do you think, @lhoestq ? | Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ? | 111 | Some question about raw dataset download info in the project .
Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ?
I am afraid that there is not a very straightforward way to get that location.
Another option, from _split_generators would be to use:
- `dl_manager._download_config.cache_dir` to get the directory where all the raw downloaded files are:
```python
download_dir = dl_manager._download_config.cache_dir
```
- the function `datasets.utils.file_utils.hash_url_to_filename` to get the filenames of the raw downloaded files:
```python
filenames = [hash_url_to_filename(url) for url in urls_to_download.values()]
```
Therefore the complete path to the raw downloaded files would be the join of both:
```python
downloaded_paths = [os.path.join(download_dir, filename) for filename in filenames]
```
Maybe it would be interesting to make these paths accessible more easily. I could work on this. What do you think, @lhoestq ? | [
-0.13469825685024261,
-0.02914184145629406,
-0.056595444679260254,
0.5307530164718628,
0.11883686482906342,
-0.11446941643953323,
0.10200833529233932,
-0.008243290707468987,
0.04150865972042084,
0.08339418470859528,
-0.41979047656059265,
0.20728373527526855,
-0.12456389516592026,
0.5449789762496948,
0.17081983387470245,
-0.09607578814029694,
-0.09937644004821777,
0.12215811759233475,
-0.10155956447124481,
-0.06752234697341919,
-0.38628533482551575,
0.2964136004447937,
-0.29332220554351807,
0.17002169787883759,
-0.12043622881174088,
-0.04371313005685806,
-0.03890811279416084,
0.31079620122909546,
-0.4215298295021057,
-0.28550511598587036,
0.28514498472213745,
0.2104238122701645,
0.3897269368171692,
0.26019224524497986,
-0.00012526335194706917,
0.03395618870854378,
0.25762760639190674,
-0.33769434690475464,
-0.5291389226913452,
-0.30453187227249146,
-0.6149908900260925,
-0.01842745952308178,
-0.07356942445039749,
-0.25607094168663025,
0.14287275075912476,
-0.0621148981153965,
-0.081668920814991,
-0.1980145275592804,
0.024802830070257187,
0.025719212368130684,
0.05692708119750023,
0.3073015809059143,
-0.07054948061704636,
0.07332039624452591,
0.27434465289115906,
0.2889508008956909,
0.006941687781363726,
0.10659947991371155,
-0.009436399675905704,
0.3097071647644043,
0.19094228744506836,
0.314184308052063,
0.19176305830478668,
0.11618371307849884,
0.4544146955013275,
0.3511877954006195,
-0.3605450689792633,
-0.33338823914527893,
0.0019013237906619906,
0.24149329960346222,
0.331174373626709,
-0.34995636343955994,
-0.6002610325813293,
-0.4451580345630646,
-0.14475931227207184,
-0.5862122774124146,
0.08666525036096573,
0.14513520896434784,
-0.42940378189086914,
0.2783699035644531,
-0.5737091898918152,
-0.4702054262161255,
-0.10782262682914734,
-0.06307518482208252,
-0.12459024786949158,
0.38332733511924744,
-0.3021124303340912,
0.03660906106233597,
0.12226179242134094,
0.366537868976593,
0.1831100881099701,
-0.20400595664978027,
0.0064975484274327755,
0.26284340023994446,
-0.12736020982265472,
-0.09684780240058899,
-0.06920848786830902,
0.28003737330436707,
0.17934630811214447,
0.00042583266622386873,
-0.09320199489593506,
-0.26254111528396606,
-0.02244819886982441,
0.03677899017930031,
0.32568517327308655,
0.08879486471414566,
0.05881549417972565,
0.2508299946784973,
0.2419351190328598,
0.1852353811264038,
0.2261740267276764,
-0.25655418634414673,
-0.0756489709019661,
-0.09280361980199814,
-0.39821290969848633,
0.16897964477539062,
0.02306552045047283,
-0.08815619349479675,
-0.2564200162887573,
-0.25847142934799194,
-0.11732087284326553,
-0.3153945505619049,
0.3284131586551666,
0.36319512128829956,
-0.106446273624897,
0.09190021455287933,
-0.02186434529721737,
0.030009757727384567,
0.13420407474040985,
-0.2513067126274109,
-0.060254380106925964,
-0.13667745888233185,
-0.14983917772769928,
0.15868601202964783,
-0.23554357886314392,
-0.07405237853527069,
0.3717944622039795,
0.041712697595357895,
0.030304506421089172,
0.0919632762670517,
-0.005171765107661486,
-0.10271105170249939,
0.1987166553735733,
0.11280208081007004,
0.03195002302527428,
0.29062420129776,
-0.20867419242858887,
-0.2854417562484741,
-0.21640200912952423,
-0.12387523055076599,
-0.295926570892334,
-0.42389634251594543,
0.01093134842813015,
-0.0265961866825819,
-0.14969542622566223,
0.13803374767303467,
-0.24266241490840912,
0.006302458234131336,
0.06413625180721283,
0.3371736407279968,
0.02113194391131401,
0.006673288997262716,
-0.4359385371208191,
-0.28752171993255615,
0.4370476305484772,
0.4985269606113434,
-0.27902379631996155,
-0.10948587208986282,
0.09182995557785034,
-0.3653407096862793,
0.04100419208407402,
0.08937136083841324,
-0.3769410252571106,
0.5260192155838013,
-0.42559579014778137,
-0.15583088994026184,
0.4934948980808258,
-0.41399818658828735,
-0.28344887495040894,
0.5482249855995178,
0.08194108307361603,
-0.011938642710447311,
0.3946040868759155,
-0.0027309695724397898,
0.28096872568130493,
-0.09966325759887695,
-0.06136703863739967,
0.5419442653656006,
0.12379854172468185,
-0.11095307767391205,
-0.03870924934744835,
-0.28574538230895996,
-0.11888673901557922,
-0.09950882941484451,
-0.14010384678840637,
0.20854192972183228,
0.06305169314146042,
-0.1487574577331543,
0.5694386959075928,
-0.0648539811372757,
0.20241838693618774,
0.3641732633113861,
0.01614215597510338,
0.22173959016799927,
-0.03974936529994011,
0.0327577069401741,
-0.6237199306488037,
0.1450577974319458,
-0.29158809781074524,
-0.2566766142845154,
-0.34643086791038513,
-0.369253933429718,
-0.28351083397865295,
0.13590408861637115,
-0.2205853909254074,
-0.3565536439418793,
-0.0813378095626831,
0.19321320950984955,
0.4799259603023529,
-0.03777703270316124,
-0.32691720128059387,
0.5276398062705994,
-0.02641531080007553,
0.1004447340965271,
-0.15842193365097046,
0.03959634527564049,
0.1531454622745514,
0.15687522292137146,
-0.028587955981492996,
0.1156432256102562,
0.11600110679864883,
-0.20312350988388062,
0.08793841302394867,
0.4732972979545593,
0.16672131419181824,
0.22448928654193878,
0.24886737763881683,
0.08665245026350021,
0.2675856947898865,
0.1815997064113617,
-0.050037868320941925,
-0.28405556082725525,
0.1166391670703888,
0.2693532705307007,
0.021753672510385513,
0.40507772564888,
-0.04022946208715439,
0.2749062776565552,
0.20714594423770905,
-0.05860760807991028,
0.13754738867282867,
-0.04612452909350395,
0.1909860223531723,
-0.17176499962806702,
-0.14505834877490997,
0.19571860134601593,
0.3370576798915863,
0.14613030850887299,
-0.2831912636756897,
0.29675158858299255,
0.4335452616214752,
-0.04222529008984566,
-0.28038671612739563,
0.007216433994472027,
-0.27945902943611145,
-0.014330211095511913,
0.04629705473780632,
0.7960911989212036,
0.4438539445400238,
0.023025359958410263,
0.19142283499240875,
0.03006019815802574,
0.283553808927536,
-0.08163902908563614,
0.35438090562820435,
0.1328090876340866,
-0.08093491196632385,
-0.01962611824274063,
-0.4542373716831207,
-0.1663333624601364,
0.1930842250585556,
-0.043995171785354614,
0.18451492488384247,
0.1720055490732193,
-0.35270506143569946,
0.0789799764752388,
-0.24307872354984283,
-0.39655810594558716,
-0.24744001030921936,
-0.1886555403470993,
0.03429177403450012,
-0.17886044085025787,
-0.2145889848470688,
-0.04657603055238724,
-0.13735537230968475,
-0.15257218480110168,
-0.07528030127286911,
-0.023088395595550537,
-0.2846536338329315,
0.05192742124199867,
-0.17617063224315643,
-0.10791457444429398,
-0.08718317747116089,
-0.07350145280361176,
0.20064519345760345,
0.008561373688280582,
0.09787154942750931,
-0.4697069227695465,
0.08699612319469452,
-0.245124951004982,
0.18683676421642303,
0.3407441973686218,
0.06118810176849365,
0.16299468278884888,
0.3850088119506836,
0.15439973771572113,
-0.1284119337797165,
-0.03554476052522659,
-0.1043887659907341,
0.11080189794301987,
-0.12837918102741241,
-0.4418497681617737,
0.12645603716373444,
0.07320325076580048,
-0.09493165463209152,
-0.20784999430179596,
-0.7182450890541077,
-0.10018785297870636,
0.22224056720733643,
-0.14307647943496704,
0.25215479731559753,
-0.16815894842147827,
-0.22397677600383759,
0.04244184121489525,
-0.32859694957733154,
0.051288846880197525,
-0.18833763897418976,
-0.7643767595291138,
0.2837581932544708,
-0.3613508343696594,
-0.241731658577919,
-0.06835391372442245,
-0.1362404078245163,
0.1521254926919937,
0.05783790349960327,
-0.1992676556110382,
-0.01713711954653263,
-0.16934996843338013,
0.219953253865242,
0.11566817760467529,
0.3086595833301544,
0.0356927290558815,
-0.030962897464632988,
0.1584857702255249,
-0.15024776756763458,
-0.04655175656080246,
0.21519778668880463,
-0.3422456681728363,
0.35896778106689453,
0.39475059509277344,
-0.04257587715983391,
0.21589118242263794,
0.795154869556427,
0.2289338856935501,
-0.11305057257413864,
0.1516202986240387,
-0.10193896293640137,
0.39062029123306274,
0.3349590599536896,
-0.230266734957695,
-0.04808793589472771,
0.012357695028185844,
-0.0399530865252018,
0.13240405917167664,
0.09985450655221939,
0.22798927128314972,
-0.27535080909729004,
-0.12350349128246307,
-0.17704397439956665,
-0.1852114051580429,
-0.07103419303894043,
0.5313084125518799,
0.1815866231918335,
0.07378397136926651,
0.2022853046655655,
-0.02809242717921734,
0.07284293323755264,
0.060588594526052475,
0.4210449755191803,
0.41866934299468994,
0.19214847683906555,
-0.1343727856874466,
-0.03966270014643669,
-0.18153101205825806,
0.053323470056056976,
0.33523029088974,
-0.15678539872169495,
0.14729908108711243,
0.07376256585121155,
0.1796703189611435,
0.11913659423589706,
0.7116184234619141,
0.02388923242688179,
-0.06984453648328781,
-0.14316195249557495,
-0.2801820933818817,
-0.07078755646944046,
0.11492685973644257,
-0.09573568403720856,
0.024242674931883812,
0.47469663619995117,
0.23597511649131775,
-0.39264559745788574,
-0.3926124572753906,
0.12823864817619324,
0.1697734296321869,
-0.29946452379226685,
-0.11545481532812119,
-0.10367723554372787,
-0.1777816116809845,
-0.19071590900421143,
-0.22257086634635925,
0.10763434320688248,
0.06300893425941467,
-0.005876948591321707,
-0.006822268012911081,
0.10048261284828186,
0.09173203259706497,
0.0143314553424716,
0.16325567662715912,
0.4221808910369873,
-0.03973618894815445,
-0.018867813050746918,
0.4088660180568695,
0.39366888999938965,
0.18982888758182526,
0.4766065776348114,
-0.4284282326698303,
-0.1742585450410843,
-0.042308419942855835,
0.04919678717851639,
0.6706673502922058,
0.2639818489551544,
-0.49915406107902527,
0.04119345545768738,
-0.02937602810561657,
-0.12053008377552032,
-0.39011263847351074,
0.2227764129638672,
0.29943931102752686,
-0.005516296252608299,
-0.1625823676586151,
-0.6853828430175781,
0.4479740560054779,
-0.04211558401584625,
-0.2754620611667633,
0.18759989738464355,
0.05262833833694458,
-0.3134814202785492,
-0.15793563425540924,
-0.04296938329935074,
0.8905717730522156,
0.10916849970817566,
0.13263900578022003,
0.09643571823835373,
-0.41279903054237366,
0.6062424182891846,
-0.0939917340874672,
-0.12761768698692322,
-0.2241680771112442,
-0.008478301577270031,
-0.15410993993282318,
-0.2611881494522095,
-0.01812978833913803,
-0.06391400098800659,
-0.04278629645705223,
0.3958505094051361,
-0.06760351359844208,
0.031684551388025284,
0.02922677993774414,
0.4977274537086487,
-0.04417445510625839,
-0.1707647293806076,
0.04482405632734299,
-0.11758793890476227,
0.22821666300296783,
0.44012513756752014,
-0.07899531722068787,
-0.4989716708660126,
-0.3009527921676636,
0.11471731215715408,
-0.05454958602786064,
-0.07100525498390198,
-0.44792410731315613,
0.028698353096842766,
0.03538822755217552,
-0.33402207493782043,
-0.08539848029613495,
0.6262848377227783,
0.2829655706882477,
-0.0037523508071899414,
-0.1767270714044571,
0.07250630855560303,
-0.05784866586327553,
0.0756959393620491,
0.27388709783554077,
0.15861159563064575,
-0.07887609302997589,
-0.03856172412633896,
-0.17388424277305603,
0.08792600780725479,
-0.03820853680372238,
-0.19048070907592773,
0.11078591644763947,
-0.1293092966079712,
0.21010665595531464,
-0.2470293790102005,
-0.018424855545163155,
-0.015843437984585762,
0.08169468492269516,
-0.06744735687971115,
-0.018776869401335716,
0.28362902998924255,
-0.3048088550567627,
0.0630546435713768,
-0.28209710121154785,
-0.3546582758426666,
-0.17880243062973022,
0.3114257752895355,
-0.11399580538272858,
0.05608336627483368,
0.23824270069599152,
-0.1230001300573349,
-0.28120818734169006,
0.003260126570239663,
0.2775329649448395,
-0.13801203668117523,
-0.3678484857082367,
0.2783263623714447,
0.30439481139183044,
0.15695607662200928,
-0.39938658475875854,
0.2558905780315399,
0.05127789452672005,
-0.31155115365982056,
-0.2324521690607071,
-0.48711273074150085,
-0.22405076026916504,
0.1930627077817917,
-0.3125160336494446,
0.10297317057847977,
-0.06957196444272995,
0.11959876120090485,
0.07090219110250473,
-0.02292422018945217,
-0.17744696140289307,
0.011233549565076828,
-0.05160661041736603,
-0.14223824441432953,
0.3580642640590668,
0.10301222652196884,
0.30024614930152893,
0.02843542955815792,
-0.06409263610839844,
-0.079262375831604,
-0.0325409434735775,
0.00262573198415339,
-0.25506123900413513,
0.19151544570922852,
-0.12907296419143677,
-0.21191935241222382,
0.08967733383178711,
-0.10739127546548843,
-0.07285276055335999,
0.03868366405367851,
0.23451341688632965,
0.26771798729896545,
0.1994190812110901,
0.3762880265712738,
-0.05581202358007431,
-0.07181107252836227,
-0.5359951853752136,
0.42927315831184387,
0.06651441007852554,
0.4807564914226532,
-0.11214067786931992,
0.4839845299720764,
-0.41241735219955444,
-0.09120707958936691,
0.17447279393672943,
-0.13535597920417786,
-0.04912785068154335,
-0.05168909206986427,
0.4121036231517792,
0.016532132402062416,
0.10322795808315277,
0.12271837145090103,
0.2486455738544464,
0.2484254539012909,
-0.05891408026218414,
0.07339603453874588,
0.2588759958744049,
-0.05673646181821823,
-0.057520195841789246,
0.001968694617971778,
-0.12957705557346344,
-0.014924823306500912,
0.04100976884365082,
0.34637850522994995,
0.33147716522216797,
-0.01627284660935402,
0.007801729254424572,
-0.28438445925712585,
0.37583786249160767,
0.4476373493671417,
0.00986022874712944,
0.627790629863739,
0.15138502418994904,
0.38644149899482727,
0.19796471297740936,
0.6132418513298035,
0.18739821016788483,
0.31356075406074524,
-0.267107218503952,
-0.09850098192691803,
-0.10006755590438843,
0.22155117988586426,
0.3323749601840973,
-0.4487762153148651,
0.13228321075439453,
0.15278320014476776,
-0.17467232048511505,
0.026917560026049614,
-0.28321367502212524,
0.5812447667121887,
-0.1307186335325241,
0.11581800878047943,
-0.12242185324430466,
0.49584317207336426,
0.07821405678987503,
-0.24743881821632385,
-0.09647452086210251,
-0.2381604015827179,
-0.12135527282953262,
0.20788218080997467,
-0.06114920228719711,
-0.45058146119117737,
0.10272688418626785,
-0.07968759536743164,
0.1519850641489029,
0.0232101920992136,
0.07237237691879272,
0.13939115405082703,
0.08828827738761902,
-0.1974717378616333,
0.16374222934246063,
-0.01880846731364727,
0.2937118709087372,
0.33347901701927185,
0.28426697850227356,
0.04945014789700508,
0.303371787071228,
0.17448697984218597,
-0.24000184237957,
0.24576717615127563,
-0.012386280111968517,
-0.08532518893480301,
-0.028378387913107872,
-0.13752949237823486,
-0.07904152572154999,
0.4382871091365814,
-0.036890193819999695,
-0.005012409295886755,
-0.29907840490341187,
0.10531561076641083,
0.2747850716114044,
0.05074659362435341,
0.5575402975082397,
-0.052481699734926224,
0.0360306054353714,
0.12577074766159058,
-0.005042770877480507,
-0.4562191069126129,
0.05324765294790268,
0.27403390407562256,
-0.2587765157222748,
0.2118053138256073,
0.02172054350376129,
-0.00014555678353644907,
0.02389526553452015,
0.26188862323760986,
0.19031183421611786,
0.3403911590576172,
-0.3425288796424866,
-0.24394381046295166,
-0.5069084763526917,
-0.2015318125486374,
0.3620835542678833,
-0.25355327129364014,
-0.1272854208946228,
0.2939572334289551,
-0.2235216200351715,
0.21327903866767883,
0.051013391464948654,
0.286858469247818,
-0.031866706907749176,
0.1422688364982605,
-0.11172652244567871,
-0.17621135711669922,
-0.32989633083343506,
0.1201421469449997,
0.10102621465921402,
-0.19565454125404358,
0.3169558346271515,
-0.17720969021320343,
-0.1324804574251175,
-0.10151993483304977,
0.2413177192211151,
0.14228394627571106,
-0.16645415127277374,
0.11815951019525528,
-0.02276255004107952,
0.09941697120666504,
-0.07370825856924057,
-0.06118078902363777,
0.18476861715316772,
0.16328130662441254,
-0.2971654236316681,
0.003246842185035348,
-0.14494425058364868,
-0.16464084386825562,
-0.32524317502975464,
0.051982831209897995,
-0.5005985498428345,
0.3418351411819458,
0.26400503516197205,
0.04531358554959297,
-0.04865695536136627,
-0.04134337976574898,
-0.3196691572666168,
0.050228651612997055,
0.5476946830749512,
0.11396344006061554,
-0.2953311502933502,
0.00012135096039855853,
-0.1792997121810913,
-0.004662735853344202,
0.5082626342773438,
-0.2689807116985321,
0.1456078737974167,
0.07433127611875534,
0.1820535659790039,
0.3494507968425751,
-0.04596969112753868,
-0.517099916934967,
0.22811584174633026,
0.5126157402992249,
-0.07096651196479797,
0.13376274704933167,
0.17367422580718994,
0.044692568480968475,
-0.02027440443634987,
-0.11745485663414001,
0.4670483469963074,
0.1793738603591919,
-0.3825499713420868,
0.12299387156963348,
-0.002874123863875866
] |
https://github.com/huggingface/datasets/issues/1831 | Some question about raw dataset download info in the project . | Sure it would be nice to have an easier access to these paths !
The dataset builder could have a method to return those, what do you think ?
Feel free to work on this @albertvillanova , it would be a nice addition :)
Your suggestion does work as well @albertvillanova if you complete it by specifying `etag=` to `hash_url_to_filename`.
The ETag is obtained by a HEAD request and is used to know if the file on the remote host has changed. Therefore if a file is updated on the remote host, then the hash returned by `hash_url_to_filename` is different. | Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ? | 100 | Some question about raw dataset download info in the project .
Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ?
Sure it would be nice to have an easier access to these paths !
The dataset builder could have a method to return those, what do you think ?
Feel free to work on this @albertvillanova , it would be a nice addition :)
Your suggestion does work as well @albertvillanova if you complete it by specifying `etag=` to `hash_url_to_filename`.
The ETag is obtained by a HEAD request and is used to know if the file on the remote host has changed. Therefore if a file is updated on the remote host, then the hash returned by `hash_url_to_filename` is different. | [
-0.11998742818832397,
-0.10072711855173111,
-0.04412248730659485,
0.5240066051483154,
0.04389805346727371,
-0.14139989018440247,
0.11834002286195755,
0.01704983599483967,
0.01131491083651781,
0.13442540168762207,
-0.3461930453777313,
0.15114368498325348,
-0.13548927009105682,
0.5920693874359131,
0.18941204249858856,
-0.03796306997537613,
-0.08418439328670502,
0.12170068174600601,
-0.10777157545089722,
-0.0879005566239357,
-0.35656777024269104,
0.2822730541229248,
-0.2687032222747803,
0.1657116860151291,
-0.19466671347618103,
-0.02484641782939434,
-0.01810142770409584,
0.3191281259059906,
-0.47272539138793945,
-0.27376243472099304,
0.30051425099372864,
0.21283237636089325,
0.4005344808101654,
0.17420747876167297,
-0.00012492026144172996,
0.03750208765268326,
0.2728613317012787,
-0.34029078483581543,
-0.5269051194190979,
-0.2696057856082916,
-0.6916822195053101,
-0.008249548263847828,
-0.05797359347343445,
-0.20705385506153107,
0.15472489595413208,
0.011263886466622353,
-0.053100693970918655,
-0.13250045478343964,
0.08583258092403412,
0.11862948536872864,
0.0518583245575428,
0.36971515417099,
-0.09700597822666168,
0.06019415706396103,
0.31833165884017944,
0.2908330261707306,
0.0077932425774633884,
0.12664362788200378,
-0.07617399841547012,
0.34059348702430725,
0.10568857938051224,
0.3024420142173767,
0.22258253395557404,
0.10281096398830414,
0.4406278133392334,
0.3373488783836365,
-0.3781243562698364,
-0.27691155672073364,
0.0373096726834774,
0.2423308789730072,
0.35371196269989014,
-0.2812837064266205,
-0.5841251015663147,
-0.408346027135849,
-0.11912539601325989,
-0.4685429632663727,
0.10807754844427109,
0.12144503742456436,
-0.428123414516449,
0.3086463212966919,
-0.5675060749053955,
-0.4780252277851105,
-0.16583982110023499,
-0.08521462231874466,
-0.13754992187023163,
0.3164403438568115,
-0.27753397822380066,
0.06630580127239227,
0.07925643771886826,
0.38436245918273926,
0.2701305150985718,
-0.2281225174665451,
-0.02186945080757141,
0.21743454039096832,
-0.10736122727394104,
-0.11027897149324417,
-0.0512239895761013,
0.29540079832077026,
0.17769601941108704,
0.019523557275533676,
-0.12462607026100159,
-0.2577973008155823,
-0.062239449471235275,
0.03449634090065956,
0.3408130407333374,
0.033426471054553986,
0.13010305166244507,
0.24120935797691345,
0.2612251937389374,
0.17661073803901672,
0.16608870029449463,
-0.26140114665031433,
-0.11514923721551895,
-0.06749770045280457,
-0.3462035655975342,
0.1671789437532425,
0.018523341044783592,
-0.11034378409385681,
-0.17858941853046417,
-0.23918139934539795,
-0.027965037152171135,
-0.34969496726989746,
0.31417036056518555,
0.3573301434516907,
-0.12206751853227615,
0.04270753264427185,
-0.12956441938877106,
-0.003385801101103425,
0.10850473493337631,
-0.343487024307251,
-0.05759160593152046,
-0.20418408513069153,
-0.18113553524017334,
0.11465436965227127,
-0.2467757910490036,
-0.11905992776155472,
0.34451037645339966,
0.036877766251564026,
0.004490903113037348,
0.05116701126098633,
-0.021229196339845657,
-0.05542507767677307,
0.2633839547634125,
0.11531347036361694,
0.02250368706882,
0.24984019994735718,
-0.17231911420822144,
-0.2595720589160919,
-0.19419582188129425,
-0.14013421535491943,
-0.32650986313819885,
-0.4692923128604889,
-0.05500410124659538,
-0.036522265523672104,
-0.13976427912712097,
0.08825551718473434,
-0.20459209382534027,
-0.03594880923628807,
-0.004326547496020794,
0.2903861701488495,
0.015333597548305988,
0.03687453269958496,
-0.43757423758506775,
-0.26140737533569336,
0.41507208347320557,
0.5498959422111511,
-0.26407596468925476,
-0.12488244473934174,
0.16261443495750427,
-0.4113040864467621,
0.005507407709956169,
0.08511465787887573,
-0.3762217164039612,
0.44812533259391785,
-0.3954283893108368,
-0.14911921322345734,
0.4284541606903076,
-0.34861281514167786,
-0.28353244066238403,
0.5134191513061523,
0.06857322156429291,
-0.009267122484743595,
0.42270922660827637,
0.0049935393035411835,
0.30713286995887756,
-0.0831541195511818,
-0.07494799792766571,
0.5160322189331055,
0.11158929020166397,
-0.11258531361818314,
-0.014631742611527443,
-0.25218749046325684,
-0.15627312660217285,
-0.08697626739740372,
-0.09833936393260956,
0.25406596064567566,
0.1340300589799881,
-0.18789690732955933,
0.5806200504302979,
-0.09069585055112839,
0.20480407774448395,
0.2849577069282532,
0.06661245971918106,
0.14460690319538116,
-0.043415483087301254,
0.059239476919174194,
-0.639825701713562,
0.20616869628429413,
-0.27134770154953003,
-0.24023747444152832,
-0.3789280951023102,
-0.33210289478302,
-0.2896721661090851,
0.13957713544368744,
-0.2251719832420349,
-0.3142988383769989,
-0.08741085231304169,
0.1475149393081665,
0.4725337326526642,
0.04230823367834091,
-0.3148839473724365,
0.5093697309494019,
-0.08090429753065109,
0.12229666113853455,
-0.16393785178661346,
0.05523419380187988,
0.16159473359584808,
0.19284997880458832,
-0.007557980716228485,
0.09639059752225876,
0.1178840696811676,
-0.1511213779449463,
0.03786959871649742,
0.4245802164077759,
0.1222039982676506,
0.2514207661151886,
0.33471524715423584,
0.05761636421084404,
0.26515883207321167,
0.14589862525463104,
-0.005686426069587469,
-0.2740900218486786,
0.07453273981809616,
0.21045269072055817,
0.03841366991400719,
0.40834710001945496,
-0.019851310178637505,
0.2785646915435791,
0.16968075931072235,
-0.008430784568190575,
0.10390037298202515,
-0.03080238588154316,
0.14525443315505981,
-0.16566237807273865,
-0.17338232696056366,
0.17355449497699738,
0.3252807855606079,
0.09082663804292679,
-0.2493942230939865,
0.26925042271614075,
0.4680551588535309,
-0.06802871078252792,
-0.3477778732776642,
0.11484122276306152,
-0.2691211700439453,
-0.055716607719659805,
0.12462785094976425,
0.88143390417099,
0.401753306388855,
0.012344195507466793,
0.23615024983882904,
0.07185409963130951,
0.2702479064464569,
-0.06831708550453186,
0.3649236559867859,
0.08198641240596771,
-0.09131745994091034,
-0.0149566400796175,
-0.48089224100112915,
-0.19156639277935028,
0.15246939659118652,
-0.022606302052736282,
0.1827383190393448,
0.16122916340827942,
-0.3683388829231262,
0.03308228403329849,
-0.2861866354942322,
-0.3713715374469757,
-0.22214776277542114,
-0.14414891600608826,
-0.08420602977275848,
-0.18021421134471893,
-0.23560184240341187,
-0.09176859259605408,
-0.15674929320812225,
-0.20119842886924744,
-0.1180168092250824,
0.029021698981523514,
-0.2226622998714447,
0.06880505383014679,
-0.19168004393577576,
-0.15537072718143463,
-0.0985751524567604,
-0.09070221334695816,
0.18381454050540924,
-0.039756711572408676,
0.08758164197206497,
-0.49639570713043213,
0.14699436724185944,
-0.3051644563674927,
0.20475788414478302,
0.3494756519794464,
0.033692315220832825,
0.1768493503332138,
0.40609505772590637,
0.20005227625370026,
-0.06655294448137283,
0.0030450208578258753,
-0.10940248519182205,
0.09116195142269135,
-0.10930474102497101,
-0.38940873742103577,
0.140407994389534,
0.09432375431060791,
-0.04756847769021988,
-0.22936858236789703,
-0.6929695010185242,
-0.04163157939910889,
0.2408769130706787,
-0.19812200963497162,
0.2762157618999481,
-0.10551396757364273,
-0.13781751692295074,
0.03868160396814346,
-0.4083721935749054,
-0.013105755671858788,
-0.18604840338230133,
-0.8774710893630981,
0.2753804922103882,
-0.3544984757900238,
-0.23037922382354736,
-0.05392996594309807,
-0.059701740741729736,
0.1787714660167694,
0.0648878663778305,
-0.2197253406047821,
-0.015143521130084991,
-0.11512775719165802,
0.2784600853919983,
0.1276269108057022,
0.29276543855667114,
0.05189415439963341,
-0.05665300041437149,
0.16488276422023773,
-0.1588711440563202,
-0.0507451668381691,
0.23709151148796082,
-0.3477136790752411,
0.36562174558639526,
0.40611720085144043,
-0.013174046762287617,
0.2261144071817398,
0.7650009989738464,
0.18526549637317657,
-0.07836543768644333,
0.1470416635274887,
-0.1283288151025772,
0.3387123942375183,
0.31695395708084106,
-0.19098271429538727,
-0.045426491647958755,
-0.07151728123426437,
-0.07895344495773315,
0.17518270015716553,
0.12322517484426498,
0.2392905205488205,
-0.29068464040756226,
-0.2120722383260727,
-0.16549989581108093,
-0.18593156337738037,
-0.11481417715549469,
0.5175091624259949,
0.16060084104537964,
0.1139923483133316,
0.21112827956676483,
-0.11490898579359055,
0.0466604121029377,
0.09160757809877396,
0.37275469303131104,
0.44404247403144836,
0.18545664846897125,
-0.13311998546123505,
0.017286473885178566,
-0.22045952081680298,
0.08725807815790176,
0.33342409133911133,
-0.1385306715965271,
0.15635468065738678,
0.05649576336145401,
0.1949283331632614,
0.14949342608451843,
0.7233949899673462,
-0.010727131739258766,
-0.031937405467033386,
-0.21975456178188324,
-0.25696346163749695,
-0.02655613422393799,
0.1234021708369255,
-0.04822741821408272,
0.03397660329937935,
0.4549544155597687,
0.2488844245672226,
-0.3597502112388611,
-0.3623928129673004,
0.15460416674613953,
0.11620991677045822,
-0.27467653155326843,
-0.114676333963871,
-0.08331231772899628,
-0.0899408832192421,
-0.1801081746816635,
-0.20047365128993988,
0.05396803468465805,
0.056837256997823715,
-0.031087277457118034,
-0.026908118277788162,
0.1527349054813385,
0.1428886353969574,
-0.033535219728946686,
0.17499826848506927,
0.3482397794723511,
-0.0658729076385498,
-0.023459043353796005,
0.4482235014438629,
0.4415009915828705,
0.17504216730594635,
0.45152217149734497,
-0.379885733127594,
-0.19042982161045074,
-0.09102217853069305,
0.015267354436218739,
0.6671975255012512,
0.27025705575942993,
-0.45986413955688477,
0.025337345898151398,
0.09219161421060562,
-0.09705954045057297,
-0.4243960976600647,
0.20113840699195862,
0.28346267342567444,
-0.02529587596654892,
-0.19498085975646973,
-0.6230822801589966,
0.49084946513175964,
-0.11231482774019241,
-0.24026431143283844,
0.18117564916610718,
0.1288718730211258,
-0.3148917555809021,
-0.1643143743276596,
-0.00588247599080205,
0.853117823600769,
0.1205514520406723,
0.15518639981746674,
0.11117938160896301,
-0.48772570490837097,
0.5681892037391663,
-0.11022216081619263,
-0.15492777526378632,
-0.2622862160205841,
-0.013986149802803993,
-0.20053520798683167,
-0.23488284647464752,
-0.007567752618342638,
-0.05353916808962822,
0.0036479453556239605,
0.37709885835647583,
0.008833430707454681,
0.09624042361974716,
0.019093355163931847,
0.5144582986831665,
-0.057441920042037964,
-0.1568572074174881,
0.1019321084022522,
-0.11203666776418686,
0.20220664143562317,
0.4311729967594147,
-0.06114271283149719,
-0.5024579167366028,
-0.251190185546875,
0.08234618604183197,
-0.036788661032915115,
-0.057554297149181366,
-0.4359021782875061,
-0.06462820619344711,
0.1010855957865715,
-0.366834819316864,
-0.10168241709470749,
0.5698287487030029,
0.2479192614555359,
0.02138138934969902,
-0.21063579618930817,
0.1094161719083786,
-0.09360892325639725,
0.14042305946350098,
0.24287228286266327,
0.11148921400308609,
-0.07985850423574448,
-0.06513436138629913,
-0.20686395466327667,
0.07147245854139328,
-0.03932727500796318,
-0.261887788772583,
0.12173940241336823,
-0.10655415803194046,
0.15921708941459656,
-0.26591864228248596,
-0.023822937160730362,
-0.06511728465557098,
0.0663718730211258,
-0.08321774005889893,
-0.019866647198796272,
0.22813260555267334,
-0.2856937646865845,
0.0371866375207901,
-0.23541498184204102,
-0.35307908058166504,
-0.1704951673746109,
0.3665001094341278,
-0.18454355001449585,
0.0369887612760067,
0.268732488155365,
-0.09281812608242035,
-0.2668079137802124,
0.015024225227534771,
0.3082934021949768,
-0.10778374969959259,
-0.3853510618209839,
0.2481779307126999,
0.29175618290901184,
0.19743011891841888,
-0.4033752679824829,
0.236227348446846,
0.017539842054247856,
-0.25718843936920166,
-0.18180319666862488,
-0.4481990337371826,
-0.22016091644763947,
0.1389453113079071,
-0.3590063750743866,
0.11877042055130005,
-0.05643190070986748,
0.10305371880531311,
0.08750736713409424,
-0.06090781092643738,
-0.1775810718536377,
0.029251128435134888,
-0.03166298195719719,
-0.17088019847869873,
0.30032262206077576,
0.12318668514490128,
0.32150742411613464,
0.03046541102230549,
-0.07578673958778381,
-0.03750265762209892,
-0.023896856233477592,
0.012370908632874489,
-0.2674654722213745,
0.2046535760164261,
-0.11779139190912247,
-0.1721881777048111,
0.09889893978834152,
-0.06692853569984436,
-0.10826971381902695,
0.1115720123052597,
0.21725961565971375,
0.2519303262233734,
0.1715550720691681,
0.43274134397506714,
-0.057806678116321564,
-0.07814110815525055,
-0.5655525922775269,
0.43708544969558716,
0.07442431151866913,
0.5529671907424927,
-0.1422431766986847,
0.4968703091144562,
-0.477857381105423,
-0.059821177273988724,
0.17091156542301178,
-0.06790512055158615,
-0.03516172245144844,
-0.09247320145368576,
0.481283962726593,
0.027164630591869354,
0.08242633193731308,
0.11390874534845352,
0.2881813943386078,
0.21349771320819855,
-0.055994708091020584,
-0.022077001631259918,
0.29254889488220215,
-0.06583499908447266,
-0.024337971583008766,
-0.006055483594536781,
-0.11527691781520844,
-0.05155133455991745,
-0.007452485151588917,
0.2672928273677826,
0.31705960631370544,
-0.05747393146157265,
0.03666110336780548,
-0.2835755944252014,
0.30315905809402466,
0.4111517071723938,
0.016091573983430862,
0.6047905087471008,
0.13519735634326935,
0.3596571981906891,
0.20577174425125122,
0.5650690197944641,
0.14625151455402374,
0.3469209372997284,
-0.2732594907283783,
-0.10610996931791306,
-0.06793254613876343,
0.28071752190589905,
0.33053073287010193,
-0.47023144364356995,
0.14464408159255981,
0.11347945779561996,
-0.22966541349887848,
0.0006698323413729668,
-0.29540640115737915,
0.6380745768547058,
-0.048207465559244156,
0.14276887476444244,
-0.1898060142993927,
0.5034023523330688,
0.09230222553014755,
-0.2670195996761322,
-0.1357155740261078,
-0.2603681683540344,
-0.1646876335144043,
0.270910382270813,
-0.06806722283363342,
-0.42041510343551636,
0.09851708263158798,
-0.05047670006752014,
0.17679475247859955,
0.02801358327269554,
0.02872834913432598,
0.06619741767644882,
0.09504953026771545,
-0.22672149538993835,
0.10044629871845245,
0.016168445348739624,
0.2924775183200836,
0.4172532856464386,
0.23270128667354584,
0.032316721975803375,
0.2583259344100952,
0.20042216777801514,
-0.22062547504901886,
0.24011056125164032,
-0.018181543797254562,
-0.06581845134496689,
0.027500486001372337,
-0.1293645203113556,
0.013819977641105652,
0.4370177388191223,
-0.04640943184494972,
0.021123278886079788,
-0.29373908042907715,
0.04024297744035721,
0.27168360352516174,
-0.013460793532431126,
0.4885115325450897,
0.01118888333439827,
0.021814951673150063,
0.07291229814291,
0.014839463867247105,
-0.4192562401294708,
0.07811836153268814,
0.31700599193573,
-0.2312471568584442,
0.18613578379154205,
-0.009424000047147274,
-0.004024244844913483,
-0.06532372534275055,
0.3525848686695099,
0.2203417867422104,
0.38038957118988037,
-0.3470633924007416,
-0.2478012889623642,
-0.4514298439025879,
-0.21482475101947784,
0.36791154742240906,
-0.22358126938343048,
-0.0821259394288063,
0.2524751126766205,
-0.23522087931632996,
0.17950668931007385,
0.014575505629181862,
0.25174522399902344,
-0.05158666893839836,
0.18124325573444366,
-0.07469593733549118,
-0.17617909610271454,
-0.3598523736000061,
0.1285800337791443,
0.08890823274850845,
-0.1742636114358902,
0.3584084212779999,
-0.11788633465766907,
-0.16735374927520752,
-0.09717793762683868,
0.23763629794120789,
0.1741000860929489,
-0.23551850020885468,
0.17223049700260162,
0.041374996304512024,
0.13445350527763367,
-0.06455405056476593,
-0.055709633976221085,
0.12124663591384888,
0.167398601770401,
-0.3241881728172302,
-0.0388961024582386,
-0.1537388563156128,
-0.13084298372268677,
-0.19898830354213715,
0.03942885622382164,
-0.5205608606338501,
0.3817765414714813,
0.24143953621387482,
0.09032498300075531,
-0.05928190052509308,
-0.05648641660809517,
-0.2958543300628662,
0.011628243140876293,
0.5659478306770325,
0.1310492306947708,
-0.2498779147863388,
0.023048629984259605,
-0.1982489377260208,
0.017298581078648567,
0.502248227596283,
-0.3008307218551636,
0.15936321020126343,
0.06078726425766945,
0.2231655865907669,
0.34167465567588806,
-0.1027994379401207,
-0.5669333338737488,
0.20016930997371674,
0.5056928992271423,
-0.11717188358306885,
0.15273970365524292,
0.1659208983182907,
0.14244528114795685,
0.028700323775410652,
-0.10235857218503952,
0.5085364580154419,
0.19500495493412018,
-0.4277585744857788,
0.13146927952766418,
-0.02523322030901909
] |
https://github.com/huggingface/datasets/issues/1831 | Some question about raw dataset download info in the project . | Once #1846 will be merged, the paths to the raw downloaded files will be accessible as:
```python
builder_instance.dl_manager.downloaded_paths
``` | Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ? | 19 | Some question about raw dataset download info in the project .
Hi , i review the code in
https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py
in the _split_generators function is the truly logic of download raw datasets with dl_manager
and use Conll2003 cls by use import_main_class in load_dataset function
My question is that , with this logic it seems that i can not have the raw dataset download location
in variable in downloaded_files in _split_generators.
If someone also want use huggingface datasets as raw dataset downloader,
how can he retrieve the raw dataset download path from attributes in
datasets.dataset_dict.DatasetDict ?
Once #1846 will be merged, the paths to the raw downloaded files will be accessible as:
```python
builder_instance.dl_manager.downloaded_paths
``` | [
-0.22275249660015106,
-0.07279057055711746,
-0.079534612596035,
0.5368556380271912,
0.11309166252613068,
-0.07173091918230057,
0.1194329783320427,
-0.04083789139986038,
0.0301587525755167,
0.1258057802915573,
-0.3729727566242218,
0.1903691440820694,
-0.11315010488033295,
0.6030975580215454,
0.14625510573387146,
-0.04946180805563927,
-0.05285155028104782,
0.19315476715564728,
-0.09360189735889435,
-0.04381450638175011,
-0.41981419920921326,
0.3098754286766052,
-0.3674634099006653,
0.11164381355047226,
-0.18325723707675934,
0.0009518911247141659,
0.004194031935185194,
0.2849133312702179,
-0.4855920076370239,
-0.25978758931159973,
0.26083359122276306,
0.20130367577075958,
0.4007951021194458,
0.2447413057088852,
-0.0001246907195309177,
0.045272137969732285,
0.2902216911315918,
-0.33600661158561707,
-0.4938018321990967,
-0.2695341408252716,
-0.6499735116958618,
0.008085275068879128,
-0.07448267936706543,
-0.1832292377948761,
0.08800055831670761,
-0.09403760731220245,
-0.0886581614613533,
-0.11867295205593109,
0.12164270877838135,
0.09114296734333038,
0.06241072341799736,
0.3518902361392975,
-0.02135651558637619,
0.02447359450161457,
0.2250174582004547,
0.2522042989730835,
0.058083225041627884,
0.06188906356692314,
-0.025265593081712723,
0.3873557150363922,
0.19038033485412598,
0.2815834879875183,
0.23300689458847046,
0.11517609655857086,
0.44007954001426697,
0.27466416358947754,
-0.28496474027633667,
-0.34415203332901,
0.06462673842906952,
0.18970751762390137,
0.34174078702926636,
-0.3277812898159027,
-0.48005062341690063,
-0.35111328959465027,
-0.12979768216609955,
-0.5806761980056763,
0.0638197511434555,
0.12261472642421722,
-0.45668330788612366,
0.27881285548210144,
-0.516233503818512,
-0.5137313604354858,
-0.13608510792255402,
-0.09485361725091934,
-0.23399049043655396,
0.46936118602752686,
-0.36340582370758057,
0.03392300009727478,
0.07878857851028442,
0.4059509038925171,
0.25238990783691406,
-0.1982111781835556,
-0.032943982630968094,
0.2363317757844925,
-0.14705772697925568,
-0.1451292335987091,
-0.12419655919075012,
0.24373258650302887,
0.18728883564472198,
-0.010250234976410866,
-0.15922853350639343,
-0.25080522894859314,
0.06323199719190598,
0.041423249989748,
0.3790726959705353,
0.04836534708738327,
0.07307456433773041,
0.25804391503334045,
0.2510022521018982,
0.12097645550966263,
0.14411355555057526,
-0.23359087109565735,
-0.0929674282670021,
-0.06286195665597916,
-0.38143691420555115,
0.14220598340034485,
0.0251010674983263,
-0.05444023013114929,
-0.2750728726387024,
-0.21448831260204315,
-0.08977018296718597,
-0.3215324282646179,
0.305787056684494,
0.3743988871574402,
-0.1019364446401596,
0.02205686643719673,
-0.04234640300273895,
0.015864593908190727,
0.12651002407073975,
-0.3291882872581482,
-0.0845959484577179,
-0.23305107653141022,
-0.15517154335975647,
0.03512386605143547,
-0.2879270017147064,
-0.10389518737792969,
0.41168951988220215,
0.10918501019477844,
0.014077317900955677,
0.05996036157011986,
0.013430412858724594,
-0.07171890884637833,
0.1696668267250061,
0.18591786921024323,
0.04905140399932861,
0.21484717726707458,
-0.19173666834831238,
-0.2592778503894806,
-0.17380791902542114,
-0.07483014464378357,
-0.3227013349533081,
-0.4281928837299347,
-0.12090139091014862,
0.008147889748215675,
-0.16941337287425995,
0.11976376920938492,
-0.21290670335292816,
0.028026102110743523,
0.12359917163848877,
0.28714168071746826,
0.015298017300665379,
-0.011190121993422508,
-0.4282560646533966,
-0.25140103697776794,
0.38355669379234314,
0.43487420678138733,
-0.22151391208171844,
-0.1230008602142334,
0.09401223063468933,
-0.43143215775489807,
0.06299195438623428,
0.04781719669699669,
-0.3582911491394043,
0.5085853338241577,
-0.42546507716178894,
-0.18228057026863098,
0.5232154726982117,
-0.3267562985420227,
-0.2476578801870346,
0.5593612790107727,
0.11161308735609055,
-0.097896508872509,
0.4094043970108032,
-0.030503133311867714,
0.28242895007133484,
-0.07300311326980591,
-0.07145489752292633,
0.5319204330444336,
0.1348210722208023,
-0.11838606745004654,
0.03074987232685089,
-0.24293051660060883,
-0.15915191173553467,
-0.11991335451602936,
-0.11367364227771759,
0.2524612843990326,
0.07389400154352188,
-0.13675999641418457,
0.5260576605796814,
-0.04977180436253548,
0.20350238680839539,
0.3350776135921478,
-0.01114667858928442,
0.13695716857910156,
0.017329206690192223,
-0.015499414876103401,
-0.665751576423645,
0.08385227620601654,
-0.2974473834037781,
-0.25763311982154846,
-0.26900917291641235,
-0.3559126555919647,
-0.3377186357975006,
0.17514668405056,
-0.2877252697944641,
-0.33276069164276123,
-0.0792820006608963,
0.09227044135332108,
0.47108516097068787,
-0.025878043845295906,
-0.39520949125289917,
0.5251184701919556,
-0.04188025742769241,
0.16154125332832336,
-0.08880367875099182,
-0.004625711590051651,
0.1427607536315918,
0.1398674100637436,
0.0007158275693655014,
0.11269553005695343,
0.08031413704156876,
-0.17828673124313354,
0.06293115019798279,
0.4662191867828369,
0.15163084864616394,
0.19590677320957184,
0.1718025654554367,
0.00935759674757719,
0.2583297789096832,
0.18170444667339325,
-0.05108693614602089,
-0.22975534200668335,
0.09710269421339035,
0.21278876066207886,
0.05651407316327095,
0.3524627983570099,
0.022318214178085327,
0.25957295298576355,
0.16509482264518738,
-0.06907390058040619,
0.14723069965839386,
-0.01689876616001129,
0.19596047699451447,
-0.22397653758525848,
-0.14863890409469604,
0.2068757265806198,
0.39712899923324585,
0.15361715853214264,
-0.27143076062202454,
0.19678950309753418,
0.42086508870124817,
-0.06795482337474823,
-0.2724222242832184,
0.034227561205625534,
-0.31875768303871155,
-0.03334920108318329,
0.05665646493434906,
0.7819699048995972,
0.483018696308136,
0.01900024153292179,
0.1943264603614807,
0.08965274691581726,
0.2920680344104767,
-0.12521138787269592,
0.4004475176334381,
0.12244507670402527,
-0.032063987106084824,
0.07603956013917923,
-0.47855550050735474,
-0.2069207727909088,
0.1402295082807541,
0.02876851335167885,
0.24543622136116028,
0.15550053119659424,
-0.3239540457725525,
0.05359077826142311,
-0.23969285190105438,
-0.3992612659931183,
-0.28192028403282166,
-0.14867445826530457,
-0.015991056337952614,
-0.1645134687423706,
-0.24365612864494324,
-0.0574244000017643,
-0.09815297275781631,
-0.16977064311504364,
-0.048838112503290176,
0.005650795064866543,
-0.2327386438846588,
0.07420636713504791,
-0.17073969542980194,
-0.09411311894655228,
-0.10392552614212036,
-0.06432067602872849,
0.17746756970882416,
-0.02266124077141285,
0.08940000087022781,
-0.46940913796424866,
0.12176179885864258,
-0.16665327548980713,
0.1832152158021927,
0.3540811538696289,
0.08138006925582886,
0.15176750719547272,
0.4431498050689697,
0.1289682239294052,
-0.020490484312176704,
0.006859010551124811,
-0.12509985268115997,
0.1245361715555191,
-0.12648029625415802,
-0.4716935157775879,
0.10300377011299133,
0.09852876514196396,
-0.08310376852750778,
-0.20642998814582825,
-0.7116601467132568,
-0.09922639280557632,
0.12189576774835587,
-0.1045544445514679,
0.21853241324424744,
-0.1333875209093094,
-0.17114129662513733,
0.017439721152186394,
-0.28638479113578796,
-0.007047275546938181,
-0.22023753821849823,
-0.7402293682098389,
0.2095380574464798,
-0.373506635427475,
-0.205805703997612,
-0.055314987897872925,
-0.12005670368671417,
0.21114540100097656,
-0.008678006008267403,
-0.165097177028656,
0.05140531808137894,
-0.16194403171539307,
0.17685922980308533,
0.0831117257475853,
0.3762403130531311,
-0.03478061407804489,
-0.04974353685975075,
0.16115698218345642,
-0.19358661770820618,
-0.001839117263443768,
0.18269233405590057,
-0.3915804326534271,
0.36621877551078796,
0.38907474279403687,
-0.02434300258755684,
0.12294912338256836,
0.7561134696006775,
0.2864716351032257,
-0.1502741575241089,
0.17534306645393372,
-0.13640357553958893,
0.42529746890068054,
0.29258647561073303,
-0.17734754085540771,
-0.048887912184000015,
0.07276704907417297,
-0.06939860433340073,
0.18231375515460968,
0.0921332910656929,
0.2284846305847168,
-0.2628239691257477,
-0.16670829057693481,
-0.11210252344608307,
-0.13025978207588196,
-0.14206142723560333,
0.5496485233306885,
0.19257138669490814,
0.09298793971538544,
0.19020438194274902,
-0.003549317829310894,
0.06130793318152428,
0.02101491019129753,
0.40956979990005493,
0.3880939781665802,
0.1618989259004593,
-0.06720653176307678,
-0.07496089488267899,
-0.22479723393917084,
0.07422177493572235,
0.28973671793937683,
-0.1773894727230072,
0.17768821120262146,
0.09866611659526825,
0.2031382918357849,
0.11854323744773865,
0.7021446824073792,
-0.018074633553624153,
-0.09241708368062973,
-0.13284842669963837,
-0.21924251317977905,
-0.011309233494102955,
0.10380364954471588,
-0.12783263623714447,
0.10783012211322784,
0.5110150575637817,
0.20771990716457367,
-0.3721148669719696,
-0.4381563663482666,
0.21518339216709137,
0.10949425399303436,
-0.28120657801628113,
-0.1837836056947708,
-0.1544683873653412,
-0.10781916975975037,
-0.2226545214653015,
-0.20919263362884521,
0.1499246507883072,
0.08814976364374161,
-0.005703732371330261,
-0.05667879432439804,
0.08265136927366257,
0.08418194949626923,
-0.00867761392146349,
0.14627332985401154,
0.36093395948410034,
-0.012085884809494019,
-0.07332857698202133,
0.35743552446365356,
0.3906068503856659,
0.19430401921272278,
0.46372756361961365,
-0.37281593680381775,
-0.17683100700378418,
-0.026509838178753853,
0.053140684962272644,
0.7556014060974121,
0.17636583745479584,
-0.4882669746875763,
0.06012381985783577,
-0.011634163558483124,
-0.07556843012571335,
-0.37209829688072205,
0.24221515655517578,
0.29922205209732056,
0.03219916671514511,
-0.1801106333732605,
-0.6387313604354858,
0.48006922006607056,
-0.05209900066256523,
-0.20184044539928436,
0.166630819439888,
0.0069740330800414085,
-0.30695590376853943,
-0.14859828352928162,
-0.010579719208180904,
0.7889216542243958,
0.16144737601280212,
0.11219992488622665,
0.0857861191034317,
-0.41108837723731995,
0.56215500831604,
-0.12681779265403748,
-0.17076389491558075,
-0.29673323035240173,
0.05377398803830147,
-0.14208123087882996,
-0.2615426778793335,
0.04876963794231415,
-0.09641455858945847,
-0.08357010781764984,
0.35387876629829407,
-0.10315549373626709,
0.0783119648694992,
0.03511636704206467,
0.5478227138519287,
-0.0928405374288559,
-0.10320302844047546,
0.098896324634552,
-0.11135632544755936,
0.25751563906669617,
0.46926918625831604,
-0.1261553019285202,
-0.48399585485458374,
-0.18355001509189606,
0.1057133823633194,
-0.051383599638938904,
-0.09796962887048721,
-0.432775616645813,
-0.01700020581483841,
0.09261519461870193,
-0.3537168502807617,
0.012873459607362747,
0.6208474040031433,
0.28366151452064514,
0.023147977888584137,
-0.16483409702777863,
0.0673452764749527,
-0.04952048137784004,
0.07690152525901794,
0.24807767570018768,
0.20850439369678497,
-0.06990469247102737,
-0.07847243547439575,
-0.15814858675003052,
0.13687629997730255,
0.010730080306529999,
-0.20631250739097595,
0.08965496718883514,
-0.10356533527374268,
0.18163569271564484,
-0.3317040205001831,
-0.03476051241159439,
-0.04171845689415932,
0.06684223562479019,
-0.06872790306806564,
-0.010937941260635853,
0.22277069091796875,
-0.3475802540779114,
0.06214286759495735,
-0.27752164006233215,
-0.38756662607192993,
-0.19291824102401733,
0.2877931594848633,
-0.053740937262773514,
0.060010332614183426,
0.2207130342721939,
-0.0982339084148407,
-0.20244860649108887,
-0.039891552180051804,
0.33630579710006714,
-0.10708603262901306,
-0.2793479859828949,
0.33726122975349426,
0.32251664996147156,
0.09401204437017441,
-0.36375632882118225,
0.3148418664932251,
-0.04051176831126213,
-0.23936648666858673,
-0.24529165029525757,
-0.48228922486305237,
-0.2695065438747406,
0.12329386174678802,
-0.33198440074920654,
0.1249404028058052,
-0.06201768293976784,
0.19582878053188324,
0.06519721448421478,
-0.024379124864935875,
-0.17958000302314758,
0.009097880683839321,
-0.03626276180148125,
-0.14892907440662384,
0.30708667635917664,
0.09862373024225235,
0.27303624153137207,
0.09484051913022995,
-0.07222151756286621,
-0.020914459601044655,
-0.07238578796386719,
-0.010793197900056839,
-0.22540085017681122,
0.18569417297840118,
-0.12888655066490173,
-0.1764191836118698,
0.11621874570846558,
-0.0721573531627655,
-0.17466063797473907,
0.12631088495254517,
0.29377856850624084,
0.15771125257015228,
0.17388099431991577,
0.3827466368675232,
-0.07631316035985947,
-0.050257183611392975,
-0.5465726852416992,
0.3560209274291992,
0.09666093438863754,
0.4793521761894226,
-0.17473284900188446,
0.48573777079582214,
-0.4541737735271454,
-0.04478241503238678,
0.18532833456993103,
-0.12383127212524414,
0.0049047586508095264,
-0.11672225594520569,
0.42325258255004883,
-0.02138560637831688,
0.10240159183740616,
0.10843231528997421,
0.2947761118412018,
0.25231850147247314,
-0.10781160742044449,
0.04409739375114441,
0.19664353132247925,
-0.045934826135635376,
-0.05867629498243332,
-0.002026469213888049,
-0.11702323704957962,
-0.007699370849877596,
0.021397370845079422,
0.322396844625473,
0.33948707580566406,
0.015130455605685711,
-0.011926678009331226,
-0.24167665839195251,
0.33748307824134827,
0.4738019108772278,
0.03071380965411663,
0.6178552508354187,
0.15476611256599426,
0.39503273367881775,
0.23197069764137268,
0.6090507507324219,
0.1564682126045227,
0.3764050602912903,
-0.2511895000934601,
-0.09264043718576431,
-0.07205352932214737,
0.20948268473148346,
0.37991687655448914,
-0.4324008822441101,
0.18410496413707733,
0.1872384399175644,
-0.2192244827747345,
0.02899114228785038,
-0.24777045845985413,
0.5808360576629639,
-0.14306822419166565,
0.11188989877700806,
-0.17776131629943848,
0.4941425323486328,
-0.006395782809704542,
-0.25833022594451904,
-0.14018625020980835,
-0.20411625504493713,
-0.0913495421409607,
0.21706059575080872,
-0.06414362788200378,
-0.44200295209884644,
0.02547054924070835,
-0.10101312398910522,
0.12053149193525314,
0.050895389169454575,
0.07091305404901505,
0.09712386131286621,
0.019593317061662674,
-0.21969807147979736,
0.20893079042434692,
-0.09220031648874283,
0.3163805902004242,
0.37090805172920227,
0.29751548171043396,
0.0974188968539238,
0.31268996000289917,
0.1595858335494995,
-0.28444376587867737,
0.2018163949251175,
-0.04754778370261192,
-0.09056147933006287,
0.00617393059656024,
-0.12108679115772247,
0.005841527134180069,
0.41826143860816956,
-0.046142175793647766,
-0.020062003284692764,
-0.3648144602775574,
0.168900728225708,
0.2512787878513336,
0.000059329657233320177,
0.5455230474472046,
-0.0535518154501915,
0.008328656665980816,
0.08692610263824463,
-0.017251137644052505,
-0.477110892534256,
0.06027117744088173,
0.3029375970363617,
-0.25793197751045227,
0.2056419402360916,
0.004927331581711769,
-0.0021013778168708086,
-0.06428776681423187,
0.3228244483470917,
0.13366475701332092,
0.356943279504776,
-0.3690541684627533,
-0.28266796469688416,
-0.47203317284584045,
-0.1578611582517624,
0.39023610949516296,
-0.21691778302192688,
-0.0885378047823906,
0.26076239347457886,
-0.25578227639198303,
0.22716839611530304,
0.034068573266267776,
0.3226418197154999,
0.01075214147567749,
0.14977361261844635,
-0.06564117223024368,
-0.1614820510149002,
-0.3975384831428528,
0.1098097413778305,
0.11434300988912582,
-0.19394148886203766,
0.3625616431236267,
-0.22834338247776031,
-0.13993696868419647,
-0.1116102784872055,
0.2486991435289383,
0.20834416151046753,
-0.20494166016578674,
0.11925183236598969,
-0.039219822734594345,
0.15622884035110474,
-0.0664401724934578,
0.016616100445389748,
0.2328224778175354,
0.20918893814086914,
-0.3784232437610626,
-0.0006279608933255076,
-0.10048706829547882,
-0.1940929889678955,
-0.30430522561073303,
0.04657997563481331,
-0.46160688996315,
0.3110297918319702,
0.2901497483253479,
0.06870880722999573,
-0.056968241930007935,
-0.039667464792728424,
-0.36142203211784363,
0.05343591421842575,
0.597510039806366,
0.17920130491256714,
-0.29545682668685913,
-0.001695309649221599,
-0.20202869176864624,
0.01810537278652191,
0.47211605310440063,
-0.2760745882987976,
0.09747055917978287,
-0.039548419415950775,
0.1857444792985916,
0.3565400540828705,
-0.1293283998966217,
-0.540049135684967,
0.24399392306804657,
0.5118326544761658,
-0.12002450972795486,
0.10014577209949493,
0.2415112853050232,
0.15310370922088623,
-0.016219062730669975,
-0.09920114278793335,
0.510597288608551,
0.20119793713092804,
-0.41276732087135315,
0.1326325684785843,
-0.014809436164796352
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Hi @wumpusman
`datasets` has a caching mechanism that allows to cache the results of `.map` so that when you want to re-run it later it doesn't recompute it again.
So when you do `.map`, what actually happens is:
1. compute the hash used to identify your `map` for the cache
2. apply your function on every batch
This can explain the time difference between your different experiments.
The hash computation time depends of how complex your function is. For a tokenizer, the hash computation scans the lists of the words in the tokenizer to identify this tokenizer. Usually it takes 2-3 seconds.
Also note that you can disable caching though using
```python
import datasets
datasets.set_caching_enabled(False)
``` | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 116 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Hi @wumpusman
`datasets` has a caching mechanism that allows to cache the results of `.map` so that when you want to re-run it later it doesn't recompute it again.
So when you do `.map`, what actually happens is:
1. compute the hash used to identify your `map` for the cache
2. apply your function on every batch
This can explain the time difference between your different experiments.
The hash computation time depends of how complex your function is. For a tokenizer, the hash computation scans the lists of the words in the tokenizer to identify this tokenizer. Usually it takes 2-3 seconds.
Also note that you can disable caching though using
```python
import datasets
datasets.set_caching_enabled(False)
``` | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Hi @lhoestq ,
Thanks for the reply. It's entirely possible that is the issue. Since it's a side project I won't be looking at it till later this week, but, I'll verify it by disabling caching and hopefully I'll see the same runtime.
Appreciate the reference,
Michael | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 47 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Hi @lhoestq ,
Thanks for the reply. It's entirely possible that is the issue. Since it's a side project I won't be looking at it till later this week, but, I'll verify it by disabling caching and hopefully I'll see the same runtime.
Appreciate the reference,
Michael | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | I believe this is an actual issue, tokenizing a ~4GB txt file went from an hour and a half to ~10 minutes when I switched from my pre-trained tokenizer(on the same dataset) to the default gpt2 tokenizer.
Both were loaded using:
```
AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
```
I trained the tokenizer using ByteLevelBPETokenizer from the Tokenizers library and save it to a tokenizer.json file.
I have tested the caching ideas above, changing the number of process, the TOKENIZERS_PARALLELISM env variable, keep_in_memory=True and batching with different sizes.
Apologies I can't really upload much code, but wanted to back up the finding and hopefully a fix/the problem can be found.
I will comment back if I find a fix as well. | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 117 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
I believe this is an actual issue, tokenizing a ~4GB txt file went from an hour and a half to ~10 minutes when I switched from my pre-trained tokenizer(on the same dataset) to the default gpt2 tokenizer.
Both were loaded using:
```
AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
```
I trained the tokenizer using ByteLevelBPETokenizer from the Tokenizers library and save it to a tokenizer.json file.
I have tested the caching ideas above, changing the number of process, the TOKENIZERS_PARALLELISM env variable, keep_in_memory=True and batching with different sizes.
Apologies I can't really upload much code, but wanted to back up the finding and hopefully a fix/the problem can be found.
I will comment back if I find a fix as well. | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Hi @johncookds do you think this can come from one tokenizer being faster than the other one ? Can you try to compare their speed without using `datasets` just to make sure ? | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 33 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Hi @johncookds do you think this can come from one tokenizer being faster than the other one ? Can you try to compare their speed without using `datasets` just to make sure ? | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Hi yes, I'm closing the loop here with some timings below. The issue seems to be at least somewhat/mainly with the tokenizer's themselves. Moreover legacy saves of the trainer tokenizer perform faster but differently than the new tokenizer.json saves(note nothing about the training process/adding of special tokens changed between the top two trained tokenizer tests, only the way it was saved). This is only a 3x slowdown vs like a 10x but I think the slowdown is most likely due to this.
```
trained tokenizer - tokenizer.json save (same results for AutoTokenizer legacy_format=False):
Tokenizer time(seconds): 0.32767510414123535
Tokenized avg. length: 323.01
trained tokenizer - AutoTokenizer legacy_format=True:
Tokenizer time(seconds): 0.09258866310119629
Tokenized avg. length: 301.01
GPT2 Tokenizer from huggingface
Tokenizer time(seconds): 0.1010282039642334
Tokenized avg. length: 461.21
``` | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 124 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Hi yes, I'm closing the loop here with some timings below. The issue seems to be at least somewhat/mainly with the tokenizer's themselves. Moreover legacy saves of the trainer tokenizer perform faster but differently than the new tokenizer.json saves(note nothing about the training process/adding of special tokens changed between the top two trained tokenizer tests, only the way it was saved). This is only a 3x slowdown vs like a 10x but I think the slowdown is most likely due to this.
```
trained tokenizer - tokenizer.json save (same results for AutoTokenizer legacy_format=False):
Tokenizer time(seconds): 0.32767510414123535
Tokenized avg. length: 323.01
trained tokenizer - AutoTokenizer legacy_format=True:
Tokenizer time(seconds): 0.09258866310119629
Tokenized avg. length: 301.01
GPT2 Tokenizer from huggingface
Tokenizer time(seconds): 0.1010282039642334
Tokenized avg. length: 461.21
``` | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | @lhoestq ,
Hi, which version of datasets has datasets.set_caching_enabled(False)? I get
module 'datasets' has no attribute 'set_caching_enabled'. To hopefully get around this, I reran my code on a new set of data, and did so only once.
@johncookds , thanks for chiming in, it looks this might be an issue of Tokenizer.
**Tokenizer**: The runtime of GPT2TokenizerFast.from_pretrained("gpt2") on 1000 chars is: **143 ms**
**SlowTokenizer**: The runtime of a locally saved and loaded Tokenizer using the same vocab on 1000 chars is: **4.43 s**
That being said, I compared performance on the map function:
Running Tokenizer versus using it in the map function for 1000 chars goes from **141 ms** to **356 ms**
Running SlowTokenizer versus using it in the map function for 1000 chars with a single element goes from **4.43 s** to **9.76 s**
I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior.
@lhoestq, do you by chance know how I can redirect this issue to Tokenizer?
Regards,
Michael | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 182 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
@lhoestq ,
Hi, which version of datasets has datasets.set_caching_enabled(False)? I get
module 'datasets' has no attribute 'set_caching_enabled'. To hopefully get around this, I reran my code on a new set of data, and did so only once.
@johncookds , thanks for chiming in, it looks this might be an issue of Tokenizer.
**Tokenizer**: The runtime of GPT2TokenizerFast.from_pretrained("gpt2") on 1000 chars is: **143 ms**
**SlowTokenizer**: The runtime of a locally saved and loaded Tokenizer using the same vocab on 1000 chars is: **4.43 s**
That being said, I compared performance on the map function:
Running Tokenizer versus using it in the map function for 1000 chars goes from **141 ms** to **356 ms**
Running SlowTokenizer versus using it in the map function for 1000 chars with a single element goes from **4.43 s** to **9.76 s**
I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior.
@lhoestq, do you by chance know how I can redirect this issue to Tokenizer?
Regards,
Michael | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Thanks for the experiments @johncookds and @wumpusman !
> Hi, which version of datasets has datasets.set_caching_enabled(False)?
Currently you have to install `datasets` from source to have this feature, but this will be available in the next release in a few days.
> I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior.
Could you also try with double the number of characters ? This should let us have an idea of the fixed cost (hashing) and the dynamic cost (actual tokenization, grows with the size of the input)
> @lhoestq, do you by chance know how I can redirect this issue to Tokenizer?
Feel free to post an issue on the `transformers` repo. Also I'm sure there should be related issues so you can also look for someone with the same concerns on the `transformers` repo. | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 157 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Thanks for the experiments @johncookds and @wumpusman !
> Hi, which version of datasets has datasets.set_caching_enabled(False)?
Currently you have to install `datasets` from source to have this feature, but this will be available in the next release in a few days.
> I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior.
Could you also try with double the number of characters ? This should let us have an idea of the fixed cost (hashing) and the dynamic cost (actual tokenization, grows with the size of the input)
> @lhoestq, do you by chance know how I can redirect this issue to Tokenizer?
Feel free to post an issue on the `transformers` repo. Also I'm sure there should be related issues so you can also look for someone with the same concerns on the `transformers` repo. | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | @lhoestq,
I just checked that previous run time was actually 3000 chars. I increased it to 6k chars, again, roughly double.
SlowTokenizer **7.4 s** to **15.7 s**
Tokenizer: **276 ms** to **616 ms**
I'll post this issue on Tokenizer, seems it hasn't quite been raised (albeit I noticed a similar issue that might relate).
Regards,
Michael | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 56 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
@lhoestq,
I just checked that previous run time was actually 3000 chars. I increased it to 6k chars, again, roughly double.
SlowTokenizer **7.4 s** to **15.7 s**
Tokenizer: **276 ms** to **616 ms**
I'll post this issue on Tokenizer, seems it hasn't quite been raised (albeit I noticed a similar issue that might relate).
Regards,
Michael | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1830 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? | Hi,
I'm following up here as I found my exact issue. It was with saving and re-loading the tokenizer. When I trained then processed the data without saving and reloading it, it was 10x-100x faster than when I saved and re-loaded it.
Both resulted in the exact same tokenized datasets as well.
There is additionally a bug where the older legacy tokenizer save does not preserve a learned tokenizing behavior if trained from scratch.
Understand its not exactly Datasets related but hope it can help someone if they have the same issue.
Thanks! | This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
| 93 | using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower:
````
def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"):
words_unique = set(text.split(" "))
for i in words_unique:
original_tokenizer.add_tokens(i)
original_tokenizer.save_pretrained(path)
tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad"))
train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]})
````
I then applied the dataset map function on a fairly small set of text:
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds
**100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s**
In comparison using (even after adding additional tokens):
`
tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")`
```
%%time
train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True)
```
The time is
**100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms**
It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function.
I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
Hi,
I'm following up here as I found my exact issue. It was with saving and re-loading the tokenizer. When I trained then processed the data without saving and reloading it, it was 10x-100x faster than when I saved and re-loaded it.
Both resulted in the exact same tokenized datasets as well.
There is additionally a bug where the older legacy tokenizer save does not preserve a learned tokenizing behavior if trained from scratch.
Understand its not exactly Datasets related but hope it can help someone if they have the same issue.
Thanks! | [
-0.4040471911430359,
-0.013007371686398983,
-0.10247061401605606,
0.103429414331913,
0.14530524611473083,
-0.1225539967417717,
0.255054235458374,
0.18908898532390594,
0.13067756593227386,
-0.006502095144242048,
-0.05422332137823105,
0.4988861382007599,
-0.1724810004234314,
-0.27275970578193665,
-0.1320430338382721,
0.06504276394844055,
0.21975916624069214,
0.02241680398583412,
0.24164533615112305,
-0.034286756068468094,
-0.12187288701534271,
0.10230200737714767,
-0.17672620713710785,
0.24139957129955292,
-0.31526291370391846,
-0.0779929980635643,
0.08123106509447098,
-0.2096334993839264,
-0.0027565956115722656,
-0.5689613819122314,
-0.20842987298965454,
0.15812475979328156,
0.02094283513724804,
0.5331247448921204,
-0.00011487366282381117,
0.040342241525650024,
-0.029163548722863197,
0.2731476128101349,
0.13471746444702148,
0.044361431151628494,
0.3529544174671173,
-0.19428545236587524,
-0.16858331859111786,
-0.22576646506786346,
-0.054170917719602585,
-0.280862957239151,
-0.022122390568256378,
-0.2241770178079605,
0.06830835342407227,
0.030042018741369247,
0.16085867583751678,
0.11519473791122437,
-0.39643174409866333,
-0.05951579660177231,
-0.002458605682477355,
-0.10422474890947342,
-0.09915459156036377,
0.014027217403054237,
0.07132960110902786,
-0.25518742203712463,
-0.21165655553340912,
0.19490474462509155,
-0.213043212890625,
-0.1478140503168106,
0.2687232196331024,
0.21636934578418732,
0.03461197391152382,
-0.24252457916736603,
0.16808658838272095,
0.23163487017154694,
0.0670105516910553,
-0.027212731540203094,
-0.01712486706674099,
-0.3350796103477478,
-0.37069112062454224,
-0.028482412919402122,
0.1461227983236313,
-0.4334975779056549,
-0.12065150588750839,
-0.08960270136594772,
-0.41406580805778503,
0.20377331972122192,
0.26424288749694824,
-0.12239371985197067,
-0.20393085479736328,
0.43524402379989624,
0.09542790055274963,
0.1497347205877304,
0.10415219515562057,
-0.09975197911262512,
-0.28079164028167725,
-0.264377623796463,
-0.15957695245742798,
0.3733043372631073,
-0.34158727526664734,
-0.1739550083875656,
0.2692953050136566,
-0.30913498997688293,
-0.14078854024410248,
0.11428036540746689,
-0.14243139326572418,
0.1946650743484497,
0.2083413451910019,
-0.047119829803705215,
0.06630701571702957,
0.24600450694561005,
0.038447555154561996,
0.17384637892246246,
0.029690688475966454,
-0.48029255867004395,
-0.3160504698753357,
-0.09036082029342651,
-0.18887552618980408,
0.020214172080159187,
0.3458717465400696,
-0.24245862662792206,
-0.2370809018611908,
-0.07258350402116776,
-0.020596418529748917,
-0.17130737006664276,
-0.3799443542957306,
-0.09833710640668869,
0.06586110591888428,
0.18545487523078918,
0.058747246861457825,
0.06103815510869026,
-0.3647976815700531,
-0.2021668255329132,
-0.09283147752285004,
-0.07672633230686188,
-0.12862765789031982,
-0.17200037837028503,
-0.10449192672967911,
0.2542574405670166,
-0.1882735639810562,
0.09130590409040451,
0.2601751983165741,
0.0789947435259819,
-0.11537621170282364,
0.21030883491039276,
0.21960459649562836,
-0.36432313919067383,
0.10472869873046875,
-0.11305440962314606,
0.07480103522539139,
0.43602702021598816,
-0.005507527384907007,
0.0017841197550296783,
-0.2595287263393402,
0.20827573537826538,
-0.2649086117744446,
-0.2264888882637024,
0.24138565361499786,
0.11916005611419678,
-0.08314213156700134,
-0.12216074764728546,
-0.49422940611839294,
0.43854549527168274,
0.25392261147499084,
-0.11635357141494751,
-0.07491347938776016,
-0.18091335892677307,
-0.5298196077346802,
-0.21674203872680664,
0.26792487502098083,
-0.018771905452013016,
-0.07221265137195587,
-0.19377999007701874,
0.3418036103248596,
0.19217219948768616,
0.31035134196281433,
0.6430553793907166,
-0.386482834815979,
0.7953376770019531,
-0.12504975497722626,
0.7483619451522827,
0.2579936683177948,
-0.2477053552865982,
-0.37781769037246704,
0.11663863807916641,
-0.1784684956073761,
0.2722213864326477,
-0.2818518877029419,
-0.1200629249215126,
0.7026371359825134,
-0.2252787947654724,
0.34198448061943054,
0.10614427924156189,
0.24699541926383972,
0.3040958642959595,
-0.24837346374988556,
-0.04918991029262543,
0.5504582524299622,
-0.08022253960371017,
-0.22425267100334167,
-0.15098117291927338,
-0.15340650081634521,
0.11113323271274567,
-0.03155431151390076,
-0.12037350237369537,
-0.15540939569473267,
0.06173209100961685,
0.015111593529582024,
0.027056027203798294,
-0.06373592466115952,
0.2192266285419464,
0.14711256325244904,
0.21719396114349365,
0.07411736994981766,
0.06839264929294586,
0.42903080582618713,
-0.006116725970059633,
0.10551649332046509,
-0.06455080956220627,
-0.15043248236179352,
-0.14192776381969452,
0.17265284061431885,
0.12822063267230988,
0.06789838522672653,
0.08919259905815125,
0.23117244243621826,
-0.10698000341653824,
0.015444094315171242,
0.12702298164367676,
0.4437767267227173,
-0.30414241552352905,
0.14068663120269775,
-0.1602889895439148,
-0.10612202435731888,
-0.1936032921075821,
0.14087431132793427,
0.10873274505138397,
-0.18346568942070007,
0.16243277490139008,
0.12479054182767868,
0.3094664514064789,
-0.17307007312774658,
0.20741236209869385,
0.11455951631069183,
0.2654836177825928,
0.0448613278567791,
0.1117050051689148,
0.016418106853961945,
-0.1618008017539978,
-0.10114330053329468,
0.24875232577323914,
0.7665555477142334,
0.29342326521873474,
-0.09813094884157181,
-0.19185031950473785,
-0.007449602708220482,
0.20522285997867584,
0.1254599243402481,
0.09028628468513489,
-0.01721367985010147,
0.3012901246547699,
0.42470452189445496,
0.17126676440238953,
0.3508588969707489,
0.4743339717388153,
0.526760458946228,
-0.1261988878250122,
-0.21092334389686584,
0.11692459136247635,
-0.3413847088813782,
-0.43900296092033386,
-0.032455895096063614,
-0.41324758529663086,
0.16794651746749878,
0.10433059930801392,
0.2238326519727707,
-0.16898374259471893,
-0.013875127770006657,
0.002553206402808428,
0.27276188135147095,
0.23192834854125977,
-0.006252642255276442,
-0.03470798581838608,
0.16773170232772827,
0.2354774922132492,
-0.32783588767051697,
-0.1683429628610611,
-0.01774452067911625,
0.24668419361114502,
-0.02020333893597126,
-0.08809291571378708,
0.06602875888347626,
0.17903882265090942,
0.4836558699607849,
-0.07303366810083389,
0.04387998208403587,
-0.23364883661270142,
-0.0868266299366951,
0.011286426335573196,
0.07300635427236557,
0.14293420314788818,
0.20160530507564545,
0.04160511866211891,
0.05537920817732811,
-0.13247589766979218,
-0.032635919749736786,
-0.2036227434873581,
-0.36904433369636536,
0.06732720136642456,
0.047815702855587006,
-0.10531264543533325,
0.3012903034687042,
0.18954972922801971,
-0.07064677029848099,
-0.028473978862166405,
-0.4572892189025879,
0.08773913234472275,
-0.18031150102615356,
0.00987807847559452,
-0.1076650395989418,
-0.15344353020191193,
-0.19836822152137756,
0.04000311344861984,
0.1168602854013443,
-0.27817532420158386,
-0.2616516351699829,
-0.3224227726459503,
-0.11807259172201157,
-0.17440873384475708,
0.14054439961910248,
-0.020054228603839874,
0.051142431795597076,
-0.03127998858690262,
0.122299924492836,
0.1008712500333786,
0.12934540212154388,
-0.2491520345211029,
-0.16720826923847198,
0.19397683441638947,
-0.05200422927737236,
-0.01217202190309763,
-0.3335227072238922,
-0.24970515072345734,
0.3890588879585266,
-0.069970041513443,
-0.014193631708621979,
-0.2141370177268982,
0.09421393275260925,
0.1669798642396927,
0.13987228274345398,
-0.2460222691297531,
0.21763978898525238,
-0.304470956325531,
0.2614799439907074,
0.038443420082330704,
-0.2167220562696457,
0.39410242438316345,
0.2282126247882843,
-0.12224391847848892,
0.16977062821388245,
-0.24780602753162384,
0.16913452744483948,
-0.05900352820754051,
-0.23506373167037964,
0.0723133310675621,
0.48403841257095337,
0.2467961460351944,
0.6211674213409424,
0.048981670290231705,
-0.01333744078874588,
-0.00010513589950278401,
-0.31132787466049194,
-0.13158217072486877,
-0.4311894178390503,
-0.07551375031471252,
0.20715615153312683,
-0.09913644939661026,
0.025744672864675522,
0.48657697439193726,
-0.08505594730377197,
-0.33308419585227966,
0.22216999530792236,
-0.17344270646572113,
0.04907584935426712,
-0.19993922114372253,
0.1273283064365387,
-0.09477344900369644,
0.059305667877197266,
0.0013979331124573946,
0.40461060404777527,
-0.5339140295982361,
-0.1491030752658844,
0.23746748268604279,
-0.2787157893180847,
0.2525826096534729,
-0.2517896592617035,
-0.9455535411834717,
0.3512924313545227,
-0.852488100528717,
0.09497617930173874,
0.01654759980738163,
0.2276025265455246,
0.047507911920547485,
-0.027062078937888145,
0.11630105972290039,
-0.03245165944099426,
0.16581299901008606,
-0.053808681666851044,
-0.08455531299114227,
0.23704974353313446,
-0.5604740381240845,
-0.11725743860006332,
-0.14565140008926392,
-0.07878518104553223,
0.19362695515155792,
0.5949997305870056,
0.7412640452384949,
-0.09443051367998123,
-0.2862771153450012,
-0.35044464468955994,
-0.04790664464235306,
0.0696776956319809,
0.03928473964333534,
-0.01384169701486826,
-0.10236886888742447,
-0.18080125749111176,
0.01081746257841587,
0.10237514972686768,
0.1822669357061386,
0.13342009484767914,
-0.15410958230495453,
-0.08755312114953995,
0.150520458817482,
0.3036973476409912,
0.27780207991600037,
0.24230681359767914,
-0.03876843303442001,
0.34377962350845337,
0.3173716962337494,
0.10557402670383453,
-0.11109772324562073,
-0.157546728849411,
0.21815171837806702,
-0.36953070759773254,
0.09002246707677841,
0.09987171739339828,
0.06710659712553024,
0.16950534284114838,
-0.03232557326555252,
0.2138265073299408,
-0.269631952047348,
0.3467109203338623,
-0.19183023273944855,
0.39901188015937805,
0.5268698334693909,
0.13443563878536224,
-0.5008947253227234,
-0.30269855260849,
0.07103831321001053,
0.5278069972991943,
-0.2671489715576172,
0.4369063675403595,
-0.480276495218277,
-0.4048762023448944,
0.47864577174186707,
0.2622504234313965,
0.5893495082855225,
-0.0001976115017896518,
0.2131251096725464,
0.24673764407634735,
0.28208744525909424,
0.18717916309833527,
-0.442243754863739,
-0.12834994494915009,
-0.23518338799476624,
0.21898247301578522,
0.043299928307533264,
-0.07354768365621567,
0.0681038498878479,
0.23929373919963837,
-0.11905783414840698,
-0.07074666768312454,
0.13437466323375702,
0.8829228281974792,
-0.01304363738745451,
0.302733838558197,
0.4876137971878052,
-0.3995561897754669,
0.34295812249183655,
0.1393882930278778,
0.22414246201515198,
0.062705397605896,
0.09403488785028458,
0.09735545516014099,
-0.06829370558261871,
-0.15507207810878754,
-0.24992842972278595,
-0.20255868136882782,
-0.5686982274055481,
0.2977933883666992,
-0.20471446216106415,
0.030800603330135345,
0.07980091869831085,
0.1448376476764679,
0.04165804386138916,
0.2406427264213562,
0.006632607895880938,
0.2885668873786926,
0.2132268249988556,
0.3364417850971222,
0.2534502446651459,
-0.509605348110199,
-0.19772905111312866,
-0.009806681424379349,
-0.01524312887340784,
0.16441339254379272,
-0.26448124647140503,
-0.31853240728378296,
-0.6420418620109558,
-0.045864302664995193,
0.30404898524284363,
-0.36560481786727905,
0.01904495432972908,
0.10112284123897552,
-0.0792650580406189,
-0.19805818796157837,
0.08064142614603043,
-0.15343181788921356,
0.08537713438272476,
0.4080637991428375,
-0.07441268116235733,
-0.28066375851631165,
0.01849401742219925,
0.3022504448890686,
0.12154629826545715,
-0.2107042372226715,
0.4307021498680115,
-0.47031158208847046,
-0.26293569803237915,
-0.103587307035923,
0.21543635427951813,
0.13631516695022583,
0.11987598240375519,
0.09263511002063751,
-0.13185416162014008,
-0.1832280308008194,
0.09514613449573517,
0.2641550898551941,
-0.1274954080581665,
-0.10990788042545319,
-0.17242008447647095,
-0.018341394141316414,
-0.30604374408721924,
-0.010590522550046444,
-0.05993136018514633,
0.09162289649248123,
0.09735384583473206,
0.13492819666862488,
-0.3185407817363739,
0.1697503626346588,
-0.2577684223651886,
-0.12103062868118286,
0.1259123533964157,
0.15388120710849762,
-0.20141102373600006,
-0.1586650311946869,
0.12080898135900497,
0.04116221144795418,
0.09976748377084732,
0.2575889825820923,
0.03509645164012909,
-0.2286946177482605,
-0.08349330723285675,
0.14248980581760406,
0.046630751341581345,
-0.3604576289653778,
0.06594095379114151,
0.13582047820091248,
-0.08454786986112595,
-0.5128017663955688,
0.2053453028202057,
0.17162412405014038,
0.013776887208223343,
-0.4263344705104828,
0.19677723944187164,
-0.00454440712928772,
-0.006976506672799587,
0.15401525795459747,
-0.0409201979637146,
0.019588276743888855,
0.10938436537981033,
0.21673010289669037,
0.12089184671640396,
-0.20395350456237793,
0.04365482181310654,
0.2604888081550598,
0.33503153920173645,
0.17188461124897003,
0.011980320326983929,
-0.026033001020550728,
-0.06329485028982162,
0.16377755999565125,
-0.169979527592659,
0.21267780661582947,
-0.2245703935623169,
-0.4430892765522003,
0.20653782784938812,
0.14772045612335205,
0.06795009225606918,
-0.236866757273674,
0.4112253189086914,
-0.2698410451412201,
0.17054641246795654,
0.053706344217061996,
0.2234906107187271,
0.25585678219795227,
-0.21674495935440063,
-0.16781362891197205,
0.45805010199546814,
-0.18562984466552734,
0.09275663644075394,
0.11852148920297623,
-0.04643764719367027,
0.014365952461957932,
0.32363641262054443,
0.08962979167699814,
0.13182897865772247,
0.4207834005355835,
0.20650146901607513,
0.25704410672187805,
0.23929327726364136,
0.373135507106781,
-0.18872366845607758,
-0.23241519927978516,
-0.05791837349534035,
0.4835403561592102,
-0.3375784754753113,
0.14522506296634674,
-0.003101728158071637,
-0.009071736596524715,
0.015064201317727566,
-0.557724118232727,
-0.03618977963924408,
0.38085588812828064,
-0.37380120158195496,
-0.2634640038013458,
-0.10397461801767349,
0.000050684822781477123,
-0.044415008276700974,
0.3579731583595276,
-0.1306929588317871,
-0.04405200481414795,
-0.3228883445262909,
-0.1085641086101532,
-0.0701359212398529,
0.11163001507520676,
-0.2539830505847931,
-0.23453006148338318,
0.21848855912685394,
-0.21756039559841156,
0.2340622991323471,
-0.42404210567474365,
0.13494299352169037,
-0.055665455758571625,
0.3740637004375458,
0.37340247631073,
0.2763728201389313,
-0.13791435956954956,
0.06044124811887741,
-0.07821490615606308,
0.0910298079252243,
0.03761201724410057,
0.14116159081459045,
-0.07311572879552841,
-0.3212685286998749,
0.13426564633846283,
0.004114273004233837,
-0.17982731759548187,
-0.35665181279182434,
0.03298255056142807,
-0.10908150672912598,
0.19662690162658691,
0.22091232240200043,
0.050985146313905716,
-0.14805711805820465,
0.1166607141494751,
0.06280168890953064,
0.08144941926002502,
-0.1601274609565735,
0.14899788796901703,
0.0793076604604721,
0.18264612555503845,
-0.08430454879999161,
0.07061048597097397,
0.03787631914019585,
0.4189380705356598,
0.027414502575993538,
-0.11204228550195694,
-0.37865307927131653,
-0.330770343542099,
-0.3441821038722992,
-0.08834480494260788,
-0.1933036893606186,
0.1373801827430725,
-0.002271507168188691,
0.09053793549537659,
0.1760575920343399,
0.19486239552497864,
0.20748448371887207,
0.1234852597117424,
-0.20832611620426178,
-0.09985025972127914,
-0.28510650992393494,
0.48169514536857605,
-0.17266541719436646,
0.039655085653066635,
0.006443111691623926,
-0.350665420293808,
0.4216938614845276,
0.016045983880758286,
0.1311933994293213,
-0.17603732645511627,
0.052330367267131805,
-0.021240107715129852,
0.09319606423377991,
0.6377805471420288,
0.16887134313583374,
0.06171916425228119,
-0.03467855975031853,
0.16214896738529205,
0.15414565801620483,
0.18101797997951508,
-0.2202599197626114,
0.0676569789648056,
-0.01572919450700283,
-0.0018751837778836489,
0.05821589007973671,
0.027588682249188423,
-0.0795355811715126,
-0.11201338469982147,
0.1741837114095688,
-0.09662442654371262,
-0.22798743844032288,
-0.09358853846788406,
0.007985462434589863,
0.1224939301609993,
-0.2413400411605835,
0.33198443055152893,
0.07341516762971878,
0.20806674659252167,
-0.3973877727985382,
-0.06145135313272476,
0.4318274259567261,
-0.6654883027076721,
-0.12014941871166229,
-0.26930952072143555,
-0.011783208698034286,
0.3286215364933014,
0.17322079837322235,
-0.1057521253824234,
-0.28178808093070984,
0.5291827321052551,
0.027850529178977013,
-0.28139498829841614,
0.31744885444641113,
-0.06961582601070404,
-0.007653852459043264,
-0.033732835203409195,
0.3865729570388794,
-0.24105378985404968,
-0.18339753150939941,
-0.07387257367372513,
-0.04495919495820999
] |
https://github.com/huggingface/datasets/issues/1827 | Regarding On-the-fly Data Loading | Hi @acul3
Issue #1776 talks about doing on-the-fly data pre-processing, which I think is solved in the next release as mentioned in the issue #1825. I also look forward to using this feature, though :)
I wanted to ask about on-the-fly data loading from the cache (before pre-processing). | Hi,
I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point.
Thanks,
Gunjan | 48 | Regarding On-the-fly Data Loading
Hi,
I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point.
Thanks,
Gunjan
Hi @acul3
Issue #1776 talks about doing on-the-fly data pre-processing, which I think is solved in the next release as mentioned in the issue #1825. I also look forward to using this feature, though :)
I wanted to ask about on-the-fly data loading from the cache (before pre-processing). | [
-0.17268453538417816,
-0.2835986912250519,
-0.11839695274829865,
0.2190789133310318,
0.3321973383426666,
0.09173063188791275,
0.570720911026001,
0.13171741366386414,
0.1204758808016777,
0.06700479239225388,
0.07138803601264954,
-0.0857144221663475,
-0.0965600535273552,
0.21161873638629913,
0.27250978350639343,
0.2309679239988327,
0.0025831935927271843,
0.06900022178888321,
0.059121571481227875,
-0.02845649980008602,
-0.040243443101644516,
-0.07282184809446335,
-0.012369661591947079,
-0.3621988296508789,
-0.4274351894855499,
-0.0935060977935791,
-0.17934738099575043,
0.05714503303170204,
-0.15365596115589142,
-0.2890402674674988,
0.1886155605316162,
0.25400328636169434,
0.27082541584968567,
0.11724108457565308,
-0.00012036381667712703,
-0.01245043333619833,
0.38280799984931946,
-0.1435646116733551,
-0.32065021991729736,
0.12207043915987015,
-0.09934461861848831,
0.11576896905899048,
0.10642135888338089,
-0.1725357621908188,
-0.0760352611541748,
0.4242570698261261,
0.12474706023931503,
-0.31896692514419556,
0.47578850388526917,
-0.08197091519832611,
0.045612215995788574,
-0.06935030221939087,
-0.3194620609283447,
0.030737265944480896,
0.21068821847438812,
0.1520230621099472,
-0.042888838797807693,
-0.04137920215725899,
0.36629077792167664,
-0.11797469854354858,
-0.1022314801812172,
0.3062208592891693,
-0.002501547336578369,
0.004144439473748207,
0.22040988504886627,
-0.015438842587172985,
0.0600905641913414,
-0.47586774826049805,
-0.023906486108899117,
0.15862886607646942,
0.5854743123054504,
0.0645013302564621,
-0.31788596510887146,
-0.3903410732746124,
0.019841311499476433,
-0.3572821617126465,
0.0862499475479126,
0.38214266300201416,
-0.3288043439388275,
0.09323163330554962,
-0.5378327965736389,
-0.40872207283973694,
-0.22085779905319214,
-0.11402470618486404,
-0.0902027115225792,
-0.29125750064849854,
0.0688987746834755,
-0.07242853194475174,
0.08587699383497238,
0.20787303149700165,
0.6285198330879211,
-0.11197683215141296,
-0.11090577393770218,
0.4937472641468048,
-0.27213943004608154,
-0.2085573524236679,
-0.4864161014556885,
-0.19672392308712006,
-0.005781402811408043,
-0.18262849748134613,
0.27536240220069885,
0.17976517975330353,
-0.19198697805404663,
0.06215889751911163,
0.35620707273483276,
0.027306994423270226,
0.16531160473823547,
-0.031149381771683693,
0.006468364503234625,
-0.29586419463157654,
-0.2373790591955185,
-0.0634203851222992,
-0.4045855700969696,
0.13686059415340424,
-0.11525310575962067,
-0.26815319061279297,
-0.44671234488487244,
-0.25064390897750854,
0.2545190751552582,
-0.2527226507663727,
0.18362835049629211,
-0.040348585695028305,
-0.2313978374004364,
0.3127174377441406,
-0.02880014292895794,
0.008306385949254036,
0.29753974080085754,
-0.16741274297237396,
-0.07752910256385803,
-0.25401678681373596,
-0.04786079749464989,
-0.018181897699832916,
-0.2493312954902649,
0.1330200880765915,
0.20429183542728424,
0.05891973897814751,
0.11790337413549423,
-0.1313331425189972,
0.004141506273299456,
0.027039751410484314,
-0.0003009473439306021,
-0.3179265260696411,
0.3636932969093323,
0.2754962146282196,
-0.01509847491979599,
-0.2916892170906067,
0.031247716397047043,
0.333538681268692,
-0.020160380750894547,
0.5988049507141113,
-0.29743167757987976,
-0.08271951973438263,
0.3635725975036621,
0.01181836798787117,
-0.029623614624142647,
-0.23988568782806396,
-0.2626537084579468,
0.41845449805259705,
0.24895623326301575,
0.08594412356615067,
0.20360761880874634,
0.07725602388381958,
-0.28514739871025085,
-0.021287206560373306,
0.11057516187429428,
0.3501606583595276,
-0.4026872217655182,
-0.30870479345321655,
0.279479056596756,
0.02226685732603073,
-0.12208346277475357,
-0.00918711256235838,
-0.24881701171398163,
0.3373199999332428,
0.011671707965433598,
0.03748324140906334,
0.11233223974704742,
-0.29215630888938904,
-0.023615118116140366,
0.43552279472351074,
0.04903847351670265,
-0.03196464851498604,
-0.009076237678527832,
0.42695945501327515,
0.10203230381011963,
0.17151938378810883,
0.29595285654067993,
0.763522744178772,
0.05384925752878189,
0.07486122846603394,
-0.19585014879703522,
-0.34140744805336,
-0.23952457308769226,
0.3621116876602173,
0.2415039986371994,
0.2589142322540283,
0.2517334520816803,
0.02731143683195114,
0.08375115692615509,
-0.22633995115756989,
-0.017013592645525932,
0.13052156567573547,
-0.03172469884157181,
0.16698339581489563,
-0.0416581965982914,
0.28199315071105957,
-0.4686065912246704,
0.28284111618995667,
-0.18402738869190216,
-0.0459723174571991,
0.10989733785390854,
-0.009528244845569134,
0.3888607919216156,
-0.20769350230693817,
0.09937570989131927,
0.17371171712875366,
-0.09558612108230591,
-0.2128092646598816,
-0.09971591085195541,
-0.009967933408915997,
-0.4909347891807556,
0.8521468639373779,
-0.47588294744491577,
0.21149513125419617,
-0.10445377230644226,
0.1074163168668747,
0.4491933584213257,
-0.10812100768089294,
-0.19637927412986755,
-0.1719341278076172,
-0.2991923987865448,
0.018172308802604675,
0.006165402941405773,
0.4675185978412628,
0.1323869824409485,
0.2539483308792114,
-0.09844768792390823,
0.10485804826021194,
0.2965150773525238,
0.07313767820596695,
0.20040607452392578,
-0.38389667868614197,
0.040769197046756744,
-0.1957342028617859,
-0.4062645733356476,
0.6067577600479126,
0.06087426468729973,
0.19549062848091125,
0.29679158329963684,
-0.230546236038208,
-0.012099144980311394,
-0.1654074788093567,
-0.0860128402709961,
0.11904322355985641,
0.007978368550539017,
0.1060783639550209,
0.5033364295959473,
-0.03137098252773285,
-0.1819935142993927,
-0.2241877317428589,
-0.039343077689409256,
-0.022538229823112488,
-0.10109477490186691,
0.15623882412910461,
-0.03337473422288895,
-0.09684368222951889,
0.04030990228056908,
-0.03764935955405235,
0.3064708709716797,
0.08656858652830124,
-0.008804737590253353,
0.14406399428844452,
0.21520546078681946,
-0.07109873741865158,
0.10037828236818314,
-0.02568598836660385,
0.4002475142478943,
0.019601549953222275,
0.06685210019350052,
0.05422022193670273,
-0.41418907046318054,
0.37610721588134766,
0.2402523010969162,
-0.20681366324424744,
-0.11946500092744827,
0.02495204284787178,
0.18020281195640564,
-0.28773409128189087,
0.05112915486097336,
0.07856041938066483,
-0.2679389417171478,
0.24478621780872345,
0.06267380714416504,
-0.03547292202711105,
0.23127056658267975,
-0.1007864698767662,
-0.05055614560842514,
1.0589148998260498,
-0.07787016034126282,
0.03969025984406471,
-0.19332650303840637,
-0.07249793410301208,
0.2199304848909378,
0.017728326842188835,
0.18433436751365662,
-0.11261358857154846,
0.23499853909015656,
0.1298401653766632,
-0.11272440105676651,
0.2563572824001312,
-0.1056976169347763,
0.1894393414258957,
0.2193925380706787,
0.1237747073173523,
-0.3309442400932312,
-0.00849885307252407,
-0.2049751728773117,
0.042105574160814285,
-0.19719772040843964,
-0.40817949175834656,
-0.28799161314964294,
-0.4751538336277008,
0.3778955340385437,
0.11208765208721161,
-0.1671580672264099,
0.025095868855714798,
-0.41679805517196655,
-0.04016928747296333,
0.2077397108078003,
0.3384679853916168,
0.14067155122756958,
0.3773109018802643,
0.020809121429920197,
-0.18069934844970703,
-0.1592865139245987,
-0.10367453098297119,
-0.20291851460933685,
-0.6760938167572021,
-0.09393920004367828,
-0.14167216420173645,
-0.19505135715007782,
-0.03568681702017784,
0.09362000972032547,
0.03620516136288643,
0.6651350855827332,
-0.8735555410385132,
-0.05319895222783089,
0.026228042319417,
-0.12403938919305801,
-0.20428383350372314,
-0.07866045832633972,
0.13737031817436218,
-0.2599746584892273,
-0.010377281345427036,
-0.049746595323085785,
0.224637970328331,
0.1929004192352295,
0.03367350250482559,
0.07339989393949509,
0.27874717116355896,
0.031899940222501755,
0.12253230065107346,
0.8831714987754822,
-0.3712194859981537,
-0.06594154983758926,
0.26789459586143494,
0.15738701820373535,
0.3801428973674774,
-0.23865139484405518,
0.2636003792285919,
-0.13469426333904266,
-0.1658606380224228,
-0.19585441052913666,
0.15652446448802948,
0.0872744470834732,
-0.5369455218315125,
-0.4127477705478668,
0.4158637821674347,
-0.12845934927463531,
0.11699139326810837,
0.20796848833560944,
-0.32253497838974,
0.2557946741580963,
0.02679595537483692,
0.021449828520417213,
-0.1968209594488144,
-0.2115889936685562,
0.019126424565911293,
-0.057658638805150986,
0.605416476726532,
-0.211435467004776,
-0.1240897849202156,
0.3219365179538727,
-0.2747209668159485,
0.007873700931668282,
0.030629493296146393,
0.21628229320049286,
-0.029861705377697945,
-0.19581621885299683,
0.3248187303543091,
-0.01494819950312376,
0.6353762745857239,
-0.1768062859773636,
0.0008975347154773772,
0.06563227623701096,
-0.4618179500102997,
0.06653010845184326,
0.019755778834223747,
-0.06427302211523056,
-0.11486012488603592,
0.04670007899403572,
0.2646925151348114,
0.13517551124095917,
-0.11731976270675659,
-0.08773373812437057,
-0.26651909947395325,
-0.3192572593688965,
-0.3963138461112976,
-0.07010595500469208,
0.16051656007766724,
-0.2127300500869751,
0.08174245059490204,
0.16314716637134552,
-0.040869150310754776,
-0.2503910958766937,
-0.02838435210287571,
-0.3545408546924591,
0.4247925877571106,
-0.13198280334472656,
-0.24785685539245605,
-0.05545144900679588,
0.26833587884902954,
0.18440522253513336,
0.2386133074760437,
0.14158298075199127,
-0.015264919959008694,
0.2034440040588379,
-0.20241038501262665,
0.08007900416851044,
-0.15074105560779572,
-0.129623681306839,
0.24927641451358795,
0.663655698299408,
0.2860676646232605,
-0.030302509665489197,
0.15060517191886902,
-0.11893006414175034,
-0.2937454283237457,
0.1309516429901123,
0.031346190720796585,
-0.2929352819919586,
-0.16200365126132965,
-0.5915786623954773,
0.6851967573165894,
0.22249414026737213,
0.02306254580616951,
0.35443300008773804,
-0.5506947040557861,
-0.3202625811100006,
0.29008573293685913,
0.3368041515350342,
0.9200337529182434,
-0.3764576017856598,
0.5159749388694763,
-0.2994266152381897,
0.3096638321876526,
0.0008136415272019804,
-0.3276219367980957,
0.20930792391300201,
-0.3369631767272949,
-0.2832552492618561,
-0.1473206728696823,
-0.17532649636268616,
-0.11738242954015732,
0.3771117329597473,
0.12502028048038483,
-0.07226428389549255,
0.11685267835855484,
0.018182870000600815,
0.05480818450450897,
-0.09467653930187225,
0.06083981320261955,
-0.4045919179916382,
-0.06368786096572876,
0.06485362350940704,
0.2162376195192337,
0.2144351303577423,
-0.2849906384944916,
0.05485339090228081,
0.17310544848442078,
-0.13516083359718323,
0.00261459662579,
0.06200814247131348,
-0.2733363211154938,
0.004145991988480091,
-0.20198197662830353,
-0.28398555517196655,
-0.3501131236553192,
0.14865107834339142,
0.30035334825515747,
-0.1588248461484909,
0.04286903142929077,
0.21379904448986053,
0.23113487660884857,
0.10839071869850159,
-0.04475347325205803,
-0.004500860348343849,
0.3801797330379486,
-0.08694995194673538,
0.1371847540140152,
0.1390541046857834,
-0.24541181325912476,
-0.542634129524231,
-0.0188655573874712,
0.10415840148925781,
0.21035164594650269,
-0.0124630993232131,
-0.216229647397995,
0.2761096656322479,
0.09403061121702194,
0.09880013018846512,
0.07368769496679306,
0.2683964669704437,
-0.19851750135421753,
0.3451647460460663,
0.08301792293787003,
-0.18664336204528809,
0.04977911338210106,
0.6502137780189514,
0.17492613196372986,
-0.44052252173423767,
0.1786123663187027,
0.11505509167909622,
-0.08829088509082794,
-0.07991176098585129,
0.016613217070698738,
0.2343139350414276,
-0.2239983230829239,
0.09348849952220917,
0.07933077216148376,
0.16056162118911743,
-0.0854920968413353,
0.20371468365192413,
0.09905629605054855,
-0.05569376423954964,
-0.19452187418937683,
-0.23886407911777496,
-0.3176458775997162,
0.16628557443618774,
-0.13898886740207672,
0.3290903866291046,
0.1582847386598587,
-0.237077996134758,
0.2533077001571655,
0.18144376575946808,
-0.22731485962867737,
0.19668589532375336,
0.11325349658727646,
0.2126764953136444,
-0.02041751891374588,
0.1259806603193283,
-0.12172261625528336,
-0.07827289402484894,
-0.060833267867565155,
0.09267474710941315,
0.001312681008130312,
-0.18895961344242096,
0.0894673690199852,
0.25975513458251953,
0.10290337353944778,
-0.06154291331768036,
-0.06418681889772415,
-0.2494581639766693,
-0.2111487090587616,
-0.010368909686803818,
0.2952497601509094,
0.08706136792898178,
-0.1629936844110489,
-0.1616748869419098,
0.2854118347167969,
0.5793209075927734,
-0.16937637329101562,
0.44713038206100464,
0.012473505921661854,
0.34422382712364197,
0.08855294436216354,
-0.030133161693811417,
-0.2365308254957199,
0.10988978296518326,
0.25946158170700073,
-0.09176979213953018,
0.24938049912452698,
0.017095578834414482,
0.18777839839458466,
-0.4105765223503113,
0.15096721053123474,
-0.15718017518520355,
0.18544797599315643,
0.27357861399650574,
-0.4995344281196594,
0.06431500613689423,
0.31178975105285645,
0.14442312717437744,
0.06996842473745346,
-0.19012998044490814,
-0.10925280302762985,
-0.3621825873851776,
-0.16494965553283691,
0.2804121971130371,
0.5584883093833923,
0.030295195057988167,
0.0003437410341575742,
0.04399285838007927,
0.3751170337200165,
-0.41466882824897766,
0.07821593433618546,
0.40153542160987854,
-0.04632899537682533,
0.0490778423845768,
0.08587305247783661,
0.518502950668335,
-0.012563539668917656,
0.17871807515621185,
0.015060923993587494,
0.21806159615516663,
0.04585350677371025,
0.09360985457897186,
-0.26777079701423645,
-0.4308395981788635,
0.058702800422906876,
0.6751399040222168,
-0.0713503509759903,
0.45192238688468933,
-0.3695743680000305,
-0.05584636330604553,
-0.01697111502289772,
-0.25552839040756226,
-0.1590130776166916,
0.12865623831748962,
-0.1327880620956421,
0.07607807219028473,
-0.10523529350757599,
-0.1248513013124466,
-0.14457033574581146,
0.41978976130485535,
-0.10075651854276657,
-0.14252804219722748,
0.25648626685142517,
0.26178473234176636,
0.013030802831053734,
0.19899903237819672,
-0.10125073045492172,
0.0968431606888771,
0.2134021371603012,
-0.2731970250606537,
0.2259693741798401,
-0.441121369600296,
0.17739860713481903,
0.4834466576576233,
0.3473461866378784,
-0.08138149231672287,
0.3185933530330658,
-0.10274165123701096,
0.09607759863138199,
0.09671815484762192,
0.06918930262327194,
-0.025633106008172035,
0.3193223476409912,
0.35882315039634705,
0.06351212412118912,
0.10424652695655823,
0.025396883487701416,
-0.07524611800909042,
0.41042253375053406,
-0.010571260005235672,
-0.03071509674191475,
-0.36591851711273193,
0.14151602983474731,
0.2978212535381317,
-0.12302561104297638,
0.00026212065131403506,
0.006375106517225504,
-0.39584845304489136,
0.0855417549610138,
0.22740991413593292,
-0.4957816004753113,
0.005138660781085491,
0.44730865955352783,
0.01617778278887272,
-0.2025241106748581,
0.5034618377685547,
0.36430221796035767,
0.11371463537216187,
-0.2773652970790863,
-0.2858845591545105,
-0.34513604640960693,
0.024138379842042923,
0.04382455721497536,
0.16584916412830353,
-0.006225440185517073,
0.23465539515018463,
0.18113236129283905,
0.15546198189258575,
-0.13747160136699677,
-0.47723349928855896,
-0.10181494057178497,
0.1482330709695816,
-0.33471500873565674,
0.22804048657417297,
0.17978474497795105,
0.4630298316478729,
-0.2251701056957245,
-0.22883093357086182,
0.18369007110595703,
0.14242272078990936,
-0.2046663612127304,
0.37404075264930725,
-0.08746258169412613,
0.006389631889760494,
0.07313837856054306,
0.40849095582962036,
-0.4653456211090088,
0.31284040212631226,
0.01730838604271412,
0.007558468729257584,
-0.11583665758371353,
-0.3511055111885071,
-0.2685947120189667,
-0.1359148770570755,
0.11389224976301193,
0.0028496976010501385,
-0.21716071665287018,
-0.07924642413854599,
-0.017818354070186615,
-0.2589983642101288,
-0.08528261631727219,
-0.12338582426309586,
-0.14467552304267883,
-0.4979199767112732,
-0.08093112707138062,
-0.03835206851363182,
0.20501184463500977,
0.3365011513233185,
-0.04318524897098541,
-0.24619820713996887,
-0.3440423011779785,
-0.002183101372793317,
0.30992087721824646,
-0.4316573441028595,
0.008486500941216946,
-0.22643758356571198,
0.03243274614214897,
-0.008222639560699463,
0.15288929641246796,
-0.4410763680934906,
0.16892755031585693,
0.29952454566955566,
-0.11882083863019943,
-0.04642428085207939,
0.3388529121875763,
0.13880695402622223,
-0.045936040580272675,
-0.11660782247781754,
0.2619567811489105,
0.011112496256828308,
-0.09114612638950348,
-0.6637378931045532,
-0.42070797085762024
] |
https://github.com/huggingface/datasets/issues/1827 | Regarding On-the-fly Data Loading | Hi ! Currently when you load a dataset via `load_dataset` for example, then the dataset is memory-mapped from an Arrow file on disk. Therefore there's almost no RAM usage even if your dataset contains TB of data.
Usually at training time only one batch of data at a time is loaded in memory.
Does that answer your question or were you thinking about something else ? | Hi,
I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point.
Thanks,
Gunjan | 66 | Regarding On-the-fly Data Loading
Hi,
I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point.
Thanks,
Gunjan
Hi ! Currently when you load a dataset via `load_dataset` for example, then the dataset is memory-mapped from an Arrow file on disk. Therefore there's almost no RAM usage even if your dataset contains TB of data.
Usually at training time only one batch of data at a time is loaded in memory.
Does that answer your question or were you thinking about something else ? | [
-0.2869426906108856,
-0.3630422353744507,
-0.1495334804058075,
0.27318263053894043,
0.41436272859573364,
0.17094267904758453,
0.4223022162914276,
0.12925879657268524,
0.1851394921541214,
0.0802384689450264,
0.12164247781038284,
-0.0679909735918045,
-0.24279652535915375,
0.19639937579631805,
0.18935060501098633,
0.237075075507164,
-0.006563870701938868,
0.13835467398166656,
-0.18601307272911072,
0.06679472327232361,
-0.009469272568821907,
-0.22810205817222595,
-0.1345321089029312,
-0.36008813977241516,
-0.3519834280014038,
-0.17887061834335327,
-0.20610126852989197,
-0.08167437463998795,
-0.06644187122583389,
-0.1807875633239746,
0.03830122947692871,
0.14545798301696777,
0.26616281270980835,
0.2168916016817093,
-0.00011344833910698071,
0.02636181190609932,
0.18785741925239563,
-0.16152027249336243,
-0.43583330512046814,
0.19280408322811127,
-0.08492687344551086,
0.05344424396753311,
0.14894618093967438,
-0.2591666877269745,
-0.04329465329647064,
0.263641893863678,
0.18210357427597046,
-0.39387598633766174,
0.39362698793411255,
-0.05979275703430176,
0.1287946105003357,
-0.031294260174036026,
-0.33723488450050354,
0.01157805323600769,
0.04960615560412407,
0.13176469504833221,
0.07075534760951996,
0.07038238644599915,
0.2710404098033905,
-0.05997812747955322,
-0.1753791719675064,
0.30196863412857056,
0.004044276662170887,
0.04812103137373924,
0.34220176935195923,
0.05360420420765877,
0.07542876899242401,
-0.33612412214279175,
-0.032416049391031265,
0.08975674957036972,
0.5630344152450562,
-0.03474549949169159,
-0.15533053874969482,
-0.36639633774757385,
0.11465209722518921,
-0.26986944675445557,
-0.06252697855234146,
0.4893331825733185,
-0.46591082215309143,
0.040753304958343506,
-0.568321168422699,
-0.42560911178588867,
-0.2526450753211975,
-0.04365222156047821,
-0.036720868200063705,
-0.47359997034072876,
0.13232971727848053,
0.00798481609672308,
0.13946117460727692,
0.13082723319530487,
0.34375226497650146,
-0.23167657852172852,
-0.04601700231432915,
0.4015499949455261,
-0.25778669118881226,
-0.09600315243005753,
-0.6005839705467224,
-0.29982948303222656,
0.03833502158522606,
-0.27605876326560974,
0.17476361989974976,
0.15818019211292267,
-0.09513513743877411,
0.10614089667797089,
0.3347075283527374,
-0.019386328756809235,
0.02441244386136532,
0.025478314608335495,
-0.00010352420213166624,
-0.2759266793727875,
-0.26440390944480896,
-0.05787474662065506,
-0.45958706736564636,
0.09499306231737137,
0.03319131210446358,
-0.3943004310131073,
-0.4661897122859955,
0.008762453682720661,
0.17176826298236847,
-0.2818394899368286,
0.041211776435375214,
-0.013791563920676708,
-0.24358907341957092,
0.29648879170417786,
0.013982497155666351,
-0.04814232140779495,
0.46048903465270996,
-0.2862052619457245,
-0.12497995048761368,
-0.2746884524822235,
-0.06371991336345673,
0.06569001823663712,
-0.3060082793235779,
0.26460668444633484,
0.13317106664180756,
0.15314246714115143,
0.06672931462526321,
-0.1371394395828247,
-0.06699910014867783,
0.03640475496649742,
0.01998811587691307,
-0.33561232686042786,
0.2059192955493927,
0.15517525374889374,
-0.11780659109354019,
-0.27927038073539734,
-0.0381687693297863,
0.31183767318725586,
0.006095585413277149,
0.502779483795166,
-0.26315411925315857,
-0.0698118656873703,
0.429309606552124,
0.08178199082612991,
0.08337388932704926,
-0.15463297069072723,
-0.6008710265159607,
0.3655918836593628,
0.13699571788311005,
0.13334211707115173,
0.07057660818099976,
-0.00777705991640687,
-0.3763468563556671,
0.005117302760481834,
0.26482006907463074,
0.3271278738975525,
-0.39918607473373413,
-0.3566912114620209,
0.41850295662879944,
-0.01582525111734867,
-0.13916325569152832,
0.1062798947095871,
-0.3086325526237488,
0.4188515245914459,
0.03004300966858864,
-0.10012218356132507,
0.09821528941392899,
-0.21437393128871918,
-0.05439333990216255,
0.35336294770240784,
0.015860114246606827,
-0.10139256715774536,
0.024709410965442657,
0.5722174644470215,
0.09385722875595093,
0.24929174780845642,
0.32915201783180237,
0.7063398361206055,
0.1441550999879837,
0.12000500410795212,
-0.1268434077501297,
-0.2603091597557068,
-0.32104307413101196,
0.3683958053588867,
0.16437183320522308,
0.1685015708208084,
0.0841633528470993,
0.01945464313030243,
0.23472057282924652,
-0.2200760692358017,
0.05991622433066368,
0.2151898294687271,
-0.051827043294906616,
0.13261426985263824,
-0.10097760707139969,
0.22995954751968384,
-0.4385002553462982,
0.2532021105289459,
0.04446636885404587,
0.08210530877113342,
0.11397457867860794,
-0.005487432237714529,
0.3631189465522766,
-0.24878130853176117,
0.15078212320804596,
0.20113465189933777,
-0.04442862048745155,
-0.3101137578487396,
-0.22520390152931213,
-0.02292930893599987,
-0.4112913906574249,
0.696008563041687,
-0.47964993119239807,
0.217344731092453,
-0.1416356861591339,
0.09893914312124252,
0.5003315210342407,
-0.08495920151472092,
-0.08525301516056061,
-0.23359103500843048,
-0.46351349353790283,
0.03531305864453316,
0.06894423067569733,
0.38180848956108093,
0.1407141387462616,
0.1782444268465042,
0.031698957085609436,
0.04924418032169342,
0.18138326704502106,
0.026835931465029716,
0.18267697095870972,
-0.31048333644866943,
0.161930650472641,
-0.15216411650180817,
-0.35861095786094666,
0.4180774986743927,
0.09458097815513611,
0.275992214679718,
0.30868181586265564,
-0.15235558152198792,
0.014110922813415527,
-0.1444021612405777,
-0.053474582731723785,
0.10241503268480301,
0.0438670851290226,
0.22685836255550385,
0.4621654748916626,
0.17079594731330872,
-0.2648864686489105,
-0.3457975685596466,
0.05040184408426285,
-0.11201945692300797,
-0.04329170659184456,
0.22490344941616058,
-0.12699316442012787,
0.036463044583797455,
0.032979510724544525,
-0.09820668399333954,
0.23399323225021362,
0.20311301946640015,
-0.012015347369015217,
0.17038142681121826,
0.21888209879398346,
0.00952470488846302,
0.08827756345272064,
0.062238141894340515,
0.4783914089202881,
-0.1956155002117157,
-0.07802664488554001,
-0.029674634337425232,
-0.2640933692455292,
0.2508113384246826,
0.14174894988536835,
-0.17269442975521088,
-0.13916826248168945,
-0.02423926070332527,
0.004701816476881504,
-0.30658695101737976,
-0.09982526302337646,
0.3313089609146118,
-0.18500573933124542,
0.36011436581611633,
-0.012678684666752815,
0.022499771788716316,
0.169631227850914,
0.007144775707274675,
-0.0975893884897232,
0.9094579815864563,
-0.04696463793516159,
-0.21003688871860504,
-0.02117338962852955,
-0.0736696869134903,
-0.0035656916443258524,
0.034307196736335754,
0.343095064163208,
-0.04839326813817024,
0.37043243646621704,
0.1406489759683609,
-0.17756637930870056,
0.14927546679973602,
0.22401602566242218,
0.15290699899196625,
0.2234521359205246,
-0.01678789220750332,
-0.39066246151924133,
0.10242042690515518,
-0.25427302718162537,
0.04778478667140007,
-0.08781833946704865,
-0.33875811100006104,
-0.2243402600288391,
-0.34692490100860596,
0.35979267954826355,
0.09800846129655838,
-0.03539767488837242,
-0.007406910415738821,
-0.44342032074928284,
-0.09584663063287735,
0.14048080146312714,
0.19948382675647736,
0.10518970340490341,
0.3841191530227661,
0.169453963637352,
-0.14200453460216522,
-0.13634121417999268,
-0.02581220678985119,
0.05465681105852127,
-0.4763893783092499,
-0.08985599875450134,
0.049223292618989944,
-0.17513297498226166,
-0.09485996514558792,
0.040258634835481644,
0.018546968698501587,
0.8389361500740051,
-0.829077422618866,
0.13934719562530518,
-0.03793061152100563,
-0.21410633623600006,
-0.28197038173675537,
0.051849257200956345,
0.039954908192157745,
-0.2387923300266266,
-0.09567384421825409,
0.04730742424726486,
0.31018421053886414,
0.1588173508644104,
-0.10290871560573578,
0.037346627563238144,
0.2988787293434143,
0.14543667435646057,
0.14734330773353577,
0.7117273807525635,
-0.21235300600528717,
-0.1662731021642685,
0.18378567695617676,
-0.055709414184093475,
0.288381427526474,
-0.13273276388645172,
0.23194263875484467,
-0.16282659769058228,
-0.2090507298707962,
-0.2608185410499573,
0.17890247702598572,
0.06650017201900482,
-0.30495068430900574,
-0.4226718842983246,
0.24039432406425476,
-0.0813538208603859,
-0.032050058245658875,
0.34737449884414673,
-0.37403935194015503,
0.3303476870059967,
-0.0016486640088260174,
-0.033411577343940735,
-0.09696128964424133,
-0.23574960231781006,
-0.00535773066803813,
-0.10438455641269684,
0.4143748879432678,
-0.25443705916404724,
-0.23465237021446228,
0.41728904843330383,
-0.2592051327228546,
0.06299091875553131,
-0.09616217762231827,
0.1816752403974533,
0.07276847958564758,
-0.14022541046142578,
0.26599568128585815,
0.14215411245822906,
0.5721117854118347,
0.08010721951723099,
-0.12905694544315338,
0.04823543503880501,
-0.4424249231815338,
-0.22158943116664886,
0.004601464606821537,
-0.13777871429920197,
-0.09473949670791626,
-0.06029124557971954,
0.35736432671546936,
-0.0340164452791214,
-0.24305547773838043,
-0.022322477772831917,
-0.021873513236641884,
-0.4067217707633972,
-0.359122633934021,
-0.17929601669311523,
0.1477944701910019,
-0.08135531097650528,
0.07000038027763367,
0.18959785997867584,
0.0160896684974432,
0.046732835471630096,
-0.15479467809200287,
-0.31141525506973267,
0.35882359743118286,
0.03492778167128563,
-0.2902466654777527,
0.012869794853031635,
0.278367280960083,
0.29723232984542847,
0.1560090184211731,
0.16766531765460968,
0.28240764141082764,
0.21150867640972137,
-0.28072622418403625,
0.030746616423130035,
-0.14020909368991852,
-0.044833630323410034,
0.38987502455711365,
0.4764646589756012,
0.22142121195793152,
0.06385532766580582,
0.1461300104856491,
0.01897425763309002,
-0.5502630472183228,
0.17621421813964844,
0.09592753648757935,
-0.19318224489688873,
-0.21836307644844055,
-0.6674817800521851,
0.7044336199760437,
0.22654734551906586,
0.03043937310576439,
0.3714713752269745,
-0.40172848105430603,
-0.3358766436576843,
0.15638358891010284,
0.31377893686294556,
0.759490430355072,
-0.5083621144294739,
0.5862456560134888,
-0.20890744030475616,
0.31207942962646484,
-0.04320631921291351,
-0.24296189844608307,
0.2859004735946655,
-0.2782699167728424,
-0.2186478227376938,
-0.0573674738407135,
-0.22832895815372467,
-0.13765643537044525,
0.4003314673900604,
0.18752199411392212,
0.0805414542555809,
0.11485202610492706,
0.05122490972280502,
-0.02165115252137184,
-0.04269786179065704,
0.004944051615893841,
-0.36372309923171997,
-0.070079505443573,
0.12937968969345093,
0.2027825564146042,
0.06890871375799179,
-0.22743761539459229,
0.13182798027992249,
0.05693339183926582,
-0.05228937789797783,
0.10776962339878082,
-0.09698015451431274,
-0.3252195715904236,
0.05660425126552582,
-0.28044483065605164,
-0.15793941915035248,
-0.21293708682060242,
0.20187878608703613,
-0.012654694728553295,
-0.12985727190971375,
0.1094612255692482,
0.1635957658290863,
0.03485344350337982,
0.2512391209602356,
-0.045520562678575516,
-0.021439194679260254,
0.38987085223197937,
-0.02189561352133751,
0.02921069972217083,
0.12995553016662598,
-0.21889209747314453,
-0.3678269684314728,
-0.003580027259886265,
0.09045600146055222,
0.19482867419719696,
-0.06765922904014587,
-0.18209214508533478,
0.1736179143190384,
0.23278272151947021,
0.2063487023115158,
0.10961248725652695,
0.18801283836364746,
-0.14462843537330627,
0.49398794770240784,
0.2086310237646103,
-0.23867066204547882,
0.08959734439849854,
0.4949345588684082,
0.13674399256706238,
-0.30335289239883423,
0.21609097719192505,
-0.04145705699920654,
-0.11339692771434784,
-0.1351357251405716,
0.2718051075935364,
0.4831988215446472,
-0.03814799711108208,
0.16060245037078857,
0.15192075073719025,
0.22683589160442352,
-0.07941799610853195,
0.11807955801486969,
0.07830643653869629,
-0.1671867072582245,
-0.114403136074543,
-0.10364358872175217,
-0.4050600528717041,
0.28201737999916077,
0.11861979961395264,
0.3430781364440918,
0.18113140761852264,
-0.2666763663291931,
0.18191489577293396,
0.11198392510414124,
-0.26809239387512207,
0.19365233182907104,
0.08656372129917145,
0.2839425206184387,
-0.11367979645729065,
0.159931018948555,
-0.02074349671602249,
-0.05522559583187103,
0.05292736366391182,
0.06346610933542252,
0.0021788333542644978,
-0.21078692376613617,
0.1371089071035385,
0.20344434678554535,
-0.016317833214998245,
0.0004693959199357778,
-0.007761752232909203,
-0.41622263193130493,
-0.1493643820285797,
-0.13763777911663055,
0.18334755301475525,
0.1661134511232376,
-0.09337121248245239,
-0.15469783544540405,
0.354157030582428,
0.44255363941192627,
-0.20507507026195526,
0.4429437816143036,
-0.11981610953807831,
0.3913666307926178,
0.1933414489030838,
-0.07820098102092743,
0.01659516617655754,
0.0673755630850792,
-0.002389157423749566,
-0.011415556073188782,
0.35751378536224365,
-0.11862776428461075,
-0.013995698653161526,
-0.32597649097442627,
0.16052567958831787,
-0.11867488920688629,
0.28845468163490295,
0.39290761947631836,
-0.529521644115448,
0.021072201430797577,
0.2882758677005768,
0.2199261337518692,
0.04133840650320053,
-0.09991475939750671,
0.0013914032606408,
-0.3731640577316284,
-0.08231771737337112,
0.28868982195854187,
0.24442695081233978,
0.057342108339071274,
-0.2947583794593811,
-0.14558042585849762,
0.2715761661529541,
-0.26064249873161316,
-0.061850693076848984,
0.2537119686603546,
0.1017388254404068,
-0.08804024010896683,
-0.06677752733230591,
0.500299870967865,
0.09944883733987808,
0.2923491895198822,
-0.10785780847072601,
0.33136698603630066,
-0.07803255319595337,
0.06738459318876266,
-0.31121939420700073,
-0.36041170358657837,
0.011753690429031849,
0.6964072585105896,
-0.06039128825068474,
0.17634457349777222,
-0.3629174530506134,
0.12456949055194855,
0.11411868035793304,
-0.3701486587524414,
-0.054951537400484085,
-0.025200698524713516,
-0.1251753270626068,
0.21373991668224335,
-0.16836941242218018,
-0.13923874497413635,
-0.14880521595478058,
0.42576631903648376,
-0.021482646465301514,
-0.3161221146583557,
0.18419550359249115,
0.3428276777267456,
0.06291203945875168,
0.23395603895187378,
-0.05586492270231247,
0.19779686629772186,
0.09299882501363754,
-0.29295530915260315,
-0.0018578838789835572,
-0.3005574345588684,
0.25026237964630127,
0.42170530557632446,
0.307151198387146,
-0.08880890905857086,
0.23050853610038757,
-0.009829780086874962,
0.06922757625579834,
0.16322357952594757,
0.06193383410573006,
-0.13808391988277435,
0.11379868537187576,
0.32655030488967896,
0.24479839205741882,
0.13475380837917328,
0.07641121745109558,
-0.1088598445057869,
0.2404533326625824,
0.002970973262563348,
-0.175760880112648,
-0.43884778022766113,
0.06525693833827972,
0.2699503004550934,
-0.15192526578903198,
-0.0684700608253479,
0.018650677055120468,
-0.24361369013786316,
0.0455428771674633,
0.3752802312374115,
-0.5222756266593933,
-0.017957055941224098,
0.48555541038513184,
0.05309901013970375,
-0.2187103033065796,
0.5302197337150574,
0.10262822359800339,
0.23203156888484955,
-0.3197326958179474,
-0.3163999021053314,
-0.39110344648361206,
-0.08139076828956604,
-0.18390731513500214,
0.12528061866760254,
-0.05810217931866646,
0.16720710694789886,
0.2231077253818512,
0.1155928447842598,
-0.11437352746725082,
-0.44812870025634766,
-0.16084666550159454,
0.2227238118648529,
-0.3137452304363251,
0.0800439715385437,
0.021004339680075645,
0.42218488454818726,
-0.12299513816833496,
-0.3117896020412445,
0.0642925500869751,
-0.1346098780632019,
-0.15305590629577637,
0.3762385845184326,
0.07298440486192703,
-0.003093808889389038,
0.20043958723545074,
0.46007421612739563,
-0.4780105948448181,
0.31596797704696655,
0.06746647506952286,
0.01631125435233116,
0.01936330832540989,
-0.15928302705287933,
-0.28470098972320557,
0.0015849452465772629,
0.1615588515996933,
-0.037226248532533646,
-0.27628031373023987,
-0.061141692101955414,
-0.03205951675772667,
-0.1948690116405487,
-0.06415895372629166,
-0.20056083798408508,
-0.12244941294193268,
-0.4066179692745209,
0.058739449828863144,
0.05160711333155632,
0.10415366291999817,
0.33995574712753296,
-0.14399980008602142,
-0.29600951075553894,
-0.34096986055374146,
0.043104495853185654,
0.3233139216899872,
-0.47501468658447266,
0.019058912992477417,
-0.24956931173801422,
0.13820825517177582,
-0.061419881880283356,
0.16788551211357117,
-0.35136541724205017,
0.11777709424495697,
0.4220014810562134,
-0.061620038002729416,
-0.10312679409980774,
0.35658785700798035,
0.2294965386390686,
-0.028625670820474625,
-0.05848906561732292,
0.2589513063430786,
-0.2766316533088684,
-0.15498235821723938,
-0.6072598695755005,
-0.424847811460495
] |
https://github.com/huggingface/datasets/issues/1825 | Datasets library not suitable for huge text datasets. | Hi ! Looks related to #861
You are right: tokenizing a dataset using map takes a lot of space since it can store `input_ids` but also `token_type_ids`, `attention_mask` and `special_tokens_mask`. Moreover if your tokenization function returns python integers then by default they'll be stored as int64 which can take a lot of space. Padding can also increase the size of the tokenized dataset.
To make things more convenient, we recently added a "lazy map" feature that allows to tokenize each batch at training time as you mentioned. For example you'll be able to do
```python
from transformers import BertTokenizer
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
def encode(batch):
return tokenizer(batch["text"], padding="longest", truncation=True, max_length=512, return_tensors="pt")
dataset.set_transform(encode)
print(dataset.format)
# {'type': 'custom', 'format_kwargs': {'transform': <function __main__.encode(batch)>}, 'columns': ['idx', 'label', 'sentence1', 'sentence2'], 'output_all_columns': False}
print(dataset[:2])
# {'input_ids': tensor([[ 101, 2572, 3217, ... 102]]), 'token_type_ids': tensor([[0, 0, 0, ... 0]]), 'attention_mask': tensor([[1, 1, 1, ... 1]])}
```
In this example the `encode` transform is applied on-the-fly on the "text" column.
This feature will be available in the next release 2.0 which will happen in a few days.
You can already play with it by installing `datasets` from source if you want :)
Hope that helps ! | Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions?? | 197 | Datasets library not suitable for huge text datasets.
Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions??
Hi ! Looks related to #861
You are right: tokenizing a dataset using map takes a lot of space since it can store `input_ids` but also `token_type_ids`, `attention_mask` and `special_tokens_mask`. Moreover if your tokenization function returns python integers then by default they'll be stored as int64 which can take a lot of space. Padding can also increase the size of the tokenized dataset.
To make things more convenient, we recently added a "lazy map" feature that allows to tokenize each batch at training time as you mentioned. For example you'll be able to do
```python
from transformers import BertTokenizer
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
def encode(batch):
return tokenizer(batch["text"], padding="longest", truncation=True, max_length=512, return_tensors="pt")
dataset.set_transform(encode)
print(dataset.format)
# {'type': 'custom', 'format_kwargs': {'transform': <function __main__.encode(batch)>}, 'columns': ['idx', 'label', 'sentence1', 'sentence2'], 'output_all_columns': False}
print(dataset[:2])
# {'input_ids': tensor([[ 101, 2572, 3217, ... 102]]), 'token_type_ids': tensor([[0, 0, 0, ... 0]]), 'attention_mask': tensor([[1, 1, 1, ... 1]])}
```
In this example the `encode` transform is applied on-the-fly on the "text" column.
This feature will be available in the next release 2.0 which will happen in a few days.
You can already play with it by installing `datasets` from source if you want :)
Hope that helps ! | [
-0.2644476592540741,
0.07049369066953659,
0.009130625054240227,
0.12959197163581848,
0.3082515597343445,
0.00805096048861742,
0.29017943143844604,
0.37177774310112,
-0.2807386815547943,
-0.018172523006796837,
-0.04882347583770752,
0.14737820625305176,
-0.23607194423675537,
0.010885631665587425,
0.039609916508197784,
0.02886834368109703,
0.21957646310329437,
0.20255079865455627,
0.14690318703651428,
0.06441660970449448,
-0.04219706729054451,
-0.2423410713672638,
-0.22898876667022705,
-0.013288815505802631,
-0.43021637201309204,
-0.22890302538871765,
-0.13010050356388092,
-0.29405850172042847,
-0.3577355742454529,
-0.40371811389923096,
-0.03291754424571991,
0.1460273414850235,
0.4799692928791046,
0.4330442547798157,
-0.00011875783820869401,
-0.17877157032489777,
0.15742608904838562,
0.03883783146739006,
-0.09152214229106903,
0.06572198122739792,
0.20808923244476318,
-0.34047025442123413,
-0.15106754004955292,
-0.25406497716903687,
0.16791032254695892,
-0.18740232288837433,
0.012640781700611115,
-0.12231778353452682,
0.2558724582195282,
-0.022111723199486732,
0.10695885121822357,
0.14781539142131805,
-0.11758332699537277,
0.11759292334318161,
0.20554932951927185,
-0.0257251113653183,
-0.06717479974031448,
-0.046169258654117584,
0.3811226785182953,
-0.0764792189002037,
-0.18748152256011963,
0.3004254400730133,
-0.1841917186975479,
-0.05763622745871544,
0.3920029401779175,
-0.004980608820915222,
-0.13022908568382263,
-0.342899888753891,
0.23368701338768005,
0.26567792892456055,
0.3912027180194855,
-0.34159985184669495,
-0.2912171185016632,
-0.4751843512058258,
-0.1442975103855133,
-0.16710448265075684,
-0.1160394698381424,
0.13336829841136932,
0.10114265978336334,
0.13276472687721252,
-0.5343756675720215,
-0.3300272822380066,
-0.0942188948392868,
0.2805030643939972,
-0.1244555413722992,
0.253367155790329,
-0.0309924203902483,
0.06172198802232742,
0.06749508529901505,
-0.30112767219543457,
0.1197618767619133,
-0.3782682418823242,
0.12519629299640656,
0.4119563102722168,
-0.21033091843128204,
-0.19670388102531433,
-0.1620579957962036,
-0.13196805119514465,
0.44410789012908936,
-0.21464064717292786,
-0.3352545201778412,
0.07517346739768982,
-0.24771642684936523,
-0.02988666296005249,
0.2738424241542816,
0.20107176899909973,
-0.18958459794521332,
0.38046106696128845,
0.14127080142498016,
-0.25119778513908386,
-0.07609807699918747,
-0.11683119833469391,
-0.50416499376297,
0.002323413034901023,
0.2423708587884903,
-0.34148675203323364,
-0.2537664473056793,
-0.010922100394964218,
0.03219680115580559,
0.09376786649227142,
-0.3200734257698059,
0.20490364730358124,
0.1570599377155304,
0.2677527666091919,
-0.18238571286201477,
0.11825545877218246,
-0.25048112869262695,
0.15300095081329346,
-0.1295621544122696,
0.01368456706404686,
-0.034892488270998,
-0.08092112839221954,
-0.3118555247783661,
0.08854246884584427,
0.1323876678943634,
0.03693104907870293,
0.14835458993911743,
-0.031159760430455208,
0.08308339864015579,
0.11995276063680649,
0.22865009307861328,
-0.3431077003479004,
0.06968991458415985,
0.08816829323768616,
-0.05514222010970116,
0.36145657300949097,
-0.24263668060302734,
0.0543857105076313,
-0.24211610853672028,
0.34587323665618896,
-0.35751327872276306,
-0.3633338510990143,
0.11500604450702667,
0.09564820677042007,
-0.21243903040885925,
-0.01923290453851223,
-0.4771783649921417,
0.3124534487724304,
0.4131704270839691,
0.035351190716028214,
0.030805274844169617,
-0.22334963083267212,
-0.2891538739204407,
-0.11198938637971878,
0.25204452872276306,
0.21725787222385406,
-0.37461620569229126,
-0.046259596943855286,
-0.006077553145587444,
0.27745410799980164,
0.35474297404289246,
0.7049410939216614,
-0.23442357778549194,
0.46824830770492554,
-0.021717412397265434,
0.5970693826675415,
0.130876362323761,
-0.012030821293592453,
-0.5504745244979858,
0.306410014629364,
0.13611169159412384,
-0.06262770295143127,
-0.04742435738444328,
0.04870334267616272,
0.5649160742759705,
-0.12646423280239105,
0.24218979477882385,
0.34772804379463196,
-0.10757111012935638,
0.2397235631942749,
-0.25242313742637634,
-0.3894592225551605,
0.25437384843826294,
0.21268367767333984,
0.23134270310401917,
-0.40735766291618347,
-0.10765349864959717,
0.5631251931190491,
0.1074654757976532,
-0.23449818789958954,
0.3512016236782074,
0.06945975124835968,
0.193282350897789,
0.13677920401096344,
-0.024493519216775894,
-0.19177469611167908,
-0.11334924399852753,
0.13876013457775116,
0.12848582863807678,
-0.03402424603700638,
-0.017769357189536095,
-0.3649342656135559,
0.19883568584918976,
-0.05589372292160988,
-0.04517297074198723,
0.002312557538971305,
-0.008750730194151402,
-0.2987188696861267,
-0.05231497809290886,
0.045056119561195374,
-0.12357927113771439,
-0.25201648473739624,
-0.14391589164733887,
0.11906327307224274,
-0.0510435476899147,
0.06534972041845322,
0.06423996388912201,
-0.08796539157629013,
-0.08188065141439438,
0.2881653606891632,
-0.101960189640522,
-0.10989194363355637,
-0.04301963001489639,
0.11550319194793701,
0.1792638897895813,
-0.17297500371932983,
-0.19897760450839996,
0.6291497349739075,
0.33137232065200806,
-0.052777260541915894,
0.26208987832069397,
0.057949770241975784,
0.0874847024679184,
-0.10105204582214355,
-0.060875456780195236,
0.19801324605941772,
0.10384387522935867,
0.1809869408607483,
0.037133656442165375,
-0.2367585450410843,
0.18426601588726044,
-0.02314542979001999,
0.057714127004146576,
-0.06250029057264328,
0.06317653506994247,
0.13999339938163757,
0.40712055563926697,
0.344351202249527,
-0.09917408227920532,
-0.12267902493476868,
0.34568873047828674,
-0.2547416090965271,
0.09445596486330032,
0.36925944685935974,
-0.4270765483379364,
-0.3702397346496582,
0.0560607872903347,
-0.28411272168159485,
0.07367733120918274,
0.12155947834253311,
0.05450735613703728,
-0.07435301691293716,
0.3321838080883026,
0.004992835223674774,
0.25676703453063965,
0.17685145139694214,
0.09054109454154968,
0.059908706694841385,
0.15248000621795654,
0.24765877425670624,
-0.08318082243204117,
-0.14849841594696045,
0.22646869719028473,
0.28120699524879456,
-0.06415359675884247,
0.01655448041856289,
-0.17820440232753754,
-0.14787785708904266,
0.007127912249416113,
-0.09211369603872299,
-0.10969042032957077,
0.05295073240995407,
0.1498168706893921,
-0.05035999044775963,
-0.005036816466599703,
0.2096642404794693,
0.05607861280441284,
0.39086735248565674,
0.08884287625551224,
-0.27630090713500977,
0.08699600398540497,
-0.08992403000593185,
-0.3656366169452667,
-0.019391175359487534,
0.2563132345676422,
-0.33123108744621277,
0.2955760955810547,
0.1239059790968895,
0.11114875227212906,
-0.352942556142807,
-0.5111262798309326,
0.0553656704723835,
-0.08075930923223495,
0.043021172285079956,
0.0051292479038238525,
0.011936565861105919,
-0.3470671474933624,
0.045090943574905396,
-0.08295774459838867,
-0.22048494219779968,
-0.0486796610057354,
0.03778461739420891,
-0.14889055490493774,
-0.19098451733589172,
0.09911946207284927,
-0.11782637238502502,
-0.28493547439575195,
-0.14071597158908844,
0.18217965960502625,
-0.17083990573883057,
0.14434726536273956,
0.021596914157271385,
0.058514304459095,
0.03980760648846626,
-0.090853251516819,
-0.21655984222888947,
0.03961153328418732,
-0.34565579891204834,
0.4540539085865021,
0.05377642437815666,
-0.159942626953125,
-0.0739157646894455,
-0.05986277014017105,
-0.0437619723379612,
0.30119788646698,
-0.4520863890647888,
0.20265381038188934,
-0.2943243384361267,
0.23227401077747345,
-0.0625728964805603,
0.11540940403938293,
0.06283044815063477,
0.02295530214905739,
0.05326753109693527,
0.0854734554886818,
-0.14024557173252106,
-0.19865474104881287,
-0.04424653202295303,
0.19662508368492126,
0.04582766816020012,
0.19260752201080322,
0.33191314339637756,
0.8323058485984802,
0.06499803811311722,
-0.12241372466087341,
0.23460185527801514,
0.174375519156456,
0.1243969276547432,
-0.33458322286605835,
-0.16107581555843353,
0.14685113728046417,
-0.04459601640701294,
-0.1165463998913765,
0.5374457240104675,
0.13780412077903748,
-0.15283192694187164,
0.35038936138153076,
-0.3317056894302368,
-0.08019094169139862,
-0.17754267156124115,
0.36473363637924194,
-0.29595643281936646,
0.2762160003185272,
0.0002359506906941533,
-0.06912104785442352,
-0.2257586270570755,
-0.3720056414604187,
0.002813101978972554,
-0.010876217857003212,
0.06505602598190308,
0.11884613335132599,
-0.3358928859233856,
0.1355588138103485,
-0.534135639667511,
0.18953421711921692,
0.04122285172343254,
0.28194987773895264,
0.18037651479244232,
0.12404521554708481,
0.1511196494102478,
0.12659861147403717,
0.5065209269523621,
-0.025491254404187202,
-0.19902312755584717,
-0.12216613441705704,
-0.23442667722702026,
-0.07705164700746536,
0.030061841011047363,
-0.22335858643054962,
0.1062350645661354,
0.4797859191894531,
0.6534509658813477,
-0.3339405655860901,
-0.20071886479854584,
-0.31130093336105347,
0.4322643280029297,
-0.029230967164039612,
-0.13366492092609406,
0.028420163318514824,
-0.0316573828458786,
-0.5678433775901794,
0.22335904836654663,
0.16545233130455017,
0.33977097272872925,
0.24088165163993835,
-0.10902101546525955,
-0.2026442289352417,
-0.013412736356258392,
0.28382325172424316,
0.08371700346469879,
0.16705383360385895,
0.00030512615921907127,
0.29882630705833435,
-0.04172632843255997,
0.07444772124290466,
0.4315326511859894,
-0.029305776581168175,
-0.22439894080162048,
-0.4143538177013397,
-0.025246314704418182,
0.04621628299355507,
0.5054761171340942,
0.09847622364759445,
-0.0385243222117424,
0.2553432285785675,
-0.12597869336605072,
0.25325703620910645,
-0.28882184624671936,
0.5742153525352478,
0.2188749760389328,
0.09654431790113449,
-0.737646758556366,
-0.5411158800125122,
0.09038908779621124,
0.2293255776166916,
-0.0981861799955368,
0.1740109622478485,
-0.15329574048519135,
-0.3754507601261139,
0.5328884720802307,
0.2531072497367859,
0.9069604873657227,
-0.3994157016277313,
0.42454996705055237,
-0.2723045349121094,
0.44917184114456177,
0.5515665411949158,
-0.5493831634521484,
0.029903804883360863,
-0.32762831449508667,
0.09712774306535721,
0.10513264685869217,
0.028546206653118134,
-0.0868094339966774,
0.27664321660995483,
-0.08140381425619125,
0.24701878428459167,
0.09727673977613449,
0.3555198013782501,
-0.1267230063676834,
0.49769100546836853,
0.13011318445205688,
-0.5027883052825928,
-0.10418875515460968,
0.07388808578252792,
-0.09473176300525665,
-0.07158885151147842,
-0.1766843944787979,
0.056697946041822433,
0.07302062958478928,
-0.06757345795631409,
-0.22015686333179474,
-0.18968041241168976,
-0.1857759654521942,
0.22027364373207092,
-0.04199801757931709,
0.030326655134558678,
0.46121057868003845,
-0.0011071959743276238,
0.22444629669189453,
0.5506524443626404,
-0.15094569325447083,
0.11743347346782684,
-0.17306244373321533,
-0.017646057531237602,
0.08735526353120804,
-0.24222303926944733,
0.10323189944028854,
0.06274008005857468,
0.19973833858966827,
-0.19907478988170624,
0.0809134915471077,
-0.05428219214081764,
-0.3179369866847992,
-0.11110473424196243,
0.6560409069061279,
-0.3565067648887634,
-0.16611143946647644,
-0.1440650075674057,
-0.09685372561216354,
0.006193344946950674,
0.05651910975575447,
0.10022570192813873,
-0.04525994136929512,
0.3752143681049347,
0.034715428948402405,
-0.26486629247665405,
-0.07267145067453384,
0.06463264673948288,
0.050731103867292404,
-0.052465636283159256,
0.5686109662055969,
0.03181625157594681,
-0.21392641961574554,
-0.14696185290813446,
0.38516131043434143,
0.28085237741470337,
-0.14800365269184113,
0.11072207987308502,
0.14903101325035095,
0.043537165969610214,
-0.11767818033695221,
0.1838829666376114,
0.1670868694782257,
-0.38867226243019104,
-0.05992572382092476,
-0.1476563960313797,
-0.4500800669193268,
0.11747157573699951,
-0.02761181630194187,
0.2204979956150055,
0.134405255317688,
0.22062747180461884,
-0.16937465965747833,
0.05294730141758919,
-0.21384817361831665,
0.310496985912323,
0.007994200102984905,
0.3019278645515442,
-0.37418216466903687,
0.0043555055744946,
-0.16413050889968872,
-0.09826654195785522,
-0.09766411036252975,
0.2237655371427536,
0.031072383746504784,
-0.1915961503982544,
-0.25367215275764465,
0.19749705493450165,
0.29847922921180725,
-0.3040185272693634,
0.09827281534671783,
-0.21105128526687622,
-0.0752810463309288,
-0.4249739348888397,
0.23534336686134338,
0.15221239626407623,
0.018068579956889153,
-0.1894284337759018,
0.24785791337490082,
-0.19596503674983978,
-0.2526566982269287,
0.12858928740024567,
0.03377200663089752,
0.1977974772453308,
0.07466015964746475,
0.23859208822250366,
0.3486388027667999,
-0.1484002321958542,
-0.013297265395522118,
0.17992636561393738,
0.6943490505218506,
-0.0666871964931488,
0.06683780252933502,
-0.08382640779018402,
0.14753802120685577,
0.3351518511772156,
0.00897167157381773,
0.39408209919929504,
-0.213628351688385,
-0.38609981536865234,
0.6833879351615906,
0.17242273688316345,
-0.06021662801504135,
-0.18806910514831543,
-0.028869854286313057,
-0.17906798422336578,
-0.1656184047460556,
0.11210127174854279,
0.18015389144420624,
0.29116004705429077,
-0.44189098477363586,
-0.09856746345758438,
0.3846246004104614,
0.18575116991996765,
0.02583657205104828,
0.4675314128398895,
0.0653674378991127,
-0.06930750608444214,
0.3300027549266815,
0.3051340579986572,
0.22508065402507782,
0.466276615858078,
-0.0665648877620697,
0.47180837392807007,
0.0667063295841217,
0.12534059584140778,
-0.13440018892288208,
-0.3910471200942993,
-0.23684845864772797,
0.42562174797058105,
0.19484706223011017,
0.03734221309423447,
-0.2140030711889267,
0.27323052287101746,
0.2574637830257416,
-0.23213431239128113,
-0.050520457327365875,
0.3097577393054962,
-0.27512452006340027,
-0.1667291224002838,
-0.05871596559882164,
-0.050180040299892426,
0.030876481905579567,
0.25558018684387207,
-0.2814869284629822,
-0.28131380677223206,
0.10185825079679489,
0.06146475300192833,
0.001305819838307798,
-0.2767419219017029,
0.20927685499191284,
0.09694577753543854,
0.050616126507520676,
-0.2989829480648041,
0.23835662007331848,
-0.3614276051521301,
0.03960738331079483,
-0.20370449125766754,
0.26524680852890015,
0.31675028800964355,
0.42235252261161804,
-0.16017405688762665,
0.040251750499010086,
-0.19014804065227509,
0.1461491882801056,
-0.12595167756080627,
0.3894745111465454,
0.07511881738901138,
0.13779394328594208,
0.10004685074090958,
-0.06780225783586502,
-0.06970388442277908,
-0.10743819177150726,
0.04383218660950661,
-0.3280682861804962,
-0.022128567099571228,
0.07595270127058029,
0.23820200562477112,
-0.2457772046327591,
-0.03236101195216179,
0.0971810594201088,
-0.31763535737991333,
0.1855527013540268,
0.8031601309776306,
-0.30247631669044495,
0.15867523849010468,
-0.160495787858963,
0.04806378856301308,
-0.16160276532173157,
0.446498304605484,
0.4236748516559601,
-0.0030974915716797113,
-0.5891638398170471,
-0.07248185575008392,
-0.391068696975708,
0.13305024802684784,
-0.40938958525657654,
0.29878196120262146,
-0.004731083754450083,
0.03670492023229599,
-0.13461342453956604,
0.09450165182352066,
-0.2672285735607147,
0.15311381220817566,
-0.46291226148605347,
0.08518113195896149,
-0.04769040271639824,
0.2911083400249481,
-0.1900389939546585,
0.20476816594600677,
-0.0044684866443276405,
-0.37019777297973633,
0.3627033829689026,
-0.19432254135608673,
-0.13296830654144287,
-0.1911633312702179,
0.29689744114875793,
0.17882749438285828,
-0.1411946564912796,
0.44525662064552307,
0.17506316304206848,
0.13580439984798431,
0.06078306585550308,
0.2444525808095932,
-0.0074361348524689674,
0.07304562628269196,
-0.24771521985530853,
0.0883704125881195,
-0.020742960274219513,
-0.04471120238304138,
-0.2221277505159378,
0.1344272494316101,
-0.15061283111572266,
-0.13173304498195648,
-0.006913653574883938,
-0.15708445012569427,
-0.22716234624385834,
-0.013232728466391563,
-0.18070289492607117,
0.1478370726108551,
-0.08150580525398254,
0.4159242510795593,
-0.1348462700843811,
-0.015056499280035496,
-0.2692967653274536,
-0.2827501893043518,
0.2788337469100952,
-0.6746147274971008,
-0.4008941948413849,
-0.14819124341011047,
-0.05688760057091713,
0.5397028923034668,
-0.10906943678855896,
-0.6030367016792297,
0.10402263700962067,
0.49999627470970154,
0.10653470456600189,
-0.45953401923179626,
0.10347144305706024,
-0.01132295187562704,
0.017821410670876503,
-0.19560106098651886,
0.546609103679657,
-0.19429519772529602,
-0.2376626580953598,
0.07500376552343369,
-0.25919368863105774
] |
https://github.com/huggingface/datasets/issues/1825 | Datasets library not suitable for huge text datasets. | How recently was `set_transform` added? I am actually trying to implement it and getting an error:
`AttributeError: 'Dataset' object has no attribute 'set_transform'
`
I'm on v.1.2.1.
EDIT: Oh, wait I see now it's in the v.2.0. Whoops! This should be really useful. | Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions?? | 43 | Datasets library not suitable for huge text datasets.
Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions??
How recently was `set_transform` added? I am actually trying to implement it and getting an error:
`AttributeError: 'Dataset' object has no attribute 'set_transform'
`
I'm on v.1.2.1.
EDIT: Oh, wait I see now it's in the v.2.0. Whoops! This should be really useful. | [
-0.4678060710430145,
0.16560781002044678,
0.030423343181610107,
0.13930319249629974,
0.36984381079673767,
-0.07995746284723282,
0.13434459269046783,
0.42008814215660095,
-0.43385952711105347,
-0.10870681703090668,
0.10512027144432068,
0.09787485748529434,
-0.25969311594963074,
0.1617349535226822,
0.13775818049907684,
0.007173600140959024,
0.2880679666996002,
0.17738306522369385,
-0.025608491152524948,
0.12198587507009506,
-0.06834311783313751,
-0.12772127985954285,
-0.28676921129226685,
-0.0004002359928563237,
-0.525242030620575,
-0.2634718418121338,
-0.017438024282455444,
-0.24359533190727234,
-0.4448637366294861,
-0.3248975872993469,
-0.19247449934482574,
0.13646653294563293,
0.43242454528808594,
0.512505054473877,
-0.00012559663446154445,
-0.22102533280849457,
0.24720482528209686,
-0.038424909114837646,
-0.2875908613204956,
-0.03947560116648674,
0.29305365681648254,
-0.3577696681022644,
-0.1968451589345932,
-0.2132425755262375,
0.19382840394973755,
-0.37451907992362976,
-0.041470013558864594,
-0.10995027422904968,
0.11619097739458084,
0.2161799520254135,
0.08588823676109314,
0.054130394011735916,
0.07016623020172119,
0.039516132324934006,
0.16454848647117615,
-0.001455406192690134,
-0.10422715544700623,
-0.02287961170077324,
0.45387253165245056,
0.06549244374036789,
-0.12683624029159546,
0.13993969559669495,
-0.12165305018424988,
-0.02126411534845829,
0.45770859718322754,
-0.07397286593914032,
-0.24550747871398926,
-0.2150259017944336,
0.1715572327375412,
0.2889244258403778,
0.5197039246559143,
-0.4864003658294678,
-0.3977510929107666,
-0.5967864990234375,
-0.16936206817626953,
-0.2333572804927826,
-0.005126133561134338,
0.1050858423113823,
0.06447765231132507,
0.19546113908290863,
-0.5726390480995178,
-0.47434747219085693,
-0.11595509201288223,
0.39325791597366333,
-0.2551799714565277,
0.11431340128183365,
-0.12854218482971191,
0.09376799315214157,
0.18534386157989502,
-0.1451212465763092,
0.13376526534557343,
-0.2565787136554718,
0.021057000383734703,
0.18751443922519684,
-0.33442482352256775,
-0.1271079033613205,
-0.16220158338546753,
-0.021164394915103912,
0.40647730231285095,
0.09461946040391922,
-0.43267467617988586,
0.06500080227851868,
-0.1359996348619461,
-0.00835319235920906,
0.25431764125823975,
0.4710547924041748,
-0.22278520464897156,
0.2742270529270172,
0.223785862326622,
-0.2196388691663742,
0.012065521441400051,
-0.08008425682783127,
-0.47909897565841675,
-0.17351697385311127,
0.07928004860877991,
-0.35841819643974304,
-0.12009128928184509,
-0.14532816410064697,
-0.03969519957900047,
-0.001461776439100504,
-0.14044241607189178,
0.19794991612434387,
0.11611052602529526,
0.1320021003484726,
-0.05799859017133713,
0.1802784651517868,
-0.10723216831684113,
0.2354937642812729,
-0.13252754509449005,
-0.20003509521484375,
0.0021078125573694706,
-0.020393187180161476,
-0.29102805256843567,
0.13602860271930695,
0.16175620257854462,
-0.0009593668510206044,
0.0848512053489685,
-0.10976246744394302,
0.09472131729125977,
0.11956337839365005,
0.1449589878320694,
-0.323037713766098,
0.0003709874290507287,
0.16922958195209503,
-0.12798184156417847,
0.40774407982826233,
-0.1729893535375595,
-0.04691538214683533,
-0.27522018551826477,
0.36724209785461426,
-0.2981245815753937,
-0.3904721736907959,
-0.06154889240860939,
0.07274153083562851,
-0.40905630588531494,
-0.04889203608036041,
-0.5169218182563782,
0.41313636302948,
0.466695100069046,
0.001068863202817738,
0.02285560593008995,
-0.204652801156044,
-0.1611895114183426,
-0.009332207962870598,
0.17031735181808472,
0.19399473071098328,
-0.620680570602417,
-0.0736391544342041,
-0.024232052266597748,
0.1578420251607895,
0.2399742752313614,
0.6512376070022583,
-0.14100712537765503,
0.3402700424194336,
-0.05928707867860794,
0.3595707416534424,
0.23317518830299377,
0.19292257726192474,
-0.5321207046508789,
0.29342785477638245,
-0.033472709357738495,
-0.22859635949134827,
-0.01805691607296467,
0.04281308874487877,
0.3913394510746002,
-0.11936922371387482,
0.028269357979297638,
0.42067328095436096,
-0.061683084815740585,
0.11342152208089828,
-0.22826790809631348,
-0.3263329863548279,
0.19324235618114471,
0.2130986899137497,
0.20064198970794678,
-0.14208443462848663,
0.043817393481731415,
0.4546668827533722,
0.037938617169857025,
-0.1514837145805359,
0.44035977125167847,
0.09199358522891998,
0.2173001915216446,
0.15100671350955963,
0.05949939414858818,
-0.25207626819610596,
0.17664571106433868,
0.039071548730134964,
0.16512079536914825,
-0.08735689520835876,
-0.03598755598068237,
-0.21747738122940063,
0.008902992121875286,
-0.022134246304631233,
0.03188933804631233,
0.07268068939447403,
-0.12673231959342957,
-0.15514181554317474,
-0.007907835766673088,
0.17408473789691925,
-0.16081856191158295,
-0.11975668370723724,
-0.23613165318965912,
0.07244330644607544,
-0.17394544184207916,
0.07099830359220505,
0.09377039223909378,
-0.17033793032169342,
0.0002910680777858943,
0.17705968022346497,
-0.11854245513677597,
-0.15476426482200623,
-0.06339108198881149,
0.22321826219558716,
-0.034386370331048965,
-0.16811612248420715,
-0.3214414119720459,
0.6541762948036194,
0.27077990770339966,
-0.06255272775888443,
0.24109715223312378,
-0.07508712261915207,
0.0416625551879406,
-0.10140633583068848,
-0.0262597668915987,
0.19746410846710205,
0.03180333599448204,
0.1712823212146759,
0.04079720005393028,
-0.21162810921669006,
0.09120534360408783,
-0.0658043771982193,
0.12830142676830292,
-0.009219261817634106,
0.1961648166179657,
0.02820790931582451,
0.3526705801486969,
0.25810179114341736,
-0.08915071189403534,
-0.1441115438938141,
0.5428149104118347,
-0.256213903427124,
0.25797876715660095,
0.46385514736175537,
-0.43056920170783997,
-0.3219675123691559,
0.07507845759391785,
-0.10992678254842758,
0.2708718776702881,
0.18141263723373413,
0.0384940505027771,
-0.005050663370639086,
0.2958002984523773,
-0.05855897068977356,
0.226981982588768,
0.12926624715328217,
0.23125413060188293,
0.16550131142139435,
0.1857069879770279,
0.1758006066083908,
-0.16525492072105408,
-0.18095974624156952,
0.23470234870910645,
0.3232021629810333,
-0.1956058293581009,
0.08063428848981857,
-0.20886991918087006,
-0.19413629174232483,
-0.0987124815583229,
0.1454789787530899,
-0.1387939751148224,
0.005287928506731987,
0.0636100098490715,
-0.09177761524915695,
0.14397238194942474,
0.14538756012916565,
0.11625130474567413,
0.39103835821151733,
0.0875246599316597,
-0.30438029766082764,
0.1152975782752037,
-0.05897259712219238,
-0.43237951397895813,
-0.035121846944093704,
0.27948081493377686,
-0.42646217346191406,
0.2161749303340912,
0.15201981365680695,
0.07639749348163605,
-0.2842859923839569,
-0.5105537176132202,
0.015310828574001789,
0.018666250631213188,
0.21454860270023346,
-0.09795711189508438,
0.02044425718486309,
-0.1042165532708168,
0.1304885447025299,
-0.03224615380167961,
-0.1589452624320984,
-0.10282178223133087,
0.0985742136836052,
-0.18153449892997742,
-0.24359658360481262,
0.1276797205209732,
-0.16389736533164978,
-0.2868717610836029,
-0.21018826961517334,
0.2809814512729645,
-0.14801917970180511,
0.0006389543996192515,
0.13611356914043427,
0.1532781571149826,
-0.0221643578261137,
0.006242325529456139,
-0.07602488994598389,
0.11993270367383957,
-0.21263271570205688,
0.5063881278038025,
0.1551687866449356,
-0.2401786595582962,
-0.11682388186454773,
0.08238297700881958,
-0.17069505155086517,
0.404660701751709,
-0.4827154874801636,
0.2901178300380707,
-0.31741467118263245,
0.18220022320747375,
-0.07470124214887619,
0.11960243433713913,
0.1363297700881958,
-0.06622195243835449,
0.09119510650634766,
0.07438676804304123,
-0.2566072642803192,
-0.26442769169807434,
-0.03483006730675697,
0.31903645396232605,
-0.05388784036040306,
0.35806530714035034,
0.504602313041687,
0.5707181692123413,
-0.1284007877111435,
-0.202596977353096,
0.30222058296203613,
0.058137621730566025,
0.18593807518482208,
-0.3812962770462036,
-0.20784881711006165,
0.30767858028411865,
-0.11307816952466965,
-0.1500232070684433,
0.40429478883743286,
0.07336355000734329,
-0.12560585141181946,
0.18221357464790344,
-0.2858063280582428,
-0.0770428478717804,
0.0022835072595626116,
0.1816805601119995,
-0.2554914951324463,
0.19497032463550568,
-0.03322554752230644,
-0.14733357727527618,
-0.0552726611495018,
-0.35438230633735657,
0.006502690725028515,
0.08548572659492493,
-0.039881251752376556,
0.27809837460517883,
-0.5231353640556335,
0.14454545080661774,
-0.3172295093536377,
0.1839580088853836,
-0.11983837187290192,
0.31764736771583557,
0.08934766799211502,
0.04433470591902733,
0.17285101115703583,
-0.002982230857014656,
0.6573580503463745,
0.1614985167980194,
-0.22439180314540863,
-0.08020678907632828,
-0.1849890649318695,
-0.28152576088905334,
0.0307367742061615,
-0.15641173720359802,
0.2526804506778717,
0.396907240152359,
0.4458353817462921,
-0.2846604883670807,
-0.08748766779899597,
-0.15630750358104706,
0.5995661020278931,
-0.028743132948875427,
-0.2090795636177063,
0.009726522490382195,
-0.19376130402088165,
-0.6171143054962158,
0.14112353324890137,
0.1184750571846962,
0.37230315804481506,
0.05132460594177246,
-0.017696738243103027,
-0.16072337329387665,
-0.14876814186573029,
0.33148083090782166,
-0.021237684413790703,
0.1076568216085434,
-0.07592704147100449,
0.22756339609622955,
-0.11483130604028702,
0.16615237295627594,
0.5096879601478577,
-0.011208808980882168,
0.15897221863269806,
-0.20576146245002747,
0.0160305704921484,
0.08608054369688034,
0.4228654205799103,
-0.0182466022670269,
-0.15910880267620087,
0.27276772260665894,
-0.15929993987083435,
0.33510980010032654,
-0.2517127990722656,
0.4993903636932373,
0.14243142306804657,
0.024775516241788864,
-0.7850490212440491,
-0.44194352626800537,
0.3065381348133087,
0.1834491491317749,
-0.0020832873415201902,
0.23322182893753052,
-0.08983442187309265,
-0.354888916015625,
0.2965233027935028,
0.12644551694393158,
0.9342727065086365,
-0.36640092730522156,
0.2955782413482666,
-0.31445106863975525,
0.3217414319515228,
0.5618304014205933,
-0.639495849609375,
-0.010873709805309772,
-0.3764117360115051,
0.05191212520003319,
0.08551448583602905,
-0.05422332510352135,
0.13348624110221863,
0.4011875092983246,
-0.10392456501722336,
0.24858404695987701,
0.09214809536933899,
0.05296670272946358,
-0.028063973411917686,
0.6024866104125977,
-0.11246173828840256,
-0.3547428250312805,
-0.13956931233406067,
0.030256235972046852,
-0.19786123931407928,
-0.017633523792028427,
-0.15019872784614563,
0.1268521249294281,
-0.048003196716308594,
0.08815257251262665,
-0.37022167444229126,
-0.08578506112098694,
-0.0762249305844307,
0.13093332946300507,
-0.07100726664066315,
-0.15860602259635925,
0.5522639751434326,
-0.02438531629741192,
0.29393795132637024,
0.4906292259693146,
-0.15993256866931915,
0.1951516717672348,
-0.3952568471431732,
0.007242968305945396,
0.22703400254249573,
-0.2535533010959625,
0.17695225775241852,
-0.002971814014017582,
0.046728137880563736,
-0.22745740413665771,
0.12152757495641708,
-0.014459557831287384,
-0.18631501495838165,
-0.14065998792648315,
0.5457143187522888,
-0.2815808057785034,
-0.15258705615997314,
-0.10812503844499588,
0.07396727800369263,
-0.09374874830245972,
0.012491365894675255,
0.16467277705669403,
-0.020394420251250267,
0.3688540458679199,
-0.06504650413990021,
-0.26758527755737305,
-0.16352324187755585,
0.22400012612342834,
0.038348641246557236,
-0.04823409020900726,
0.5090437531471252,
0.19990186393260956,
-0.19953151047229767,
-0.09599648416042328,
0.39149415493011475,
0.21927940845489502,
-0.2844054698944092,
0.22491025924682617,
0.10755261778831482,
-0.018357636407017708,
-0.11179182678461075,
0.0926157757639885,
0.1175079271197319,
-0.44312533736228943,
-0.06794359534978867,
-0.22729870676994324,
-0.3753502666950226,
0.13258662819862366,
-0.03168133646249771,
0.11350206285715103,
0.062248531728982925,
0.12035632878541946,
0.00039683791692368686,
0.11205751448869705,
-0.14634016156196594,
0.1943097561597824,
0.0917976051568985,
0.2783544063568115,
-0.15627212822437286,
0.047858260571956635,
-0.2649523615837097,
-0.0907745212316513,
-0.15316453576087952,
0.10011455416679382,
0.14193092286586761,
-0.13766130805015564,
-0.2068956047296524,
0.20381514728069305,
0.2516917884349823,
-0.2625119686126709,
0.14885574579238892,
-0.2941524386405945,
-0.13338980078697205,
-0.3269464075565338,
0.2188897728919983,
0.2685704231262207,
-0.010176558047533035,
-0.05530157312750816,
0.25932493805885315,
-0.33597180247306824,
-0.25280749797821045,
0.058605317026376724,
-0.03265336528420448,
0.11974746733903885,
0.15321505069732666,
0.38574326038360596,
0.5578311085700989,
-0.09740756452083588,
-0.3966265916824341,
0.23649448156356812,
0.48236286640167236,
-0.10040204226970673,
0.10285954922437668,
-0.2452235072851181,
0.1180025041103363,
0.32102513313293457,
0.15047414600849152,
0.4841671288013458,
-0.18217667937278748,
-0.3888131380081177,
0.5509514808654785,
0.09332086890935898,
-0.10552016645669937,
-0.19484324753284454,
0.06209002807736397,
-0.14723360538482666,
-0.23549413681030273,
0.13202232122421265,
0.2544417977333069,
0.1740473210811615,
-0.4353880286216736,
-0.05542312562465668,
0.5197488069534302,
0.2001790553331375,
0.04026784747838974,
0.4844232201576233,
0.1650194227695465,
-0.05635232478380203,
0.3396508991718292,
0.25915297865867615,
0.25225454568862915,
0.5600364208221436,
-0.01564980298280716,
0.5746827125549316,
0.21593591570854187,
0.2291240245103836,
-0.17783427238464355,
-0.486478716135025,
-0.12721304595470428,
0.35177138447761536,
0.2182941883802414,
-0.08247826993465424,
-0.2162063717842102,
0.28776416182518005,
0.33674412965774536,
-0.12256039679050446,
-0.03572873771190643,
0.16637679934501648,
-0.19160038232803345,
-0.1216515377163887,
-0.14636404812335968,
-0.1660091131925583,
-0.013038934208452702,
0.23122839629650116,
-0.27122175693511963,
-0.3700612187385559,
0.06008164957165718,
0.032027654349803925,
-0.10579950362443924,
-0.46287107467651367,
0.4335581362247467,
0.06493474543094635,
0.024106314405798912,
-0.27389153838157654,
0.2925998866558075,
-0.21642786264419556,
0.07362689822912216,
0.0415443480014801,
0.2999281883239746,
0.4472157657146454,
0.46387043595314026,
-0.05967133864760399,
0.010904830880463123,
-0.24108582735061646,
0.02453698217868805,
-0.1439652293920517,
0.46249914169311523,
0.03497738018631935,
0.2712833285331726,
0.13451755046844482,
-0.06336166709661484,
-0.03244660049676895,
0.005066916812211275,
0.1022724062204361,
-0.3170355260372162,
-0.1514538675546646,
0.03702864795923233,
0.1535600870847702,
-0.3451303541660309,
-0.1238737478852272,
0.18215541541576385,
-0.2598913609981537,
0.017143748700618744,
0.9408843517303467,
-0.3457410931587219,
0.05357060581445694,
-0.19018559157848358,
0.010261821560561657,
-0.11160112917423248,
0.4436602294445038,
0.45705655217170715,
0.07641830295324326,
-0.3387860059738159,
-0.07781878858804703,
-0.3848976194858551,
0.20200566947460175,
-0.2915292978286743,
0.25985175371170044,
0.0068151759915053844,
0.09227929264307022,
-0.087010458111763,
0.05216946080327034,
-0.27723947167396545,
0.33178946375846863,
-0.346938818693161,
0.07125850021839142,
-0.07661101967096329,
0.012940865941345692,
-0.11799170821905136,
0.24222709238529205,
-0.1184535101056099,
-0.3655267059803009,
0.34416458010673523,
-0.16349086165428162,
-0.162552610039711,
-0.22175124287605286,
0.23441863059997559,
0.18637023866176605,
-0.12410452961921692,
0.5211454629898071,
0.16399304568767548,
0.28442254662513733,
0.06964187324047089,
0.38149702548980713,
-0.06578006595373154,
0.029626766219735146,
-0.3679361343383789,
0.25239744782447815,
-0.04130105301737785,
0.02065432071685791,
-0.21223583817481995,
0.14735941588878632,
-0.045980680733919144,
0.054739199578762054,
-0.06017373874783516,
-0.025084277614951134,
-0.21112392842769623,
-0.05758165568113327,
-0.1792093813419342,
0.14226418733596802,
0.0848786011338234,
0.28731563687324524,
-0.056095562875270844,
0.008837975561618805,
-0.38097694516181946,
-0.29638317227363586,
0.28298479318618774,
-0.4146689474582672,
-0.3906492292881012,
-0.1051531434059143,
-0.02666160836815834,
0.5343504548072815,
-0.24056105315685272,
-0.534579336643219,
0.05040239542722702,
0.5844871401786804,
0.05054635927081108,
-0.3297668397426605,
0.30898144841194153,
-0.23216484487056732,
0.010188508778810501,
-0.1443694531917572,
0.5861443281173706,
-0.16087201237678528,
-0.2709833085536957,
0.008574227802455425,
-0.1008409708738327
] |
https://github.com/huggingface/datasets/issues/1825 | Datasets library not suitable for huge text datasets. | Yes indeed it was added a few days ago. The code is available on master
We'll do a release next week :)
Feel free to install `datasets` from source to try it out though, I would love to have some feedbacks | Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions?? | 41 | Datasets library not suitable for huge text datasets.
Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions??
Yes indeed it was added a few days ago. The code is available on master
We'll do a release next week :)
Feel free to install `datasets` from source to try it out though, I would love to have some feedbacks | [
-0.4051036536693573,
0.13909576833248138,
0.015502887777984142,
0.29045388102531433,
0.2991151809692383,
0.007427196949720383,
0.07476841658353806,
0.3566737473011017,
-0.3289952278137207,
-0.06482837349176407,
0.0511007234454155,
0.060472521930933,
-0.24908986687660217,
0.17772644758224487,
0.0443807952105999,
0.08899591863155365,
0.18884673714637756,
0.15917393565177917,
0.11262935400009155,
0.1340799331665039,
0.03617881238460541,
-0.1229671835899353,
-0.23187321424484253,
0.023854365572333336,
-0.5338655114173889,
-0.24752689898014069,
-0.0014843345852568746,
-0.20429444313049316,
-0.4535929262638092,
-0.31685006618499756,
-0.18656103312969208,
0.18781715631484985,
0.5089609026908875,
0.4989701509475708,
-0.000124175421660766,
-0.27661046385765076,
0.22809594869613647,
-0.0018141893669962883,
-0.24883930385112762,
0.03759228065609932,
0.4174689054489136,
-0.29631268978118896,
-0.20885878801345825,
-0.19176004827022552,
0.16334381699562073,
-0.2845402956008911,
-0.02407855913043022,
-0.08120982348918915,
0.10663791745901108,
0.07948340475559235,
0.07767811417579651,
0.0891762524843216,
0.03276263549923897,
0.16114428639411926,
0.14307203888893127,
0.04208846390247345,
-0.06925550103187561,
0.0685504898428917,
0.4472152590751648,
0.0410756915807724,
-0.16497409343719482,
0.18081027269363403,
-0.134598046541214,
-0.0035426875110715628,
0.3252604603767395,
-0.08419666439294815,
-0.11486651003360748,
-0.184537872672081,
0.22418850660324097,
0.274883896112442,
0.5318582057952881,
-0.44143906235694885,
-0.2680337727069855,
-0.5356898903846741,
-0.19476397335529327,
-0.2997775077819824,
-0.03668512776494026,
0.18115949630737305,
-0.022188691422343254,
0.20495672523975372,
-0.43014660477638245,
-0.43387436866760254,
-0.13849763572216034,
0.3633366525173187,
-0.21565990149974823,
0.13450023531913757,
-0.13689139485359192,
0.11149580776691437,
0.18070530891418457,
-0.20489899814128876,
0.1003354862332344,
-0.33740490674972534,
0.012752721086144447,
0.1920607089996338,
-0.3882724642753601,
-0.13607122004032135,
-0.1989925354719162,
-0.013485945761203766,
0.47187837958335876,
-0.027268771082162857,
-0.425577849149704,
0.15663106739521027,
-0.12290293723344803,
0.021191736683249474,
0.36215052008628845,
0.21507859230041504,
-0.1023106724023819,
0.25367462635040283,
0.18844716250896454,
-0.16953754425048828,
-0.05735325813293457,
-0.07312113046646118,
-0.5236896276473999,
-0.07493670284748077,
0.10816710442304611,
-0.4771716296672821,
-0.25287631154060364,
-0.19711995124816895,
-0.0683676227927208,
0.09076179563999176,
-0.19434720277786255,
0.2627512812614441,
0.18459178507328033,
0.1667827069759369,
-0.09955067932605743,
0.0795411467552185,
-0.20992356538772583,
0.1964031159877777,
-0.1286839097738266,
-0.19921264052391052,
0.006611417513340712,
-0.08781057596206665,
-0.2628050446510315,
0.16388057172298431,
0.16365207731723785,
-0.02381971850991249,
0.10449346899986267,
-0.05774978920817375,
0.0845349058508873,
-0.002651750110089779,
0.14633464813232422,
-0.3493957221508026,
-0.07232356816530228,
0.09370654821395874,
-0.040883541107177734,
0.37093034386634827,
-0.2378409504890442,
0.036097150295972824,
-0.20475608110427856,
0.3789346218109131,
-0.2517651915550232,
-0.3602263629436493,
-0.05872204527258873,
0.0722680315375328,
-0.3575671911239624,
0.02887486293911934,
-0.5238497257232666,
0.3691042363643646,
0.45205557346343994,
0.08413487672805786,
0.010002588853240013,
-0.10789721459150314,
-0.2290683090686798,
-0.015236157923936844,
0.16613292694091797,
0.15570850670337677,
-0.6027982234954834,
0.037512924522161484,
-0.07486958056688309,
0.10127295553684235,
0.3304004967212677,
0.7473346590995789,
-0.15704302489757538,
0.3759782314300537,
-0.10283861309289932,
0.44759222865104675,
0.1434929072856903,
0.17256850004196167,
-0.5138142704963684,
0.4206913411617279,
0.004510221537202597,
-0.14456060528755188,
-0.0063966745510697365,
0.0962306410074234,
0.37775611877441406,
-0.11913123726844788,
0.19352860748767853,
0.33155062794685364,
-0.06460613012313843,
0.09370990097522736,
-0.32032129168510437,
-0.3219234049320221,
0.13492877781391144,
0.3081052005290985,
0.19015982747077942,
-0.2884480953216553,
-0.01604177989065647,
0.33375924825668335,
0.15090510249137878,
-0.17023791372776031,
0.37060776352882385,
0.13143911957740784,
0.2265494465827942,
0.1637721210718155,
-0.008740871213376522,
-0.22587575018405914,
0.14989908039569855,
0.06362488120794296,
0.11208910495042801,
-0.14398473501205444,
-0.042222294956445694,
-0.2829776406288147,
0.12736573815345764,
-0.02551647648215294,
0.005588579922914505,
0.11121520400047302,
-0.09919924288988113,
-0.21857699751853943,
-0.09508146345615387,
0.13622888922691345,
-0.0690709576010704,
-0.11327502876520157,
-0.33143606781959534,
0.1292932778596878,
-0.10116462409496307,
0.03128281980752945,
0.037180282175540924,
-0.14106012880802155,
0.036589473485946655,
0.22813327610492706,
-0.1317254602909088,
-0.13469138741493225,
0.0014943764545023441,
0.18875159323215485,
0.01566576212644577,
-0.24015139043331146,
-0.2595066428184509,
0.5918121933937073,
0.2400098294019699,
0.020717008039355278,
0.24852946400642395,
-0.04437532648444176,
0.047128431499004364,
-0.11076029390096664,
0.05584462732076645,
0.28619319200515747,
0.08672520518302917,
0.12396760284900665,
0.004620526451617479,
-0.29035699367523193,
0.08347117155790329,
-0.03301498293876648,
0.19676326215267181,
0.02646217681467533,
0.2717002332210541,
0.06838201731443405,
0.3077639937400818,
0.3182152211666107,
-0.15976786613464355,
-0.1507180631160736,
0.3479211628437042,
-0.3244883418083191,
0.19424951076507568,
0.4423334300518036,
-0.42646002769470215,
-0.3297383487224579,
0.0858769491314888,
-0.2397742122411728,
0.13288287818431854,
0.1559308022260666,
0.0524386391043663,
-0.04975853115320206,
0.36608853936195374,
-0.07127735018730164,
0.16526174545288086,
0.1384436935186386,
0.12987619638442993,
0.2031746804714203,
0.12044186890125275,
0.13029779493808746,
-0.1725424826145172,
-0.06471660733222961,
0.19561801850795746,
0.354020357131958,
-0.15271209180355072,
0.052918948233127594,
-0.21625876426696777,
-0.30771395564079285,
-0.011040007695555687,
0.18976131081581116,
-0.1802608072757721,
0.04592626169323921,
0.12236084789037704,
0.016413293778896332,
0.12563546001911163,
0.05564930662512779,
0.16185636818408966,
0.3633153438568115,
0.03365226089954376,
-0.3247653841972351,
0.16995765268802643,
-0.09471016377210617,
-0.4917176365852356,
-0.03546648845076561,
0.3435526192188263,
-0.33463165163993835,
0.2998606860637665,
0.21900682151317596,
0.05025419220328331,
-0.31553947925567627,
-0.46219268441200256,
0.01757705584168434,
0.1138879731297493,
0.22941628098487854,
-0.1505281627178192,
0.04155266657471657,
-0.19998520612716675,
0.16224750876426697,
-0.08434545993804932,
-0.12780797481536865,
-0.08050283789634705,
0.07361491769552231,
-0.15907469391822815,
-0.21853007376194,
0.11135226488113403,
-0.03009405918419361,
-0.27081581950187683,
-0.18253661692142487,
0.22401399910449982,
-0.1710544228553772,
0.08794813603162766,
0.01596582494676113,
0.08310602605342865,
-0.014135178178548813,
-0.06200193986296654,
-0.14541293680667877,
0.029804455116391182,
-0.31281423568725586,
0.41591116786003113,
0.20498360693454742,
-0.21091675758361816,
-0.056101564317941666,
0.12676243484020233,
-0.07173342257738113,
0.3511764109134674,
-0.543887197971344,
0.30584752559661865,
-0.19194242358207703,
0.19673539698123932,
-0.10464277118444443,
0.0441000834107399,
0.01903793215751648,
-0.1551855504512787,
0.10735563188791275,
0.12181074172258377,
-0.22671271860599518,
-0.23918762803077698,
-0.1558685153722763,
0.3402346670627594,
-0.04488181322813034,
0.31256866455078125,
0.42549899220466614,
0.5209852457046509,
-0.09033876657485962,
-0.16132080554962158,
0.31239670515060425,
0.15995638072490692,
0.2083931267261505,
-0.3067103624343872,
-0.10908088088035583,
0.29639098048210144,
-0.06463765352964401,
-0.1498524695634842,
0.49757760763168335,
0.14208662509918213,
-0.1262381672859192,
0.24445711076259613,
-0.32520729303359985,
-0.05377258360385895,
-0.07124792039394379,
0.20296065509319305,
-0.2755320370197296,
0.21068045496940613,
-0.02133023552596569,
-0.17582757771015167,
-0.046852465718984604,
-0.37331968545913696,
-0.041022952646017075,
0.15872907638549805,
-0.03837687894701958,
0.21964754164218903,
-0.5036864280700684,
0.2241738885641098,
-0.35069674253463745,
0.17271287739276886,
-0.10084120184183121,
0.328910231590271,
0.11931727826595306,
0.192347452044487,
0.25297534465789795,
0.029597055166959763,
0.5905706286430359,
0.128606379032135,
-0.17127525806427002,
-0.14723286032676697,
-0.10647469758987427,
-0.19701069593429565,
0.044070154428482056,
-0.10640425980091095,
0.2871228754520416,
0.4626604914665222,
0.46783122420310974,
-0.371643990278244,
-0.15101981163024902,
-0.2931530773639679,
0.5599134564399719,
-0.011180881410837173,
-0.32347509264945984,
-0.021164027974009514,
-0.14013227820396423,
-0.5439134240150452,
0.17722144722938538,
0.1554720550775528,
0.3789793848991394,
0.10985486209392548,
-0.07489859312772751,
-0.12852171063423157,
-0.058399997651576996,
0.3375991880893707,
-0.0386170819401741,
0.13933534920215607,
-0.1615230292081833,
0.23511521518230438,
-0.20482656359672546,
0.16065549850463867,
0.5302138924598694,
-0.023548420518636703,
0.13114404678344727,
-0.2705220580101013,
0.015060167759656906,
0.04802805185317993,
0.4064316749572754,
0.014354265294969082,
-0.1317490041255951,
0.36062806844711304,
-0.2724704146385193,
0.2747163772583008,
-0.186923548579216,
0.5377909541130066,
0.1321881115436554,
0.07611127197742462,
-0.8546541333198547,
-0.31340715289115906,
0.2389555424451828,
0.2096375823020935,
-0.020394286140799522,
0.2407509982585907,
-0.16545625030994415,
-0.2896409332752228,
0.29820358753204346,
0.09519605338573456,
0.8781995177268982,
-0.433555006980896,
0.3147646486759186,
-0.37940526008605957,
0.3414393663406372,
0.5416302680969238,
-0.6066263914108276,
-0.048749085515737534,
-0.40830960869789124,
0.1615252047777176,
0.14426299929618835,
0.0018783130217343569,
0.03313237801194191,
0.4243253171443939,
0.041918057948350906,
0.24610985815525055,
0.11470833420753479,
0.14268331229686737,
0.023164283484220505,
0.6419767141342163,
-0.040715936571359634,
-0.31812405586242676,
-0.13954049348831177,
0.03970983996987343,
-0.21208001673221588,
-0.04499119892716408,
-0.22483855485916138,
0.08114128559827805,
0.06334999203681946,
0.04676548391580582,
-0.2977198660373688,
-0.1569366604089737,
-0.10680250823497772,
0.10426019132137299,
-0.03312556818127632,
-0.1095273345708847,
0.5250964164733887,
-0.09116766601800919,
0.2498140037059784,
0.5259623527526855,
-0.18305906653404236,
0.13045746088027954,
-0.3457992672920227,
-0.12371479719877243,
0.1785326898097992,
-0.24796047806739807,
0.023517854511737823,
-0.020760318264365196,
0.05664684996008873,
-0.27097606658935547,
0.1404961198568344,
-0.06107711419463158,
-0.17204482853412628,
-0.09256394952535629,
0.5309392213821411,
-0.22463656961917877,
-0.18552428483963013,
-0.20130418241024017,
0.006535050459206104,
-0.058891166001558304,
0.014048001728951931,
0.2020164132118225,
-0.09097372740507126,
0.3338698744773865,
-0.003167323302477598,
-0.23409168422222137,
-0.15266475081443787,
0.1435001790523529,
0.0647660493850708,
-0.04945856332778931,
0.41632694005966187,
0.20877881348133087,
-0.16092433035373688,
-0.13654372096061707,
0.36902326345443726,
0.2042340189218521,
-0.13335683941841125,
0.16699200868606567,
0.2157004326581955,
0.03367387130856514,
-0.05342337116599083,
0.03140060231089592,
0.1624218374490738,
-0.47701796889305115,
-0.021520866081118584,
-0.20940740406513214,
-0.4017367660999298,
0.0650746151804924,
-0.0659414529800415,
0.14008685946464539,
0.09861379116773605,
0.18323537707328796,
-0.12139750272035599,
0.07742302119731903,
-0.14260414242744446,
0.30319520831108093,
0.07172483950853348,
0.25678667426109314,
-0.2012081742286682,
0.06698102504014969,
-0.27171602845191956,
-0.07348741590976715,
-0.13678406178951263,
0.18100380897521973,
0.0861927717924118,
-0.1584145426750183,
-0.13021212816238403,
0.2053360491991043,
0.28797245025634766,
-0.30351024866104126,
0.19582170248031616,
-0.2923230826854706,
-0.15716366469860077,
-0.28668224811553955,
0.26030147075653076,
0.25278860330581665,
0.019002415239810944,
-0.2047923356294632,
0.24754948914051056,
-0.1835203766822815,
-0.30078238248825073,
0.10867137461900711,
-0.06953892111778259,
0.16804620623588562,
0.15729030966758728,
0.3060736358165741,
0.5086443424224854,
-0.12639261782169342,
-0.2461177110671997,
0.22352921962738037,
0.5379690527915955,
-0.13905903697013855,
0.04690037667751312,
-0.22401750087738037,
0.05626169964671135,
0.3431705832481384,
0.12553443014621735,
0.49190083146095276,
-0.1794983297586441,
-0.43911248445510864,
0.5194436311721802,
0.11382937431335449,
-0.06278429180383682,
-0.18755988776683807,
0.01032112818211317,
-0.2073720544576645,
-0.22746050357818604,
0.11333637684583664,
0.29399168491363525,
0.23187170922756195,
-0.43017101287841797,
-0.10731430351734161,
0.44822919368743896,
0.22217705845832825,
-0.03201218694448471,
0.39895153045654297,
0.20362037420272827,
-0.07288029044866562,
0.3351423740386963,
0.3068631887435913,
0.21985894441604614,
0.5268709063529968,
-0.05817773565649986,
0.49225902557373047,
0.16629131138324738,
0.21167351305484772,
-0.22725403308868408,
-0.5121086239814758,
-0.2115657925605774,
0.4970753788948059,
0.24008214473724365,
-0.12194672226905823,
-0.29912957549095154,
0.2617674767971039,
0.2839813828468323,
-0.16225917637348175,
-0.013266745954751968,
0.1090702936053276,
-0.2722470760345459,
-0.12889574468135834,
-0.16766713559627533,
-0.14214643836021423,
0.0024208908434957266,
0.23541291058063507,
-0.2957063317298889,
-0.362026572227478,
-0.10987348854541779,
-0.01709054596722126,
-0.13449259102344513,
-0.4729759395122528,
0.3292239010334015,
0.1380201131105423,
-0.03846585378050804,
-0.2397850900888443,
0.3410392701625824,
-0.25830793380737305,
0.0637730211019516,
0.008056207560002804,
0.15921691060066223,
0.3800537586212158,
0.40693652629852295,
-0.044939637184143066,
-0.0394805371761322,
-0.2551724910736084,
0.12697960436344147,
-0.1580907106399536,
0.4713907241821289,
0.1255234032869339,
0.24458177387714386,
0.20401731133460999,
-0.07577499002218246,
-0.02736062929034233,
0.022505471482872963,
0.15251581370830536,
-0.39257898926734924,
-0.13442540168762207,
-0.028997348621487617,
0.12522822618484497,
-0.3083193600177765,
-0.18178462982177734,
0.12923602759838104,
-0.2639214098453522,
0.026808440685272217,
0.9157549738883972,
-0.333418071269989,
0.0808727815747261,
-0.1699114441871643,
0.02576308883726597,
-0.27199050784111023,
0.46416744589805603,
0.45303282141685486,
0.0959295704960823,
-0.4936908185482025,
-0.10087087005376816,
-0.423951119184494,
0.23931679129600525,
-0.41643011569976807,
0.26480352878570557,
-0.03226745128631592,
0.09655023366212845,
-0.03685090318322182,
0.08344227820634842,
-0.3513626456260681,
0.4076351225376129,
-0.36635950207710266,
0.02912043407559395,
-0.12372243404388428,
0.11585666239261627,
-0.14106012880802155,
0.15945395827293396,
-0.11524512618780136,
-0.4063184857368469,
0.343770295381546,
-0.2157747745513916,
-0.16884450614452362,
-0.13410739600658417,
0.28024330735206604,
0.13607704639434814,
-0.15173636376857758,
0.4600014388561249,
0.14068874716758728,
0.2341683954000473,
0.1425187885761261,
0.2970138490200043,
-0.03265426680445671,
0.15054155886173248,
-0.35526883602142334,
0.18383567035198212,
0.027948973700404167,
-0.0022602351382374763,
-0.1371673196554184,
0.23128558695316315,
-0.047079045325517654,
0.03804701194167137,
-0.037209175527095795,
-0.08088631182909012,
-0.1327139288187027,
-0.07464034110307693,
-0.11984360218048096,
0.15993358194828033,
0.04166349768638611,
0.3343161642551422,
-0.0387919582426548,
-0.03744685277342796,
-0.3385152220726013,
-0.22728480398654938,
0.2538478970527649,
-0.4144103527069092,
-0.2750648856163025,
-0.140679731965065,
0.04054662585258484,
0.6282324194908142,
-0.23903238773345947,
-0.5446513295173645,
0.08365822583436966,
0.5542650818824768,
0.09899698197841644,
-0.29149436950683594,
0.26585501432418823,
-0.1875571310520172,
0.06111451983451843,
-0.12373600155115128,
0.482739120721817,
-0.13630364835262299,
-0.28577306866645813,
0.07829401642084122,
-0.1773691177368164
] |
https://github.com/huggingface/datasets/issues/1825 | Datasets library not suitable for huge text datasets. | For information: it's now available in `datasets` 1.3.0.
The 2.0 is reserved for even cooler features ;) | Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions?? | 17 | Datasets library not suitable for huge text datasets.
Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions??
For information: it's now available in `datasets` 1.3.0.
The 2.0 is reserved for even cooler features ;) | [
-0.4345218241214752,
0.13323645293712616,
0.011771571822464466,
0.2648242115974426,
0.267735093832016,
0.020275993272662163,
0.07535015046596527,
0.36074575781822205,
-0.31799212098121643,
-0.06220643222332001,
0.03596840053796768,
0.05125747621059418,
-0.2549734115600586,
0.18891148269176483,
0.05212651193141937,
0.08395849913358688,
0.18551848828792572,
0.17251883447170258,
0.11441192030906677,
0.15796083211898804,
0.022779371589422226,
-0.14855366945266724,
-0.2536757290363312,
0.0014490525936707854,
-0.5004290342330933,
-0.24694135785102844,
0.001542232814244926,
-0.21716460585594177,
-0.44919610023498535,
-0.34040185809135437,
-0.17681485414505005,
0.19938592612743378,
0.5116477608680725,
0.46272727847099304,
-0.00012381772103253752,
-0.2813292145729065,
0.24677586555480957,
0.0012898837449029088,
-0.2723435163497925,
0.044750917702913284,
0.3876776397228241,
-0.3245377540588379,
-0.2008231282234192,
-0.17496083676815033,
0.16089855134487152,
-0.2847054898738861,
0.014890083111822605,
-0.0699787512421608,
0.09651950001716614,
0.049421604722738266,
0.07792703062295914,
0.09297915548086166,
0.018717840313911438,
0.13760724663734436,
0.12420613318681717,
0.034661486744880676,
-0.0822470486164093,
0.05376772582530975,
0.4505399763584137,
0.04975227639079094,
-0.15521372854709625,
0.1750815510749817,
-0.11661198735237122,
0.00952229555696249,
0.33914491534233093,
-0.11260969191789627,
-0.1405123621225357,
-0.18841135501861572,
0.22548805177211761,
0.2983859181404114,
0.514207124710083,
-0.42721474170684814,
-0.2893555164337158,
-0.5464208126068115,
-0.20440912246704102,
-0.3196329176425934,
-0.06693080067634583,
0.1782541424036026,
-0.013110625557601452,
0.2042057067155838,
-0.4558204114437103,
-0.4421232342720032,
-0.11685533076524734,
0.36539018154144287,
-0.2350144386291504,
0.14881281554698944,
-0.13685055077075958,
0.11416956037282944,
0.16591517627239227,
-0.21794506907463074,
0.11262664943933487,
-0.3288344442844391,
0.02191036194562912,
0.1951114386320114,
-0.3774073123931885,
-0.15292711555957794,
-0.20385801792144775,
-0.03593643009662628,
0.4822557866573334,
-0.01655140332877636,
-0.43327414989471436,
0.15300936996936798,
-0.13893169164657593,
0.029494309797883034,
0.345994234085083,
0.20498156547546387,
-0.1033097505569458,
0.2640487849712372,
0.19828681647777557,
-0.17529618740081787,
-0.04341211915016174,
-0.07846397161483765,
-0.5217926502227783,
-0.0583360381424427,
0.11536963284015656,
-0.46767187118530273,
-0.2794632017612457,
-0.170981302857399,
-0.0768820121884346,
0.08939997106790543,
-0.16610559821128845,
0.30554822087287903,
0.1728389412164688,
0.15236100554466248,
-0.10397756844758987,
0.08599183708429337,
-0.2191547006368637,
0.18378353118896484,
-0.09745936095714569,
-0.1802394539117813,
0.002247810596600175,
-0.10831572860479355,
-0.23472745716571808,
0.1755829006433487,
0.1531202346086502,
-0.04358988255262375,
0.1302110254764557,
-0.05764662101864815,
0.05760057643055916,
0.012180241756141186,
0.16979387402534485,
-0.3426535129547119,
-0.07270112633705139,
0.11544261872768402,
-0.023889219388365746,
0.36638882756233215,
-0.24787448346614838,
0.05429656803607941,
-0.2058062106370926,
0.3545786738395691,
-0.23993489146232605,
-0.36117640137672424,
-0.04575744643807411,
0.0719052404165268,
-0.3407801389694214,
0.020671861246228218,
-0.5490443706512451,
0.37618330121040344,
0.42634743452072144,
0.09058376401662827,
0.011854063719511032,
-0.11866907775402069,
-0.24796102941036224,
-0.016100917011499405,
0.1722043752670288,
0.1334882527589798,
-0.5778156518936157,
0.036607787013053894,
-0.06813937425613403,
0.11240992695093155,
0.303436279296875,
0.754521906375885,
-0.15124845504760742,
0.33041468262672424,
-0.09166643768548965,
0.44232091307640076,
0.14520207047462463,
0.1598956435918808,
-0.5134209990501404,
0.4223714768886566,
0.03712117671966553,
-0.16403032839298248,
-0.012878729030489922,
0.10754240304231644,
0.3807857036590576,
-0.13962073624134064,
0.18724612891674042,
0.3340222239494324,
-0.06456445902585983,
0.08486177027225494,
-0.2775012254714966,
-0.34383445978164673,
0.13026288151741028,
0.28808698058128357,
0.1969875991344452,
-0.2810755968093872,
-0.009794151410460472,
0.37301650643348694,
0.13292329013347626,
-0.15533673763275146,
0.3648218810558319,
0.13450974225997925,
0.19093632698059082,
0.1730596274137497,
-0.03488434478640556,
-0.23715002834796906,
0.14837926626205444,
0.07402962446212769,
0.10630214214324951,
-0.1766883283853531,
-0.00915678683668375,
-0.30779021978378296,
0.14404995739459991,
-0.024383841082453728,
0.03118748776614666,
0.1103275716304779,
-0.10445209592580795,
-0.21971571445465088,
-0.0854509025812149,
0.13519921898841858,
-0.10436396300792694,
-0.11915729939937592,
-0.31985411047935486,
0.13553985953330994,
-0.08921603858470917,
-0.0005724896909669042,
0.06296609342098236,
-0.13610732555389404,
0.04119165241718292,
0.22461149096488953,
-0.14764679968357086,
-0.13135896623134613,
0.021907875314354897,
0.18725985288619995,
0.01833164133131504,
-0.2357047200202942,
-0.2702256441116333,
0.5758534073829651,
0.2275516241788864,
0.048004940152168274,
0.20993468165397644,
-0.030942361801862717,
0.035299040377140045,
-0.09204371273517609,
0.04704192653298378,
0.28214508295059204,
0.10141997039318085,
0.11709041893482208,
0.034961119294166565,
-0.2804763615131378,
0.103620246052742,
-0.02234615571796894,
0.19375187158584595,
0.006490752566605806,
0.2591932415962219,
0.07921965420246124,
0.3156827390193939,
0.3179973065853119,
-0.18069075047969818,
-0.17457450926303864,
0.3581424355506897,
-0.3210415840148926,
0.21508516371250153,
0.42507338523864746,
-0.43669238686561584,
-0.3382960855960846,
0.0725770965218544,
-0.23500020802021027,
0.10562289506196976,
0.14274226129055023,
0.0731130838394165,
-0.04280871897935867,
0.3631473481655121,
-0.05253146216273308,
0.1752878576517105,
0.13171370327472687,
0.13527822494506836,
0.2091444730758667,
0.1257627010345459,
0.12989555299282074,
-0.15941233932971954,
-0.0640987977385521,
0.1919550746679306,
0.3366982936859131,
-0.10904011875391006,
0.050837039947509766,
-0.20874209702014923,
-0.3060903549194336,
0.00045094286906532943,
0.21167948842048645,
-0.16400404274463654,
0.04269293323159218,
0.12512513995170593,
0.043728187680244446,
0.13064929842948914,
0.054444555193185806,
0.12639166414737701,
0.369322806596756,
0.050385721027851105,
-0.3098163306713104,
0.1500760018825531,
-0.05457914248108864,
-0.4672503173351288,
-0.0370834618806839,
0.3112078011035919,
-0.3574157953262329,
0.28157567977905273,
0.20221096277236938,
0.05865035578608513,
-0.31880831718444824,
-0.4476562440395355,
0.021461058408021927,
0.13178683817386627,
0.20777226984500885,
-0.14104484021663666,
0.0467340350151062,
-0.19140005111694336,
0.16354800760746002,
-0.10141409933567047,
-0.106111079454422,
-0.0787280797958374,
0.06497254222631454,
-0.16451752185821533,
-0.1977962702512741,
0.12057198584079742,
-0.0024964071344584227,
-0.27043792605400085,
-0.1932477205991745,
0.22426418960094452,
-0.15646988153457642,
0.07225588709115982,
0.02761727385222912,
0.06438300013542175,
-0.025846228003501892,
-0.05708751082420349,
-0.14012748003005981,
0.051242951303720474,
-0.3130621314048767,
0.42596185207366943,
0.20224498212337494,
-0.19765304028987885,
-0.07767092436552048,
0.11611927300691605,
-0.09129896759986877,
0.35886380076408386,
-0.5269432663917542,
0.31146806478500366,
-0.1990623027086258,
0.19106915593147278,
-0.08568798005580902,
0.017710989341139793,
0.00939889345318079,
-0.1782577782869339,
0.10441412776708603,
0.1252228021621704,
-0.21862579882144928,
-0.2550842761993408,
-0.15666547417640686,
0.3327917754650116,
-0.03448320925235748,
0.31541240215301514,
0.4613990783691406,
0.5344964861869812,
-0.07024187594652176,
-0.15452663600444794,
0.3131113648414612,
0.17344368994235992,
0.2241770476102829,
-0.3325257897377014,
-0.08601225167512894,
0.26620954275131226,
-0.06262468546628952,
-0.11468570679426193,
0.47546836733818054,
0.1411811113357544,
-0.11461583524942398,
0.2510147988796234,
-0.35038650035858154,
-0.024832023307681084,
-0.06109967827796936,
0.17440129816532135,
-0.30042946338653564,
0.23431457579135895,
-0.02342054806649685,
-0.17322468757629395,
-0.02752031572163105,
-0.381279319524765,
-0.05800942704081535,
0.17669053375720978,
-0.029821263626217842,
0.2385103404521942,
-0.4791232645511627,
0.2534341514110565,
-0.34642353653907776,
0.17052140831947327,
-0.10046222805976868,
0.3617984652519226,
0.13577800989151,
0.18635419011116028,
0.21998845040798187,
0.021475359797477722,
0.5436990857124329,
0.12410245090723038,
-0.16323718428611755,
-0.1701989322900772,
-0.12547074258327484,
-0.20087121427059174,
0.05124944821000099,
-0.106446772813797,
0.2916579246520996,
0.45665159821510315,
0.478753000497818,
-0.36344921588897705,
-0.13947972655296326,
-0.2989519536495209,
0.5648917555809021,
-0.011685781180858612,
-0.2951665222644806,
-0.01168555486947298,
-0.1437799036502838,
-0.5237720012664795,
0.19012631475925446,
0.1533013880252838,
0.37185123562812805,
0.12376117706298828,
-0.09318911284208298,
-0.1831272542476654,
-0.09198492020368576,
0.32825303077697754,
-0.030057141557335854,
0.09135575592517853,
-0.14281979203224182,
0.23360449075698853,
-0.20974254608154297,
0.14488478004932404,
0.5053814649581909,
-0.03852934017777443,
0.14477723836898804,
-0.289925754070282,
0.00551574444398284,
0.06989850848913193,
0.38708505034446716,
-0.031457867473363876,
-0.14350970089435577,
0.3864055573940277,
-0.2510172426700592,
0.2598465383052826,
-0.193682461977005,
0.5484662055969238,
0.128287672996521,
0.05516676604747772,
-0.8614720702171326,
-0.33652248978614807,
0.23910187184810638,
0.22780576348304749,
-0.018453342840075493,
0.22788210213184357,
-0.18375426530838013,
-0.2924678921699524,
0.2764531075954437,
0.10327202081680298,
0.8179157972335815,
-0.45558100938796997,
0.324409157037735,
-0.40556326508522034,
0.34116455912590027,
0.53982013463974,
-0.5751266479492188,
-0.03653480112552643,
-0.39814209938049316,
0.13558661937713623,
0.12986664474010468,
0.006697157863527536,
0.040274396538734436,
0.41504013538360596,
0.07179701328277588,
0.27670392394065857,
0.11566278338432312,
0.1328900307416916,
0.008333896286785603,
0.6496938467025757,
-0.07788640260696411,
-0.3102952241897583,
-0.13483686745166779,
0.03700512275099754,
-0.19221583008766174,
-0.050562046468257904,
-0.22435392439365387,
0.10704069584608078,
0.11517389118671417,
0.060799941420555115,
-0.30091592669487,
-0.17050354182720184,
-0.11337652802467346,
0.12184150516986847,
-0.03183374181389809,
-0.10877358913421631,
0.5061591863632202,
-0.08415419608354568,
0.24614213407039642,
0.5565772652626038,
-0.17381885647773743,
0.12752693891525269,
-0.3588402569293976,
-0.127436563372612,
0.1747509241104126,
-0.249972864985466,
0.02644423395395279,
-0.01694532483816147,
0.09738649427890778,
-0.2636166214942932,
0.1535227745771408,
-0.07091575860977173,
-0.16016578674316406,
-0.08659868687391281,
0.5369495749473572,
-0.20563605427742004,
-0.18716077506542206,
-0.21344837546348572,
0.012140943668782711,
-0.06266713887453079,
0.010258122347295284,
0.19152608513832092,
-0.05729306861758232,
0.2991552948951721,
-0.013397014699876308,
-0.24190117418766022,
-0.14464499056339264,
0.1430329978466034,
0.06400150060653687,
-0.04269064590334892,
0.4207984209060669,
0.18296462297439575,
-0.14779077470302582,
-0.12789656221866608,
0.3998602330684662,
0.20367787778377533,
-0.10331854969263077,
0.18465229868888855,
0.20323507487773895,
0.02905733697116375,
-0.06014397740364075,
0.04956665635108948,
0.13748688995838165,
-0.49854686856269836,
-0.052676327526569366,
-0.21401888132095337,
-0.3960345983505249,
0.06683514267206192,
-0.06651571393013,
0.1478193998336792,
0.11989787220954895,
0.15610435605049133,
-0.1483900547027588,
0.07023156434297562,
-0.13346250355243683,
0.3090941309928894,
0.07083006203174591,
0.26126936078071594,
-0.2005297690629959,
0.0824507474899292,
-0.2894150912761688,
-0.05958540365099907,
-0.14077863097190857,
0.17343144118785858,
0.09071246534585953,
-0.1506279706954956,
-0.1572408825159073,
0.20405662059783936,
0.30150485038757324,
-0.2897495627403259,
0.1962042599916458,
-0.2798905670642853,
-0.1721051037311554,
-0.30137187242507935,
0.25625962018966675,
0.25458645820617676,
0.024784419685602188,
-0.2037380337715149,
0.21781250834465027,
-0.1880245804786682,
-0.31080523133277893,
0.11956267803907394,
-0.06318434327840805,
0.14131666719913483,
0.1413944959640503,
0.3235109746456146,
0.5331248641014099,
-0.11390045285224915,
-0.25036266446113586,
0.216642364859581,
0.5411873459815979,
-0.1625242829322815,
0.04645410552620888,
-0.19850397109985352,
0.056248731911182404,
0.3416447341442108,
0.12089972198009491,
0.4793935716152191,
-0.16099417209625244,
-0.44856688380241394,
0.5291863679885864,
0.10181189328432083,
-0.05792184919118881,
-0.18641088902950287,
-0.02048429846763611,
-0.18862299621105194,
-0.21632863581180573,
0.10320509225130081,
0.28991660475730896,
0.25100377202033997,
-0.43758946657180786,
-0.12486480921506882,
0.4320605397224426,
0.23991404473781586,
-0.024066155776381493,
0.42109957337379456,
0.23112685978412628,
-0.09215404093265533,
0.3365711271762848,
0.32323864102363586,
0.2409473955631256,
0.5528315305709839,
-0.04776834696531296,
0.526772141456604,
0.17541559040546417,
0.19595372676849365,
-0.19602809846401215,
-0.503600537776947,
-0.22269845008850098,
0.4708329439163208,
0.22832989692687988,
-0.1109243705868721,
-0.314510315656662,
0.2295248806476593,
0.2637503445148468,
-0.14775186777114868,
-0.0191180482506752,
0.11551639437675476,
-0.27041053771972656,
-0.1847074031829834,
-0.14434914290905,
-0.13648143410682678,
0.026638245210051537,
0.2635382115840912,
-0.28166255354881287,
-0.35918551683425903,
-0.10414047539234161,
-0.03355051577091217,
-0.08909524977207184,
-0.45429110527038574,
0.37713417410850525,
0.15308448672294617,
-0.030549176037311554,
-0.23759610950946808,
0.3415529131889343,
-0.25116419792175293,
0.06855810433626175,
0.01393343135714531,
0.16420723497867584,
0.3705231547355652,
0.3742658197879791,
-0.04299577325582504,
-0.043473388999700546,
-0.26299628615379333,
0.12463128566741943,
-0.16436102986335754,
0.46313533186912537,
0.11345691233873367,
0.24559608101844788,
0.21112534403800964,
-0.07804756611585617,
-0.015469118021428585,
0.01479493360966444,
0.12942340970039368,
-0.40318620204925537,
-0.1628546267747879,
-0.0139065096154809,
0.12175986170768738,
-0.2851450741291046,
-0.1575857549905777,
0.1719266176223755,
-0.24318985641002655,
0.006563561502844095,
0.9193087816238403,
-0.32520952820777893,
0.0808190181851387,
-0.16287361085414886,
0.024912068620324135,
-0.28392109274864197,
0.4645771086215973,
0.45191794633865356,
0.0823255404829979,
-0.4455365240573883,
-0.09147700667381287,
-0.4034665822982788,
0.223879873752594,
-0.4040195941925049,
0.2532671391963959,
-0.044952392578125,
0.10310902446508408,
-0.05480354651808739,
0.08098079264163971,
-0.3658025562763214,
0.4317953884601593,
-0.3566426932811737,
0.020106786862015724,
-0.07324772328138351,
0.09479246288537979,
-0.1340709626674652,
0.15322600305080414,
-0.11740763485431671,
-0.41358745098114014,
0.3353910744190216,
-0.23761190474033356,
-0.16863928735256195,
-0.12950734794139862,
0.2847558557987213,
0.15210799872875214,
-0.17142178118228912,
0.44866469502449036,
0.1417047679424286,
0.21210092306137085,
0.143633171916008,
0.28745773434638977,
-0.02339332550764084,
0.17063550651073456,
-0.34893327951431274,
0.17795807123184204,
0.005574717186391354,
-0.01665000431239605,
-0.1431226283311844,
0.24266250431537628,
-0.01861373893916607,
0.04697445407509804,
-0.060347992926836014,
-0.09169231355190277,
-0.12637145817279816,
-0.07897109538316727,
-0.15178292989730835,
0.15401987731456757,
0.0576653815805912,
0.34082671999931335,
-0.04826606065034866,
-0.06254690140485764,
-0.31056466698646545,
-0.2342226505279541,
0.22982211410999298,
-0.4213123321533203,
-0.26480981707572937,
-0.1801563799381256,
0.01543347630649805,
0.664201557636261,
-0.22019627690315247,
-0.5252724289894104,
0.10114308446645737,
0.5639672875404358,
0.09118105471134186,
-0.30916425585746765,
0.2561301589012146,
-0.18193289637565613,
0.0629255622625351,
-0.13536043465137482,
0.4806590974330902,
-0.149354487657547,
-0.2951605021953583,
0.0539432130753994,
-0.16822901368141174
] |
https://github.com/huggingface/datasets/issues/1825 | Datasets library not suitable for huge text datasets. | Hi @alexvaca0 , we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions?? | 35 | Datasets library not suitable for huge text datasets.
Hi,
I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training.
Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts).
Any suggestions??
Hi @alexvaca0 , we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | [
-0.4028153419494629,
0.07713953405618668,
0.008600398898124695,
0.3193156123161316,
0.3035769760608673,
0.02334943227469921,
0.030155831947922707,
0.3559311032295227,
-0.2499682754278183,
-0.024190565571188927,
0.03889091685414314,
0.10702212154865265,
-0.262981116771698,
0.11885114759206772,
0.034716300666332245,
0.10915117710828781,
0.21070396900177002,
0.17219869792461395,
0.10670340806245804,
0.1461048722267151,
0.003363616531714797,
-0.0768989771604538,
-0.23595571517944336,
-0.04422459751367569,
-0.4917673170566559,
-0.24679675698280334,
-0.005254682619124651,
-0.22569076716899872,
-0.4161317050457001,
-0.31081026792526245,
-0.14630171656608582,
0.20579233765602112,
0.4900789260864258,
0.49806496500968933,
-0.0001231332862516865,
-0.26994627714157104,
0.23637239634990692,
0.01864411123096943,
-0.31871968507766724,
0.05088968202471733,
0.46931979060173035,
-0.3577679693698883,
-0.20286042988300323,
-0.20813383162021637,
0.16594184935092926,
-0.21710333228111267,
-0.001425960217602551,
-0.118315689265728,
0.10756463557481766,
0.05412048101425171,
0.09700201451778412,
0.13032421469688416,
0.010550524108111858,
0.1590503603219986,
0.10155472904443741,
0.09348196536302567,
-0.09404993057250977,
0.059625983238220215,
0.4631814658641815,
0.08984286338090897,
-0.16768434643745422,
0.22011680901050568,
-0.1535092443227768,
0.027600154280662537,
0.36304566264152527,
-0.08729971200227737,
-0.09161541610956192,
-0.16631467640399933,
0.27466925978660583,
0.2592947483062744,
0.5688685774803162,
-0.4413164556026459,
-0.26121529936790466,
-0.5455199480056763,
-0.22192655503749847,
-0.27224504947662354,
0.004418435972183943,
0.1677699238061905,
-0.037592023611068726,
0.1915649175643921,
-0.4412502646446228,
-0.47121065855026245,
-0.08853094279766083,
0.3492920696735382,
-0.21838808059692383,
0.07992874830961227,
-0.16633427143096924,
0.10266630351543427,
0.23827147483825684,
-0.24183720350265503,
0.10281217098236084,
-0.33385053277015686,
0.0022661564871668816,
0.16445785760879517,
-0.3736111521720886,
-0.14782540500164032,
-0.21424883604049683,
-0.057693853974342346,
0.42524635791778564,
0.0029208767227828503,
-0.41507187485694885,
0.14445196092128754,
-0.12379907071590424,
0.036309074610471725,
0.3516075313091278,
0.2578933537006378,
-0.09909699857234955,
0.2503682076931,
0.197977676987648,
-0.17370416224002838,
-0.016000526025891304,
-0.11054873466491699,
-0.5208442807197571,
-0.06629973649978638,
0.13767226040363312,
-0.5249603986740112,
-0.26452380418777466,
-0.17633385956287384,
-0.08627168834209442,
0.07800445705652237,
-0.09804976731538773,
0.24598337709903717,
0.18343041837215424,
0.18184703588485718,
-0.07344263792037964,
0.12008409947156906,
-0.1878759115934372,
0.16947074234485626,
-0.12261687219142914,
-0.16767048835754395,
0.0043568918481469154,
-0.10667043924331665,
-0.22870616614818573,
0.11159468442201614,
0.17005789279937744,
-0.012979959137737751,
0.1193297728896141,
-0.06049367040395737,
0.03899728134274483,
0.009637773036956787,
0.1425359696149826,
-0.37707504630088806,
-0.0747799202799797,
0.12505823373794556,
-0.016247572377324104,
0.38194140791893005,
-0.24520128965377808,
0.04385826736688614,
-0.23105962574481964,
0.3684506416320801,
-0.2714807689189911,
-0.3721603453159332,
-0.11704107373952866,
0.07285289466381073,
-0.32597067952156067,
-0.005312757566571236,
-0.6098570227622986,
0.3593027889728546,
0.41545531153678894,
0.08783823996782303,
-0.054028190672397614,
-0.102754607796669,
-0.24953719973564148,
-0.051295503973960876,
0.16333837807178497,
0.1536833494901657,
-0.5558543801307678,
0.04240526258945465,
-0.10500553250312805,
0.13812600076198578,
0.34486839175224304,
0.781844973564148,
-0.15406881272792816,
0.34431740641593933,
-0.08373144268989563,
0.3829893171787262,
0.13972483575344086,
0.08650307357311249,
-0.5390255451202393,
0.4260479211807251,
0.08055586367845535,
-0.14692988991737366,
0.016578568145632744,
0.10894706100225449,
0.35082438588142395,
-0.1401630938053131,
0.1549430787563324,
0.31973665952682495,
-0.0168228168040514,
0.09553813189268112,
-0.34928008913993835,
-0.31668782234191895,
0.12138758599758148,
0.30608057975769043,
0.16664321720600128,
-0.3364425301551819,
-0.026738012209534645,
0.37385523319244385,
0.15008357167243958,
-0.12572868168354034,
0.34512993693351746,
0.1695324331521988,
0.24980486929416656,
0.17972350120544434,
-0.003175070509314537,
-0.21268726885318756,
0.1286490112543106,
0.09079808741807938,
0.16976360976696014,
-0.19139984250068665,
-0.027545126155018806,
-0.2772669792175293,
0.14925897121429443,
-0.016702426597476006,
0.019644955173134804,
0.1086307242512703,
-0.08331727981567383,
-0.21049568057060242,
-0.057819463312625885,
0.1369720846414566,
-0.06656879931688309,
-0.1515645831823349,
-0.3148001730442047,
0.14000724256038666,
-0.06456688791513443,
0.023590002208948135,
0.05243024230003357,
-0.11672324687242508,
0.018335072323679924,
0.20916569232940674,
-0.16726796329021454,
-0.13639505207538605,
0.012123357504606247,
0.19489876925945282,
0.015176698565483093,
-0.21381130814552307,
-0.19990040361881256,
0.5545611381530762,
0.23319686949253082,
0.059115905314683914,
0.2807888388633728,
-0.002175548579543829,
0.05380599573254585,
-0.0984087884426117,
0.003217053133994341,
0.21292619407176971,
0.0822623148560524,
0.15097986161708832,
-0.012264852412045002,
-0.26219862699508667,
0.1246827095746994,
0.018197428435087204,
0.2300262302160263,
0.01793445460498333,
0.26788243651390076,
0.06905905157327652,
0.32527944445610046,
0.31911057233810425,
-0.14394943416118622,
-0.15288282930850983,
0.3700924217700958,
-0.3132963478565216,
0.21278958022594452,
0.4723605215549469,
-0.4098827540874481,
-0.35317835211753845,
0.07248292863368988,
-0.17159421741962433,
0.14189451932907104,
0.15436457097530365,
0.05799087509512901,
-0.0924888327717781,
0.38677674531936646,
-0.04526614025235176,
0.20552054047584534,
0.1396351456642151,
0.11169085651636124,
0.17768052220344543,
0.13021093606948853,
0.11578690260648727,
-0.16113123297691345,
-0.06543878465890884,
0.17197388410568237,
0.3680223524570465,
-0.11275464296340942,
0.039666615426540375,
-0.2015714794397354,
-0.2762777805328369,
0.011957929469645023,
0.22388695180416107,
-0.15219777822494507,
0.012701866216957569,
0.09252229332923889,
0.04160203039646149,
0.14379362761974335,
0.07407322525978088,
0.20895300805568695,
0.329238623380661,
0.008560107089579105,
-0.30770638585090637,
0.11536011844873428,
-0.03285884112119675,
-0.49638864398002625,
-0.028309030458331108,
0.36304232478141785,
-0.3414943516254425,
0.2948133945465088,
0.15391479432582855,
0.07663311809301376,
-0.3204393982887268,
-0.403329998254776,
-0.0133968535810709,
0.10266370326280594,
0.22246183454990387,
-0.15168151259422302,
0.07971452176570892,
-0.2505561411380768,
0.180644690990448,
-0.06579838693141937,
-0.1377866119146347,
-0.057444751262664795,
0.06796122342348099,
-0.15129733085632324,
-0.2519558072090149,
0.09811601042747498,
-0.018010005354881287,
-0.3014726936817169,
-0.17827460169792175,
0.23983915150165558,
-0.15044376254081726,
0.11317746341228485,
0.014204274863004684,
0.07040726393461227,
-0.016082417219877243,
-0.057249292731285095,
-0.13295938074588776,
0.03183545544743538,
-0.3583616018295288,
0.4102056622505188,
0.25234508514404297,
-0.1754554957151413,
-0.0017283125780522823,
0.15104317665100098,
-0.08669435977935791,
0.2985334098339081,
-0.5361641049385071,
0.2482324242591858,
-0.22713206708431244,
0.1707010269165039,
-0.09893692284822464,
0.0939537063241005,
0.008523192256689072,
-0.1408993899822235,
0.11263749748468399,
0.13575239479541779,
-0.23776432871818542,
-0.24940404295921326,
-0.12992729246616364,
0.325356125831604,
-0.03926318883895874,
0.3188127875328064,
0.507432222366333,
0.4777012765407562,
-0.07447490841150284,
-0.11316327750682831,
0.3097050189971924,
0.1841125786304474,
0.24321073293685913,
-0.3235909938812256,
-0.11376466602087021,
0.25416502356529236,
-0.0705375224351883,
-0.13443471491336823,
0.45632219314575195,
0.18187279999256134,
-0.10354927182197571,
0.2594856321811676,
-0.35493627190589905,
-0.04149303212761879,
-0.05831559747457504,
0.20229187607765198,
-0.24576251208782196,
0.20871061086654663,
-0.016627028584480286,
-0.16092142462730408,
-0.03181205689907074,
-0.3627416789531708,
-0.05476443096995354,
0.1677931398153305,
-0.011003497987985611,
0.22179274260997772,
-0.47648581862449646,
0.2394002079963684,
-0.39927202463150024,
0.19842728972434998,
-0.17302720248699188,
0.3066083788871765,
0.14190642535686493,
0.21146947145462036,
0.25955235958099365,
0.017400335520505905,
0.5492849349975586,
0.15288721024990082,
-0.14753395318984985,
-0.16989773511886597,
-0.14218738675117493,
-0.257924348115921,
0.05508584901690483,
-0.1505860686302185,
0.27999451756477356,
0.43575942516326904,
0.5038672089576721,
-0.36474159359931946,
-0.2012859731912613,
-0.3397354781627655,
0.5800449848175049,
-0.04805615544319153,
-0.29071611166000366,
-0.026797208935022354,
-0.21803735196590424,
-0.5310124158859253,
0.17500187456607819,
0.18727333843708038,
0.3673219680786133,
0.1741112768650055,
-0.058279141783714294,
-0.16146616637706757,
-0.07038905471563339,
0.3420443534851074,
-0.046439412981271744,
0.18441586196422577,
-0.1968510001897812,
0.23350739479064941,
-0.21284563839435577,
0.11891023814678192,
0.5117981433868408,
-0.042406704276800156,
0.0731491819024086,
-0.20603549480438232,
-0.003742661327123642,
0.050043534487485886,
0.3726009130477905,
-0.03304770961403847,
-0.14935633540153503,
0.3144880533218384,
-0.29595354199409485,
0.2798679769039154,
-0.21720951795578003,
0.4888460636138916,
0.15721489489078522,
0.09786760807037354,
-0.7616375088691711,
-0.36319252848625183,
0.23610132932662964,
0.24650448560714722,
-0.022233182564377785,
0.19518904387950897,
-0.15371428430080414,
-0.28622180223464966,
0.300418496131897,
0.11055582016706467,
0.8260044455528259,
-0.4686470329761505,
0.2963405251502991,
-0.3631173372268677,
0.31059199571609497,
0.5010313391685486,
-0.6091918349266052,
-0.03217826411128044,
-0.3963596522808075,
0.13955490291118622,
0.1546202152967453,
0.008651706390082836,
0.04584331810474396,
0.4068329632282257,
0.039877720177173615,
0.3078385889530182,
0.10454601049423218,
0.09896858781576157,
-0.013291673734784126,
0.6598162651062012,
-0.10081665962934494,
-0.3176690638065338,
-0.15282268822193146,
0.06033336743712425,
-0.22921474277973175,
-0.04829304665327072,
-0.19042615592479706,
0.09848091751337051,
0.11047636717557907,
0.04459403082728386,
-0.3024243414402008,
-0.21831171214580536,
-0.10782260447740555,
0.14032115042209625,
-0.030980201438069344,
-0.09606673568487167,
0.49862369894981384,
-0.002138440264388919,
0.20628216862678528,
0.5608211755752563,
-0.16030250489711761,
0.157355397939682,
-0.3864065110683441,
-0.08734679967164993,
0.18494683504104614,
-0.19999846816062927,
-0.04105250909924507,
-0.056788451969623566,
0.09583809226751328,
-0.3077462911605835,
0.11384425312280655,
-0.06882545351982117,
-0.15528973937034607,
-0.08213960379362106,
0.49450644850730896,
-0.1761370152235031,
-0.23967020213603973,
-0.2425161600112915,
-0.023989515379071236,
-0.05906771495938301,
0.026395179331302643,
0.2346215397119522,
-0.07679519802331924,
0.3747396171092987,
-0.030220163986086845,
-0.2205342948436737,
-0.12492312490940094,
0.13245950639247894,
0.08724083006381989,
-0.03430035337805748,
0.407870888710022,
0.1404268443584442,
-0.1649448573589325,
-0.15308363735675812,
0.408203661441803,
0.12470773607492447,
-0.1289006769657135,
0.21056774258613586,
0.23442420363426208,
0.008898935280740261,
-0.050161026418209076,
0.003025470767170191,
0.17521551251411438,
-0.5009047985076904,
-0.09188422560691833,
-0.18051612377166748,
-0.3987695574760437,
0.07365698367357254,
-0.04599374160170555,
0.1356543004512787,
0.12003778666257858,
0.0612381175160408,
-0.13960298895835876,
0.06080171838402748,
-0.1573094129562378,
0.34859615564346313,
0.07973501086235046,
0.2396014779806137,
-0.22430473566055298,
0.03984390199184418,
-0.2172420173883438,
-0.0972270593047142,
-0.1267705261707306,
0.13852077722549438,
0.09394024312496185,
-0.16506725549697876,
-0.1413876712322235,
0.1879233419895172,
0.2528236508369446,
-0.2673342525959015,
0.18794633448123932,
-0.2861519455909729,
-0.15805388987064362,
-0.3490872085094452,
0.2193031907081604,
0.25476983189582825,
0.022253824397921562,
-0.18584135174751282,
0.21628230810165405,
-0.2088618278503418,
-0.2859119176864624,
0.11250478029251099,
-0.06780432164669037,
0.13099424540996552,
0.14808189868927002,
0.31666678190231323,
0.5489239692687988,
-0.13662756979465485,
-0.2980538606643677,
0.1985020637512207,
0.5358867049217224,
-0.11976878345012665,
0.034727536141872406,
-0.20658934116363525,
0.05749787762761116,
0.37481924891471863,
0.1081884428858757,
0.48121562600135803,
-0.16833366453647614,
-0.44681546092033386,
0.4947702884674072,
0.12897446751594543,
-0.0571262389421463,
-0.24768848717212677,
0.0029825863894075155,
-0.18063515424728394,
-0.2533295750617981,
0.08099404722452164,
0.3137275278568268,
0.20142099261283875,
-0.4066844582557678,
-0.10126428306102753,
0.5237574577331543,
0.16533219814300537,
0.002921506529673934,
0.42724472284317017,
0.22437089681625366,
-0.11267393827438354,
0.3166331946849823,
0.2939411997795105,
0.23376865684986115,
0.5904654860496521,
-0.07540109753608704,
0.5070322155952454,
0.2195574939250946,
0.1999548375606537,
-0.25414329767227173,
-0.4688103497028351,
-0.21258823573589325,
0.4607968032360077,
0.20106469094753265,
-0.10692362487316132,
-0.3281903862953186,
0.23881018161773682,
0.2232537567615509,
-0.16921064257621765,
-0.05010691285133362,
0.07953312993049622,
-0.2972472012042999,
-0.19670183956623077,
-0.04977377876639366,
-0.09385392814874649,
0.03154924139380455,
0.23995442688465118,
-0.29300063848495483,
-0.39100325107574463,
-0.14380516111850739,
-0.009445177391171455,
-0.1031278669834137,
-0.39924731850624084,
0.3458119332790375,
0.1379222422838211,
-0.033060472458601,
-0.22056643664836884,
0.3262318968772888,
-0.24200528860092163,
0.07786623388528824,
-0.03038410283625126,
0.14177583158016205,
0.3925178647041321,
0.36106395721435547,
-0.042269133031368256,
-0.048545338213443756,
-0.27114495635032654,
0.14921967685222626,
-0.18286755681037903,
0.4642488658428192,
0.061044298112392426,
0.275778591632843,
0.1816595494747162,
-0.05596295744180679,
-0.03373553231358528,
-0.02688479796051979,
0.12356916815042496,
-0.3364807367324829,
-0.14848549664020538,
-0.021715544164180756,
0.08024126291275024,
-0.2911404073238373,
-0.14841905236244202,
0.149528369307518,
-0.24760903418064117,
-0.035649389028549194,
0.8947808146476746,
-0.29397374391555786,
0.07426193356513977,
-0.15044155716896057,
0.03623662889003754,
-0.2652699053287506,
0.4319395422935486,
0.4181509017944336,
0.004571247845888138,
-0.47419098019599915,
-0.09209872037172318,
-0.4654783308506012,
0.15547913312911987,
-0.3860727846622467,
0.25828179717063904,
-0.003884613746777177,
0.10885906219482422,
-0.043305326253175735,
0.04178774356842041,
-0.35366812348365784,
0.4079422056674957,
-0.33832690119743347,
-0.012623979710042477,
-0.11600936204195023,
0.13264372944831848,
-0.1304856836795807,
0.14579182863235474,
-0.0697082057595253,
-0.4247712790966034,
0.3027365207672119,
-0.22064539790153503,
-0.16164466738700867,
-0.13892215490341187,
0.3290126919746399,
0.13594739139080048,
-0.08470761775970459,
0.43300390243530273,
0.14649063348770142,
0.19335031509399414,
0.14409306645393372,
0.2300015091896057,
-0.01018748339265585,
0.1664082109928131,
-0.3035309910774231,
0.16409704089164734,
0.013509278185665607,
0.03175094351172447,
-0.1838487833738327,
0.2569763958454132,
-0.03700001537799835,
0.06747859716415405,
-0.06181761249899864,
-0.07447830587625504,
-0.11719738692045212,
-0.07237488776445389,
-0.1005486324429512,
0.15523482859134674,
0.06508871912956238,
0.32757630944252014,
-0.03248219192028046,
-0.059436727315187454,
-0.3826102912425995,
-0.22084222733974457,
0.2281024307012558,
-0.36163032054901123,
-0.2914257347583771,
-0.1502733826637268,
0.042075686156749725,
0.6636847853660583,
-0.19472180306911469,
-0.5574443340301514,
0.09418972581624985,
0.5367166996002197,
0.09903442859649658,
-0.3179398477077484,
0.2728792428970337,
-0.17798425257205963,
0.05763906240463257,
-0.08851739764213562,
0.508289098739624,
-0.1583695113658905,
-0.30042925477027893,
0.06396468728780746,
-0.1544063687324524
] |
https://github.com/huggingface/datasets/issues/1821 | Provide better exception message when one of many files results in an exception | Hi!
Thank you for reporting this issue. I agree that the information about the exception should be more clear and explicit.
I could take on this issue.
On the meantime, as you can see from the exception stack trace, HF Datasets uses pandas to read the CSV files. You can pass arguments to `pandas.read_csv` by passing additional keyword arguments to `load_dataset`. For example, you may find useful this argument:
- `error_bad_lines` : bool, default True
Lines with too many fields (e.g. a csv line with too many commas) will by default cause an exception to be raised, and no DataFrame will be returned. If False, then these “bad lines” will be dropped from the DataFrame that is returned.
You could try:
```python
datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files), error_bad_lines=False)
```
| I find when I process many files, i.e.
```
train_files = glob.glob('rain*.csv')
validation_files = glob.glob(validation*.csv')
datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files))
```
I sometimes encounter an error due to one of the files being misformed (i.e. no data, or a comma in a field that isn't quoted, etc).
For example, this is the tail of an exception which I suspect is due to a stray comma.
> File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
> File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
> File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
> File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
> File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
> pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 559, saw 3
It would be nice if the exception trace contained the name of the file being processed (I have 250 separate files!) | 129 | Provide better exception message when one of many files results in an exception
I find when I process many files, i.e.
```
train_files = glob.glob('rain*.csv')
validation_files = glob.glob(validation*.csv')
datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files))
```
I sometimes encounter an error due to one of the files being misformed (i.e. no data, or a comma in a field that isn't quoted, etc).
For example, this is the tail of an exception which I suspect is due to a stray comma.
> File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
> File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
> File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
> File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
> File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
> pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 559, saw 3
It would be nice if the exception trace contained the name of the file being processed (I have 250 separate files!)
Hi!
Thank you for reporting this issue. I agree that the information about the exception should be more clear and explicit.
I could take on this issue.
On the meantime, as you can see from the exception stack trace, HF Datasets uses pandas to read the CSV files. You can pass arguments to `pandas.read_csv` by passing additional keyword arguments to `load_dataset`. For example, you may find useful this argument:
- `error_bad_lines` : bool, default True
Lines with too many fields (e.g. a csv line with too many commas) will by default cause an exception to be raised, and no DataFrame will be returned. If False, then these “bad lines” will be dropped from the DataFrame that is returned.
You could try:
```python
datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files), error_bad_lines=False)
```
| [
-0.1087331548333168,
-0.41903072595596313,
0.007515584118664265,
0.2815205454826355,
0.18453562259674072,
0.16356299817562103,
0.14092230796813965,
0.39342933893203735,
0.22628797590732574,
0.28828540444374084,
0.2727562189102173,
-0.2174748182296753,
-0.05892053619027138,
-0.27146849036216736,
-0.24078451097011566,
-0.16196773946285248,
0.08607454597949982,
0.12357845902442932,
0.2567388713359833,
-0.04077277332544327,
-0.04355785995721817,
0.17293213307857513,
0.11452475935220718,
0.25118160247802734,
-0.4897432327270508,
-0.27691650390625,
-0.31725218892097473,
0.3817557096481323,
0.21667078137397766,
-0.5677110552787781,
0.00015070354857016355,
0.031057605519890785,
0.1003032922744751,
0.5251941680908203,
-0.00011578619159990922,
-0.1504172533750534,
0.15018664300441742,
0.027188090607523918,
-0.37788471579551697,
-0.11167462915182114,
-0.1856665164232254,
-0.6877270340919495,
-0.02415618859231472,
-0.2813297510147095,
0.35808947682380676,
-0.03667069599032402,
0.24455256760120392,
-0.1590946912765503,
0.37615567445755005,
0.3548000752925873,
0.09479537606239319,
-0.1653122752904892,
0.25828275084495544,
-0.002304492983967066,
0.34243860840797424,
0.14315520226955414,
0.06695347279310226,
0.264577180147171,
0.31794968247413635,
-0.42845311760902405,
-0.2257968634366989,
0.06724691390991211,
-0.21005959808826447,
0.06048886105418205,
0.07222577184438705,
0.054776985198259354,
0.37658077478408813,
-0.17145615816116333,
-0.2216401845216751,
0.4012446403503418,
0.20462436974048615,
-0.14465130865573883,
-0.5563563704490662,
-0.6639553308486938,
0.18680228292942047,
-0.29906684160232544,
-0.09561077505350113,
0.3052096664905548,
-0.2246571034193039,
0.11646773666143417,
0.34119904041290283,
-0.15647150576114655,
-0.36960166692733765,
-0.06565026938915253,
-0.09434488415718079,
-0.17745140194892883,
0.11633313447237015,
-0.0665726289153099,
0.0795389786362648,
-0.03010190650820732,
-0.2295915186405182,
-0.024400930851697922,
-0.14052405953407288,
-0.06595680117607117,
-0.5154396295547485,
-0.06112376227974892,
0.13987308740615845,
-0.5946632623672485,
0.2344193160533905,
-0.3872506320476532,
0.34230872988700867,
0.126807302236557,
-0.08760949224233627,
0.3240608274936676,
0.36730456352233887,
-0.1802644580602646,
0.044650983065366745,
-0.07358944416046143,
0.45881789922714233,
0.09755611419677734,
-0.12863804399967194,
-0.17862555384635925,
0.058048080652952194,
-0.2865337133407593,
0.013182462193071842,
0.49159011244773865,
0.09726978838443756,
-0.2422265261411667,
-0.5625765919685364,
0.17404597997665405,
-0.2998228371143341,
-0.1295001357793808,
-0.10190767049789429,
0.38631126284599304,
-0.14914041757583618,
0.2941471040248871,
-0.07184094190597534,
0.07430752366781235,
0.10585831105709076,
-0.3490167558193207,
0.019002636894583702,
0.0955064594745636,
-0.13098923861980438,
0.19719785451889038,
-0.10667906701564789,
0.04265328496694565,
-0.10532808303833008,
0.2125280648469925,
0.16128842532634735,
-0.19581277668476105,
-0.02666661888360977,
-0.42236536741256714,
-0.012304549105465412,
0.13475532829761505,
0.03608686104416847,
0.2787172496318817,
0.11800738424062729,
-0.1997920274734497,
-0.015529709868133068,
0.03909255191683769,
-0.5052162408828735,
-0.4055267870426178,
-0.15163573622703552,
-0.019063938409090042,
0.2258601039648056,
0.20260798931121826,
-0.11845933645963669,
0.25434941053390503,
-0.06530154496431351,
-0.11490337550640106,
-0.09611755609512329,
-0.11684923619031906,
0.25913089513778687,
-0.3146846890449524,
0.07447239011526108,
0.5779364109039307,
-0.36686989665031433,
0.28352561593055725,
-0.15324930846691132,
0.007168032694607973,
0.3014097511768341,
0.5016701817512512,
-0.2213498204946518,
0.3920571208000183,
-0.30437523126602173,
0.22149130702018738,
0.021441806107759476,
-0.24103952944278717,
0.06961266696453094,
0.5922530293464661,
-0.09950804710388184,
0.33846575021743774,
0.4496503174304962,
-0.05482608452439308,
0.029931794852018356,
-0.13199815154075623,
0.2314150333404541,
0.10583342611789703,
-0.21015644073486328,
0.11930984258651733,
-0.13838671147823334,
-0.016488416120409966,
0.05863993242383003,
-0.08800415694713593,
-0.045793093740940094,
-0.1698717474937439,
0.32144564390182495,
-0.17177942395210266,
0.6836055517196655,
-0.20084267854690552,
-0.19860364496707916,
0.32708024978637695,
0.3706165850162506,
0.18016843497753143,
-0.33657020330429077,
0.10813964903354645,
-0.14339308440685272,
-0.05629429966211319,
-0.09564494341611862,
-0.04063088074326515,
-0.3002385199069977,
-0.3844313323497772,
0.04820872098207474,
-0.1880551427602768,
0.1139165386557579,
0.042136989533901215,
0.0909382551908493,
0.11649562418460846,
-0.2879990041255951,
-0.11917239427566528,
0.12674425542354584,
0.4215732514858246,
-0.33113399147987366,
0.22091099619865417,
0.20748555660247803,
0.040895186364650726,
-0.1284809559583664,
-0.09508052468299866,
0.19662900269031525,
0.010517951101064682,
0.3892311453819275,
-0.2385660856962204,
-0.04539071023464203,
0.43327009677886963,
0.08576734364032745,
-0.06951316446065903,
-0.005843909922987223,
0.00813661515712738,
0.16192348301410675,
0.15542663633823395,
-0.2069428712129593,
-0.10828886181116104,
-0.20729748904705048,
0.015207593329250813,
-0.16005073487758636,
0.1527828425168991,
0.1803385615348816,
0.18122203648090363,
0.13556097447872162,
0.06013443320989609,
0.19992122054100037,
0.08419661968946457,
0.23854783177375793,
-0.018099918961524963,
0.04095643758773804,
-0.18810021877288818,
-0.12259633839130402,
-0.08142095804214478,
-0.5105940699577332,
-0.06674084067344666,
0.39190417528152466,
-0.03597698360681534,
0.10422865301370621,
0.364450603723526,
0.26093852519989014,
0.045089829713106155,
0.4243878722190857,
0.20095975697040558,
0.30291733145713806,
0.2737499177455902,
-0.16683389246463776,
-0.1221471056342125,
-0.24034665524959564,
-0.05303315818309784,
0.1558333933353424,
0.2600560188293457,
-0.07535213977098465,
0.28113922476768494,
-0.09132423996925354,
0.17306025326251984,
-0.001068448880687356,
-0.5670698881149292,
-0.004957514815032482,
0.19335052371025085,
-0.41359248757362366,
0.11676102131605148,
-0.3286726772785187,
-0.45252352952957153,
-0.3685522973537445,
0.014199296943843365,
-0.10776194930076599,
-0.288392037153244,
-0.008144263178110123,
0.10772217065095901,
-0.17181751132011414,
-0.08190204948186874,
0.02991567552089691,
0.16885609924793243,
0.03493160009384155,
0.2562251687049866,
-0.0761336013674736,
0.10026303678750992,
-0.11777213960886002,
-0.13308370113372803,
0.3697405159473419,
-0.139603391289711,
0.005186215043067932,
-0.009829158894717693,
-0.2386256754398346,
-0.3681986629962921,
0.0867849811911583,
0.01944711059331894,
-0.026784764602780342,
-0.1194075345993042,
0.2449994534254074,
0.3923150599002838,
-0.12224215269088745,
-0.5848968625068665,
0.1295442283153534,
0.01195652037858963,
0.01883777789771557,
0.01640721596777439,
0.15677382051944733,
0.04390086233615875,
-0.03458515182137489,
-0.12335413694381714,
-0.1896684318780899,
-0.42946121096611023,
0.1302320659160614,
-0.4879538118839264,
0.3233160078525543,
0.2519042193889618,
0.22060775756835938,
0.11078861355781555,
-0.05915544927120209,
0.3506518006324768,
0.2963024973869324,
-0.26895615458488464,
0.10747770965099335,
-0.14036159217357635,
-0.12888199090957642,
0.012332472018897533,
0.05996984243392944,
-0.16712117195129395,
0.15417194366455078,
-0.48592135310173035,
-0.274421751499176,
-0.0720594972372055,
-0.08106881380081177,
-0.179081529378891,
0.042177192866802216,
-0.0532371811568737,
0.042529866099357605,
-0.13845418393611908,
0.15401262044906616,
-0.05461461842060089,
-0.08606204390525818,
0.08191997557878494,
0.5511022806167603,
-0.18328829109668732,
0.3804513216018677,
0.25425949692726135,
0.43710270524024963,
0.07995831221342087,
0.23485319316387177,
0.3483046293258667,
0.1514681577682495,
0.22430779039859772,
0.41641607880592346,
-0.08178777992725372,
0.06724726408720016,
-0.416061133146286,
-0.1437940150499344,
0.06334774941205978,
-0.06927495449781418,
0.03549415245652199,
0.08474887162446976,
-0.15078386664390564,
-0.3204997777938843,
-0.4465424716472626,
0.2643260955810547,
-0.3387427031993866,
0.09583480656147003,
-0.1978263407945633,
-0.22514505684375763,
0.15198877453804016,
0.18213540315628052,
0.19942745566368103,
0.3629794716835022,
0.4580833315849304,
-0.032093629240989685,
0.404934287071228,
-0.4784295856952667,
-0.2203938513994217,
0.27588167786598206,
0.1289043426513672,
0.41577237844467163,
-0.2298942655324936,
0.22357042133808136,
-0.13019931316375732,
0.018821468576788902,
0.8039576411247253,
-0.26204603910446167,
-0.32991817593574524,
-0.01543098408728838,
0.06815443187952042,
0.13365043699741364,
-0.15782791376113892,
-0.1799951195716858,
0.4455319046974182,
0.2653977572917938,
0.3116162419319153,
-0.4177495837211609,
-0.2524327337741852,
-0.058432646095752716,
0.43647685647010803,
-0.018525227904319763,
0.04299124702811241,
-0.09980317205190659,
0.010229283943772316,
-0.2890789210796356,
0.23860624432563782,
0.2925157845020294,
-0.013691711239516735,
-0.0169364046305418,
-0.20780256390571594,
-0.007667694706469774,
-0.047965485602617264,
0.43198007345199585,
0.10462170839309692,
0.12748299539089203,
-0.3237045407295227,
-0.08900480717420578,
-0.051363639533519745,
0.42598456144332886,
0.8350527286529541,
0.2568826675415039,
-0.4463808536529541,
-0.4004332721233368,
-0.026700688526034355,
-0.11829228699207306,
0.6949505805969238,
0.5460377931594849,
0.001148376613855362,
0.34981319308280945,
-0.20617136359214783,
0.16298100352287292,
-0.0017576732207089663,
0.24050097167491913,
0.44198518991470337,
0.24513892829418182,
-0.527165412902832,
-0.27770471572875977,
-0.014318989589810371,
0.272855669260025,
-0.1527777910232544,
0.24881963431835175,
0.2822423577308655,
-0.3482765257358551,
0.4481819272041321,
-0.21800528466701508,
0.9202815294265747,
-0.10810015350580215,
0.17698435485363007,
-0.23346637189388275,
-0.23552824556827545,
0.45406514406204224,
-0.41268500685691833,
0.24603793025016785,
-0.3492017686367035,
-0.47421324253082275,
-0.11003261804580688,
0.03650558739900589,
0.3672526180744171,
0.39791929721832275,
-0.09535622596740723,
0.4710982143878937,
-0.07685703039169312,
-0.05947074294090271,
-0.1357291340827942,
0.4952109456062317,
-0.0808081328868866,
-0.2098914235830307,
-0.4640028178691864,
-0.034216511994600296,
0.0577559731900692,
-0.1429520547389984,
-0.07747554779052734,
-0.26875877380371094,
0.15364959836006165,
-0.32021886110305786,
-0.5534126162528992,
-0.27389541268348694,
-0.12386636435985565,
0.052005965262651443,
-0.10654707252979279,
-0.2890205979347229,
0.2439141422510147,
0.06017598882317543,
0.017092201858758926,
0.29969078302383423,
0.07487820833921432,
0.025002434849739075,
-0.1556887924671173,
0.008694942109286785,
-0.26617467403411865,
-0.25341281294822693,
0.42439478635787964,
0.26382821798324585,
-0.14765672385692596,
0.36525455117225647,
-0.1935146301984787,
-0.32347702980041504,
0.1794550120830536,
0.04007178544998169,
0.0007879541954025626,
0.11525238305330276,
-0.038194797933101654,
-0.23170992732048035,
-0.23588207364082336,
-0.2420247495174408,
0.08617540448904037,
0.20917074382305145,
-0.18112368881702423,
0.3741348385810852,
-0.08255662769079208,
-0.200474351644516,
-0.05258229747414589,
-0.07871147990226746,
-0.42789173126220703,
-0.09174127131700516,
0.24468456208705902,
-0.059281375259160995,
-0.19561369717121124,
-0.12462009489536285,
0.09444636106491089,
0.1489366888999939,
-0.045699480921030045,
0.1569085419178009,
-0.03892858326435089,
0.0742420181632042,
0.014025767333805561,
-0.13127484917640686,
0.4664577841758728,
0.1307409554719925,
-0.2354867309331894,
-0.3894788324832916,
-0.3047163784503937,
-0.00041652785148471594,
0.03125238046050072,
0.38605383038520813,
0.07687965780496597,
0.16960196197032928,
-0.02214212901890278,
0.2160576730966568,
-0.20958387851715088,
-0.18603874742984772,
-0.15281467139720917,
-0.05405360460281372,
-0.1907169669866562,
0.298685759305954,
0.05571889877319336,
-0.04655252769589424,
0.07030832767486572,
0.25210314989089966,
0.36892011761665344,
-0.04730338975787163,
-0.03364890068769455,
0.15817736089229584,
-0.029781995341181755,
0.19150137901306152,
0.20680591464042664,
-0.25736820697784424,
0.2554956376552582,
-0.25445225834846497,
-0.006264341529458761,
0.22627557814121246,
0.053578298538923264,
0.11881764978170395,
0.08794883638620377,
0.02358534187078476,
-0.18652668595314026,
0.00875290110707283,
-0.11537838727235794,
0.2938224673271179,
0.3038094937801361,
0.18858006596565247,
-0.1978466808795929,
-0.07137957960367203,
0.16046032309532166,
0.2074500173330307,
-0.12342999130487442,
-0.07355029881000519,
0.11112812906503677,
0.12114864587783813,
-0.48665711283683777,
0.35095295310020447,
0.2637125253677368,
0.10894207656383514,
-0.06537021696567535,
0.09641290456056595,
0.3562041223049164,
0.08542025834321976,
-0.035314153879880905,
-0.1407129168510437,
0.04877081885933876,
-0.35521164536476135,
-0.0006581852794624865,
0.2693493366241455,
0.2658033072948456,
-0.18562641739845276,
-0.14219169318675995,
-0.0903940200805664,
0.38315197825431824,
0.16088491678237915,
0.011352229863405228,
0.3325924277305603,
0.048410262912511826,
0.015184324234724045,
0.16161122918128967,
-0.0812549889087677,
0.4215296804904938,
0.39436858892440796,
-0.10595396161079407,
-0.13367286324501038,
0.04228055849671364,
-0.2566131353378296,
-0.2990850806236267,
-0.3335378170013428,
0.33337345719337463,
0.12329991906881332,
-0.2008335441350937,
-0.20570813119411469,
0.15582029521465302,
0.5819081664085388,
-0.32555288076400757,
-0.16984643042087555,
0.09324300289154053,
0.015196893364191055,
-0.12968765199184418,
0.13559384644031525,
0.2539346516132355,
0.11881355196237564,
-0.11877511441707611,
-0.30393946170806885,
0.1671479493379593,
-0.147953599691391,
0.12355807423591614,
-0.011367043480277061,
0.27262237668037415,
-0.04290664941072464,
-0.1298954337835312,
0.13857367634773254,
0.5868182182312012,
-0.24821890890598297,
-0.11099541932344437,
0.25991204380989075,
-0.1228412464261055,
0.09918148070573807,
-0.195254847407341,
0.6805848479270935,
0.3961870074272156,
0.20241457223892212,
-0.21393077075481415,
-0.21393345296382904,
0.14381453394889832,
0.08802492171525955,
-0.2117617279291153,
-0.22782264649868011,
-0.17335686087608337,
0.29313281178474426,
0.05964018777012825,
-0.06008296459913254,
0.17216192185878754,
0.2266809344291687,
0.0493762381374836,
-0.1090073511004448,
-0.07340174168348312,
0.05932828411459923,
-0.24056290090084076,
-0.13252559304237366,
-0.17903977632522583,
-0.2729077637195587,
-0.21470604836940765,
0.4603153169155121,
-0.2889193594455719,
0.18286091089248657,
0.19954679906368256,
0.0662999227643013,
0.15590345859527588,
0.05911216884851456,
0.447552353143692,
0.22441035509109497,
-0.41791388392448425,
0.08790359646081924,
-0.8058604001998901,
-0.1965542435646057,
-0.1332135796546936,
0.03532050922513008,
0.10432534664869308,
0.07072735577821732,
-0.1179594174027443,
-0.10679037868976593,
0.3442201614379883,
0.03144100680947304,
0.17978505790233612,
0.2814752161502838,
-0.44111451506614685,
-0.18659278750419617,
-0.20605021715164185,
-0.04184285178780556,
-0.07269026339054108,
-0.030797917395830154,
0.2907048165798187,
0.31992560625076294,
0.012296081520617008,
-0.19264493882656097,
0.087967149913311,
-0.015740133821964264,
0.12236763536930084,
0.1741415113210678,
0.01547163724899292,
0.4901057481765747,
-0.28439292311668396,
-0.24334093928337097,
0.17567358911037445,
0.052632998675107956,
-0.24112875759601593,
0.22133265435695648,
0.09033126384019852,
0.24688994884490967,
-0.09079701453447342,
-0.3145151436328888,
-0.2964182198047638,
0.3545728623867035,
0.16742315888404846,
-0.15754684805870056,
-0.2645469307899475,
0.4259018898010254,
0.0076890732161700726,
-0.03806668147444725,
-0.011122382245957851,
-0.017595065757632256,
0.006038084626197815,
0.1518341600894928,
-0.28197479248046875,
-0.3354228138923645,
0.3631480038166046,
0.14725486934185028,
-0.021562037989497185,
-0.2779443860054016,
0.501821756362915,
-0.12645548582077026,
0.4052014648914337,
-0.39747998118400574,
-0.34267565608024597,
0.302651047706604,
0.24519972503185272,
-0.5436034202575684,
-0.13637888431549072,
0.0492594875395298,
0.07480674982070923,
-0.01605125702917576,
0.14132656157016754,
0.15784311294555664,
-0.25882765650749207,
0.25866520404815674,
-0.1373971551656723
] |
https://github.com/huggingface/datasets/issues/1818 | Loading local dataset raise requests.exceptions.ConnectTimeout | Hi ! Thanks for reporting. This was indeed a bug introduced when we moved the `json` dataset loader inside the `datasets` package (before that, the `json` loader was fetched online, as all the other dataset scripts).
This should be fixed on master now. Feel free to install `datasets` from source to try it out.
The fix will be available in the next release of `datasets` in a few days | Load local dataset:
```
dataset = load_dataset('json', data_files=["../../data/json.json"])
train = dataset["train"]
print(train.features)
train1 = train.map(lambda x: {"labels": 1})
print(train1[:2])
```
but it raised requests.exceptions.ConnectTimeout:
```
/Users/littlely/myvirtual/tf2/bin/python3.7 /Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 167, in _new_conn
% (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py", line 12, in <module>
dataset = load_dataset('json', data_files=["../../data/json.json"])
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 591, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset, max_retries=download_config.max_retries)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 232, in head_hf_s3
max_retries=max_retries,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 523, in http_head
max_retries=max_retries,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 458, in _request_with_retry
raise err
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 454, in _request_with_retry
response = requests.request(verb.upper(), url, **params)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
Process finished with exit code 1
```
Why it want to connect a remote url when I load local datasets, and how can I fix it? | 69 | Loading local dataset raise requests.exceptions.ConnectTimeout
Load local dataset:
```
dataset = load_dataset('json', data_files=["../../data/json.json"])
train = dataset["train"]
print(train.features)
train1 = train.map(lambda x: {"labels": 1})
print(train1[:2])
```
but it raised requests.exceptions.ConnectTimeout:
```
/Users/littlely/myvirtual/tf2/bin/python3.7 /Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 167, in _new_conn
% (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py", line 12, in <module>
dataset = load_dataset('json', data_files=["../../data/json.json"])
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 591, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset, max_retries=download_config.max_retries)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 232, in head_hf_s3
max_retries=max_retries,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 523, in http_head
max_retries=max_retries,
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 458, in _request_with_retry
raise err
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 454, in _request_with_retry
response = requests.request(verb.upper(), url, **params)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
Process finished with exit code 1
```
Why it want to connect a remote url when I load local datasets, and how can I fix it?
Hi ! Thanks for reporting. This was indeed a bug introduced when we moved the `json` dataset loader inside the `datasets` package (before that, the `json` loader was fetched online, as all the other dataset scripts).
This should be fixed on master now. Feel free to install `datasets` from source to try it out.
The fix will be available in the next release of `datasets` in a few days | [
-0.08766548335552216,
-0.30965402722358704,
-0.07478281110525131,
0.24969221651554108,
0.31518077850341797,
0.08913836628198624,
0.31492313742637634,
0.2885441184043884,
-0.1467544138431549,
0.05681467428803444,
-0.046975817531347275,
0.3553401231765747,
0.062465257942676544,
-0.07246101647615433,
-0.007478967774659395,
-0.3571035861968994,
-0.1442810297012329,
0.08389333635568619,
-0.04754749685525894,
-0.15436987578868866,
-0.252987265586853,
0.0257255919277668,
-0.1874687373638153,
0.23308362066745758,
-0.25299233198165894,
-0.2066890150308609,
-0.0868968516588211,
0.11692912131547928,
0.02572886273264885,
-0.4841196835041046,
0.11799375712871552,
-0.31255149841308594,
0.05555199086666107,
0.5283832550048828,
-0.00011544358130777255,
0.12221134454011917,
0.0945105105638504,
0.021575942635536194,
-0.1321408599615097,
-0.04985973238945007,
-0.06749620288610458,
-0.23688991367816925,
0.24508415162563324,
-0.3710685074329376,
-0.10751595348119736,
-0.39125433564186096,
0.0075891222804784775,
-0.20665813982486725,
0.5702972412109375,
0.5039225220680237,
0.14577552676200867,
0.5681711435317993,
0.05152278393507004,
0.07855891436338425,
0.2667643129825592,
0.1773376166820526,
-0.20646819472312927,
0.28982022404670715,
0.2549915015697479,
-0.4005661904811859,
0.040011078119277954,
-0.08254597336053848,
-0.0017519294051453471,
0.07805230468511581,
0.09075348824262619,
0.12722355127334595,
-0.1359151005744934,
-0.3480362594127655,
-0.16557419300079346,
0.3539242446422577,
0.3100978136062622,
0.07070297747850418,
-0.29271039366722107,
-0.22707690298557281,
-0.20156237483024597,
-0.0293265450745821,
0.13472789525985718,
0.16665321588516235,
-0.3210846781730652,
0.177544504404068,
-0.30060333013534546,
0.055120907723903656,
-0.4535174071788788,
0.5489298701286316,
0.0865124985575676,
0.5155919790267944,
0.08303829282522202,
0.30913081765174866,
-0.04582268372178078,
0.01339795533567667,
-0.008978120982646942,
-0.0843445435166359,
0.01711522974073887,
0.18444916605949402,
-0.19636711478233337,
-0.1544387936592102,
0.11466311663389206,
-0.4060586094856262,
0.16019004583358765,
0.06765782833099365,
0.1546439379453659,
-0.08788298070430756,
-0.16994355618953705,
0.31165197491645813,
-0.0025951911229640245,
0.12817777693271637,
-0.057819414883852005,
0.33188050985336304,
0.37099531292915344,
0.09120519459247589,
-0.18298709392547607,
0.15579624474048615,
0.10856474190950394,
-0.1445654332637787,
0.04197518154978752,
-0.059997592121362686,
0.49298638105392456,
0.051110029220581055,
0.08754830062389374,
-0.01599091850221157,
-0.5868580341339111,
-0.0332803875207901,
0.19560988247394562,
0.34931203722953796,
-0.34224382042884827,
0.08275385946035385,
0.012364456430077553,
-0.054469041526317596,
-0.3163072466850281,
0.0691056102514267,
-0.24259652197360992,
0.24825720489025116,
0.0804515853524208,
-0.05912521481513977,
0.16601555049419403,
0.06363079696893692,
0.4791114032268524,
-0.16734470427036285,
-0.03491022810339928,
-0.041587088257074356,
0.5842093229293823,
-0.323309987783432,
0.14140421152114868,
0.23451228439807892,
-0.27180224657058716,
0.06876185536384583,
0.2806971073150635,
0.10376153141260147,
-0.10807987302541733,
0.020145926624536514,
-0.245202898979187,
-0.46281877160072327,
-0.0414954274892807,
0.2253667712211609,
0.044351156800985336,
-0.10873950272798538,
0.009492246434092522,
-0.16324132680892944,
0.41379299759864807,
-0.33000239729881287,
0.052400507032871246,
-0.2123023420572281,
-0.21794594824314117,
-0.16497811675071716,
0.2293941229581833,
0.3468136787414551,
-0.258683443069458,
0.07982505112886429,
0.26830342411994934,
-0.0013028933899477124,
0.22669926285743713,
0.4093843400478363,
-0.5121423006057739,
0.47438448667526245,
-0.3170551657676697,
0.14155489206314087,
0.5460799932479858,
-0.4671509563922882,
-0.2384580373764038,
0.5044529438018799,
-0.2510959804058075,
-0.07115331292152405,
0.04356551170349121,
0.2766904830932617,
0.11966775357723236,
0.07417988032102585,
0.42460864782333374,
0.35099315643310547,
-0.2929826080799103,
0.11347391456365585,
-0.27661409974098206,
-0.20692385733127594,
0.007274574600160122,
0.07853075116872787,
0.06227407231926918,
0.011424657888710499,
0.1617799699306488,
0.03380436450242996,
0.27313441038131714,
-0.06192851811647415,
0.10705403983592987,
0.335309773683548,
0.07649322599172592,
-0.09136452525854111,
0.030290547758340836,
-0.021598288789391518,
-0.20533323287963867,
0.22619983553886414,
-0.03073979914188385,
0.2425401210784912,
-0.2673669457435608,
-0.020219873636960983,
-0.38613981008529663,
0.06388638913631439,
-0.30795004963874817,
0.08516513556241989,
0.06180333346128464,
0.27120745182037354,
0.17252351343631744,
0.1565873920917511,
0.04250359907746315,
-0.02752990834414959,
-0.25791770219802856,
0.10618167370557785,
-0.3778766989707947,
0.26170453429222107,
-0.059982288628816605,
-0.03793508931994438,
-0.0919819176197052,
-0.1287301927804947,
0.14280445873737335,
-0.2689325213432312,
-0.2771677076816559,
0.1943453997373581,
0.0190407894551754,
0.1645132303237915,
0.0183443371206522,
0.038595568388700485,
0.06247078627347946,
-0.16642357409000397,
0.02123120427131653,
0.09464211016893387,
0.11480841040611267,
-0.18700453639030457,
-0.1732775866985321,
0.2998906970024109,
0.21567855775356293,
0.32944566011428833,
0.1182270497083664,
-0.1258409470319748,
0.24935750663280487,
0.07178176194429398,
-0.018966082483530045,
-0.010247708298265934,
0.07955377548933029,
0.0412089042365551,
0.11366841197013855,
-0.09222109615802765,
-0.257455974817276,
0.060261428356170654,
0.44604963064193726,
-0.17017631232738495,
0.04501553997397423,
0.06969194114208221,
0.3061300814151764,
-0.10950255393981934,
0.17633691430091858,
0.15495450794696808,
0.6341341137886047,
0.20858079195022583,
0.16215664148330688,
0.15114934742450714,
-0.13489747047424316,
-0.22925977408885956,
0.06441287696361542,
-0.026680145412683487,
0.24730564653873444,
0.3175879716873169,
0.30572614073753357,
0.02431810274720192,
-0.42636457085609436,
-0.27759501338005066,
0.1161995455622673,
0.3775261342525482,
-0.27424031496047974,
0.2351563423871994,
-0.10331948101520538,
-0.15647819638252258,
-0.04775143787264824,
0.039421647787094116,
-0.23014742136001587,
-0.4214998781681061,
0.058336324989795685,
0.21585336327552795,
-0.07317070662975311,
0.2756845951080322,
-0.009307170286774635,
0.02014656737446785,
0.35008883476257324,
-0.43837788701057434,
-0.10649306327104568,
-0.17611823976039886,
-0.36415421962738037,
0.025294018909335136,
0.1525002419948578,
-0.09636365622282028,
0.4177519679069519,
-0.049924224615097046,
-0.47568827867507935,
-0.18726211786270142,
-0.2943216562271118,
0.011948315426707268,
-0.0652061179280281,
0.24799631536006927,
0.15092597901821136,
0.35157036781311035,
-0.01744619756937027,
-0.1918196678161621,
0.4221312701702118,
-0.0898682028055191,
-0.12389801442623138,
-0.026795560494065285,
0.024070892482995987,
0.14929307997226715,
-0.030747458338737488,
-0.637908399105072,
-0.40483924746513367,
-0.4066760241985321,
0.21819795668125153,
0.04661962762475014,
0.27751848101615906,
0.08495451509952545,
0.035815250128507614,
0.35972166061401367,
0.11121653020381927,
0.12764061987400055,
-0.05386175960302353,
-0.3271384537220001,
0.25746041536331177,
-0.2653143107891083,
-0.26336678862571716,
-0.014294955879449844,
-0.1172882467508316,
0.08856562525033951,
0.05010083690285683,
-0.5194665193557739,
-0.445358008146286,
-0.2787288427352905,
0.2407432645559311,
-0.2776933014392853,
-0.11705269664525986,
0.296099990606308,
-0.17033280432224274,
-0.10821863263845444,
-0.006474659778177738,
-0.04447685927152634,
0.341537207365036,
0.2659059464931488,
0.1737862378358841,
0.061448387801647186,
0.759671151638031,
-0.033246781677007675,
0.5413731932640076,
0.029679853469133377,
0.035278018563985825,
0.48922720551490784,
-0.28296926617622375,
-0.01747850514948368,
-0.0779779776930809,
-0.2684918940067291,
0.08018269389867783,
0.14092621207237244,
-0.20751804113388062,
-0.09336596727371216,
0.16155597567558289,
-0.12253068387508392,
-0.24050931632518768,
-0.2304321974515915,
-0.2888832688331604,
-0.23357364535331726,
0.009727271273732185,
-0.1465509682893753,
0.28953230381011963,
-0.02224685437977314,
0.06599299609661102,
-0.14311672747135162,
-0.05162317305803299,
-0.14666835963726044,
0.06930676102638245,
-0.016799474135041237,
-0.1624402105808258,
-0.6813392043113708,
-0.17491041123867035,
-0.513603150844574,
0.2706354558467865,
0.15675657987594604,
0.5439189672470093,
-0.2641367018222809,
-0.0684388279914856,
0.26119399070739746,
-0.141559898853302,
0.81099933385849,
-0.24084287881851196,
0.10524090379476547,
0.025069549679756165,
0.13557696342468262,
-0.3428853154182434,
0.005817589350044727,
-0.0008368968847207725,
0.26888108253479004,
0.2481938898563385,
0.5743727087974548,
-0.12800560891628265,
-0.28656473755836487,
0.20697163045406342,
0.27402564883232117,
-0.2358221858739853,
-0.07624007761478424,
-0.21773304045200348,
-0.6896692514419556,
-0.19684526324272156,
0.08326990157365799,
-0.05471610277891159,
0.20280013978481293,
0.09243040531873703,
-0.41695019602775574,
0.09523036330938339,
0.16640637814998627,
-0.0523579865694046,
0.079948291182518,
-0.11084631085395813,
0.01588943973183632,
0.11482325196266174,
-0.24719145894050598,
0.2845287322998047,
0.24503964185714722,
0.35222312808036804,
-0.1490689069032669,
-0.26303529739379883,
0.1436476707458496,
0.12382066994905472,
0.33185508847236633,
0.29476219415664673,
-0.02124687284231186,
0.14088471233844757,
0.1599985510110855,
0.34019410610198975,
-0.08283504843711853,
0.3873809576034546,
0.5323923230171204,
-0.12233677506446838,
-0.20315824449062347,
-0.5039530396461487,
0.13323824107646942,
-0.047188762575387955,
-0.06368651986122131,
0.21920226514339447,
-0.2862211763858795,
-0.27720364928245544,
0.37920841574668884,
0.13955368101596832,
0.9921337366104126,
-0.011305898427963257,
0.2558077275753021,
0.6406012177467346,
-0.06649723649024963,
0.6649612188339233,
-0.26461726427078247,
0.25802740454673767,
-0.3804027736186981,
0.04297619313001633,
-0.10547614842653275,
-0.23587989807128906,
0.02850954793393612,
0.09443724155426025,
-0.16494807600975037,
0.14919522404670715,
-0.11728349328041077,
0.19598525762557983,
-0.1463427096605301,
0.5414192080497742,
0.07562825083732605,
-0.05984772369265556,
-0.5874492526054382,
0.10640949010848999,
-0.02610311657190323,
0.09858335554599762,
-0.026835400611162186,
-0.10816896706819534,
0.020030274987220764,
-0.3731745183467865,
0.1574331820011139,
0.09438194334506989,
-0.2812209129333496,
0.5121897459030151,
-0.18592984974384308,
-0.0758691281080246,
-0.015601021237671375,
0.30762577056884766,
0.03486614301800728,
-0.000024999431843752973,
-0.10644496232271194,
0.03628111258149147,
-0.1130686104297638,
0.13087040185928345,
-0.10063131898641586,
-0.009530859999358654,
0.15473699569702148,
-0.11632030457258224,
-0.4218946695327759,
0.4718746840953827,
-0.34946492314338684,
-0.3757621645927429,
-0.07090140879154205,
0.12230076640844345,
-0.059523992240428925,
-0.44099000096321106,
-0.10296250134706497,
-0.14436499774456024,
-0.2691301703453064,
-0.20036689937114716,
0.0858176201581955,
0.01952715590596199,
-0.3188185691833496,
0.32040175795555115,
0.017751218751072884,
-0.31536203622817993,
-0.021574534475803375,
0.4522780179977417,
0.11651378124952316,
0.22168408334255219,
0.7525089383125305,
0.16997316479682922,
0.02495875209569931,
-0.3292616009712219,
0.46127626299858093,
-0.018030323088169098,
-0.2892804741859436,
0.10468768328428268,
0.24820460379123688,
0.25183233618736267,
0.06370893120765686,
0.27727657556533813,
0.22925134003162384,
0.13892202079296112,
0.0036962167359888554,
-0.3916377127170563,
-0.4703882038593292,
0.16922520101070404,
0.07654441148042679,
0.21416209638118744,
0.23961502313613892,
0.24989165365695953,
-0.18938782811164856,
0.20432418584823608,
-0.2954697906970978,
0.056162357330322266,
-0.5371046662330627,
0.18564799427986145,
-0.03754319250583649,
-0.11557117849588394,
0.3783705532550812,
0.06216646358370781,
0.1401452124118805,
-0.021300872787833214,
-0.3744773864746094,
-0.16643722355365753,
-0.050524383783340454,
0.16633711755275726,
0.07185029983520508,
-0.18647395074367523,
-0.43863722681999207,
-0.5062546730041504,
-0.01814761571586132,
0.09656592458486557,
0.053542230278253555,
0.018847547471523285,
-0.0811803787946701,
0.017581792548298836,
0.014158097095787525,
0.12208902835845947,
0.08415967226028442,
0.047267988324165344,
-0.1538112759590149,
-0.015742814168334007,
0.23016884922981262,
0.0772615596652031,
0.19839705526828766,
-0.18857860565185547,
-0.06746096909046173,
0.01976594142615795,
0.03562580421566963,
-0.1773952692747116,
0.2926690876483917,
-0.2847869396209717,
-0.2742284834384918,
-0.07488112896680832,
0.2242605835199356,
0.39459162950515747,
-0.19613304734230042,
0.028379498049616814,
0.19520418345928192,
0.20808662474155426,
-0.1833197921514511,
-0.2920607328414917,
0.4560912549495697,
-0.20194564759731293,
0.13789722323417664,
0.11032266169786453,
-0.21274232864379883,
0.08947010338306427,
-0.224531888961792,
0.20336739718914032,
0.23412306606769562,
0.022326283156871796,
0.03718820959329605,
0.3005513846874237,
-0.2989981472492218,
-0.08281213045120239,
0.14745624363422394,
0.12709461152553558,
0.3212963044643402,
0.004775399342179298,
-0.0055459123104810715,
0.043327849358320236,
-0.37678760290145874,
0.3542632758617401,
-0.08602540194988251,
-0.4847978949546814,
0.05125252529978752,
-0.16885972023010254,
-0.2988904118537903,
-0.1300307959318161,
-0.0237506702542305,
0.4819837510585785,
-0.23673978447914124,
-0.1881801337003708,
-0.19951511919498444,
0.3600148856639862,
-0.10282442718744278,
-0.19554200768470764,
-0.2295156568288803,
-0.28582021594047546,
0.1354685127735138,
-0.19785040616989136,
0.1609136015176773,
0.019045304507017136,
-0.06508712470531464,
0.08947291970252991,
0.0383867546916008,
-0.20192481577396393,
-0.02014581300318241,
0.061203762888908386,
0.06400658935308456,
-0.3245762288570404,
0.19497372210025787,
0.24837034940719604,
-0.060704052448272705,
-0.41715314984321594,
0.010687616653740406,
0.34595704078674316,
0.4239967167377472,
-0.021845024079084396,
0.3124997317790985,
-0.09471087902784348,
-0.15839625895023346,
-0.0055410307832062244,
0.11348307877779007,
0.23380862176418304,
-0.03643786162137985,
0.35148730874061584,
0.09335273504257202,
-0.14810225367546082,
0.29367825388908386,
-0.023719292134046555,
0.15342889726161957,
-0.22117389738559723,
0.5093345642089844,
0.012240746058523655,
-0.29287588596343994,
0.00042513079824857414,
0.021105386316776276,
-0.41690775752067566,
0.10075098276138306,
0.42973050475120544,
-0.1344192773103714,
0.3220783770084381,
-0.0988743007183075,
0.05006033182144165,
-0.3950723707675934,
0.6884117722511292,
0.23328419029712677,
0.10674802958965302,
-0.3425544798374176,
0.0008538153488188982,
-0.3407241404056549,
0.028350520879030228,
-0.47885826230049133,
-0.02403535693883896,
0.0740337073802948,
0.10040076822042465,
0.0750100389122963,
-0.046060048043727875,
-0.12703338265419006,
0.003035661531612277,
0.021856257691979408,
0.11331165581941605,
-0.2876620292663574,
-0.27596941590309143,
-0.004359738901257515,
0.2354530245065689,
-0.01873743161559105,
-0.47272807359695435,
0.21635445952415466,
-0.260030597448349,
-0.030725693330168724,
-0.2679131329059601,
-0.048462193459272385,
0.20219272375106812,
-0.05791543424129486,
0.43436822295188904,
0.3496297001838684,
0.4295276999473572,
0.07208869606256485,
-0.06065141782164574,
0.04394721984863281,
-0.478981614112854,
0.04592175409197807,
-0.004792279563844204,
0.15769259631633759,
0.5942362546920776,
-0.18847399950027466,
-0.01807154342532158,
-0.33908313512802124,
0.17296269536018372,
-0.12381944060325623,
-0.3846408426761627,
0.3237592875957489,
-0.05246194079518318,
0.02614615112543106,
0.065915048122406,
0.1001647487282753,
0.13305486738681793,
0.08198674768209457,
0.029797717928886414,
-0.2536604404449463,
-0.21632108092308044,
0.72347092628479,
-0.3179051876068115,
-0.16672787070274353,
-0.043735675513744354,
0.18572230637073517,
0.0977981761097908,
0.0049677626229822636,
-0.1586294174194336,
-0.08039943873882294,
0.672175943851471,
0.08620896190404892,
-0.31092798709869385,
0.4904259145259857,
0.15787386894226074,
0.031035203486680984,
0.0725695788860321,
-0.03354132920503616,
-0.19044147431850433,
-0.27471280097961426,
-0.04022679105401039,
-0.31007230281829834
] |
https://github.com/huggingface/datasets/issues/1817 | pyarrow.lib.ArrowInvalid: Column 1 named input_ids expected length 599 but got length 1500 | Hi !
The error you have is due to the `input_ids` column not having the same number of examples as the other columns.
Indeed you're concatenating the `input_ids` at this line:
https://github.com/LuCeHe/GenericTools/blob/431835d8e13ec24dceb5ee4dc4ae58f0e873b091/KerasTools/lm_preprocessing.py#L134
However the other columns are kept unchanged, and therefore you end up with an `input_ids` column with 599 elements while the others columns like `attention_mask` have 1500.
To fix that you can instead concatenate them all using
```python
concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()}
```
Also you may need to drop the "text" column before applying `group_texts` since strings can't be concatenated with lists. You can drop it at the tokenization step:
```python
dset = dset.map(
tokenize_function,
batched=True,
remove_columns=["text"]
)
``` | I am trying to preprocess any dataset in this package with GPT-2 tokenizer, so I need to structure the datasets as long sequences of text without padding. I've been following a couple of your tutorials and here you can find the script that is failing right at the end
https://github.com/LuCeHe/GenericTools/blob/master/KerasTools/lm_preprocessing.py
In the last iteration of the last dset.map, it gives the error that I copied in the title. Another issue that I have, if I leave the batch_size set as 1000 in the last .map, I'm afraid it's going to lose most text, so I'm considering setting both writer_batch_size and batch_size to 300 K, but I'm not sure it's the best way to go.
Can you help me?
Thanks! | 116 | pyarrow.lib.ArrowInvalid: Column 1 named input_ids expected length 599 but got length 1500
I am trying to preprocess any dataset in this package with GPT-2 tokenizer, so I need to structure the datasets as long sequences of text without padding. I've been following a couple of your tutorials and here you can find the script that is failing right at the end
https://github.com/LuCeHe/GenericTools/blob/master/KerasTools/lm_preprocessing.py
In the last iteration of the last dset.map, it gives the error that I copied in the title. Another issue that I have, if I leave the batch_size set as 1000 in the last .map, I'm afraid it's going to lose most text, so I'm considering setting both writer_batch_size and batch_size to 300 K, but I'm not sure it's the best way to go.
Can you help me?
Thanks!
Hi !
The error you have is due to the `input_ids` column not having the same number of examples as the other columns.
Indeed you're concatenating the `input_ids` at this line:
https://github.com/LuCeHe/GenericTools/blob/431835d8e13ec24dceb5ee4dc4ae58f0e873b091/KerasTools/lm_preprocessing.py#L134
However the other columns are kept unchanged, and therefore you end up with an `input_ids` column with 599 elements while the others columns like `attention_mask` have 1500.
To fix that you can instead concatenate them all using
```python
concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()}
```
Also you may need to drop the "text" column before applying `group_texts` since strings can't be concatenated with lists. You can drop it at the tokenization step:
```python
dset = dset.map(
tokenize_function,
batched=True,
remove_columns=["text"]
)
``` | [
-0.15500250458717346,
-0.07036436349153519,
-0.00863442663103342,
0.17082907259464264,
0.2552531659603119,
0.03644741699099541,
0.5036024451255798,
0.5221661925315857,
-0.5246614217758179,
0.010455019772052765,
0.3807773292064667,
0.23190680146217346,
0.0748814195394516,
-0.17450809478759766,
0.12614023685455322,
-0.28864777088165283,
0.014182326383888721,
0.2477584332227707,
-0.013882027938961983,
0.19445458054542542,
-0.06766746193170547,
0.3307291269302368,
-0.3295418322086334,
0.2716701924800873,
-0.3865056335926056,
-0.09225186705589294,
-0.1422721892595291,
-0.16988904774188995,
-0.16919861733913422,
-0.593181848526001,
0.08280914276838303,
-0.22855831682682037,
0.04780510812997818,
0.27941039204597473,
-0.0001236287789652124,
-0.1168292760848999,
0.40770092606544495,
-0.1066744402050972,
0.07015261799097061,
-0.004473653621971607,
0.04228055104613304,
-0.2361372709274292,
0.01651361584663391,
-0.2340284287929535,
0.09126812219619751,
-0.5475607514381409,
-0.29207897186279297,
0.26073208451271057,
0.283521443605423,
0.3589547872543335,
0.1257847100496292,
-0.04489459469914436,
0.1790401041507721,
-0.041286155581474304,
0.5702493190765381,
0.05360982194542885,
0.00553381210193038,
0.11605064570903778,
0.14587810635566711,
-0.2013940066099167,
0.05344120040535927,
0.21442961692810059,
-0.26802539825439453,
-0.10325141251087189,
0.05808611959218979,
-0.003927030600607395,
0.05653228610754013,
-0.20237185060977936,
0.21053403615951538,
0.158890962600708,
0.3037463426589966,
-0.3780478835105896,
-0.048350099474191666,
-0.2628532350063324,
0.17668750882148743,
-0.3986363112926483,
-0.08855181187391281,
-0.06064765527844429,
-0.19439220428466797,
0.18830226361751556,
-0.10215352475643158,
0.17451386153697968,
-0.257405549287796,
0.09383922070264816,
0.0956302061676979,
0.27733755111694336,
0.15872620046138763,
0.28969141840934753,
-0.07065586745738983,
-0.17045563459396362,
0.03650994598865509,
0.13478638231754303,
-0.22401554882526398,
0.21089716255664825,
-0.23298907279968262,
-0.035356272011995316,
-0.1298372596502304,
-0.22155019640922546,
0.42445048689842224,
-0.14328715205192566,
0.2827809453010559,
-0.16068950295448303,
0.7112699151039124,
-0.11864568293094635,
-0.08554699271917343,
0.45989713072776794,
0.23725898563861847,
0.20678284764289856,
-0.12706254422664642,
-0.3863639533519745,
0.29139789938926697,
0.1470928192138672,
-0.2602185904979706,
-0.6117141842842102,
0.27573642134666443,
0.16794928908348083,
0.06177958846092224,
0.18029779195785522,
-0.1971883624792099,
0.4800280034542084,
-0.4964815378189087,
-0.025122089311480522,
-0.15307627618312836,
0.0553496778011322,
0.07967495173215866,
0.06377281993627548,
-0.002288812305778265,
0.07375260442495346,
0.06430437415838242,
-0.25531452894210815,
-0.10276953130960464,
0.2139761596918106,
-0.3910427689552307,
0.06014896184206009,
0.10804900527000427,
0.05606796592473984,
0.30172011256217957,
0.06235804036259651,
0.07460194826126099,
0.06350316852331161,
-0.010166678577661514,
-0.07176142930984497,
0.24437253177165985,
0.2771904766559601,
-0.11861370503902435,
0.1828497052192688,
0.2038537561893463,
-0.14459428191184998,
-0.30178752541542053,
0.29600322246551514,
-0.32703956961631775,
-0.3279036581516266,
-0.108556367456913,
0.06317917257547379,
0.10623561590909958,
0.1053575798869133,
-0.2185850888490677,
0.15095144510269165,
0.6920491456985474,
-0.09886521846055984,
0.1823328286409378,
-0.425813227891922,
0.1980239897966385,
-0.31236064434051514,
0.1485881209373474,
0.16139285266399384,
-0.5673125386238098,
0.12170485407114029,
0.39496245980262756,
0.37337738275527954,
0.33287525177001953,
0.38136208057403564,
-0.0831800326704979,
0.5039740800857544,
-0.09069906175136566,
0.755222499370575,
0.3342805802822113,
-0.0888390839099884,
-0.2165764421224594,
0.3936942517757416,
-0.0643305853009224,
-0.23230049014091492,
0.029561929404735565,
-0.23195892572402954,
0.2128833830356598,
-0.009677543304860592,
0.15474769473075867,
-0.10163944214582443,
-0.10747284442186356,
-0.0029566020239144564,
-0.2887980043888092,
-0.13460397720336914,
0.10846607387065887,
-0.06870801001787186,
-0.1076745092868805,
-0.2563624382019043,
-0.2608838677406311,
-0.41036680340766907,
0.11535430699586868,
-0.16352862119674683,
0.3597879111766815,
0.34751036763191223,
0.019629020243883133,
0.026715299114584923,
0.3291780352592468,
0.09509377926588058,
-0.17817071080207825,
-0.023590197786688805,
0.044291459023952484,
-0.03495953604578972,
-0.22016650438308716,
-0.3523423373699188,
-0.26728200912475586,
0.19900178909301758,
0.038178443908691406,
0.17765027284622192,
0.009346594102680683,
-0.22651220858097076,
0.18354903161525726,
-0.16336163878440857,
-0.03364960104227066,
-0.27183622121810913,
0.05084255710244179,
0.09642191976308823,
-0.18220950663089752,
-0.12170233577489853,
-0.17315848171710968,
-0.40619081258773804,
0.09974991530179977,
-0.0075107538141310215,
0.2952214479446411,
-0.053782831877470016,
0.014354439452290535,
0.3127261996269226,
0.13114237785339355,
-0.33476999402046204,
-0.39543095231056213,
0.20271651446819305,
-0.08284132927656174,
-0.1941530853509903,
-0.19109749794006348,
-0.10592576861381531,
-0.030231986194849014,
-0.08676471561193466,
0.11341715604066849,
0.3114244341850281,
0.08789810538291931,
0.30049940943717957,
-0.2077561318874359,
-0.03196614235639572,
0.06307551264762878,
0.06867693364620209,
-0.23480115830898285,
0.010070218704640865,
0.0778634175658226,
-0.047596525400877,
0.13263769447803497,
0.0023547883611172438,
-0.31536760926246643,
0.17286176979541779,
0.177005335688591,
0.015508429147303104,
-0.06378637999296188,
0.19869202375411987,
-0.08011621236801147,
-0.014726108871400356,
0.11548687517642975,
-0.19700947403907776,
0.10119021683931351,
0.16590392589569092,
-0.02477806806564331,
-0.05473581701517105,
-0.2063383311033249,
-0.19612537324428558,
0.22627601027488708,
0.07361017912626266,
0.20353452861309052,
0.5516642928123474,
0.05265549197793007,
0.12736856937408447,
0.05016843229532242,
-0.09347490221261978,
0.22983282804489136,
0.35506877303123474,
-0.36218857765197754,
0.19338005781173706,
-0.2526606619358063,
0.019631583243608475,
-0.005975432228296995,
-0.6114002466201782,
0.17197854816913605,
-0.030618706718087196,
0.04579130560159683,
-0.12918275594711304,
-0.16222235560417175,
0.3853451609611511,
0.18198788166046143,
0.18498337268829346,
0.5495918989181519,
-0.16755610704421997,
-0.12042859196662903,
-0.23683416843414307,
-0.18436199426651,
-0.09546428173780441,
0.21327583491802216,
-0.15062955021858215,
-0.02123957872390747,
0.10779530555009842,
-0.11745612323284149,
-0.22424891591072083,
-0.5022531151771545,
0.31190580129623413,
-0.346698522567749,
-0.11216429620981216,
0.40245580673217773,
0.12236765027046204,
-0.2633652091026306,
-0.2280539572238922,
0.055442359298467636,
0.22995440661907196,
-0.2798077166080475,
0.3484916388988495,
-0.08963631093502045,
-0.2746521234512329,
-0.15062211453914642,
-0.16973640024662018,
0.1745995581150055,
-0.19145454466342926,
0.17723356187343597,
-0.15346412360668182,
0.14684011042118073,
0.06374962627887726,
0.4653072953224182,
0.03690608963370323,
-0.006936071906238794,
0.04242870211601257,
0.057454679161310196,
0.21053172647953033,
0.43436822295188904,
-0.2766294479370117,
-0.2573380470275879,
0.08655910193920135,
-0.17284053564071655,
0.3282192051410675,
0.2733301818370819,
-0.3643847703933716,
0.16170991957187653,
-0.06859367340803146,
0.09364158660173416,
-0.35788702964782715,
0.05903325974941254,
0.46051734685897827,
0.1466502547264099,
0.005105774849653244,
-0.11419656872749329,
0.03463258594274521,
0.3736734092235565,
-0.2701493501663208,
0.05511247366666794,
0.05525395646691322,
0.6357027888298035,
-0.02504553459584713,
0.7274162173271179,
0.2814561724662781,
-0.11978279054164886,
0.10136095434427261,
-0.24909089505672455,
-0.12020952254533768,
-0.23989669978618622,
0.16254298388957977,
-0.2318485975265503,
-0.09498392045497894,
0.036953240633010864,
0.368810772895813,
-0.29724830389022827,
-0.3330015540122986,
0.2210150808095932,
0.19252300262451172,
-0.2142067551612854,
-0.07208176702260971,
0.3196910321712494,
0.03605922684073448,
0.3239006996154785,
-0.04191948473453522,
0.0790790393948555,
-0.1929033100605011,
-0.03335442766547203,
0.04953550919890404,
-0.3764076232910156,
0.03256990388035774,
0.06490572541952133,
-0.23177330195903778,
-0.411833792924881,
-0.622668445110321,
0.36847934126853943,
0.3064647316932678,
0.46939751505851746,
0.10163966566324234,
-0.3109786808490753,
-0.0006429352215491235,
-0.2770532965660095,
0.5176246166229248,
-0.14390967786312103,
-0.3334731161594391,
0.3643978536128998,
0.1254674345254898,
-0.42009660601615906,
-0.3367704153060913,
-0.05272137373685837,
0.14556749165058136,
0.37678414583206177,
0.13627533614635468,
-0.5397260785102844,
-0.03186776489019394,
0.3549751341342926,
-0.026120660826563835,
-0.012667223811149597,
-0.14694397151470184,
-0.24778537452220917,
-0.35022714734077454,
-0.20203381776809692,
-0.016632046550512314,
0.6145426034927368,
0.3996121883392334,
-0.012563604861497879,
-0.0049709659069776535,
-0.05476657301187515,
-0.29954466223716736,
0.09771376848220825,
0.009557348676025867,
0.3902047872543335,
0.0011864821426570415,
0.22085782885551453,
-0.22350060939788818,
0.3756491243839264,
0.38192641735076904,
0.11470922082662582,
0.15078705549240112,
-0.23865948617458344,
0.24952787160873413,
-0.2736162543296814,
0.4812788963317871,
0.2760552763938904,
-0.2233426570892334,
0.2875678837299347,
-0.4445217549800873,
0.27942806482315063,
-0.07923941314220428,
0.14096768200397491,
0.39659184217453003,
-0.17318737506866455,
-0.3562673330307007,
-0.13050243258476257,
0.24307239055633545,
0.021024886518716812,
-0.026337457820773125,
0.4567233920097351,
0.06739512085914612,
-0.3701595664024353,
0.3138674199581146,
0.26219481229782104,
1.1447817087173462,
0.31669512391090393,
0.2496209591627121,
0.3733644485473633,
0.08351262658834457,
0.006209291517734528,
0.07697050273418427,
0.10554121434688568,
-0.5544155836105347,
-0.005170722957700491,
0.009371246211230755,
-0.1675923466682434,
-0.013810032978653908,
0.2013980895280838,
-0.3329414427280426,
-0.1281973272562027,
-0.31516915559768677,
0.17098389565944672,
-0.13209475576877594,
0.14282259345054626,
-0.005934764165431261,
-0.08728040754795074,
0.2379440814256668,
-0.020847100764513016,
-0.013102269731462002,
-0.37003982067108154,
-0.16520962119102478,
-0.06918273121118546,
-0.3673366606235504,
-0.3569474518299103,
-0.4112291932106018,
-0.07522549480199814,
-0.22506001591682434,
0.039151616394519806,
0.11218903958797455,
-0.25817930698394775,
0.17978978157043457,
0.026250436902046204,
0.20695266127586365,
0.1652824729681015,
-0.1984623670578003,
0.008550654165446758,
0.04433031007647514,
-0.2909435033798218,
-0.15844133496284485,
-0.14099442958831787,
0.12209361046552658,
-0.0171995609998703,
0.05257626250386238,
0.18505868315696716,
0.042504459619522095,
0.06949720531702042,
-0.3031354248523712,
-0.16276974976062775,
0.27045172452926636,
-0.49078255891799927,
-0.0921756848692894,
0.03048894926905632,
0.002968077315017581,
-0.15656369924545288,
-0.006744465325027704,
0.04925331100821495,
-0.22092176973819733,
0.23219835758209229,
-0.1529701203107834,
-0.2571035325527191,
0.060137975960969925,
0.07232580333948135,
0.002333962358534336,
-0.031188424676656723,
0.6073065996170044,
0.31597083806991577,
-0.15894772112369537,
-0.10699225962162018,
0.16370859742164612,
0.5035051703453064,
-0.6606780886650085,
0.074918232858181,
-0.1885088086128235,
0.05945853516459465,
0.050986070185899734,
0.516956090927124,
0.27171778678894043,
0.30593833327293396,
0.12162267416715622,
-0.07537829130887985,
-0.29982689023017883,
0.2028273642063141,
0.25880685448646545,
0.36121809482574463,
-0.20544035732746124,
0.09837446361780167,
-0.1620800644159317,
0.1159505844116211,
-0.18939854204654694,
-0.08787882328033447,
-0.05775129795074463,
0.1876957267522812,
-0.1030355766415596,
-0.018280846998095512,
-0.2642348110675812,
0.05146444961428642,
-0.031539153307676315,
0.3885490298271179,
-0.010244152508676052,
-0.10277906060218811,
-0.23010611534118652,
0.15278959274291992,
0.06817741692066193,
-0.0534089095890522,
0.2742185890674591,
-0.14489568769931793,
-0.2985360026359558,
-0.145013689994812,
0.013673060573637486,
-0.05358140543103218,
-0.021079078316688538,
-0.0242108516395092,
0.4298156499862671,
0.06469079852104187,
-0.0873846486210823,
0.02769453264772892,
0.0022444797214120626,
0.1453479677438736,
0.11469180881977081,
0.2281084507703781,
0.09583746641874313,
0.026214102283120155,
0.13615331053733826,
0.33510157465934753,
0.052783988416194916,
-0.3552294671535492,
0.13390104472637177,
-0.43937817215919495,
-0.12965774536132812,
-0.057808034121990204,
0.2475418746471405,
0.30091241002082825,
-0.3606336712837219,
-0.13288024067878723,
0.45031583309173584,
0.15354739129543304,
-0.28653430938720703,
-0.11641672998666763,
-0.18298685550689697,
0.0641656368970871,
-0.1379850059747696,
0.2008393257856369,
0.10944754630327225,
-0.060606200248003006,
-0.22025467455387115,
0.17374354600906372,
0.3542885184288025,
0.12318764626979828,
-0.39585891366004944,
0.3194219172000885,
-0.18592098355293274,
0.1239868775010109,
0.31632763147354126,
0.20356938242912292,
0.26219886541366577,
0.029756562784314156,
-0.11876840144395828,
0.2451476752758026,
0.26783981919288635,
0.09121385961771011,
-0.2393343150615692,
-0.20316533744335175,
-0.07244393974542618,
0.27629968523979187,
0.08838201314210892,
0.002818520413711667,
0.1790754497051239,
0.335370272397995,
0.4524989426136017,
-0.2289246767759323,
0.027890097349882126,
0.35901975631713867,
-0.19493870437145233,
-0.06601493805646896,
-0.7122882604598999,
0.08242865651845932,
-0.21800388395786285,
-0.1749485433101654,
-0.1023460254073143,
0.07373092323541641,
0.4343533217906952,
0.09640087187290192,
-0.09047447144985199,
-0.19873860478401184,
0.07072851806879044,
-0.006839460227638483,
0.0945068746805191,
-0.32315346598625183,
0.4119291305541992,
0.10049514472484589,
-0.28496408462524414,
-0.11378190666437149,
0.32789117097854614,
0.6728410720825195,
0.40712130069732666,
-0.1261104941368103,
-0.3004501760005951,
-0.28806665539741516,
0.10282033681869507,
0.10326055437326431,
0.354062020778656,
0.3359221816062927,
0.13139943778514862,
0.21583668887615204,
-0.09179366379976273,
-0.03497966006398201,
-0.09275195747613907,
0.33172017335891724,
-0.06846748292446136,
0.24881982803344727,
-0.05473370477557182,
-0.15731658041477203,
-0.4111021161079407,
-0.0005268204258754849,
0.20151060819625854,
-0.5054787993431091,
0.22050978243350983,
0.5505586266517639,
0.18040800094604492,
0.15158918499946594,
-0.09970308095216751,
0.03228016942739487,
-0.07815073430538177,
0.444088339805603,
0.3804037570953369,
0.1010725125670433,
-0.3919535279273987,
-0.39860785007476807,
-0.2410694807767868,
0.1371297687292099,
-0.4373246729373932,
-0.13120000064373016,
0.2652820944786072,
0.1691051572561264,
0.24063600599765778,
0.019580252468585968,
0.11670464277267456,
0.16670937836170197,
-0.3454826772212982,
0.5820028185844421,
-0.27659371495246887,
0.21085740625858307,
0.14821378886699677,
0.08658003062009811,
0.02727983333170414,
-0.19826973974704742,
0.4266258776187897,
-0.015100201591849327,
-0.010772734880447388,
-0.36559388041496277,
0.026914112269878387,
0.17973899841308594,
0.21648189425468445,
0.25084954500198364,
0.07890112698078156,
0.2836631238460541,
-0.011375214904546738,
0.10577613860368729,
-0.3002665042877197,
-0.1518847495317459,
-0.17744065821170807,
0.3001047372817993,
0.0960739329457283,
0.03666083514690399,
-0.1852329969406128,
-0.21170476078987122,
0.034273527562618256,
-0.11691837757825851,
-0.0780775398015976,
-0.06073407083749771,
-0.3419032692909241,
0.13006769120693207,
-0.20002588629722595,
0.18688851594924927,
-0.03549559414386749,
0.11377881467342377,
0.10589629411697388,
0.2066839039325714,
-0.327229768037796,
-0.653934121131897,
0.7069844603538513,
-0.4853312075138092,
-0.4971397817134857,
-0.02324957214295864,
-0.0063088759779930115,
0.3170480728149414,
0.11487744748592377,
-0.13928790390491486,
-0.174790620803833,
0.2745010256767273,
0.11197108030319214,
-0.5378228425979614,
0.3033048212528229,
-0.07730332016944885,
0.04500548914074898,
-0.17533765733242035,
0.23361097276210785,
0.08318226039409637,
-0.22448411583900452,
-0.4705747961997986,
-0.6530274152755737
] |
https://github.com/huggingface/datasets/issues/1811 | Unable to add Multi-label Datasets | Thanks for adding this dataset! As far as I know `supervised_keys` is mostly a holdover from TFDS, but isn't really used, so feel free to drop it (@lhoestq or @thomwolf correct me if I'm wrong). It definitely shouldn't be blocking :) | I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as
`supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error :
```python
Traceback (most recent call last):
File "test_script.py", line 2, in <module>
d = load_dataset('./datasets/cifar100')
File "~/datasets/src/datasets/load.py", line 668, in load_dataset
**config_kwargs,
File "~/datasets/src/datasets/builder.py", line 896, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "~/datasets/src/datasets/builder.py", line 247, in __init__
info.update(self._info())
File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info
citation=_CITATION,
File "<string>", line 19, in __init__
File "~/datasets/src/datasets/info.py", line 136, in __post_init__
self.supervised_keys = SupervisedKeysData(*self.supervised_keys)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given
```
Is there a way I can fix this?
Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset?
Thanks,
Gunjan | 41 | Unable to add Multi-label Datasets
I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as
`supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error :
```python
Traceback (most recent call last):
File "test_script.py", line 2, in <module>
d = load_dataset('./datasets/cifar100')
File "~/datasets/src/datasets/load.py", line 668, in load_dataset
**config_kwargs,
File "~/datasets/src/datasets/builder.py", line 896, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "~/datasets/src/datasets/builder.py", line 247, in __init__
info.update(self._info())
File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info
citation=_CITATION,
File "<string>", line 19, in __init__
File "~/datasets/src/datasets/info.py", line 136, in __post_init__
self.supervised_keys = SupervisedKeysData(*self.supervised_keys)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given
```
Is there a way I can fix this?
Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset?
Thanks,
Gunjan
Thanks for adding this dataset! As far as I know `supervised_keys` is mostly a holdover from TFDS, but isn't really used, so feel free to drop it (@lhoestq or @thomwolf correct me if I'm wrong). It definitely shouldn't be blocking :) | [
0.021659499034285545,
-0.2712220549583435,
0.018146134912967682,
0.13295722007751465,
0.3712172508239746,
0.31664982438087463,
0.6164795756340027,
-0.4762452244758606,
0.19942544400691986,
0.2660481631755829,
-0.21772587299346924,
0.15355278551578522,
-0.27598854899406433,
0.34793272614479065,
0.10803236812353134,
-0.12047624588012695,
0.17809619009494781,
-0.2174014449119568,
0.02560064196586609,
-0.033267855644226074,
-0.2215411216020584,
0.007429564371705055,
-0.23462486267089844,
-0.2840358316898346,
-0.6864251494407654,
-0.2522575557231903,
-0.3487630784511566,
-0.1600373238325119,
-0.2611859440803528,
-0.6842920184135437,
0.17423467338085175,
0.327616810798645,
-0.17997996509075165,
0.486816942691803,
-0.00011896973592229187,
0.0539398230612278,
0.006014693528413773,
-0.02701377123594284,
-0.1315760463476181,
-0.08840832114219666,
0.033895865082740784,
-0.0997658222913742,
-0.023080771788954735,
-0.18768402934074402,
-0.020590849220752716,
-0.32165947556495667,
-0.047854453325271606,
-0.26782965660095215,
0.2622791826725006,
0.17089833319187164,
0.14470048248767853,
-0.1211823895573616,
0.3119575083255768,
-0.17778465151786804,
-0.034004244953393936,
0.2013508528470993,
-0.12939779460430145,
0.15727455914020538,
0.13255591690540314,
-0.16186144948005676,
0.4810110926628113,
0.2527092695236206,
-0.004530190955847502,
-0.1883503496646881,
0.41284966468811035,
-0.04078114405274391,
-0.14796869456768036,
-0.5755075216293335,
0.15249250829219818,
0.3097068965435028,
0.6528836488723755,
-0.03769710659980774,
-0.6485278010368347,
-0.14410246908664703,
0.3986091613769531,
-0.16047388315200806,
-0.1403428018093109,
0.01043163612484932,
-0.003859524382278323,
-0.2375006526708603,
-0.36924439668655396,
-0.0498812235891819,
-0.2118249237537384,
0.2764361798763275,
0.3331710398197174,
0.3576142489910126,
0.05226845666766167,
0.35098788142204285,
0.2702970802783966,
-0.05738404765725136,
-0.025262907147407532,
-0.1056550145149231,
0.04515519365668297,
0.22215069830417633,
-0.2898242771625519,
0.17264696955680847,
-0.04759792983531952,
0.13915203511714935,
0.14510293304920197,
-0.10272166132926941,
0.05255766585469246,
-0.3232678472995758,
-0.21171914041042328,
0.11969360709190369,
0.10273332893848419,
-0.019669314846396446,
-0.002272822195664048,
0.40259239077568054,
-0.03666441887617111,
-0.027458753436803818,
0.11020983755588531,
-0.23520296812057495,
-0.06834430247545242,
-0.12961062788963318,
0.36195874214172363,
0.187002494931221,
-0.14242197573184967,
0.1166466549038887,
0.04622413218021393,
-0.15703225135803223,
-0.06115320324897766,
-0.03227608650922775,
0.3567192256450653,
0.3096892535686493,
0.23467813432216644,
0.013895074836909771,
0.10588482767343521,
0.4291902780532837,
0.1078813225030899,
0.05489742010831833,
-0.1495378017425537,
0.3543500006198883,
-0.14015674591064453,
0.021800657734274864,
0.2909843623638153,
0.0014130101772025228,
0.127166748046875,
0.32069799304008484,
0.25569334626197815,
-0.14872390031814575,
0.04745396971702576,
-0.22020038962364197,
0.19376160204410553,
0.3569909930229187,
-0.025585688650608063,
0.21459119021892548,
-0.045678168535232544,
-0.3797813355922699,
-0.11004050076007843,
0.045266468077898026,
-0.331182599067688,
-0.025779947638511658,
-0.052225690335035324,
0.06997708231210709,
0.19530808925628662,
-0.09171932190656662,
-0.47711652517318726,
0.20146870613098145,
0.12351599335670471,
0.03392057493329048,
-0.07022540271282196,
-0.20455630123615265,
-0.2669657766819,
-0.2525109052658081,
0.2751820385456085,
0.4011731743812561,
-0.2575546205043793,
-0.2091664969921112,
-0.11507057398557663,
0.16939076781272888,
-0.20349393784999847,
0.21283672749996185,
-0.26207324862480164,
0.4487380385398865,
-0.09403064846992493,
0.06289301067590714,
0.04267407953739166,
-0.8922803401947021,
-0.06668287515640259,
-0.014757692813873291,
0.08665992319583893,
-0.12850303947925568,
0.1614069789648056,
0.3256177306175232,
0.1087990552186966,
0.02897915057837963,
0.14260274171829224,
0.11376037448644638,
-0.19244980812072754,
-0.04820965602993965,
0.17883744835853577,
0.15658646821975708,
-0.1048276275396347,
0.3070019781589508,
0.2102842479944229,
-0.21032465994358063,
0.15642191469669342,
-0.15666607022285461,
-0.016031797975301743,
-0.16356898844242096,
0.12073871493339539,
0.37951651215553284,
0.20923759043216705,
-0.04998687654733658,
0.031323689967393875,
0.03800375014543533,
-0.4350195527076721,
0.43391549587249756,
0.2955798804759979,
0.30499541759490967,
-0.10492821782827377,
-0.1757052093744278,
-0.011609227396547794,
0.06134895235300064,
-0.4852900207042694,
-0.11461743712425232,
0.06567411869764328,
0.2741546332836151,
-0.09148110449314117,
-0.059961024671792984,
0.020595954731106758,
0.13930054008960724,
0.4397166967391968,
0.16319403052330017,
0.08983676880598068,
0.03510972484946251,
-0.12541304528713226,
0.0317969024181366,
-0.09822762757539749,
0.0179513581097126,
0.4089219570159912,
-0.06327380239963531,
0.03488578647375107,
0.45611292123794556,
0.18558000028133392,
-0.30286628007888794,
-0.15818525850772858,
0.06319411844015121,
0.40929269790649414,
-0.2760539948940277,
-0.29409417510032654,
-0.20074015855789185,
0.23204265534877777,
-0.3411727845668793,
-0.15501394867897034,
0.07752623409032822,
-0.3345646262168884,
0.2867105305194855,
-0.006310468539595604,
0.19574743509292603,
0.13473142683506012,
0.10282225906848907,
-0.11359108239412308,
-0.20674926042556763,
0.0379195362329483,
-0.1822337657213211,
-0.02283569611608982,
-0.23546479642391205,
0.04138757660984993,
0.06557168811559677,
0.02581535279750824,
0.040096864104270935,
-0.06107035279273987,
-0.053584832698106766,
0.028656592592597008,
0.24310728907585144,
0.1560308039188385,
0.5032750368118286,
0.2892153561115265,
0.26657992601394653,
-0.16509178280830383,
-0.20136243104934692,
-0.2896963059902191,
0.05789397656917572,
0.10029495507478714,
-0.08127164840698242,
0.18571829795837402,
0.19858108460903168,
0.18826797604560852,
0.03348049521446228,
-0.22378313541412354,
-0.4800538718700409,
0.3684946894645691,
0.13112430274486542,
-0.29117900133132935,
0.013699921779334545,
-0.3054613173007965,
-0.2097308337688446,
-0.04781857132911682,
-0.2719692885875702,
-0.03293916583061218,
-0.27319368720054626,
0.10028469562530518,
0.23038296401500702,
0.11108872294425964,
0.2187400460243225,
0.05057316645979881,
0.22456249594688416,
-0.2533397078514099,
0.07365360856056213,
-0.029004069045186043,
-0.10451280325651169,
-0.0029993783682584763,
-0.02655743435025215,
0.3638053834438324,
-0.3310752809047699,
0.5024329423904419,
0.08928554505109787,
-0.1429113894701004,
-0.20491628348827362,
-0.4361688792705536,
0.02774621546268463,
-0.17077112197875977,
0.2560725212097168,
0.07926849275827408,
-0.04537882283329964,
-0.12055367231369019,
-0.25282835960388184,
0.3231552243232727,
0.14333023130893707,
-0.06718254089355469,
-0.0222600307315588,
-0.20926500856876373,
-0.318176805973053,
-0.3291822671890259,
-0.001901074661873281,
-0.2415914237499237,
-0.03133475035429001,
0.1783396452665329,
0.003908936399966478,
-0.06209809333086014,
0.6229846477508545,
0.1421976387500763,
-0.326935738325119,
0.1114383339881897,
0.10879184305667877,
-0.020463326945900917,
-0.3791365325450897,
0.2307923436164856,
-0.32808324694633484,
-0.24581602215766907,
0.111274853348732,
-0.20785430073738098,
0.4561767876148224,
-0.023630013689398766,
-0.07424119859933853,
-0.05167023837566376,
0.06004408001899719,
0.025043094530701637,
-0.024220937862992287,
0.22140447795391083,
0.12332719564437866,
0.12238198518753052,
0.0012234305031597614,
-0.23970721662044525,
-0.43327149748802185,
0.3612814247608185,
-0.23037882149219513,
0.23025161027908325,
-0.34530457854270935,
0.24058301746845245,
0.07447774708271027,
0.2453039288520813,
0.008090449497103691,
0.04155125841498375,
0.4380139112472534,
-0.218844935297966,
0.3824880123138428,
-0.19673553109169006,
-0.5095449090003967,
0.2663567364215851,
0.006804065778851509,
0.07467465102672577,
-0.05643098056316376,
0.0025120170321315527,
-0.15345612168312073,
-0.13697406649589539,
0.4596610367298126,
-0.298248827457428,
-0.07141512632369995,
-0.1395440548658371,
-0.06140076369047165,
0.17932265996932983,
-0.128679558634758,
-0.23860050737857819,
-0.4252120554447174,
-0.09792520850896835,
-0.3168432116508484,
0.08370564877986908,
0.030057229101657867,
-0.08361350744962692,
-0.5794289112091064,
-0.27996641397476196,
-0.20954030752182007,
0.09627498686313629,
0.2015601396560669,
0.19982215762138367,
-0.25014400482177734,
0.30737316608428955,
0.0423247255384922,
0.07501137256622314,
0.6299782395362854,
-0.5078380703926086,
-0.20720934867858887,
0.40640243887901306,
0.08233492076396942,
-0.4420148432254791,
-0.3596886992454529,
-0.06376273185014725,
0.2939629852771759,
0.05987968295812607,
0.33752572536468506,
-0.3172760009765625,
0.17529763281345367,
0.1442774087190628,
0.02907297946512699,
-0.11574674397706985,
-0.2602500319480896,
-0.16506975889205933,
-0.3463687300682068,
-0.25429287552833557,
0.038758233189582825,
0.26105570793151855,
0.2220250815153122,
0.07561081647872925,
0.05578775331377983,
0.045199498534202576,
0.047186944633722305,
0.10670985281467438,
-0.007339751813560724,
0.08915945887565613,
0.5999581813812256,
0.35219112038612366,
0.04424962028861046,
-0.22389431297779083,
0.5654516816139221,
0.4997173845767975,
-0.34988996386528015,
-0.2776917815208435,
-0.0696076825261116,
-0.2492358237504959,
0.2417488545179367,
-0.07404177635908127,
0.24508990347385406,
0.20742328464984894,
0.2566078305244446,
0.032664041966199875,
0.016942761838436127,
0.19014543294906616,
0.5320225954055786,
-0.03386440500617027,
-0.5876461267471313,
-0.3630560040473938,
0.1882239580154419,
0.08403728902339935,
-0.09250723570585251,
0.39056819677352905,
0.03558899089694023,
-0.3100586235523224,
0.20690232515335083,
0.15201623737812042,
0.7129698991775513,
-0.504086971282959,
0.20063847303390503,
-0.128106027841568,
-0.051407258957624435,
0.6691423654556274,
0.02591470070183277,
0.10605469346046448,
-0.16509123146533966,
-0.24148502945899963,
0.10752075910568237,
0.06314408034086227,
0.05304630100727081,
0.3399398624897003,
-0.14769229292869568,
0.10400810092687607,
-0.19961705803871155,
0.1442144215106964,
-0.22863860428333282,
0.09427838772535324,
0.24139118194580078,
-0.3566121757030487,
0.3155283033847809,
0.11481241881847382,
-0.03792557865381241,
-0.2212827056646347,
0.014740345068275928,
-0.013145562261343002,
-0.04855405166745186,
-0.27626413106918335,
-0.4560350179672241,
-0.10824910551309586,
-0.32643505930900574,
0.3514827489852905,
-0.05456630513072014,
-0.0829475075006485,
0.09229131788015366,
0.3642335534095764,
0.6377292275428772,
-0.08701802045106888,
-0.012160287238657475,
0.19312547147274017,
-0.007270601112395525,
-0.18534088134765625,
-0.41563424468040466,
-0.258394718170166,
0.15830549597740173,
-0.09677419066429138,
-0.3491544723510742,
0.06303323805332184,
0.0483211949467659,
-0.2924514710903168,
-0.17371775209903717,
0.11124113947153091,
-0.1338454782962799,
0.08430731296539307,
0.019452786073088646,
0.2658883333206177,
0.2253151386976242,
-0.31937727332115173,
0.030435610562562943,
0.05226840823888779,
-0.09751642495393753,
0.3346409797668457,
-0.1579446643590927,
0.02924356795847416,
-0.0027382634580135345,
0.33276185393333435,
0.028551310300827026,
0.22656327486038208,
0.41726329922676086,
-0.019538693130016327,
0.04415003955364227,
-0.07076340913772583,
-0.07859791070222855,
0.28072279691696167,
-0.35690462589263916,
-0.021592238917946815,
0.45095154643058777,
0.06820931285619736,
-0.008282613940536976,
0.4070379137992859,
0.006086486857384443,
0.10329738259315491,
0.08792973309755325,
-0.12278884649276733,
-0.41403186321258545,
0.057180024683475494,
-0.4007036089897156,
0.27875614166259766,
-0.04079338535666466,
0.44720426201820374,
0.1755109578371048,
0.4107343554496765,
-0.20101788640022278,
-0.06090420112013817,
-0.29435575008392334,
-0.004119182471185923,
0.4779883325099945,
0.055954523384571075,
-0.1362130045890808,
0.08659312129020691,
0.10840272903442383,
-0.18534605205059052,
0.17125356197357178,
-0.031115014106035233,
-0.17494426667690277,
0.12467283010482788,
0.25140735507011414,
0.17497870326042175,
0.013920367695391178,
-0.43095096945762634,
-0.1583898365497589,
-0.11432008445262909,
0.2133871614933014,
0.2629471719264984,
-0.09498731046915054,
0.31221362948417664,
-0.4964767396450043,
0.003802324878051877,
0.023873595520853996,
0.14402809739112854,
0.04208526760339737,
-0.060759302228689194,
0.3293672502040863,
0.07902486622333527,
0.1272115260362625,
-0.14993298053741455,
-0.3488270044326782,
0.04825378209352493,
-0.44326967000961304,
-0.12889964878559113,
0.0841793343424797,
-0.3632189631462097,
0.44646355509757996,
0.2567119896411896,
0.23998969793319702,
-0.1217627078294754,
-0.2593410611152649,
0.42965948581695557,
0.0848013386130333,
0.07337229698896408,
-0.2197781354188919,
-0.41962769627571106,
-0.008430829271674156,
0.023885386064648628,
0.14136633276939392,
0.2538611590862274,
0.21975423395633698,
-0.08435683697462082,
0.017037419602274895,
-0.12056651711463928,
0.05921199545264244,
0.07183396816253662,
0.11950477212667465,
0.1281977742910385,
-0.07267645746469498,
0.08376406133174896,
0.28198373317718506,
0.23153623938560486,
0.060066740959882736,
0.19486641883850098,
-0.07223823666572571,
0.30282750725746155,
-0.1764681488275528,
-0.07571402937173843,
0.24055038392543793,
-0.35588976740837097,
0.49762198328971863,
-0.1813223510980606,
-0.006575141567736864,
-0.04458751901984215,
-0.0960167795419693,
0.20089232921600342,
-0.2110217958688736,
-0.3887048661708832,
-0.2711663246154785,
0.32183364033699036,
-0.13058602809906006,
-0.10666064918041229,
-0.1825624704360962,
-0.10564538091421127,
-0.056314438581466675,
-0.05844888836145401,
0.06906374543905258,
-0.191435769200325,
0.3167053759098053,
-0.10986284166574478,
-0.15673759579658508,
-0.12623530626296997,
-0.43054649233818054,
0.46188434958457947,
0.2834602892398834,
-0.2831428647041321,
0.20363736152648926,
0.3541093170642853,
-0.44104599952697754,
0.18974241614341736,
0.332236111164093,
0.6006935834884644,
0.2195315659046173,
0.29289793968200684,
0.08387761563062668,
-0.17606398463249207,
-0.10788995027542114,
0.174213245511055,
0.04964376240968704,
0.4417838156223297,
-0.06862729042768478,
0.1369451880455017,
0.006778202019631863,
-0.08323480188846588,
0.29801520705223083,
0.18124209344387054,
0.3393847644329071,
-0.016795611009001732,
-0.37503188848495483,
-0.03410705551505089,
-0.17806099355220795,
-0.0763004720211029,
0.35836488008499146,
-0.3215564489364624,
-0.06960879266262054,
0.2845405638217926,
-0.08040542900562286,
0.014341410249471664,
-0.3408436179161072,
0.01847863756120205,
0.17676851153373718,
0.4923861026763916,
0.18729545176029205,
0.16532883048057556,
-0.23729471862316132,
-0.12396157532930374,
-0.5642417669296265,
-0.20429754257202148,
-0.3196801543235779,
-0.23375146090984344,
-0.05779320001602173,
-0.09947482496500015,
0.36410778760910034,
-0.2035190463066101,
0.6210823655128479,
-0.2856467068195343,
0.38483166694641113,
0.38697487115859985,
-0.2538062632083893,
0.06577052175998688,
0.20190110802650452,
0.07720478624105453,
0.03969946503639221,
-0.15819810330867767,
-0.08727168291807175,
0.03688538074493408,
0.0007560153608210385,
-0.10404176265001297,
0.16268591582775116,
-0.20129148662090302,
-0.22074481844902039,
0.1988331824541092,
0.0763104185461998,
0.8045889139175415,
-0.055860139429569244,
0.06465616822242737,
-0.14962032437324524,
-0.05606165528297424,
-0.10255483537912369,
0.06812088191509247,
0.42821523547172546,
0.5867258906364441,
-0.29106757044792175,
-0.06611691415309906,
-0.0673987939953804,
-0.016199767589569092,
-0.09806109219789505,
-0.047591980546712875,
-0.2880604565143585,
0.3186066150665283,
-0.019152402877807617,
0.005598852876573801,
0.2622625529766083,
0.2214764654636383,
-0.05654257908463478,
0.040598250925540924,
-0.02613944560289383,
-0.369487464427948,
0.5187727808952332,
-0.1914699226617813,
-0.1348084658384323,
-0.17388774454593658,
0.01397272851318121,
0.05077445134520531,
0.10487367957830429,
-0.3421269357204437,
0.12844206392765045,
0.2554287612438202,
0.07507649064064026,
-0.7180346250534058,
0.4141141474246979,
-0.215064138174057,
-0.05440469831228256,
0.08227554708719254,
0.0061148484237492085,
-0.11764296889305115,
0.0204468984156847,
-0.13533306121826172,
-0.1060190424323082
] |
https://github.com/huggingface/datasets/issues/1811 | Unable to add Multi-label Datasets | Thanks @yjernite @lhoestq
The template for new dataset makes it slightly confusing. I suppose the comment suggesting its update can be removed. | I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as
`supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error :
```python
Traceback (most recent call last):
File "test_script.py", line 2, in <module>
d = load_dataset('./datasets/cifar100')
File "~/datasets/src/datasets/load.py", line 668, in load_dataset
**config_kwargs,
File "~/datasets/src/datasets/builder.py", line 896, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "~/datasets/src/datasets/builder.py", line 247, in __init__
info.update(self._info())
File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info
citation=_CITATION,
File "<string>", line 19, in __init__
File "~/datasets/src/datasets/info.py", line 136, in __post_init__
self.supervised_keys = SupervisedKeysData(*self.supervised_keys)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given
```
Is there a way I can fix this?
Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset?
Thanks,
Gunjan | 22 | Unable to add Multi-label Datasets
I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as
`supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error :
```python
Traceback (most recent call last):
File "test_script.py", line 2, in <module>
d = load_dataset('./datasets/cifar100')
File "~/datasets/src/datasets/load.py", line 668, in load_dataset
**config_kwargs,
File "~/datasets/src/datasets/builder.py", line 896, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "~/datasets/src/datasets/builder.py", line 247, in __init__
info.update(self._info())
File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info
citation=_CITATION,
File "<string>", line 19, in __init__
File "~/datasets/src/datasets/info.py", line 136, in __post_init__
self.supervised_keys = SupervisedKeysData(*self.supervised_keys)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given
```
Is there a way I can fix this?
Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset?
Thanks,
Gunjan
Thanks @yjernite @lhoestq
The template for new dataset makes it slightly confusing. I suppose the comment suggesting its update can be removed. | [
0.021659499034285545,
-0.2712220549583435,
0.018146134912967682,
0.13295722007751465,
0.3712172508239746,
0.31664982438087463,
0.6164795756340027,
-0.4762452244758606,
0.19942544400691986,
0.2660481631755829,
-0.21772587299346924,
0.15355278551578522,
-0.27598854899406433,
0.34793272614479065,
0.10803236812353134,
-0.12047624588012695,
0.17809619009494781,
-0.2174014449119568,
0.02560064196586609,
-0.033267855644226074,
-0.2215411216020584,
0.007429564371705055,
-0.23462486267089844,
-0.2840358316898346,
-0.6864251494407654,
-0.2522575557231903,
-0.3487630784511566,
-0.1600373238325119,
-0.2611859440803528,
-0.6842920184135437,
0.17423467338085175,
0.327616810798645,
-0.17997996509075165,
0.486816942691803,
-0.00011896973592229187,
0.0539398230612278,
0.006014693528413773,
-0.02701377123594284,
-0.1315760463476181,
-0.08840832114219666,
0.033895865082740784,
-0.0997658222913742,
-0.023080771788954735,
-0.18768402934074402,
-0.020590849220752716,
-0.32165947556495667,
-0.047854453325271606,
-0.26782965660095215,
0.2622791826725006,
0.17089833319187164,
0.14470048248767853,
-0.1211823895573616,
0.3119575083255768,
-0.17778465151786804,
-0.034004244953393936,
0.2013508528470993,
-0.12939779460430145,
0.15727455914020538,
0.13255591690540314,
-0.16186144948005676,
0.4810110926628113,
0.2527092695236206,
-0.004530190955847502,
-0.1883503496646881,
0.41284966468811035,
-0.04078114405274391,
-0.14796869456768036,
-0.5755075216293335,
0.15249250829219818,
0.3097068965435028,
0.6528836488723755,
-0.03769710659980774,
-0.6485278010368347,
-0.14410246908664703,
0.3986091613769531,
-0.16047388315200806,
-0.1403428018093109,
0.01043163612484932,
-0.003859524382278323,
-0.2375006526708603,
-0.36924439668655396,
-0.0498812235891819,
-0.2118249237537384,
0.2764361798763275,
0.3331710398197174,
0.3576142489910126,
0.05226845666766167,
0.35098788142204285,
0.2702970802783966,
-0.05738404765725136,
-0.025262907147407532,
-0.1056550145149231,
0.04515519365668297,
0.22215069830417633,
-0.2898242771625519,
0.17264696955680847,
-0.04759792983531952,
0.13915203511714935,
0.14510293304920197,
-0.10272166132926941,
0.05255766585469246,
-0.3232678472995758,
-0.21171914041042328,
0.11969360709190369,
0.10273332893848419,
-0.019669314846396446,
-0.002272822195664048,
0.40259239077568054,
-0.03666441887617111,
-0.027458753436803818,
0.11020983755588531,
-0.23520296812057495,
-0.06834430247545242,
-0.12961062788963318,
0.36195874214172363,
0.187002494931221,
-0.14242197573184967,
0.1166466549038887,
0.04622413218021393,
-0.15703225135803223,
-0.06115320324897766,
-0.03227608650922775,
0.3567192256450653,
0.3096892535686493,
0.23467813432216644,
0.013895074836909771,
0.10588482767343521,
0.4291902780532837,
0.1078813225030899,
0.05489742010831833,
-0.1495378017425537,
0.3543500006198883,
-0.14015674591064453,
0.021800657734274864,
0.2909843623638153,
0.0014130101772025228,
0.127166748046875,
0.32069799304008484,
0.25569334626197815,
-0.14872390031814575,
0.04745396971702576,
-0.22020038962364197,
0.19376160204410553,
0.3569909930229187,
-0.025585688650608063,
0.21459119021892548,
-0.045678168535232544,
-0.3797813355922699,
-0.11004050076007843,
0.045266468077898026,
-0.331182599067688,
-0.025779947638511658,
-0.052225690335035324,
0.06997708231210709,
0.19530808925628662,
-0.09171932190656662,
-0.47711652517318726,
0.20146870613098145,
0.12351599335670471,
0.03392057493329048,
-0.07022540271282196,
-0.20455630123615265,
-0.2669657766819,
-0.2525109052658081,
0.2751820385456085,
0.4011731743812561,
-0.2575546205043793,
-0.2091664969921112,
-0.11507057398557663,
0.16939076781272888,
-0.20349393784999847,
0.21283672749996185,
-0.26207324862480164,
0.4487380385398865,
-0.09403064846992493,
0.06289301067590714,
0.04267407953739166,
-0.8922803401947021,
-0.06668287515640259,
-0.014757692813873291,
0.08665992319583893,
-0.12850303947925568,
0.1614069789648056,
0.3256177306175232,
0.1087990552186966,
0.02897915057837963,
0.14260274171829224,
0.11376037448644638,
-0.19244980812072754,
-0.04820965602993965,
0.17883744835853577,
0.15658646821975708,
-0.1048276275396347,
0.3070019781589508,
0.2102842479944229,
-0.21032465994358063,
0.15642191469669342,
-0.15666607022285461,
-0.016031797975301743,
-0.16356898844242096,
0.12073871493339539,
0.37951651215553284,
0.20923759043216705,
-0.04998687654733658,
0.031323689967393875,
0.03800375014543533,
-0.4350195527076721,
0.43391549587249756,
0.2955798804759979,
0.30499541759490967,
-0.10492821782827377,
-0.1757052093744278,
-0.011609227396547794,
0.06134895235300064,
-0.4852900207042694,
-0.11461743712425232,
0.06567411869764328,
0.2741546332836151,
-0.09148110449314117,
-0.059961024671792984,
0.020595954731106758,
0.13930054008960724,
0.4397166967391968,
0.16319403052330017,
0.08983676880598068,
0.03510972484946251,
-0.12541304528713226,
0.0317969024181366,
-0.09822762757539749,
0.0179513581097126,
0.4089219570159912,
-0.06327380239963531,
0.03488578647375107,
0.45611292123794556,
0.18558000028133392,
-0.30286628007888794,
-0.15818525850772858,
0.06319411844015121,
0.40929269790649414,
-0.2760539948940277,
-0.29409417510032654,
-0.20074015855789185,
0.23204265534877777,
-0.3411727845668793,
-0.15501394867897034,
0.07752623409032822,
-0.3345646262168884,
0.2867105305194855,
-0.006310468539595604,
0.19574743509292603,
0.13473142683506012,
0.10282225906848907,
-0.11359108239412308,
-0.20674926042556763,
0.0379195362329483,
-0.1822337657213211,
-0.02283569611608982,
-0.23546479642391205,
0.04138757660984993,
0.06557168811559677,
0.02581535279750824,
0.040096864104270935,
-0.06107035279273987,
-0.053584832698106766,
0.028656592592597008,
0.24310728907585144,
0.1560308039188385,
0.5032750368118286,
0.2892153561115265,
0.26657992601394653,
-0.16509178280830383,
-0.20136243104934692,
-0.2896963059902191,
0.05789397656917572,
0.10029495507478714,
-0.08127164840698242,
0.18571829795837402,
0.19858108460903168,
0.18826797604560852,
0.03348049521446228,
-0.22378313541412354,
-0.4800538718700409,
0.3684946894645691,
0.13112430274486542,
-0.29117900133132935,
0.013699921779334545,
-0.3054613173007965,
-0.2097308337688446,
-0.04781857132911682,
-0.2719692885875702,
-0.03293916583061218,
-0.27319368720054626,
0.10028469562530518,
0.23038296401500702,
0.11108872294425964,
0.2187400460243225,
0.05057316645979881,
0.22456249594688416,
-0.2533397078514099,
0.07365360856056213,
-0.029004069045186043,
-0.10451280325651169,
-0.0029993783682584763,
-0.02655743435025215,
0.3638053834438324,
-0.3310752809047699,
0.5024329423904419,
0.08928554505109787,
-0.1429113894701004,
-0.20491628348827362,
-0.4361688792705536,
0.02774621546268463,
-0.17077112197875977,
0.2560725212097168,
0.07926849275827408,
-0.04537882283329964,
-0.12055367231369019,
-0.25282835960388184,
0.3231552243232727,
0.14333023130893707,
-0.06718254089355469,
-0.0222600307315588,
-0.20926500856876373,
-0.318176805973053,
-0.3291822671890259,
-0.001901074661873281,
-0.2415914237499237,
-0.03133475035429001,
0.1783396452665329,
0.003908936399966478,
-0.06209809333086014,
0.6229846477508545,
0.1421976387500763,
-0.326935738325119,
0.1114383339881897,
0.10879184305667877,
-0.020463326945900917,
-0.3791365325450897,
0.2307923436164856,
-0.32808324694633484,
-0.24581602215766907,
0.111274853348732,
-0.20785430073738098,
0.4561767876148224,
-0.023630013689398766,
-0.07424119859933853,
-0.05167023837566376,
0.06004408001899719,
0.025043094530701637,
-0.024220937862992287,
0.22140447795391083,
0.12332719564437866,
0.12238198518753052,
0.0012234305031597614,
-0.23970721662044525,
-0.43327149748802185,
0.3612814247608185,
-0.23037882149219513,
0.23025161027908325,
-0.34530457854270935,
0.24058301746845245,
0.07447774708271027,
0.2453039288520813,
0.008090449497103691,
0.04155125841498375,
0.4380139112472534,
-0.218844935297966,
0.3824880123138428,
-0.19673553109169006,
-0.5095449090003967,
0.2663567364215851,
0.006804065778851509,
0.07467465102672577,
-0.05643098056316376,
0.0025120170321315527,
-0.15345612168312073,
-0.13697406649589539,
0.4596610367298126,
-0.298248827457428,
-0.07141512632369995,
-0.1395440548658371,
-0.06140076369047165,
0.17932265996932983,
-0.128679558634758,
-0.23860050737857819,
-0.4252120554447174,
-0.09792520850896835,
-0.3168432116508484,
0.08370564877986908,
0.030057229101657867,
-0.08361350744962692,
-0.5794289112091064,
-0.27996641397476196,
-0.20954030752182007,
0.09627498686313629,
0.2015601396560669,
0.19982215762138367,
-0.25014400482177734,
0.30737316608428955,
0.0423247255384922,
0.07501137256622314,
0.6299782395362854,
-0.5078380703926086,
-0.20720934867858887,
0.40640243887901306,
0.08233492076396942,
-0.4420148432254791,
-0.3596886992454529,
-0.06376273185014725,
0.2939629852771759,
0.05987968295812607,
0.33752572536468506,
-0.3172760009765625,
0.17529763281345367,
0.1442774087190628,
0.02907297946512699,
-0.11574674397706985,
-0.2602500319480896,
-0.16506975889205933,
-0.3463687300682068,
-0.25429287552833557,
0.038758233189582825,
0.26105570793151855,
0.2220250815153122,
0.07561081647872925,
0.05578775331377983,
0.045199498534202576,
0.047186944633722305,
0.10670985281467438,
-0.007339751813560724,
0.08915945887565613,
0.5999581813812256,
0.35219112038612366,
0.04424962028861046,
-0.22389431297779083,
0.5654516816139221,
0.4997173845767975,
-0.34988996386528015,
-0.2776917815208435,
-0.0696076825261116,
-0.2492358237504959,
0.2417488545179367,
-0.07404177635908127,
0.24508990347385406,
0.20742328464984894,
0.2566078305244446,
0.032664041966199875,
0.016942761838436127,
0.19014543294906616,
0.5320225954055786,
-0.03386440500617027,
-0.5876461267471313,
-0.3630560040473938,
0.1882239580154419,
0.08403728902339935,
-0.09250723570585251,
0.39056819677352905,
0.03558899089694023,
-0.3100586235523224,
0.20690232515335083,
0.15201623737812042,
0.7129698991775513,
-0.504086971282959,
0.20063847303390503,
-0.128106027841568,
-0.051407258957624435,
0.6691423654556274,
0.02591470070183277,
0.10605469346046448,
-0.16509123146533966,
-0.24148502945899963,
0.10752075910568237,
0.06314408034086227,
0.05304630100727081,
0.3399398624897003,
-0.14769229292869568,
0.10400810092687607,
-0.19961705803871155,
0.1442144215106964,
-0.22863860428333282,
0.09427838772535324,
0.24139118194580078,
-0.3566121757030487,
0.3155283033847809,
0.11481241881847382,
-0.03792557865381241,
-0.2212827056646347,
0.014740345068275928,
-0.013145562261343002,
-0.04855405166745186,
-0.27626413106918335,
-0.4560350179672241,
-0.10824910551309586,
-0.32643505930900574,
0.3514827489852905,
-0.05456630513072014,
-0.0829475075006485,
0.09229131788015366,
0.3642335534095764,
0.6377292275428772,
-0.08701802045106888,
-0.012160287238657475,
0.19312547147274017,
-0.007270601112395525,
-0.18534088134765625,
-0.41563424468040466,
-0.258394718170166,
0.15830549597740173,
-0.09677419066429138,
-0.3491544723510742,
0.06303323805332184,
0.0483211949467659,
-0.2924514710903168,
-0.17371775209903717,
0.11124113947153091,
-0.1338454782962799,
0.08430731296539307,
0.019452786073088646,
0.2658883333206177,
0.2253151386976242,
-0.31937727332115173,
0.030435610562562943,
0.05226840823888779,
-0.09751642495393753,
0.3346409797668457,
-0.1579446643590927,
0.02924356795847416,
-0.0027382634580135345,
0.33276185393333435,
0.028551310300827026,
0.22656327486038208,
0.41726329922676086,
-0.019538693130016327,
0.04415003955364227,
-0.07076340913772583,
-0.07859791070222855,
0.28072279691696167,
-0.35690462589263916,
-0.021592238917946815,
0.45095154643058777,
0.06820931285619736,
-0.008282613940536976,
0.4070379137992859,
0.006086486857384443,
0.10329738259315491,
0.08792973309755325,
-0.12278884649276733,
-0.41403186321258545,
0.057180024683475494,
-0.4007036089897156,
0.27875614166259766,
-0.04079338535666466,
0.44720426201820374,
0.1755109578371048,
0.4107343554496765,
-0.20101788640022278,
-0.06090420112013817,
-0.29435575008392334,
-0.004119182471185923,
0.4779883325099945,
0.055954523384571075,
-0.1362130045890808,
0.08659312129020691,
0.10840272903442383,
-0.18534605205059052,
0.17125356197357178,
-0.031115014106035233,
-0.17494426667690277,
0.12467283010482788,
0.25140735507011414,
0.17497870326042175,
0.013920367695391178,
-0.43095096945762634,
-0.1583898365497589,
-0.11432008445262909,
0.2133871614933014,
0.2629471719264984,
-0.09498731046915054,
0.31221362948417664,
-0.4964767396450043,
0.003802324878051877,
0.023873595520853996,
0.14402809739112854,
0.04208526760339737,
-0.060759302228689194,
0.3293672502040863,
0.07902486622333527,
0.1272115260362625,
-0.14993298053741455,
-0.3488270044326782,
0.04825378209352493,
-0.44326967000961304,
-0.12889964878559113,
0.0841793343424797,
-0.3632189631462097,
0.44646355509757996,
0.2567119896411896,
0.23998969793319702,
-0.1217627078294754,
-0.2593410611152649,
0.42965948581695557,
0.0848013386130333,
0.07337229698896408,
-0.2197781354188919,
-0.41962769627571106,
-0.008430829271674156,
0.023885386064648628,
0.14136633276939392,
0.2538611590862274,
0.21975423395633698,
-0.08435683697462082,
0.017037419602274895,
-0.12056651711463928,
0.05921199545264244,
0.07183396816253662,
0.11950477212667465,
0.1281977742910385,
-0.07267645746469498,
0.08376406133174896,
0.28198373317718506,
0.23153623938560486,
0.060066740959882736,
0.19486641883850098,
-0.07223823666572571,
0.30282750725746155,
-0.1764681488275528,
-0.07571402937173843,
0.24055038392543793,
-0.35588976740837097,
0.49762198328971863,
-0.1813223510980606,
-0.006575141567736864,
-0.04458751901984215,
-0.0960167795419693,
0.20089232921600342,
-0.2110217958688736,
-0.3887048661708832,
-0.2711663246154785,
0.32183364033699036,
-0.13058602809906006,
-0.10666064918041229,
-0.1825624704360962,
-0.10564538091421127,
-0.056314438581466675,
-0.05844888836145401,
0.06906374543905258,
-0.191435769200325,
0.3167053759098053,
-0.10986284166574478,
-0.15673759579658508,
-0.12623530626296997,
-0.43054649233818054,
0.46188434958457947,
0.2834602892398834,
-0.2831428647041321,
0.20363736152648926,
0.3541093170642853,
-0.44104599952697754,
0.18974241614341736,
0.332236111164093,
0.6006935834884644,
0.2195315659046173,
0.29289793968200684,
0.08387761563062668,
-0.17606398463249207,
-0.10788995027542114,
0.174213245511055,
0.04964376240968704,
0.4417838156223297,
-0.06862729042768478,
0.1369451880455017,
0.006778202019631863,
-0.08323480188846588,
0.29801520705223083,
0.18124209344387054,
0.3393847644329071,
-0.016795611009001732,
-0.37503188848495483,
-0.03410705551505089,
-0.17806099355220795,
-0.0763004720211029,
0.35836488008499146,
-0.3215564489364624,
-0.06960879266262054,
0.2845405638217926,
-0.08040542900562286,
0.014341410249471664,
-0.3408436179161072,
0.01847863756120205,
0.17676851153373718,
0.4923861026763916,
0.18729545176029205,
0.16532883048057556,
-0.23729471862316132,
-0.12396157532930374,
-0.5642417669296265,
-0.20429754257202148,
-0.3196801543235779,
-0.23375146090984344,
-0.05779320001602173,
-0.09947482496500015,
0.36410778760910034,
-0.2035190463066101,
0.6210823655128479,
-0.2856467068195343,
0.38483166694641113,
0.38697487115859985,
-0.2538062632083893,
0.06577052175998688,
0.20190110802650452,
0.07720478624105453,
0.03969946503639221,
-0.15819810330867767,
-0.08727168291807175,
0.03688538074493408,
0.0007560153608210385,
-0.10404176265001297,
0.16268591582775116,
-0.20129148662090302,
-0.22074481844902039,
0.1988331824541092,
0.0763104185461998,
0.8045889139175415,
-0.055860139429569244,
0.06465616822242737,
-0.14962032437324524,
-0.05606165528297424,
-0.10255483537912369,
0.06812088191509247,
0.42821523547172546,
0.5867258906364441,
-0.29106757044792175,
-0.06611691415309906,
-0.0673987939953804,
-0.016199767589569092,
-0.09806109219789505,
-0.047591980546712875,
-0.2880604565143585,
0.3186066150665283,
-0.019152402877807617,
0.005598852876573801,
0.2622625529766083,
0.2214764654636383,
-0.05654257908463478,
0.040598250925540924,
-0.02613944560289383,
-0.369487464427948,
0.5187727808952332,
-0.1914699226617813,
-0.1348084658384323,
-0.17388774454593658,
0.01397272851318121,
0.05077445134520531,
0.10487367957830429,
-0.3421269357204437,
0.12844206392765045,
0.2554287612438202,
0.07507649064064026,
-0.7180346250534058,
0.4141141474246979,
-0.215064138174057,
-0.05440469831228256,
0.08227554708719254,
0.0061148484237492085,
-0.11764296889305115,
0.0204468984156847,
-0.13533306121826172,
-0.1060190424323082
] |
https://github.com/huggingface/datasets/issues/1810 | Add Hateful Memes Dataset | Hi @gchhablani since Array2D doesn't support images of different sizes, I would suggest to store in the dataset the paths to the image file instead of the image data. This has the advantage of not decompressing the data (images are often compressed using jpeg, png etc.). Users can still apply `.map` to load the images if they want to. Though it would en up being Sequences features.
In the future we'll add support for ragged tensors for this case and update the relevant dataset with this feature. | ## Add Hateful Memes Dataset
- **Name:** Hateful Memes
- **Description:** [https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set]( https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set)
- **Paper:** [https://arxiv.org/pdf/2005.04790.pdf](https://arxiv.org/pdf/2005.04790.pdf)
- **Data:** [This link](https://drivendata-competition-fb-hateful-memes-data.s3.amazonaws.com/XjiOc5ycDBRRNwbhRlgH.zip?AWSAccessKeyId=AKIARVBOBDCY4MWEDJKS&Signature=DaUuGgZWUgDHzEPPbyJ2PhSJ56Q%3D&Expires=1612816874)
- **Motivation:** Including multi-modal datasets to 🤗 datasets.
I will be adding this dataset. It requires the user to sign an agreement on DrivenData. So, it will be used with a manual download.
The issue with this dataset is that the images are of different sizes. The image datasets added so far (CIFAR-10 and MNIST) have a uniform shape throughout.
So something like
```python
datasets.Array2D(shape=(28, 28), dtype="uint8")
```
won't work for the images. How would I add image features then? I checked `datasets/features.py` but couldn't figure out the appropriate class for this. I'm assuming I would want to avoid re-sizing at all since we want the user to be able to access the original images.
Also, in case I want to load only a subset of the data, since the actual data is around 8.8GB, how would that be possible?
Thanks,
Gunjan | 87 | Add Hateful Memes Dataset
## Add Hateful Memes Dataset
- **Name:** Hateful Memes
- **Description:** [https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set]( https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set)
- **Paper:** [https://arxiv.org/pdf/2005.04790.pdf](https://arxiv.org/pdf/2005.04790.pdf)
- **Data:** [This link](https://drivendata-competition-fb-hateful-memes-data.s3.amazonaws.com/XjiOc5ycDBRRNwbhRlgH.zip?AWSAccessKeyId=AKIARVBOBDCY4MWEDJKS&Signature=DaUuGgZWUgDHzEPPbyJ2PhSJ56Q%3D&Expires=1612816874)
- **Motivation:** Including multi-modal datasets to 🤗 datasets.
I will be adding this dataset. It requires the user to sign an agreement on DrivenData. So, it will be used with a manual download.
The issue with this dataset is that the images are of different sizes. The image datasets added so far (CIFAR-10 and MNIST) have a uniform shape throughout.
So something like
```python
datasets.Array2D(shape=(28, 28), dtype="uint8")
```
won't work for the images. How would I add image features then? I checked `datasets/features.py` but couldn't figure out the appropriate class for this. I'm assuming I would want to avoid re-sizing at all since we want the user to be able to access the original images.
Also, in case I want to load only a subset of the data, since the actual data is around 8.8GB, how would that be possible?
Thanks,
Gunjan
Hi @gchhablani since Array2D doesn't support images of different sizes, I would suggest to store in the dataset the paths to the image file instead of the image data. This has the advantage of not decompressing the data (images are often compressed using jpeg, png etc.). Users can still apply `.map` to load the images if they want to. Though it would en up being Sequences features.
In the future we'll add support for ragged tensors for this case and update the relevant dataset with this feature. | [
-0.2504214346408844,
0.1592070609331131,
-0.14461423456668854,
0.04864095523953438,
0.1048058271408081,
0.2664600908756256,
0.4449887275695801,
-0.07321225851774216,
-0.08323448896408081,
-0.22534552216529846,
-0.02304983139038086,
-0.282184898853302,
-0.5021380186080933,
0.24750080704689026,
0.0156490970402956,
-0.12452073395252228,
0.03239064663648605,
0.03152373060584068,
-0.18466132879257202,
-0.055614035576581955,
-0.039098359644412994,
-0.17182308435440063,
0.18335716426372528,
-0.26211750507354736,
-0.5729024410247803,
-0.07941263169050217,
-0.2922714948654175,
0.27430278062820435,
-0.17467011511325836,
-0.475730299949646,
0.03421182930469513,
0.3668724596500397,
0.14253589510917664,
0.5114074349403381,
-0.00011803744564531371,
0.0613284595310688,
-0.08145641535520554,
-0.19743211567401886,
0.0460134781897068,
0.09798077493906021,
0.07889622449874878,
-0.531785249710083,
-0.1205240860581398,
-0.25938451290130615,
0.14250260591506958,
-0.4997735321521759,
0.2076670229434967,
-0.050546396523714066,
0.6721630692481995,
-0.0005185743793845177,
0.140340656042099,
-0.1678142100572586,
0.22367742657661438,
-0.029542170464992523,
0.03024427965283394,
0.731044590473175,
-0.05351139232516289,
-0.2448934018611908,
0.08506915718317032,
0.10538928210735321,
0.24147562682628632,
0.26610657572746277,
-0.1824454963207245,
0.09815924614667892,
0.46866756677627563,
-0.149505615234375,
-0.08503071963787079,
-0.3651391565799713,
0.06925471127033234,
0.3533003330230713,
0.31580913066864014,
-0.1157742589712143,
-0.28308969736099243,
-0.47895339131355286,
-0.05198683217167854,
0.0470750518143177,
-0.09738142788410187,
0.2933700382709503,
-0.0024277835618704557,
-0.00836267415434122,
-0.40787097811698914,
-0.11137929558753967,
-0.3908490240573883,
0.4031018316745758,
-0.012804781086742878,
-0.11137506365776062,
0.044160667806863785,
0.33132627606391907,
-0.04704168811440468,
-0.31768032908439636,
-0.050353579223155975,
-0.03211939334869385,
0.334411084651947,
0.29427066445350647,
0.2471240907907486,
0.03572408854961395,
-0.23383432626724243,
-0.26447537541389465,
0.4943550229072571,
-0.27468398213386536,
-0.03651788830757141,
-0.06116926297545433,
-0.5127973556518555,
-0.10919647663831711,
0.1728677898645401,
-0.21865618228912354,
-0.41338682174682617,
0.2884225845336914,
0.14234495162963867,
0.023907531052827835,
-0.06801828742027283,
-0.00006603338260902092,
-0.17210063338279724,
0.085260309278965,
-0.020612280815839767,
-0.04136758670210838,
0.22019773721694946,
0.006569137331098318,
-0.2225712388753891,
-0.22367031872272491,
0.10903896391391754,
0.061311498284339905,
-0.07975845038890839,
0.18218766152858734,
0.09283725172281265,
-0.046792250126600266,
-0.06916479766368866,
0.23129253089427948,
0.06429324299097061,
-0.11133322864770889,
-0.12132400274276733,
-0.04650764539837837,
-0.08350913226604462,
0.21894049644470215,
0.31733742356300354,
0.4066416621208191,
0.3729763627052307,
-0.050235193222761154,
0.03614351525902748,
0.18774886429309845,
0.17032885551452637,
-0.15362809598445892,
0.2397407740354538,
0.10256312042474747,
0.12395936995744705,
-0.0443040169775486,
-0.02590819261968136,
0.13735118508338928,
-0.17836126685142517,
0.1234837993979454,
-0.2965264916419983,
-0.03495161235332489,
-0.07875017821788788,
0.06077052280306816,
-0.30731043219566345,
0.13937434554100037,
-0.09527567774057388,
0.3325943052768707,
0.0445992648601532,
-0.09985733777284622,
0.07982179522514343,
-0.06911680847406387,
-0.2916140854358673,
-0.413688987493515,
0.07314569503068924,
0.5717694163322449,
-0.41980111598968506,
-0.038867849856615067,
-0.25980034470558167,
0.004877111408859491,
-0.3514776825904846,
0.14116768538951874,
-0.07384643703699112,
0.0804826021194458,
-0.14229564368724823,
-0.03955408185720444,
0.19716691970825195,
-0.16465410590171814,
-0.2917400002479553,
0.14480309188365936,
0.05037253350019455,
0.2691360116004944,
0.1997370719909668,
0.41024550795555115,
0.16798809170722961,
-0.09235981851816177,
-0.0039957500994205475,
0.6235692501068115,
-0.22701707482337952,
-0.02323726750910282,
0.2167757898569107,
-0.45493072271347046,
0.09008946269750595,
0.37743204832077026,
0.3031717836856842,
-0.26993614435195923,
0.3662012219429016,
-0.0529143400490284,
0.15973171591758728,
-0.2786393165588379,
0.18431219458580017,
0.0729183554649353,
0.32805168628692627,
0.004464282188564539,
0.08127830177545547,
-0.19097022712230682,
-0.5832844376564026,
0.29148733615875244,
-0.1301625818014145,
-0.24256178736686707,
-0.18905383348464966,
-0.07453643530607224,
-0.22265660762786865,
-0.16954484581947327,
-0.5431597232818604,
-0.14398784935474396,
0.08096516877412796,
0.06736799329519272,
0.11733337491750717,
-0.0855124220252037,
-0.10755731165409088,
0.3108455240726471,
0.03776352107524872,
0.03766306862235069,
0.0759400725364685,
0.35627424716949463,
0.2526938319206238,
-0.25909003615379333,
-0.1550348699092865,
0.19333113729953766,
-0.0770663395524025,
-0.277697890996933,
0.031058594584465027,
0.4657755494117737,
0.2533089518547058,
0.1999029815196991,
-0.06028257682919502,
0.5921091437339783,
0.38649436831474304,
-0.4306573271751404,
0.4246518611907959,
0.29811960458755493,
0.167647123336792,
-0.19624872505664825,
-0.14481499791145325,
0.4161931276321411,
-0.10860441625118256,
0.09449681639671326,
-0.09016011655330658,
-0.15687215328216553,
0.12085184454917908,
0.19884181022644043,
-0.0697348341345787,
-0.4860266149044037,
-0.13755829632282257,
0.3124350309371948,
-0.03528279811143875,
-0.033319681882858276,
0.08166105300188065,
-0.031100517138838768,
0.14440777897834778,
0.15842042863368988,
0.1950874775648117,
0.11747784167528152,
-0.20450912415981293,
0.21766822040081024,
0.11602459102869034,
-0.0820588544011116,
0.5058946013450623,
0.24380289018154144,
-0.28843945264816284,
0.1893194615840912,
0.04415498301386833,
0.07033461332321167,
-0.059177469462156296,
0.07188074290752411,
0.15928569436073303,
0.1814650595188141,
0.292396605014801,
-0.0972120463848114,
-0.2935049831867218,
-0.36491504311561584,
-0.046410202980041504,
-0.13917112350463867,
0.028509175404906273,
-0.21593157947063446,
-0.17600306868553162,
-0.07524250447750092,
-0.17717315256595612,
0.06190032139420509,
-0.27311253547668457,
0.31030064821243286,
0.2432681769132614,
-0.08444754034280777,
-0.007646267767995596,
0.09867008775472641,
-0.17903850972652435,
0.45227912068367004,
0.1903005987405777,
-0.11243944615125656,
0.2018897384405136,
0.2738087773323059,
-0.17222468554973602,
0.023475127294659615,
0.3414863646030426,
0.01809496246278286,
0.31039464473724365,
-0.20857518911361694,
0.28756076097488403,
-0.30167973041534424,
-0.5269961953163147,
-0.017756234854459763,
-0.12786272168159485,
0.418436199426651,
0.15831919014453888,
0.056980814784765244,
0.14661458134651184,
-0.049089182168245316,
0.2545936703681946,
0.08396992087364197,
-0.1261509507894516,
-0.35798516869544983,
-0.31245556473731995,
-0.11762780696153641,
0.08763333410024643,
0.1875390261411667,
-0.2937670350074768,
-0.24343577027320862,
0.4645288586616516,
0.5125324726104736,
0.14236079156398773,
0.21529096364974976,
0.5227333903312683,
-0.15631826221942902,
0.16883771121501923,
0.21147972345352173,
-0.062373265624046326,
-0.08160454034805298,
0.4824642539024353,
-0.26179203391075134,
-0.27874937653541565,
-0.0011844340479001403,
-0.20051708817481995,
-0.21265104413032532,
0.3634602725505829,
-0.4871138632297516,
-0.17809471487998962,
-0.12022513151168823,
0.18780472874641418,
0.0320538766682148,
-0.02607785351574421,
0.08247081935405731,
-0.028169142082333565,
0.11324018239974976,
-0.06632253527641296,
-0.09983208775520325,
0.07641322910785675,
0.3912823796272278,
0.22112613916397095,
0.08915487676858902,
-0.036058422178030014,
0.2834276258945465,
0.49735352396965027,
0.05044234171509743,
-0.07786969095468521,
0.4475950300693512,
0.05929053574800491,
0.2628367245197296,
-0.002623326377943158,
-0.3571558892726898,
0.39983007311820984,
0.19781818985939026,
-0.18149016797542572,
0.1413680762052536,
0.12341275811195374,
0.014040016569197178,
0.04654766991734505,
0.3846585154533386,
-0.19507379829883575,
-0.15019451081752777,
0.24250055849552155,
0.035655878484249115,
0.2080598920583725,
-0.22315379977226257,
-0.27749180793762207,
-0.7103013396263123,
-0.2136516273021698,
0.06083632633090019,
0.2419235110282898,
-0.20638906955718994,
0.26614177227020264,
-0.6109215021133423,
-0.045159220695495605,
0.16075198352336884,
0.3234853148460388,
0.1610221564769745,
0.06865748018026352,
-0.12070081382989883,
-0.07368917763233185,
-0.04315869137644768,
0.02905169129371643,
0.7224554419517517,
0.018489591777324677,
-0.3272477090358734,
-0.02010161615908146,
0.23693574965000153,
-0.38155850768089294,
-0.27128174901008606,
0.10928404331207275,
-0.08269628882408142,
-0.1491672545671463,
0.6568524241447449,
-0.2573143243789673,
0.051271289587020874,
0.24504762887954712,
0.32196545600891113,
-0.14876395463943481,
-0.22229602932929993,
-0.09374209493398666,
-0.3714406192302704,
-0.474139004945755,
-0.13255032896995544,
0.17940038442611694,
0.05633481591939926,
0.17608609795570374,
-0.4480550289154053,
-0.09188457578420639,
-0.19439701735973358,
0.16497765481472015,
0.10580100864171982,
0.09518808126449585,
0.26128339767456055,
-0.03457213193178177,
0.17564089596271515,
-0.15843430161476135,
0.2575211524963379,
0.3741611838340759,
0.04391315579414368,
-0.14284741878509521,
0.09494643658399582,
-0.1685846447944641,
0.11728929728269577,
0.45974934101104736,
0.23443101346492767,
-0.20630522072315216,
0.026582906022667885,
-0.07735510170459747,
-0.18097235262393951,
0.45010942220687866,
0.1412697434425354,
-0.26580294966697693,
-0.024455219507217407,
-0.5977190732955933,
0.19395670294761658,
0.1625720113515854,
0.03873366117477417,
0.08333460986614227,
-0.16627714037895203,
-0.29102182388305664,
0.3688749670982361,
0.4148886203765869,
0.889054000377655,
-0.10047611594200134,
0.36901500821113586,
-0.17448227107524872,
0.1872287541627884,
0.029185252264142036,
-0.21270935237407684,
-0.21515172719955444,
0.10230724513530731,
0.016673801466822624,
-0.12871810793876648,
-0.06179938465356827,
0.30941465497016907,
0.21820476651191711,
0.10825890302658081,
0.0370074063539505,
0.13059207797050476,
0.14515815675258636,
-0.08333698660135269,
0.19099970161914825,
-0.2910306751728058,
-0.37544727325439453,
-0.022443417459726334,
0.0718093067407608,
0.0025820950977504253,
-0.0975055992603302,
-0.10283662378787994,
-0.1750887632369995,
-0.12858417630195618,
-0.06246453896164894,
-0.31393957138061523,
-0.41700565814971924,
-0.6177825927734375,
0.3116014301776886,
0.09591483324766159,
-0.1583428829908371,
-0.04774267598986626,
0.436458557844162,
0.23877355456352234,
-0.021668821573257446,
-0.09991733729839325,
0.18134786188602448,
0.1393330991268158,
0.015907950699329376,
-0.3843265473842621,
-0.4722927510738373,
0.3890894055366516,
-0.009745460934937,
-0.08839914202690125,
0.04081909731030464,
0.18522247672080994,
-0.06226155906915665,
-0.6213222146034241,
-0.10099456459283829,
0.3510935604572296,
-0.23717334866523743,
-0.37293246388435364,
-0.046038929373025894,
0.0845940113067627,
-0.035150833427906036,
0.04821185767650604,
0.1355675756931305,
0.051329318434000015,
0.25932809710502625,
0.2925774157047272,
-0.13465990126132965,
0.014493987895548344,
0.0537608377635479,
0.14155319333076477,
-0.24857014417648315,
0.39792105555534363,
0.019112486392259598,
0.2050878405570984,
-0.10097241401672363,
0.4004037082195282,
0.2464224100112915,
-0.22755563259124756,
0.030112044885754585,
0.0558881014585495,
-0.09230809658765793,
-0.30109137296676636,
0.1867813616991043,
0.30475112795829773,
0.11234517395496368,
0.17866751551628113,
-0.42060038447380066,
-0.33856400847435,
0.330017626285553,
-0.044872719794511795,
0.35951557755470276,
-0.09591779112815857,
0.24532635509967804,
-0.18964983522891998,
0.2075492888689041,
-0.24358941614627838,
0.27979159355163574,
0.03421727567911148,
0.016574110835790634,
0.013361524790525436,
-0.08646785467863083,
-0.31291884183883667,
0.18691422045230865,
0.05483033508062363,
-0.008456236682832241,
-0.4545392692089081,
-0.08198492228984833,
-0.17281262576580048,
0.21637600660324097,
0.15082460641860962,
-0.11864709109067917,
0.0461592823266983,
-0.30853208899497986,
-0.0792783573269844,
-0.07713250815868378,
0.199396550655365,
-0.12106645107269287,
-0.30169057846069336,
-0.021210715174674988,
-0.2817975580692291,
-0.021043820306658745,
-0.00508573092520237,
0.19183103740215302,
0.0055684857070446014,
0.09474696964025497,
0.4647139608860016,
0.46122676134109497,
-0.08992058783769608,
-0.07057564705610275,
0.11594291776418686,
0.26316598057746887,
0.13210691511631012,
0.013042892329394817,
0.27116644382476807,
-0.21147902309894562,
0.1537315547466278,
0.16224926710128784,
0.021614965051412582,
0.3007536828517914,
-0.3699852526187897,
0.10904904454946518,
0.20090723037719727,
0.12139373272657394,
-0.21298456192016602,
0.10979074239730835,
0.4337894320487976,
-0.08722615242004395,
0.10159386694431305,
0.3715549409389496,
0.391665518283844,
0.2633984386920929,
-0.29220765829086304,
0.10288482904434204,
0.2551811933517456,
0.0022372810635715723,
0.04831463471055031,
0.18768739700317383,
-0.3026912808418274,
0.06904110312461853,
0.17461854219436646,
0.4449330270290375,
0.23872140049934387,
0.5049598217010498,
-0.3436608910560608,
0.41339167952537537,
0.11043857783079147,
-0.16530746221542358,
0.2926425337791443,
-0.5142850875854492,
0.2334800660610199,
0.32206860184669495,
0.10034461319446564,
0.44056928157806396,
-0.14115197956562042,
0.14298763871192932,
-0.08434794843196869,
-0.38232171535491943,
-0.15363472700119019,
0.1817496120929718,
0.23891428112983704,
-0.12872648239135742,
-0.3973865509033203,
-0.32956168055534363,
-0.5255422592163086,
-0.05138759687542915,
-0.03211196884512901,
-0.5779091715812683,
0.1415557563304901,
-0.12354633212089539,
-0.11330259591341019,
-0.31971827149391174,
0.053200531750917435,
0.26410040259361267,
0.02143290638923645,
-0.3121997117996216,
0.2355463057756424,
0.4401600956916809,
-0.09621067345142365,
0.24488377571105957,
-0.061992064118385315,
0.2725956439971924,
0.17121730744838715,
-0.2464677393436432,
0.23772431910037994,
-0.10224886238574982,
-0.27240875363349915,
-0.15460051596164703,
0.10530997067689896,
0.054573509842157364,
0.3160354495048523,
0.10644255578517914,
0.06424528360366821,
-0.10340504348278046,
-0.21141403913497925,
-0.1423080414533615,
-0.0897921770811081,
-0.4951947331428528,
-0.14465123414993286,
-0.19385959208011627,
-0.19583012163639069,
-0.06474044919013977,
0.0566847138106823,
-0.4392281174659729,
-0.6049897074699402,
0.49069711565971375,
-0.5163565874099731,
0.22483836114406586,
-0.029689768329262733,
0.009239470586180687,
-0.42171740531921387,
0.05208427086472511,
0.3018873333930969,
-0.014310435391962528,
0.0345555916428566,
-0.04473916068673134,
-0.38409027457237244,
0.16745619475841522,
-0.27836909890174866,
-0.25785160064697266,
-0.05396825820207596,
0.26809483766555786,
0.22953054308891296,
0.020856965333223343,
0.31607764959335327,
-0.10010355710983276,
0.08733195066452026,
0.2617769241333008,
-0.24855507910251617,
0.07133519649505615,
0.14627942442893982,
0.5599985718727112,
0.03469076752662659,
-0.0936444103717804,
0.040839873254299164,
0.0030865559820085764,
-0.022030016407370567,
-0.11761967837810516,
-0.1751278042793274,
0.05509702488780022,
-0.3370947539806366,
0.35059836506843567,
0.04024471715092659,
0.1881270408630371,
-0.047715384513139725,
-0.05683866888284683,
-0.36716407537460327,
0.14204911887645721,
-0.020248962566256523,
-0.010038653388619423,
0.15439364314079285,
0.7235084772109985,
-0.309478759765625,
0.2260928452014923,
-0.0420953743159771,
0.3157183825969696,
0.03978895768523216,
-0.34854942560195923,
-0.08143916726112366,
0.31769323348999023,
-0.29029610753059387,
0.04746686667203903,
0.11364415287971497,
0.2330193668603897,
-0.03862803801894188,
-0.13953745365142822,
0.33289438486099243,
-0.3573357164859772,
0.43613478541374207,
-0.1375584900379181,
-0.43075212836265564,
0.013634338974952698,
-0.0708090141415596,
0.09605786949396133,
0.426859587430954,
-0.279113233089447,
0.21985813975334167,
0.34553560614585876,
0.0700150653719902,
-0.05147967487573624,
0.3274361491203308,
-0.009830843657255173,
-0.45154762268066406,
-0.0036139478906989098,
0.1303822100162506,
-0.3480064272880554,
-0.2129988819360733,
-0.016292018815875053,
-0.3059488534927368
] |
https://github.com/huggingface/datasets/issues/1808 | writing Datasets in a human readable format | AFAIK, there is currently no built-in method on the `Dataset` object to do this.
However, a workaround is to directly use the Arrow table backing the dataset, **but it implies loading the whole dataset in memory** (correct me if I'm mistaken @lhoestq).
You can convert the Arrow table to a pandas dataframe to save the data as csv as follows:
```python
arrow_table = dataset.data
dataframe = arrow_table.to_pandas()
dataframe.to_csv("/path/to/file.csv")
```
Similarly, you can convert the dataset to a Python dict and save it as JSON:
```python
import json
arrow_table = dataset.data
py_dict = arrow_table.to_pydict()
with open("/path/to/file.json", "w+") as f:
json.dump(py_dict, f)
``` | Hi
I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq | 101 | writing Datasets in a human readable format
Hi
I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq
AFAIK, there is currently no built-in method on the `Dataset` object to do this.
However, a workaround is to directly use the Arrow table backing the dataset, **but it implies loading the whole dataset in memory** (correct me if I'm mistaken @lhoestq).
You can convert the Arrow table to a pandas dataframe to save the data as csv as follows:
```python
arrow_table = dataset.data
dataframe = arrow_table.to_pandas()
dataframe.to_csv("/path/to/file.csv")
```
Similarly, you can convert the dataset to a Python dict and save it as JSON:
```python
import json
arrow_table = dataset.data
py_dict = arrow_table.to_pydict()
with open("/path/to/file.json", "w+") as f:
json.dump(py_dict, f)
``` | [
-0.1064516231417656,
0.2575984299182892,
-0.07314237207174301,
0.12428116053342819,
0.490632563829422,
0.29741960763931274,
-0.16252365708351135,
0.3496722877025604,
0.04431062564253807,
0.025897301733493805,
-0.15335604548454285,
0.33091336488723755,
-0.4147043824195862,
0.27073389291763306,
0.26477622985839844,
-0.16611331701278687,
0.07186797261238098,
-0.004648943897336721,
0.011518929153680801,
0.1498277485370636,
-0.15415042638778687,
-0.05089331045746803,
0.2294982522726059,
-0.025673532858490944,
-0.038947559893131256,
-0.38208073377609253,
-0.23500293493270874,
-0.13195858895778656,
-0.29512566328048706,
-0.21151132881641388,
-0.0870230495929718,
0.05828636884689331,
0.1421893686056137,
0.06199118494987488,
-0.00011743596405722201,
-0.09034638106822968,
0.05927429720759392,
-0.1883004903793335,
-0.41857850551605225,
-0.11924383789300919,
-0.25726497173309326,
-0.46725279092788696,
0.28265395760536194,
-0.388561874628067,
0.0572323240339756,
-0.5000998377799988,
0.1672142893075943,
-0.3590870499610901,
0.48386186361312866,
0.2706117630004883,
0.2117939442396164,
-0.14392179250717163,
0.30980128049850464,
0.29727959632873535,
0.05245060473680496,
0.6159297227859497,
-0.316202312707901,
0.15443044900894165,
-0.07570017129182816,
0.07326080650091171,
0.35592636466026306,
-0.17447029054164886,
-0.15455222129821777,
-0.3159639835357666,
0.37561851739883423,
0.07825955003499985,
-0.21540655195713043,
-0.02937784045934677,
-0.03793242946267128,
0.22238539159297943,
0.7566882371902466,
-0.705783486366272,
-0.5702956914901733,
-0.014892973937094212,
0.03621933236718178,
-0.07665637880563736,
-0.14431801438331604,
0.5130927562713623,
0.026253554970026016,
0.22970658540725708,
-0.16999374330043793,
-0.5853193998336792,
-0.3661929965019226,
0.07046395540237427,
0.38599538803100586,
-0.11312580853700638,
-0.18403360247612,
-0.040298111736774445,
0.051558319479227066,
0.01642582006752491,
0.31370896100997925,
-0.17655430734157562,
-0.09601480513811111,
0.12274780124425888,
-0.15096114575862885,
-0.27418044209480286,
-0.5675681233406067,
-0.20525462925434113,
0.010116170160472393,
0.08443117886781693,
0.4611465036869049,
-0.04758196696639061,
-0.0811261311173439,
0.09407594799995422,
0.37668853998184204,
0.08812309801578522,
0.18818990886211395,
0.07472650706768036,
0.18091699481010437,
-0.2470787912607193,
0.09403696656227112,
-0.27207645773887634,
0.01889198273420334,
0.1625402718782425,
0.4624990224838257,
-0.0868975892663002,
0.045467354357242584,
-0.2265891283750534,
-0.04947974905371666,
0.018305260688066483,
-0.17806963622570038,
0.12943311035633087,
-0.3326534926891327,
0.15975825488567352,
0.024628106504678726,
0.1252075433731079,
0.10710044205188751,
0.23881040513515472,
0.12956199049949646,
-0.015088845044374466,
0.1851648986339569,
0.18894048035144806,
0.042116787284612656,
0.16805586218833923,
-0.09943781793117523,
0.02237500622868538,
0.04880094900727272,
-0.07980739325284958,
0.07429315149784088,
-0.4312081038951874,
0.34658464789390564,
-0.16669999063014984,
0.23003685474395752,
0.2840813100337982,
0.15658311545848846,
0.08800928294658661,
-0.041889023035764694,
-0.5203969478607178,
-0.2893022298812866,
0.26482003927230835,
0.009672028012573719,
-0.11031536012887955,
-0.3392946124076843,
0.05165703222155571,
-0.10475979000329971,
-0.12741602957248688,
-0.7118957042694092,
0.05073951929807663,
0.04601433873176575,
0.02644645795226097,
0.1481797844171524,
-0.040107086300849915,
-0.10918647050857544,
-0.5510830879211426,
0.10952281206846237,
0.028597021475434303,
-0.5763203501701355,
0.17012988030910492,
0.07070329785346985,
-0.026981621980667114,
0.07936157286167145,
0.29449787735939026,
0.15841969847679138,
0.3940739631652832,
0.05672253295779228,
0.1613832414150238,
0.3168119490146637,
-0.11426978558301926,
-0.03393809124827385,
0.3281465768814087,
0.153633251786232,
0.052791204303503036,
-0.26352381706237793,
0.49001267552375793,
0.40485861897468567,
0.011045611463487148,
-0.11256220936775208,
0.05335722491145134,
0.14341919124126434,
0.016761846840381622,
-0.13628436625003815,
-0.37387815117836,
0.15738455951213837,
0.035961706191301346,
-0.3810766339302063,
-0.09024541079998016,
0.33903732895851135,
-0.0026242618914693594,
0.3020035922527313,
-0.29796016216278076,
0.2616698145866394,
0.5488734245300293,
0.3298591375350952,
0.08924996852874756,
-0.1869284212589264,
-0.2176181524991989,
-0.23039554059505463,
-0.14838550984859467,
0.47374218702316284,
-0.1687740683555603,
-0.15784111618995667,
-0.34113991260528564,
0.14174482226371765,
0.07172589749097824,
-0.13180598616600037,
0.21054109930992126,
0.06463674455881119,
-0.24721269309520721,
-0.17376473546028137,
0.1570233404636383,
-0.22539696097373962,
0.33479049801826477,
-0.03151586279273033,
0.11028339713811874,
-0.21231253445148468,
0.14147815108299255,
-0.004306382965296507,
-0.2985953986644745,
0.12394650280475616,
0.009376415982842445,
0.007699959445744753,
0.007159742526710033,
-0.03974452614784241,
0.371875524520874,
0.17178939282894135,
0.054824940860271454,
0.06784753501415253,
0.5374656915664673,
0.06926645338535309,
-0.21767191588878632,
0.13819023966789246,
0.20481795072555542,
0.21824805438518524,
-0.03289764001965523,
-0.6860601305961609,
0.5157961845397949,
0.012228146195411682,
0.009676601737737656,
-0.023444099351763725,
0.2769927680492401,
0.15215374529361725,
0.1961563229560852,
-0.1398269236087799,
0.05764560401439667,
0.009158584289252758,
0.0627288967370987,
-0.10906075686216354,
-0.22863203287124634,
-0.46773356199264526,
0.04911451041698456,
0.5178413987159729,
-0.30799463391304016,
0.5596216917037964,
0.02452000230550766,
-0.06745142489671707,
-0.11978612095117569,
0.13917377591133118,
0.16943347454071045,
0.09880809485912323,
0.013121364638209343,
0.008405577391386032,
-0.015211152844130993,
-0.13229487836360931,
0.07931949198246002,
0.16362369060516357,
-0.17590561509132385,
0.21895360946655273,
-0.19260933995246887,
-0.08800502121448517,
-0.13754060864448547,
-0.2838565707206726,
0.2554500997066498,
-0.17440955340862274,
0.028631344437599182,
-0.23443645238876343,
0.09634852409362793,
-0.14804507791996002,
0.06909068673849106,
-0.08030093461275101,
0.08357933908700943,
-0.1047162115573883,
-0.2666882574558258,
-0.3607383072376251,
0.13667523860931396,
0.10168316215276718,
-0.18605650961399078,
-0.06872891634702682,
0.2181331366300583,
-0.12240752577781677,
-0.02922208420932293,
-0.24006634950637817,
-0.07898515462875366,
0.05282967910170555,
0.0032244769390672445,
0.16773320734500885,
0.23583382368087769,
0.4595133364200592,
-0.1864616572856903,
0.31399834156036377,
-0.3245363235473633,
0.0425703190267086,
-0.23527684807777405,
-0.07330794632434845,
0.29685133695602417,
-0.03850165382027626,
0.3675037920475006,
-0.40578174591064453,
0.05541190505027771,
-0.05781813710927963,
0.06804993003606796,
-0.12023723125457764,
0.06705838441848755,
0.13109013438224792,
-0.14533409476280212,
0.0033630901016294956,
0.13583555817604065,
-0.33154818415641785,
-0.09188103675842285,
0.5880926847457886,
-0.021284574642777443,
0.08518411964178085,
-0.20150086283683777,
0.18227259814739227,
0.03901996463537216,
-0.059449583292007446,
-0.11347156018018723,
0.10225915163755417,
-0.47992029786109924,
0.3875848948955536,
-0.24509553611278534,
-0.39184823632240295,
0.21735233068466187,
0.38047048449516296,
-0.119138203561306,
-0.06054972857236862,
-0.13908395171165466,
0.010835262015461922,
-0.1433647871017456,
-0.17000547051429749,
-0.05383807420730591,
0.18139252066612244,
0.016865866258740425,
0.20601391792297363,
0.16378334164619446,
0.06419981271028519,
-0.2167951911687851,
0.12245243787765503,
0.3177890479564667,
0.09290970861911774,
-0.05203307047486305,
0.36639273166656494,
0.08037354052066803,
-0.018210291862487793,
0.3591732382774353,
0.24719351530075073,
0.22780410945415497,
-0.04869766905903816,
0.4381064176559448,
-0.12486724555492401,
0.029269441962242126,
0.04087916389107704,
-0.3164154291152954,
-0.18999123573303223,
-0.10230880230665207,
0.1691313534975052,
0.036269012838602066,
0.21311816573143005,
-0.00891121756285429,
-0.25116708874702454,
-0.25230178236961365,
0.23453055322170258,
-0.24229425191879272,
0.026563389226794243,
-0.11783230304718018,
0.11001655459403992,
-0.017566148191690445,
-0.17180456221103668,
0.08063410967588425,
0.3837934732437134,
0.2663043737411499,
0.03226847946643829,
-0.5151156187057495,
-0.29405614733695984,
-0.5803807377815247,
0.09987451881170273,
-0.029596256092190742,
0.36184588074684143,
0.10228124260902405,
0.18120688199996948,
0.2147044688463211,
-0.11195091903209686,
0.39091458916664124,
-0.13434334099292755,
-0.29806679487228394,
0.05613384395837784,
0.16215652227401733,
-0.3671405017375946,
0.23486103117465973,
-0.04735129326581955,
0.2741597890853882,
-0.2787132263183594,
0.3191594183444977,
-0.17461490631103516,
-0.12061105668544769,
-0.2288215011358261,
0.3668920695781708,
-0.4481757879257202,
-0.12007664144039154,
0.08216922730207443,
-0.4218108057975769,
-0.18237297236919403,
-0.30531734228134155,
0.15132224559783936,
-0.19544950127601624,
0.006747622042894363,
-0.12215016037225723,
-0.33441588282585144,
0.07021073251962662,
0.18667088449001312,
-0.2903486490249634,
0.22430789470672607,
-0.011988348327577114,
-0.14126978814601898,
0.32854679226875305,
0.3046220541000366,
0.10242163389921188,
0.30549806356430054,
-0.07957607507705688,
-0.32875990867614746,
-0.27329325675964355,
-0.16700975596904755,
0.3981632590293884,
-0.09808867424726486,
0.09665185213088989,
-0.03204593062400818,
0.2533676028251648,
-0.24237944185733795,
-0.38612204790115356,
-0.12944374978542328,
0.06608153134584427,
0.14740654826164246,
-0.5840484499931335,
-0.6087497472763062,
0.39700615406036377,
0.11336654424667358,
0.05494118854403496,
0.013899236917495728,
0.19545131921768188,
-0.1718692034482956,
0.4643930196762085,
0.36571893095970154,
0.9020748734474182,
-0.6044504642486572,
0.5735936164855957,
-0.03853217139840126,
-0.6457206010818481,
0.2766193449497223,
-0.42043033242225647,
-0.027324726805090904,
-0.37129783630371094,
0.11743904650211334,
-0.11894391477108002,
-0.00932593084871769,
0.30709755420684814,
0.23280933499336243,
-0.22210410237312317,
0.17984390258789062,
-0.1137189269065857,
-0.16957394778728485,
0.08383068442344666,
0.27919620275497437,
-0.12142552435398102,
-0.10393819957971573,
-0.1601460874080658,
0.1506623923778534,
-0.17813868820667267,
-0.3596470355987549,
0.08953415602445602,
-0.3730088174343109,
-0.061066124588251114,
0.24023129045963287,
-0.2900499403476715,
-0.0070621175691485405,
-0.19048133492469788,
0.10237221419811249,
-0.34043872356414795,
-0.2851460576057434,
0.16273540258407593,
0.25132936239242554,
0.2861890494823456,
0.235969677567482,
-0.0347437858581543,
-0.07711777091026306,
-0.22712573409080505,
0.02975793369114399,
0.04668834060430527,
-0.06158534437417984,
0.12570403516292572,
0.21279199421405792,
-0.032512832432985306,
0.2309788167476654,
-0.04464568942785263,
-0.3499729037284851,
0.11076689511537552,
-0.026932133361697197,
-0.042705293744802475,
-0.20844411849975586,
-0.23698543012142181,
-0.11784140020608902,
-0.1680610030889511,
-0.14513878524303436,
0.09682875126600266,
0.40937086939811707,
0.3144996762275696,
0.48921623826026917,
-0.04701641574501991,
-0.06960147619247437,
0.07398594170808792,
0.07777830213308334,
0.01516676601022482,
0.06508471071720123,
0.2172192931175232,
-0.03876393660902977,
-0.24382509291172028,
-0.22034400701522827,
0.6501060128211975,
0.17381149530410767,
0.005395316984504461,
0.206189826130867,
-0.27360090613365173,
0.1468951255083084,
-0.22252537310123444,
0.014907806180417538,
0.09251751005649567,
-0.25872042775154114,
-0.26711979508399963,
-0.4189399182796478,
-0.367698609828949,
0.18843750655651093,
0.3738775849342346,
0.27950039505958557,
0.13001520931720734,
-0.29861193895339966,
-0.2512313425540924,
-0.10851927846670151,
-0.1967223882675171,
0.08701489120721817,
-0.05389082431793213,
-0.056273289024829865,
0.07873744517564774,
0.2680080235004425,
0.21682052314281464,
-0.3074113726615906,
0.03504209592938423,
-0.05196065455675125,
0.18760345876216888,
-0.09964931011199951,
-0.1900952160358429,
0.1305592805147171,
0.08667398989200592,
-0.12534451484680176,
-0.1687788963317871,
-0.45268550515174866,
-0.030536295846104622,
-0.15218546986579895,
-0.3153103291988373,
0.3631749749183655,
-0.0966382771730423,
0.3008650541305542,
0.012591165490448475,
0.13850286602973938,
-0.011398129165172577,
-0.03357327729463577,
0.06143816560506821,
0.32634660601615906,
-0.16980861127376556,
0.05865102633833885,
0.28631386160850525,
-0.041973743587732315,
-0.11887580156326294,
0.12448637187480927,
0.13706375658512115,
-0.12318205088376999,
0.3291630148887634,
-0.1266665905714035,
-0.010935280472040176,
-0.07543845474720001,
0.3813680410385132,
0.3408975899219513,
-0.1769036501646042,
0.2275376319885254,
0.20486748218536377,
0.07869158685207367,
0.17299893498420715,
-0.1341189593076706,
0.25871172547340393,
-0.06039270758628845,
-0.11561454087495804,
0.1173652783036232,
-0.13379672169685364,
0.09443715959787369,
-0.38147586584091187,
-0.316957950592041,
0.058197855949401855,
-0.12183434516191483,
-0.13126195967197418,
0.25193339586257935,
0.16931714117527008,
-0.11544769257307053,
0.0012945726048201323,
0.25675150752067566,
0.2531089782714844,
0.6264762878417969,
0.14460991322994232,
0.1117553561925888,
0.5608850717544556,
0.16771681606769562,
0.06371593475341797,
0.05639519914984703,
0.06642899662256241,
-0.15126603841781616,
0.0879574790596962,
0.3625527024269104,
0.42430877685546875,
0.01042890828102827,
-0.0020099980756640434,
-0.22193413972854614,
0.08303744345903397,
0.13123582303524017,
-0.047490138560533524,
-0.07559362053871155,
-0.0296515841037035,
-0.05099061504006386,
0.196856290102005,
-0.10944359749555588,
-0.295399010181427,
-0.4354916512966156,
0.038759130984544754,
0.19480229914188385,
0.48051682114601135,
0.07810783386230469,
0.37567105889320374,
0.10520332306623459,
0.18894684314727783,
-0.24505136907100677,
-0.2562156915664673,
-0.0034828302450478077,
0.0284076239913702,
-0.3446308374404907,
0.1636255383491516,
0.28678470849990845,
0.013455078937113285,
-0.11088559776544571,
0.49248364567756653,
-0.10116326063871384,
-0.18189740180969238,
0.10607088357210159,
0.034140076488256454,
0.16403578221797943,
-0.1392960399389267,
0.39321446418762207,
0.12269224226474762,
0.10942716151475906,
0.2109401822090149,
0.021319160237908363,
-0.01447216235101223,
-0.09887724369764328,
0.09224555641412735,
-0.01885375939309597,
-0.5013271570205688,
-0.12793222069740295,
-0.1039540097117424,
-0.12719523906707764,
-0.21566413342952728,
0.5050707459449768,
-0.035251956433057785,
0.11248728632926941,
-0.02896762639284134,
0.04823324456810951,
0.047405049204826355,
0.30169224739074707,
0.454429566860199,
0.08971120417118073,
-0.06951850652694702,
0.030858667567372322,
-0.15950708091259003,
-0.1504455953836441,
-0.08182290196418762,
-0.06074528768658638,
-0.02794695273041725,
0.09460633993148804,
0.30621111392974854,
0.32464468479156494,
-0.01545752864331007,
0.35015901923179626,
-0.09662260115146637,
0.47462722659111023,
-0.15297363698482513,
-0.10951729118824005,
0.34601011872291565,
0.39628344774246216,
0.02409536950290203,
-0.4002615511417389,
0.4055838882923126,
0.2499222308397293,
0.026937613263726234,
-0.3491511940956116,
0.38356268405914307,
-0.30141064524650574,
-0.06134524941444397,
0.3309568166732788,
0.06962769478559494,
-0.06063190847635269,
-0.021439574658870697,
-0.27524715662002563,
0.26338082551956177,
0.3521861433982849,
0.09580767154693604,
0.31773659586906433,
-0.07240484654903412,
0.34168142080307007,
-0.2775280177593231,
0.16189715266227722,
-0.08806627988815308,
-0.24325984716415405,
-0.5080469250679016,
-0.04262394830584526,
-0.27447310090065,
0.10404513031244278,
-0.11052548140287399,
-0.02344662696123123,
0.16295121610164642,
0.23956778645515442,
-0.22787532210350037,
0.21462224423885345,
-0.12985655665397644,
0.34454527497291565,
-0.06002514809370041,
-0.08698340505361557,
-0.24439182877540588,
0.3853408992290497,
-0.12683920562267303,
-0.04400978609919548,
-0.025177795439958572,
-0.44081953167915344,
-0.015444770455360413,
0.33028310537338257,
-0.2197275012731552,
0.010537269525229931,
0.2405093014240265,
-0.0074135540053248405,
0.2687164843082428,
-0.003945357631891966,
0.6607909798622131,
-0.008085060864686966,
-0.00021008528710808605,
-0.28927335143089294,
-0.38080137968063354
] |
https://github.com/huggingface/datasets/issues/1808 | writing Datasets in a human readable format | Indeed this works as long as you have enough memory.
It would be amazing to have export options like csv, json etc. !
It should be doable to implement something that iterates through the dataset batch by batch to write to csv for example.
There is already an `export` method but currently the only export type that is supported is `tfrecords`. | Hi
I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq | 61 | writing Datasets in a human readable format
Hi
I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq
Indeed this works as long as you have enough memory.
It would be amazing to have export options like csv, json etc. !
It should be doable to implement something that iterates through the dataset batch by batch to write to csv for example.
There is already an `export` method but currently the only export type that is supported is `tfrecords`. | [
-0.20983873307704926,
0.049268949776887894,
-0.10766670107841492,
0.06642670184373856,
0.5001394748687744,
0.23276878893375397,
-0.1172599196434021,
0.35747233033180237,
0.000751799379941076,
0.14927472174167633,
-0.16769756376743317,
0.052724335342645645,
-0.3711419701576233,
0.4290179908275604,
0.30483877658843994,
-0.11577852815389633,
0.07499109953641891,
-0.13998602330684662,
0.009227817878127098,
0.10330905765295029,
-0.1731935441493988,
0.003102166811004281,
0.18568000197410583,
-0.10447010397911072,
-0.007599880453199148,
-0.4232766330242157,
-0.2167164534330368,
-0.21662235260009766,
-0.19343538582324982,
-0.11148036271333694,
-0.1856018602848053,
0.002659609541296959,
0.3307574689388275,
0.03721483424305916,
-0.00011813020682893693,
-0.18589012324810028,
-0.023094693198800087,
-0.16155076026916504,
-0.37875479459762573,
-0.08890388906002045,
-0.26902538537979126,
-0.29775506258010864,
0.06279947608709335,
-0.4023829400539398,
0.09588176012039185,
-0.24718983471393585,
0.4078349471092224,
-0.3925504982471466,
0.2636527121067047,
0.24290770292282104,
0.1875607967376709,
-0.12894345819950104,
0.20890924334526062,
0.21947777271270752,
0.09189880639314651,
0.6853558421134949,
-0.36735549569129944,
0.027612943202257156,
0.09163512289524078,
0.18726009130477905,
0.4378952085971832,
-0.28740522265434265,
-0.13160479068756104,
-0.3443317115306854,
0.3439820408821106,
0.0561671182513237,
-0.08948604017496109,
-0.08555640280246735,
-0.011303898878395557,
0.2284473478794098,
0.8819464445114136,
-0.585065484046936,
-0.49658918380737305,
0.05623398721218109,
-0.03675699606537819,
-0.08458037674427032,
-0.13274161517620087,
0.49620693922042847,
0.003153593046590686,
0.25503793358802795,
-0.30794864892959595,
-0.602065920829773,
-0.4352659285068512,
0.015818843618035316,
0.4432985186576843,
-0.07230450212955475,
-0.18967048823833466,
-0.0486626923084259,
0.06515481323003769,
0.14754614233970642,
0.3959628641605377,
-0.11759022623300552,
-0.15204773843288422,
0.13049772381782532,
-0.1174585372209549,
-0.35535168647766113,
-0.6162093281745911,
-0.07904225587844849,
0.055115241557359695,
0.009114407934248447,
0.35315635800361633,
-0.0813896656036377,
0.07632242888212204,
0.09859128296375275,
0.40057435631752014,
0.022674813866615295,
0.31625694036483765,
-0.04797634482383728,
0.18185986578464508,
-0.4053881764411926,
0.11731934547424316,
-0.24355493485927582,
0.009250582195818424,
0.17488601803779602,
0.4574068486690521,
-0.004727310501039028,
-0.07689737528562546,
-0.2648995518684387,
0.04252740740776062,
-0.09640350192785263,
-0.07804928719997406,
-0.02681535668671131,
-0.4872848093509674,
0.08152159303426743,
0.01944356970489025,
-0.11353611201047897,
0.07426085323095322,
0.07666248083114624,
-0.01361282728612423,
-0.14999361336231232,
0.20752361416816711,
0.13936246931552887,
0.030904365703463554,
0.17725086212158203,
-0.18247805535793304,
-0.0466998927295208,
-0.0887519046664238,
-0.07200644165277481,
0.13166026771068573,
-0.3586091697216034,
0.3845714330673218,
-0.2493530809879303,
0.23367907106876373,
0.05826675146818161,
0.13742174208164215,
0.13787420094013214,
-0.13520580530166626,
-0.5077311992645264,
-0.3294369876384735,
0.20138174295425415,
-0.12248293310403824,
-0.15181876718997955,
-0.3533751666545868,
0.044159434735774994,
-0.06173878535628319,
-0.23417408764362335,
-0.6611484289169312,
0.12384796142578125,
0.12324429303407669,
-0.03813602030277252,
0.09824390709400177,
-0.0732543095946312,
-0.15007589757442474,
-0.49550652503967285,
0.027269404381513596,
-0.03620435297489166,
-0.6494601964950562,
0.1883053332567215,
0.16023527085781097,
-0.09220639616250992,
0.13514083623886108,
0.3854273855686188,
0.25246644020080566,
0.534996509552002,
-0.00509345717728138,
0.19084998965263367,
0.2792835533618927,
0.0055641429498791695,
0.15691232681274414,
0.39731526374816895,
0.1233954057097435,
-0.11159398406744003,
-0.26462456583976746,
0.4624731242656708,
0.5034456253051758,
-0.18585380911827087,
-0.1742168813943863,
0.04870203882455826,
0.11546609550714493,
-0.014759080484509468,
-0.17993253469467163,
-0.3490656018257141,
0.015786945819854736,
-0.06640774011611938,
-0.23193638026714325,
-0.04392336308956146,
0.5080922245979309,
0.0998145267367363,
0.24761496484279633,
-0.3435504138469696,
0.3596276342868805,
0.5124644637107849,
0.3237616717815399,
0.1429356336593628,
-0.27478840947151184,
-0.2920854687690735,
-0.2649783194065094,
-0.23043598234653473,
0.35059207677841187,
-0.25405460596084595,
0.25771364569664,
-0.33425143361091614,
0.2862890660762787,
0.018947608768939972,
0.052389536052942276,
0.2952234745025635,
0.019920291379094124,
-0.05350102484226227,
-0.17088039219379425,
0.150076761841774,
-0.33437612652778625,
0.230433389544487,
-0.04698209837079048,
-0.07085807621479034,
-0.1806437373161316,
0.12904272973537445,
0.0067978245206177235,
-0.2635654807090759,
0.07304898649454117,
-0.11152096837759018,
-0.007496421691030264,
-0.16513724625110626,
0.02536231465637684,
0.3055085241794586,
0.07561888545751572,
0.07463555037975311,
0.15507683157920837,
0.602998673915863,
0.02910088561475277,
-0.09242933988571167,
0.06181302294135094,
0.04570787772536278,
0.08420431613922119,
-0.039724983274936676,
-0.7325783967971802,
0.4708712100982666,
-0.029904043301939964,
-0.023156914860010147,
-0.038100048899650574,
0.16625411808490753,
0.03913051262497902,
0.08945836871862411,
0.0318249836564064,
0.0888793095946312,
0.1403709501028061,
0.04022305831313133,
-0.26415395736694336,
-0.2821542024612427,
-0.4200901687145233,
0.09446683526039124,
0.6116841435432434,
-0.3029910624027252,
0.4891394078731537,
-0.03241090476512909,
0.16293023526668549,
-0.07354948669672012,
0.15905994176864624,
0.05995391681790352,
0.16384826600551605,
0.006339115556329489,
0.15231718122959137,
-0.020032698288559914,
-0.1002853512763977,
0.0414518378674984,
0.1809067279100418,
-0.33304131031036377,
0.10869713127613068,
-0.1366848349571228,
-0.27326110005378723,
-0.02630813606083393,
-0.24125491082668304,
0.2050081044435501,
-0.15105609595775604,
0.0028074397705495358,
-0.2534695565700531,
-0.0020917279180139303,
-0.1439945548772812,
0.06820815801620483,
-0.08929263055324554,
0.29244908690452576,
-0.07376126945018768,
-0.2302347719669342,
-0.2821517288684845,
0.22170761227607727,
0.011071925982832909,
-0.27151528000831604,
0.01906747743487358,
0.3949037790298462,
-0.20870496332645416,
0.1366722732782364,
-0.2805606424808502,
-0.010477042756974697,
0.07722164690494537,
0.0013888438697904348,
0.15016619861125946,
0.21212944388389587,
0.5001713037490845,
-0.24710093438625336,
0.23440907895565033,
-0.36754438281059265,
-0.00737526873126626,
-0.16004745662212372,
-0.006372496951371431,
0.3519592583179474,
-0.10124368220567703,
0.33953040838241577,
-0.4360644221305847,
0.06279594451189041,
-0.1589544713497162,
0.03493041917681694,
-0.06507560610771179,
-0.0743054673075676,
0.13259682059288025,
-0.2086407095193863,
-0.08404541015625,
0.19429230690002441,
-0.3629707098007202,
-0.12732701003551483,
0.5436403751373291,
-0.0702463835477829,
0.10532467812299728,
-0.2141471654176712,
0.07463733851909637,
-0.06603733450174332,
-0.14183418452739716,
-0.16464118659496307,
0.07448254525661469,
-0.636076807975769,
0.2971099019050598,
-0.3602564334869385,
-0.46701738238334656,
0.22323700785636902,
0.5383542776107788,
-0.1780402809381485,
0.07474401593208313,
-0.2141808271408081,
0.10512340813875198,
0.010401309467852116,
-0.23555786907672882,
-0.03138457611203194,
0.22078953683376312,
0.031031230464577675,
0.0849166288971901,
0.17215755581855774,
0.06226023659110069,
-0.18020720779895782,
0.031777624040842056,
0.32857969403266907,
0.25497522950172424,
-0.033370472490787506,
0.28227299451828003,
0.22578103840351105,
0.01458288636058569,
0.2588454782962799,
0.2226627618074417,
0.14274752140045166,
0.022168368101119995,
0.41390132904052734,
-0.032783377915620804,
0.0022068037651479244,
0.3475819528102875,
-0.30319103598594666,
-0.29852500557899475,
-0.019620554521679878,
0.07200247049331665,
0.08487695455551147,
0.18243788182735443,
0.017471808940172195,
-0.09043152630329132,
-0.23483441770076752,
0.3269670903682709,
0.0030283804517239332,
0.15028667449951172,
-0.1556912213563919,
0.11540493369102478,
-0.1132463812828064,
-0.13365192711353302,
0.07677635550498962,
0.3554423749446869,
0.3367663025856018,
0.10704860836267471,
-0.655295729637146,
-0.23153123259544373,
-0.48529917001724243,
0.19070737063884735,
0.05015828460454941,
0.21191704273223877,
-0.12671732902526855,
0.1747840791940689,
0.18910086154937744,
-0.020310672000050545,
0.4097023606300354,
-0.2429732084274292,
-0.22986242175102234,
0.03986178711056709,
0.10589253902435303,
-0.18997786939144135,
0.19492556154727936,
-0.030750399455428123,
0.2844807803630829,
-0.07846632599830627,
0.39484384655952454,
-0.12247887253761292,
-0.1046811118721962,
-0.18357090651988983,
0.2617669105529785,
-0.4513823688030243,
-0.2274118810892105,
0.21444566547870636,
-0.2858094274997711,
-0.07936049997806549,
-0.24143683910369873,
0.141057088971138,
-0.23635585606098175,
-0.06839711219072342,
-0.18517129123210907,
-0.2665019631385803,
0.13508547842502594,
0.19192014634609222,
-0.3439517021179199,
-0.010149465873837471,
0.029064862057566643,
-0.22330841422080994,
0.2827490270137787,
0.33134135603904724,
0.09688229113817215,
0.0708971619606018,
-0.14670267701148987,
-0.22907590866088867,
-0.07411881536245346,
-0.32463642954826355,
0.5238563418388367,
-0.1107998713850975,
0.18606959283351898,
-0.07084806263446808,
0.33066532015800476,
-0.1715368926525116,
-0.37155184149742126,
-0.20418936014175415,
0.05135902017354965,
0.15175852179527283,
-0.7371711134910583,
-0.4786504805088043,
0.19428199529647827,
0.01698341593146324,
0.0677904412150383,
-0.03196318820118904,
0.10354549437761307,
-0.19543269276618958,
0.27186912298202515,
0.5431912541389465,
0.9837475419044495,
-0.6078289151191711,
0.4128286838531494,
-0.16372857987880707,
-0.5005875825881958,
0.32841989398002625,
-0.4307344853878021,
0.06277476996183395,
-0.3551386296749115,
-0.02764781005680561,
-0.10781954973936081,
0.008821171708405018,
0.2886621057987213,
0.24762605130672455,
-0.25687354803085327,
0.11144567281007767,
0.042964570224285126,
-0.027601804584264755,
0.006524544209241867,
0.2042030543088913,
-0.08991854637861252,
-0.0616597980260849,
-0.0040143574588000774,
0.14601436257362366,
-0.1574334353208542,
-0.32059967517852783,
-0.02017330937087536,
-0.3327822685241699,
0.13953475654125214,
0.4025574326515198,
-0.20201878249645233,
-0.02092796564102173,
-0.14630599319934845,
0.015044652856886387,
-0.30826276540756226,
-0.2517387866973877,
0.16474421322345734,
0.2179531753063202,
0.5345998406410217,
0.26768311858177185,
-0.008250321261584759,
-0.21462354063987732,
-0.21675531566143036,
0.06558903306722641,
-0.022092493250966072,
-0.03542392700910568,
0.09397213906049728,
0.16276495158672333,
-0.07310202717781067,
0.3064502477645874,
0.028808193281292915,
-0.33926060795783997,
0.022816576063632965,
-0.07989763468503952,
-0.08475751429796219,
-0.2946387529373169,
-0.11909492313861847,
-0.07143579423427582,
-0.0903845801949501,
-0.08383751660585403,
0.08259913325309753,
0.40266355872154236,
0.38686761260032654,
0.6266879439353943,
-0.11384328454732895,
-0.024349287152290344,
-0.026497358456254005,
0.07358106225728989,
0.0862438976764679,
-0.10069625824689865,
0.06233573332428932,
-0.005806474015116692,
-0.27792680263519287,
-0.2418328821659088,
0.6459099054336548,
0.02212873473763466,
-0.0729258731007576,
0.24389705061912537,
-0.3161088526248932,
0.19310487806797028,
-0.1895984411239624,
0.10277606546878815,
0.062011510133743286,
-0.3043515682220459,
-0.34318438172340393,
-0.29340362548828125,
-0.18220242857933044,
0.10608816891908646,
0.3513624370098114,
0.27424857020378113,
0.19643747806549072,
-0.2088548094034195,
-0.19808144867420197,
-0.07159149646759033,
-0.19461068511009216,
-0.014815790578722954,
-0.08516072481870651,
0.020235447213053703,
0.1642276644706726,
0.26597246527671814,
0.06908581405878067,
-0.2713039219379425,
-0.032145705074071884,
-0.013692134991288185,
0.15241457521915436,
-0.07297500967979431,
-0.22038081288337708,
0.14436818659305573,
0.06520392745733261,
0.06450539827346802,
-0.06267369538545609,
-0.38626906275749207,
0.0028054388239979744,
-0.19175121188163757,
-0.30201390385627747,
0.41818350553512573,
-0.11121254414319992,
0.3120131492614746,
0.08233482390642166,
0.15628349781036377,
-0.0018332707695662975,
-0.03986646607518196,
0.27093151211738586,
0.43513303995132446,
-0.2582454979419708,
0.10652220994234085,
0.25743985176086426,
-0.03516175597906113,
-0.12068526446819305,
0.1419335901737213,
0.35855725407600403,
-0.00547183258458972,
0.2918895483016968,
-0.13200822472572327,
0.02101529762148857,
0.0817459225654602,
0.1922922134399414,
0.22302712500095367,
-0.15138369798660278,
0.20953091979026794,
0.20219743251800537,
0.08948197215795517,
0.36661627888679504,
-0.09804579615592957,
0.280993789434433,
-0.021985018625855446,
-0.1846567988395691,
0.17474594712257385,
-0.0888470783829689,
0.015418561175465584,
-0.041583724319934845,
-0.38212156295776367,
0.06783629208803177,
-0.20531943440437317,
-0.1655508279800415,
0.20341670513153076,
0.12726566195487976,
-0.066316157579422,
-0.029896335676312447,
0.1465526670217514,
0.2336006760597229,
0.49297183752059937,
0.20623645186424255,
0.07325650006532669,
0.49208125472068787,
0.2002185583114624,
0.08246823400259018,
-0.09820730239152908,
0.163205087184906,
-0.14841295778751373,
0.11884451657533646,
0.4701645076274872,
0.47802531719207764,
-0.20228078961372375,
-0.13757427036762238,
-0.2050093412399292,
0.060681235045194626,
0.07125553488731384,
-0.07335340976715088,
0.0407072976231575,
-0.16872097551822662,
-0.01870587281882763,
0.255547434091568,
0.018092645332217216,
-0.30801358819007874,
-0.32897648215293884,
0.03342178463935852,
0.2333347648382187,
0.541327178478241,
0.1409212201833725,
0.30439990758895874,
-0.007762866094708443,
0.15016189217567444,
-0.22064578533172607,
-0.16229508817195892,
-0.15432283282279968,
0.014948555268347263,
-0.3174993097782135,
0.30994653701782227,
0.17035046219825745,
0.05884617939591408,
0.07530836015939713,
0.41189444065093994,
-0.1623406708240509,
-0.08314148336648941,
0.09348558634519577,
0.15005478262901306,
0.07177559286355972,
-0.05242370069026947,
0.4647694528102875,
0.09880105406045914,
0.1652534306049347,
0.329505056142807,
0.005908837541937828,
-0.12365220487117767,
-0.13417185842990875,
-0.02835354581475258,
0.12664908170700073,
-0.4638586640357971,
-0.1727948784828186,
-0.13951361179351807,
-0.10489833354949951,
-0.10192404687404633,
0.4397474527359009,
-0.13836894929409027,
0.10569120198488235,
0.06893472373485565,
0.04510655254125595,
0.08107335865497589,
0.3107047379016876,
0.5162874460220337,
0.03133024647831917,
-0.06847204267978668,
0.0654621347784996,
-0.006576948799192905,
0.02529480867087841,
0.01634935475885868,
0.096250981092453,
-0.12077205628156662,
0.13536673784255981,
0.324826717376709,
0.34862440824508667,
0.03824622556567192,
0.1583915650844574,
-0.07539160549640656,
0.5430312752723694,
-0.1199703961610794,
-0.16421163082122803,
0.33029690384864807,
0.3895037770271301,
0.007204954978078604,
-0.3909871280193329,
0.5046799182891846,
0.2837263345718384,
-0.013007249683141708,
-0.4221144914627075,
0.41011640429496765,
-0.2834377884864807,
-0.2210484892129898,
0.3415217101573944,
0.06834884732961655,
-0.10183518379926682,
-0.018730659037828445,
-0.2133677452802658,
0.23067623376846313,
0.39253950119018555,
0.12206359207630157,
0.23812367022037506,
0.07031688839197159,
0.24180008471012115,
-0.3717211186885834,
0.09081479907035828,
-0.1417986899614334,
-0.1396602839231491,
-0.48315876722335815,
0.17793916165828705,
-0.14557519555091858,
-0.011170115321874619,
-0.1442711502313614,
-0.16531705856323242,
0.3295234739780426,
0.1953497678041458,
-0.2057492882013321,
0.205686554312706,
-0.19914188981056213,
0.5085462927818298,
-0.16226355731487274,
-0.09353549778461456,
-0.26575785875320435,
0.24928778409957886,
-0.16324879229068756,
-0.0005454999627545476,
-0.043802399188280106,
-0.36207351088523865,
-0.08300638943910599,
0.38406941294670105,
-0.21081170439720154,
0.10241124778985977,
0.29966500401496887,
-0.009946574456989765,
0.23322932422161102,
0.05986565351486206,
0.5324205160140991,
0.10187971591949463,
-0.05184348672628403,
-0.23511141538619995,
-0.32005929946899414
] |
https://github.com/huggingface/datasets/issues/1805 | can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index | Hi ! Indeed we used to require mapping functions to be picklable with `pickle` or `dill` in order to cache the resulting datasets. And FAISS indexes are not picklable unfortunately.
But since #1703 this is no longer required (the caching will simply be disabled). This change will be available in the next release of `datasets`, or you can also install `datasets` from source. | So, I have the following instances in my dataset
```
{'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of
this increase in rotation?',
'answer': 'C',
'example_id': 'ARCCH_Mercury_7175875',
'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'},
(...)]}
```
The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`.
I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index
```
dpr_dataset = load_dataset(
"text",
data_files=ARC_CORPUS_TEXT,
cache_dir=CACHE_DIR,
split="train[:100%]",
)
dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}")
torch.set_grad_enabled(False)
```
Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_
```
def generate_context(example):
question_text = example['question']
for option in example['options']:
question_with_option = question_text + " " + option['option_text']
tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device)
question_embed = (
question_encoder(**tokenize_text)
)[0][0].cpu().numpy()
_, retrieved_examples = dpr_dataset.get_nearest_examples(
"embeddings", question_embed, k=10
)
# option["option_context"] = retrieved_examples["text"]
# option["option_context"] = " ".join(option["option_context"]).strip()
#result_dict = {
# 'example_id': example['example_id'],
# 'answer': example['answer'],
# 'question': question_text,
#options': example['options']
# }
return example
```
I intentionally commented on this portion of the code.
But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)`
It calls the following error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-75a458ce205c> in <module>
----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False)
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name
157 kwargs[fingerprint_name] = update_fingerprint(
--> 158 self._fingerprint, transform, kwargs_for_fingerprint
159 )
160
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args)
103 for key in sorted(transform_args):
104 hasher.update(key)
--> 105 hasher.update(transform_args[key])
106 return hasher.hexdigest()
107
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value)
55 def update(self, value):
56 self.m.update(f"=={type(value)}==".encode("utf8"))
---> 57 self.m.update(self.hash(value).encode("utf-8"))
58
59 def hexdigest(self):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value)
51 return cls.dispatch[type(value)](cls, value)
52 else:
---> 53 return cls.hash_default(value)
54
55 def update(self, value):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value)
44 @classmethod
45 def hash_default(cls, value):
---> 46 return cls.hash_bytes(dumps(value))
47
48 @classmethod
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj)
387 file = StringIO()
388 with _no_cache_fields(obj):
--> 389 dump(obj, file)
390 return file.getvalue()
391
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file)
359 def dump(obj, file):
360 """pickle an object to a file"""
--> 361 Pickler(file, recurse=True).dump(obj)
362 return
363
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj)
452 raise PicklingError(msg)
453 else:
--> 454 StockPickler.dump(self, obj)
455 stack.clear() # clear record of 'recursion-sensitive' pickled objects
456 return
/usr/lib/python3.7/pickle.py in dump(self, obj)
435 if self.proto >= 4:
436 self.framer.start_framing()
--> 437 self.save(obj)
438 self.write(STOP)
439 self.framer.end_framing()
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj)
554 dill._dill._create_function,
555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults),
--> 556 obj=obj,
557 )
558 else:
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
636 else:
637 save(func)
--> 638 save(args)
639 write(REDUCE)
640
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
/usr/lib/python3.7/pickle.py in save_tuple(self, obj)
784 write(MARK)
785 for element in obj:
--> 786 save(element)
787
788 if id(obj) in memo:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
522 reduce = getattr(obj, "__reduce_ex__", None)
523 if reduce is not None:
--> 524 rv = reduce(self.proto)
525 else:
526 reduce = getattr(obj, "__reduce__", None)
TypeError: can't pickle SwigPyObject objects
```
Which I have no idea how to solve/deal with it
| 63 | can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index
So, I have the following instances in my dataset
```
{'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of
this increase in rotation?',
'answer': 'C',
'example_id': 'ARCCH_Mercury_7175875',
'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'},
(...)]}
```
The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`.
I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index
```
dpr_dataset = load_dataset(
"text",
data_files=ARC_CORPUS_TEXT,
cache_dir=CACHE_DIR,
split="train[:100%]",
)
dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}")
torch.set_grad_enabled(False)
```
Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_
```
def generate_context(example):
question_text = example['question']
for option in example['options']:
question_with_option = question_text + " " + option['option_text']
tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device)
question_embed = (
question_encoder(**tokenize_text)
)[0][0].cpu().numpy()
_, retrieved_examples = dpr_dataset.get_nearest_examples(
"embeddings", question_embed, k=10
)
# option["option_context"] = retrieved_examples["text"]
# option["option_context"] = " ".join(option["option_context"]).strip()
#result_dict = {
# 'example_id': example['example_id'],
# 'answer': example['answer'],
# 'question': question_text,
#options': example['options']
# }
return example
```
I intentionally commented on this portion of the code.
But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)`
It calls the following error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-75a458ce205c> in <module>
----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False)
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name
157 kwargs[fingerprint_name] = update_fingerprint(
--> 158 self._fingerprint, transform, kwargs_for_fingerprint
159 )
160
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args)
103 for key in sorted(transform_args):
104 hasher.update(key)
--> 105 hasher.update(transform_args[key])
106 return hasher.hexdigest()
107
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value)
55 def update(self, value):
56 self.m.update(f"=={type(value)}==".encode("utf8"))
---> 57 self.m.update(self.hash(value).encode("utf-8"))
58
59 def hexdigest(self):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value)
51 return cls.dispatch[type(value)](cls, value)
52 else:
---> 53 return cls.hash_default(value)
54
55 def update(self, value):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value)
44 @classmethod
45 def hash_default(cls, value):
---> 46 return cls.hash_bytes(dumps(value))
47
48 @classmethod
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj)
387 file = StringIO()
388 with _no_cache_fields(obj):
--> 389 dump(obj, file)
390 return file.getvalue()
391
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file)
359 def dump(obj, file):
360 """pickle an object to a file"""
--> 361 Pickler(file, recurse=True).dump(obj)
362 return
363
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj)
452 raise PicklingError(msg)
453 else:
--> 454 StockPickler.dump(self, obj)
455 stack.clear() # clear record of 'recursion-sensitive' pickled objects
456 return
/usr/lib/python3.7/pickle.py in dump(self, obj)
435 if self.proto >= 4:
436 self.framer.start_framing()
--> 437 self.save(obj)
438 self.write(STOP)
439 self.framer.end_framing()
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj)
554 dill._dill._create_function,
555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults),
--> 556 obj=obj,
557 )
558 else:
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
636 else:
637 save(func)
--> 638 save(args)
639 write(REDUCE)
640
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
/usr/lib/python3.7/pickle.py in save_tuple(self, obj)
784 write(MARK)
785 for element in obj:
--> 786 save(element)
787
788 if id(obj) in memo:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
522 reduce = getattr(obj, "__reduce_ex__", None)
523 if reduce is not None:
--> 524 rv = reduce(self.proto)
525 else:
526 reduce = getattr(obj, "__reduce__", None)
TypeError: can't pickle SwigPyObject objects
```
Which I have no idea how to solve/deal with it
Hi ! Indeed we used to require mapping functions to be picklable with `pickle` or `dill` in order to cache the resulting datasets. And FAISS indexes are not picklable unfortunately.
But since #1703 this is no longer required (the caching will simply be disabled). This change will be available in the next release of `datasets`, or you can also install `datasets` from source. | [
0.06904204934835434,
-0.38878345489501953,
-0.06963580846786499,
0.2468254417181015,
0.164226233959198,
0.027764270082116127,
0.17842744290828705,
0.05411217361688614,
0.4089656174182892,
0.5476052165031433,
-0.05009916052222252,
0.4959976077079773,
0.11579318344593048,
-0.12733516097068787,
-0.2676263153553009,
0.0515105240046978,
0.08499445021152496,
0.01342253852635622,
0.021620335057377815,
-0.2425849586725235,
-0.5357056856155396,
-0.04840271547436714,
-0.19842618703842163,
0.04933896288275719,
-0.0398409366607666,
0.018033567816019058,
-0.033283352851867676,
0.09544795751571655,
-0.058445874601602554,
-0.4539252817630768,
0.4045753479003906,
0.25768470764160156,
0.211661234498024,
-0.013423421420156956,
-0.00012667453847825527,
0.06790219992399216,
0.20534740388393402,
-0.021252185106277466,
-0.1646227389574051,
0.08675011992454529,
-0.0015755053609609604,
0.30584123730659485,
0.2944123446941376,
-0.35424911975860596,
-0.217924565076828,
-0.25507017970085144,
-0.050455670803785324,
-0.13455606997013092,
0.06806495040655136,
0.19159550964832306,
0.0670926421880722,
0.1456795632839203,
-0.11307267099618912,
-0.15868912637233734,
0.22158508002758026,
-0.010913512669503689,
-0.0620621033012867,
0.1621502935886383,
0.2719886302947998,
0.30666017532348633,
0.25445765256881714,
0.2748858332633972,
-0.2460707575082779,
0.03687269240617752,
-0.07259956747293472,
0.09264026582241058,
0.33780449628829956,
0.09200812131166458,
0.1556718945503235,
0.09694638848304749,
0.24981233477592468,
-0.27378225326538086,
-0.47020769119262695,
-0.4137730896472931,
-0.06139606982469559,
-0.15674848854541779,
-0.26279494166374207,
-0.5509218573570251,
-0.017236994579434395,
0.24829250574111938,
0.1254628598690033,
0.10218589752912521,
-0.06395648419857025,
0.5212547779083252,
0.4118609130382538,
0.03595523536205292,
0.014424039050936699,
0.21093346178531647,
0.10664121061563492,
-0.05764833092689514,
0.13660335540771484,
-0.13325287401676178,
-0.028368644416332245,
-0.1321200579404831,
-0.21314874291419983,
-0.12421440333127975,
0.4846392869949341,
-0.2354142963886261,
0.24505823850631714,
0.08462602645158768,
-0.12905825674533844,
0.4014527201652527,
0.0691411942243576,
0.10754959285259247,
0.16151747107505798,
-0.11862672120332718,
-0.0983867272734642,
0.039572469890117645,
-0.11711721867322922,
0.08703576773405075,
-0.1678486317396164,
0.11425769329071045,
0.026899851858615875,
-0.05530620738863945,
-0.6315293312072754,
-0.012941033579409122,
0.320594847202301,
-0.14490297436714172,
-0.10143246501684189,
0.2506064474582672,
-0.6014734506607056,
0.34290871024131775,
0.13187041878700256,
0.5309943556785583,
0.014597448520362377,
0.1166362464427948,
0.19498880207538605,
0.24707771837711334,
-0.29601532220840454,
0.4217509627342224,
-0.22669827938079834,
-0.04202728345990181,
0.034669212996959686,
-0.0588206872344017,
-0.12180715799331665,
0.4785676598548889,
0.28498944640159607,
-0.26060202717781067,
0.09783129394054413,
-0.07848396897315979,
0.022725878283381462,
-0.11066239327192307,
0.3640691339969635,
0.19701312482357025,
-0.053364358842372894,
0.07728267461061478,
0.17100830376148224,
-0.09544059634208679,
-0.17449013888835907,
0.11748018860816956,
0.13840121030807495,
-0.10213892161846161,
0.19039294123649597,
0.070963554084301,
-0.13898628950119019,
-0.13179871439933777,
-0.21304474771022797,
0.12119612097740173,
-0.08783604949712753,
0.23695801198482513,
0.1870570331811905,
-0.18788261711597443,
-0.08760324120521545,
-0.1486043930053711,
0.20903992652893066,
0.5161314010620117,
-0.2350451499223709,
-0.07585560530424118,
0.02449401281774044,
0.19517816603183746,
0.3501952588558197,
0.2010134905576706,
-0.32679834961891174,
0.2561721205711365,
0.0371251218020916,
0.23221683502197266,
0.316365122795105,
-0.44901883602142334,
-0.6639240384101868,
-0.09019996225833893,
-0.07569920271635056,
0.03977356478571892,
0.3317386507987976,
0.09758953750133514,
0.3703520596027374,
0.2930631935596466,
-0.14594703912734985,
0.5172798037528992,
0.16961592435836792,
0.04346735030412674,
-0.2609553635120392,
-0.3448403477668762,
0.02314171940088272,
0.12701448798179626,
-0.07336806505918503,
0.16323843598365784,
-0.04404837265610695,
-0.26762622594833374,
0.36140167713165283,
-0.15033785998821259,
-0.10212843120098114,
0.26906535029411316,
0.5216957926750183,
0.21598728001117706,
0.21308933198451996,
-0.20326386392116547,
-0.0844261422753334,
0.12828518450260162,
-0.15222251415252686,
0.022890005260705948,
-0.07821710407733917,
-0.2090480625629425,
-0.013567754998803139,
0.19774910807609558,
-0.3135468065738678,
-0.1740482896566391,
-0.07465220987796783,
0.15297698974609375,
0.28819921612739563,
-0.13186249136924744,
-0.09894532710313797,
0.04934291914105415,
-0.33996614813804626,
0.20498044788837433,
-0.5214462876319885,
0.4271000623703003,
-0.09354791045188904,
-0.31373652815818787,
-0.18720167875289917,
0.25834956765174866,
0.013484795577824116,
-0.15099574625492096,
-0.15897615253925323,
0.10670290142297745,
0.4748959243297577,
-0.40636131167411804,
0.17568828165531158,
-0.30792057514190674,
-0.019566580653190613,
-0.10988813638687134,
0.11341501027345657,
0.009082123637199402,
0.14439719915390015,
0.21565859019756317,
-0.009515447542071342,
0.6227208971977234,
0.37243279814720154,
0.15079861879348755,
-0.07652714848518372,
0.1891472339630127,
0.14738111197948456,
-0.1591726392507553,
-0.05282871425151825,
-0.507877767086029,
-0.18280766904354095,
0.3740834593772888,
0.11359692364931107,
0.02832978218793869,
-0.4408775269985199,
0.4054226577281952,
0.24011698365211487,
0.060324229300022125,
-0.118427574634552,
0.15418390929698944,
-0.056814245879650116,
-0.03674696013331413,
0.029288457706570625,
-0.21392664313316345,
0.10529585182666779,
0.3675740957260132,
-0.27791985869407654,
-0.32087308168411255,
0.008762221783399582,
-0.04218871518969536,
0.06506229937076569,
0.3736095130443573,
-0.04236529394984245,
-0.2475414127111435,
0.09350902587175369,
-0.005427903961390257,
-0.38407179713249207,
-0.3060506284236908,
-0.03811940550804138,
0.07016552239656448,
-0.11144264787435532,
0.17439019680023193,
-0.37495148181915283,
-0.1492134928703308,
0.08720813691616058,
-0.45783865451812744,
0.19163064658641815,
-0.09812331199645996,
0.1739201843738556,
0.22585803270339966,
-0.23704347014427185,
0.4466657042503357,
0.11919775605201721,
0.15984660387039185,
0.05297710746526718,
-0.19985906779766083,
-0.12007655203342438,
-0.17553366720676422,
-0.45761677622795105,
-0.09228962659835815,
-0.22862564027309418,
0.4021473824977875,
0.17739473283290863,
0.21580439805984497,
-0.09752120077610016,
-0.29270943999290466,
0.021101828664541245,
0.028738245368003845,
0.14060759544372559,
0.202092707157135,
0.18797078728675842,
0.046798646450042725,
-0.23935024440288544,
-0.11357030272483826,
0.07079395651817322,
0.16612985730171204,
-0.20331250131130219,
-0.17623814940452576,
-0.04304223507642746,
-0.08146385103464127,
0.10186279565095901,
-0.21136148273944855,
-0.2890201508998871,
-0.22593723237514496,
0.1515958309173584,
0.09191522002220154,
0.10955366492271423,
0.021820927038788795,
0.37258216738700867,
0.05513637885451317,
-0.2080983966588974,
-0.10801417380571365,
-0.2729109227657318,
0.009455668739974499,
-0.07352647930383682,
-0.04149947687983513,
-0.2861771285533905,
-0.506501317024231,
-0.33980217576026917,
-0.2370949238538742,
0.19563685357570648,
-0.2353992611169815,
-0.33611518144607544,
-0.34408292174339294,
0.15928958356380463,
0.1556718945503235,
0.14096149802207947,
0.3760392665863037,
0.22478225827217102,
-0.08757458627223969,
-0.16665875911712646,
-0.3055535852909088,
0.44457384943962097,
0.1400023251771927,
0.08829985558986664,
0.10773395746946335,
0.4067179560661316,
-0.18408209085464478,
0.527717113494873,
0.12478537857532501,
-0.520957350730896,
0.3717171847820282,
-0.014029447920620441,
0.015872303396463394,
-0.06754077970981598,
-0.2851007282733917,
0.16566413640975952,
0.1925269514322281,
-0.1816549003124237,
0.16265100240707397,
-0.1984013319015503,
0.05916907638311386,
0.33942553400993347,
0.31978732347488403,
-0.3819202184677124,
-0.27683568000793457,
-0.05373353511095047,
-0.15951965749263763,
-0.3160979151725769,
0.025268055498600006,
0.33398371934890747,
-0.5367693305015564,
0.23682567477226257,
0.08284565806388855,
0.14890635013580322,
0.18797747790813446,
-0.0566985085606575,
-0.07691178470849991,
-0.1068078875541687,
-0.35940638184547424,
0.41494908928871155,
0.014454418793320656,
0.2401238977909088,
0.08461466431617737,
-0.034012891352176666,
0.34345874190330505,
0.06843234598636627,
0.9571903347969055,
-0.06147853285074234,
-0.02395252138376236,
0.3976438045501709,
-0.2214731127023697,
-0.36348211765289307,
0.025664502754807472,
-0.17715470492839813,
0.07975832372903824,
0.10192990303039551,
0.22994273900985718,
-0.16012845933437347,
-0.3377132713794708,
0.02653203159570694,
0.01673879846930504,
-0.12575560808181763,
0.03941570222377777,
-0.0708356499671936,
-0.41674575209617615,
-0.46632885932922363,
0.11469509452581406,
-0.020214296877384186,
0.14229941368103027,
0.09586651623249054,
-0.21130239963531494,
-0.5041608214378357,
-0.11018241941928864,
-0.1364935338497162,
0.15174618363380432,
0.39362430572509766,
0.14543472230434418,
0.13112390041351318,
0.14259377121925354,
0.34860315918922424,
0.6238428354263306,
0.22571760416030884,
-0.07521768659353256,
-0.21511933207511902,
-0.006214739754796028,
0.16428425908088684,
0.0945563018321991,
0.42806705832481384,
-0.06382377445697784,
0.4363095164299011,
-0.04150788113474846,
0.1246345266699791,
0.0061395540833473206,
0.22276610136032104,
0.2262481153011322,
0.21135638654232025,
0.05645133927464485,
-0.43798908591270447,
0.5630468130111694,
0.021087227389216423,
-0.1794915497303009,
0.31360018253326416,
0.16184984147548676,
-0.25788795948028564,
1.0739564895629883,
0.22332996129989624,
1.0657082796096802,
-0.0835496112704277,
0.22637885808944702,
0.19865374267101288,
0.06445501744747162,
0.4328967034816742,
0.12280572205781937,
0.15999172627925873,
-0.33144131302833557,
0.2574235796928406,
0.007882682606577873,
-0.3100055754184723,
0.1413198709487915,
0.24119557440280914,
-0.08309222012758255,
-0.09476339817047119,
-0.21930035948753357,
-0.2675539553165436,
-0.06948558986186981,
0.03920593485236168,
0.3647852838039398,
-0.3496558666229248,
-0.3084585666656494,
-0.031542714685201645,
0.2854221761226654,
0.29282689094543457,
0.24883155524730682,
-0.14911356568336487,
-0.4724772870540619,
-0.1838758885860443,
-0.21596001088619232,
0.005299808457493782,
-0.27755728363990784,
0.27017441391944885,
0.17104201018810272,
-0.30572524666786194,
-0.16933834552764893,
0.23805910348892212,
0.18919862806797028,
-0.14771988987922668,
-0.17465528845787048,
0.11698278039693832,
0.15543530881404877,
-0.09744909405708313,
-0.008984239771962166,
-0.27513909339904785,
0.38019973039627075,
0.15564501285552979,
-0.3932548761367798,
0.015331621281802654,
0.15893614292144775,
-0.4387568235397339,
-0.09044504165649414,
-0.08017157763242722,
-0.23098598420619965,
-0.2791677415370941,
-0.3515003025531769,
-0.06574225425720215,
-0.1390065997838974,
-0.4286186397075653,
-0.021883325651288033,
0.01305694691836834,
-0.20575106143951416,
0.4152248501777649,
-0.12011486291885376,
-0.3386865258216858,
-0.17250502109527588,
0.5766258835792542,
0.2049618810415268,
0.09537563472986221,
0.49887585639953613,
0.20451755821704865,
-0.14762632548809052,
-0.18616223335266113,
-0.46980607509613037,
0.4244086742401123,
0.07368435710668564,
0.30304738879203796,
-0.076429083943367,
-0.31452053785324097,
-0.10987769812345505,
-0.010932455770671368,
0.03224935382604599,
-0.13382381200790405,
-0.5415475964546204,
-0.22277216613292694,
-0.5453009605407715,
0.19932742416858673,
0.01891961134970188,
0.4727431535720825,
-0.205404132604599,
0.5167484879493713,
-0.5072891712188721,
-0.2756154537200928,
-0.16703447699546814,
-0.02210729941725731,
-0.46642524003982544,
0.023472413420677185,
-0.3302718997001648,
-0.1691892147064209,
0.0772077664732933,
0.051503002643585205,
0.032448817044496536,
-0.05112217739224434,
-0.06589016318321228,
-0.10555396229028702,
-0.15735943615436554,
0.18042701482772827,
0.0931679904460907,
-0.19175325334072113,
-0.12359645962715149,
-0.04186427220702171,
-0.1471068412065506,
-0.17900075018405914,
0.18229854106903076,
0.27532294392585754,
-0.06500336527824402,
0.17344658076763153,
0.04643968492746353,
0.09533604979515076,
0.25194886326789856,
0.09385330229997635,
-0.02966158278286457,
0.3096499443054199,
0.09706543385982513,
0.11753460019826889,
-0.12140839546918869,
-0.03114824742078781,
-0.063928984105587,
0.023355912417173386,
-0.0015805874718353152,
-0.04701085761189461,
-0.08501850068569183,
-0.03448357433080673,
-0.3594440221786499,
0.328960657119751,
0.2795447111129761,
0.5147302150726318,
0.08545241504907608,
-0.2399229109287262,
0.24238935112953186,
0.04633188247680664,
-0.2119930386543274,
-0.2285027801990509,
0.3535672426223755,
-0.2673206031322479,
0.2338826060295105,
0.21015889942646027,
-0.09037113189697266,
0.19812949001789093,
-0.314819872379303,
-0.05228178948163986,
0.20384791493415833,
0.3505212366580963,
0.14751936495304108,
0.20917649567127228,
0.13171008229255676,
0.051563989371061325,
0.13663293421268463,
0.4851371645927429,
0.7115123867988586,
0.5667840838432312,
-0.010982347652316093,
0.6284352540969849,
-0.233982115983963,
0.038772474974393845,
0.03301253169775009,
-0.5802501440048218,
0.5933228731155396,
0.08162208646535873,
-0.016071010380983353,
0.05523354560136795,
0.06653375178575516,
0.16970862448215485,
0.12200530618429184,
-0.2425168752670288,
-0.07678109407424927,
0.28561535477638245,
-0.2219858169555664,
-0.5239713191986084,
-0.16376405954360962,
0.013441838324069977,
0.054909754544496536,
-0.10308428108692169,
-0.004145525395870209,
-0.2838757634162903,
0.1822269707918167,
-0.1851777285337448,
-0.2403617650270462,
-0.2812502682209015,
-0.28570985794067383,
-0.06400898844003677,
0.13659043610095978,
-0.07531268149614334,
-0.10241144150495529,
-0.10063633322715759,
-0.14163707196712494,
-0.11631656438112259,
0.05885455384850502,
0.09470424801111221,
0.14169088006019592,
-0.5192409157752991,
-0.037828996777534485,
-0.05737323313951492,
-0.17661356925964355,
-0.20650918781757355,
0.023323139175772667,
-0.16379785537719727,
-0.021264059469103813,
0.1977408230304718,
-0.006110596004873514,
-0.0758737102150917,
-0.34456580877304077,
0.23219695687294006,
0.35497093200683594,
0.03815566375851631,
0.09397205710411072,
0.061826854944229126,
0.0781840831041336,
0.08916831016540527,
-0.09187117218971252,
-0.2969633638858795,
-0.09764526039361954,
0.3326539099216461,
-0.040677499026060104,
0.19271837174892426,
0.16475015878677368,
0.0005436823121272027,
-0.24791677296161652,
0.39039409160614014,
0.392421692609787,
0.3247525990009308,
-0.21644771099090576,
0.34763088822364807,
-0.0362352691590786,
0.21040819585323334,
-0.04794420674443245,
-0.31860023736953735,
0.37791362404823303,
0.1847469061613083,
0.042814966291189194,
-0.06572271883487701,
0.014569560997188091,
0.30719977617263794,
0.32817885279655457,
0.6772934198379517,
-0.2702368199825287,
-0.18753360211849213,
-0.3799322545528412,
0.04308659955859184,
0.28654059767723083,
-0.307363361120224,
-0.0778111144900322,
0.047226615250110626,
-0.12656080722808838,
-0.3398210406303406,
-0.007095087319612503,
0.1033460721373558,
-0.16982771456241608,
0.25881227850914,
0.3162370026111603,
0.14657294750213623,
-0.0743974894285202,
-0.12184988707304001,
-0.12944073975086212,
-0.25185906887054443,
-0.22229871153831482,
-0.2623870074748993,
-0.1795755922794342,
0.17982885241508484,
-0.09648378193378448,
-0.09733559936285019,
-0.1671265959739685,
0.01764460653066635,
0.3991204500198364,
-0.20932810008525848,
-0.16689252853393555,
0.31774309277534485,
-0.23154479265213013,
0.05972202494740486,
0.04466293752193451,
0.22182318568229675,
-0.005772009491920471,
0.49407050013542175,
-0.285569429397583,
-0.07852406799793243,
0.7860206961631775,
-0.3918514549732208,
-0.022845659404993057,
-0.20928485691547394,
0.2463769167661667,
-0.08429060876369476,
-0.16694527864456177,
-0.23458291590213776,
0.008381807245314121,
0.20627115666866302,
0.0018959183944389224,
-0.3033871650695801,
0.06009991839528084,
0.4667138457298279,
-0.07100841403007507,
-0.14606034755706787,
0.39399710297584534,
0.19481481611728668,
0.17317251861095428,
0.1124257892370224,
-0.20699837803840637
] |
https://github.com/huggingface/datasets/issues/1805 | can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index | I totally forgot to answer this issue, I'm so sorry.
I was able to get it working by installing `datasets` from source. Huge thanks! | So, I have the following instances in my dataset
```
{'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of
this increase in rotation?',
'answer': 'C',
'example_id': 'ARCCH_Mercury_7175875',
'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'},
(...)]}
```
The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`.
I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index
```
dpr_dataset = load_dataset(
"text",
data_files=ARC_CORPUS_TEXT,
cache_dir=CACHE_DIR,
split="train[:100%]",
)
dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}")
torch.set_grad_enabled(False)
```
Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_
```
def generate_context(example):
question_text = example['question']
for option in example['options']:
question_with_option = question_text + " " + option['option_text']
tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device)
question_embed = (
question_encoder(**tokenize_text)
)[0][0].cpu().numpy()
_, retrieved_examples = dpr_dataset.get_nearest_examples(
"embeddings", question_embed, k=10
)
# option["option_context"] = retrieved_examples["text"]
# option["option_context"] = " ".join(option["option_context"]).strip()
#result_dict = {
# 'example_id': example['example_id'],
# 'answer': example['answer'],
# 'question': question_text,
#options': example['options']
# }
return example
```
I intentionally commented on this portion of the code.
But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)`
It calls the following error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-75a458ce205c> in <module>
----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False)
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name
157 kwargs[fingerprint_name] = update_fingerprint(
--> 158 self._fingerprint, transform, kwargs_for_fingerprint
159 )
160
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args)
103 for key in sorted(transform_args):
104 hasher.update(key)
--> 105 hasher.update(transform_args[key])
106 return hasher.hexdigest()
107
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value)
55 def update(self, value):
56 self.m.update(f"=={type(value)}==".encode("utf8"))
---> 57 self.m.update(self.hash(value).encode("utf-8"))
58
59 def hexdigest(self):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value)
51 return cls.dispatch[type(value)](cls, value)
52 else:
---> 53 return cls.hash_default(value)
54
55 def update(self, value):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value)
44 @classmethod
45 def hash_default(cls, value):
---> 46 return cls.hash_bytes(dumps(value))
47
48 @classmethod
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj)
387 file = StringIO()
388 with _no_cache_fields(obj):
--> 389 dump(obj, file)
390 return file.getvalue()
391
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file)
359 def dump(obj, file):
360 """pickle an object to a file"""
--> 361 Pickler(file, recurse=True).dump(obj)
362 return
363
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj)
452 raise PicklingError(msg)
453 else:
--> 454 StockPickler.dump(self, obj)
455 stack.clear() # clear record of 'recursion-sensitive' pickled objects
456 return
/usr/lib/python3.7/pickle.py in dump(self, obj)
435 if self.proto >= 4:
436 self.framer.start_framing()
--> 437 self.save(obj)
438 self.write(STOP)
439 self.framer.end_framing()
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj)
554 dill._dill._create_function,
555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults),
--> 556 obj=obj,
557 )
558 else:
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
636 else:
637 save(func)
--> 638 save(args)
639 write(REDUCE)
640
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
/usr/lib/python3.7/pickle.py in save_tuple(self, obj)
784 write(MARK)
785 for element in obj:
--> 786 save(element)
787
788 if id(obj) in memo:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
522 reduce = getattr(obj, "__reduce_ex__", None)
523 if reduce is not None:
--> 524 rv = reduce(self.proto)
525 else:
526 reduce = getattr(obj, "__reduce__", None)
TypeError: can't pickle SwigPyObject objects
```
Which I have no idea how to solve/deal with it
| 24 | can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index
So, I have the following instances in my dataset
```
{'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of
this increase in rotation?',
'answer': 'C',
'example_id': 'ARCCH_Mercury_7175875',
'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'},
(...)]}
```
The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`.
I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index
```
dpr_dataset = load_dataset(
"text",
data_files=ARC_CORPUS_TEXT,
cache_dir=CACHE_DIR,
split="train[:100%]",
)
dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}")
torch.set_grad_enabled(False)
```
Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_
```
def generate_context(example):
question_text = example['question']
for option in example['options']:
question_with_option = question_text + " " + option['option_text']
tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device)
question_embed = (
question_encoder(**tokenize_text)
)[0][0].cpu().numpy()
_, retrieved_examples = dpr_dataset.get_nearest_examples(
"embeddings", question_embed, k=10
)
# option["option_context"] = retrieved_examples["text"]
# option["option_context"] = " ".join(option["option_context"]).strip()
#result_dict = {
# 'example_id': example['example_id'],
# 'answer': example['answer'],
# 'question': question_text,
#options': example['options']
# }
return example
```
I intentionally commented on this portion of the code.
But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)`
It calls the following error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-75a458ce205c> in <module>
----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False)
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name
157 kwargs[fingerprint_name] = update_fingerprint(
--> 158 self._fingerprint, transform, kwargs_for_fingerprint
159 )
160
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args)
103 for key in sorted(transform_args):
104 hasher.update(key)
--> 105 hasher.update(transform_args[key])
106 return hasher.hexdigest()
107
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value)
55 def update(self, value):
56 self.m.update(f"=={type(value)}==".encode("utf8"))
---> 57 self.m.update(self.hash(value).encode("utf-8"))
58
59 def hexdigest(self):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value)
51 return cls.dispatch[type(value)](cls, value)
52 else:
---> 53 return cls.hash_default(value)
54
55 def update(self, value):
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value)
44 @classmethod
45 def hash_default(cls, value):
---> 46 return cls.hash_bytes(dumps(value))
47
48 @classmethod
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj)
387 file = StringIO()
388 with _no_cache_fields(obj):
--> 389 dump(obj, file)
390 return file.getvalue()
391
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file)
359 def dump(obj, file):
360 """pickle an object to a file"""
--> 361 Pickler(file, recurse=True).dump(obj)
362 return
363
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj)
452 raise PicklingError(msg)
453 else:
--> 454 StockPickler.dump(self, obj)
455 stack.clear() # clear record of 'recursion-sensitive' pickled objects
456 return
/usr/lib/python3.7/pickle.py in dump(self, obj)
435 if self.proto >= 4:
436 self.framer.start_framing()
--> 437 self.save(obj)
438 self.write(STOP)
439 self.framer.end_framing()
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj)
554 dill._dill._create_function,
555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults),
--> 556 obj=obj,
557 )
558 else:
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
636 else:
637 save(func)
--> 638 save(args)
639 write(REDUCE)
640
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
/usr/lib/python3.7/pickle.py in save_tuple(self, obj)
784 write(MARK)
785 for element in obj:
--> 786 save(element)
787
788 if id(obj) in memo:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
880 for k, v in tmp:
881 save(k)
--> 882 save(v)
883 write(SETITEMS)
884 elif n:
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
547
548 # Save the reduce() output and finally memoize the object
--> 549 self.save_reduce(obj=obj, *rv)
550
551 def persistent_id(self, obj):
/usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
660
661 if state is not None:
--> 662 save(state)
663 write(BUILD)
664
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
502 f = self.dispatch.get(t)
503 if f is not None:
--> 504 f(self, obj) # Call unbound method with explicit self
505 return
506
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj)
939 # we only care about session the first pass thru
940 pickler._session = False
--> 941 StockPickler.save_dict(pickler, obj)
942 log.info("# D2")
943 return
/usr/lib/python3.7/pickle.py in save_dict(self, obj)
854
855 self.memoize(obj)
--> 856 self._batch_setitems(obj.items())
857
858 dispatch[dict] = save_dict
/usr/lib/python3.7/pickle.py in _batch_setitems(self, items)
885 k, v = tmp[0]
886 save(k)
--> 887 save(v)
888 write(SETITEM)
889 # else tmp is empty, and we're done
/usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id)
522 reduce = getattr(obj, "__reduce_ex__", None)
523 if reduce is not None:
--> 524 rv = reduce(self.proto)
525 else:
526 reduce = getattr(obj, "__reduce__", None)
TypeError: can't pickle SwigPyObject objects
```
Which I have no idea how to solve/deal with it
I totally forgot to answer this issue, I'm so sorry.
I was able to get it working by installing `datasets` from source. Huge thanks! | [
0.06904204934835434,
-0.38878345489501953,
-0.06963580846786499,
0.2468254417181015,
0.164226233959198,
0.027764270082116127,
0.17842744290828705,
0.05411217361688614,
0.4089656174182892,
0.5476052165031433,
-0.05009916052222252,
0.4959976077079773,
0.11579318344593048,
-0.12733516097068787,
-0.2676263153553009,
0.0515105240046978,
0.08499445021152496,
0.01342253852635622,
0.021620335057377815,
-0.2425849586725235,
-0.5357056856155396,
-0.04840271547436714,
-0.19842618703842163,
0.04933896288275719,
-0.0398409366607666,
0.018033567816019058,
-0.033283352851867676,
0.09544795751571655,
-0.058445874601602554,
-0.4539252817630768,
0.4045753479003906,
0.25768470764160156,
0.211661234498024,
-0.013423421420156956,
-0.00012667453847825527,
0.06790219992399216,
0.20534740388393402,
-0.021252185106277466,
-0.1646227389574051,
0.08675011992454529,
-0.0015755053609609604,
0.30584123730659485,
0.2944123446941376,
-0.35424911975860596,
-0.217924565076828,
-0.25507017970085144,
-0.050455670803785324,
-0.13455606997013092,
0.06806495040655136,
0.19159550964832306,
0.0670926421880722,
0.1456795632839203,
-0.11307267099618912,
-0.15868912637233734,
0.22158508002758026,
-0.010913512669503689,
-0.0620621033012867,
0.1621502935886383,
0.2719886302947998,
0.30666017532348633,
0.25445765256881714,
0.2748858332633972,
-0.2460707575082779,
0.03687269240617752,
-0.07259956747293472,
0.09264026582241058,
0.33780449628829956,
0.09200812131166458,
0.1556718945503235,
0.09694638848304749,
0.24981233477592468,
-0.27378225326538086,
-0.47020769119262695,
-0.4137730896472931,
-0.06139606982469559,
-0.15674848854541779,
-0.26279494166374207,
-0.5509218573570251,
-0.017236994579434395,
0.24829250574111938,
0.1254628598690033,
0.10218589752912521,
-0.06395648419857025,
0.5212547779083252,
0.4118609130382538,
0.03595523536205292,
0.014424039050936699,
0.21093346178531647,
0.10664121061563492,
-0.05764833092689514,
0.13660335540771484,
-0.13325287401676178,
-0.028368644416332245,
-0.1321200579404831,
-0.21314874291419983,
-0.12421440333127975,
0.4846392869949341,
-0.2354142963886261,
0.24505823850631714,
0.08462602645158768,
-0.12905825674533844,
0.4014527201652527,
0.0691411942243576,
0.10754959285259247,
0.16151747107505798,
-0.11862672120332718,
-0.0983867272734642,
0.039572469890117645,
-0.11711721867322922,
0.08703576773405075,
-0.1678486317396164,
0.11425769329071045,
0.026899851858615875,
-0.05530620738863945,
-0.6315293312072754,
-0.012941033579409122,
0.320594847202301,
-0.14490297436714172,
-0.10143246501684189,
0.2506064474582672,
-0.6014734506607056,
0.34290871024131775,
0.13187041878700256,
0.5309943556785583,
0.014597448520362377,
0.1166362464427948,
0.19498880207538605,
0.24707771837711334,
-0.29601532220840454,
0.4217509627342224,
-0.22669827938079834,
-0.04202728345990181,
0.034669212996959686,
-0.0588206872344017,
-0.12180715799331665,
0.4785676598548889,
0.28498944640159607,
-0.26060202717781067,
0.09783129394054413,
-0.07848396897315979,
0.022725878283381462,
-0.11066239327192307,
0.3640691339969635,
0.19701312482357025,
-0.053364358842372894,
0.07728267461061478,
0.17100830376148224,
-0.09544059634208679,
-0.17449013888835907,
0.11748018860816956,
0.13840121030807495,
-0.10213892161846161,
0.19039294123649597,
0.070963554084301,
-0.13898628950119019,
-0.13179871439933777,
-0.21304474771022797,
0.12119612097740173,
-0.08783604949712753,
0.23695801198482513,
0.1870570331811905,
-0.18788261711597443,
-0.08760324120521545,
-0.1486043930053711,
0.20903992652893066,
0.5161314010620117,
-0.2350451499223709,
-0.07585560530424118,
0.02449401281774044,
0.19517816603183746,
0.3501952588558197,
0.2010134905576706,
-0.32679834961891174,
0.2561721205711365,
0.0371251218020916,
0.23221683502197266,
0.316365122795105,
-0.44901883602142334,
-0.6639240384101868,
-0.09019996225833893,
-0.07569920271635056,
0.03977356478571892,
0.3317386507987976,
0.09758953750133514,
0.3703520596027374,
0.2930631935596466,
-0.14594703912734985,
0.5172798037528992,
0.16961592435836792,
0.04346735030412674,
-0.2609553635120392,
-0.3448403477668762,
0.02314171940088272,
0.12701448798179626,
-0.07336806505918503,
0.16323843598365784,
-0.04404837265610695,
-0.26762622594833374,
0.36140167713165283,
-0.15033785998821259,
-0.10212843120098114,
0.26906535029411316,
0.5216957926750183,
0.21598728001117706,
0.21308933198451996,
-0.20326386392116547,
-0.0844261422753334,
0.12828518450260162,
-0.15222251415252686,
0.022890005260705948,
-0.07821710407733917,
-0.2090480625629425,
-0.013567754998803139,
0.19774910807609558,
-0.3135468065738678,
-0.1740482896566391,
-0.07465220987796783,
0.15297698974609375,
0.28819921612739563,
-0.13186249136924744,
-0.09894532710313797,
0.04934291914105415,
-0.33996614813804626,
0.20498044788837433,
-0.5214462876319885,
0.4271000623703003,
-0.09354791045188904,
-0.31373652815818787,
-0.18720167875289917,
0.25834956765174866,
0.013484795577824116,
-0.15099574625492096,
-0.15897615253925323,
0.10670290142297745,
0.4748959243297577,
-0.40636131167411804,
0.17568828165531158,
-0.30792057514190674,
-0.019566580653190613,
-0.10988813638687134,
0.11341501027345657,
0.009082123637199402,
0.14439719915390015,
0.21565859019756317,
-0.009515447542071342,
0.6227208971977234,
0.37243279814720154,
0.15079861879348755,
-0.07652714848518372,
0.1891472339630127,
0.14738111197948456,
-0.1591726392507553,
-0.05282871425151825,
-0.507877767086029,
-0.18280766904354095,
0.3740834593772888,
0.11359692364931107,
0.02832978218793869,
-0.4408775269985199,
0.4054226577281952,
0.24011698365211487,
0.060324229300022125,
-0.118427574634552,
0.15418390929698944,
-0.056814245879650116,
-0.03674696013331413,
0.029288457706570625,
-0.21392664313316345,
0.10529585182666779,
0.3675740957260132,
-0.27791985869407654,
-0.32087308168411255,
0.008762221783399582,
-0.04218871518969536,
0.06506229937076569,
0.3736095130443573,
-0.04236529394984245,
-0.2475414127111435,
0.09350902587175369,
-0.005427903961390257,
-0.38407179713249207,
-0.3060506284236908,
-0.03811940550804138,
0.07016552239656448,
-0.11144264787435532,
0.17439019680023193,
-0.37495148181915283,
-0.1492134928703308,
0.08720813691616058,
-0.45783865451812744,
0.19163064658641815,
-0.09812331199645996,
0.1739201843738556,
0.22585803270339966,
-0.23704347014427185,
0.4466657042503357,
0.11919775605201721,
0.15984660387039185,
0.05297710746526718,
-0.19985906779766083,
-0.12007655203342438,
-0.17553366720676422,
-0.45761677622795105,
-0.09228962659835815,
-0.22862564027309418,
0.4021473824977875,
0.17739473283290863,
0.21580439805984497,
-0.09752120077610016,
-0.29270943999290466,
0.021101828664541245,
0.028738245368003845,
0.14060759544372559,
0.202092707157135,
0.18797078728675842,
0.046798646450042725,
-0.23935024440288544,
-0.11357030272483826,
0.07079395651817322,
0.16612985730171204,
-0.20331250131130219,
-0.17623814940452576,
-0.04304223507642746,
-0.08146385103464127,
0.10186279565095901,
-0.21136148273944855,
-0.2890201508998871,
-0.22593723237514496,
0.1515958309173584,
0.09191522002220154,
0.10955366492271423,
0.021820927038788795,
0.37258216738700867,
0.05513637885451317,
-0.2080983966588974,
-0.10801417380571365,
-0.2729109227657318,
0.009455668739974499,
-0.07352647930383682,
-0.04149947687983513,
-0.2861771285533905,
-0.506501317024231,
-0.33980217576026917,
-0.2370949238538742,
0.19563685357570648,
-0.2353992611169815,
-0.33611518144607544,
-0.34408292174339294,
0.15928958356380463,
0.1556718945503235,
0.14096149802207947,
0.3760392665863037,
0.22478225827217102,
-0.08757458627223969,
-0.16665875911712646,
-0.3055535852909088,
0.44457384943962097,
0.1400023251771927,
0.08829985558986664,
0.10773395746946335,
0.4067179560661316,
-0.18408209085464478,
0.527717113494873,
0.12478537857532501,
-0.520957350730896,
0.3717171847820282,
-0.014029447920620441,
0.015872303396463394,
-0.06754077970981598,
-0.2851007282733917,
0.16566413640975952,
0.1925269514322281,
-0.1816549003124237,
0.16265100240707397,
-0.1984013319015503,
0.05916907638311386,
0.33942553400993347,
0.31978732347488403,
-0.3819202184677124,
-0.27683568000793457,
-0.05373353511095047,
-0.15951965749263763,
-0.3160979151725769,
0.025268055498600006,
0.33398371934890747,
-0.5367693305015564,
0.23682567477226257,
0.08284565806388855,
0.14890635013580322,
0.18797747790813446,
-0.0566985085606575,
-0.07691178470849991,
-0.1068078875541687,
-0.35940638184547424,
0.41494908928871155,
0.014454418793320656,
0.2401238977909088,
0.08461466431617737,
-0.034012891352176666,
0.34345874190330505,
0.06843234598636627,
0.9571903347969055,
-0.06147853285074234,
-0.02395252138376236,
0.3976438045501709,
-0.2214731127023697,
-0.36348211765289307,
0.025664502754807472,
-0.17715470492839813,
0.07975832372903824,
0.10192990303039551,
0.22994273900985718,
-0.16012845933437347,
-0.3377132713794708,
0.02653203159570694,
0.01673879846930504,
-0.12575560808181763,
0.03941570222377777,
-0.0708356499671936,
-0.41674575209617615,
-0.46632885932922363,
0.11469509452581406,
-0.020214296877384186,
0.14229941368103027,
0.09586651623249054,
-0.21130239963531494,
-0.5041608214378357,
-0.11018241941928864,
-0.1364935338497162,
0.15174618363380432,
0.39362430572509766,
0.14543472230434418,
0.13112390041351318,
0.14259377121925354,
0.34860315918922424,
0.6238428354263306,
0.22571760416030884,
-0.07521768659353256,
-0.21511933207511902,
-0.006214739754796028,
0.16428425908088684,
0.0945563018321991,
0.42806705832481384,
-0.06382377445697784,
0.4363095164299011,
-0.04150788113474846,
0.1246345266699791,
0.0061395540833473206,
0.22276610136032104,
0.2262481153011322,
0.21135638654232025,
0.05645133927464485,
-0.43798908591270447,
0.5630468130111694,
0.021087227389216423,
-0.1794915497303009,
0.31360018253326416,
0.16184984147548676,
-0.25788795948028564,
1.0739564895629883,
0.22332996129989624,
1.0657082796096802,
-0.0835496112704277,
0.22637885808944702,
0.19865374267101288,
0.06445501744747162,
0.4328967034816742,
0.12280572205781937,
0.15999172627925873,
-0.33144131302833557,
0.2574235796928406,
0.007882682606577873,
-0.3100055754184723,
0.1413198709487915,
0.24119557440280914,
-0.08309222012758255,
-0.09476339817047119,
-0.21930035948753357,
-0.2675539553165436,
-0.06948558986186981,
0.03920593485236168,
0.3647852838039398,
-0.3496558666229248,
-0.3084585666656494,
-0.031542714685201645,
0.2854221761226654,
0.29282689094543457,
0.24883155524730682,
-0.14911356568336487,
-0.4724772870540619,
-0.1838758885860443,
-0.21596001088619232,
0.005299808457493782,
-0.27755728363990784,
0.27017441391944885,
0.17104201018810272,
-0.30572524666786194,
-0.16933834552764893,
0.23805910348892212,
0.18919862806797028,
-0.14771988987922668,
-0.17465528845787048,
0.11698278039693832,
0.15543530881404877,
-0.09744909405708313,
-0.008984239771962166,
-0.27513909339904785,
0.38019973039627075,
0.15564501285552979,
-0.3932548761367798,
0.015331621281802654,
0.15893614292144775,
-0.4387568235397339,
-0.09044504165649414,
-0.08017157763242722,
-0.23098598420619965,
-0.2791677415370941,
-0.3515003025531769,
-0.06574225425720215,
-0.1390065997838974,
-0.4286186397075653,
-0.021883325651288033,
0.01305694691836834,
-0.20575106143951416,
0.4152248501777649,
-0.12011486291885376,
-0.3386865258216858,
-0.17250502109527588,
0.5766258835792542,
0.2049618810415268,
0.09537563472986221,
0.49887585639953613,
0.20451755821704865,
-0.14762632548809052,
-0.18616223335266113,
-0.46980607509613037,
0.4244086742401123,
0.07368435710668564,
0.30304738879203796,
-0.076429083943367,
-0.31452053785324097,
-0.10987769812345505,
-0.010932455770671368,
0.03224935382604599,
-0.13382381200790405,
-0.5415475964546204,
-0.22277216613292694,
-0.5453009605407715,
0.19932742416858673,
0.01891961134970188,
0.4727431535720825,
-0.205404132604599,
0.5167484879493713,
-0.5072891712188721,
-0.2756154537200928,
-0.16703447699546814,
-0.02210729941725731,
-0.46642524003982544,
0.023472413420677185,
-0.3302718997001648,
-0.1691892147064209,
0.0772077664732933,
0.051503002643585205,
0.032448817044496536,
-0.05112217739224434,
-0.06589016318321228,
-0.10555396229028702,
-0.15735943615436554,
0.18042701482772827,
0.0931679904460907,
-0.19175325334072113,
-0.12359645962715149,
-0.04186427220702171,
-0.1471068412065506,
-0.17900075018405914,
0.18229854106903076,
0.27532294392585754,
-0.06500336527824402,
0.17344658076763153,
0.04643968492746353,
0.09533604979515076,
0.25194886326789856,
0.09385330229997635,
-0.02966158278286457,
0.3096499443054199,
0.09706543385982513,
0.11753460019826889,
-0.12140839546918869,
-0.03114824742078781,
-0.063928984105587,
0.023355912417173386,
-0.0015805874718353152,
-0.04701085761189461,
-0.08501850068569183,
-0.03448357433080673,
-0.3594440221786499,
0.328960657119751,
0.2795447111129761,
0.5147302150726318,
0.08545241504907608,
-0.2399229109287262,
0.24238935112953186,
0.04633188247680664,
-0.2119930386543274,
-0.2285027801990509,
0.3535672426223755,
-0.2673206031322479,
0.2338826060295105,
0.21015889942646027,
-0.09037113189697266,
0.19812949001789093,
-0.314819872379303,
-0.05228178948163986,
0.20384791493415833,
0.3505212366580963,
0.14751936495304108,
0.20917649567127228,
0.13171008229255676,
0.051563989371061325,
0.13663293421268463,
0.4851371645927429,
0.7115123867988586,
0.5667840838432312,
-0.010982347652316093,
0.6284352540969849,
-0.233982115983963,
0.038772474974393845,
0.03301253169775009,
-0.5802501440048218,
0.5933228731155396,
0.08162208646535873,
-0.016071010380983353,
0.05523354560136795,
0.06653375178575516,
0.16970862448215485,
0.12200530618429184,
-0.2425168752670288,
-0.07678109407424927,
0.28561535477638245,
-0.2219858169555664,
-0.5239713191986084,
-0.16376405954360962,
0.013441838324069977,
0.054909754544496536,
-0.10308428108692169,
-0.004145525395870209,
-0.2838757634162903,
0.1822269707918167,
-0.1851777285337448,
-0.2403617650270462,
-0.2812502682209015,
-0.28570985794067383,
-0.06400898844003677,
0.13659043610095978,
-0.07531268149614334,
-0.10241144150495529,
-0.10063633322715759,
-0.14163707196712494,
-0.11631656438112259,
0.05885455384850502,
0.09470424801111221,
0.14169088006019592,
-0.5192409157752991,
-0.037828996777534485,
-0.05737323313951492,
-0.17661356925964355,
-0.20650918781757355,
0.023323139175772667,
-0.16379785537719727,
-0.021264059469103813,
0.1977408230304718,
-0.006110596004873514,
-0.0758737102150917,
-0.34456580877304077,
0.23219695687294006,
0.35497093200683594,
0.03815566375851631,
0.09397205710411072,
0.061826854944229126,
0.0781840831041336,
0.08916831016540527,
-0.09187117218971252,
-0.2969633638858795,
-0.09764526039361954,
0.3326539099216461,
-0.040677499026060104,
0.19271837174892426,
0.16475015878677368,
0.0005436823121272027,
-0.24791677296161652,
0.39039409160614014,
0.392421692609787,
0.3247525990009308,
-0.21644771099090576,
0.34763088822364807,
-0.0362352691590786,
0.21040819585323334,
-0.04794420674443245,
-0.31860023736953735,
0.37791362404823303,
0.1847469061613083,
0.042814966291189194,
-0.06572271883487701,
0.014569560997188091,
0.30719977617263794,
0.32817885279655457,
0.6772934198379517,
-0.2702368199825287,
-0.18753360211849213,
-0.3799322545528412,
0.04308659955859184,
0.28654059767723083,
-0.307363361120224,
-0.0778111144900322,
0.047226615250110626,
-0.12656080722808838,
-0.3398210406303406,
-0.007095087319612503,
0.1033460721373558,
-0.16982771456241608,
0.25881227850914,
0.3162370026111603,
0.14657294750213623,
-0.0743974894285202,
-0.12184988707304001,
-0.12944073975086212,
-0.25185906887054443,
-0.22229871153831482,
-0.2623870074748993,
-0.1795755922794342,
0.17982885241508484,
-0.09648378193378448,
-0.09733559936285019,
-0.1671265959739685,
0.01764460653066635,
0.3991204500198364,
-0.20932810008525848,
-0.16689252853393555,
0.31774309277534485,
-0.23154479265213013,
0.05972202494740486,
0.04466293752193451,
0.22182318568229675,
-0.005772009491920471,
0.49407050013542175,
-0.285569429397583,
-0.07852406799793243,
0.7860206961631775,
-0.3918514549732208,
-0.022845659404993057,
-0.20928485691547394,
0.2463769167661667,
-0.08429060876369476,
-0.16694527864456177,
-0.23458291590213776,
0.008381807245314121,
0.20627115666866302,
0.0018959183944389224,
-0.3033871650695801,
0.06009991839528084,
0.4667138457298279,
-0.07100841403007507,
-0.14606034755706787,
0.39399710297584534,
0.19481481611728668,
0.17317251861095428,
0.1124257892370224,
-0.20699837803840637
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | Hello, @lhoestq / @gaceladri : We have been seeing similar behavior with bigger datasets, where querying time increases. Are you folks aware of any solution that fixes this problem yet? | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 30 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
Hello, @lhoestq / @gaceladri : We have been seeing similar behavior with bigger datasets, where querying time increases. Are you folks aware of any solution that fixes this problem yet? | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | Hi ! I'm pretty sure that it can be fixed by using the Arrow IPC file format instead of the raw streaming format but I haven't tested yet.
I'll take a look at it soon and let you know | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 39 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
Hi ! I'm pretty sure that it can be fixed by using the Arrow IPC file format instead of the raw streaming format but I haven't tested yet.
I'll take a look at it soon and let you know | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | My workaround is to shard the dataset into splits in my ssd disk and feed the data in different training sessions. But it is a bit of a pain when we need to reload the last training session with the rest of the split with the Trainer in transformers.
I mean, when I split the training and then reloads the model and optimizer, it not gets the correct global_status of the optimizer, so I need to hardcode some things. I'm planning to open an issue in transformers and think about it.
```
from datasets import load_dataset
book_corpus = load_dataset("bookcorpus", split="train[:25%]")
wikicorpus = load_dataset("wikicorpus", split="train[:25%]")
openwebtext = load_dataset("openwebtext", split="train[:25%]")
big_dataset = datasets.concatenate_datasets([wikicorpus, openwebtext, book_corpus])
big_dataset.shuffle(seed=42)
big_dataset = big_dataset.map(encode, batched=True, num_proc=20, load_from_cache_file=True, writer_batch_size=5000)
big_dataset.set_format(type='torch', columns=["text", "input_ids", "attention_mask", "token_type_ids"])
training_args = TrainingArguments(
output_dir="./linear_bert",
overwrite_output_dir=True,
per_device_train_batch_size=71,
save_steps=500,
save_total_limit=10,
logging_first_step=True,
logging_steps=100,
gradient_accumulation_steps=9,
fp16=True,
dataloader_num_workers=20,
warmup_steps=24000,
learning_rate=0.000545205002870214,
adam_epsilon=1e-6,
adam_beta2=0.98,
weight_decay=0.01,
max_steps=138974, # the total number of steps after concatenating 100% datasets
max_grad_norm=1.0,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=big_dataset,
tokenizer=tokenizer))
```
I do one training pass with the total steps of this shard and I use len(bbig)/batchsize to stop the training (hardcoded in the trainer.py) when I pass over all the examples in this split.
Now Im working, I will edit the comment with a more elaborated answer when I left the work. | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 218 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
My workaround is to shard the dataset into splits in my ssd disk and feed the data in different training sessions. But it is a bit of a pain when we need to reload the last training session with the rest of the split with the Trainer in transformers.
I mean, when I split the training and then reloads the model and optimizer, it not gets the correct global_status of the optimizer, so I need to hardcode some things. I'm planning to open an issue in transformers and think about it.
```
from datasets import load_dataset
book_corpus = load_dataset("bookcorpus", split="train[:25%]")
wikicorpus = load_dataset("wikicorpus", split="train[:25%]")
openwebtext = load_dataset("openwebtext", split="train[:25%]")
big_dataset = datasets.concatenate_datasets([wikicorpus, openwebtext, book_corpus])
big_dataset.shuffle(seed=42)
big_dataset = big_dataset.map(encode, batched=True, num_proc=20, load_from_cache_file=True, writer_batch_size=5000)
big_dataset.set_format(type='torch', columns=["text", "input_ids", "attention_mask", "token_type_ids"])
training_args = TrainingArguments(
output_dir="./linear_bert",
overwrite_output_dir=True,
per_device_train_batch_size=71,
save_steps=500,
save_total_limit=10,
logging_first_step=True,
logging_steps=100,
gradient_accumulation_steps=9,
fp16=True,
dataloader_num_workers=20,
warmup_steps=24000,
learning_rate=0.000545205002870214,
adam_epsilon=1e-6,
adam_beta2=0.98,
weight_decay=0.01,
max_steps=138974, # the total number of steps after concatenating 100% datasets
max_grad_norm=1.0,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=big_dataset,
tokenizer=tokenizer))
```
I do one training pass with the total steps of this shard and I use len(bbig)/batchsize to stop the training (hardcoded in the trainer.py) when I pass over all the examples in this split.
Now Im working, I will edit the comment with a more elaborated answer when I left the work. | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | I just tested and using the Arrow File format doesn't improve the speed... This will need further investigation.
My guess is that it has to iterate over the record batches or chunks of a ChunkedArray in order to retrieve elements.
However if we know in advance in which chunk the element is, and at what index it is, then we can access it instantaneously. But this requires dealing with the chunked arrays instead of the pyarrow Table directly which is not practical. | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 82 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
I just tested and using the Arrow File format doesn't improve the speed... This will need further investigation.
My guess is that it has to iterate over the record batches or chunks of a ChunkedArray in order to retrieve elements.
However if we know in advance in which chunk the element is, and at what index it is, then we can access it instantaneously. But this requires dealing with the chunked arrays instead of the pyarrow Table directly which is not practical. | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | I have a dataset with about 2.7 million rows (which I'm loading via `load_from_disk`), and I need to fetch around 300k (particular) rows of it, by index. Currently this is taking a really long time (~8 hours). I tried sharding the large dataset but overall it doesn't change how long it takes to fetch the desired rows.
I actually have enough RAM that I could fit the large dataset in memory. Would having the large dataset in memory speed up querying? To find out, I tried to load (a column of) the large dataset into memory like this:
```
column_data = large_ds['column_name']
```
but in itself this takes a really long time.
I'm pretty stuck - do you have any ideas what I should do? | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 125 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
I have a dataset with about 2.7 million rows (which I'm loading via `load_from_disk`), and I need to fetch around 300k (particular) rows of it, by index. Currently this is taking a really long time (~8 hours). I tried sharding the large dataset but overall it doesn't change how long it takes to fetch the desired rows.
I actually have enough RAM that I could fit the large dataset in memory. Would having the large dataset in memory speed up querying? To find out, I tried to load (a column of) the large dataset into memory like this:
```
column_data = large_ds['column_name']
```
but in itself this takes a really long time.
I'm pretty stuck - do you have any ideas what I should do? | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1803 | Querying examples from big datasets is slower than small datasets | Hi ! Feel free to post a message on the [forum](https://discuss.huggingface.co/c/datasets/10). I'd be happy to help you with this.
In your post on the forum, feel free to add more details about your setup:
What are column names and types of your dataset ?
How was the dataset constructed ?
Is the dataset shuffled ?
Is the dataset tokenized ?
Are you on a SSD or an HDD ?
I'm sure we can figure something out.
For example on my laptop I can access the 6 millions articles from wikipedia in less than a minute. | After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed. | 95 | Querying examples from big datasets is slower than small datasets
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets.
For example
```python
from datasets import load_dataset
b1 = load_dataset("bookcorpus", split="train[:1%]")
b50 = load_dataset("bookcorpus", split="train[:50%]")
b100 = load_dataset("bookcorpus", split="train[:100%]")
%timeit _ = b1[-1]
# 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit _ = b50[-1]
# 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
%timeit _ = b100[-1]
# 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
It looks like the time to fetch the example increases with the size of the dataset.
This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample.
Maybe switching to the Arrow IPC file format could help fixing this issue.
Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue:
> We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer.
cc @gaceladri since it can help speed up your training when this one is fixed.
Hi ! Feel free to post a message on the [forum](https://discuss.huggingface.co/c/datasets/10). I'd be happy to help you with this.
In your post on the forum, feel free to add more details about your setup:
What are column names and types of your dataset ?
How was the dataset constructed ?
Is the dataset shuffled ?
Is the dataset tokenized ?
Are you on a SSD or an HDD ?
I'm sure we can figure something out.
For example on my laptop I can access the 6 millions articles from wikipedia in less than a minute. | [
-0.40549370646476746,
0.05864446982741356,
-0.07997152954339981,
0.1315324306488037,
-0.07969389110803604,
-0.1776914894580841,
0.2441747635602951,
0.4918093979358673,
-0.23139889538288116,
0.1801937073469162,
0.08149363845586777,
0.0550893135368824,
0.12508580088615417,
-0.10075666755437851,
0.1307258903980255,
-0.2734064757823944,
0.0807415023446083,
0.12484598159790039,
-0.07513204962015152,
-0.03452865406870842,
0.024030357599258423,
-0.19028694927692413,
-0.3486268222332001,
0.01846982352435589,
-0.06632741540670395,
-0.2240721881389618,
-0.23070640861988068,
0.1072063222527504,
-0.16585059463977814,
-0.4173946976661682,
-0.05953633040189743,
-0.15281936526298523,
0.2299300581216812,
0.42703086137771606,
-0.00011307334352750331,
0.016404902562499046,
0.22793063521385193,
0.08941758424043655,
-0.19974729418754578,
0.1829342246055603,
0.174807608127594,
-0.28385433554649353,
0.08687435835599899,
-0.4097663462162018,
-0.047153979539871216,
-0.2971981465816498,
0.0934281274676323,
0.01890101470053196,
-0.041253577917814255,
0.3089762330055237,
0.1403641402721405,
0.5131546258926392,
-0.19170473515987396,
-0.1336633861064911,
0.6230672597885132,
0.20515209436416626,
-0.35063034296035767,
0.5299633145332336,
0.5806367993354797,
-0.04879967123270035,
-0.3053155839443207,
0.13614028692245483,
-0.08144446462392807,
0.27014121413230896,
0.03702234476804733,
0.19797296822071075,
-0.11280538886785507,
0.17959170043468475,
0.12381041795015335,
0.4088887572288513,
0.30839043855667114,
-0.08939146995544434,
-0.3148866593837738,
-0.2920185923576355,
-0.05692798271775246,
-0.23329336941242218,
0.020307565107941628,
0.3264191150665283,
-0.2583790719509125,
0.271342009305954,
-0.3137764036655426,
0.15477798879146576,
-0.10565081238746643,
0.179551899433136,
-0.15115906298160553,
-0.06861589848995209,
0.11505090445280075,
0.19851048290729523,
0.093796007335186,
0.013313055038452148,
0.15119288861751556,
-0.16962118446826935,
0.02840619534254074,
-0.052110858261585236,
-0.28830447793006897,
-0.08815470337867737,
0.15566325187683105,
0.17557865381240845,
0.26850563287734985,
0.15931016206741333,
0.422320693731308,
0.11828362941741943,
0.2651936411857605,
0.09436209499835968,
0.04513571038842201,
-0.009021535515785217,
-0.26956477761268616,
-0.000978423049673438,
0.34787994623184204,
0.2753002941608429,
-0.29451626539230347,
0.020877791568636894,
-0.23832131922245026,
-0.18445418775081635,
0.18156276643276215,
-0.19732977449893951,
-0.02745375595986843,
-0.13371673226356506,
0.004323001019656658,
-0.08730459958314896,
-0.3421144485473633,
-0.1278226524591446,
-0.026557113975286484,
0.4784683883190155,
-0.18346570432186127,
-0.02657233737409115,
-0.21266715228557587,
0.12222374975681305,
-0.33534297347068787,
-0.25402525067329407,
-0.12431249022483826,
-0.1883356273174286,
-0.1600801795721054,
0.23030808568000793,
0.1097954511642456,
0.05609781667590141,
0.3020734488964081,
0.058540698140859604,
-0.1985149085521698,
0.2419625073671341,
0.3923715353012085,
-0.18086585402488708,
0.10445620864629745,
0.01975509710609913,
0.011255386285483837,
0.06353221088647842,
-0.16374021768569946,
0.2447640597820282,
-0.3910897374153137,
0.1972707211971283,
-0.19535650312900543,
-0.3384782373905182,
0.03063935972750187,
0.09199298173189163,
-0.10569562762975693,
-0.099760502576828,
-0.22708094120025635,
0.2462458312511444,
-0.06942236423492432,
-0.1997460573911667,
-0.07743705064058304,
-0.09419368952512741,
0.040289975702762604,
-0.15313270688056946,
0.14130041003227234,
0.07762664556503296,
-0.2506594955921173,
0.20185084640979767,
-0.04518634080886841,
0.397034615278244,
0.2543899714946747,
0.5308367013931274,
-0.5031033158302307,
0.1623612940311432,
-0.1327785700559616,
0.2966162860393524,
0.2320234179496765,
-0.028132062405347824,
-0.6667605042457581,
0.4973526895046234,
-0.004258412402123213,
0.024189293384552002,
0.2724839746952057,
0.16171209514141083,
0.35167813301086426,
0.10784825682640076,
-0.04906216636300087,
0.3837118148803711,
0.18394792079925537,
0.22793078422546387,
-0.3400997817516327,
-0.23031039535999298,
-0.048727501183748245,
0.3479747474193573,
-0.3244730830192566,
-0.15712158381938934,
0.3112506866455078,
-0.3645972013473511,
0.49065959453582764,
-0.20656418800354004,
-0.18362675607204437,
0.2509786784648895,
0.08702383190393448,
-0.27774569392204285,
0.11834842711687088,
0.09648769348859787,
0.0859435498714447,
0.2421766072511673,
-0.18948668241500854,
-0.01846480183303356,
0.04509040340781212,
-0.18880894780158997,
-0.07221516221761703,
0.06196277588605881,
-0.05526028946042061,
-0.04738571122288704,
-0.0448971688747406,
-0.0918298065662384,
0.33068713545799255,
-0.003531361697241664,
0.1647336184978485,
-0.1632061004638672,
-0.2693370282649994,
-0.009445850737392902,
-0.26261842250823975,
0.07929258793592453,
0.09506833553314209,
-0.12131068855524063,
0.00930617656558752,
-0.249253049492836,
-0.08842361718416214,
-0.001733105629682541,
-0.15193721652030945,
0.3275277316570282,
0.15022917091846466,
0.1502472311258316,
0.2235308736562729,
0.15224803984165192,
0.14195667207241058,
-0.08493095636367798,
0.3879740834236145,
0.2968659996986389,
0.0753156766295433,
0.0365259163081646,
-0.40534767508506775,
0.526332676410675,
0.3933134377002716,
0.31605446338653564,
0.29040318727493286,
-0.3733906149864197,
0.16444453597068787,
0.04837936908006668,
0.11050228029489517,
0.4106384515762329,
0.293798565864563,
0.24215605854988098,
0.5489557385444641,
0.16632585227489471,
-0.31619715690612793,
0.11558237671852112,
0.45061400532722473,
-0.24960166215896606,
0.01804167963564396,
0.18730442225933075,
-0.421713262796402,
-0.18561729788780212,
0.37021562457084656,
-0.15096911787986755,
0.326580286026001,
0.3312530517578125,
0.16064433753490448,
-0.12395524978637695,
0.02744320221245289,
-0.2904404401779175,
0.2625502347946167,
0.09679502248764038,
0.14140860736370087,
-0.22010843455791473,
0.43684324622154236,
-0.09200576692819595,
-0.24601103365421295,
-0.38159820437431335,
-0.03920765593647957,
0.1921321153640747,
-0.12640108168125153,
0.30729904770851135,
-0.09829828888177872,
0.05361884832382202,
-0.032451171427965164,
0.13080064952373505,
0.07907216995954514,
-0.08653528243303299,
0.04503848776221275,
0.19354091584682465,
-0.18121053278446198,
-0.15833830833435059,
-0.05519111827015877,
0.2278955727815628,
0.2617880702018738,
-0.20876148343086243,
-0.0017742002382874489,
-0.0716872438788414,
-0.3983871340751648,
0.08031314611434937,
0.277599573135376,
0.14939165115356445,
0.14504557847976685,
-0.046917885541915894,
-0.18544796109199524,
-0.28017398715019226,
-0.31523850560188293,
-0.006572959944605827,
0.07990691065788269,
0.286618709564209,
-0.07090051472187042,
0.07639420032501221,
-0.32445228099823,
-0.14476628601551056,
0.06370997428894043,
-0.23291015625,
-0.15132559835910797,
0.2760070562362671,
-0.18074755370616913,
0.0008985641179606318,
0.0887831375002861,
-0.31637513637542725,
-0.1673075407743454,
-0.3001769483089447,
0.3784309923648834,
0.172761008143425,
0.20834560692310333,
0.10755565762519836,
0.39434319734573364,
0.12237150222063065,
0.009659950621426105,
0.12281931936740875,
0.03791649267077446,
-0.41495150327682495,
0.5190878510475159,
-0.1802634745836258,
-0.450064480304718,
-0.4888215959072113,
-0.24293047189712524,
-0.1641487330198288,
0.45249930024147034,
-0.5341609716415405,
-0.03114679455757141,
-0.5311312675476074,
0.41277602314949036,
0.12353997677564621,
0.1021675243973732,
0.04960310086607933,
-0.21315762400627136,
-0.20895574986934662,
0.1292298436164856,
0.08261784166097641,
-0.006419054698199034,
-0.08785057067871094,
0.20213763415813446,
-0.06152142584323883,
0.03371104225516319,
-0.009868277236819267,
0.7692420482635498,
0.06894419342279434,
-0.012904907576739788,
0.26353582739830017,
-0.0949031338095665,
0.051906585693359375,
-0.1647453010082245,
0.14588786661624908,
0.0905037671327591,
-0.26088017225265503,
-0.26992788910865784,
0.4183899164199829,
0.16414719820022583,
-0.308024525642395,
0.05913446098566055,
-0.18513037264347076,
-0.09765893220901489,
-0.2781834900379181,
0.2541961669921875,
0.15882427990436554,
0.17439840734004974,
0.06986089795827866,
0.3926580548286438,
-0.3018997013568878,
-0.13592661917209625,
0.07070936262607574,
-0.25781452655792236,
0.02017248421907425,
-0.11698362231254578,
-0.33734166622161865,
-0.0597153902053833,
-0.6845932006835938,
0.2021394819021225,
-0.06980425119400024,
0.039139069616794586,
0.25404563546180725,
-0.30217593908309937,
0.23480483889579773,
-0.06626424938440323,
0.548711895942688,
0.19057197868824005,
-0.1996443271636963,
-0.11521832644939423,
-0.2325008362531662,
-0.4247889220714569,
-0.15542389452457428,
-0.495625764131546,
0.1136520728468895,
-0.0005392564344219863,
0.3345818519592285,
-0.3185557425022125,
0.11183632910251617,
0.00006059161387383938,
0.31122854351997375,
0.19164972007274628,
-0.04427889734506607,
-0.16765454411506653,
-0.28234052658081055,
-0.132523313164711,
0.16237807273864746,
-0.19951483607292175,
0.05044972151517868,
-0.26943424344062805,
-0.1696104109287262,
-0.1472620666027069,
0.1772930920124054,
0.11682014912366867,
0.4819425046443939,
0.28469279408454895,
-0.43825647234916687,
0.3633343577384949,
0.027224818244576454,
0.1518046259880066,
0.3828199803829193,
0.4000195860862732,
0.3224879205226898,
-0.1235773116350174,
0.1998889148235321,
0.102229043841362,
0.07479681074619293,
0.5333117246627808,
-0.0012651383876800537,
0.19727247953414917,
0.061107978224754333,
0.2763024568557739,
-0.056449033319950104,
0.0823669508099556,
0.3274206221103668,
-0.08233864605426788,
-0.06249750405550003,
-0.3168291449546814,
0.7024028897285461,
0.09989885240793228,
0.008583001792430878,
0.23552821576595306,
-0.19018760323524475,
0.13044311106204987,
0.3013947606086731,
-0.10220658779144287,
0.9143369793891907,
-0.12508776783943176,
0.25259774923324585,
0.3494729995727539,
0.06673087924718857,
0.00759031530469656,
-0.09591732174158096,
0.15101638436317444,
-0.31350305676460266,
-0.23164907097816467,
0.17610545456409454,
-0.2805035710334778,
0.08492115885019302,
0.21285919845104218,
-0.1312742531299591,
0.08628791570663452,
-0.05373167246580124,
0.19904325902462006,
-0.2258603274822235,
0.23925141990184784,
-0.25296008586883545,
-0.05109228193759918,
-0.4353416860103607,
0.028821222484111786,
0.09728917479515076,
-0.06465199589729309,
0.08860582858324051,
-0.14536935091018677,
-0.5541800856590271,
0.010253499262034893,
-0.09387696534395218,
0.03891454264521599,
-0.235580176115036,
0.16329815983772278,
0.059375979006290436,
-0.47716155648231506,
-0.08425377309322357,
0.1212540715932846,
-0.49536892771720886,
0.0789545401930809,
-0.2458120733499527,
0.41740936040878296,
0.043545644730329514,
0.2301589846611023,
0.5308092832565308,
-0.33305463194847107,
-0.008719438686966896,
-0.029219074174761772,
-0.2165677398443222,
0.24954086542129517,
-0.15398946404457092,
-0.2520102858543396,
0.025286024436354637,
0.1437312364578247,
0.3611817955970764,
-0.16750183701515198,
-0.2776467502117157,
-0.12400467693805695,
-0.44087329506874084,
-0.24312706291675568,
0.08413778990507126,
-0.042737092822790146,
0.08555860072374344,
0.2314763367176056,
0.3174690306186676,
-0.3549925684928894,
-0.22428761422634125,
0.37099969387054443,
0.09431261569261551,
0.26032009720802307,
0.31308701634407043,
0.08809595555067062,
-0.21637552976608276,
-0.12743735313415527,
0.2965530455112457,
0.4111422300338745,
-0.47571027278900146,
0.06908170878887177,
0.013951275497674942,
0.12462687492370605,
0.2461799532175064,
0.018209222704172134,
0.07419782131910324,
-0.2569899260997772,
-0.3386790454387665,
-0.06908659636974335,
0.00994414184242487,
0.3278672695159912,
0.12076166272163391,
0.13579612970352173,
0.05769128352403641,
-0.01459643617272377,
-0.36532166600227356,
0.014248865656554699,
-0.2701687216758728,
0.13908961415290833,
-0.024322770535945892,
0.1828632652759552,
-0.4315897524356842,
0.017409222200512886,
0.00813767034560442,
0.14316515624523163,
0.10916224867105484,
0.10638158768415451,
-0.12343844771385193,
-0.2166474461555481,
0.02918541058897972,
0.1290724277496338,
-0.1361878365278244,
-0.2797192335128784,
0.23944339156150818,
-0.20630693435668945,
-0.05086575075984001,
-0.3758655786514282,
0.14212408661842346,
-0.13642041385173798,
-0.03166044130921364,
-0.4254381060600281,
0.2596432864665985,
-0.16920341551303864,
-0.30194059014320374,
0.3180854320526123,
-0.4044681787490845,
0.17799828946590424,
0.060763657093048096,
0.1787562072277069,
0.0040055494755506516,
-0.15592536330223083,
0.0720914751291275,
0.2029666155576706,
0.1648198813199997,
0.13967803120613098,
0.3797295391559601,
-0.026211963966488838,
-0.09722810238599777,
-0.1073899045586586,
0.33126696944236755,
0.34939059615135193,
0.0380294993519783,
-0.13879135251045227,
0.1757906675338745,
0.22563570737838745,
-0.32513701915740967,
-0.2828212082386017,
-0.12963718175888062,
-0.25700613856315613,
0.24188902974128723,
0.009579421021044254,
0.20937635004520416,
0.16702260076999664,
-0.0789552703499794,
-0.20689702033996582,
0.09864366799592972,
0.5504130125045776,
-0.14517520368099213,
0.6776700019836426,
0.3272511959075928,
-0.19930443167686462,
0.2702796757221222,
0.002086818218231201,
0.34591421484947205,
0.3618881106376648,
-0.11960353702306747,
0.5368239283561707,
0.2320743054151535,
0.24495376646518707,
-0.133967325091362,
-0.30904966592788696,
0.1352112889289856,
-0.00151741411536932,
-0.013643394224345684,
0.1391913890838623,
0.0621289499104023,
0.4490419030189514,
0.0052278488874435425,
0.07710165530443192,
-0.32663023471832275,
-0.12674933671951294,
0.02904387004673481,
-0.08261661231517792,
-0.04338522627949715,
-0.11773964017629623,
-0.07485125958919525,
0.10686882585287094,
-0.3724668025970459,
-0.13124385476112366,
0.36482343077659607,
0.033845096826553345,
0.18120837211608887,
-0.44460755586624146,
0.2035413235425949,
-0.1569177359342575,
0.21809855103492737,
-0.23983365297317505,
0.17476120591163635,
0.05008475109934807,
-0.06679398566484451,
0.0713924989104271,
0.10168402642011642,
0.3679458796977997,
0.18524238467216492,
-0.10660094022750854,
-0.17309290170669556,
-0.0566396526992321,
-0.03850585222244263,
-0.013907047919929028,
-0.08696994185447693,
0.0414152555167675,
-0.09860043972730637,
0.3017624318599701,
0.030814291909337044,
-0.1557210385799408,
-0.13875803351402283,
-0.022855250164866447,
-0.2242794930934906,
-0.32634490728378296,
-0.3453313410282135,
-0.20069779455661774,
-0.32823264598846436,
-0.12952479720115662,
-0.18956834077835083,
-0.2536431550979614,
0.1835206001996994,
0.22793462872505188,
-0.3133317828178406,
-0.0675589069724083,
0.0006712751928716898,
0.08450058102607727,
-0.5105261206626892,
0.6805170178413391,
0.4650323688983917,
0.555675208568573,
-0.3209070563316345,
-0.11604473739862442,
-0.4356549382209778,
0.06292098015546799,
-0.6595269441604614,
-0.04978792741894722,
0.29427146911621094,
0.3931102156639099,
0.1516692191362381,
0.21537819504737854,
0.16460788249969482,
0.135925754904747,
-0.19167518615722656,
0.32111215591430664,
-0.5305004119873047,
-0.08095017075538635,
-0.02750685065984726,
0.01697634719312191,
-0.21761493384838104,
-0.6412060260772705,
0.4145417809486389,
-0.4362509548664093,
0.019619373604655266,
-0.17954011261463165,
-0.18055479228496552,
0.3991858661174774,
0.22178202867507935,
0.5155706405639648,
0.002280128188431263,
0.14304007589817047,
0.024066783487796783,
-0.1811051368713379,
-0.1920027732849121,
-0.037632063031196594,
0.0861411988735199,
0.17627286911010742,
-0.09164821356534958,
0.08704835921525955,
0.12938378751277924,
-0.1807274967432022,
0.09440804272890091,
0.6064494848251343,
-0.10337395966053009,
0.00850101187825203,
0.11393553018569946,
-0.1410079449415207,
-0.2004246860742569,
0.11038795113563538,
-0.18586508929729462,
-0.033898305147886276,
-0.09858206659555435,
-0.23733100295066833,
-0.15887300670146942,
-0.19998465478420258,
0.42357543110847473,
-0.45981645584106445,
0.05730634182691574,
-0.1773606240749359,
0.2722937762737274,
0.24975670874118805,
0.3505440354347229,
-0.1962876170873642,
0.029730889946222305,
0.3197360932826996,
0.09321191906929016,
-0.04314732551574707,
0.2311462163925171,
0.15142738819122314,
0.11452250927686691,
-0.0749371200799942,
0.3918389678001404,
-0.3036592900753021,
-0.3066388666629791,
-0.22938783466815948,
-0.3594549596309662
] |
https://github.com/huggingface/datasets/issues/1797 | Connection error | Hi ! For future references let me add a link to our discussion here : https://github.com/huggingface/datasets/issues/759#issuecomment-770684693
Let me know if you manage to fix your proxy issue or if we can do something on our end to help you :) | Hi
I am hitting to the error, help me and thanks.
`train_data = datasets.load_dataset("xsum", split="train")`
`ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/xsum/xsum.py` | 40 | Connection error
Hi
I am hitting to the error, help me and thanks.
`train_data = datasets.load_dataset("xsum", split="train")`
`ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/xsum/xsum.py`
Hi ! For future references let me add a link to our discussion here : https://github.com/huggingface/datasets/issues/759#issuecomment-770684693
Let me know if you manage to fix your proxy issue or if we can do something on our end to help you :) | [
-0.2624680697917938,
-0.47331249713897705,
-0.1055455431342125,
0.1787155121564865,
0.5621638894081116,
-0.10308819264173508,
-0.017071938142180443,
0.22683119773864746,
0.1645880490541458,
0.22738096117973328,
-0.3096102178096771,
-0.004598597530275583,
0.20449618995189667,
0.44322866201400757,
0.2047397345304489,
-0.2917327880859375,
-0.04404366761445999,
-0.0842050313949585,
-0.45589593052864075,
0.06750130653381348,
0.08230362087488174,
0.09755145013332367,
-0.10734375566244125,
0.0312041062861681,
-0.341558039188385,
-0.07554521411657333,
-0.12736637890338898,
0.22074715793132782,
-0.26866117119789124,
-0.10705995559692383,
0.4869900345802307,
0.13938769698143005,
0.023210549727082253,
0.576934814453125,
-0.0001075648979167454,
0.11494732648134232,
0.31648457050323486,
0.024244865402579308,
-0.2239995002746582,
-0.33114033937454224,
-0.11807035654783249,
-0.029636885970830917,
0.28681430220603943,
-0.07439573109149933,
-0.3245798945426941,
0.0551900640130043,
0.16639858484268188,
-0.2252040058374405,
0.5972610712051392,
0.17803527414798737,
0.2932913601398468,
0.44544368982315063,
0.3417460024356842,
-0.17413656413555145,
-0.008784662932157516,
-0.23596088588237762,
-0.0033458026591688395,
0.4921543300151825,
0.1815267652273178,
0.047187868505716324,
0.2132836878299713,
0.2337232232093811,
0.0923609733581543,
-0.11591590195894241,
0.23412483930587769,
-0.1357225626707077,
0.08226145803928375,
-0.3459508717060089,
0.034814003854990005,
0.3595280945301056,
0.5571650266647339,
-0.19732578098773956,
-0.2897792458534241,
0.04637862741947174,
-0.0473950132727623,
-0.15393884479999542,
0.22773337364196777,
0.07082309573888779,
-0.07822444289922714,
0.1751243621110916,
-0.22498494386672974,
-0.21495842933654785,
-0.27985939383506775,
0.25431451201438904,
-0.06235988810658455,
0.023431258276104927,
-0.23332373797893524,
0.12854504585266113,
0.0662389025092125,
-0.13253803551197052,
-0.12612971663475037,
0.1575852483510971,
0.02718084491789341,
0.17377795279026031,
-0.46772676706314087,
-0.026317356154322624,
-0.15106353163719177,
0.23004105687141418,
0.21476152539253235,
0.1480177491903305,
-0.10892802476882935,
0.17679940164089203,
-0.16455711424350739,
0.23963329195976257,
0.23426999151706696,
0.09919054061174393,
-0.09249187260866165,
-0.08063202351331711,
0.25832700729370117,
0.2595565915107727,
-0.10940256714820862,
-0.10852649807929993,
-0.07847797125577927,
-0.20594081282615662,
-0.3137500584125519,
-0.06203082203865051,
0.23558957874774933,
-0.2644435465335846,
-0.20934276282787323,
0.07773833721876144,
0.15082326531410217,
-0.053245097398757935,
0.16761675477027893,
0.4941650629043579,
-0.24397268891334534,
0.18430638313293457,
0.03984123840928078,
0.15106581151485443,
-0.2680298984050751,
-0.03731109946966171,
-0.3129376769065857,
0.18063023686408997,
-0.1964215338230133,
-0.06155915558338165,
-0.04424164071679115,
-0.17723825573921204,
0.21607765555381775,
-0.07855071872472763,
0.34342044591903687,
-0.16401934623718262,
0.05471251532435417,
-0.10449392348527908,
-0.3085642457008362,
0.2629110515117645,
0.16356424987316132,
-0.028210265561938286,
0.2825821042060852,
-0.06075122579932213,
-0.03487711027264595,
-0.2365301102399826,
-0.33407318592071533,
-0.3741343915462494,
-0.055213671177625656,
0.2754741907119751,
-0.056612078100442886,
-0.008533716201782227,
-0.33723196387290955,
0.018286317586898804,
-0.03964713215827942,
0.12646061182022095,
-0.18660159409046173,
-0.06320767849683762,
-0.11090236902236938,
-0.12567345798015594,
0.41005030274391174,
0.22694431245326996,
-0.06826098263263702,
-0.2711590826511383,
0.3355160355567932,
-0.37179848551750183,
0.18908077478408813,
0.18692216277122498,
-0.12689514458179474,
-0.019446637481451035,
-0.10619217902421951,
0.11001893132925034,
0.16555868089199066,
-0.34521374106407166,
-0.3684439957141876,
0.19670982658863068,
-0.2838746905326843,
-0.07346062362194061,
0.042904082685709,
0.006849849596619606,
0.09077971428632736,
0.14557769894599915,
0.2033010870218277,
0.20767372846603394,
-0.03184134513139725,
-0.04367673024535179,
-0.13373807072639465,
-0.26565200090408325,
0.04277034476399422,
0.27025923132896423,
0.022773874923586845,
0.0227791927754879,
0.13201525807380676,
-0.05154826492071152,
0.2843169569969177,
0.05029623582959175,
0.09278050065040588,
0.25928276777267456,
0.20459410548210144,
0.22700370848178864,
0.005305176135152578,
-0.35616910457611084,
0.02822936698794365,
0.09118565171957016,
0.04718456044793129,
0.29193314909935,
-0.07912232726812363,
-0.1105627790093422,
-0.3629342317581177,
-0.15208223462104797,
-0.18350419402122498,
-0.06594337522983551,
0.15368957817554474,
-0.219869464635849,
0.19731728732585907,
0.23859532177448273,
-0.11917036771774292,
0.2829244136810303,
-0.17955780029296875,
0.24050016701221466,
-0.469793438911438,
0.4009585678577423,
-0.19375012814998627,
0.0068573616445064545,
0.0877901017665863,
0.09348862618207932,
0.11604532599449158,
-0.2712266445159912,
-0.12820418179035187,
0.44086429476737976,
-0.21609452366828918,
0.319271057844162,
0.38975247740745544,
0.04054740071296692,
0.2562573254108429,
-0.45831984281539917,
-0.04767109453678131,
-0.09609977155923843,
0.06595973670482635,
0.05263231322169304,
0.21869763731956482,
0.20485655963420868,
0.055321868509054184,
0.13823911547660828,
0.13538765907287598,
0.1918751746416092,
0.32270070910453796,
0.06069670617580414,
-0.0891449823975563,
0.07026688754558563,
0.21632349491119385,
-0.19810627400875092,
0.03557487949728966,
-0.19625334441661835,
-0.22098925709724426,
-0.0054438067600131035,
0.007767781149595976,
-0.019075943157076836,
-0.05225060507655144,
0.07209106534719467,
-0.10225740820169449,
-0.0005347724072635174,
0.07293998450040817,
0.06906768679618835,
0.26635485887527466,
0.23992471396923065,
-0.0378362201154232,
0.2792978584766388,
0.05800102651119232,
-0.10217462480068207,
0.18550224602222443,
0.06843042373657227,
0.04495054855942726,
-0.03821175545454025,
-0.12116999179124832,
-0.11825522780418396,
-0.28710490465164185,
-0.001187312649562955,
-0.22105669975280762,
0.17952147126197815,
-0.24707525968551636,
-0.021480048075318336,
-0.09277601540088654,
-0.3123776912689209,
0.06588928401470184,
-0.16172562539577484,
-0.2731582820415497,
-0.34809577465057373,
-0.0534440279006958,
0.1365809440612793,
0.033134445548057556,
0.19881221652030945,
-0.349446564912796,
0.10073766112327576,
0.1558249145746231,
0.016812318935990334,
-0.11588648706674576,
-0.11742107570171356,
-0.12868554890155792,
0.1565781980752945,
0.009374904446303844,
0.06263267248868942,
0.39769411087036133,
-0.28939127922058105,
-0.14186838269233704,
-0.10585394501686096,
-0.23194456100463867,
0.06298328191041946,
-0.10839318484067917,
0.3044184148311615,
0.27781593799591064,
0.4564885199069977,
-0.08641862869262695,
-0.05203504487872124,
0.6056529879570007,
-0.18026763200759888,
-0.02755436860024929,
-0.03413756191730499,
0.022798337042331696,
-0.1331537514925003,
0.11097891628742218,
-0.299169659614563,
-0.510417103767395,
-0.21315354108810425,
0.14051900804042816,
-0.06936845928430557,
0.10471848398447037,
0.11607065796852112,
0.006844663992524147,
0.11729824542999268,
-0.18098236620426178,
0.13722439110279083,
-0.309408038854599,
-0.814568281173706,
0.11365919560194016,
-0.09336686879396439,
-0.4647524952888489,
0.12295981496572495,
0.19538307189941406,
0.2569902837276459,
0.11918457597494125,
-0.3289046287536621,
-0.39354050159454346,
-0.03340911120176315,
0.09856944531202316,
0.1863357126712799,
0.1409391611814499,
0.16609011590480804,
-0.2663915455341339,
-0.17488187551498413,
-0.011950897052884102,
0.02668938599526882,
-0.03687680885195732,
-0.2150578647851944,
0.4406512677669525,
-0.008477909490466118,
0.4517729580402374,
-0.016899384558200836,
0.40307822823524475,
0.2012055516242981,
0.04665302112698555,
0.4095165431499481,
-0.3087841272354126,
0.2212131917476654,
-0.03562863543629646,
-0.6038445234298706,
0.20429939031600952,
-0.18979497253894806,
0.06183083727955818,
0.009604841470718384,
0.1967376172542572,
0.2806483209133148,
-0.4943080544471741,
-0.2354852706193924,
-0.2183476984500885,
-0.2715516686439514,
-0.23543298244476318,
-0.005423381458967924,
0.1608942300081253,
0.04055438190698624,
-0.14333298802375793,
-0.02490812912583351,
-0.06678435206413269,
-0.016461081802845,
0.5720890760421753,
-0.06939807534217834,
0.11142127215862274,
-0.6191424131393433,
0.042234040796756744,
-0.6355403661727905,
0.3562631905078888,
-0.1448630541563034,
0.16513285040855408,
-0.29587480425834656,
0.0792202427983284,
0.09382280707359314,
-0.015076631680130959,
0.7718528509140015,
0.001898708287626505,
-0.017930883914232254,
-0.11051639914512634,
-0.19070249795913696,
-0.27595657110214233,
0.10915134102106094,
-0.008984618820250034,
0.4083506166934967,
0.4919060468673706,
0.24737118184566498,
-0.3470737636089325,
-0.11454848200082779,
0.08728715777397156,
-0.02105611190199852,
-0.2440117597579956,
-0.2094927430152893,
-0.36561229825019836,
-0.2786716818809509,
-0.177424356341362,
0.05640077590942383,
-0.04372838884592056,
0.3815520107746124,
0.08103931695222855,
-0.26562753319740295,
0.009109164588153362,
-0.05428999289870262,
0.2826077938079834,
0.03852580487728119,
0.14477883279323578,
0.009442918002605438,
0.1691836565732956,
0.31199872493743896,
0.4208047091960907,
0.13194723427295685,
0.4850691556930542,
-0.21083813905715942,
-0.2717650234699249,
-0.09845156967639923,
0.10138726234436035,
0.12311007082462311,
0.21838319301605225,
-0.19412612915039062,
0.20236817002296448,
0.2547454833984375,
0.4601497948169708,
-0.17067652940750122,
0.2522600591182709,
0.2773419916629791,
0.27922454476356506,
-0.3641134202480316,
-0.4865396320819855,
0.15550708770751953,
-0.09173900634050369,
0.09430627524852753,
0.26316747069358826,
0.29644539952278137,
-0.035594694316387177,
-0.16623209416866302,
-0.28429174423217773,
1.047813057899475,
-0.09567305445671082,
0.006707483436912298,
0.194435715675354,
0.1370849609375,
0.45075902342796326,
-0.092195063829422,
0.14174990355968475,
-0.2144230455160141,
-0.29496586322784424,
-0.05417989566922188,
-0.17437517642974854,
0.16805759072303772,
-0.23622429370880127,
-0.0537429004907608,
0.34844428300857544,
-0.020350884646177292,
0.02925565093755722,
-0.13200362026691437,
0.2688499391078949,
-0.29671332240104675,
0.012033193372189999,
-0.3091323971748352,
0.255361944437027,
-0.1343013495206833,
0.46042221784591675,
-0.030218403786420822,
-0.15188360214233398,
-0.10354330390691757,
-0.33614277839660645,
-0.06361258774995804,
0.119188591837883,
-0.2714742422103882,
0.10958940535783768,
0.1017431765794754,
-0.22246955335140228,
0.0017542018322274089,
0.11408138275146484,
0.09383361786603928,
0.07617638260126114,
-0.2716824412345886,
0.20655566453933716,
-0.5015836358070374,
-0.15286873281002045,
0.1270388960838318,
0.11774776875972748,
0.14615820348262787,
-0.20068305730819702,
-0.49354231357574463,
0.11873584985733032,
0.1249828189611435,
-0.190511092543602,
-0.05107312649488449,
-0.13718503713607788,
0.09436894953250885,
-0.4705701172351837,
-0.19561374187469482,
-0.31454265117645264,
0.03588921204209328,
-0.19695758819580078,
0.20312947034835815,
0.12917593121528625,
-0.26068827509880066,
0.09356775134801865,
0.20060081779956818,
-0.11756819486618042,
-0.06309351325035095,
0.5965726375579834,
-0.09246277809143066,
0.005406281910836697,
0.45780718326568604,
0.16776371002197266,
-0.13801665604114532,
-0.1807495653629303,
-0.07790899276733398,
0.22527234256267548,
-0.26016178727149963,
-0.04465201124548912,
0.044248733669519424,
0.1300586611032486,
-0.2083081156015396,
0.038456838577985764,
0.2260816991329193,
0.009782603941857815,
0.2754865884780884,
-0.590245246887207,
-0.42073023319244385,
0.1600780338048935,
0.06967946887016296,
0.1743369698524475,
0.2952531576156616,
0.35553357005119324,
0.11888214945793152,
0.08426312357187271,
-0.37268054485321045,
0.014194244518876076,
-0.25795942544937134,
-0.033892638981342316,
0.3824026882648468,
-0.30163463950157166,
0.35035449266433716,
-0.10163579136133194,
0.2228461056947708,
-0.06418827176094055,
-0.3282790184020996,
-0.22894011437892914,
-0.09840851277112961,
0.08980859071016312,
-0.018325865268707275,
-0.3839889466762543,
-0.0003593545116018504,
-0.11927627772092819,
-0.06859050691127777,
0.005819766316562891,
0.12392152100801468,
0.1958063244819641,
0.022974982857704163,
-0.1963896006345749,
0.07384531944990158,
-0.03654104843735695,
-0.09937114268541336,
0.15597853064537048,
0.10552223771810532,
0.258466511964798,
0.03657408431172371,
-0.08118254691362381,
-0.10452248901128769,
-0.24329924583435059,
-0.27364444732666016,
-0.06247343122959137,
0.25130316615104675,
-0.127845898270607,
0.26761165261268616,
-0.16883069276809692,
-0.07256453484296799,
0.14479641616344452,
0.549850583076477,
0.307259202003479,
-0.27523913979530334,
0.32853224873542786,
0.15257419645786285,
0.2810034155845642,
-0.24953171610832214,
-0.008856833912432194,
0.2969357967376709,
-0.04273444414138794,
-0.0819266065955162,
-0.16222286224365234,
0.07229410856962204,
0.1996445208787918,
0.02402312308549881,
0.044638026505708694,
0.5042867064476013,
-0.023816101253032684,
0.17889097332954407,
-0.03507443144917488,
-0.056203775107860565,
0.005012362264096737,
0.15214845538139343,
0.23209957778453827,
-0.05858662351965904,
0.32246583700180054,
-0.3049379885196686,
0.3366059362888336,
-0.29978713393211365,
0.2508375942707062,
-0.13542374968528748,
-0.30395546555519104,
-0.14471440017223358,
0.13806134462356567,
-0.2659606337547302,
-0.10883790254592896,
-0.25591740012168884,
0.780646562576294,
-0.3334016501903534,
-0.01390664279460907,
-0.22323912382125854,
0.35348233580589294,
-0.07585492730140686,
-0.30601829290390015,
-0.04913895204663277,
-0.2112847864627838,
-0.032926514744758606,
-0.19813385605812073,
0.13099589943885803,
-0.24584321677684784,
0.011171332560479641,
0.03439563885331154,
-0.08026914298534393,
-0.5813347697257996,
-0.17025861144065857,
0.1976892203092575,
0.14569704234600067,
-0.03879021853208542,
0.2339257299900055,
0.2654062807559967,
0.12019486725330353,
0.07109834998846054,
0.33459511399269104,
0.4603472352027893,
0.22856582701206207,
0.12125851213932037,
0.1023031547665596,
0.14401750266551971,
-0.043880708515644073,
0.016588803380727768,
0.058318573981523514,
0.1513797640800476,
0.026812558993697166,
0.2794588804244995,
0.2609657049179077,
-0.20581069588661194,
0.025285137817263603,
-0.09166106581687927,
0.36474835872650146,
-0.24823030829429626,
0.303728848695755,
-0.16168878972530365,
0.018771542236208916,
-0.4195709824562073,
0.03843964636325836,
-0.7279618382453918,
0.39417603611946106,
0.14012637734413147,
-0.08906707912683487,
0.1646357625722885,
-0.31028613448143005,
0.10917330533266068,
-0.16979233920574188,
0.548678457736969,
0.2740635275840759,
0.26216980814933777,
-0.23711292445659637,
-0.18582403659820557,
-0.5177456140518188,
0.17520174384117126,
-0.04752439260482788,
-0.2880723178386688,
-0.09666697680950165,
0.04664721339941025,
-0.1142757385969162,
0.09653624892234802,
0.12369868904352188,
0.015023973770439625,
0.18972186744213104,
-0.055955670773983,
-0.18486586213111877,
0.05355305224657059,
-0.31348782777786255,
0.18692179024219513,
0.12494713068008423,
-0.13353557884693146,
0.2388921082019806,
0.14444680511951447,
0.06276924908161163,
-0.03733183443546295,
0.21292294561862946,
-0.2674391269683838,
-0.2997755706310272,
0.2467644065618515,
0.1838713437318802,
0.5290329456329346,
-0.026621276512742043,
0.06923893839120865,
-0.10849429666996002,
-0.4502313435077667,
-0.22546450793743134,
0.09921418130397797,
0.14850670099258423,
0.1336234211921692,
-0.010290028527379036,
-0.24868656694889069,
-0.2791527211666107,
0.4303966164588928,
-0.05197029560804367,
-0.33625274896621704,
-0.039417900145053864,
-0.06305233389139175,
0.15152597427368164,
-0.007633163593709469,
0.15659604966640472,
0.31535983085632324,
-0.022659430280327797,
0.08604688197374344,
-0.09898178279399872,
-0.2700572907924652,
0.655645489692688,
-0.23791825771331787,
-0.01302205491811037,
-0.2519049048423767,
0.21086804568767548,
0.399406373500824,
-0.1213894709944725,
-0.4444725811481476,
0.2536523938179016,
0.23809337615966797,
0.0883379727602005,
-0.09615118056535721,
0.47888633608818054,
-0.032150998711586,
0.1870010942220688,
0.02437465824186802,
0.07402388751506805,
0.01439480111002922,
-0.1268232762813568,
0.19348743557929993,
-0.07435140013694763
] |
https://github.com/huggingface/datasets/issues/1796 | Filter on dataset too much slowww | When I use the filter on the arrow table directly, it works like butter. But I can't find a way to update the table in `Dataset` object.
```
ds_table = dataset.data.filter(mask=dataset['flag'])
``` | I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
| 32 | Filter on dataset too much slowww
I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
When I use the filter on the arrow table directly, it works like butter. But I can't find a way to update the table in `Dataset` object.
```
ds_table = dataset.data.filter(mask=dataset['flag'])
``` | [
-0.2712087631225586,
-0.0597313791513443,
-0.11476314067840576,
-0.2779483497142792,
-0.17065058648586273,
-0.2504286766052246,
0.17076264321804047,
0.2090245485305786,
0.25987720489501953,
-0.11639663577079773,
-0.08618315309286118,
0.2958265244960785,
-0.0557142049074173,
0.40608152747154236,
-0.18042618036270142,
0.2453581541776657,
0.13079074025154114,
0.29705697298049927,
0.19601306319236755,
0.033356912434101105,
-0.022402869537472725,
-0.18826764822006226,
-0.2929409444332123,
-0.07038827240467072,
-0.009625550359487534,
-0.2621650993824005,
0.18598707020282745,
-0.30865174531936646,
-0.27851900458335876,
-0.2126026749610901,
-0.017390970140695572,
0.5965906381607056,
-0.018277350813150406,
0.5038164854049683,
-0.0001307183556491509,
-0.23383808135986328,
0.2439534068107605,
0.0724605992436409,
0.08311864733695984,
0.14980798959732056,
-0.2113010734319687,
-0.12860380113124847,
-0.014037610962986946,
-0.0004980558878742158,
-0.12500667572021484,
0.002730437321588397,
-0.3317999839782715,
-0.22165164351463318,
0.34997010231018066,
0.09446856379508972,
-0.027775082737207413,
-0.14122512936592102,
-0.25493454933166504,
0.35211312770843506,
0.20528191328048706,
0.3541741967201233,
0.1411340981721878,
-0.1513696163892746,
0.5533319711685181,
-0.335814505815506,
0.053945399820804596,
0.6059804558753967,
-0.4179317355155945,
-0.13132856786251068,
0.21006518602371216,
-0.2898600995540619,
0.05838365480303764,
-0.15155752003192902,
0.2810194492340088,
0.0848347395658493,
0.13357052206993103,
-0.1620165854692459,
-0.2986920177936554,
-0.23227454721927643,
-0.08496470749378204,
-0.445928156375885,
-0.014386783353984356,
-0.09340566396713257,
-0.2579457759857178,
0.034579306840896606,
-0.512816846370697,
-0.34843704104423523,
0.08615206182003021,
0.1266559660434723,
-0.32614564895629883,
0.360015332698822,
-0.006306285038590431,
0.2096574306488037,
0.13119757175445557,
-0.2452675849199295,
0.06995033472776413,
-0.2122398465871811,
0.1913420855998993,
0.30518215894699097,
-0.6571981310844421,
-0.10162468999624252,
-0.09628620743751526,
0.16054317355155945,
-0.0209177415817976,
0.060332801192998886,
-0.18478445708751678,
0.5039318799972534,
0.21575845777988434,
-0.007275673560798168,
0.000344068743288517,
0.25037696957588196,
0.12270473688840866,
0.4484066963195801,
0.28026628494262695,
-0.14533336460590363,
-0.2991342544555664,
0.18511322140693665,
-0.0733834058046341,
0.04879847913980484,
0.0876704752445221,
-0.05717850103974342,
-0.38877272605895996,
-0.12758386135101318,
-0.3137277364730835,
-0.053389351814985275,
-0.29738563299179077,
-0.059795912355184555,
0.6444661617279053,
0.5041766166687012,
-0.11330609768629074,
-0.06504213064908981,
-0.07329611480236053,
-0.29931917786598206,
-0.12936276197433472,
0.017078502103686333,
0.032341208308935165,
-0.15808427333831787,
-0.10481196641921997,
0.23922772705554962,
0.03781365975737572,
-0.23455147445201874,
-0.19114747643470764,
-0.03247685730457306,
-0.16869482398033142,
0.18062779307365417,
0.0712086409330368,
-0.36210623383522034,
0.23726224899291992,
0.4139115810394287,
-0.2685701251029968,
0.30076900124549866,
0.08421188592910767,
0.05566816031932831,
-0.12655189633369446,
0.17752708494663239,
-0.3156159520149231,
-0.33341023325920105,
0.22141076624393463,
-0.016718165948987007,
-0.08474230021238327,
0.1368686705827713,
-0.18058064579963684,
0.4090792238712311,
0.2862333059310913,
-0.20511044561862946,
-0.16437067091464996,
-0.17687344551086426,
-0.595266580581665,
-0.16068460047245026,
0.2633839249610901,
0.22237780690193176,
-0.5520039200782776,
0.05236611142754555,
-0.3266306221485138,
0.26146644353866577,
0.4948302209377289,
0.35847070813179016,
-0.06717243790626526,
0.21712656319141388,
0.10023846477270126,
-0.07036115974187851,
0.29841524362564087,
-0.07853961735963821,
-0.4758497178554535,
0.5441427230834961,
-0.061415787786245346,
0.012077363207936287,
0.1328437328338623,
0.15594178438186646,
0.5201345682144165,
-0.24423596262931824,
0.39757153391838074,
0.3375459611415863,
-0.19979199767112732,
0.07351820170879364,
0.00025367646594531834,
-0.009157892316579819,
0.22592118382453918,
0.1488591581583023,
-0.3431069850921631,
-0.022170573472976685,
-0.032132312655448914,
-0.4266483187675476,
0.15245914459228516,
0.13803809881210327,
-0.013879998587071896,
0.20821331441402435,
0.24694766104221344,
0.14686554670333862,
0.01149781234562397,
-0.11738225072622299,
-0.0029034961480647326,
-0.08567942678928375,
0.08954762667417526,
-0.20416194200515747,
-0.26781943440437317,
-0.22764958441257477,
-0.268123060464859,
0.12292633205652237,
0.07631783932447433,
0.20277567207813263,
-0.14173394441604614,
-0.1732807159423828,
0.1918347179889679,
-0.2997715175151825,
-0.024542395025491714,
0.4423805773258209,
-0.11993896216154099,
-0.07667198032140732,
0.1876756250858307,
0.004158418625593185,
0.3773689270019531,
-0.14786513149738312,
0.15586276352405548,
-0.06381609290838242,
0.25662893056869507,
0.05979189649224281,
-0.05122085288167,
0.22286739945411682,
0.4853755533695221,
-0.29093503952026367,
-0.3249586224555969,
0.1911717802286148,
0.09072648733854294,
0.32233086228370667,
0.1594700962305069,
-0.029994754120707512,
0.21721291542053223,
-0.06696340441703796,
-0.19752658903598785,
0.596799910068512,
-0.08427198976278305,
0.451528936624527,
0.09617108106613159,
-0.05346445366740227,
0.3551800549030304,
0.2579825818538666,
-0.137996643781662,
-0.22400441765785217,
0.24839197099208832,
-0.01685909926891327,
0.14143161475658417,
0.1916797012090683,
-0.10414503514766693,
0.39142706990242004,
-0.006952807307243347,
-0.1684068739414215,
-0.05787569656968117,
0.23894597589969635,
0.1703024059534073,
0.03075748309493065,
0.1890268623828888,
0.0051110535860061646,
0.11467739939689636,
0.1844974160194397,
-0.14274075627326965,
-0.09829308092594147,
0.08159364014863968,
-0.05475839972496033,
0.25471770763397217,
0.1561012715101242,
0.3075127601623535,
-0.2542976140975952,
0.353064626455307,
-0.11373292654752731,
-0.1732015758752823,
-0.17765001952648163,
0.20347197353839874,
0.3338278830051422,
-0.2167353332042694,
0.06997520476579666,
-0.37570109963417053,
-0.5355598330497742,
0.22711218893527985,
-0.11214957386255264,
0.22655799984931946,
0.08801180124282837,
0.22307850420475006,
0.07832919806241989,
0.17465513944625854,
0.2855861783027649,
0.19949953258037567,
0.1593719869852066,
0.16612671315670013,
-0.44692111015319824,
-0.13448041677474976,
-0.1596939116716385,
-0.07135345041751862,
-0.10749663412570953,
0.2684338092803955,
0.3947561979293823,
0.37359505891799927,
0.2810978889465332,
0.048986561596393585,
-0.18613497912883759,
-0.5580238699913025,
-0.21566526591777802,
-0.015102576464414597,
0.07447344064712524,
0.21748948097229004,
0.13041990995407104,
-0.3905106484889984,
-0.05019334331154823,
0.03611215576529503,
-0.13265809416770935,
-0.1809350699186325,
0.0968124270439148,
-0.2643181383609772,
0.07124233990907669,
0.13258089125156403,
0.11713837832212448,
-0.23426491022109985,
-0.05337996035814285,
-0.14802993834018707,
-0.09017077833414078,
0.2890063524246216,
-0.23788386583328247,
0.03847120329737663,
-0.30959928035736084,
-0.29004836082458496,
-0.07459624111652374,
0.06270182132720947,
-0.1542515605688095,
0.23613445460796356,
0.28452268242836,
-0.010331682860851288,
-0.17672809958457947,
-0.054551538079977036,
-0.29221588373184204,
0.5495020747184753,
-0.26100173592567444,
0.18067120015621185,
-0.4031963348388672,
-0.2862224280834198,
0.19272927939891815,
0.018468568101525307,
0.3718924820423126,
-0.11541643738746643,
0.13654248416423798,
-0.001643230440095067,
-0.4650854766368866,
-0.16355368494987488,
-0.17619484663009644,
0.09633547067642212,
0.21246865391731262,
0.8827467560768127,
0.0940156802535057,
0.3070507049560547,
0.06283529102802277,
-0.0016840677708387375,
0.07015176862478256,
0.24281013011932373,
-0.11538028717041016,
-0.21798446774482727,
-0.33677175641059875,
-0.20303377509117126,
0.14586536586284637,
0.06425151973962784,
0.03870958462357521,
0.1361507922410965,
-0.14358647167682648,
-0.03396350517868996,
-0.22711488604545593,
-0.06579650938510895,
-0.13549423217773438,
0.09426651149988174,
-0.22036565840244293,
0.2903556823730469,
0.35044869780540466,
-0.055573925375938416,
-0.5428822636604309,
-0.34754595160484314,
-0.25447919964790344,
0.02634124644100666,
0.13115502893924713,
-0.18415488302707672,
-0.6282451152801514,
-0.3186337947845459,
-0.34330129623413086,
0.4391597807407379,
0.18656831979751587,
0.44123178720474243,
0.17403575778007507,
0.07234439253807068,
0.19968600571155548,
-0.09930071979761124,
0.7873366475105286,
-0.17953668534755707,
-0.00008834261097945273,
0.05325416475534439,
-0.5388455390930176,
-0.4195428788661957,
0.09407985210418701,
-0.010187208652496338,
0.24814654886722565,
0.2991226613521576,
0.3818727433681488,
-0.27707988023757935,
-0.35898178815841675,
-0.04079626128077507,
0.12422259151935577,
-0.10107167810201645,
-0.19607026875019073,
-0.23694457113742828,
-0.21990109980106354,
-0.3587256371974945,
0.2803162634372711,
-0.049406129866838455,
0.2188858985900879,
0.36153537034988403,
-0.31123045086860657,
-0.047693610191345215,
-0.1954781711101532,
0.1896837055683136,
0.04932710528373718,
0.055121857672929764,
0.31213271617889404,
0.3041161298751831,
-0.07975638657808304,
0.19501984119415283,
0.056564491242170334,
-0.10368980467319489,
-0.11272939294576645,
0.02707369439303875,
-0.009185685776174068,
0.19560906291007996,
0.38152676820755005,
0.5263152718544006,
-0.12463685125112534,
0.5532616376876831,
0.06299252063035965,
0.42416930198669434,
0.06780658662319183,
0.21347466111183167,
-0.18093731999397278,
0.1748361587524414,
-0.5886356830596924,
-0.7435216307640076,
0.14662793278694153,
0.40048646926879883,
-0.33197107911109924,
0.5015228986740112,
0.15101365745067596,
-0.06407427042722702,
0.4643268585205078,
0.07594837993383408,
0.886493980884552,
-0.3235607445240021,
-0.12761463224887848,
-0.052822891622781754,
0.06507750600576401,
0.3599277436733246,
-0.16485822200775146,
0.11933235079050064,
0.026744689792394638,
-0.3669936954975128,
0.060979243367910385,
-0.0934692770242691,
0.07105686515569687,
0.08029642701148987,
0.06695278733968735,
0.3530900776386261,
-0.12661047279834747,
0.06028888002038002,
0.06069248542189598,
0.2552218735218048,
0.21888862550258636,
-0.35141366720199585,
-0.24491927027702332,
-0.0771518126130104,
0.17353391647338867,
-0.14335507154464722,
0.04479409381747246,
0.04454849287867546,
0.23991525173187256,
-0.3018665015697479,
-0.21136151254177094,
-0.5126226544380188,
-0.40525346994400024,
-0.008172382600605488,
-0.1805771142244339,
-0.17667895555496216,
0.10861805081367493,
-0.20584911108016968,
-0.24099890887737274,
0.4316929876804352,
0.1569405347108841,
0.22497747838497162,
0.28349223732948303,
0.3169197738170624,
-0.03496663644909859,
-0.3678516745567322,
0.22154706716537476,
-0.13243995606899261,
-0.18027490377426147,
0.013107446022331715,
-0.031169438734650612,
-0.541283905506134,
0.041951734572649,
0.1744588017463684,
0.4846719801425934,
0.08538655936717987,
-0.17893141508102417,
0.040598444640636444,
0.0019732287619262934,
-0.2304075062274933,
-0.053991567343473434,
0.06558439135551453,
0.09184355288743973,
0.6818690896034241,
0.010930943302810192,
-0.34666553139686584,
-0.08234120160341263,
0.22443220019340515,
0.24883143603801727,
-0.10499083250761032,
0.348135769367218,
0.17150118947029114,
-0.39529258012771606,
-0.11700452119112015,
0.03365717828273773,
0.2506343126296997,
0.16488568484783173,
0.14141948521137238,
-0.13451431691646576,
-0.23058372735977173,
0.4424908459186554,
0.01796049065887928,
-0.15587198734283447,
0.016345230862498283,
-0.11487751454114914,
-0.6028129458427429,
-0.15918709337711334,
0.08877980709075928,
-0.03394588455557823,
-0.2836897373199463,
0.07924892008304596,
0.17887663841247559,
-0.22864024341106415,
0.41041073203086853,
-0.14298857748508453,
-0.10344582051038742,
0.014919007197022438,
0.19524627923965454,
-0.2978614568710327,
0.35532888770103455,
-0.10923894494771957,
-0.02549177035689354,
-0.05843539163470268,
0.08182854950428009,
0.01583416946232319,
-0.10956896841526031,
0.15820062160491943,
0.19926677644252777,
-0.18213844299316406,
-0.14827771484851837,
0.11935756355524063,
-0.3192935585975647,
-0.2785273790359497,
-0.16671214997768402,
0.08639824390411377,
-0.09454238414764404,
0.013538776896893978,
-0.6226954460144043,
0.07964533567428589,
-0.30687859654426575,
-0.030855052173137665,
0.14798040688037872,
-0.06898315250873566,
-0.29936134815216064,
0.039347413927316666,
0.1808093786239624,
0.25474920868873596,
-0.07014879584312439,
0.030570700764656067,
-0.04258588328957558,
0.008794093504548073,
-0.13733452558517456,
0.16092199087142944,
-0.013139779679477215,
-0.03617330268025398,
0.13345864415168762,
0.1339655965566635,
0.34250402450561523,
0.15428313612937927,
-0.21892789006233215,
0.4608939588069916,
-0.08926837146282196,
-0.3246288299560547,
-0.1629703789949417,
0.18688134849071503,
0.13234399259090424,
0.1914498507976532,
0.1589534431695938,
-0.14329460263252258,
0.4014591872692108,
-0.18592725694179535,
0.18975798785686493,
0.24085542559623718,
0.03352398797869682,
-0.18403282761573792,
0.36105263233184814,
0.39693453907966614,
-0.11602789908647537,
0.4024517238140106,
0.39455723762512207,
-0.22622708976268768,
0.6142658591270447,
0.22249314188957214,
0.41959744691848755,
0.4634609520435333,
0.4451642632484436,
-0.30345243215560913,
-0.338082879781723,
-0.205655038356781,
0.6224384307861328,
-0.14912743866443634,
-0.24016433954238892,
0.106000155210495,
-0.20504674315452576,
0.4029742479324341,
-0.44085612893104553,
0.10212178528308868,
0.34917429089546204,
0.2446170300245285,
-0.12347453087568283,
-0.40454772114753723,
0.016819607466459274,
0.17254818975925446,
-0.03653086721897125,
-0.012871657498180866,
-0.0016642954433336854,
0.25514960289001465,
0.011150379665195942,
0.26199349761009216,
-0.376018226146698,
-0.23304983973503113,
-0.11589019745588303,
0.2028704583644867,
0.023005029186606407,
0.15527504682540894,
-0.2527201473712921,
0.3291515111923218,
0.33571067452430725,
-0.3138515055179596,
0.17284807562828064,
0.424010694026947,
-0.026868615299463272,
0.1570848971605301,
-0.3043256103992462,
-0.19738797843456268,
-0.015256240963935852,
0.37924209237098694,
0.1525564193725586,
0.14516736567020416,
-0.06930743157863617,
-0.10828803479671478,
-0.034402359277009964,
-0.025302378460764885,
0.27675914764404297,
0.19549360871315002,
0.08478665351867676,
0.33111676573753357,
0.20295651257038116,
0.014271004125475883,
-0.0384325310587883,
0.05764274671673775,
-0.11508354544639587,
0.2869706153869629,
0.2904755175113678,
-0.3353184461593628,
0.1686609834432602,
0.12979856133460999,
-0.005709882825613022,
-0.2572619318962097,
0.11823070049285889,
-0.07139584422111511,
0.39014846086502075,
-0.20781126618385315,
-0.33513015508651733,
-0.44165802001953125,
-0.336150586605072,
-0.3414929509162903,
-0.06132025271654129,
0.14465846121311188,
0.08709821105003357,
0.2598429322242737,
0.04115498811006546,
0.14913560450077057,
0.039258506149053574,
-0.24253439903259277,
0.06313148885965347,
-0.18080513179302216,
0.33768272399902344,
-0.16518226265907288,
0.3906683623790741,
-0.07435382902622223,
-0.35161444544792175,
0.36821994185447693,
-0.21278177201747894,
-0.05784846097230911,
-0.041792165488004684,
0.08142544329166412,
0.204124316573143,
0.14511871337890625,
0.04326482117176056,
-0.014580302871763706,
0.3600326180458069,
0.15218687057495117,
0.5289026498794556,
-0.04601659998297691,
0.07234248518943787,
-0.32643213868141174,
0.259090393781662,
0.23960523307323456,
0.11812873184680939,
-0.032803505659103394,
0.04608182981610298,
0.16154566407203674,
0.0981583222746849,
-0.13290706276893616,
-0.18980272114276886,
-0.07656808197498322,
0.15682072937488556,
0.19637863337993622,
0.3022770583629608,
-0.3197208344936371,
0.1080467626452446,
0.05589001625776291,
0.046992845833301544,
-0.30587780475616455,
-0.06626362353563309,
0.5844324827194214,
-0.5551501512527466,
-0.2744622826576233,
-0.3311438262462616,
0.22667020559310913,
0.4001953601837158,
0.076299749314785,
0.05329317972064018,
-0.10948245227336884,
0.10795623064041138,
-0.11847665160894394,
-0.3128964602947235,
0.30406033992767334,
0.019384512677788734,
0.07728225737810135,
-0.21032710373401642,
-0.13495878875255585,
0.018336733803153038,
-0.1712665855884552,
-0.44926291704177856,
-0.18770356476306915
] |
https://github.com/huggingface/datasets/issues/1796 | Filter on dataset too much slowww | Hi ! Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time.
Using a mask directly on the arrow table doesn't do any read or write operation therefore it's way quicker.
Replacing the old table by the new one should do the job:
```python
dataset._data = dataset._data.filter(...)
```
Note: this is a **workaround** and in general users shouldn't have to do that. In particular if you did some `shuffle` or `select` before that then it would not work correctly since the indices mapping (index from `__getitem__` -> index in the table) would not be valid anymore. But if you haven't done any `shuffle`, `select`, `shard`, `train_test_split` etc. then it should work.
Ideally it would be awesome to update the filter function to allow masking this way !
If you would like to give it a shot I will be happy to help :) | I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
| 162 | Filter on dataset too much slowww
I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
Hi ! Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time.
Using a mask directly on the arrow table doesn't do any read or write operation therefore it's way quicker.
Replacing the old table by the new one should do the job:
```python
dataset._data = dataset._data.filter(...)
```
Note: this is a **workaround** and in general users shouldn't have to do that. In particular if you did some `shuffle` or `select` before that then it would not work correctly since the indices mapping (index from `__getitem__` -> index in the table) would not be valid anymore. But if you haven't done any `shuffle`, `select`, `shard`, `train_test_split` etc. then it should work.
Ideally it would be awesome to update the filter function to allow masking this way !
If you would like to give it a shot I will be happy to help :) | [
-0.25801458954811096,
-0.12244263291358948,
-0.08642466366291046,
-0.260146826505661,
-0.1652653068304062,
-0.2456996738910675,
0.25937533378601074,
0.26136812567710876,
0.3136884272098541,
-0.15321603417396545,
0.0066367811523377895,
0.22178930044174194,
-0.11383549124002457,
0.34814825654029846,
-0.255146324634552,
0.20768935978412628,
0.07264868915081024,
0.224381223320961,
0.38680437207221985,
0.04858511686325073,
-0.08172339200973511,
-0.14383579790592194,
-0.2755507826805115,
-0.05745427682995796,
-0.019712228327989578,
-0.3511649966239929,
0.27382785081863403,
-0.18856646120548248,
-0.2887648940086365,
-0.23911140859127045,
-0.02309253439307213,
0.45420393347740173,
-0.011225201189517975,
0.4893324077129364,
-0.00012605977826751769,
-0.3033392131328583,
0.21907998621463776,
0.09674546122550964,
0.09690763801336288,
0.13116975128650665,
-0.15553733706474304,
-0.034209955483675,
-0.0015717361820861697,
-0.07323487102985382,
-0.13809821009635925,
-0.02777433581650257,
-0.29388362169265747,
-0.3395698070526123,
0.43580013513565063,
0.07627124339342117,
-0.021218154579401016,
-0.16409145295619965,
-0.3436228036880493,
0.39065277576446533,
0.1486465036869049,
0.35527318716049194,
0.1600952446460724,
-0.13553208112716675,
0.6643033623695374,
-0.3910476267337799,
-0.05942312255501747,
0.5160930156707764,
-0.5235145092010498,
-0.0935739204287529,
0.2468021810054779,
-0.28978660702705383,
0.1473238319158554,
-0.20446062088012695,
0.22513188421726227,
0.14347386360168457,
0.04143528267741203,
-0.13050463795661926,
-0.23873381316661835,
-0.3114275336265564,
-0.08410181105136871,
-0.43262460827827454,
0.05844062939286232,
0.05010570213198662,
-0.3467148244380951,
0.012645582668483257,
-0.5090169906616211,
-0.24384644627571106,
0.09583820402622223,
0.1211494505405426,
-0.34761950373649597,
0.3207409679889679,
0.04490506649017334,
0.1487959623336792,
0.24621771275997162,
-0.19567842781543732,
0.08926007151603699,
-0.2859345078468323,
0.24420519173145294,
0.337178111076355,
-0.5745360255241394,
-0.14183169603347778,
-0.1381053626537323,
0.15763098001480103,
-0.030054811388254166,
0.08240566402673721,
-0.25319474935531616,
0.454322874546051,
0.23016583919525146,
-0.033232182264328,
-0.017898069694638252,
0.20665596425533295,
0.07948042452335358,
0.5078433156013489,
0.2514455020427704,
-0.19509319961071014,
-0.1972019374370575,
0.2502978444099426,
-0.030429551377892494,
0.06418000906705856,
0.10519358515739441,
-0.0808326005935669,
-0.46262386441230774,
-0.13824382424354553,
-0.2418837696313858,
-0.09403976798057556,
-0.37371504306793213,
-0.09426373243331909,
0.6346340179443359,
0.44186681509017944,
-0.07835858315229416,
-0.13412626087665558,
-0.0508996956050396,
-0.27955570816993713,
-0.1667899489402771,
0.08388733118772507,
0.041388850659132004,
-0.11992540210485458,
-0.06500913947820663,
0.21818435192108154,
0.09966746717691422,
-0.29189732670783997,
-0.23062971234321594,
0.049400441348552704,
-0.18718411028385162,
0.19880661368370056,
0.22591982781887054,
-0.36437660455703735,
0.22834694385528564,
0.34304970502853394,
-0.30888062715530396,
0.3217533230781555,
0.1475788801908493,
0.02121684141457081,
-0.14084218442440033,
0.1872081309556961,
-0.3472834825515747,
-0.3065008223056793,
0.2215021252632141,
0.0037914810236543417,
-0.1534256637096405,
0.16525375843048096,
-0.10675247758626938,
0.3195846378803253,
0.23847778141498566,
-0.18455296754837036,
-0.2099703997373581,
-0.22961896657943726,
-0.5389135479927063,
-0.1934918463230133,
0.23261582851409912,
0.1322145313024521,
-0.589762806892395,
0.017147013917565346,
-0.3143191635608673,
0.2596709430217743,
0.52313631772995,
0.4517053961753845,
-0.07432305067777634,
0.2232603281736374,
-0.014317058026790619,
0.012674013152718544,
0.2559301555156708,
-0.0851268395781517,
-0.4165562093257904,
0.6068705916404724,
-0.054808322340250015,
0.09065579622983932,
0.17876973748207092,
0.1575142741203308,
0.5775744318962097,
-0.2714686989784241,
0.481609582901001,
0.3299987316131592,
-0.2129824161529541,
0.0879458487033844,
-0.030011864379048347,
-0.1323309689760208,
0.141994908452034,
0.18502110242843628,
-0.350784569978714,
-0.1207069680094719,
-0.043738991022109985,
-0.45079827308654785,
0.2112184464931488,
0.046644095331430435,
0.03340070694684982,
0.1372988224029541,
0.2628428339958191,
0.06773792207241058,
0.002426860621199012,
-0.1319778859615326,
0.043703336268663406,
-0.007963882759213448,
0.026225870475172997,
-0.19918961822986603,
-0.2843852937221527,
-0.21727484464645386,
-0.20583373308181763,
-0.010289822705090046,
0.05021969974040985,
0.2281264364719391,
-0.12861153483390808,
-0.20745626091957092,
0.1340388059616089,
-0.2319643646478653,
-0.018115639686584473,
0.43731439113616943,
-0.11529503017663956,
-0.04127923399209976,
0.14159123599529266,
-0.06060756742954254,
0.39791378378868103,
-0.0976242944598198,
0.10069140791893005,
-0.031405169516801834,
0.30018433928489685,
0.04005542770028114,
0.04547041282057762,
0.16110248863697052,
0.4899815320968628,
-0.2906469404697418,
-0.289732426404953,
0.17464910447597504,
0.11208635568618774,
0.32102102041244507,
0.15853442251682281,
0.03429614380002022,
0.1842803806066513,
-0.09228821098804474,
-0.29719018936157227,
0.5812553763389587,
-0.10305878520011902,
0.4783247411251068,
0.10448237508535385,
-0.03949661925435066,
0.3194074034690857,
0.2093013972043991,
-0.12256425619125366,
-0.19956830143928528,
0.4308719038963318,
-0.03143562376499176,
0.10057517141103745,
0.28060218691825867,
-0.027757087722420692,
0.32835620641708374,
-0.012749772518873215,
-0.2614406943321228,
-0.054649122059345245,
0.24507442116737366,
0.16617727279663086,
0.09886141121387482,
0.17660436034202576,
0.08613620698451996,
0.053412072360515594,
0.22623006999492645,
-0.16107133030891418,
-0.16259482502937317,
0.004000180400907993,
-0.06238533928990364,
0.2874433994293213,
0.12244158983230591,
0.2521750330924988,
-0.2539428174495697,
0.20112667977809906,
-0.11058476567268372,
-0.11660647392272949,
-0.2918698191642761,
0.19452957808971405,
0.3008255064487457,
-0.2301909178495407,
0.08147371560335159,
-0.3432755172252655,
-0.5400553345680237,
0.21443945169448853,
-0.09211668372154236,
0.20336471498012543,
0.008993825875222683,
0.17775851488113403,
0.063135527074337,
0.18228861689567566,
0.14558476209640503,
0.08921803534030914,
0.22768616676330566,
0.20949338376522064,
-0.546737790107727,
-0.14838506281375885,
-0.2128753960132599,
-0.061617832630872726,
-0.06493832916021347,
0.33959701657295227,
0.35244694352149963,
0.39188477396965027,
0.3119645416736603,
-0.10203798860311508,
-0.15463359653949738,
-0.44521310925483704,
-0.1585078239440918,
-0.028689604252576828,
0.11046276241540909,
0.10327130556106567,
0.13384202122688293,
-0.38729241490364075,
-0.15450744330883026,
-0.014791867695748806,
-0.02548743598163128,
-0.17846347391605377,
0.1289549022912979,
-0.1389273852109909,
0.11057998985052109,
0.09654156118631363,
0.15773558616638184,
-0.2108280062675476,
-0.06578674912452698,
-0.1922360211610794,
-0.08032983541488647,
0.30346444249153137,
-0.18913669884204865,
-0.09176114946603775,
-0.22786733508110046,
-0.30645301938056946,
-0.09877809882164001,
0.09396615624427795,
-0.14248885214328766,
0.27684715390205383,
0.3038765788078308,
-0.037068527191877365,
-0.09382810443639755,
-0.11728793382644653,
-0.3516657054424286,
0.6226114630699158,
-0.28738948702812195,
0.17801354825496674,
-0.41161370277404785,
-0.22540923953056335,
0.15426446497440338,
0.032483745366334915,
0.26915642619132996,
-0.07421524822711945,
0.1376710683107376,
0.027318762615323067,
-0.293850302696228,
-0.18134678900241852,
-0.19161783158779144,
0.21256330609321594,
0.2483041137456894,
0.7651824951171875,
0.12782923877239227,
0.34130293130874634,
0.1974574774503708,
0.15694092214107513,
-0.01951756328344345,
0.2924419045448303,
-0.1555919051170349,
-0.18012398481369019,
-0.34593915939331055,
-0.15391945838928223,
0.14617086946964264,
0.07256479561328888,
0.033954720944166183,
0.15576714277267456,
-0.1621883660554886,
-0.03852700814604759,
-0.14081145823001862,
-0.04744638502597809,
-0.22001677751541138,
0.1565883755683899,
-0.21201924979686737,
0.2928079068660736,
0.2550817131996155,
-0.0010023807408288121,
-0.5004400610923767,
-0.35636427998542786,
-0.2340477854013443,
0.02457300014793873,
0.1940567046403885,
-0.1826561689376831,
-0.49209603667259216,
-0.14265772700309753,
-0.4179573357105255,
0.3404892086982727,
0.19945475459098816,
0.28224167227745056,
0.08681581914424896,
0.03656550869345665,
0.11486408859491348,
0.0004408215172588825,
0.8182597756385803,
-0.1471988707780838,
0.01539994589984417,
0.132224902510643,
-0.46859925985336304,
-0.4602782130241394,
0.1328982263803482,
-0.07987260818481445,
0.165336012840271,
0.29584360122680664,
0.39029431343078613,
-0.2847401201725006,
-0.30654388666152954,
-0.06258212774991989,
0.18269778788089752,
-0.06673474609851837,
-0.28749436140060425,
-0.19036923348903656,
-0.21014492213726044,
-0.37054798007011414,
0.28023669123649597,
-0.017591683194041252,
0.2808854579925537,
0.3762195110321045,
-0.34332263469696045,
0.008050763048231602,
-0.26118651032447815,
0.3136884570121765,
0.013887585140764713,
0.006903667002916336,
0.20610059797763824,
0.3031758666038513,
0.019346943125128746,
0.17669591307640076,
0.011615707539021969,
-0.12484608590602875,
-0.029588185250759125,
0.02428416535258293,
0.013628893531858921,
0.0800657793879509,
0.3616875410079956,
0.5575128197669983,
-0.12028774619102478,
0.5586546063423157,
0.053380828350782394,
0.4472557008266449,
-0.003379825036972761,
0.17963910102844238,
-0.19857250154018402,
0.15450915694236755,
-0.6475358009338379,
-0.6661443710327148,
0.08213838189840317,
0.35286152362823486,
-0.32092517614364624,
0.49585217237472534,
0.1206013485789299,
-0.0689840242266655,
0.479532390832901,
0.06894446909427643,
0.9122275710105896,
-0.4223339855670929,
-0.12932047247886658,
-0.003796400036662817,
0.18871337175369263,
0.4288332760334015,
-0.08921322971582413,
0.12839685380458832,
0.07898185402154922,
-0.30485087633132935,
0.0442274734377861,
-0.1779506504535675,
0.051138971000909805,
0.07521449029445648,
0.08464659005403519,
0.338379442691803,
-0.10615818947553635,
0.007373797241598368,
0.027545932680368423,
0.3325154483318329,
0.18984797596931458,
-0.37979656457901,
-0.14620186388492584,
-0.055665358901023865,
0.10842802375555038,
-0.17344270646572113,
0.06300454586744308,
0.03594708442687988,
0.19659288227558136,
-0.21960142254829407,
-0.1999836266040802,
-0.481589674949646,
-0.35524749755859375,
0.019244352355599403,
-0.23226718604564667,
-0.19091178476810455,
0.1824408322572708,
-0.21319249272346497,
-0.24398931860923767,
0.4488251209259033,
0.09178584814071655,
0.17083056271076202,
0.2580387592315674,
0.29941728711128235,
-0.015879064798355103,
-0.4601494371891022,
0.19729973375797272,
-0.12183491885662079,
-0.1465219408273697,
0.05497986823320389,
-0.054058000445365906,
-0.509816586971283,
0.04830830171704292,
0.20300185680389404,
0.48852530121803284,
0.009923984296619892,
-0.21720531582832336,
-0.025109656155109406,
-0.007448532618582249,
-0.16633795201778412,
-0.03554891422390938,
0.15359796583652496,
0.09610936045646667,
0.6945755481719971,
-0.052557915449142456,
-0.31687265634536743,
-0.0998816266655922,
0.10706977546215057,
0.19908860325813293,
-0.21463201940059662,
0.29944363236427307,
0.1840759515762329,
-0.4404842257499695,
-0.10974467545747757,
0.0722014456987381,
0.24741637706756592,
0.29982149600982666,
0.15411917865276337,
-0.06645038723945618,
-0.21581512689590454,
0.4328503906726837,
0.02847222611308098,
-0.081772081553936,
0.03129506856203079,
-0.09280131012201309,
-0.5693457722663879,
-0.20185832679271698,
0.11442679166793823,
-0.04396817088127136,
-0.21175287663936615,
0.061468739062547684,
0.180674210190773,
-0.27056437730789185,
0.36134597659111023,
-0.1649131327867508,
-0.07915609329938889,
-0.012851448729634285,
0.21248680353164673,
-0.25469890236854553,
0.22383786737918854,
-0.07818352431058884,
-0.0072287945076823235,
-0.016349779441952705,
0.07881054282188416,
-0.002759288065135479,
-0.1311948001384735,
0.11032820492982864,
0.18625357747077942,
-0.18031983077526093,
-0.2964836061000824,
0.2364366501569748,
-0.35413265228271484,
-0.24706144630908966,
-0.21542750298976898,
0.0686769187450409,
0.004095205571502447,
0.010502814315259457,
-0.6836889982223511,
0.09632188081741333,
-0.4543238878250122,
-0.10398384928703308,
0.14559727907180786,
-0.1669251024723053,
-0.29372212290763855,
0.012015667743980885,
0.21495378017425537,
0.1863129585981369,
-0.01423567719757557,
0.09829279780387878,
-0.032091740518808365,
0.035041455179452896,
-0.09601151198148727,
0.26559150218963623,
0.027856335043907166,
-0.044338781386613846,
0.19409066438674927,
0.16068823635578156,
0.3102344572544098,
0.08138493448495865,
-0.16667743027210236,
0.4834388196468353,
-0.059180568903684616,
-0.28374233841896057,
-0.20478564500808716,
0.19893501698970795,
0.17913220822811127,
0.18366187810897827,
0.14983214437961578,
-0.2726893424987793,
0.3341101408004761,
-0.2075677365064621,
0.10903578251600266,
0.3740891218185425,
-0.07033810019493103,
-0.21582694351673126,
0.39364877343177795,
0.43174147605895996,
-0.2141319364309311,
0.4373220205307007,
0.34480521082878113,
-0.16338150203227997,
0.6248005628585815,
0.16256964206695557,
0.32355642318725586,
0.4254293143749237,
0.5249889492988586,
-0.3500038981437683,
-0.42696869373321533,
-0.0866607278585434,
0.6189134120941162,
-0.2344910353422165,
-0.1834457367658615,
0.09283050894737244,
-0.2442382276058197,
0.26084527373313904,
-0.34885433316230774,
0.13442622125148773,
0.3292418122291565,
0.18288294970989227,
-0.025894252583384514,
-0.3440881371498108,
-0.0044808597303926945,
0.28101715445518494,
0.008098030462861061,
-0.04440103471279144,
-0.0167209655046463,
0.157760351896286,
0.14250148832798004,
0.29871466755867004,
-0.2946139872074127,
-0.19251643121242523,
-0.1364804208278656,
0.2268218696117401,
-0.07647582143545151,
0.05302954837679863,
-0.27206113934516907,
0.2915359139442444,
0.28982779383659363,
-0.3670111298561096,
0.20988930761814117,
0.4030945897102356,
-0.03815539553761482,
0.14716865122318268,
-0.36069172620773315,
-0.18133661150932312,
-0.015007971785962582,
0.40016791224479675,
0.16768501698970795,
0.15757019817829132,
-0.022081410512328148,
-0.06040539592504501,
-0.052203159779310226,
-0.13893967866897583,
0.21763858199119568,
0.07400945574045181,
0.10714471340179443,
0.3026019334793091,
0.270526260137558,
0.007111428305506706,
-0.061518941074609756,
0.052305351942777634,
-0.12243082374334335,
0.3401496112346649,
0.2895958125591278,
-0.2651774287223816,
0.21171024441719055,
0.23695257306098938,
0.019252995029091835,
-0.22576910257339478,
0.04524760693311691,
-0.045571520924568176,
0.39959993958473206,
-0.25828903913497925,
-0.247811421751976,
-0.4215647280216217,
-0.4059768319129944,
-0.4042251706123352,
-0.03657011315226555,
0.14555084705352783,
0.06294704973697662,
0.26987841725349426,
0.09552610665559769,
0.04354904219508171,
0.12980800867080688,
-0.20223493874073029,
0.0265409704297781,
-0.13727405667304993,
0.32206928730010986,
0.05943603813648224,
0.31538936495780945,
-0.1090591624379158,
-0.3862200379371643,
0.4728354513645172,
-0.2299932837486267,
-0.030847584828734398,
0.11621394753456116,
0.0425751619040966,
0.22715425491333008,
0.08036918193101883,
-0.055226460099220276,
0.06782356649637222,
0.37364766001701355,
0.19153140485286713,
0.5193090438842773,
0.000566814502235502,
0.19787080585956573,
-0.25467994809150696,
0.20546984672546387,
0.265947163105011,
0.17926301062107086,
-0.10639774054288864,
-0.0012778236996382475,
0.043016862124204636,
0.21058697998523712,
-0.16736041009426117,
-0.19143642485141754,
-0.14580990374088287,
0.1135411411523819,
0.13743437826633453,
0.3232654929161072,
-0.3512885570526123,
0.12733428180217743,
-0.053049471229314804,
0.06735851615667343,
-0.27105432748794556,
-0.07727550715208054,
0.5529336333274841,
-0.6079836487770081,
-0.2792537212371826,
-0.27292588353157043,
0.24327455461025238,
0.3418397307395935,
0.1827060431241989,
0.1242087185382843,
-0.09955360740423203,
0.13599425554275513,
-0.17050106823444366,
-0.3291720747947693,
0.22025828063488007,
-0.05089661851525307,
0.033155407756567,
-0.2044653445482254,
-0.1727462261915207,
0.05904754623770714,
-0.1852390468120575,
-0.35257256031036377,
-0.18223188817501068
] |
https://github.com/huggingface/datasets/issues/1796 | Filter on dataset too much slowww | Hi @lhoestq @ayubSubhaniya,
If there's no progress on this one, can I try working on it?
Thanks,
Gunjan | I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
| 18 | Filter on dataset too much slowww
I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
Hi @lhoestq @ayubSubhaniya,
If there's no progress on this one, can I try working on it?
Thanks,
Gunjan | [
-0.22525474429130554,
-0.2595489025115967,
-0.10918066650629044,
-0.21481584012508392,
-0.12303641438484192,
-0.269241601228714,
0.2215610146522522,
0.2114836722612381,
0.26342976093292236,
-0.12331388890743256,
0.027962177991867065,
0.09088090807199478,
-0.11606823652982712,
0.40823641419410706,
-0.227889746427536,
0.15165238082408905,
0.10112828016281128,
0.21310953795909882,
0.4031715989112854,
0.03900161385536194,
-0.057756975293159485,
-0.08079158514738083,
-0.3609126806259155,
-0.029826847836375237,
-0.08470676839351654,
-0.2762126624584198,
0.2782405912876129,
-0.24767932295799255,
-0.27996504306793213,
-0.19020867347717285,
-0.11765559762716293,
0.43286269903182983,
0.04168456792831421,
0.5227160453796387,
-0.0001285760081373155,
-0.38422876596450806,
0.2686324417591095,
0.101689413189888,
0.22517697513103485,
0.10349643975496292,
-0.16966423392295837,
-0.008082746528089046,
-0.03672011196613312,
-0.05866498500108719,
-0.2172694355249405,
0.06693378835916519,
-0.2896469533443451,
-0.23677566647529602,
0.43004110455513,
0.14965128898620605,
-0.026995036751031876,
-0.21864385902881622,
-0.33588358759880066,
0.35633617639541626,
0.15257561206817627,
0.33591583371162415,
0.18690133094787598,
-0.22612647712230682,
0.7080862522125244,
-0.3562735617160797,
0.0696437880396843,
0.472148060798645,
-0.456054151058197,
-0.16154296696186066,
0.14877274632453918,
-0.3453472852706909,
0.10968516021966934,
-0.31329578161239624,
0.24094557762145996,
0.1769205927848816,
0.06566121429204941,
-0.057109285145998,
-0.20081056654453278,
-0.2538343667984009,
-0.04543886333703995,
-0.4103202223777771,
0.020263252779841423,
0.045600928366184235,
-0.32424262166023254,
-0.004245364107191563,
-0.5788227915763855,
-0.21891285479068756,
0.08762779831886292,
0.15838965773582458,
-0.3853457272052765,
0.37354597449302673,
0.03218870982527733,
0.11352387070655823,
0.19936063885688782,
-0.21552954614162445,
0.007501322776079178,
-0.2545444369316101,
0.283242791891098,
0.35545414686203003,
-0.6740976572036743,
-0.15083357691764832,
-0.15819109976291656,
0.22031517326831818,
0.01106337271630764,
0.025715017691254616,
-0.3736511468887329,
0.4627344012260437,
0.2508268356323242,
-0.04021095111966133,
-0.05831347405910492,
0.2461995929479599,
0.06419701129198074,
0.4818010926246643,
0.2978992164134979,
-0.21986094117164612,
-0.29874488711357117,
0.2547261416912079,
-0.05078710615634918,
0.06790546327829361,
0.08237520605325699,
-0.054015595465898514,
-0.5015362501144409,
-0.17027968168258667,
-0.27279388904571533,
-0.10285602509975433,
-0.4168030619621277,
-0.1203470304608345,
0.6683409810066223,
0.46834596991539,
-0.10075321048498154,
-0.12196381390094757,
-0.12643195688724518,
-0.24157306551933289,
-0.16461355984210968,
0.02983829379081726,
0.02790938876569271,
-0.044540323317050934,
-0.06811277568340302,
0.19913513958454132,
0.08994384109973907,
-0.2929747402667999,
-0.17926530539989471,
0.04730159416794777,
-0.1829545795917511,
0.12613545358181,
0.2369166910648346,
-0.38317885994911194,
0.13238155841827393,
0.2923038601875305,
-0.28546667098999023,
0.3071512281894684,
0.08230293542146683,
0.10247691720724106,
-0.11823827773332596,
0.11863186955451965,
-0.3777608573436737,
-0.33677175641059875,
0.2411237508058548,
0.011438812129199505,
-0.11205177754163742,
0.18166565895080566,
-0.07396834343671799,
0.34425386786460876,
0.3069841265678406,
-0.08808619529008865,
-0.22139997780323029,
-0.1915692836046219,
-0.5816181898117065,
-0.15875224769115448,
0.2008322924375534,
0.09218937158584595,
-0.46577173471450806,
0.01868484914302826,
-0.2798205614089966,
0.2105335295200348,
0.5880839824676514,
0.438743531703949,
-0.03694023936986923,
0.22498716413974762,
-0.04308978468179703,
0.0483521968126297,
0.2181491255760193,
-0.11225991696119308,
-0.34538769721984863,
0.6233466267585754,
-0.039500653743743896,
0.00773256691172719,
0.18850506842136383,
0.07854833453893661,
0.5663008689880371,
-0.2632850110530853,
0.5140783786773682,
0.3756265342235565,
-0.2153286635875702,
0.11783645302057266,
-0.021842246875166893,
-0.103648342192173,
0.15897129476070404,
0.23717807233333588,
-0.28163522481918335,
-0.07334928214550018,
-0.07037398219108582,
-0.3758481740951538,
0.17476828396320343,
0.026058277115225792,
0.03090294450521469,
0.17097590863704681,
0.23619236052036285,
0.06273461133241653,
0.011159716174006462,
-0.18206672370433807,
0.1184111014008522,
-0.060821760445833206,
-0.0504305474460125,
-0.1652127057313919,
-0.1754472553730011,
-0.18152624368667603,
-0.2594469487667084,
-0.009087450802326202,
0.0641423836350441,
0.23321016132831573,
-0.11634910851716995,
-0.1710832417011261,
0.11995681375265121,
-0.21288146078586578,
0.03899822384119034,
0.48705771565437317,
-0.06616110354661942,
-0.046514447778463364,
0.18282954394817352,
-0.04810492694377899,
0.3280165195465088,
-0.1143481582403183,
0.1694708615541458,
0.025843098759651184,
0.37149134278297424,
0.014231262728571892,
0.057106245309114456,
0.13866329193115234,
0.502749502658844,
-0.29915308952331543,
-0.31374672055244446,
0.17670407891273499,
0.1542360782623291,
0.3389376699924469,
0.1094481348991394,
0.01643601804971695,
0.13025948405265808,
-0.11432350426912308,
-0.14936396479606628,
0.5312942266464233,
-0.04048225283622742,
0.42389917373657227,
0.08774229884147644,
-0.09935836493968964,
0.31387200951576233,
0.17381328344345093,
-0.0924372524023056,
-0.21664200723171234,
0.5034922361373901,
0.013821563683450222,
0.1286027729511261,
0.24495384097099304,
-0.10351639986038208,
0.30220451951026917,
-0.04750039428472519,
-0.3135298192501068,
-0.05920622497797012,
0.26802879571914673,
0.1906662881374359,
0.08497260510921478,
0.14193324744701385,
-0.017457151785492897,
0.03900622949004173,
0.19786152243614197,
-0.1883348971605301,
-0.15478147566318512,
0.08239220082759857,
-0.0621350072324276,
0.258713960647583,
0.10349623113870621,
0.23531405627727509,
-0.21823422610759735,
0.2533360719680786,
-0.12868045270442963,
-0.09802057594060898,
-0.2866783142089844,
0.22841237485408783,
0.32225656509399414,
-0.2280869036912918,
0.014942734502255917,
-0.3553003668785095,
-0.5684863328933716,
0.23446151614189148,
-0.10108828544616699,
0.2024690955877304,
0.04587287828326225,
0.15923108160495758,
0.04981274902820587,
0.2844611704349518,
0.11751372367143631,
0.11964252591133118,
0.20554299652576447,
0.22143171727657318,
-0.46474921703338623,
-0.10817789286375046,
-0.13237230479717255,
-0.04170748591423035,
-0.057120054960250854,
0.25840502977371216,
0.314212441444397,
0.3845156133174896,
0.3064914643764496,
-0.09748438745737076,
-0.11312924325466156,
-0.5374430418014526,
-0.14814883470535278,
0.01050136424601078,
0.1324184089899063,
0.12267003208398819,
0.1452455371618271,
-0.314394474029541,
-0.10357050597667694,
-0.025187382474541664,
0.019689541310071945,
-0.16293209791183472,
0.06624163687229156,
-0.19985301792621613,
0.07678486406803131,
0.10990018397569656,
0.15672428905963898,
-0.2886810004711151,
-0.032366376370191574,
-0.22017771005630493,
-0.07116307318210602,
0.2759139835834503,
-0.31248319149017334,
-0.1172245442867279,
-0.24047301709651947,
-0.28433653712272644,
-0.06305791437625885,
0.02031499706208706,
-0.1998872011899948,
0.29103249311447144,
0.27405327558517456,
-0.017506420612335205,
-0.12823861837387085,
-0.08297603577375412,
-0.32173895835876465,
0.5405511856079102,
-0.2413507103919983,
0.14246757328510284,
-0.4174323081970215,
-0.23396702110767365,
0.19346417486667633,
-0.0433744415640831,
0.2607782483100891,
-0.1583852767944336,
0.15180468559265137,
0.04610200226306915,
-0.317205011844635,
-0.18608582019805908,
-0.1872585415840149,
0.27647101879119873,
0.27397823333740234,
0.73506760597229,
0.04790918529033661,
0.3134378492832184,
0.16140589118003845,
0.09781163185834885,
0.02346358262002468,
0.2742677927017212,
-0.2951156497001648,
-0.1754237860441208,
-0.32339927554130554,
-0.03748490288853645,
0.24710066616535187,
0.050765641033649445,
0.07710143178701401,
0.17355400323867798,
-0.15512621402740479,
-0.05219137296080589,
-0.21329163014888763,
-0.08722495287656784,
-0.14212016761302948,
0.1017119511961937,
-0.16483674943447113,
0.30681225657463074,
0.23450152575969696,
-0.03915247693657875,
-0.45877742767333984,
-0.3636745512485504,
-0.3014778792858124,
0.06135494261980057,
0.16938960552215576,
-0.18278618156909943,
-0.5065775513648987,
-0.2059258222579956,
-0.39188891649246216,
0.3594695031642914,
0.21593087911605835,
0.27983370423316956,
0.046231839805841446,
0.13006283342838287,
0.15299659967422485,
-0.000764078984502703,
0.8587454557418823,
-0.19640308618545532,
0.02368350699543953,
0.07734311372041702,
-0.5784471035003662,
-0.27504393458366394,
0.10980798304080963,
-0.040072422474622726,
0.06500548124313354,
0.41975247859954834,
0.3936816155910492,
-0.30512917041778564,
-0.34871989488601685,
-0.05230877920985222,
0.12688076496124268,
0.0077717178501188755,
-0.37496480345726013,
-0.15592555701732635,
-0.16419440507888794,
-0.37659814953804016,
0.30392810702323914,
-0.023508785292506218,
0.3030179738998413,
0.3059748113155365,
-0.40379640460014343,
0.027820244431495667,
-0.2339782416820526,
0.3217284381389618,
-0.027287550270557404,
-0.04502195492386818,
0.14393413066864014,
0.25095635652542114,
-0.05576062947511673,
0.1492971032857895,
-0.0016951767029240727,
-0.25908151268959045,
-0.030204594135284424,
0.0440487377345562,
0.09726670384407043,
0.04448314756155014,
0.3970540165901184,
0.4827747642993927,
-0.16124773025512695,
0.5882353186607361,
0.05050773546099663,
0.4886029064655304,
0.011629567481577396,
0.21734528243541718,
-0.09170522540807724,
0.2079639434814453,
-0.6904318332672119,
-0.6199191808700562,
0.058521028608083725,
0.3905729651451111,
-0.346159428358078,
0.34997275471687317,
0.020045282319188118,
-0.0846654400229454,
0.4471518099308014,
0.06630117446184158,
0.9581963419914246,
-0.4153420031070709,
-0.210830956697464,
-0.08122161775827408,
0.25320300459861755,
0.44086599349975586,
-0.1588870882987976,
0.11695484071969986,
0.06425614655017853,
-0.3563610017299652,
0.03351547196507454,
-0.1627473384141922,
0.03190460056066513,
0.11546245217323303,
0.059216924011707306,
0.3585592210292816,
-0.09943478554487228,
0.04646947234869003,
0.022079961374402046,
0.3321060836315155,
0.3033195734024048,
-0.3577498197555542,
-0.19866038858890533,
-0.054840460419654846,
0.10664930194616318,
-0.04458589851856232,
0.015125254169106483,
0.03256550058722496,
0.2558644115924835,
-0.2082434743642807,
-0.19698412716388702,
-0.4552558660507202,
-0.34328246116638184,
-0.040817126631736755,
-0.18394295871257782,
-0.1707673966884613,
0.21553179621696472,
-0.14538538455963135,
-0.148943692445755,
0.4777180254459381,
0.03955288976430893,
0.20647135376930237,
0.23177683353424072,
0.2153301239013672,
-0.056848153471946716,
-0.41878923773765564,
0.18551163375377655,
-0.17867647111415863,
-0.19589045643806458,
0.04478347674012184,
-0.012955457903444767,
-0.4329487085342407,
-0.06321632117033005,
0.14015759527683258,
0.4846389889717102,
-0.002097698161378503,
-0.2411370724439621,
0.0008223585900850594,
-0.0012013339437544346,
-0.17081695795059204,
-0.03206529840826988,
0.14751288294792175,
0.06143222376704216,
0.7015865445137024,
-0.03569880500435829,
-0.2789461016654968,
-0.1368633657693863,
0.12212827801704407,
0.29424846172332764,
-0.2797679603099823,
0.3097614645957947,
0.2331237643957138,
-0.4130250811576843,
-0.10830103605985641,
0.01721818931400776,
0.16577517986297607,
0.34654781222343445,
0.0790228322148323,
0.008340754546225071,
-0.27648454904556274,
0.4665229916572571,
0.04025900363922119,
-0.15021748840808868,
-0.006530320271849632,
0.021022165194153786,
-0.6080694794654846,
-0.22224026918411255,
0.013388768769800663,
-0.11929810047149658,
-0.23514513671398163,
0.09381595999002457,
0.24667644500732422,
-0.22699767351150513,
0.40473634004592896,
-0.155299112200737,
-0.11915677785873413,
-0.08961278200149536,
0.20549525320529938,
-0.1751520037651062,
0.17326930165290833,
-0.10485650599002838,
0.08447840809822083,
-0.009260328486561775,
0.09759604185819626,
0.023488663136959076,
-0.1187349259853363,
0.12993256747722626,
0.19042694568634033,
-0.1591579020023346,
-0.23459143936634064,
0.2908117473125458,
-0.2887119948863983,
-0.25663435459136963,
-0.15979301929473877,
0.09840288013219833,
-0.017928775399923325,
0.05771750211715698,
-0.6547786593437195,
0.06948260962963104,
-0.48614072799682617,
-0.13204847276210785,
0.1135094165802002,
-0.12496838718652725,
-0.301654577255249,
0.06511407345533371,
0.19551178812980652,
0.15588892996311188,
-0.039699167013168335,
0.008310748264193535,
-0.05944957211613655,
0.13631963729858398,
-0.09816785156726837,
0.2446373850107193,
0.038585614413022995,
-0.054667387157678604,
0.23823773860931396,
0.12019623070955276,
0.18422198295593262,
0.048912327736616135,
-0.14128154516220093,
0.4671066701412201,
-0.07224204391241074,
-0.27416834235191345,
-0.16410242021083832,
0.19771604239940643,
0.18682481348514557,
0.1511610597372055,
0.17902128398418427,
-0.24106156826019287,
0.3629322946071625,
-0.18333804607391357,
0.09980709850788116,
0.43508586287498474,
-0.05547846108675003,
-0.2217370867729187,
0.31301116943359375,
0.4332216680049896,
-0.20514030754566193,
0.4461446702480316,
0.3638700544834137,
-0.21313808858394623,
0.5768560767173767,
0.18655452132225037,
0.33188632130622864,
0.3495144546031952,
0.534172534942627,
-0.2553035020828247,
-0.3887855112552643,
-0.11096315085887909,
0.7703389525413513,
-0.2449406534433365,
-0.21367301046848297,
0.03339375928044319,
-0.2079731822013855,
0.33490854501724243,
-0.3433469235897064,
0.11322261393070221,
0.4351331889629364,
0.1481790393590927,
-0.04082386568188667,
-0.35700497031211853,
0.020401690155267715,
0.24827364087104797,
-0.03699839860200882,
0.003688961500301957,
0.01855376549065113,
0.1613125056028366,
0.17943346500396729,
0.2775252163410187,
-0.28586211800575256,
-0.2290663868188858,
-0.15207011997699738,
0.18043342232704163,
-0.059107691049575806,
0.15228544175624847,
-0.2897803783416748,
0.2591445744037628,
0.32153984904289246,
-0.35636666417121887,
0.20936161279678345,
0.415440171957016,
-0.015353602357208729,
0.10739778727293015,
-0.3542914390563965,
-0.15568412840366364,
0.028630131855607033,
0.4394167363643646,
0.20683260262012482,
0.21890084445476532,
-0.03738364204764366,
-0.06809729337692261,
-0.07276404649019241,
-0.07776562869548798,
0.23255637288093567,
0.06563910841941833,
0.1578763723373413,
0.26858922839164734,
0.2677963674068451,
0.052646953612565994,
-0.13243480026721954,
0.06583675742149353,
-0.17723311483860016,
0.39906325936317444,
0.18764740228652954,
-0.25251126289367676,
0.2420501410961151,
0.23788723349571228,
0.008193614892661572,
-0.2458670735359192,
0.012394361197948456,
-0.08788514137268066,
0.435519814491272,
-0.29699262976646423,
-0.30034273862838745,
-0.3489139974117279,
-0.33652761578559875,
-0.3431507647037506,
-0.02514547109603882,
0.09699252247810364,
0.0010712317889556289,
0.21462947130203247,
0.020398763939738274,
0.00803308840841055,
0.11676772683858871,
-0.24034912884235382,
0.04445934295654297,
-0.13693229854106903,
0.3749763071537018,
-0.025413502007722855,
0.3593270778656006,
-0.08077643066644669,
-0.30886539816856384,
0.4820464849472046,
-0.26555824279785156,
-0.042215168476104736,
0.05570071563124657,
0.08756393194198608,
0.1483188271522522,
0.04054129123687744,
-0.10824263840913773,
0.036923766136169434,
0.421078085899353,
0.12042536586523056,
0.5725921392440796,
0.05054648593068123,
0.14965923130512238,
-0.22698688507080078,
0.18500886857509613,
0.3237878382205963,
0.1223641186952591,
-0.03242446109652519,
0.0748082771897316,
0.0803685113787651,
0.22492946684360504,
-0.14962933957576752,
-0.27735692262649536,
-0.09690236300230026,
0.07714787125587463,
0.15351833403110504,
0.2936278283596039,
-0.24478240311145782,
0.1370539665222168,
-0.03682467341423035,
0.020469170063734055,
-0.2410462349653244,
-0.12270792573690414,
0.5522249937057495,
-0.5193555951118469,
-0.2587074935436249,
-0.3608837127685547,
0.25573623180389404,
0.2829855978488922,
0.20683251321315765,
0.1441439390182495,
-0.04229261726140976,
0.14793169498443604,
-0.12213946878910065,
-0.2939152121543884,
0.31194913387298584,
0.008995541371405125,
0.009170519188046455,
-0.20841561257839203,
-0.2674075663089752,
0.09573661535978317,
-0.1376585066318512,
-0.3251846432685852,
-0.14481981098651886
] |
https://github.com/huggingface/datasets/issues/1796 | Filter on dataset too much slowww | Sure @gchhablani feel free to start working on it, this would be very appreciated :)
This feature is would be really awesome, especially since arrow allows to mask really quickly and without having to rewrite the dataset on disk | I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
| 39 | Filter on dataset too much slowww
I have a dataset with 50M rows.
For pre-processing, I need to tokenize this and filter rows with the large sequence.
My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes.
When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column.
Below are the variants I tried.
1. filter() with batch size 1024, single process (takes roughly 3 hr)
2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯)
3. filter() with loading all data in memory, only a single boolean column (never ends).
Can someone please help?
Below is a sample code for small dataset.
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1})
def _amplify(data):
return data
dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag'])
```
Sure @gchhablani feel free to start working on it, this would be very appreciated :)
This feature is would be really awesome, especially since arrow allows to mask really quickly and without having to rewrite the dataset on disk | [
-0.25474002957344055,
-0.2351187765598297,
-0.10145193338394165,
-0.22573474049568176,
-0.14286434650421143,
-0.28716859221458435,
0.2794649600982666,
0.23597829043865204,
0.3127666413784027,
-0.11907652765512466,
0.062109604477882385,
0.13041572272777557,
-0.12634707987308502,
0.42241108417510986,
-0.24737779796123505,
0.1691475659608841,
0.09486023336648941,
0.209919735789299,
0.36516475677490234,
0.044634997844696045,
-0.04944741353392601,
-0.1138269305229187,
-0.332717627286911,
-0.04424326494336128,
-0.04049856588244438,
-0.2961443066596985,
0.2930482029914856,
-0.26618415117263794,
-0.25998833775520325,
-0.17891892790794373,
-0.08933819085359573,
0.4252875745296478,
0.04377352073788643,
0.4724213182926178,
-0.00012845320452470332,
-0.36400678753852844,
0.26256608963012695,
0.11318797618150711,
0.19097033143043518,
0.11359543353319168,
-0.1848614364862442,
-0.016356416046619415,
-0.021852262318134308,
-0.059349872171878815,
-0.21387329697608948,
0.05300989747047424,
-0.27317512035369873,
-0.3023945987224579,
0.4287186861038208,
0.10061619430780411,
-0.0289607010781765,
-0.18324832618236542,
-0.3738385736942291,
0.3723735511302948,
0.1458553969860077,
0.3561846613883972,
0.14372391998767853,
-0.2502302825450897,
0.6577311754226685,
-0.37378907203674316,
0.04612110182642937,
0.5352956652641296,
-0.4705411195755005,
-0.16817791759967804,
0.1968521922826767,
-0.318474143743515,
0.11250747740268707,
-0.2822364568710327,
0.2291530817747116,
0.16906705498695374,
0.014992741867899895,
-0.0777096152305603,
-0.21435321867465973,
-0.29156404733657837,
-0.06155981495976448,
-0.41391974687576294,
0.025286242365837097,
0.028611445799469948,
-0.3154197037220001,
0.01642276719212532,
-0.5580664873123169,
-0.20373642444610596,
0.0965510904788971,
0.1403738260269165,
-0.35479146242141724,
0.36110594868659973,
0.03461266681551933,
0.13136981427669525,
0.21422524750232697,
-0.21309486031532288,
0.02269444800913334,
-0.28705310821533203,
0.2648454010486603,
0.36231324076652527,
-0.6492138504981995,
-0.1423449069261551,
-0.17437773942947388,
0.1750466376543045,
0.006919734179973602,
0.0786333903670311,
-0.3529719412326813,
0.46860170364379883,
0.2220185250043869,
-0.025951342657208443,
-0.06266412138938904,
0.2397356778383255,
0.07409784197807312,
0.4572775065898895,
0.2873615324497223,
-0.21477985382080078,
-0.23667986690998077,
0.25442299246788025,
-0.06849458068609238,
0.0799001008272171,
0.08005837351083755,
-0.03191344439983368,
-0.4939533472061157,
-0.13883823156356812,
-0.26480644941329956,
-0.11023063957691193,
-0.3951864242553711,
-0.11923730373382568,
0.6373212337493896,
0.4258008599281311,
-0.079585961997509,
-0.13445354998111725,
-0.11968693137168884,
-0.23805654048919678,
-0.1651940643787384,
0.028518544510006905,
0.032438576221466064,
-0.0963224247097969,
-0.06951365619897842,
0.17841677367687225,
0.0781027153134346,
-0.27203768491744995,
-0.19776181876659393,
0.03262294828891754,
-0.17777119576931,
0.17301632463932037,
0.255194753408432,
-0.34739843010902405,
0.1557762622833252,
0.30137893557548523,
-0.32030120491981506,
0.3183273673057556,
0.13550570607185364,
0.09040293097496033,
-0.12950025498867035,
0.1477259397506714,
-0.3459281623363495,
-0.3141595721244812,
0.21307575702667236,
-0.0019208804005756974,
-0.12040168046951294,
0.16892051696777344,
-0.1210167184472084,
0.34179404377937317,
0.2751412093639374,
-0.10069434344768524,
-0.20164501667022705,
-0.19150224328041077,
-0.5472358465194702,
-0.16208069026470184,
0.20939840376377106,
0.11714441329240799,
-0.4860532283782959,
-0.011903424747288227,
-0.2796175479888916,
0.2233322709798813,
0.6011431813240051,
0.43440935015678406,
-0.04605306312441826,
0.14723950624465942,
-0.029906930401921272,
0.05643146485090256,
0.2358342409133911,
-0.1227659285068512,
-0.3312915861606598,
0.6238356232643127,
-0.06387587636709213,
0.04009215906262398,
0.21264883875846863,
0.10533857345581055,
0.533123791217804,
-0.25568369030952454,
0.4627815783023834,
0.39446476101875305,
-0.18781457841396332,
0.10910388827323914,
0.003341365372762084,
-0.13125881552696228,
0.19495134055614471,
0.21790610253810883,
-0.332095742225647,
-0.07579416781663895,
-0.06967197358608246,
-0.4481104612350464,
0.19658435881137848,
0.023222466930747032,
0.03478912636637688,
0.11894778162240982,
0.24030964076519012,
0.016325829550623894,
0.020649902522563934,
-0.1357768177986145,
0.0884329155087471,
-0.05111909657716751,
-0.014072153717279434,
-0.16710272431373596,
-0.24949121475219727,
-0.19590412080287933,
-0.20261061191558838,
-0.022411709651350975,
0.0633285716176033,
0.20253333449363708,
-0.12866085767745972,
-0.17705829441547394,
0.08982735872268677,
-0.2292305827140808,
0.00887588132172823,
0.48075810074806213,
-0.040927108377218246,
-0.027785062789916992,
0.1705215871334076,
-0.07462853938341141,
0.3705914318561554,
-0.07825040817260742,
0.14515036344528198,
0.016999267041683197,
0.35023704171180725,
0.018662014976143837,
0.04101045802235603,
0.14074675738811493,
0.496243953704834,
-0.2891913950443268,
-0.291978657245636,
0.17777585983276367,
0.1451970785856247,
0.335565984249115,
0.12326208502054214,
0.04533787816762924,
0.11895367503166199,
-0.10184914618730545,
-0.2242899239063263,
0.5475726127624512,
-0.04949651286005974,
0.46383151412010193,
0.07080884277820587,
-0.07536342740058899,
0.3280292749404907,
0.17197777330875397,
-0.11582042276859283,
-0.23792335391044617,
0.4602113366127014,
-0.014344322495162487,
0.134028822183609,
0.24299435317516327,
-0.08891720324754715,
0.33651071786880493,
-0.07566990703344345,
-0.2729932367801666,
-0.06270988285541534,
0.23760032653808594,
0.1726812720298767,
0.10395422577857971,
0.18994836509227753,
0.010950064286589622,
0.005681846756488085,
0.2170874923467636,
-0.19800817966461182,
-0.16664354503154755,
0.05119547247886658,
-0.04375578463077545,
0.2654488682746887,
0.08149456977844238,
0.2596527934074402,
-0.2470971941947937,
0.2572680115699768,
-0.1374320536851883,
-0.11713134497404099,
-0.34220197796821594,
0.20117944478988647,
0.2727072834968567,
-0.20903538167476654,
0.031248776242136955,
-0.3480932116508484,
-0.5751771330833435,
0.2541058659553528,
-0.08790765702724457,
0.22269289195537567,
0.07293951511383057,
0.1610175371170044,
0.047144874930381775,
0.24523787200450897,
0.14086291193962097,
0.0855320394039154,
0.22163473069667816,
0.23450617492198944,
-0.5197229385375977,
-0.11053180694580078,
-0.15123796463012695,
-0.03947298973798752,
-0.057123951613903046,
0.24790620803833008,
0.31566938757896423,
0.3780958354473114,
0.34166353940963745,
-0.06671050935983658,
-0.11726750433444977,
-0.5213431715965271,
-0.1506475806236267,
-0.012480879202485085,
0.11785430461168289,
0.10231492668390274,
0.14622017741203308,
-0.3354575037956238,
-0.12293528020381927,
-0.029825909063220024,
0.049152083694934845,
-0.17726720869541168,
0.07266542315483093,
-0.16691626608371735,
0.08297406136989594,
0.0800652876496315,
0.1700887233018875,
-0.23576776683330536,
-0.03817996382713318,
-0.20738087594509125,
-0.05656280741095543,
0.27029210329055786,
-0.26566043496131897,
-0.07305793464183807,
-0.2781137228012085,
-0.2712409794330597,
-0.10318780690431595,
0.03646981716156006,
-0.2044023871421814,
0.2926088869571686,
0.28269994258880615,
0.019652947783470154,
-0.1517455130815506,
-0.09834727644920349,
-0.3492054343223572,
0.5780212879180908,
-0.269686758518219,
0.15842920541763306,
-0.4038265645503998,
-0.23135876655578613,
0.201939195394516,
-0.033444542437791824,
0.28658783435821533,
-0.10350053012371063,
0.14019136130809784,
0.02750152349472046,
-0.3251669406890869,
-0.19499565660953522,
-0.20941202342510223,
0.2677607536315918,
0.27751418948173523,
0.7451364994049072,
0.07416676729917526,
0.34548863768577576,
0.18027204275131226,
0.10703358799219131,
0.016800403594970703,
0.28163033723831177,
-0.25695955753326416,
-0.16913653910160065,
-0.3194507956504822,
-0.06220978498458862,
0.23519684374332428,
0.08581524342298508,
0.02575993724167347,
0.15538723766803741,
-0.17712591588497162,
-0.03890012949705124,
-0.21135158836841583,
-0.06669533252716064,
-0.15916970372200012,
0.107152059674263,
-0.20322272181510925,
0.29082947969436646,
0.2369368076324463,
-0.008952942676842213,
-0.4920888841152191,
-0.3526347279548645,
-0.2461753785610199,
0.033832937479019165,
0.2247827649116516,
-0.17753633856773376,
-0.5154920816421509,
-0.1536710113286972,
-0.396879643201828,
0.3571223318576813,
0.21056406199932098,
0.2496906816959381,
0.07332999259233475,
0.09184083342552185,
0.13792915642261505,
0.004819855093955994,
0.8831477165222168,
-0.19259081780910492,
0.04782413691282272,
0.08550718426704407,
-0.5386549234390259,
-0.32991573214530945,
0.12130332738161087,
-0.026626909151673317,
0.06275337189435959,
0.36902156472206116,
0.400545597076416,
-0.30765601992607117,
-0.33612486720085144,
-0.05967022106051445,
0.13100892305374146,
-0.0072171809151768684,
-0.3539109230041504,
-0.15043452382087708,
-0.1287597119808197,
-0.3918294608592987,
0.3001624643802643,
-0.002001078799366951,
0.2927742302417755,
0.32703253626823425,
-0.393869012594223,
0.0023752343840897083,
-0.2537272870540619,
0.3102676570415497,
-0.017485396936535835,
-0.03311256319284439,
0.1579238474369049,
0.2585354447364807,
0.009452135302126408,
0.1730177104473114,
-0.03650345280766487,
-0.20735540986061096,
-0.022343898192048073,
-0.0015388274332508445,
0.05652075633406639,
0.04826771095395088,
0.39987853169441223,
0.49510812759399414,
-0.14652128517627716,
0.5836418867111206,
0.06940291076898575,
0.4908260405063629,
-0.011303277686238289,
0.2272513508796692,
-0.11869838833808899,
0.1846880167722702,
-0.6643239259719849,
-0.6317515969276428,
0.08982829004526138,
0.3616834580898285,
-0.3592297434806824,
0.41494834423065186,
0.0539051778614521,
-0.0925547182559967,
0.4846368134021759,
0.07965010404586792,
0.9722083806991577,
-0.41014769673347473,
-0.15644361078739166,
-0.10247563570737839,
0.2348393052816391,
0.4491517245769501,
-0.1452314406633377,
0.1185021698474884,
0.052688051015138626,
-0.3127821981906891,
0.01876842975616455,
-0.17898443341255188,
0.01313589233905077,
0.10356862097978592,
0.10156690329313278,
0.35286134481430054,
-0.13547825813293457,
0.053292930126190186,
0.01738979108631611,
0.30330201983451843,
0.27459120750427246,
-0.3907105624675751,
-0.12816904485225677,
-0.06740549206733704,
0.1484355926513672,
-0.05449538305401802,
0.041740782558918,
0.02310935966670513,
0.2586686313152313,
-0.2181495875120163,
-0.17862848937511444,
-0.4309234619140625,
-0.33461993932724,
-0.029031667858362198,
-0.18610934913158417,
-0.21806959807872772,
0.1856084018945694,
-0.14997197687625885,
-0.15465101599693298,
0.48009753227233887,
0.05503113195300102,
0.1872081160545349,
0.2562001943588257,
0.2629367411136627,
-0.07100877165794373,
-0.4394880533218384,
0.1941315084695816,
-0.1478516310453415,
-0.18939842283725739,
0.039927221834659576,
-0.02028338797390461,
-0.46752476692199707,
-0.028594236820936203,
0.16647987067699432,
0.4765830934047699,
0.01607314683496952,
-0.2211514562368393,
-0.00907350517809391,
0.013357128947973251,
-0.1800498217344284,
-0.03900730609893799,
0.1601354479789734,
0.08721067011356354,
0.6803515553474426,
-0.01180629339069128,
-0.27124786376953125,
-0.11714620143175125,
0.13556958734989166,
0.2716130018234253,
-0.25443756580352783,
0.307236909866333,
0.20269480347633362,
-0.4166204333305359,
-0.11174876987934113,
0.005492921452969313,
0.2209944725036621,
0.3390145003795624,
0.11248324066400528,
-0.017363261431455612,
-0.2973784804344177,
0.4311397671699524,
0.03993237391114235,
-0.14299386739730835,
0.022601550444960594,
-0.0035557961091399193,
-0.6040539741516113,
-0.19784682989120483,
0.04455968365073204,
-0.16242171823978424,
-0.22623515129089355,
0.09222377091646194,
0.23474407196044922,
-0.2562173306941986,
0.37024402618408203,
-0.15608249604701996,
-0.11458056420087814,
-0.04225391894578934,
0.22498178482055664,
-0.1870003342628479,
0.23972725868225098,
-0.06963952630758286,
0.07817310094833374,
-0.02156168408691883,
0.08467734605073929,
0.0055008758790791035,
-0.12498801946640015,
0.0938568189740181,
0.19143079221248627,
-0.16927310824394226,
-0.26617008447647095,
0.28544872999191284,
-0.3040849268436432,
-0.2480562925338745,
-0.2004137635231018,
0.11811619251966476,
-0.03291190043091774,
0.05817016214132309,
-0.6831440925598145,
0.029405079782009125,
-0.4843916893005371,
-0.14652800559997559,
0.08450394868850708,
-0.1279476135969162,
-0.3025522530078888,
0.0446091927587986,
0.1762179732322693,
0.14222584664821625,
-0.02726200968027115,
0.048414118587970734,
-0.06535106152296066,
0.11468775570392609,
-0.06263470649719238,
0.2472892701625824,
0.043143805116415024,
-0.08274546265602112,
0.2133442461490631,
0.12622685730457306,
0.17694246768951416,
0.05632588267326355,
-0.1567687690258026,
0.4866524636745453,
-0.06685572117567062,
-0.286857545375824,
-0.1953931450843811,
0.16713005304336548,
0.20774799585342407,
0.17367267608642578,
0.161925807595253,
-0.24518975615501404,
0.35793736577033997,
-0.1853935420513153,
0.08896943181753159,
0.40208351612091064,
-0.08218126744031906,
-0.2352084517478943,
0.33880415558815,
0.40775057673454285,
-0.2249969094991684,
0.4805639684200287,
0.3468934893608093,
-0.1937999427318573,
0.6008089780807495,
0.1963532716035843,
0.3269645571708679,
0.42399346828460693,
0.5279600024223328,
-0.3396156430244446,
-0.3884891867637634,
-0.11077956855297089,
0.717207133769989,
-0.203184112906456,
-0.187383234500885,
0.07080582529306412,
-0.21355287730693817,
0.34359684586524963,
-0.3242048919200897,
0.13689471781253815,
0.3997924327850342,
0.1689610779285431,
-0.06898695230484009,
-0.3674280345439911,
0.01554599218070507,
0.2693641781806946,
-0.025864729657769203,
0.001556577393785119,
0.003991106059402227,
0.2068350464105606,
0.15592479705810547,
0.3189150094985962,
-0.27650994062423706,
-0.24059908092021942,
-0.1286069005727768,
0.21349798142910004,
-0.0510532446205616,
0.12598633766174316,
-0.26635298132896423,
0.2794305980205536,
0.3113366663455963,
-0.36934104561805725,
0.20652399957180023,
0.3697751462459564,
-0.040080539882183075,
0.09776083379983902,
-0.37421849370002747,
-0.1569204330444336,
0.0034285644069314003,
0.4361082911491394,
0.21185912191867828,
0.19151945412158966,
-0.03410199657082558,
-0.07337968796491623,
-0.05476650595664978,
-0.06291685253381729,
0.23539072275161743,
0.04978690668940544,
0.16193358600139618,
0.25952571630477905,
0.28004926443099976,
0.03487183153629303,
-0.12281353771686554,
0.02691166289150715,
-0.12318103015422821,
0.3983188271522522,
0.2354516237974167,
-0.2709561586380005,
0.23632760345935822,
0.24292193353176117,
0.0075736744329333305,
-0.2389286607503891,
-0.013387631624937057,
-0.08553546667098999,
0.418539822101593,
-0.28868067264556885,
-0.2669925093650818,
-0.3452300727367401,
-0.34254032373428345,
-0.37840723991394043,
-0.0410970039665699,
0.09316343069076538,
0.012588435783982277,
0.2585786283016205,
0.04499038681387901,
0.029672304168343544,
0.10202296078205109,
-0.1909073293209076,
0.02830478362739086,
-0.13949398696422577,
0.3953852653503418,
0.009560182690620422,
0.3836018145084381,
-0.05424479395151138,
-0.34508824348449707,
0.48032742738723755,
-0.2367369830608368,
-0.04240512475371361,
0.08157488703727722,
0.08671552687883377,
0.1680949330329895,
0.028280014172196388,
-0.05643145740032196,
0.03566838800907135,
0.3896331787109375,
0.1423923820257187,
0.5392436385154724,
0.025577502325177193,
0.16642768681049347,
-0.2396233081817627,
0.17450806498527527,
0.32322970032691956,
0.1623242348432541,
-0.056394342333078384,
0.06580294668674469,
0.06531965732574463,
0.2356826514005661,
-0.14201420545578003,
-0.2512161135673523,
-0.10083069652318954,
0.12022753804922104,
0.11882609128952026,
0.28241556882858276,
-0.3085883855819702,
0.13361456990242004,
-0.035230375826358795,
0.03290555253624916,
-0.22674740850925446,
-0.14354950189590454,
0.5653974413871765,
-0.5540586709976196,
-0.3062087893486023,
-0.3145029842853546,
0.24237202107906342,
0.33473721146583557,
0.19905506074428558,
0.11138511449098587,
-0.05861538648605347,
0.11647092550992966,
-0.13940522074699402,
-0.30947068333625793,
0.2706581950187683,
0.026835361495614052,
0.02008979395031929,
-0.2097318023443222,
-0.22815924882888794,
0.0892249047756195,
-0.13145090639591217,
-0.34546568989753723,
-0.17426863312721252
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | Hi !
Apache Beam is a framework used to define data transformation pipelines. These pipeline can then be run in many runtimes: DataFlow, Spark, Flink, etc. There also exist a local runner called the DirectRunner.
Wikipedia is a dataset that requires some parsing, so to allow the processing to be run on this kind of runtime we're using Apache Beam.
At Hugging Face we've already processed certain versions of wikipedia (the `20200501.en` one for example) so that users can directly download the processed version instead of using Apache Beam to process it.
However for the japanese language we haven't processed it so you'll have to run the processing on your side.
So you do need Apache Beam to process `20200501.ja`.
You can install Apache Beam with
```
pip install apache-beam
```
I think we can probably improve the error message to let users know of this subtlety.
What #498 implied is that Apache Beam is not needed when you process a dataset that doesn't use Apache Beam. | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 167 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
Hi !
Apache Beam is a framework used to define data transformation pipelines. These pipeline can then be run in many runtimes: DataFlow, Spark, Flink, etc. There also exist a local runner called the DirectRunner.
Wikipedia is a dataset that requires some parsing, so to allow the processing to be run on this kind of runtime we're using Apache Beam.
At Hugging Face we've already processed certain versions of wikipedia (the `20200501.en` one for example) so that users can directly download the processed version instead of using Apache Beam to process it.
However for the japanese language we haven't processed it so you'll have to run the processing on your side.
So you do need Apache Beam to process `20200501.ja`.
You can install Apache Beam with
```
pip install apache-beam
```
I think we can probably improve the error message to let users know of this subtlety.
What #498 implied is that Apache Beam is not needed when you process a dataset that doesn't use Apache Beam. | [
0.19116747379302979,
0.0017938798991963267,
-0.004188823979347944,
0.18698330223560333,
0.271381676197052,
0.1396203339099884,
0.42134740948677063,
0.3950364887714386,
0.22948026657104492,
0.1781059354543686,
0.10769926011562347,
-0.09141667187213898,
0.05334948003292084,
-0.10924547910690308,
0.10173661261796951,
-0.46035516262054443,
0.312389612197876,
0.07550092041492462,
-0.10318295657634735,
-0.18625834584236145,
-0.34736934304237366,
0.08449625968933105,
-0.33946073055267334,
0.2037166953086853,
-0.22645100951194763,
0.17298159003257751,
-0.12238001078367233,
0.07952461391687393,
0.07966956496238708,
-0.31025993824005127,
0.06957706063985825,
-0.25269395112991333,
-0.0015344747807830572,
0.37892410159111023,
-0.00011232007818762213,
0.17259356379508972,
0.49421197175979614,
-0.18687523901462555,
-0.35284745693206787,
-0.20018935203552246,
-0.04407356679439545,
-0.5268997550010681,
0.027045104652643204,
-0.49956563115119934,
-0.11857354640960693,
-0.32005706429481506,
0.1248416006565094,
-0.330696702003479,
0.6608901023864746,
0.20979981124401093,
0.1821456253528595,
0.3544294834136963,
0.04792086035013199,
-0.08674617856740952,
0.42749452590942383,
0.09361249208450317,
-0.14903458952903748,
-0.04196444898843765,
-0.08310718089342117,
0.011951935477554798,
-0.0941678136587143,
0.5700829029083252,
-0.3236297369003296,
-0.03938527777791023,
0.22923901677131653,
-0.2227158099412918,
0.0566580668091774,
-0.6094754338264465,
0.17761670053005219,
0.32248252630233765,
0.7865328788757324,
-0.1351766139268875,
-0.22218164801597595,
-0.15308138728141785,
-0.10984315723180771,
0.23514294624328613,
0.15950362384319305,
0.10914921760559082,
-0.21486155688762665,
0.04631698876619339,
0.4381082355976105,
-0.2706962823867798,
-0.14768114686012268,
0.07335257530212402,
0.1302393227815628,
0.4315975606441498,
0.07065267115831375,
0.31762799620628357,
-0.05453416332602501,
-0.08605677634477615,
-0.11914028227329254,
-0.32268965244293213,
0.2525668740272522,
0.38740968704223633,
-0.11371111124753952,
0.08482223004102707,
0.1017933040857315,
0.15089812874794006,
-0.03670123219490051,
-0.2810484766960144,
-0.19214197993278503,
0.1158810555934906,
0.10534120351076126,
0.10820607095956802,
0.1243434026837349,
0.12745754420757294,
0.3880293369293213,
-0.025762464851140976,
0.33483991026878357,
-0.2162710577249527,
0.10981482267379761,
0.044270411133766174,
0.02997765503823757,
-0.2803066670894623,
-0.3338729441165924,
0.2226012796163559,
0.3565322458744049,
-0.09053710848093033,
-0.057684123516082764,
0.04825488105416298,
-0.4567851126194,
-0.32593467831611633,
-0.2221909910440445,
0.33788928389549255,
0.13258668780326843,
0.41527101397514343,
0.13528653979301453,
0.23456494510173798,
-0.257558673620224,
-0.45465222001075745,
-0.03230145946145058,
0.3424355387687683,
-0.407647043466568,
0.1976640820503235,
-0.046132590621709824,
0.014477919787168503,
0.21953709423542023,
-0.15526331961154938,
0.13262802362442017,
0.1820785105228424,
-0.09000495076179504,
-0.08568248152732849,
-0.045745398849248886,
0.45031487941741943,
0.06573327630758286,
0.44664865732192993,
0.2975471317768097,
-0.12725062668323517,
-0.2159791737794876,
0.22815316915512085,
-0.2719877362251282,
-0.2765987515449524,
0.18184305727481842,
0.059442244470119476,
-0.3565078675746918,
0.2080851048231125,
-0.010424226522445679,
-0.07406717538833618,
0.04809156805276871,
-0.08542267233133316,
0.20885807275772095,
0.05144723877310753,
-0.027733607217669487,
-0.28988710045814514,
-0.02141069993376732,
0.7498968243598938,
-0.22692498564720154,
-0.06385651975870132,
-0.009722115471959114,
-0.1436578780412674,
-0.13100843131542206,
-0.004001622088253498,
-0.15566180646419525,
0.28321337699890137,
-0.2314026951789856,
-0.021537896245718002,
0.5308305621147156,
-0.5257617831230164,
0.05843629315495491,
0.19441616535186768,
-0.09820371866226196,
0.21029333770275116,
0.26120537519454956,
0.002672575181350112,
-0.41929495334625244,
-0.2195369005203247,
-0.2881304919719696,
0.05063986778259277,
0.10255030542612076,
-0.024671921506524086,
-0.2568199634552002,
-0.00817070621997118,
0.11579743027687073,
0.15370257198810577,
0.19382645189762115,
0.07872547954320908,
0.13286542892456055,
0.48238852620124817,
0.24451592564582825,
-0.19905942678451538,
0.22638152539730072,
0.4565429091453552,
-0.005168707575649023,
0.10912524163722992,
0.22361373901367188,
0.06444886326789856,
-0.06298339366912842,
0.2775995433330536,
-0.08557912707328796,
0.40199798345565796,
-0.0905069038271904,
-0.1003318727016449,
-0.14799287915229797,
-0.08852404356002808,
-0.28332003951072693,
-0.3008551299571991,
0.07806918025016785,
0.03529937565326691,
-0.07239408791065216,
0.33164164423942566,
-0.28483209013938904,
0.44563019275665283,
-0.12197231501340866,
0.0501287579536438,
-0.5256509184837341,
-0.027860088273882866,
-0.23876507580280304,
0.14583775401115417,
-0.033900655806064606,
0.07095460593700409,
0.22331732511520386,
-0.1908292919397354,
-0.04557262733578682,
0.14840854704380035,
0.10555741935968399,
0.11092359572649002,
-0.07446379959583282,
-0.06246939301490784,
0.14498421549797058,
-0.3980553150177002,
0.3778228163719177,
0.1355358362197876,
0.12641119956970215,
-0.03470727428793907,
0.11387717723846436,
0.2636614143848419,
0.15056145191192627,
0.5216037034988403,
0.023150406777858734,
-0.010032272897660732,
0.0495375394821167,
0.03561164066195488,
-0.3438962996006012,
-0.19510439038276672,
0.2003544270992279,
0.2368834912776947,
0.29997017979621887,
0.04730081558227539,
0.1174449771642685,
-0.3627564311027527,
0.5069278478622437,
-0.054300740361213684,
0.17574641108512878,
-0.024270011112093925,
-0.32469120621681213,
0.14750416576862335,
0.1711481511592865,
-0.2194788157939911,
0.24103382229804993,
0.19127222895622253,
-0.12601351737976074,
0.08837959915399551,
0.20260828733444214,
-0.12479659914970398,
0.07009600847959518,
0.2243943214416504,
0.48521924018859863,
-0.035469405353069305,
-0.23863689601421356,
0.04840054735541344,
-0.17712298035621643,
-0.07024998962879181,
-0.22585523128509521,
-0.03290482982993126,
-0.24750730395317078,
0.16039584577083588,
-0.19560447335243225,
-0.6308538317680359,
-0.3146681487560272,
0.04940694570541382,
-0.5606018900871277,
-0.2840162217617035,
-0.056385770440101624,
-0.2035321295261383,
-0.2767910361289978,
0.2280881404876709,
0.11788471043109894,
-0.04940315708518028,
0.030396660789847374,
-0.4305204153060913,
-0.3263077437877655,
-0.32657065987586975,
-0.3022223711013794,
0.011531569994986057,
0.24944420158863068,
0.08081500232219696,
0.1863834708929062,
-0.4000445604324341,
0.018786180764436722,
-0.20995236933231354,
-0.27236437797546387,
0.20215129852294922,
-0.17233529686927795,
-0.0010479131015017629,
-0.015286524780094624,
0.5179566740989685,
-0.05641721189022064,
-0.047600485384464264,
0.4222886860370636,
-0.13991671800613403,
-0.1939953863620758,
0.12103009968996048,
0.14196215569972992,
0.08176233619451523,
0.04713433235883713,
-0.5049282312393188,
-0.11541907489299774,
-0.4123277962207794,
-0.08730906248092651,
0.08327379822731018,
0.1298007369041443,
0.24180592596530914,
0.1741640716791153,
0.22126732766628265,
0.04403775930404663,
0.01946270652115345,
0.002939188852906227,
-0.007901317439973354,
0.2857334613800049,
-0.13340260088443756,
-0.35046520829200745,
0.3051895797252655,
-0.15460245311260223,
0.1144624724984169,
0.11895284801721573,
-0.2039324939250946,
-0.14644549787044525,
0.24334904551506042,
0.07755071669816971,
-0.053950078785419464,
0.3316074013710022,
0.42056456208229065,
-0.13183897733688354,
0.00018203344370704144,
-0.11900857836008072,
-0.054321613162755966,
-0.13995033502578735,
-0.17691561579704285,
0.32577425241470337,
0.2829321026802063,
0.3171047270298004,
-0.018583813682198524,
0.8535454273223877,
-0.027524590492248535,
0.4695921838283539,
0.4642808735370636,
0.14701980352401733,
0.3714675009250641,
-0.4112054109573364,
-0.11726979166269302,
-0.09160995483398438,
0.06451182812452316,
-0.1340082883834839,
0.16204093396663666,
-0.07902088016271591,
0.05743742361664772,
-0.6090332269668579,
-0.39495062828063965,
-0.34043923020362854,
-0.22196665406227112,
0.15752865374088287,
-0.17006300389766693,
0.23052135109901428,
0.026509813964366913,
0.04172093793749809,
0.12402355670928955,
0.10183236747980118,
0.25080808997154236,
0.3875487148761749,
0.17453111708164215,
0.08806777000427246,
-0.08497177809476852,
-0.0875832736492157,
-0.28831443190574646,
0.387192964553833,
-0.008418898098170757,
0.11234822869300842,
-0.06527862697839737,
-0.3105087876319885,
0.08899828791618347,
0.0730065107345581,
0.47447675466537476,
-0.2369823455810547,
-0.21405641734600067,
0.24448280036449432,
-0.003357391571626067,
-0.6545329689979553,
-0.051858171820640564,
0.05347558856010437,
0.033964645117521286,
-0.09032740443944931,
0.14652197062969208,
-0.21055786311626434,
-0.3132278323173523,
0.19918480515480042,
0.42357462644577026,
-0.11904682219028473,
-0.20928093791007996,
-0.5875592827796936,
-0.07095617800951004,
-0.47871384024620056,
-0.09497958421707153,
-0.07519470155239105,
-0.054252464324235916,
0.07130209356546402,
0.3650437593460083,
0.12600667774677277,
-0.05561196804046631,
0.04076253995299339,
-0.028509536758065224,
0.07015816867351532,
-0.19877666234970093,
-0.3843260407447815,
0.16298389434814453,
0.28383660316467285,
-0.1293621063232422,
0.31293442845344543,
-0.054583363234996796,
-0.41716471314430237,
-0.20309534668922424,
-0.06462181359529495,
0.12951694428920746,
0.4219571650028229,
0.0074732499197125435,
-0.10248439013957977,
0.009375497698783875,
-0.2213628888130188,
0.077146515250206,
-0.04078255593776703,
0.13671472668647766,
-0.025544041767716408,
-0.46569785475730896,
-0.42600521445274353,
0.7275453805923462,
0.05730140954256058,
-0.11025205254554749,
0.21951515972614288,
0.38650691509246826,
-0.09612001478672028,
0.41311874985694885,
0.12050530314445496,
1.0968141555786133,
-0.040365613996982574,
0.2054993212223053,
0.15318681299686432,
0.11459437012672424,
0.7433242797851562,
-0.6203224062919617,
0.11986123025417328,
-0.18332648277282715,
0.15763229131698608,
-0.1322312355041504,
-0.010387580841779709,
0.6084543466567993,
0.07410455495119095,
0.03909381106495857,
0.5708760023117065,
0.16390031576156616,
0.28757327795028687,
-0.02958834171295166,
0.16569633781909943,
-0.26345205307006836,
-0.06261143088340759,
-0.411467045545578,
0.036043647676706314,
-0.10833286494016647,
0.7435286641120911,
-0.13651317358016968,
-0.17558851838111877,
-0.30051326751708984,
-0.4897766709327698,
-0.09957768023014069,
-0.011536655947566032,
-0.2393389195203781,
0.11999651789665222,
-0.2641691565513611,
-0.32012420892715454,
-0.0009491785895079374,
0.30397966504096985,
0.3844965398311615,
-0.056782204657793045,
-0.2318539321422577,
0.12346761673688889,
-0.10619798302650452,
-0.0880049541592598,
-0.2654595971107483,
-0.04032522812485695,
0.44115060567855835,
-0.14804433286190033,
-0.16794279217720032,
0.17145229876041412,
-0.424439013004303,
-0.08795689791440964,
-0.10845056176185608,
0.1357583850622177,
0.5168763399124146,
0.298356831073761,
-0.18300041556358337,
0.2779882252216339,
0.027804294601082802,
0.07894998788833618,
0.12270250171422958,
-0.19282940030097961,
-0.0697573646903038,
-0.15839950740337372,
-0.2607504725456238,
-0.12998457252979279,
-0.07657705992460251,
0.23895792663097382,
0.20757509768009186,
-0.13656146824359894,
0.29658228158950806,
0.0048327879048883915,
-0.21537816524505615,
-0.1935855895280838,
0.26200687885284424,
0.19688083231449127,
-0.14081363379955292,
-0.2442781925201416,
0.11700867116451263,
0.008076239377260208,
-0.20895633101463318,
0.06711913645267487,
0.06791593879461288,
-0.10685103386640549,
-0.03821259364485741,
-0.27693262696266174,
-0.23906151950359344,
0.32134875655174255,
0.010833779349923134,
-0.2085026055574417,
0.03731227293610573,
0.11675726622343063,
0.541667640209198,
-0.08543413877487183,
-0.25124356150627136,
-0.23627158999443054,
0.1338644027709961,
0.21415287256240845,
0.5877950191497803,
0.32292819023132324,
0.06159679964184761,
0.020740896463394165,
0.035340942442417145,
-0.007323478348553181,
-0.300459623336792,
-0.11864414066076279,
0.04049255698919296,
0.20433074235916138,
0.17128987610340118,
0.03793107718229294,
0.2153560370206833,
-0.26383647322654724,
0.2779995799064636,
-0.191484734416008,
0.048591241240501404,
0.29781976342201233,
-0.18653148412704468,
0.24970847368240356,
0.12989185750484467,
0.37483736872673035,
-0.31296437978744507,
0.18268446624279022,
-0.2493487298488617,
0.1914864480495453,
0.22971516847610474,
-0.031040886417031288,
0.3727428913116455,
0.11469108611345291,
-0.13605988025665283,
-0.13348162174224854,
-0.18407075107097626,
-0.0747605413198471,
-0.0018256461480632424,
-0.16295425593852997,
0.05076344311237335,
-0.04496447741985321,
0.12636536359786987,
0.17983363568782806,
-0.24564655125141144,
-0.05948537215590477,
0.25690338015556335,
0.135615274310112,
-0.38401755690574646,
0.11471829563379288,
0.44624388217926025,
-0.23065359890460968,
-0.14445962011814117,
0.3152914345264435,
0.2557356357574463,
0.06965232640504837,
0.2864885926246643,
0.07936326414346695,
0.1090923547744751,
-0.0833655297756195,
0.36048510670661926,
0.3540112376213074,
0.13398130238056183,
0.16992801427841187,
0.11930989474058151,
-0.03942178934812546,
0.12356101721525192,
0.6183957457542419,
-0.35979706048965454,
0.5293434262275696,
0.138329416513443,
0.2234870344400406,
-0.209567591547966,
-0.17198772728443146,
0.40431925654411316,
0.3491846024990082,
0.030741369351744652,
-0.06372323632240295,
-0.009811840951442719,
-0.015165337361395359,
-0.038344938308000565,
-0.043984025716781616,
-0.15588483214378357,
0.15264268219470978,
-0.02381034381687641,
0.18406546115875244,
0.060699086636304855,
-0.27567869424819946,
-0.089863121509552,
-0.0042637065052986145,
0.05837039276957512,
-0.38571077585220337,
0.20083750784397125,
0.1657792180776596,
-0.08248306065797806,
-0.033578380942344666,
0.2867559790611267,
-0.06102876365184784,
0.18916258215904236,
-0.08924365043640137,
-0.15627224743366241,
0.06129524111747742,
-0.22889728844165802,
0.07492529600858688,
0.07885878533124924,
0.24769751727581024,
0.2621338963508606,
-0.12030191719532013,
-0.02157098986208439,
-0.01373254880309105,
-0.038716770708560944,
0.1328173577785492,
0.1091330498456955,
-0.09452272206544876,
0.23171041905879974,
0.22262923419475555,
0.0645291805267334,
-0.1721494048833847,
-0.04326128587126732,
0.1390097588300705,
0.003363017924129963,
-0.41888555884361267,
0.0442827045917511,
-0.42331191897392273,
-0.14237377047538757,
-0.45994529128074646,
0.1326025426387787,
-0.4896370470523834,
0.0648629367351532,
0.14200624823570251,
0.2148463875055313,
-0.1376214474439621,
-0.3698984384536743,
0.03685411065816879,
-0.15935392677783966,
0.25689390301704407,
0.357901006937027,
0.11445188522338867,
-0.29539698362350464,
-0.18135443329811096,
-0.6622397899627686,
0.08937108516693115,
-0.3208751380443573,
0.18054215610027313,
-0.16690286993980408,
-0.10492558777332306,
0.24385401606559753,
0.39687132835388184,
-0.013599121943116188,
0.07209502160549164,
-0.08048354834318161,
0.032150160521268845,
-0.3542991280555725,
-0.11914971470832825,
-0.09470628947019577,
0.12538538873195648,
-0.13264651596546173,
-0.24550405144691467,
0.0859803631901741,
0.02279028482735157,
-0.0070102461613714695,
-0.1017632782459259,
-0.3187883794307709,
0.4922677278518677,
-0.05745847523212433,
0.5561673045158386,
0.031735558062791824,
0.3317183256149292,
0.08109641820192337,
-0.1596710979938507,
0.04839257150888443,
0.04617726802825928,
-0.2101215273141861,
0.2767445743083954,
0.04032491520047188,
0.24431855976581573,
-0.20232141017913818,
-0.13894984126091003,
-0.31060290336608887,
0.5070670247077942,
-0.08943041414022446,
0.08411847800016403,
-0.2534943222999573,
-0.08174053579568863,
-0.02574927918612957,
0.16670964658260345,
-0.11382930725812912,
0.03136831894516945,
-0.029689300805330276,
-0.15304064750671387,
-0.5479570627212524,
-0.0543605238199234,
0.4010424017906189,
-0.6405128836631775,
-0.3518933057785034,
0.0424928292632103,
0.2713647484779358,
-0.006868288852274418,
-0.0719660148024559,
-0.45085543394088745,
0.056141551584005356,
0.2868240475654602,
0.20988085865974426,
0.09258583933115005,
-0.05625598505139351,
-0.23991402983665466,
-0.13446122407913208,
-0.039882563054561615,
-0.4349631667137146,
-0.12768283486366272,
-0.08723177015781403,
-0.07558013498783112,
-0.3943343460559845
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | Thanks for your reply!
I understood.
I tried again with installing apache-beam, add ` beam_runner="DirectRunner"` and an anther `mwparserfromhell` is also required so I installed it.
but, it also failed. It exited 1 without error message.
```py
import datasets
# BTW, 20200501.ja doesn't exist at wikipedia, so I specified date argument
wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner")
print(wiki)
```
and its log is below
```
Using custom data configuration 20210120.ja
Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63...
Killed
```
I also tried on another machine because it may caused by insufficient resources.
```
$ python main.py
Using custom data configuration 20210120.ja
Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63...
Traceback (most recent call last):
File "main.py", line 3, in <module>
wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner")
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset
builder_instance.download_and_prepare(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare
self._download_and_prepare(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 1069, in _download_and_prepare
pipeline_results = pipeline.run()
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/pipeline.py", line 561, in run
return self.runner.run_pipeline(self, self._options)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/direct/direct_runner.py", line 126, in run_pipeline
return runner.run_pipeline(pipeline, options)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 182, in run_pipeline
self._latest_run_result = self.run_via_runner_api(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 193, in run_via_runner_api
return self.run_stages(stage_context, stages)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 358, in run_stages
stage_results = self._run_stage(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 549, in _run_stage
last_result, deferred_inputs, fired_timers = self._run_bundle(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 595, in _run_bundle
result, splits = bundle_manager.process_bundle(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 888, in process_bundle
self._send_input_to_worker(process_bundle_id, transform_id, elements)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 765, in _send_input_to_worker
data_out.write(byte_stream)
File "apache_beam/coders/stream.pyx", line 42, in apache_beam.coders.stream.OutputStream.write
File "apache_beam/coders/stream.pyx", line 47, in apache_beam.coders.stream.OutputStream.write
File "apache_beam/coders/stream.pyx", line 109, in apache_beam.coders.stream.OutputStream.extend
AssertionError: OutputStream realloc failed.
```
| ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 279 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
Thanks for your reply!
I understood.
I tried again with installing apache-beam, add ` beam_runner="DirectRunner"` and an anther `mwparserfromhell` is also required so I installed it.
but, it also failed. It exited 1 without error message.
```py
import datasets
# BTW, 20200501.ja doesn't exist at wikipedia, so I specified date argument
wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner")
print(wiki)
```
and its log is below
```
Using custom data configuration 20210120.ja
Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63...
Killed
```
I also tried on another machine because it may caused by insufficient resources.
```
$ python main.py
Using custom data configuration 20210120.ja
Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63...
Traceback (most recent call last):
File "main.py", line 3, in <module>
wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner")
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset
builder_instance.download_and_prepare(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare
self._download_and_prepare(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 1069, in _download_and_prepare
pipeline_results = pipeline.run()
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/pipeline.py", line 561, in run
return self.runner.run_pipeline(self, self._options)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/direct/direct_runner.py", line 126, in run_pipeline
return runner.run_pipeline(pipeline, options)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 182, in run_pipeline
self._latest_run_result = self.run_via_runner_api(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 193, in run_via_runner_api
return self.run_stages(stage_context, stages)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 358, in run_stages
stage_results = self._run_stage(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 549, in _run_stage
last_result, deferred_inputs, fired_timers = self._run_bundle(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 595, in _run_bundle
result, splits = bundle_manager.process_bundle(
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 888, in process_bundle
self._send_input_to_worker(process_bundle_id, transform_id, elements)
File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 765, in _send_input_to_worker
data_out.write(byte_stream)
File "apache_beam/coders/stream.pyx", line 42, in apache_beam.coders.stream.OutputStream.write
File "apache_beam/coders/stream.pyx", line 47, in apache_beam.coders.stream.OutputStream.write
File "apache_beam/coders/stream.pyx", line 109, in apache_beam.coders.stream.OutputStream.extend
AssertionError: OutputStream realloc failed.
```
| [
0.09179474413394928,
0.0745994970202446,
0.019585996866226196,
0.2518455684185028,
0.25708386301994324,
0.040905892848968506,
0.3200167417526245,
0.3480713963508606,
0.16672630608081818,
0.1959521323442459,
0.21741540729999542,
0.0488915741443634,
-0.09746213257312775,
-0.2695733308792114,
0.09727200120687485,
-0.3023030459880829,
0.24641376733779907,
0.04087189957499504,
-0.16444174945354462,
-0.23304025828838348,
-0.3931179940700531,
0.13409310579299927,
-0.3705986440181732,
0.03509097546339035,
-0.12962284684181213,
0.3397009074687958,
-0.0780814066529274,
0.06381537765264511,
0.017325440421700478,
-0.2700103223323822,
0.04535716399550438,
-0.32461652159690857,
0.12151177227497101,
0.3739316165447235,
-0.00011732040729839355,
0.13438086211681366,
0.4923774003982544,
-0.26285892724990845,
-0.3836725950241089,
-0.2569676339626312,
-0.14033494889736176,
-0.4439762830734253,
0.04482907056808472,
-0.44759321212768555,
-0.1867608278989792,
-0.2697494328022003,
0.053200919181108475,
-0.35864782333374023,
0.3953624665737152,
0.26719462871551514,
0.1607774943113327,
0.26479092240333557,
0.1899026483297348,
-0.04180089384317398,
0.41822364926338196,
0.05589188635349274,
-0.28071656823158264,
0.0011081260163336992,
-0.0778786689043045,
0.10426117479801178,
0.0328846350312233,
0.3811948299407959,
-0.2652493119239807,
0.035182125866413116,
0.21960832178592682,
-0.2989068627357483,
0.027577094733715057,
-0.5322274565696716,
0.18910904228687286,
0.1666528880596161,
0.7942330241203308,
-0.3169867992401123,
-0.13599491119384766,
0.013490280136466026,
-0.0399668887257576,
0.08342311531305313,
0.2887856364250183,
0.11492111533880234,
-0.14830909669399261,
-0.03958224132657051,
0.4454578161239624,
-0.27584385871887207,
-0.1213790774345398,
0.3104604482650757,
0.09709044545888901,
0.4800924062728882,
0.028074590489268303,
0.28524044156074524,
-0.22206750512123108,
-0.16098260879516602,
-0.01938365213572979,
-0.330530047416687,
0.22557155787944794,
0.38685351610183716,
-0.2711619436740875,
0.009111191146075726,
0.030392400920391083,
0.1701526939868927,
0.0020983584690839052,
-0.20760634541511536,
-0.2619359791278839,
0.10038119554519653,
0.16923969984054565,
-0.012388382107019424,
0.0890532061457634,
0.1528998464345932,
0.3734165132045746,
0.11216714978218079,
0.2206747680902481,
-0.17101147770881653,
0.005628554150462151,
0.034012503921985626,
-0.052167538553476334,
-0.34925180673599243,
-0.32364559173583984,
0.18789470195770264,
0.3179505467414856,
-0.16212908923625946,
-0.08921078592538834,
0.06426471471786499,
-0.6158860921859741,
-0.2876560389995575,
-0.22659353911876678,
0.3501834273338318,
0.09443426877260208,
0.3287701904773712,
0.1527712047100067,
0.2902515232563019,
-0.2045259326696396,
-0.3957130014896393,
-0.05425846204161644,
0.47535571455955505,
-0.36454975605010986,
0.24096304178237915,
0.08739402890205383,
0.13678357005119324,
0.15063419938087463,
-0.145143523812294,
-0.045282214879989624,
0.03755265474319458,
-0.037127625197172165,
0.0036609815433621407,
-0.12303248792886734,
0.37357211112976074,
0.1352757066488266,
0.5192133784294128,
0.22129009664058685,
-0.0427362360060215,
-0.09363311529159546,
0.14303219318389893,
-0.18217337131500244,
-0.25476372241973877,
0.040988240391016006,
0.01982671394944191,
-0.3785460889339447,
0.16907306015491486,
0.04186401888728142,
-0.15292157232761383,
-0.019321085885167122,
-0.013738836161792278,
0.17957167327404022,
0.06592163443565369,
-0.07752680778503418,
-0.24829334020614624,
0.19282163679599762,
0.7632595896720886,
-0.18378379940986633,
-0.007170107681304216,
-0.038688044995069504,
-0.09451723843812943,
-0.13374823331832886,
-0.18517416715621948,
-0.010763685218989849,
0.3875401020050049,
-0.2644916772842407,
-0.06522248685359955,
0.6910912394523621,
-0.5287433862686157,
-0.0048345718532800674,
0.19563041627407074,
-0.011186511255800724,
0.03389951214194298,
0.24928221106529236,
-0.10676401108503342,
-0.2923359274864197,
-0.17609193921089172,
-0.2596350610256195,
0.00502675399184227,
0.13042031228542328,
-0.03455411270260811,
-0.33181726932525635,
-0.07145851850509644,
0.08761632442474365,
0.27457574009895325,
0.3723238408565521,
0.029108569025993347,
0.28891921043395996,
0.6823460459709167,
0.1276971697807312,
-0.06684253364801407,
0.20654067397117615,
0.5193418264389038,
-0.08715251088142395,
-0.022772613912820816,
0.19583886861801147,
-0.008805081248283386,
-0.2356022298336029,
0.2555716037750244,
-0.18814922869205475,
0.2531149685382843,
0.007552724331617355,
0.08164428174495697,
-0.17201152443885803,
-0.1806827038526535,
-0.34409552812576294,
-0.21444818377494812,
0.06553714722394943,
0.016830766573548317,
0.08827067911624908,
0.3130514323711395,
-0.31276458501815796,
0.43960413336753845,
-0.19769258797168732,
0.013464240357279778,
-0.44676515460014343,
0.08120136708021164,
-0.13442383706569672,
-0.04010211303830147,
-0.006432005669921637,
0.0986572727560997,
0.37005627155303955,
-0.22547808289527893,
-0.12511105835437775,
0.13684150576591492,
0.09447133541107178,
-0.01134268194437027,
-0.05010392516851425,
-0.11073954403400421,
0.12070132791996002,
-0.33216509222984314,
0.4237893223762512,
0.13219182193279266,
0.13786646723747253,
-0.10639472305774689,
0.15186327695846558,
0.08761897683143616,
0.30216050148010254,
0.43137097358703613,
0.012836125679314137,
-0.03549732640385628,
-0.08449740707874298,
-0.002327107824385166,
-0.20988592505455017,
-0.23935386538505554,
0.286051481962204,
0.36228543519973755,
0.2126556634902954,
-0.015859629958868027,
0.16495195031166077,
-0.35412096977233887,
0.43650898337364197,
0.0414416640996933,
0.23511354625225067,
-0.06080666556954384,
-0.4502047300338745,
0.27834805846214294,
0.09841910749673843,
-0.10645686089992523,
0.3670893609523773,
0.13847467303276062,
-0.23723828792572021,
0.12939459085464478,
0.22790107131004333,
-0.05757945775985718,
0.09220670163631439,
0.1565437763929367,
0.4523298442363739,
0.10827168077230453,
-0.2713342308998108,
0.04340369999408722,
-0.03823523595929146,
-0.12308251857757568,
-0.07804032415151596,
0.11596295237541199,
-0.2822549045085907,
-0.058911681175231934,
-0.3727225363254547,
-0.4914534389972687,
-0.3270522654056549,
0.07182399928569794,
-0.4088912010192871,
-0.2334059327840805,
-0.16883499920368195,
-0.12228281795978546,
-0.13460633158683777,
0.3930951654911041,
0.2123803347349167,
-0.2270425707101822,
-0.06812024861574173,
-0.39594775438308716,
-0.2092331051826477,
-0.20326776802539825,
-0.26831215620040894,
-0.03909803554415703,
0.29763680696487427,
0.1895361691713333,
0.1925695538520813,
-0.26759493350982666,
-0.09590364992618561,
-0.2099434733390808,
-0.10030192881822586,
0.19101795554161072,
0.008340614847838879,
-0.09948330372571945,
-0.051217883825302124,
0.45691099762916565,
-0.03612033277750015,
0.049727655947208405,
0.3699609041213989,
-0.008483991958200932,
-0.14526528120040894,
0.17774084210395813,
0.005221021361649036,
0.1532686948776245,
-0.027591455727815628,
-0.5211424827575684,
-0.24537326395511627,
-0.39218053221702576,
-0.28986597061157227,
0.22465211153030396,
0.0522170290350914,
0.013410315848886967,
0.15669219195842743,
0.1527422070503235,
-0.04225923493504524,
0.06684395670890808,
0.08918513357639313,
0.09168529510498047,
0.4245997369289398,
-0.14916399121284485,
-0.2796570658683777,
0.34238699078559875,
-0.19028577208518982,
0.028985491022467613,
0.09700722247362137,
-0.17301462590694427,
-0.019344355911016464,
0.3139026463031769,
-0.11638445407152176,
-0.06523363292217255,
0.28745198249816895,
0.5190108418464661,
-0.1943495273590088,
0.09282456338405609,
-0.06901856511831284,
0.00834518764168024,
-0.14440053701400757,
-0.24414868652820587,
0.4245215654373169,
0.29740846157073975,
0.30560803413391113,
-0.04353121668100357,
0.7822393178939819,
0.010860346257686615,
0.25569698214530945,
0.42609545588493347,
0.07629913836717606,
0.2692809998989105,
-0.3486824035644531,
-0.04999464750289917,
0.010491527616977692,
0.25440552830696106,
-0.03231677785515785,
0.11126478016376495,
-0.05982525274157524,
0.07622674852609634,
-0.6192237138748169,
-0.3698078691959381,
-0.29949915409088135,
-0.21590656042099,
0.1090988740324974,
-0.2741408050060272,
0.19104228913784027,
-0.04870738089084625,
0.09501107037067413,
0.12376612424850464,
0.020704586058855057,
0.21883228421211243,
0.4647522568702698,
0.0035705433692783117,
0.06393489986658096,
-0.023403121158480644,
-0.09221762418746948,
-0.26439714431762695,
0.327377051115036,
-0.0421188659965992,
0.1358177810907364,
-0.09478733688592911,
-0.23619259893894196,
0.0894804447889328,
0.06319885700941086,
0.309283584356308,
-0.40355902910232544,
-0.16062256693840027,
0.3869544565677643,
0.07807525247335434,
-0.6535660028457642,
-0.17584915459156036,
0.06048715114593506,
-0.015394528396427631,
-0.01750406250357628,
0.010282096453011036,
-0.1933237463235855,
-0.24469983577728271,
0.2949998676776886,
0.42851823568344116,
-0.14231795072555542,
-0.37496525049209595,
-0.4727923274040222,
0.028187546879053116,
-0.48943623900413513,
-0.18839377164840698,
-0.13796024024486542,
0.07885359972715378,
0.24215172231197357,
0.2184172421693802,
0.06510473042726517,
-0.0924430787563324,
0.023694925010204315,
-0.11270315945148468,
0.1126638725399971,
-0.16072586178779602,
-0.16105422377586365,
-0.025506965816020966,
0.32609036564826965,
-0.11863169074058533,
0.06313902139663696,
0.1046711653470993,
-0.254703551530838,
-0.049939293414354324,
-0.016984159126877785,
0.07064298540353775,
0.22647589445114136,
-0.015143445692956448,
-0.019570212811231613,
-0.14491726458072662,
-0.19706222414970398,
0.10597813874483109,
-0.12173603475093842,
0.07832606136798859,
-0.2491559237241745,
-0.3910132348537445,
-0.34800466895103455,
0.7426953911781311,
0.02713984251022339,
-0.01596418395638466,
0.3429037034511566,
0.20170143246650696,
-0.15146631002426147,
0.33976927399635315,
0.047428861260414124,
0.9796895384788513,
0.014183668419718742,
0.006400124169886112,
0.022395949810743332,
0.10224844515323639,
0.8341014385223389,
-0.6507050395011902,
0.06670369952917099,
-0.20457662642002106,
0.22863221168518066,
-0.05457698553800583,
-0.08500194549560547,
0.5718105435371399,
0.11323410272598267,
0.00788815412670374,
0.6712849140167236,
0.14033672213554382,
0.4805466830730438,
-0.08163905888795853,
0.20628246665000916,
-0.16361553966999054,
-0.03533896058797836,
-0.3509265184402466,
0.018205812200903893,
-0.17210301756858826,
0.8090722560882568,
-0.1634286493062973,
-0.09579674899578094,
-0.2525319755077362,
-0.3281347453594208,
-0.258140504360199,
0.1180371642112732,
-0.25288715958595276,
0.13647733628749847,
-0.31720712780952454,
-0.3505350947380066,
0.07233721762895584,
0.3597848415374756,
0.42336347699165344,
0.01662616804242134,
-0.16735759377479553,
0.18335466086864471,
-0.07747123390436172,
-0.15856972336769104,
-0.21630732715129852,
0.10754182934761047,
0.225803941488266,
-0.13343293964862823,
-0.18077100813388824,
0.16909842193126678,
-0.34259164333343506,
-0.11935599893331528,
-0.011339262127876282,
0.022790273651480675,
0.6689748764038086,
0.26825958490371704,
-0.27670806646347046,
0.355376273393631,
0.12834353744983673,
0.0693112388253212,
0.11031629145145416,
-0.21177834272384644,
-0.02665170468389988,
0.02782423608005047,
-0.35084789991378784,
-0.034171003848314285,
-0.12922236323356628,
0.3872741162776947,
0.23113274574279785,
-0.1130417063832283,
0.3309110701084137,
0.12514328956604004,
-0.12336742132902145,
-0.23322005569934845,
0.2853122651576996,
0.17195405066013336,
-0.2076360434293747,
-0.2752784788608551,
0.21288393437862396,
0.17036743462085724,
-0.0983969122171402,
0.03866419196128845,
0.03351954370737076,
-0.06630855053663254,
0.03954637423157692,
-0.26811152696609497,
-0.13348953425884247,
0.27054595947265625,
-0.03883727267384529,
-0.18977591395378113,
-0.06892766803503036,
0.21415042877197266,
0.45717883110046387,
-0.2815125286579132,
-0.19373056292533875,
-0.2539086639881134,
0.03399496152997017,
0.12561385333538055,
0.4958902895450592,
0.3753300905227661,
-0.005188267212361097,
0.0660257339477539,
0.03358730673789978,
-0.0018728713039308786,
-0.19467094540596008,
-0.10273951292037964,
0.016138559207320213,
0.2142413854598999,
0.2061055600643158,
0.16325224936008453,
0.10957058519124985,
-0.4472344219684601,
0.21731911599636078,
-0.15957261621952057,
-0.02231585420668125,
0.2547011077404022,
-0.16464300453662872,
0.2865303158760071,
0.17364677786827087,
0.321105420589447,
-0.5296330451965332,
0.21429184079170227,
-0.18174900114536285,
0.345317542552948,
0.19472646713256836,
0.01709946244955063,
0.4853265881538391,
0.1384415626525879,
-0.4599798023700714,
-0.17733561992645264,
-0.34989917278289795,
-0.03127984702587128,
0.032365426421165466,
-0.11729617416858673,
0.04189198464155197,
-0.018613819032907486,
0.0521196573972702,
0.18345800042152405,
-0.27588871121406555,
-0.05913063883781433,
0.28481990098953247,
0.10280989110469818,
-0.29746395349502563,
0.1754073202610016,
0.4890996813774109,
-0.09819338470697403,
-0.1404956877231598,
0.23337619006633759,
0.1426938772201538,
-0.09167169779539108,
0.3412107229232788,
0.1548687070608139,
0.16315148770809174,
-0.17873144149780273,
0.2053099423646927,
0.18409712612628937,
0.2948668599128723,
0.15759976208209991,
0.04752817377448082,
-0.053838182240724564,
0.08801522105932236,
0.6539550423622131,
-0.28586477041244507,
0.4924987256526947,
0.10118654370307922,
0.16773003339767456,
-0.21161989867687225,
-0.24161769449710846,
0.35958218574523926,
0.42145785689353943,
0.051749199628829956,
-0.1443929225206375,
-0.12379615008831024,
-0.07737147808074951,
-0.014710784889757633,
-0.019691670313477516,
-0.23024162650108337,
0.12901753187179565,
0.02248108759522438,
0.2884575426578522,
-0.12769412994384766,
-0.2530805170536041,
-0.05513127148151398,
0.02976340427994728,
0.05550241097807884,
-0.3724524974822998,
0.1534012258052826,
0.2548287808895111,
-0.11216633766889572,
-0.03394121304154396,
0.39474809169769287,
0.002575519261881709,
0.05063047632575035,
-0.104176364839077,
-0.026668190956115723,
-0.005141918547451496,
-0.1853562593460083,
-0.06031782180070877,
0.11110380291938782,
0.2266118824481964,
0.3590020537376404,
-0.1547214239835739,
-0.07795118540525436,
0.12682054936885834,
-0.02554752305150032,
0.1880698949098587,
0.0604325495660305,
-0.15555018186569214,
0.20814181864261627,
0.2435005158185959,
0.048971258103847504,
-0.15248507261276245,
-0.04124590754508972,
0.24149751663208008,
0.07034812867641449,
-0.27233585715293884,
0.0677773654460907,
-0.3573554754257202,
0.038738954812288284,
-0.42631542682647705,
0.2583354711532593,
-0.5642677545547485,
0.0693698301911354,
0.012265731580555439,
0.32492074370384216,
-0.13828018307685852,
-0.31965330243110657,
0.011014123447239399,
-0.2432871311903,
0.1348070353269577,
0.22486598789691925,
0.11859524995088577,
-0.4263067841529846,
-0.3554022014141083,
-0.48674294352531433,
0.04261982440948486,
-0.3128664791584015,
0.1308722048997879,
-0.20519882440567017,
0.050248026847839355,
0.014670617878437042,
0.3552875220775604,
0.046179257333278656,
0.22698701918125153,
-0.1186082735657692,
0.2433990240097046,
-0.34258079528808594,
-0.1701992303133011,
-0.09144335240125656,
0.1100936084985733,
-0.09119255095720291,
-0.2694912254810333,
-0.030606720596551895,
-0.22600726783275604,
-0.024298282340168953,
-0.1080484390258789,
-0.42023125290870667,
0.553715705871582,
-0.09474769979715347,
0.5825886130332947,
-0.14593367278575897,
0.30086225271224976,
0.07137662172317505,
-0.13962021470069885,
-0.004673587623983622,
-0.010665981099009514,
-0.0691249817609787,
0.1544358879327774,
-0.05374797433614731,
0.22529514133930206,
-0.20206204056739807,
-0.01790097914636135,
-0.3485688269138336,
0.45144549012184143,
-0.24993692338466644,
0.19212515652179718,
-0.137495756149292,
0.006345586385577917,
0.0350947380065918,
0.2750196158885956,
-0.03530631586909294,
-0.0754016563296318,
-0.16488873958587646,
0.006583524867892265,
-0.5357222557067871,
-0.018069466575980186,
0.2722669243812561,
-0.4996759593486786,
-0.21721915900707245,
-0.033243294805288315,
0.34547823667526245,
-0.14042891561985016,
-0.0262270737439394,
-0.4189309775829315,
0.14732149243354797,
0.371423602104187,
0.15801481902599335,
0.13906866312026978,
-0.01153598539531231,
-0.15837900340557098,
-0.07849089801311493,
0.035610802471637726,
-0.5600669980049133,
-0.16444000601768494,
-0.025775862857699394,
-0.06941837072372437,
-0.2995334267616272
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | Hi @miyamonz,
I tried replicating this issue using the same snippet used by you. I am able to download the dataset without any issues, although I stopped it in the middle because the dataset is huge.
Based on a similar issue [here](https://github.com/google-research/fixmatch/issues/23), it could be related to your environment setup, although I am just guessing here. Can you share these details? | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 61 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
Hi @miyamonz,
I tried replicating this issue using the same snippet used by you. I am able to download the dataset without any issues, although I stopped it in the middle because the dataset is huge.
Based on a similar issue [here](https://github.com/google-research/fixmatch/issues/23), it could be related to your environment setup, although I am just guessing here. Can you share these details? | [
-0.08689077943563461,
0.1544124335050583,
0.03492113575339317,
0.2511787414550781,
0.35333332419395447,
0.10837160050868988,
0.32128453254699707,
0.4499053359031677,
0.3734614849090576,
0.008810571394860744,
0.10232548415660858,
0.006331880576908588,
-0.009907256811857224,
-0.022560136392712593,
-0.020793091505765915,
-0.2547832131385803,
0.1721133440732956,
0.0012146813096478581,
-0.2130487561225891,
-0.2989025115966797,
-0.3872271776199341,
0.0866742804646492,
-0.32759806513786316,
0.015958547592163086,
-0.052165690809488297,
0.15560205280780792,
-0.027971649542450905,
0.15741179883480072,
0.04010668769478798,
-0.1749257892370224,
0.2103828489780426,
-0.12499503791332245,
-0.050545163452625275,
0.3043379485607147,
-0.00010792796092573553,
0.0701228529214859,
0.4934639632701874,
-0.2194036990404129,
-0.3645663857460022,
-0.40686163306236267,
-0.08876673877239227,
-0.34729939699172974,
0.02147614024579525,
-0.41081345081329346,
-0.160984069108963,
-0.1692379266023636,
0.027584698051214218,
-0.42442092299461365,
0.2876334488391876,
0.2971321642398834,
0.25581470131874084,
0.3765887916088104,
0.18530167639255524,
-0.09023909270763397,
0.4627017080783844,
-0.25086766481399536,
-0.17348520457744598,
0.1522735059261322,
0.10261612385511398,
-0.013381483033299446,
0.09269478917121887,
0.4647523760795593,
-0.3321601450443268,
0.12292845547199249,
0.39789068698883057,
-0.21040932834148407,
-0.10996582359075546,
-0.5223606824874878,
0.1911681592464447,
0.28530144691467285,
0.8053057789802551,
-0.3187530040740967,
-0.2136245220899582,
-0.06393452733755112,
-0.04662137106060982,
0.09355033189058304,
0.16690702736377716,
0.19600456953048706,
-0.1385709047317505,
0.01322102453559637,
0.25646746158599854,
-0.2776073217391968,
-0.11295067518949509,
0.25479692220687866,
0.02069927006959915,
0.43454304337501526,
0.1130513921380043,
0.2906374931335449,
-0.12133336067199707,
-0.13098587095737457,
0.0601089671254158,
-0.30382075905799866,
0.17902900278568268,
0.4227379262447357,
-0.39365315437316895,
0.09836772084236145,
0.07536569982767105,
0.0314875990152359,
0.2047479748725891,
-0.009700658731162548,
-0.17314845323562622,
0.2701098918914795,
0.17812933027744293,
0.05584968253970146,
0.1880672127008438,
0.2425360381603241,
0.20485669374465942,
0.21803051233291626,
0.3791831433773041,
-0.09181942045688629,
-0.0715206041932106,
0.021390261128544807,
0.008791494183242321,
-0.3030604124069214,
-0.2551550269126892,
0.20652513206005096,
0.34168997406959534,
-0.239362895488739,
-0.2113465517759323,
0.16804049909114838,
-0.39330005645751953,
-0.19529028236865997,
-0.18903608620166779,
0.44647231698036194,
0.0903828889131546,
0.33862850069999695,
0.12707582116127014,
0.36202239990234375,
-0.22779802978038788,
-0.43409234285354614,
-0.1698249727487564,
0.28328371047973633,
-0.25186434388160706,
0.1006731316447258,
0.1977662593126297,
0.11700842529535294,
0.14287830889225006,
-0.15129230916500092,
0.049855995923280716,
0.06723595410585403,
0.11983782798051834,
0.02821258082985878,
-0.09782771021127701,
0.339467853307724,
0.14406971633434296,
0.5026989579200745,
0.1971622109413147,
-0.07732120156288147,
-0.19796234369277954,
0.06902295351028442,
-0.33564096689224243,
-0.08760695159435272,
0.030021853744983673,
0.1454828828573227,
-0.41066107153892517,
0.13924744725227356,
0.02769940160214901,
-0.16095085442066193,
-0.026057103648781776,
-0.13074909150600433,
0.07028507441282272,
-0.03363018482923508,
-0.07188646495342255,
-0.3641681671142578,
0.19075512886047363,
0.756834864616394,
-0.11717945337295532,
-0.050788380205631256,
0.14922018349170685,
-0.032697468996047974,
-0.0346771664917469,
0.062120646238327026,
-0.017995042726397514,
0.08975488692522049,
-0.26584845781326294,
0.049391306936740875,
0.5301241874694824,
-0.49715930223464966,
-0.37459075450897217,
0.14922331273555756,
-0.130374476313591,
0.06741433590650558,
0.1934700906276703,
0.09816552698612213,
-0.22339214384555817,
-0.049143776297569275,
-0.07370717823505402,
0.3216210603713989,
0.12207003682851791,
0.11276952922344208,
-0.3805289566516876,
-0.08599140495061874,
0.20657765865325928,
0.15556862950325012,
0.2180371880531311,
0.03789159283041954,
0.2462633103132248,
0.17644654214382172,
0.10074746608734131,
-0.24089565873146057,
0.23001718521118164,
0.402633935213089,
0.08224525302648544,
-0.07687266170978546,
0.21855327486991882,
-0.0472879484295845,
-0.3427559733390808,
0.3855518698692322,
-0.22628922760486603,
0.2532649338245392,
-0.12667861580848694,
0.03232772648334503,
-0.24582934379577637,
-0.08158503472805023,
-0.39509671926498413,
-0.31535887718200684,
0.1326068639755249,
-0.0861043930053711,
0.1729101687669754,
0.41951075196266174,
-0.09047403186559677,
0.5479966402053833,
-0.08068270236253738,
0.0869767814874649,
-0.3802214562892914,
0.3531742990016937,
-0.15686637163162231,
-0.022320864722132683,
0.08999720960855484,
0.16274747252464294,
0.2166813313961029,
-0.204900860786438,
-0.1471843272447586,
0.2453872710466385,
0.03161277621984482,
0.17538106441497803,
0.06560919433832169,
-0.13634777069091797,
0.1981261819601059,
-0.4174292981624603,
0.2811174690723419,
0.3059629797935486,
0.2019188553094864,
0.0005686588701792061,
-0.0248595979064703,
0.3194141983985901,
0.2762657701969147,
0.3443269729614258,
0.10012214630842209,
0.141981303691864,
0.17406615614891052,
-0.1156531497836113,
-0.11842513829469681,
-0.20509867370128632,
0.3828374743461609,
0.20414572954177856,
0.26476994156837463,
-0.0008263703202828765,
0.05272604525089264,
-0.1929023712873459,
0.4928573966026306,
-0.032853033393621445,
0.3465649485588074,
-0.04349302500486374,
-0.4553961753845215,
0.1410558521747589,
0.07285641878843307,
0.034684304147958755,
0.3330879211425781,
0.13983377814292908,
-0.1654711663722992,
0.15239600837230682,
0.15279239416122437,
-0.0811329111456871,
0.07035771012306213,
0.040198035538196564,
0.28293153643608093,
0.13092075288295746,
-0.03618789464235306,
0.05025801435112953,
-0.12527470290660858,
-0.006771577522158623,
-0.2078782021999359,
0.1457994282245636,
-0.29195722937583923,
0.0663333609700203,
-0.31266364455223083,
-0.39191463589668274,
-0.18842299282550812,
0.2504110336303711,
-0.4732925593852997,
-0.3105265200138092,
-0.14530421793460846,
-0.02801424451172352,
-0.1986224353313446,
0.2472381591796875,
-0.0033553431276232004,
-0.19253192842006683,
0.16338567435741425,
-0.4583185315132141,
-0.1651170253753662,
-0.37624412775039673,
-0.33289745450019836,
0.017307011410593987,
0.3358546495437622,
0.13370531797409058,
0.2784571647644043,
-0.2997748851776123,
0.05159515514969826,
-0.41773635149002075,
-0.2721669375896454,
0.1581752747297287,
-0.03463955596089363,
0.036091335117816925,
0.0005483214627020061,
0.44274845719337463,
-0.00489587290212512,
0.03651110827922821,
0.35164040327072144,
-0.2354395091533661,
-0.19292478263378143,
0.31196680665016174,
0.028266698122024536,
-0.013380085118114948,
0.04112289845943451,
-0.6374547481536865,
-0.3070064187049866,
-0.42526495456695557,
-0.13914915919303894,
0.04893814027309418,
-0.010833759792149067,
0.051651451736688614,
0.14160792529582977,
-0.0006667902343906462,
0.03202187269926071,
-0.008255771361291409,
-0.014077847823500633,
0.13274993002414703,
0.506248950958252,
-0.14567288756370544,
-0.5656460523605347,
0.3194141685962677,
-0.16033464670181274,
0.06243086978793144,
0.19569335877895355,
-0.19556520879268646,
-0.0620267279446125,
0.13756629824638367,
-0.036584414541721344,
0.025997227057814598,
0.2926809787750244,
0.3939030170440674,
-0.2571808993816376,
0.03821830824017525,
-0.13654574751853943,
0.006215365137904882,
-0.04374494031071663,
-0.011489749886095524,
0.29501664638519287,
0.26453226804733276,
0.1776743233203888,
-0.03647293150424957,
0.7936727404594421,
0.007353765424340963,
0.21002477407455444,
0.48138171434402466,
0.07731851190328598,
0.29366251826286316,
-0.34216219186782837,
-0.19429735839366913,
0.008329784497618675,
-0.002757712733000517,
0.014970557764172554,
0.1873183697462082,
-0.08184591680765152,
-0.1355629414319992,
-0.6442764401435852,
-0.35882940888404846,
-0.2766449749469757,
-0.32262274622917175,
0.04532035440206528,
-0.2160218358039856,
0.18436075747013092,
0.20239944756031036,
0.0938606783747673,
0.07389876246452332,
-0.1065477803349495,
0.23401619493961334,
0.2605072557926178,
-0.17595386505126953,
0.0929545983672142,
-0.11183226853609085,
-0.1769469529390335,
-0.3282276391983032,
0.4158119857311249,
0.022623851895332336,
0.20228509604930878,
0.0030381507240235806,
-0.23177707195281982,
0.0856689065694809,
0.018948841840028763,
0.46921637654304504,
-0.3120105564594269,
-0.04375844448804855,
0.12160377204418182,
0.25940942764282227,
-0.555056095123291,
-0.18709580600261688,
-0.03226662799715996,
0.032129958271980286,
-0.04382859170436859,
0.18109248578548431,
-0.2550389766693115,
-0.08022182434797287,
0.06686978787183762,
0.45455193519592285,
-0.0828830748796463,
-0.127431720495224,
-0.4367998540401459,
-0.05021987482905388,
-0.5733696222305298,
-0.08286382257938385,
-0.09778958559036255,
0.14225749671459198,
0.09729323536157608,
0.16235488653182983,
0.09610161930322647,
-0.01427363883703947,
-0.032080236822366714,
-0.008572155609726906,
0.34041672945022583,
-0.2043997347354889,
-0.03545711189508438,
0.08536690473556519,
0.17483094334602356,
0.04601140320301056,
0.4567001163959503,
0.10347064584493637,
-0.4493023455142975,
-0.0529027096927166,
-0.2239479422569275,
-0.045778654515743256,
0.18973878026008606,
-0.07515065371990204,
-0.2041158825159073,
-0.1439586728811264,
-0.08549719303846359,
0.05639158561825752,
-0.030515505000948906,
0.08761468529701233,
-0.023653879761695862,
-0.4352928102016449,
-0.3729908764362335,
0.5270695090293884,
-0.03303905576467514,
-0.05701308324933052,
0.31100207567214966,
0.11276531219482422,
-0.10708113759756088,
0.4222756326198578,
0.01874089427292347,
0.8645868301391602,
-0.018871093168854713,
0.21019557118415833,
0.05828842520713806,
-0.04008215665817261,
0.7248646020889282,
-0.5399273037910461,
0.07716400921344757,
-0.27018412947654724,
0.0008101686253212392,
-0.08790647983551025,
-0.13712909817695618,
0.30189651250839233,
0.004613243043422699,
-0.09128178656101227,
0.7011967301368713,
0.11363553255796432,
0.3072916269302368,
-0.028412247076630592,
0.12683159112930298,
-0.22317983210086823,
0.02475006878376007,
-0.21592597663402557,
0.09361554682254791,
-0.2517370581626892,
0.7930030226707458,
-0.11468286067247391,
-0.1685597151517868,
-0.3997274339199066,
-0.4847641587257385,
-0.2735731899738312,
0.20679707825183868,
-0.32659152150154114,
0.10576467216014862,
-0.1365809440612793,
-0.27553266286849976,
-0.01601378060877323,
0.16851143538951874,
0.3396865129470825,
0.08356110751628876,
-0.3524112105369568,
0.1991567462682724,
-0.04324980825185776,
-0.06335394084453583,
-0.04578355327248573,
0.0030713926535099745,
0.27173858880996704,
-0.09677062183618546,
-0.23187397420406342,
0.1485334187746048,
-0.2545040249824524,
-0.10193773359060287,
-0.11573038250207901,
0.06108810007572174,
0.33174604177474976,
0.2247246354818344,
-0.2792203426361084,
0.22462481260299683,
0.15336525440216064,
-0.0630287453532219,
0.1800224930047989,
-0.049434419721364975,
-0.03033025749027729,
-0.003299442119896412,
-0.18098165094852448,
-0.24746833741664886,
-0.1228528618812561,
0.5205885171890259,
0.1839735507965088,
-0.24243396520614624,
0.4066537618637085,
0.17236179113388062,
-0.21041728556156158,
-0.24109990894794464,
0.16213932633399963,
0.1905706375837326,
-0.2650225758552551,
-0.14605146646499634,
-0.03186166658997536,
0.09577147662639618,
-0.138687863945961,
0.1677308827638626,
-0.011346896179020405,
-0.10962982475757599,
0.09533736109733582,
-0.4442574977874756,
-0.032640960067510605,
0.1852377951145172,
-0.08543462306261063,
-0.10106384009122849,
0.0033140189480036497,
0.0053182365372776985,
0.40322405099868774,
-0.29716286063194275,
-0.2888948917388916,
-0.1376590132713318,
-0.10590779036283493,
0.02246193028986454,
0.5605169534683228,
0.2935125231742859,
0.0023231857921928167,
-0.058145392686128616,
0.09376486390829086,
-0.12681807577610016,
-0.19378028810024261,
-0.20279300212860107,
-0.01494792103767395,
0.13855312764644623,
0.04348029941320419,
0.16305045783519745,
0.07036572694778442,
-0.4823303818702698,
0.20216013491153717,
-0.1527930647134781,
0.056792888790369034,
0.253628134727478,
-0.19947446882724762,
0.17714056372642517,
0.1085897907614708,
0.18430157005786896,
-0.3525298535823822,
0.26749929785728455,
-0.3646934926509857,
0.17219385504722595,
0.130479633808136,
0.06860911846160889,
0.3867250084877014,
0.15165366232395172,
-0.17355087399482727,
-0.17423015832901,
-0.37437769770622253,
-0.048257969319820404,
0.21082109212875366,
-0.1414894312620163,
-0.006862938869744539,
0.13409842550754547,
0.1062336415052414,
0.2562640905380249,
-0.35032761096954346,
-0.10758533328771591,
0.18367302417755127,
0.19692710041999817,
-0.4555111825466156,
-0.07519766688346863,
0.40375828742980957,
-0.13587887585163116,
-0.021496541798114777,
0.18435239791870117,
0.2636778950691223,
-0.24109533429145813,
0.3059704601764679,
0.19165511429309845,
0.3945595920085907,
-0.11702919006347656,
0.30119559168815613,
0.3527545630931854,
0.17799915373325348,
0.13961219787597656,
-0.03041275404393673,
0.04745511710643768,
0.13538585603237152,
0.6484870314598083,
-0.2091657519340515,
0.4114724099636078,
0.06740246713161469,
0.10300429910421371,
-0.26241928339004517,
-0.3011831045150757,
0.29920682311058044,
0.22040370106697083,
-0.06951679289340973,
0.029288608580827713,
-0.024015963077545166,
-0.001998764695599675,
0.0860409215092659,
-0.056578557938337326,
-0.15854999423027039,
0.1666673868894577,
0.0012735335621982813,
0.22534526884555817,
0.017971381545066833,
-0.351901113986969,
-0.07290774583816528,
0.1331721544265747,
0.031203310936689377,
-0.2385885864496231,
0.22812741994857788,
0.16829434037208557,
-0.1240403950214386,
-0.12397288531064987,
0.37424343824386597,
-0.11891986429691315,
0.013632001355290413,
-0.13765597343444824,
0.025403689593076706,
0.04635388404130936,
-0.15982425212860107,
0.006921154912561178,
0.1635754257440567,
0.2606302499771118,
0.34880268573760986,
-0.28664708137512207,
-0.023813998326659203,
0.17843382060527802,
-0.06752530485391617,
-0.015599184669554234,
0.09208406507968903,
-0.06219803914427757,
-0.05248592421412468,
0.28906068205833435,
0.11364804208278656,
-0.1780465543270111,
0.09538217633962631,
0.04331305995583534,
-0.03697019815444946,
-0.2705109715461731,
-0.05337401479482651,
-0.3792499005794525,
0.08717911690473557,
-0.3402259647846222,
0.038981352001428604,
-0.6098287105560303,
-0.006096156779676676,
0.1512967050075531,
0.1895902305841446,
-0.006375705823302269,
-0.3605639934539795,
0.060546547174453735,
-0.10734067112207413,
0.3097567856311798,
0.4319078326225281,
0.12030893564224243,
-0.3997265696525574,
-0.23151783645153046,
-0.7111360430717468,
0.2788397967815399,
-0.41060465574264526,
0.14500050246715546,
-0.14957916736602783,
0.07072987407445908,
0.09841440618038177,
0.23376032710075378,
0.17868801951408386,
0.3277377486228943,
-0.2366160750389099,
0.10396908968687057,
-0.36990177631378174,
-0.30214744806289673,
-0.24034421145915985,
-0.0011572036892175674,
-0.10399755835533142,
-0.32252928614616394,
0.15655434131622314,
-0.13395191729068756,
0.09491483867168427,
-0.14083537459373474,
-0.30694714188575745,
0.3905302584171295,
-0.022349588572978973,
0.5410962104797363,
0.01517712976783514,
0.4371797442436218,
0.08463118225336075,
0.012738308869302273,
-0.08697570860385895,
-0.08522423356771469,
-0.11141940951347351,
0.16098302602767944,
-0.07901844382286072,
0.05979076400399208,
-0.13160042464733124,
-0.1634128987789154,
-0.2565714716911316,
0.4323994815349579,
0.12198108434677124,
0.16965462267398834,
-0.19938579201698303,
0.06679211556911469,
0.029476920142769814,
0.1640387773513794,
-0.13577356934547424,
-0.04471766948699951,
-0.2038329839706421,
-0.033054180443286896,
-0.30788132548332214,
-0.26464739441871643,
0.2891611158847809,
-0.42814135551452637,
-0.36054664850234985,
-0.002463933080434799,
0.19139984250068665,
-0.22266925871372223,
0.011238249950110912,
-0.36480042338371277,
0.21677155792713165,
0.3255026936531067,
0.1010456308722496,
-0.12341712415218353,
-0.012208702974021435,
-0.14546865224838257,
-0.08819040656089783,
0.0029762866906821728,
-0.3081105053424835,
0.08674108982086182,
-0.12965668737888336,
0.008383223786950111,
-0.22913457453250885
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | thanks for your reply and sorry for my late response.
## environment
my local machine environment info
- Ubuntu on WSL2
`lsb_release -a`
```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
```
RTX 2070 super
Inside WSL, there is no nvidia-msi command. I don't know why.
But, `torch.cuda.is_available()` is true and when I start something ML training code GPU usage is growing up, so I think it works.
From PowerShell, there is nvidia-smi.exe and result is below.
```
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.05 Driver Version: 470.05 CUDA Version: 11.3 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... WDDM | 00000000:09:00.0 On | N/A |
| 0% 30C P8 19W / 175W | 523MiB / 8192MiB | 3% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1728 C+G Insufficient Permissions N/A |
| 0 N/A N/A 3672 C+G ...ekyb3d8bbwe\YourPhone.exe N/A |
| 0 N/A N/A 6304 C+G ...2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 8648 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 9536 C+G ...y\ShellExperienceHost.exe N/A |
| 0 N/A N/A 10668 C+G ...5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 10948 C+G ...artMenuExperienceHost.exe N/A |
| 0 N/A N/A 11988 C+G ...8wekyb3d8bbwe\Cortana.exe N/A |
| 0 N/A N/A 12464 C+G ...cw5n1h2txyewy\LockApp.exe N/A |
| 0 N/A N/A 13280 C+G ...upport\CEF\Max Helper.exe N/A |
| 0 N/A N/A 15948 C+G ...t\GoogleIMEJaRenderer.exe N/A |
| 0 N/A N/A 16128 C+G ...ram Files\Slack\Slack.exe N/A |
| 0 N/A N/A 19096 C+G ...8bbwe\WindowsTerminal.exe N/A |
+-----------------------------------------------------------------------------+
```
I don't know what should I show in such a case. If it's not enough, please tell me some commands.
---
## what I did
I surveyed more and I found 2 issues.
About the first one, I wrote it as a new issue.
https://github.com/huggingface/datasets/issues/2031
The error I mentioned in the previous comment above, which occurred on my local machine, is no longer occurring.
But, it still failed. In the previous comment, I wrote `AssertionError: OutputStream realloc failed.` happen on another machine. It also happens on my local machine.
Here's what I've tried.
the wikipedia.py downloads these xml.bz2 files based on dumpstatus.json
In Japanese Wikipedia dataset that I specified, it will download these 6 files.
`https://dumps.wikimedia.org/jawiki/20210120/dumpstatus.json`
and filtered json based on wikipedia.py is below.
```json
{
"jobs": {
"articlesmultistreamdump": {
"files": {
"jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2"
},
"jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2"
},
"jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2"
},
"jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2"
},
"jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2"
},
"jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2"
}
}
}
}
}
```
So, I tried running with fewer resources by modifying this line.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L524
I changed it like this. just change filepaths list.
` | "Initialize" >> beam.Create(filepaths[:1])`
and I added a print line inside for the loop of _extract_content.
like this `if(i % 100000 == 0): print(i)`
first, without modification, it always stops after all _extract_content is done.
- `filepaths[:1]` then it succeeded.
- `filepaths[:2]` then it failed.
I don't try all patterns because each pattern takes a long time.
### my opinion
It seems it's successful when the entire file size is small.
so, at least it doesn't file-specific issue.
I don't know it's true but I think when beam_writter writes into a file, it consumes memory depends on its entire file.
but It's correct Apache Beam's behavior? I'm not familiar with this library.
| ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 606 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
thanks for your reply and sorry for my late response.
## environment
my local machine environment info
- Ubuntu on WSL2
`lsb_release -a`
```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
```
RTX 2070 super
Inside WSL, there is no nvidia-msi command. I don't know why.
But, `torch.cuda.is_available()` is true and when I start something ML training code GPU usage is growing up, so I think it works.
From PowerShell, there is nvidia-smi.exe and result is below.
```
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.05 Driver Version: 470.05 CUDA Version: 11.3 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... WDDM | 00000000:09:00.0 On | N/A |
| 0% 30C P8 19W / 175W | 523MiB / 8192MiB | 3% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1728 C+G Insufficient Permissions N/A |
| 0 N/A N/A 3672 C+G ...ekyb3d8bbwe\YourPhone.exe N/A |
| 0 N/A N/A 6304 C+G ...2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 8648 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 9536 C+G ...y\ShellExperienceHost.exe N/A |
| 0 N/A N/A 10668 C+G ...5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 10948 C+G ...artMenuExperienceHost.exe N/A |
| 0 N/A N/A 11988 C+G ...8wekyb3d8bbwe\Cortana.exe N/A |
| 0 N/A N/A 12464 C+G ...cw5n1h2txyewy\LockApp.exe N/A |
| 0 N/A N/A 13280 C+G ...upport\CEF\Max Helper.exe N/A |
| 0 N/A N/A 15948 C+G ...t\GoogleIMEJaRenderer.exe N/A |
| 0 N/A N/A 16128 C+G ...ram Files\Slack\Slack.exe N/A |
| 0 N/A N/A 19096 C+G ...8bbwe\WindowsTerminal.exe N/A |
+-----------------------------------------------------------------------------+
```
I don't know what should I show in such a case. If it's not enough, please tell me some commands.
---
## what I did
I surveyed more and I found 2 issues.
About the first one, I wrote it as a new issue.
https://github.com/huggingface/datasets/issues/2031
The error I mentioned in the previous comment above, which occurred on my local machine, is no longer occurring.
But, it still failed. In the previous comment, I wrote `AssertionError: OutputStream realloc failed.` happen on another machine. It also happens on my local machine.
Here's what I've tried.
the wikipedia.py downloads these xml.bz2 files based on dumpstatus.json
In Japanese Wikipedia dataset that I specified, it will download these 6 files.
`https://dumps.wikimedia.org/jawiki/20210120/dumpstatus.json`
and filtered json based on wikipedia.py is below.
```json
{
"jobs": {
"articlesmultistreamdump": {
"files": {
"jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2"
},
"jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2"
},
"jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2"
},
"jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2"
},
"jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2"
},
"jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2": {
"url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2"
}
}
}
}
}
```
So, I tried running with fewer resources by modifying this line.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L524
I changed it like this. just change filepaths list.
` | "Initialize" >> beam.Create(filepaths[:1])`
and I added a print line inside for the loop of _extract_content.
like this `if(i % 100000 == 0): print(i)`
first, without modification, it always stops after all _extract_content is done.
- `filepaths[:1]` then it succeeded.
- `filepaths[:2]` then it failed.
I don't try all patterns because each pattern takes a long time.
### my opinion
It seems it's successful when the entire file size is small.
so, at least it doesn't file-specific issue.
I don't know it's true but I think when beam_writter writes into a file, it consumes memory depends on its entire file.
but It's correct Apache Beam's behavior? I'm not familiar with this library.
| [
-0.01646200381219387,
-0.12084280699491501,
-0.04492584615945816,
0.1289525330066681,
0.3602374196052551,
0.011790109798312187,
0.46351608633995056,
0.39907482266426086,
0.26570284366607666,
0.22124485671520233,
0.3692161440849304,
-0.09264913201332092,
0.0788547471165657,
-0.05038023740053177,
0.31713178753852844,
-0.3475854992866516,
0.3893395662307739,
-0.10230746120214462,
-0.04461551085114479,
-0.28538772463798523,
-0.3970680832862854,
0.09727442264556885,
-0.3274347186088562,
0.20433296263217926,
-0.2763909697532654,
0.38344886898994446,
0.08559481799602509,
0.0011823306558653712,
0.26840174198150635,
-0.07426460832357407,
0.04830574989318848,
-0.3112155795097351,
0.27958589792251587,
0.1183505728840828,
-0.0001173795826616697,
0.15392951667308807,
0.27871090173721313,
-0.3796845078468323,
-0.2545411288738251,
-0.3259485065937042,
0.1180824562907219,
-0.5497903227806091,
0.053657807409763336,
-0.41021448373794556,
-0.3081613779067993,
-0.31674081087112427,
-0.01672445796430111,
-0.36415895819664,
0.23516495525836945,
0.2283264696598053,
0.16963797807693481,
0.21523725986480713,
-0.05530481040477753,
0.046357423067092896,
0.4933217465877533,
0.060214653611183167,
-0.3058099150657654,
-0.018119214102625847,
0.06976094841957092,
0.0744796022772789,
0.14658419787883759,
0.6420865058898926,
-0.23146072030067444,
-0.015231363475322723,
0.06731338798999786,
-0.01678577996790409,
0.16636502742767334,
-0.32633936405181885,
0.1945957988500595,
0.08995427936315536,
0.4828101396560669,
-0.26629212498664856,
-0.01627207174897194,
0.041008111089468,
-0.10902401059865952,
-0.1496422290802002,
0.28068965673446655,
0.23350360989570618,
-0.21531596779823303,
0.025501228868961334,
0.4467759430408478,
-0.07512155175209045,
0.019394440576434135,
0.15088194608688354,
-0.041478876024484634,
0.6642960906028748,
0.06980742514133453,
0.31395864486694336,
-0.18301835656166077,
-0.03873731940984726,
-0.20581109821796417,
-0.1763623058795929,
0.20240433514118195,
0.1869180053472519,
-0.4122219979763031,
0.05783143267035484,
0.17306159436702728,
-0.15398025512695312,
-0.18829527497291565,
0.029637182131409645,
-0.219807431101799,
0.022954167798161507,
0.5886097550392151,
0.04372832551598549,
-0.14924319088459015,
0.16410596668720245,
0.26415684819221497,
-0.11192157864570618,
0.2892177999019623,
-0.2116505205631256,
-0.05294594168663025,
-0.037572771310806274,
-0.11767886579036713,
-0.3208053708076477,
-0.6114051938056946,
0.21613256633281708,
0.3799574375152588,
-0.11072064936161041,
-0.37585440278053284,
0.0015662556979805231,
-0.7844847440719604,
-0.1767556369304657,
-0.0009921242017298937,
0.529339611530304,
0.29284903407096863,
0.41866475343704224,
0.2891371250152588,
0.2036617249250412,
-0.2172861397266388,
-0.3478891849517822,
-0.0793721005320549,
0.2945081889629364,
-0.3448713719844818,
0.2523286044597626,
0.11701901257038116,
0.18596959114074707,
0.21217408776283264,
-0.20139586925506592,
-0.09950407594442368,
0.03434539586305618,
0.017721736803650856,
-0.05446615442633629,
0.16901491582393646,
0.47995784878730774,
0.04840150848031044,
0.40806326270103455,
0.22577843070030212,
0.01167215220630169,
-0.1172763854265213,
0.242951437830925,
-0.15485893189907074,
-0.39441198110580444,
-0.1468823254108429,
0.05110607668757439,
-0.01675628125667572,
0.19688691198825836,
0.362874299287796,
0.04268225282430649,
0.1228850856423378,
0.012357383035123348,
0.25303104519844055,
0.01785747893154621,
-0.10541616380214691,
-0.21242591738700867,
0.25074177980422974,
0.5459202527999878,
-0.3039044439792633,
-0.11065637320280075,
0.3961588740348816,
-0.10538408160209656,
-0.07860569655895233,
0.11522448062896729,
-0.0978570431470871,
0.16368122398853302,
-0.22835694253444672,
-0.09721878916025162,
0.48803722858428955,
-0.5070933103561401,
-0.011067154817283154,
0.0804191455245018,
-0.16730011999607086,
-0.14546816051006317,
0.4160166084766388,
-0.015810394659638405,
-0.21558599174022675,
-0.13846084475517273,
-0.21775050461292267,
0.01794024370610714,
0.09550326317548752,
-0.042616453021764755,
-0.29792752861976624,
-0.08484365791082382,
0.2965356707572937,
0.21431662142276764,
0.2368062436580658,
-0.1862460821866989,
0.10660084336996078,
0.7018898725509644,
0.18042421340942383,
-0.1468917280435562,
0.1232180967926979,
0.1206345409154892,
0.20179980993270874,
-0.031494464725255966,
0.20573316514492035,
0.08167368918657303,
-0.3195114731788635,
0.17783331871032715,
-0.16116350889205933,
0.24503979086875916,
-0.039156775921583176,
0.009676586836576462,
0.12223855406045914,
-0.029621051624417305,
-0.1899358183145523,
-0.4091176688671112,
0.0764830932021141,
0.11828909814357758,
0.0033134017139673233,
0.22170715034008026,
-0.35164183378219604,
0.24913397431373596,
-0.6650170683860779,
0.02308369241654873,
-0.12288860976696014,
0.06531858444213867,
-0.22485895454883575,
-0.13932442665100098,
-0.20835423469543457,
0.2041691094636917,
0.16317036747932434,
-0.2657230794429779,
-0.05501127615571022,
-0.012419969774782658,
0.0863434299826622,
-0.10194841027259827,
-0.16889376938343048,
0.10010554641485214,
0.10838969796895981,
-0.10808216035366058,
0.35006389021873474,
0.07593709975481033,
0.21900038421154022,
0.0002390209847362712,
-0.04661640524864197,
0.19021932780742645,
0.3913537561893463,
0.40310847759246826,
0.044115737080574036,
-0.0826883539557457,
0.16713523864746094,
-0.06757505238056183,
-0.2320242077112198,
-0.21655932068824768,
0.18965846300125122,
0.3165908455848694,
0.02886309288442135,
-0.03922194615006447,
0.03787758946418762,
-0.1052471399307251,
0.5922945737838745,
0.12466932833194733,
0.2972468435764313,
-0.07103708386421204,
-0.3637949228286743,
0.17171341180801392,
0.2669871151447296,
-0.136199951171875,
0.3765208125114441,
0.11187125742435455,
-0.2514682710170746,
0.07408872991800308,
0.183226078748703,
-0.19751764833927155,
0.1446843296289444,
0.09353844076395035,
0.16172629594802856,
0.10956896096467972,
-0.1530919075012207,
-0.004960203543305397,
-0.1756981611251831,
0.011772936210036278,
-0.001415967708453536,
-0.11093347519636154,
-0.25943097472190857,
0.10291852056980133,
-0.3478597402572632,
-0.4859151840209961,
-0.2813379466533661,
0.040413565933704376,
-0.2785396873950958,
-0.07324852794408798,
-0.11603797227144241,
-0.029431946575641632,
-0.21870648860931396,
0.43045490980148315,
0.25712087750434875,
0.021932564675807953,
-0.041165515780448914,
-0.33064135909080505,
-0.10260557383298874,
-0.2048812061548233,
-0.24496006965637207,
-0.0036244639195501804,
0.3105491101741791,
0.17617887258529663,
0.25504857301712036,
-0.34881430864334106,
0.08701815456151962,
-0.10863407701253891,
-0.33605530858039856,
0.1465452015399933,
0.04183654114603996,
-0.23108410835266113,
-0.10005462914705276,
0.18324065208435059,
0.06511838734149933,
-0.02392127737402916,
0.42653200030326843,
-0.12539520859718323,
-0.14272448420524597,
-0.0013662453275173903,
-0.049899663776159286,
-0.09586958587169647,
-0.1020319014787674,
-0.4964433014392853,
-0.2645769417285919,
-0.47587141394615173,
-0.4259921610355377,
0.24124734103679657,
0.08109717071056366,
-0.12813234329223633,
0.16065269708633423,
0.29235273599624634,
-0.17032118141651154,
0.037136200815439224,
0.03112107515335083,
0.20798079669475555,
0.23173147439956665,
-0.009069946594536304,
-0.36047008633613586,
0.4372161626815796,
-0.08420399576425552,
0.038598861545324326,
0.11581781506538391,
-0.2603437304496765,
0.013745862059295177,
0.29892268776893616,
-0.03719773888587952,
-0.0009432314545847476,
0.2632434070110321,
0.7203307747840881,
-0.22509028017520905,
0.012708837166428566,
-0.014162885956466198,
-0.3290923237800598,
0.051052335649728775,
0.007377390284091234,
0.5198992490768433,
0.1697767674922943,
0.4387989640235901,
0.08485349267721176,
0.8618528842926025,
-0.0845358744263649,
-0.07008396089076996,
0.3741456866264343,
0.09399010986089706,
0.20718325674533844,
-0.316272497177124,
-0.03148540481925011,
0.21954794228076935,
0.08645545691251755,
-0.01096361968666315,
0.18712562322616577,
-0.08836055546998978,
0.17060351371765137,
-0.5178008675575256,
-0.28986209630966187,
-0.011130181141197681,
-0.17907337844371796,
0.36637911200523376,
-0.28543585538864136,
0.19870755076408386,
0.04103604331612587,
0.19379688799381256,
0.046906255185604095,
0.13927176594734192,
0.16392037272453308,
0.6295225024223328,
-0.01265677623450756,
0.01392465177923441,
-0.17792809009552002,
-0.12026361376047134,
-0.11998077481985092,
0.21956713497638702,
0.07252341508865356,
0.21894954144954681,
-0.1290302872657776,
-0.47451433539390564,
0.18569880723953247,
0.03494781255722046,
0.32135599851608276,
-0.03588563948869705,
-0.28713637590408325,
0.33163708448410034,
-0.23215089738368988,
-0.34970006346702576,
-0.3062482178211212,
-0.018968304619193077,
-0.1487320363521576,
-0.057086117565631866,
0.0013777296990156174,
-0.03171751648187637,
-0.45858681201934814,
0.37618398666381836,
0.23404210805892944,
-0.25240567326545715,
-0.22748669981956482,
-0.42876318097114563,
-0.04696827754378319,
-0.5095893740653992,
0.008490183390676975,
-0.13240084052085876,
-0.12929767370224,
0.02644173428416252,
0.17643973231315613,
-0.06907141953706741,
-0.20176999270915985,
-0.056205879896879196,
-0.06299349665641785,
0.08512532711029053,
-0.06997104734182358,
-0.26363831758499146,
-0.2326473891735077,
0.7186848521232605,
-0.15075452625751495,
-0.04024841636419296,
0.19256162643432617,
-0.0018103228649124503,
0.11990809440612793,
-0.10798361152410507,
0.21378913521766663,
0.44864988327026367,
-0.17680366337299347,
0.1594313681125641,
-0.2837940454483032,
-0.12071157246828079,
-0.10630106925964355,
-0.1808043271303177,
0.304455429315567,
-0.0509132519364357,
-0.04306063801050186,
-0.3201407492160797,
0.6241834759712219,
-0.10735581070184708,
0.004430539906024933,
0.14719001948833466,
0.13185477256774902,
-0.10441290587186813,
0.33199605345726013,
0.23365788161754608,
1.0358115434646606,
0.1642737239599228,
0.13244585692882538,
0.1799950748682022,
0.1077856570482254,
0.8329398036003113,
-0.5984464883804321,
0.2173624336719513,
-0.08510711789131165,
0.13651010394096375,
-0.10828728973865509,
-0.08187408000230789,
0.5945873260498047,
-0.006709468550980091,
0.07052968442440033,
0.3790998160839081,
0.2664601504802704,
0.6037868857383728,
0.0037626035045832396,
-0.10991477221250534,
0.03554796054959297,
-0.14972588419914246,
-0.548943817615509,
-0.01689251698553562,
-0.0744285136461258,
0.7894803285598755,
-0.20710155367851257,
-0.11288051307201385,
-0.22802576422691345,
-0.3641825020313263,
-0.09889587759971619,
0.041176412254571915,
-0.2909247875213623,
0.18580538034439087,
-0.3828183710575104,
-0.3268052637577057,
-0.04025761038064957,
0.1437874585390091,
0.3549688160419464,
-0.08684062212705612,
-0.12359403818845749,
0.04269418492913246,
0.007606943603605032,
0.000014657947758678347,
-0.20815986394882202,
0.03679298236966133,
0.3847232460975647,
-0.2481490969657898,
-0.21969330310821533,
0.16346709430217743,
-0.1109333261847496,
-0.049443915486335754,
0.016012797132134438,
0.06965631991624832,
0.7141789793968201,
0.2927412688732147,
-0.29677584767341614,
0.38709786534309387,
0.09807313978672028,
0.0052476380951702595,
0.09515830129384995,
-0.25142011046409607,
-0.15155325829982758,
-0.07230193167924881,
-0.2172107696533203,
-0.10101263970136642,
-0.2248370498418808,
0.3276059031486511,
0.19994139671325684,
-0.0972825139760971,
0.27123695611953735,
0.1732696294784546,
-0.1741064041852951,
-0.21190401911735535,
0.162361741065979,
0.036880042403936386,
-0.4369896948337555,
-0.28907063603401184,
0.3023826479911804,
-0.17091651260852814,
-0.15622325241565704,
0.17831970751285553,
0.0681605115532875,
-0.18612952530384064,
-0.08539564162492752,
-0.22218932211399078,
-0.23401081562042236,
0.20988492667675018,
-0.12330996990203857,
-0.21502111852169037,
-0.06318109482526779,
0.2806887626647949,
0.4156886339187622,
-0.15370029211044312,
-0.2261553555727005,
-0.26287344098091125,
-0.12300953269004822,
0.19280904531478882,
0.44272369146347046,
0.2965599000453949,
-0.012769587337970734,
0.18954940140247345,
0.007495239842683077,
-0.038001708686351776,
-0.21862392127513885,
-0.1312115639448166,
-0.015004741959273815,
0.17656971514225006,
0.22850054502487183,
0.19599267840385437,
0.18808768689632416,
-0.26768890023231506,
0.0865137130022049,
-0.07258766144514084,
0.09926066547632217,
0.18649734556674957,
-0.0894794836640358,
0.3508024215698242,
-0.030673976987600327,
0.3316594660282135,
-0.447711318731308,
0.23727376759052277,
-0.2499569058418274,
0.36880627274513245,
0.2676362097263336,
-0.08039746433496475,
0.40920984745025635,
0.23894770443439484,
-0.374614953994751,
-0.15237092971801758,
-0.364543616771698,
0.01047301571816206,
-0.05462781712412834,
-0.07198111712932587,
-0.10211750864982605,
-0.1859801858663559,
-0.024521177634596825,
0.16071000695228577,
-0.35451486706733704,
-0.03653041645884514,
0.23273251950740814,
0.12669694423675537,
-0.45439043641090393,
0.37314537167549133,
0.24276851117610931,
-0.21544167399406433,
-0.07727211713790894,
0.3060433864593506,
0.42317691445350647,
-0.09236613661050797,
0.3880968391895294,
0.1781987100839615,
0.08419947326183319,
-0.2030155509710312,
0.20668700337409973,
0.3618159592151642,
0.29635655879974365,
0.3598018288612366,
0.0202723890542984,
0.11203715950250626,
0.19501084089279175,
0.5736833810806274,
-0.12655147910118103,
0.5901020765304565,
0.15742336213588715,
0.34954777359962463,
-0.09694136679172516,
-0.14905878901481628,
0.312042236328125,
0.33225908875465393,
-0.014695795252919197,
-0.33035919070243835,
-0.22643470764160156,
-0.304271399974823,
0.04543394222855568,
-0.1949993371963501,
-0.262813538312912,
0.1808094084262848,
-0.1972091943025589,
0.07938940078020096,
-0.11021462827920914,
-0.12406705319881439,
-0.0704076737165451,
0.015701619908213615,
0.051933832466602325,
-0.19517908990383148,
-0.09493622183799744,
0.12150487303733826,
-0.1331935077905655,
0.0533883199095726,
0.12816844880580902,
-0.06435710191726685,
0.03080207109451294,
-0.08600564301013947,
0.0869322270154953,
0.14459270238876343,
-0.1378287523984909,
-0.06006033718585968,
0.08444487303495407,
0.2197667956352234,
0.46210628747940063,
-0.0828695297241211,
-0.025800123810768127,
0.14494015276432037,
0.0030348412692546844,
0.0541766993701458,
0.15919674932956696,
-0.061380695551633835,
0.2768368124961853,
0.2779885232448578,
0.056582819670438766,
-0.1591499149799347,
0.12183167785406113,
0.15829558670520782,
-0.08831030130386353,
-0.295894056558609,
0.2388642579317093,
-0.4307895004749298,
0.051021140068769455,
-0.5330102443695068,
0.2233334630727768,
-0.3449476957321167,
-0.07879322022199631,
0.015765897929668427,
0.10411680489778519,
-0.015145075507462025,
-0.289912611246109,
0.01782916858792305,
-0.257335364818573,
0.23794478178024292,
-0.06475263833999634,
0.03804636374115944,
-0.2512813210487366,
-0.23041917383670807,
-0.3195028305053711,
0.10346728563308716,
-0.255352646112442,
0.2922731637954712,
-0.27271708846092224,
0.12759923934936523,
0.1763637363910675,
0.2395237237215042,
-0.041303589940071106,
0.19592349231243134,
0.075729601085186,
0.04284889996051788,
-0.3069566786289215,
-0.21970249712467194,
-0.3401426374912262,
0.11602010577917099,
-0.10838289558887482,
-0.2545759379863739,
-0.04245859012007713,
-0.23322005569934845,
-0.012937474995851517,
-0.33107757568359375,
-0.2316153198480606,
0.4752679169178009,
0.08147389441728592,
0.5481073260307312,
-0.027550121769309044,
0.2614423632621765,
0.1008107140660286,
-0.0696968287229538,
-0.04002967104315758,
0.03912021219730377,
-0.2041771113872528,
0.19289426505565643,
0.04229752719402313,
0.019743597134947777,
-0.09211200475692749,
-0.10007356107234955,
-0.24495472013950348,
0.39054638147354126,
-0.015144271776080132,
-0.00771931279450655,
-0.10536909848451614,
0.09471163898706436,
-0.08854854106903076,
0.06877833604812622,
0.22806575894355774,
-0.09097298979759216,
-0.14017310738563538,
-0.19013647735118866,
-0.4491505026817322,
0.060389742255210876,
0.283047080039978,
-0.3310951590538025,
-0.141251802444458,
-0.09223251044750214,
0.36147698760032654,
-0.2765081524848938,
0.09676747024059296,
-0.32555150985717773,
0.06482787430286407,
0.20819267630577087,
0.09999754279851913,
0.04357237368822098,
0.15688711404800415,
0.007800690829753876,
-0.23779797554016113,
-0.08288364112377167,
-0.7149186134338379,
-0.10678668320178986,
-0.0013869036920368671,
-0.14343711733818054,
-0.4423046112060547
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | I don't know if this is related, but there is this issue on the wikipedia processing that you reported at #2031 (open PR is at #2037 ) .
Does the fix your proposed at #2037 helps in your case ?
And for information, the DirectRunner of Apache Beam is not optimized for memory intensive tasks, so you must be right when you say that it uses the memory for the entire file. | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 72 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
I don't know if this is related, but there is this issue on the wikipedia processing that you reported at #2031 (open PR is at #2037 ) .
Does the fix your proposed at #2037 helps in your case ?
And for information, the DirectRunner of Apache Beam is not optimized for memory intensive tasks, so you must be right when you say that it uses the memory for the entire file. | [
0.11173438280820847,
-0.006441310979425907,
0.008771125227212906,
0.3851286768913269,
0.3766988515853882,
0.09046314656734467,
0.18669424951076508,
0.4343985617160797,
0.23802949488162994,
0.12736876308918,
0.17051461338996887,
0.022492023184895515,
-0.012138871476054192,
-0.21757300198078156,
0.02937709540128708,
-0.33523786067962646,
0.27490559220314026,
-0.01937556266784668,
-0.17039306461811066,
-0.23357917368412018,
-0.3629103899002075,
0.113348588347435,
-0.4148781895637512,
-0.1094510406255722,
-0.16017387807369232,
0.19287236034870148,
-0.04803192615509033,
0.09546206891536713,
0.1394948661327362,
-0.34131988883018494,
-0.11715221405029297,
-0.10673332214355469,
-0.018048644065856934,
0.30602312088012695,
-0.00010879553155973554,
0.09125632047653198,
0.5745627284049988,
-0.1888059675693512,
-0.28465139865875244,
0.04064023494720459,
-0.037173110991716385,
-0.49544715881347656,
-0.013975010253489017,
-0.473224937915802,
-0.035113345831632614,
-0.21193504333496094,
0.15260177850723267,
-0.37778031826019287,
0.391865998506546,
0.14252734184265137,
0.2509559094905853,
0.2651474177837372,
0.06630764156579971,
-0.00784272514283657,
0.5856630206108093,
-0.09682061523199081,
-0.05107377469539642,
-0.11220327764749527,
-0.2888481616973877,
-0.049899470061063766,
-0.2235361486673355,
0.5995765924453735,
-0.2624768614768982,
0.07026997208595276,
0.35990309715270996,
-0.23007936775684357,
-0.1492043137550354,
-0.45211532711982727,
0.32671085000038147,
0.17152313888072968,
0.812254786491394,
-0.2932119369506836,
-0.17808692157268524,
-0.11612571030855179,
-0.18160520493984222,
0.05674905329942703,
0.21397104859352112,
0.3344719409942627,
-0.1897803097963333,
-0.0612507201731205,
0.4706633388996124,
-0.22750605642795563,
-0.04098258167505264,
0.06938520818948746,
0.02029382809996605,
0.3031221926212311,
0.09454870969057083,
0.19883163273334503,
0.10800767689943314,
-0.05909170210361481,
-0.08152361214160919,
-0.25356876850128174,
0.056731417775154114,
0.28741735219955444,
-0.3248104453086853,
0.11214864999055862,
0.11602683365345001,
0.06251712888479233,
0.12343639135360718,
-0.2639254033565521,
-0.2927088439464569,
0.24176034331321716,
0.2671034336090088,
0.03555251285433769,
0.22411444783210754,
0.15025851130485535,
0.028699159622192383,
0.1377190500497818,
0.5333325862884521,
-0.19619910418987274,
-0.18964245915412903,
-0.015571554191410542,
0.025725072249770164,
-0.23971427977085114,
-0.08355732262134552,
-0.07011453062295914,
0.14213529229164124,
-0.10686745494604111,
-0.0019680142868310213,
0.18007025122642517,
-0.2986363172531128,
-0.1659315973520279,
-0.22923822700977325,
0.5317001938819885,
0.05753412842750549,
0.5937871932983398,
0.20139318704605103,
0.12621890008449554,
-0.3433280885219574,
-0.29926204681396484,
-0.14300373196601868,
0.34053725004196167,
-0.3400125205516815,
0.20809020102024078,
0.059862323105335236,
0.22097507119178772,
0.267197847366333,
-0.14406533539295197,
0.0279360543936491,
-0.09875252842903137,
0.15663652122020721,
-0.17121921479701996,
-0.032268114387989044,
0.4470677077770233,
0.08759718388319016,
0.4486973285675049,
0.1538458913564682,
-0.00989289116114378,
-0.07206247746944427,
0.2632386088371277,
-0.24329806864261627,
-0.34934544563293457,
0.25513383746147156,
0.11737649142742157,
-0.2879621684551239,
0.29029104113578796,
0.002514143940061331,
-0.02848242036998272,
0.1678846776485443,
-0.007985692471265793,
0.04658393934369087,
-0.01802162453532219,
-0.22050218284130096,
-0.3830626606941223,
0.20322094857692719,
0.7963464856147766,
-0.06928955763578415,
0.04779047518968582,
0.050692178308963776,
-0.06628827750682831,
0.15844330191612244,
0.1949174702167511,
-0.07040031254291534,
0.20869563519954681,
-0.16765707731246948,
-0.03169289976358414,
0.5124145746231079,
-0.5858021378517151,
-0.1874890923500061,
0.21886979043483734,
0.022370077669620514,
0.03302113711833954,
0.26648280024528503,
0.10752339661121368,
-0.19009414315223694,
-0.12605823576450348,
-0.06537511944770813,
0.17626294493675232,
0.1519225686788559,
0.3302554488182068,
-0.5582464337348938,
0.022957511246204376,
0.08134949952363968,
0.16523760557174683,
0.3261905908584595,
-0.09236891567707062,
-0.013221777975559235,
0.5644579529762268,
0.23600570857524872,
-0.27735355496406555,
0.277558833360672,
0.44969117641448975,
-0.14570987224578857,
-0.02147248201072216,
0.33412405848503113,
-0.017070509493350983,
0.0314776711165905,
0.28328853845596313,
-0.2546026110649109,
0.23956625163555145,
0.01715259999036789,
-0.14403222501277924,
-0.09357476234436035,
-0.009036154486238956,
-0.21720419824123383,
-0.3565831482410431,
0.18773163855075836,
-0.0370381698012352,
-0.025105008855462074,
0.2928381860256195,
-0.09061133861541748,
0.3070313632488251,
-0.1983904391527176,
-0.04409823194146156,
-0.309010773897171,
0.05757417529821396,
-0.21602962911128998,
-0.009151690639555454,
0.07317256927490234,
0.09855099767446518,
0.1550629734992981,
-0.03919724375009537,
-0.1397496610879898,
0.208585724234581,
0.27230435609817505,
0.00155248015653342,
0.06436683237552643,
-0.034475889056921005,
0.15588517487049103,
-0.21280154585838318,
0.3646451234817505,
0.20923931896686554,
0.25073280930519104,
-0.13808853924274445,
-0.011131377890706062,
0.1207708790898323,
0.24122254550457,
0.3808267414569855,
0.1354597955942154,
-0.06676723062992096,
0.06428089737892151,
0.061338528990745544,
-0.08797292411327362,
-0.22833362221717834,
0.19641722738742828,
0.3356744647026062,
0.09885699301958084,
0.06246257200837135,
0.04359200969338417,
-0.24468383193016052,
0.5019389390945435,
0.09107011556625366,
0.19941289722919464,
0.03511853888630867,
-0.5036807060241699,
-0.029586397111415863,
0.12203140556812286,
-0.12322141230106354,
0.20443770289421082,
0.18944111466407776,
-0.00854695774614811,
-0.004706645384430885,
0.3041697144508362,
-0.09652542322874069,
0.2194780856370926,
0.18819940090179443,
0.37774428725242615,
0.021214885637164116,
0.00546916201710701,
-0.0665690004825592,
-0.10159837454557419,
0.059639424085617065,
-0.1179070770740509,
0.18422262370586395,
-0.19342736899852753,
-0.025949303060770035,
-0.28648069500923157,
-0.47601988911628723,
-0.1996365487575531,
0.35638874769210815,
-0.36193907260894775,
-0.29718852043151855,
-0.07338637113571167,
-0.09439856559038162,
-0.2513525187969208,
0.20481812953948975,
0.173059344291687,
-0.006965147331357002,
0.07833400368690491,
-0.29354214668273926,
-0.15004874765872955,
-0.5236817598342896,
-0.23007994890213013,
0.00038180252886377275,
0.39284655451774597,
0.05052594095468521,
0.2879630923271179,
-0.08200474828481674,
-0.08867844194173813,
-0.18842566013336182,
-0.05573338270187378,
0.09716896712779999,
0.0015283259563148022,
-0.07846134901046753,
-0.14323362708091736,
0.4003278911113739,
0.01841043494641781,
0.08454857021570206,
0.3466523587703705,
-0.11441206932067871,
-0.09975744038820267,
0.17980393767356873,
0.11478862911462784,
0.13617150485515594,
0.020129598677158356,
-0.40757113695144653,
-0.1568489670753479,
-0.5240034461021423,
-0.03644990921020508,
0.1353272795677185,
0.14698737859725952,
-0.04097588732838631,
0.1697189211845398,
0.07809539139270782,
0.14288026094436646,
0.14144563674926758,
-0.04511328414082527,
0.10105973482131958,
0.3315562307834625,
-0.1958371251821518,
-0.4916897714138031,
0.2615272104740143,
-0.11016421765089035,
0.07725780457258224,
0.20276112854480743,
-0.3696199953556061,
-0.13230465352535248,
0.04506562277674675,
-0.0470007061958313,
-0.021563760936260223,
0.36005720496177673,
0.40211617946624756,
-0.1137850433588028,
-0.09458990395069122,
-0.055474959313869476,
-0.05451030284166336,
-0.18784008920192719,
-0.31148087978363037,
0.12626878917217255,
0.176858589053154,
0.2660350501537323,
0.12446337193250656,
0.8918671607971191,
0.061335254460573196,
0.5280165076255798,
0.4090192914009094,
0.10653719305992126,
0.23704542219638824,
-0.31168219447135925,
-0.010068184696137905,
0.0871226117014885,
-0.021293168887495995,
-0.1122223511338234,
0.24116860330104828,
0.06935285776853561,
-0.2553131878376007,
-0.42764750123023987,
-0.4160270094871521,
-0.25202298164367676,
-0.30273333191871643,
0.2996937334537506,
-0.1315903216600418,
0.23879383504390717,
0.11501350998878479,
0.11274853348731995,
-0.10543005913496017,
-0.09233444929122925,
0.24371115863323212,
0.13621297478675842,
0.10168630629777908,
-0.07831507176160812,
0.10506674647331238,
-0.09679895639419556,
-0.42245200276374817,
0.308112233877182,
-0.0670120045542717,
0.06078236550092697,
0.007973016239702702,
-0.39417174458503723,
0.13605907559394836,
-0.1513962596654892,
0.5284690856933594,
-0.19710204005241394,
-0.14983755350112915,
0.21068093180656433,
-0.05456816032528877,
-0.6518242955207825,
-0.08458694070577621,
0.026725683361291885,
0.009511980228126049,
0.06694748997688293,
-0.05282555893063545,
-0.3164817988872528,
-0.1907040923833847,
0.15858806669712067,
0.4411773979663849,
-0.19340570271015167,
-0.18900257349014282,
-0.5053489208221436,
-0.020535476505756378,
-0.5622541904449463,
-0.05582861974835396,
-0.10675042867660522,
0.05581552907824516,
0.15813829004764557,
0.23653662204742432,
0.12424597144126892,
-0.04721032828092575,
-0.04125424847006798,
0.00516690406948328,
0.3255876898765564,
-0.23548847436904907,
-0.10835234075784683,
-0.0681348592042923,
0.1213604211807251,
-0.18793734908103943,
0.22944530844688416,
0.045789122581481934,
-0.18277405202388763,
-0.09380222856998444,
-0.07964101433753967,
0.027724560350179672,
0.3150017559528351,
-0.040491871535778046,
-0.040811002254486084,
-0.17079690098762512,
-0.11938510090112686,
-0.12085055559873581,
0.013112405315041542,
0.10022450983524323,
-0.13119493424892426,
-0.2984964847564697,
-0.483643501996994,
0.6179898977279663,
0.09604645520448685,
-0.09492891281843185,
0.4127901792526245,
0.09304645657539368,
-0.20576542615890503,
0.5778884887695312,
0.12689033150672913,
0.9856181144714355,
-0.0980035811662674,
0.274504691362381,
0.07980835437774658,
0.054457928985357285,
0.6281549334526062,
-0.7983611226081848,
0.24773219227790833,
-0.2950814664363861,
0.08909785747528076,
0.09155093878507614,
-0.023362791165709496,
0.24113279581069946,
-0.09344501793384552,
0.06975799798965454,
0.48061156272888184,
0.18044441938400269,
0.2832387685775757,
-0.18689309060573578,
0.2330118864774704,
-0.174258291721344,
-0.19908154010772705,
-0.28565576672554016,
0.10444959998130798,
-0.06556087732315063,
0.4440698027610779,
-0.15353475511074066,
-0.007103261537849903,
-0.1861337125301361,
-0.23928950726985931,
-0.3046661615371704,
-0.009920199401676655,
-0.14776451885700226,
0.1759127676486969,
-0.39438340067863464,
-0.39732927083969116,
-0.11621814221143723,
0.36251747608184814,
0.20089294016361237,
0.1639958620071411,
-0.2189246267080307,
0.20823614299297333,
-0.1592375785112381,
-0.030605684965848923,
-0.12270291894674301,
0.1668754518032074,
0.2763909101486206,
-0.29809847474098206,
-0.19438885152339935,
0.06290024518966675,
-0.38025709986686707,
-0.11661510914564133,
-0.13802042603492737,
0.15418876707553864,
0.4423935115337372,
0.21777887642383575,
-0.3047637641429901,
0.24238266050815582,
-0.1472385674715042,
-0.05086759105324745,
0.19763807952404022,
-0.084267757833004,
-0.14814049005508423,
0.12618733942508698,
-0.18831196427345276,
-0.13097500801086426,
-0.010977568104863167,
0.3976472020149231,
0.34331807494163513,
-0.004150750581175089,
0.42329755425453186,
0.05210433155298233,
-0.30172720551490784,
-0.21604162454605103,
0.18238893151283264,
-0.010428709909319878,
-0.1183827593922615,
0.026546642184257507,
0.12449339777231216,
-0.030153457075357437,
-0.20321618020534515,
-0.03711213916540146,
-0.0755900889635086,
-0.14074338972568512,
-0.08202344179153442,
-0.26344919204711914,
-0.20336270332336426,
0.22705082595348358,
-0.1080821305513382,
-0.10152380913496017,
-0.027417967095971107,
0.04696710407733917,
0.2720537781715393,
-0.05088815465569496,
-0.3056165874004364,
-0.17097267508506775,
-0.09498021751642227,
0.20632973313331604,
0.34151139855384827,
0.2306928187608719,
0.04893552511930466,
0.10199490189552307,
0.0767376720905304,
0.1110588014125824,
-0.20870256423950195,
-0.2281423956155777,
0.05166599527001381,
0.15997788310050964,
0.030940143391489983,
0.017784997820854187,
0.19888059794902802,
-0.39152881503105164,
0.18255335092544556,
-0.3639064133167267,
0.14214374125003815,
0.10928424447774887,
-0.27227282524108887,
0.22042332589626312,
0.13617712259292603,
0.27054306864738464,
-0.17162887752056122,
0.24884958565235138,
-0.22883421182632446,
0.3137671649456024,
0.2543605864048004,
0.037239741533994675,
0.443924218416214,
0.00920630432665348,
-0.3684694170951843,
-0.12062651664018631,
-0.2661692798137665,
-0.06667134165763855,
0.11506124585866928,
-0.1013009250164032,
-0.188253253698349,
0.07670256495475769,
0.08094526827335358,
0.2771131992340088,
-0.1883518546819687,
0.0011662482284009457,
0.21101544797420502,
0.21676427125930786,
-0.2984398305416107,
0.03784975782036781,
0.372989296913147,
-0.3067619502544403,
-0.07391230016946793,
0.1783728301525116,
0.27729532122612,
-0.11618242412805557,
0.19651636481285095,
0.20129963755607605,
0.19178307056427002,
-0.33117881417274475,
0.19139711558818817,
0.03335236757993698,
0.262500137090683,
0.009125379845499992,
-0.04254882037639618,
-0.026702770963311195,
0.2035580575466156,
0.6850831508636475,
-0.1094503328204155,
0.5020678639411926,
0.20983557403087616,
0.11651360988616943,
-0.3393756151199341,
-0.3047337830066681,
0.36270347237586975,
0.36690253019332886,
-0.022604264318943024,
0.03687969967722893,
-0.08350466191768646,
-0.07521343976259232,
0.22787000238895416,
-0.10509152710437775,
-0.18978972733020782,
0.24556833505630493,
-0.08777987957000732,
0.0067217047326266766,
0.04934456944465637,
-0.2445986568927765,
0.08703435957431793,
0.20506832003593445,
0.10637003928422928,
-0.26645854115486145,
0.1961648166179657,
0.25420138239860535,
-0.1388518363237381,
-0.0565975196659565,
0.44791534543037415,
-0.0961102843284607,
0.2970237731933594,
-0.2762940227985382,
-0.16550365090370178,
0.06546611338853836,
-0.07992757111787796,
-0.0222031157463789,
0.08610821515321732,
0.3277606964111328,
0.3482871949672699,
-0.3159306049346924,
-0.07674028724431992,
0.02972031570971012,
-0.026905082166194916,
-0.09785562753677368,
0.14721079170703888,
-0.0032561691477894783,
0.3576388955116272,
0.19618061184883118,
0.09482041001319885,
-0.22575277090072632,
-0.1506102830171585,
0.2103353589773178,
-0.10469365864992142,
-0.2842310070991516,
-0.03891746327280998,
-0.18626652657985687,
-0.2125803530216217,
-0.3217769265174866,
0.05656607821583748,
-0.4617816209793091,
0.16192905604839325,
0.08852426707744598,
0.13175654411315918,
-0.11589859426021576,
-0.28983524441719055,
0.08236446231603622,
-0.1569630354642868,
0.3282438814640045,
0.11399073898792267,
0.12215670943260193,
-0.38647934794425964,
-0.23179897665977478,
-0.5559617877006531,
0.14743605256080627,
-0.4531601369380951,
0.10837859660387039,
-0.1252705454826355,
0.2878434360027313,
0.005668418016284704,
0.1955992728471756,
-0.01774703525006771,
-0.03197946026921272,
-0.06089968979358673,
0.2072952836751938,
-0.4182610511779785,
-0.10437154024839401,
-0.22509992122650146,
-0.016175299882888794,
-0.06847631186246872,
-0.33245691657066345,
0.08186418563127518,
-0.18010739982128143,
0.08141092956066132,
-0.09092738479375839,
-0.3238876461982727,
0.487414687871933,
0.07691726833581924,
0.6690847873687744,
0.03246200457215309,
0.25324350595474243,
0.0384892113506794,
-0.15363267064094543,
-0.18569627404212952,
-0.04692144691944122,
-0.14518088102340698,
-0.07428163290023804,
0.027563173323869705,
0.25063514709472656,
-0.21156208217144012,
-0.20130255818367004,
-0.2911405861377716,
0.5944089889526367,
-0.1731044352054596,
0.22952982783317566,
0.04831589758396149,
-0.05749095603823662,
0.1654847413301468,
0.20907817780971527,
-0.10062877833843231,
0.09786577522754669,
-0.14231544733047485,
-0.14283819496631622,
-0.5927696228027344,
-0.25665417313575745,
0.3185788691043854,
-0.6523004174232483,
-0.33540210127830505,
0.02704048715531826,
0.35866278409957886,
-0.20102620124816895,
-0.02477170340716839,
-0.4774938225746155,
0.11348581314086914,
0.23761208355426788,
0.20942586660385132,
-0.13714006543159485,
-0.05000312998890877,
-0.2336891144514084,
-0.008302057161927223,
-0.0635836124420166,
-0.34901753067970276,
-0.18454952538013458,
-0.2370743751525879,
-0.05940896272659302,
-0.33103469014167786
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | the #2037 doesn't solve my problem directly, but I found the point!
https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/datasets/wikipedia/wikipedia.py#L523
this `beam.transforms.Reshuffle()` cause the memory error.
it makes sense if I consider the shuffle means. Beam's reshuffle seems need put all data in memory.
Previously I doubt that this line causes error, but at that time another bug showed in #2037 made error, so I can't found it.
Anyway, I comment out this line, and run load_dataset, then it works!
```python
wiki = datasets.load_dataset(
"./wikipedia.py",
cache_dir="./datasets",
beam_runner="DirectRunner",
language="ja",
date="20210120",
)["train"]
```

Dataset has already shuffle function. https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/arrow_dataset.py#L2069
So, though I don't know it's difference correctly, but I think Beam's reshuffle isn't be needed. How do you think? | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 111 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
the #2037 doesn't solve my problem directly, but I found the point!
https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/datasets/wikipedia/wikipedia.py#L523
this `beam.transforms.Reshuffle()` cause the memory error.
it makes sense if I consider the shuffle means. Beam's reshuffle seems need put all data in memory.
Previously I doubt that this line causes error, but at that time another bug showed in #2037 made error, so I can't found it.
Anyway, I comment out this line, and run load_dataset, then it works!
```python
wiki = datasets.load_dataset(
"./wikipedia.py",
cache_dir="./datasets",
beam_runner="DirectRunner",
language="ja",
date="20210120",
)["train"]
```

Dataset has already shuffle function. https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/arrow_dataset.py#L2069
So, though I don't know it's difference correctly, but I think Beam's reshuffle isn't be needed. How do you think? | [
0.11943493783473969,
0.1108863428235054,
0.009472830221056938,
0.429506778717041,
0.5010866522789001,
0.05407458171248436,
0.18194760382175446,
0.4008020758628845,
-0.05477729067206383,
0.316261887550354,
0.11126868426799774,
0.02708803303539753,
-0.19562506675720215,
-0.3097156882286072,
0.08737745881080627,
-0.34309685230255127,
0.26977527141571045,
-0.09609486907720566,
-0.24898721277713776,
-0.23211301863193512,
-0.3576429486274719,
0.04213922843337059,
-0.4852921664714813,
-0.1931639462709427,
-0.2590049207210541,
0.35341012477874756,
-0.19048792123794556,
0.24513037502765656,
-0.011713586747646332,
-0.17570817470550537,
-0.08209241181612015,
-0.10670405626296997,
-0.11210767924785614,
0.31313931941986084,
-0.00011333469592500478,
0.10474157333374023,
0.37581735849380493,
-0.2779260575771332,
-0.32590773701667786,
-0.19894210994243622,
-0.05530818924307823,
-0.3000110387802124,
-0.1625952124595642,
-0.39178094267845154,
-0.07171784341335297,
-0.2675779461860657,
0.11966457217931747,
-0.35489678382873535,
0.42232733964920044,
0.20121502876281738,
0.20539651811122894,
0.22588694095611572,
0.028129301965236664,
-0.01647280715405941,
0.6700220108032227,
0.08712596446275711,
-0.1116376593708992,
0.06833641976118088,
-0.14884956181049347,
0.009839313104748726,
-0.16150087118148804,
0.5495010018348694,
-0.2070959508419037,
0.07432945817708969,
0.23976640403270721,
-0.23718246817588806,
-0.23221324384212494,
-0.35413044691085815,
0.22168923914432526,
0.17822901904582977,
0.6323613524436951,
-0.34899401664733887,
-0.12434746325016022,
-0.16074879467487335,
-0.053947243839502335,
0.14438551664352417,
0.2540585994720459,
0.18642476201057434,
-0.12009196728467941,
-0.12211620807647705,
0.13192643225193024,
-0.1353093385696411,
0.012792649678885937,
0.20989158749580383,
0.23062215745449066,
0.4240313172340393,
0.027673549950122833,
0.2996918261051178,
0.1630716621875763,
-0.18362170457839966,
0.15717241168022156,
-0.24611788988113403,
0.07661981880664825,
0.35729366540908813,
-0.39374232292175293,
0.034796860069036484,
0.02813313715159893,
0.0014923566486686468,
0.10850392282009125,
-0.12328994274139404,
-0.17551463842391968,
0.17447014153003693,
0.3144141435623169,
-0.009459331631660461,
0.11996882408857346,
0.40479356050491333,
0.09894303977489471,
0.26471883058547974,
0.11857642978429794,
-0.1872929334640503,
-0.06395591795444489,
-0.043525900691747665,
-0.09049994498491287,
-0.43364953994750977,
-0.26203465461730957,
0.21317818760871887,
0.1339183747768402,
-0.030591407790780067,
-0.15401016175746918,
0.056545957922935486,
-0.4272990822792053,
-0.16209374368190765,
-0.06128634512424469,
0.48483806848526,
0.14397315680980682,
0.5003719925880432,
0.21227207779884338,
0.14866936206817627,
-0.28588956594467163,
-0.2623575031757355,
-0.25689029693603516,
0.45224398374557495,
-0.4812207818031311,
0.19766709208488464,
0.03834044188261032,
0.24817606806755066,
0.2800934612751007,
-0.17244882881641388,
0.15919651091098785,
0.033420927822589874,
0.06136446073651314,
-0.16648560762405396,
0.04875684529542923,
0.41039547324180603,
0.0119136618450284,
0.3502829372882843,
0.19280244410037994,
0.13934633135795593,
-0.09286381304264069,
0.26793691515922546,
-0.35359835624694824,
-0.36014240980148315,
0.22996613383293152,
0.07138338685035706,
-0.3113713562488556,
0.19205233454704285,
-0.12649953365325928,
-0.06472740322351456,
0.14329685270786285,
0.044643327593803406,
0.21368466317653656,
-0.02109351195394993,
-0.15411770343780518,
-0.3666600286960602,
0.18561767041683197,
0.7775563597679138,
-0.10790017992258072,
-0.08556481450796127,
0.033054228872060776,
-0.2180713564157486,
0.17708519101142883,
0.06840841472148895,
-0.07541760057210922,
0.096638984978199,
-0.27167126536369324,
0.015154198743402958,
0.569583535194397,
-0.45804181694984436,
-0.16687853634357452,
-0.02214678004384041,
-0.07899484038352966,
0.03652328997850418,
0.18951550126075745,
0.12573032081127167,
-0.2894611656665802,
-0.10471983253955841,
0.11730819940567017,
0.10430818051099777,
0.038379114121198654,
0.2566961944103241,
-0.4343808591365814,
-0.1676718294620514,
0.06160691753029823,
0.25034675002098083,
0.28284361958503723,
-0.09250199794769287,
0.03114340640604496,
0.5866729021072388,
0.18896162509918213,
-0.11026837676763535,
0.2881116271018982,
0.45247817039489746,
-0.07264714688062668,
0.07783762365579605,
0.1638423502445221,
-0.05982806533575058,
-0.2577003240585327,
0.29026132822036743,
-0.10854560881853104,
0.22229129076004028,
0.05075839161872864,
-0.013521503657102585,
-0.06831343472003937,
-0.22907422482967377,
-0.29777052998542786,
-0.28296664357185364,
0.13363371789455414,
0.028577441349625587,
0.08801818639039993,
0.15432526171207428,
-0.2626296877861023,
0.38146644830703735,
-0.3416259288787842,
0.029517758637666702,
-0.5024126768112183,
0.25086256861686707,
-0.195464089512825,
-0.1462162435054779,
0.03085852973163128,
0.08732569217681885,
0.19175097346305847,
-0.13716056942939758,
-0.13816583156585693,
0.391384094953537,
0.2522929012775421,
-0.05637391656637192,
-0.03764835745096207,
-0.08958808332681656,
0.13251131772994995,
-0.20329289138317108,
0.34077081084251404,
0.05847659334540367,
0.18202191591262817,
-0.12985889613628387,
0.18488626182079315,
0.13257399201393127,
0.06252025812864304,
0.3970301151275635,
0.11564666777849197,
-0.06933815032243729,
-0.06774822622537613,
0.1494113653898239,
-0.11360850930213928,
-0.32453906536102295,
0.3509786128997803,
0.33286577463150024,
0.15747061371803284,
0.08859319239854813,
0.03772950544953346,
-0.2971397340297699,
0.6881404519081116,
0.14267180860042572,
0.11367614567279816,
-0.0574943907558918,
-0.4095010459423065,
0.06939879059791565,
0.1513952761888504,
0.034495171159505844,
0.407918244600296,
0.1365349143743515,
-0.11493954062461853,
0.14097511768341064,
0.21537919342517853,
-0.09875685721635818,
0.1317027509212494,
0.23774129152297974,
0.4221459925174713,
0.05272652581334114,
-0.08965782821178436,
-0.011226442642509937,
-0.19303610920906067,
-0.17283135652542114,
0.0667530745267868,
0.15900515019893646,
-0.25496959686279297,
-0.12092074751853943,
-0.4197220206260681,
-0.5174446702003479,
-0.27533671259880066,
0.14927417039871216,
-0.3977883458137512,
-0.24530203640460968,
-0.10704843699932098,
-0.07267004996538162,
-0.322428822517395,
0.3194850981235504,
0.2790146470069885,
-0.04906071349978447,
0.016862858086824417,
-0.32352378964424133,
-0.17189735174179077,
-0.29004406929016113,
-0.25713247060775757,
0.021614015102386475,
0.36724233627319336,
0.0608445443212986,
0.23790736496448517,
-0.26658329367637634,
-0.16853050887584686,
-0.10879604518413544,
-0.15080590546131134,
0.15115363895893097,
0.026300933212041855,
-0.1442515105009079,
-0.11143680661916733,
0.3510282635688782,
-0.1820259839296341,
-0.10188563913106918,
0.4775201380252838,
-0.057126179337501526,
-0.21669341623783112,
0.24884939193725586,
0.18314698338508606,
0.07905016839504242,
-0.10020039230585098,
-0.4466012716293335,
-0.12967078387737274,
-0.5109670162200928,
-0.07408451288938522,
0.08986348658800125,
0.09745065867900848,
0.15836650133132935,
0.26316848397254944,
0.18196123838424683,
-0.12761835753917694,
-0.030172958970069885,
-0.11609648168087006,
-0.05214150622487068,
0.2722155451774597,
-0.14650556445121765,
-0.3368283212184906,
0.20148086547851562,
-0.10447904467582703,
-0.0021727432031184435,
0.36334165930747986,
-0.1813991665840149,
-0.09729703515768051,
0.000799199566245079,
-0.2872737944126129,
-0.05325142666697502,
0.3520981967449188,
0.5604914426803589,
-0.15332454442977905,
-0.03163342550396919,
-0.03311213478446007,
-0.08586161583662033,
-0.12025407701730728,
0.0027141727041453123,
0.35347291827201843,
0.05900626629590988,
0.27311840653419495,
0.17359130084514618,
0.9325160384178162,
-0.026898687705397606,
0.46212145686149597,
0.40562427043914795,
0.049927592277526855,
0.3116859793663025,
-0.3958240747451782,
-0.04055040329694748,
0.24758341908454895,
0.14203840494155884,
-0.07826070487499237,
0.19396363198757172,
-0.011283524334430695,
-0.03589814528822899,
-0.5152165293693542,
-0.3167853057384491,
-0.2198878526687622,
-0.31446316838264465,
0.35423535108566284,
-0.1514081507921219,
0.009882999584078789,
-0.0006798938266001642,
0.047347381711006165,
0.027867384254932404,
-0.06337577849626541,
0.03904244303703308,
0.2465270608663559,
-0.03471308574080467,
0.04174862056970596,
-0.22931912541389465,
-0.18948011100292206,
-0.34164920449256897,
0.29458877444267273,
0.02481907047331333,
0.1704506129026413,
-0.05901768058538437,
-0.34009823203086853,
0.10110688209533691,
0.07092446088790894,
0.6148952841758728,
-0.22570566833019257,
-0.2467266470193863,
0.28605538606643677,
0.027074160054326057,
-0.6423117518424988,
-0.1949949860572815,
-0.024250900372862816,
-0.1003391444683075,
-0.18188472092151642,
0.08190231025218964,
-0.23440727591514587,
-0.1979135423898697,
0.1702035516500473,
0.3472844064235687,
-0.04628266394138336,
-0.1886785626411438,
-0.45854246616363525,
-0.035980090498924255,
-0.5773239731788635,
-0.13744989037513733,
-0.03054751269519329,
0.03028763271868229,
0.08994820713996887,
0.3163575530052185,
0.18987461924552917,
-0.19172771275043488,
-0.021515481173992157,
-0.1119425892829895,
0.3413630425930023,
-0.10463720560073853,
-0.17106014490127563,
0.10902883857488632,
0.04247020557522774,
0.0303459782153368,
0.29007336497306824,
0.12597568333148956,
-0.17078730463981628,
0.04341434687376022,
0.029468359425663948,
0.05087828263640404,
0.4066847860813141,
-0.07217385619878769,
-0.04115532711148262,
-0.04372628405690193,
-0.0693146139383316,
-0.02082052081823349,
0.029880858957767487,
0.10852570831775665,
-0.27629634737968445,
-0.20657916367053986,
-0.6122493743896484,
0.6164755821228027,
0.07793935388326645,
-0.007047535385936499,
0.4423118829727173,
0.19353024661540985,
-0.2312549203634262,
0.5099320411682129,
0.1472664773464203,
1.11771559715271,
-0.15038037300109863,
0.28150200843811035,
0.1789482682943344,
0.13420270383358002,
0.6970808506011963,
-0.610193133354187,
0.33815592527389526,
-0.1902340203523636,
0.05938447266817093,
0.049827758222818375,
-0.1147463470697403,
0.34214717149734497,
0.07422671467065811,
0.05207313597202301,
0.5547212958335876,
0.09440911561250687,
0.38724595308303833,
-0.33013853430747986,
-0.03823183476924896,
-0.40874356031417847,
-0.09955606609582901,
-0.28628554940223694,
0.07730194181203842,
-0.1073560044169426,
0.5356618165969849,
-0.11050229519605637,
0.049225933849811554,
-0.3678706884384155,
-0.26974180340766907,
-0.27129241824150085,
0.06763586401939392,
-0.2752241790294647,
0.22534701228141785,
-0.4388575851917267,
-0.14120011031627655,
-0.183528870344162,
0.2323129028081894,
0.2649606764316559,
-0.014641675166785717,
-0.07793544232845306,
0.2345307320356369,
0.054526105523109436,
0.014443019405007362,
-0.1612461656332016,
0.07046392560005188,
0.3199259340763092,
-0.1493271142244339,
-0.20230934023857117,
-0.007219891529530287,
-0.25280141830444336,
-0.1998404562473297,
-0.27086374163627625,
0.12441845238208771,
0.5775038003921509,
0.2529713809490204,
-0.32013723254203796,
0.33925411105155945,
-0.043723639100790024,
0.08532014489173889,
0.14428162574768066,
-0.16201098263263702,
-0.06899794936180115,
0.09584442526102066,
-0.31660860776901245,
-0.031889189034700394,
-0.04099999740719795,
0.4114469587802887,
0.3425064980983734,
-0.0451265312731266,
0.3743169605731964,
0.026804244145751,
-0.16993305087089539,
-0.1892460137605667,
0.18157072365283966,
0.24531255662441254,
-0.20644256472587585,
0.040597621351480484,
0.05300392210483551,
-0.06568685919046402,
-0.11353226751089096,
-0.00822086725383997,
-0.03169090673327446,
0.025729110464453697,
0.08614747226238251,
-0.2623575031757355,
-0.2688729465007782,
0.40096986293792725,
0.028568416833877563,
0.09624406695365906,
-0.18380321562290192,
0.16825149953365326,
0.258139967918396,
-0.28045380115509033,
-0.26366156339645386,
-0.1664467602968216,
-0.137923002243042,
0.21317492425441742,
0.16112415492534637,
0.29406315088272095,
0.0711480975151062,
0.02606566809117794,
0.03088413178920746,
0.17001430690288544,
-0.3657000660896301,
-0.15068943798542023,
0.02699512429535389,
0.16482579708099365,
0.18374107778072357,
0.014963962137699127,
0.16293172538280487,
-0.4742913246154785,
0.1331103891134262,
-0.3103110194206238,
0.14515143632888794,
0.3282082676887512,
-0.17410936951637268,
0.33300989866256714,
0.31198033690452576,
0.1528913676738739,
-0.1263667345046997,
0.28100109100341797,
-0.2080894261598587,
0.1811097413301468,
0.20600350201129913,
-0.020251553505659103,
0.3747197687625885,
0.12968936562538147,
-0.4093848168849945,
-0.18147911131381989,
-0.32652905583381653,
-0.026722198352217674,
-0.05405176430940628,
-0.06796273589134216,
-0.09414570778608322,
-0.07206553220748901,
0.13910727202892303,
0.3085329532623291,
-0.27204179763793945,
-0.14310869574546814,
0.2774803638458252,
0.16242243349552155,
-0.21921713650226593,
0.07506091892719269,
0.36965852975845337,
-0.07326856255531311,
-0.03153057023882866,
0.16244980692863464,
0.0274785365909338,
-0.045558225363492966,
0.180349662899971,
0.19162078201770782,
0.20425140857696533,
-0.27431681752204895,
0.32638153433799744,
0.12305637449026108,
0.24870401620864868,
-0.036845944821834564,
0.014305179938673973,
-0.04071291536092758,
0.2321396768093109,
0.6695382595062256,
-0.17908619344234467,
0.5875692367553711,
0.062142856419086456,
0.16204777359962463,
-0.2189345806837082,
-0.39870211482048035,
0.29982221126556396,
0.681242823600769,
-0.098509781062603,
0.10046228021383286,
-0.1580049842596054,
-0.05400745943188667,
0.17638878524303436,
-0.020427897572517395,
-0.09605008363723755,
0.11243894696235657,
-0.060752708464860916,
0.1433696746826172,
0.021404379978775978,
-0.269052654504776,
-0.1828233301639557,
0.10306137055158615,
0.08821975439786911,
-0.38282519578933716,
0.37148043513298035,
0.19740137457847595,
-0.18557770550251007,
-0.08040963858366013,
0.3417040705680847,
0.15610982477664948,
0.07187120616436005,
-0.24123339354991913,
-0.10077527910470963,
0.1273663491010666,
-0.1581711620092392,
0.1788201779127121,
0.11640571057796478,
0.26576828956604004,
0.4134484827518463,
-0.06761709600687027,
-0.08478229492902756,
0.15435458719730377,
-0.01820066012442112,
-0.018674412742257118,
0.17842663824558258,
0.05452930927276611,
0.1362745314836502,
0.1742999404668808,
0.08705059438943863,
-0.21070612967014313,
-0.1594395935535431,
0.2782297432422638,
0.08922882378101349,
-0.2767750918865204,
-0.033355485647916794,
-0.3387446999549866,
0.023156797513365746,
-0.272921621799469,
0.09585627913475037,
-0.6517592668533325,
0.004634085576981306,
-0.09739027917385101,
0.1509314924478531,
0.023120976984500885,
-0.16432957351207733,
0.04316547140479088,
-0.17165976762771606,
0.25879764556884766,
0.14339463412761688,
-0.13674548268318176,
-0.31922221183776855,
-0.39525946974754333,
-0.5910949110984802,
0.011754725128412247,
-0.3184989392757416,
0.3399730324745178,
-0.144881010055542,
0.29000115394592285,
0.02706579864025116,
0.1840905100107193,
-0.09463396668434143,
0.06592489033937454,
-0.07287292927503586,
0.1686777025461197,
-0.4083980321884155,
-0.1803998202085495,
-0.18476197123527527,
0.08446231484413147,
0.08280090987682343,
-0.3851664364337921,
-0.030134646221995354,
-0.09416811168193817,
-0.03281787037849426,
-0.09809959679841995,
-0.263451486825943,
0.42844608426094055,
-0.11247871071100235,
0.5186240673065186,
-0.10620740801095963,
0.23814798891544342,
0.08324607461690903,
-0.1408236026763916,
-0.2633819878101349,
-0.15760095417499542,
-0.07886189967393875,
-0.09406502544879913,
0.031377144157886505,
0.4429897665977478,
-0.29516705870628357,
-0.06228984147310257,
-0.3243885338306427,
0.46987035870552063,
-0.213288813829422,
0.23909825086593628,
-0.17126700282096863,
0.15147244930267334,
0.14712773263454437,
0.35933366417884827,
-0.16641151905059814,
0.006445847451686859,
-0.07722201198339462,
-0.06319209933280945,
-0.5480509996414185,
-0.21936562657356262,
0.5287929177284241,
-0.4788554608821869,
-0.28193336725234985,
-0.060685981065034866,
0.25281739234924316,
-0.17673338949680328,
-0.06537555903196335,
-0.5018327832221985,
0.1924414038658142,
0.2456647902727127,
0.1923525184392929,
-0.0027938534040004015,
0.054875753819942474,
-0.2297172248363495,
-0.03282234072685242,
-0.04101851209998131,
-0.3641451895236969,
-0.20552019774913788,
-0.15347641706466675,
0.17434902489185333,
-0.299189954996109
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | The reshuffle is needed when you use parallelism.
The objective is to redistribute the articles evenly on the workers, since the `_extract_content` step generated many articles per file. By using reshuffle, we can split the processing of the articles of one file into several workers. Without reshuffle, all the articles of one file would be processed on the same worker that read the file, making the whole process take a very long time. | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 73 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
The reshuffle is needed when you use parallelism.
The objective is to redistribute the articles evenly on the workers, since the `_extract_content` step generated many articles per file. By using reshuffle, we can split the processing of the articles of one file into several workers. Without reshuffle, all the articles of one file would be processed on the same worker that read the file, making the whole process take a very long time. | [
0.040164764970541,
0.010120834223926067,
-0.005872792098671198,
0.1293458193540573,
-0.011950431391596794,
0.05967085435986519,
0.3661443293094635,
0.34801042079925537,
0.022974494844675064,
0.27976179122924805,
0.1604570597410202,
0.07360950857400894,
0.19807502627372742,
-0.19536609947681427,
-0.08456377685070038,
-0.2648458778858185,
0.34238919615745544,
-0.013062763959169388,
-0.05664253607392311,
-0.35581883788108826,
-0.447902649641037,
0.20008325576782227,
-0.5033822059631348,
-0.17801432311534882,
-0.1696120649576187,
0.2718339264392853,
-0.14334671199321747,
0.3892427384853363,
0.18607954680919647,
-0.04914764314889908,
-0.0400720052421093,
-0.08704913407564163,
-0.0869860053062439,
0.25626933574676514,
-0.00011818209895864129,
0.09909720718860626,
0.2742285132408142,
-0.22646088898181915,
-0.23540478944778442,
-0.13553784787654877,
-0.0001667702745180577,
-0.5018972158432007,
-0.09320239722728729,
-0.4231704771518707,
0.023297514766454697,
-0.040047090500593185,
0.039136502891778946,
-0.208349347114563,
0.5846295952796936,
0.10018124431371689,
0.10304617881774902,
0.26666054129600525,
0.04769514501094818,
-0.02511393465101719,
0.32002025842666626,
-0.04748950153589249,
-0.0405142605304718,
0.1522979587316513,
-0.0020844212267547846,
0.21328523755073547,
-0.10750100761651993,
0.46072521805763245,
-0.25584283471107483,
0.13573196530342102,
-0.0586368553340435,
-0.19716055691242218,
-0.11754481494426727,
-0.48671993613243103,
0.3078398108482361,
0.26100048422813416,
0.44056177139282227,
0.01647128537297249,
-0.1753837913274765,
-0.25193190574645996,
-0.13309234380722046,
0.11449066549539566,
0.12259645760059357,
0.19379113614559174,
0.1123034879565239,
0.09987131506204605,
0.5713419318199158,
-0.3144804537296295,
0.05632610246539116,
0.0551687516272068,
0.2326825112104416,
0.587222158908844,
0.11059856414794922,
0.43626269698143005,
0.0444844514131546,
0.15456047654151917,
0.20640061795711517,
-0.28615644574165344,
0.20104776322841644,
0.2365494966506958,
-0.24309730529785156,
-0.005230813752859831,
-0.03738231584429741,
-0.22371777892112732,
-0.07317293435335159,
-0.1004004180431366,
-0.5007817149162292,
0.2464473843574524,
0.47614771127700806,
0.1704074889421463,
0.1579049825668335,
0.18186604976654053,
0.17939333617687225,
0.21940523386001587,
0.2643754780292511,
-0.26843780279159546,
-0.05380634590983391,
-0.021268242970108986,
0.13327355682849884,
-0.37632277607917786,
-0.473195344209671,
0.289676696062088,
0.033105723559856415,
-0.1172800064086914,
-0.11248341202735901,
-0.23946090042591095,
-0.2518797218799591,
-0.3447418212890625,
-0.28709185123443604,
0.2796638607978821,
0.30405178666114807,
0.5849856734275818,
0.030953919515013695,
0.28813478350639343,
-0.5063955783843994,
-0.1919751614332199,
-0.14293082058429718,
0.1993655562400818,
-0.26771849393844604,
0.1640225499868393,
-0.07521200180053711,
0.145844504237175,
0.15519274771213531,
-0.15864506363868713,
0.22103647887706757,
0.032992880791425705,
0.09269223362207413,
-0.022986838594079018,
0.029405755922198296,
0.49561113119125366,
0.12968160212039948,
0.33436864614486694,
0.381850004196167,
0.04412151128053665,
-0.3361368775367737,
0.2725723385810852,
-0.5118631720542908,
-0.49851194024086,
0.1436735987663269,
0.03109758347272873,
-0.18916845321655273,
0.1958589404821396,
-0.018779207020998,
-0.028651947155594826,
0.28618723154067993,
-0.14592863619327545,
0.2613283693790436,
-0.003873297246173024,
-0.0005569913191720843,
-0.3166024386882782,
-0.042889274656772614,
0.6379069089889526,
-0.11724452674388885,
0.008237404748797417,
-0.010736563242971897,
-0.10415426641702652,
0.21277876198291779,
0.19397006928920746,
-0.1101897731423378,
0.07632564753293991,
-0.20478525757789612,
0.021015524864196777,
0.5991590023040771,
-0.5733519792556763,
-0.12032772600650787,
0.08847858011722565,
-0.24607162177562714,
0.10729895532131195,
0.4706140160560608,
-0.009704181924462318,
-0.07953610271215439,
-0.22630728781223297,
0.029220376163721085,
0.16475971043109894,
0.09461145102977753,
0.10126842558383942,
-0.42084217071533203,
0.02825964242219925,
0.15017080307006836,
0.16668865084648132,
0.19319920241832733,
0.17976261675357819,
0.06124085187911987,
0.11919385939836502,
0.21796417236328125,
-0.030802743509411812,
0.2628242075443268,
0.25639310479164124,
-0.19555987417697906,
0.24265095591545105,
0.3924926221370697,
0.23150652647018433,
-0.07328259199857712,
0.28116315603256226,
-0.1374690979719162,
0.3438965976238251,
0.0679793581366539,
-0.14755268394947052,
-0.021342741325497627,
-0.4191906452178955,
-0.3652011454105377,
-0.5023624897003174,
-0.03909624367952347,
-0.0010687668109312654,
0.23209448158740997,
0.28063732385635376,
-0.4111865162849426,
0.36060136556625366,
-0.37012237310409546,
0.05765962973237038,
-0.5175858736038208,
0.24843567609786987,
-0.19542834162712097,
-0.01507617998868227,
-0.09020955115556717,
0.11603730916976929,
-0.006201681215316057,
-0.24106216430664062,
-0.027879569679498672,
0.3686268627643585,
0.289894163608551,
0.14848513901233673,
0.1862209439277649,
-0.22788196802139282,
0.10582991689443588,
-0.29356566071510315,
0.3605097532272339,
0.21678608655929565,
0.1143658459186554,
-0.18367885053157806,
0.26246190071105957,
0.33345267176628113,
0.03312324732542038,
0.4286053776741028,
0.09297392517328262,
-0.050137221813201904,
0.15839752554893494,
-0.0014183983439579606,
-0.17415983974933624,
-0.19647710025310516,
0.2689026892185211,
0.21680186688899994,
0.04007299244403839,
-0.08406461775302887,
0.01631711609661579,
-0.12168075889348984,
0.6155574917793274,
0.04002651944756508,
0.12034176290035248,
-0.0023305511567741632,
-0.20982778072357178,
-0.007105999626219273,
0.03580424189567566,
0.047750961035490036,
0.4985298812389374,
0.16648657619953156,
0.02845107764005661,
0.09103212505578995,
0.3129202723503113,
-0.22144250571727753,
-0.021174607798457146,
0.140350341796875,
0.3321326971054077,
0.22385413944721222,
-0.2455613762140274,
0.030316827818751335,
-0.30168208479881287,
-0.10415630042552948,
-0.198762446641922,
0.06371831893920898,
-0.047432541847229004,
-0.021309737116098404,
-0.022948982194066048,
-0.3624952435493469,
-0.4416370093822479,
0.05586327612400055,
-0.3911740779876709,
-0.33720147609710693,
0.07886916399002075,
-0.03772929683327675,
-0.26128217577934265,
0.3961452543735504,
0.3479464054107666,
-0.06494349241256714,
-0.043428685516119,
-0.12671521306037903,
-0.22744311392307281,
-0.3022426664829254,
-0.28699007630348206,
-0.041445374488830566,
0.16138245165348053,
0.24411189556121826,
0.05008503049612045,
-0.3857807219028473,
-0.16244624555110931,
-0.1729755401611328,
-0.13533462584018707,
0.086520254611969,
-0.058274950832128525,
-0.10216736793518066,
-0.1136888712644577,
0.33741122484207153,
-0.04351496323943138,
-0.1603802740573883,
0.36283114552497864,
-0.04973313957452774,
-0.19898667931556702,
0.27591127157211304,
0.10074073076248169,
0.09265552461147308,
0.061215028166770935,
-0.6890727281570435,
-0.39149004220962524,
-0.45268166065216064,
0.028304830193519592,
0.1488547921180725,
-0.002344879088923335,
-0.11210142076015472,
0.14570413529872894,
-0.18621130287647247,
0.04373122379183769,
-0.18426892161369324,
-0.14128868281841278,
-0.14822453260421753,
0.18394805490970612,
-0.15875057876110077,
-0.3171839714050293,
0.11668213456869125,
-0.1749304234981537,
-0.19349966943264008,
0.1352560669183731,
-0.09558438509702682,
-0.005591174121946096,
0.1183067262172699,
-0.2816363275051117,
-0.14812177419662476,
0.6191088557243347,
0.6890799403190613,
-0.1661871373653412,
0.06010652706027031,
-0.0240420401096344,
0.12239044159650803,
-0.07017874717712402,
0.09908048063516617,
0.35275232791900635,
-0.08788253366947174,
0.05694424733519554,
0.07998266816139221,
0.8017921447753906,
0.1350185126066208,
0.6213974356651306,
0.2583407461643219,
0.1399969905614853,
0.23209518194198608,
-0.4885396659374237,
-0.043336171656847,
0.16620494425296783,
0.01754264533519745,
-0.16707779467105865,
0.24522338807582855,
0.04935227707028389,
0.011237658560276031,
-0.4611928462982178,
-0.4745747148990631,
-0.3980812430381775,
-0.28009939193725586,
0.27161267399787903,
-0.05905429646372795,
0.1806710660457611,
0.009842856787145138,
-0.143556609749794,
0.13084396719932556,
0.10814071446657181,
0.018361562862992287,
0.5039036870002747,
0.08182486891746521,
0.049827128648757935,
-0.390668660402298,
-0.22060497105121613,
-0.25474879145622253,
0.3904040455818176,
0.10388398170471191,
0.007167429197579622,
0.2192423939704895,
-0.4376812279224396,
0.17560026049613953,
0.036698341369628906,
0.7510886192321777,
-0.2891373038291931,
-0.2462836056947708,
0.1214047372341156,
0.07342540472745895,
-0.41480472683906555,
-0.24086295068264008,
-0.013212604448199272,
0.0017452234169468284,
-0.07532050460577011,
0.12313196808099747,
-0.3026680648326874,
-0.08315646648406982,
0.11617832630872726,
0.2808745801448822,
-0.20459696650505066,
-0.2897413671016693,
-0.6348304152488708,
-0.19603917002677917,
-0.7667273879051208,
-0.10091744363307953,
-0.22457407414913177,
-0.026901746168732643,
-0.04574213922023773,
0.240298792719841,
0.26644691824913025,
-0.16871650516986847,
-0.13063772022724152,
0.04956774041056633,
0.042068928480148315,
-0.2761184573173523,
-0.36366233229637146,
0.10345210134983063,
-0.1921047866344452,
0.23614127933979034,
0.20599162578582764,
-0.025183584541082382,
-0.18174518644809723,
-0.06619897484779358,
-0.15388362109661102,
0.2551398277282715,
0.36043745279312134,
-0.0031676781363785267,
0.06693818420171738,
-0.021136529743671417,
-0.007020053919404745,
-0.043165773153305054,
-0.41923272609710693,
-0.0045986054465174675,
-0.07958299666643143,
-0.270192414522171,
-0.5315514802932739,
0.4778112471103668,
-0.10894297808408737,
-0.009723351337015629,
0.2204693853855133,
0.1652800291776657,
-0.07409835606813431,
0.545520007610321,
-0.03704062104225159,
1.1979777812957764,
0.06972889602184296,
0.2619321942329407,
0.020001303404569626,
0.06736718118190765,
0.8408923745155334,
-0.7155606746673584,
0.38525766134262085,
-0.17880864441394806,
0.0753539428114891,
-0.10271608829498291,
-0.09643688052892685,
0.5330150723457336,
0.15236826241016388,
-0.11154954880475998,
0.6340993046760559,
0.08979807794094086,
0.11076551675796509,
-0.3829467296600342,
0.04914950579404831,
-0.5872069001197815,
-0.0020175338722765446,
-0.0955372229218483,
-0.10176320374011993,
0.10789244621992111,
0.578339159488678,
-0.15416881442070007,
0.14053553342819214,
-0.41264963150024414,
-0.41746291518211365,
-0.04357123374938965,
-0.04020437225699425,
0.15634684264659882,
0.38219231367111206,
-0.2015431523323059,
-0.27723613381385803,
-0.22755371034145355,
0.03411851078271866,
0.30324336886405945,
-0.24503841996192932,
0.11956252157688141,
0.07197669893503189,
0.1027844250202179,
-0.13349315524101257,
-0.08511856198310852,
0.026655545458197594,
0.33815839886665344,
-0.1617872416973114,
-0.26839151978492737,
-0.14185267686843872,
-0.25890204310417175,
-0.29961028695106506,
-0.1787232905626297,
0.21159204840660095,
0.3893188536167145,
0.15883910655975342,
-0.34687748551368713,
0.6813214421272278,
-0.15382200479507446,
-0.07830358296632767,
0.05175017938017845,
-0.07184018939733505,
-0.3309110403060913,
0.21463365852832794,
-0.4696040451526642,
-0.05162600427865982,
-0.1445712000131607,
0.28452226519584656,
0.5598360300064087,
-0.08527728915214539,
0.20965810120105743,
0.048122357577085495,
-0.15594755113124847,
-0.14064569771289825,
0.2061292827129364,
0.0663561001420021,
-0.1167549341917038,
-0.008843748830258846,
-0.0003369518381077796,
-0.060278937220573425,
-0.11833558231592178,
0.12238042801618576,
0.09609799832105637,
0.17564508318901062,
-0.1687561571598053,
-0.50802081823349,
0.03600316494703293,
0.3683110475540161,
0.08854911476373672,
-0.12693507969379425,
-0.02670454792678356,
0.23836855590343475,
0.3466286361217499,
-0.044796012341976166,
-0.19756950438022614,
-0.0443146675825119,
-0.0991520881652832,
0.3087216317653656,
0.19738449156284332,
0.16574327647686005,
0.020200826227664948,
0.09836709499359131,
-0.050610944628715515,
0.08206154406070709,
-0.27949362993240356,
-0.08967062830924988,
0.1034567803144455,
0.21294943988323212,
0.1301286220550537,
0.08393936604261398,
0.10401660203933716,
-0.28927791118621826,
0.13517387211322784,
-0.10968812555074692,
0.03430081158876419,
0.15330632030963898,
-0.28241539001464844,
0.4188389182090759,
0.32412269711494446,
0.22746215760707855,
-0.4157665967941284,
0.30268266797065735,
-0.33775070309638977,
0.037384454160928726,
0.09537118673324585,
0.12261050939559937,
0.30362939834594727,
0.15799735486507416,
-0.22146962583065033,
-0.11254850775003433,
-0.10136145353317261,
0.0859854593873024,
0.101983442902565,
-0.005394150037318468,
0.05094330385327339,
-0.34378641843795776,
0.29986467957496643,
0.528513491153717,
-0.0004934516036882997,
-0.19016727805137634,
0.16034382581710815,
0.0536319874227047,
-0.3772275447845459,
-0.0003576510935090482,
0.6144307851791382,
-0.11603962630033493,
-0.026205694302916527,
0.2547374665737152,
0.29713815450668335,
-0.16336019337177277,
0.12144133448600769,
0.17179645597934723,
0.30755355954170227,
-0.30222365260124207,
0.31141337752342224,
0.21981684863567352,
0.20224808156490326,
0.10237680375576019,
0.043800704181194305,
-0.05937178432941437,
0.23157332837581635,
0.46319010853767395,
0.05250613018870354,
0.7212813496589661,
0.2852928340435028,
0.17261171340942383,
-0.2643490731716156,
-0.3424147963523865,
0.39937829971313477,
0.4465336799621582,
0.044677216559648514,
-0.07830483466386795,
0.010071582160890102,
-0.1394178420305252,
0.005877844523638487,
0.15160216391086578,
0.03434111922979355,
0.28246280550956726,
-0.032125480473041534,
0.1338592767715454,
0.14111125469207764,
-0.2624066174030304,
0.018719766288995743,
-0.07413587719202042,
0.10884483903646469,
-0.07341639697551727,
0.43312567472457886,
0.12274091690778732,
-0.026700744405388832,
0.12844106554985046,
0.24472807347774506,
-0.2824222445487976,
0.1447906196117401,
-0.07601885497570038,
-0.2901902496814728,
0.2440316528081894,
0.0011969567276537418,
0.16479799151420593,
0.2264440953731537,
0.2207717001438141,
0.1477452963590622,
-0.18695826828479767,
-0.01106638927012682,
0.11913564056158066,
-0.07422322779893875,
-0.04003045707941055,
0.21722447872161865,
-0.08674658089876175,
0.18636448681354523,
0.04430294409394264,
0.06155151128768921,
-0.13331159949302673,
-0.04441094771027565,
0.1823522448539734,
-0.15425851941108704,
-0.18117988109588623,
0.011792453937232494,
-0.14302213490009308,
-0.15559446811676025,
-0.19527706503868103,
0.22171804308891296,
-0.48020339012145996,
-0.03146936371922493,
-0.03264949470758438,
-0.11435951292514801,
-0.17120227217674255,
-0.137338325381279,
0.002443465171381831,
-0.11962591856718063,
0.22707703709602356,
0.4151252806186676,
0.01429771538823843,
-0.13618780672550201,
-0.35540226101875305,
-0.3997882902622223,
0.18106703460216522,
-0.4627876877784729,
0.16592814028263092,
-0.19516722857952118,
0.33867114782333374,
0.14673471450805664,
0.35044291615486145,
-0.051254115998744965,
0.14343135058879852,
-0.25810325145721436,
0.24023133516311646,
-0.15194159746170044,
-0.16506874561309814,
-0.19288767874240875,
-0.08249068260192871,
-0.10497884452342987,
-0.349297434091568,
-0.007159831468015909,
0.21735002100467682,
-0.036805350333452225,
0.07352148741483688,
-0.27563533186912537,
0.5410721302032471,
-0.16765916347503662,
0.3580457270145416,
0.13309144973754883,
0.25966814160346985,
0.04704877361655235,
-0.08775104582309723,
0.24617472290992737,
-0.05568739026784897,
-0.25595393776893616,
0.1827913522720337,
-0.012111391872167587,
0.21329763531684875,
-0.4219233989715576,
-0.08119376003742218,
-0.21494053304195404,
0.4899176359176636,
-0.024940991774201393,
0.13348600268363953,
-0.3324628174304962,
0.1876622438430786,
0.14719273149967194,
0.13258321583271027,
-0.052852168679237366,
0.32692524790763855,
0.041528403759002686,
-0.10884280502796173,
-0.4738568067550659,
-0.003528889734297991,
0.211125448346138,
-0.4024796187877655,
-0.44674035906791687,
-0.08654724061489105,
0.2853618860244751,
-0.14696821570396423,
0.02716236189007759,
-0.4059705436229706,
0.008740722201764584,
0.26357942819595337,
0.18906959891319275,
0.05479724332690239,
0.004381455015391111,
-0.16458934545516968,
-0.3674697279930115,
0.032762546092271805,
-0.46557918190956116,
-0.13913331925868988,
-0.15702243149280548,
0.0946325808763504,
-0.414833128452301
] |
https://github.com/huggingface/datasets/issues/1790 | ModuleNotFoundError: No module named 'apache_beam', when specific languages. | Maybe the reshuffle step can be added only if the runner is not a DirectRunner ? | ```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? | 16 | ModuleNotFoundError: No module named 'apache_beam', when specific languages.
```py
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets')
```
then `ModuleNotFoundError: No module named 'apache_beam'` happend.
The error doesn't appear when it's '20200501.en'.
I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
Maybe the reshuffle step can be added only if the runner is not a DirectRunner ? | [
-0.037829507142305374,
0.051789291203022,
0.04592253267765045,
0.161894753575325,
0.2217683643102646,
0.049549609422683716,
0.28777045011520386,
0.303241103887558,
0.025933723896741867,
0.1799335777759552,
0.2910350263118744,
-0.019249025732278824,
0.1045149564743042,
-0.023227764293551445,
0.11003199219703674,
-0.37407514452934265,
0.307102769613266,
-0.037049803882837296,
-0.09599151462316513,
-0.281830370426178,
-0.44263553619384766,
0.10544009506702423,
-0.3799927830696106,
-0.1579355001449585,
-0.003188772825524211,
0.2331448495388031,
-0.05683598294854164,
0.2654174864292145,
0.2003733515739441,
-0.1437360644340515,
-0.03454003110527992,
-0.20572252571582794,
-0.09999710321426392,
0.3504471778869629,
-0.00012388898176141083,
0.22050359845161438,
0.31992337107658386,
-0.29376500844955444,
-0.24197690188884735,
-0.1562594324350357,
0.023121463134884834,
-0.3215470612049103,
-0.13884668052196503,
-0.3631032705307007,
-0.10166627913713455,
-0.025345351547002792,
0.06650399416685104,
-0.3819904625415802,
0.6048760414123535,
0.19281508028507233,
0.10985943675041199,
0.421002596616745,
-0.020772475749254227,
-0.014778049662709236,
0.37875744700431824,
-0.08651868999004364,
-0.10000821202993393,
-0.07794583588838577,
-0.20107457041740417,
0.22937241196632385,
-0.17143067717552185,
0.37133604288101196,
-0.23882737755775452,
0.008769755251705647,
0.0032122284173965454,
-0.27862250804901123,
-0.08512955158948898,
-0.41145312786102295,
0.18973574042320251,
0.2687949538230896,
0.48937878012657166,
-0.2717166543006897,
-0.22487419843673706,
-0.21711403131484985,
0.0023345903027802706,
-0.06651826202869415,
0.28096574544906616,
0.0015105558559298515,
0.06603893637657166,
0.008656954392790794,
0.5118034482002258,
-0.3065735399723053,
0.102571502327919,
-0.01759500801563263,
-0.10903549194335938,
0.666724681854248,
0.21839964389801025,
0.35716331005096436,
-0.09042581915855408,
0.19536493718624115,
0.3329963684082031,
-0.2005525827407837,
0.06528899818658829,
0.12462343275547028,
-0.34686243534088135,
-0.054584112018346786,
0.037344854325056076,
0.12321970611810684,
-0.1677461713552475,
-0.009198123589158058,
-0.24723342061042786,
0.16283315420150757,
0.30502772331237793,
0.06365275382995605,
0.04054417461156845,
0.23899640142917633,
0.16418889164924622,
0.30149850249290466,
0.26088112592697144,
-0.3187679350376129,
0.13403941690921783,
0.016261622309684753,
0.1202593669295311,
-0.5691351294517517,
-0.5156911611557007,
0.37401190400123596,
0.019028285518288612,
-0.02612142078578472,
-0.15887007117271423,
-0.07682325690984726,
-0.35054025053977966,
-0.2740907073020935,
-0.05332202836871147,
0.3207165002822876,
0.15931853652000427,
0.3862249255180359,
0.13747364282608032,
0.30437174439430237,
-0.299850732088089,
-0.1806761920452118,
-0.09333720058202744,
0.1023254320025444,
-0.2912920117378235,
0.04539014771580696,
-0.08077873289585114,
0.08105873316526413,
0.17932891845703125,
-0.15455421805381775,
0.1975852996110916,
0.2324463278055191,
-0.016183847561478615,
0.08080486953258514,
-0.051310230046510696,
0.48486271500587463,
0.20389819145202637,
0.342408686876297,
0.4302807152271271,
0.1734016239643097,
-0.21731838583946228,
0.37051934003829956,
-0.4540519714355469,
-0.3109501898288727,
0.19284044206142426,
-0.010565809905529022,
-0.18691954016685486,
0.06782902032136917,
-0.04087742045521736,
-0.04478488117456436,
0.1960519403219223,
-0.16273726522922516,
0.2673736810684204,
-0.12607429921627045,
-0.1356469690799713,
-0.2988692820072174,
0.04025964066386223,
0.6308396458625793,
-0.16947342455387115,
-0.07109884172677994,
0.057862941175699234,
-0.09613223373889923,
0.14747518301010132,
-0.07686106115579605,
-0.0319538488984108,
0.2058144360780716,
-0.29016926884651184,
-0.035182058811187744,
0.912672758102417,
-0.5441175103187561,
0.04659669101238251,
-0.09091673791408539,
-0.3012409806251526,
0.03951789066195488,
0.520470380783081,
-0.0860053226351738,
-0.2685618996620178,
-0.2502495348453522,
-0.06697940826416016,
0.2802210748195648,
0.07109424471855164,
0.10198488086462021,
-0.2831767499446869,
0.11589615046977997,
0.19969412684440613,
0.20405258238315582,
0.3477713167667389,
0.13376837968826294,
-0.026322782039642334,
0.3089301884174347,
0.1329003870487213,
-0.043742161244153976,
0.21098947525024414,
0.3810606896877289,
-0.310293585062027,
0.09535130113363266,
0.32888704538345337,
0.13898800313472748,
-0.03635120019316673,
0.273640513420105,
-0.23403368890285492,
0.12618441879749298,
0.22008569538593292,
-0.08633274585008621,
-0.04913441464304924,
-0.3538447618484497,
-0.447189062833786,
-0.1766669750213623,
-0.01771550066769123,
0.04791411757469177,
0.10067422688007355,
0.25920960307121277,
-0.43862682580947876,
0.3504107594490051,
-0.2382587194442749,
0.13310794532299042,
-0.3313280940055847,
0.3779861330986023,
-0.12919044494628906,
-0.009474363178014755,
-0.03574658930301666,
0.15517307817935944,
0.10239432007074356,
-0.2608759105205536,
-0.011766292154788971,
0.38219740986824036,
0.1847783476114273,
0.0009456227999180555,
0.06612055748701096,
-0.26478031277656555,
0.11083907634019852,
-0.008817878551781178,
0.31061723828315735,
0.22227777540683746,
-0.04233196750283241,
-0.19953787326812744,
0.15823215246200562,
0.38154032826423645,
-0.026356089860200882,
0.5534000992774963,
0.07675307244062424,
0.03884923458099365,
0.09333891421556473,
0.03271624445915222,
-0.17534637451171875,
-0.09972149133682251,
0.36746689677238464,
0.2749306559562683,
0.1782635897397995,
-0.17332924902439117,
-0.038780421018600464,
-0.11638379096984863,
0.695241391658783,
0.1830938458442688,
0.13380645215511322,
0.004836788401007652,
-0.2690497934818268,
0.15149801969528198,
-0.0059787495993077755,
0.07462138682603836,
0.3360258638858795,
0.20215247571468353,
0.038128554821014404,
0.17662200331687927,
0.20830532908439636,
-0.16544240713119507,
0.04272617772221565,
0.11874453723430634,
0.3286024332046509,
0.30476194620132446,
-0.20406723022460938,
-0.0914362370967865,
-0.3562951683998108,
-0.07284196466207504,
-0.027283500880002975,
0.07377797365188599,
-0.19989950954914093,
-0.011914183385670185,
-0.25388169288635254,
-0.4885876178741455,
-0.46479088068008423,
-0.02207811363041401,
-0.5278830528259277,
-0.32661622762680054,
0.18994168937206268,
0.01782025583088398,
-0.15341301262378693,
0.5467298626899719,
0.33338209986686707,
-0.14335304498672485,
-0.006054757162928581,
-0.419013112783432,
-0.2095361053943634,
-0.26168888807296753,
-0.2897980511188507,
0.009899823926389217,
0.34420186281204224,
-0.015085131861269474,
0.06477458029985428,
-0.38195154070854187,
-0.0901694968342781,
-0.16100247204303741,
-0.20000427961349487,
0.05204181373119354,
-0.035718418657779694,
-0.3044556677341461,
-0.04902718961238861,
0.38311994075775146,
-0.16673313081264496,
0.026965465396642685,
0.38867905735969543,
0.1256408542394638,
-0.2855382263660431,
0.21236030757427216,
0.1414211392402649,
0.09060407429933548,
0.02175397425889969,
-0.534398078918457,
-0.2619633078575134,
-0.442538857460022,
-0.11274246126413345,
0.337759405374527,
-0.017936522141098976,
-0.21488313376903534,
0.2542978525161743,
-0.17709387838840485,
0.014103889465332031,
-0.21954753994941711,
-0.0476565919816494,
-0.018809691071510315,
0.21715950965881348,
-0.08232419937849045,
-0.23774714767932892,
0.14540913701057434,
-0.14839479327201843,
-0.04913659021258354,
0.16278299689292908,
-0.19709648191928864,
-0.20413735508918762,
0.23596392571926117,
-0.21190045773983002,
-0.15541133284568787,
0.6291611194610596,
0.7919955253601074,
-0.058462947607040405,
0.051669519394636154,
-0.05225658789277077,
-0.04507431387901306,
-0.1296369731426239,
-0.04571715369820595,
0.48743778467178345,
-0.04429701715707779,
0.37778404355049133,
-0.0016311872750520706,
0.8330235481262207,
-0.07952791452407837,
0.5151054859161377,
0.24860475957393646,
0.0314505361020565,
0.3576628267765045,
-0.5895618200302124,
0.07509731501340866,
0.14008130133152008,
0.1810806691646576,
-0.08090052753686905,
0.18262426555156708,
0.08488410711288452,
0.22796767950057983,
-0.42523279786109924,
-0.2832067906856537,
-0.1590491384267807,
-0.306736558675766,
0.24245432019233704,
-0.20190998911857605,
0.04920092225074768,
-0.02092280425131321,
-0.007636931259185076,
-0.045968495309352875,
0.08376104384660721,
0.13039951026439667,
0.4588715434074402,
-0.016246721148490906,
0.1149081438779831,
-0.37140724062919617,
-0.19826416671276093,
-0.2697688043117523,
0.40629908442497253,
-0.037550188601017,
0.00898683164268732,
-0.010970078408718109,
-0.34402742981910706,
0.057789064943790436,
0.009575610980391502,
0.7247851490974426,
-0.22237300872802734,
-0.21599996089935303,
0.13618449866771698,
0.06583654135465622,
-0.39695948362350464,
-0.2671533524990082,
0.1685897409915924,
0.11046131700277328,
-0.11297649145126343,
-0.060325223952531815,
-0.19907578825950623,
0.0028694747015833855,
0.20136328041553497,
0.35026153922080994,
-0.18584388494491577,
-0.25657135248184204,
-0.6710651516914368,
-0.12834374606609344,
-0.6659101247787476,
0.03456926345825195,
-0.023529047146439552,
-0.038082003593444824,
0.15077245235443115,
0.19703271985054016,
0.13367633521556854,
-0.4105207026004791,
0.006041454151272774,
-0.033990249037742615,
0.1067853718996048,
-0.1963941901922226,
-0.3931010961532593,
0.08387279510498047,
0.14986558258533478,
0.011927098035812378,
0.1818653643131256,
0.04892034828662872,
-0.19279523193836212,
-0.022461701184511185,
-0.09399999678134918,
0.30572202801704407,
0.325475811958313,
-0.12109202146530151,
0.20268458127975464,
-0.09880275279283524,
-0.13698256015777588,
0.058111853897571564,
-0.27720093727111816,
0.08250028640031815,
0.02123546227812767,
-0.29186052083969116,
-0.5804407000541687,
0.5959303379058838,
0.023830195888876915,
-0.06114006042480469,
0.49125880002975464,
0.23905187845230103,
-0.2107001692056656,
0.5178580284118652,
-0.11791808903217316,
1.1283652782440186,
-0.041632313281297684,
0.21601516008377075,
0.13657870888710022,
-0.030607685446739197,
0.6529219150543213,
-0.7152812480926514,
0.3328055441379547,
-0.24997134506702423,
0.1918950080871582,
-0.10732127726078033,
-0.13814499974250793,
0.45513400435447693,
0.023078659549355507,
-0.00008558551053283736,
0.69194495677948,
-0.06967132538557053,
0.223904550075531,
-0.2821066677570343,
-0.1195756196975708,
-0.22989574074745178,
0.014180576428771019,
-0.2873303294181824,
-0.10482928156852722,
0.04900205135345459,
0.5750830173492432,
-0.2609502077102661,
0.10151703655719757,
-0.2526406943798065,
-0.34399884939193726,
-0.09647472947835922,
-0.05389821156859398,
-0.1133996918797493,
0.10038114339113235,
-0.2506744861602783,
-0.35625380277633667,
-0.1733190417289734,
0.19025512039661407,
0.42157554626464844,
-0.10462262481451035,
0.06312713772058487,
0.20588776469230652,
0.05683794245123863,
0.0017739366739988327,
-0.11256291717290878,
0.10851792246103287,
0.21837618947029114,
-0.1717539131641388,
-0.14449438452720642,
-0.0625031515955925,
-0.26458531618118286,
-0.3730090856552124,
-0.11241766810417175,
0.09270642697811127,
0.7888134717941284,
0.24367845058441162,
-0.13666391372680664,
0.5964677333831787,
0.04477296769618988,
-0.059737369418144226,
0.040212493389844894,
-0.19730614125728607,
-0.05209270492196083,
0.024471158161759377,
-0.320279985666275,
-0.08794688433408737,
-0.1904221922159195,
0.33821019530296326,
0.5054775476455688,
-0.10900923609733582,
0.36842840909957886,
0.0020970068871974945,
-0.06416139751672745,
-0.10227319598197937,
0.14131513237953186,
0.09337364137172699,
-0.12114530056715012,
0.03213433176279068,
0.1755930483341217,
-0.14907658100128174,
-0.18306925892829895,
-0.06481590867042542,
0.0359761081635952,
0.11657650023698807,
-0.10929842293262482,
-0.34710434079170227,
0.009776631370186806,
0.18672466278076172,
0.08180034160614014,
-0.07499027997255325,
-0.11928347498178482,
0.4146801829338074,
0.31101086735725403,
-0.28389158844947815,
-0.1570916771888733,
-0.16633033752441406,
0.05614057928323746,
0.13898074626922607,
0.046808287501335144,
0.32873162627220154,
-0.06591243296861649,
0.2154003232717514,
0.0019715186208486557,
-0.08598136156797409,
-0.2071031630039215,
-0.07546985894441605,
0.05074562132358551,
0.236082062125206,
0.1155923455953598,
0.12254133075475693,
0.2319325953722,
-0.25298839807510376,
0.11900351941585541,
-0.13330696523189545,
-0.04716745764017105,
0.20499248802661896,
-0.17433176934719086,
0.2479429394006729,
0.47222790122032166,
0.15587110817432404,
-0.4540857672691345,
0.11519923806190491,
-0.25908032059669495,
-0.07211917638778687,
0.01768578588962555,
0.22428089380264282,
0.25579753518104553,
0.1642473340034485,
-0.329120934009552,
-0.06615432351827621,
-0.007063709665089846,
0.052362460643053055,
0.017369795590639114,
-0.1378445327281952,
0.01082268450409174,
-0.20077937841415405,
0.25973859429359436,
0.4037545919418335,
-0.11654114723205566,
-0.1918817013502121,
0.23567703366279602,
0.009752155281603336,
-0.6148346662521362,
0.12831833958625793,
0.5827642679214478,
-0.04362887889146805,
0.03423123061656952,
0.2916870713233948,
0.21844933927059174,
-0.247551828622818,
0.306193470954895,
0.19870276749134064,
0.12658269703388214,
-0.3680982291698456,
0.39580756425857544,
0.2837430536746979,
0.19893455505371094,
0.17371396720409393,
0.34147992730140686,
-0.18617719411849976,
0.16206440329551697,
0.6131903529167175,
-0.07791147381067276,
0.5723166465759277,
0.21952247619628906,
-0.05280691385269165,
-0.3409300446510315,
-0.34401434659957886,
0.34300294518470764,
0.4752596318721771,
0.2266087681055069,
-0.20651569962501526,
0.15441091358661652,
-0.12987475097179413,
-0.030621185898780823,
-0.02977178245782852,
-0.19272057712078094,
0.08748125284910202,
-0.10079899430274963,
0.08343371003866196,
0.029231948778033257,
-0.31538817286491394,
0.00022408115910366178,
-0.032627299427986145,
0.10684020072221756,
-0.07365503907203674,
0.23269692063331604,
-0.01195475272834301,
-0.000004050530151289422,
0.03835415095090866,
0.26897376775741577,
-0.25075218081474304,
0.04485149309039116,
-0.07444802671670914,
-0.10200213640928268,
0.23033396899700165,
-0.09827856719493866,
0.24544072151184082,
0.13946284353733063,
0.0990578830242157,
0.031989093869924545,
-0.06423697620630264,
-0.1891166865825653,
0.09956395626068115,
0.06980370730161667,
-0.09102156013250351,
0.08977939933538437,
-0.17946457862854004,
0.16522635519504547,
0.16638658940792084,
0.054142504930496216,
-0.16335619986057281,
0.1356811374425888,
0.05262092873454094,
-0.12101217359304428,
-0.16232025623321533,
0.260701060295105,
-0.1448885202407837,
-0.08553631603717804,
-0.2999681830406189,
0.1323326975107193,
-0.4391360282897949,
-0.03618070110678673,
0.06920123100280762,
0.10969004034996033,
-0.20893903076648712,
-0.22507397830486298,
-0.0050088101997971535,
0.05773809924721718,
0.1765889823436737,
0.3686089813709259,
-0.150288388133049,
-0.1989368200302124,
-0.28754574060440063,
-0.4894709587097168,
0.1540004462003708,
-0.40543389320373535,
0.21833814680576324,
-0.2065911740064621,
0.218258798122406,
0.14336693286895752,
0.27934250235557556,
0.16315776109695435,
-0.0037901555188000202,
-0.17840854823589325,
0.11139021813869476,
-0.22460666298866272,
-0.15810519456863403,
-0.1996610462665558,
0.09844563156366348,
-0.14416803419589996,
-0.36819279193878174,
-0.030578212812542915,
0.04760117828845978,
-0.015963047742843628,
0.02309434302151203,
-0.28372088074684143,
0.5991745591163635,
-0.25033941864967346,
0.2883055806159973,
0.00007292237569345161,
0.21580134332180023,
0.12502455711364746,
-0.0017147508915513754,
0.15068231523036957,
-0.12118998169898987,
-0.43734097480773926,
0.114683598279953,
-0.07576573640108109,
0.2590181529521942,
-0.39169880747795105,
-0.15590307116508484,
-0.3126986026763916,
0.42464742064476013,
0.03341864049434662,
0.35347649455070496,
-0.2941409647464752,
0.2738615870475769,
0.12482033669948578,
0.2421262562274933,
-0.07829438149929047,
0.24047328531742096,
0.03721201792359352,
-0.0417717769742012,
-0.5601402521133423,
-0.09013447165489197,
0.20709890127182007,
-0.482528418302536,
-0.3584974706172943,
-0.04748395085334778,
0.1790841519832611,
-0.06801867485046387,
0.09585616737604141,
-0.40541234612464905,
0.13500212132930756,
0.30616334080696106,
0.0924021527171135,
0.1401243507862091,
0.03719765692949295,
-0.43643689155578613,
-0.18978460133075714,
-0.018178485333919525,
-0.6344158053398132,
-0.15100440382957458,
-0.1968303769826889,
0.10207734256982803,
-0.3524162173271179
] |
https://github.com/huggingface/datasets/issues/1786 | How to use split dataset | By default, all 3 splits will be loaded if you run the following:
```python
from datasets import load_dataset
dataset = load_dataset("lambada")
print(dataset["train"])
print(dataset["valid"])
```
If you wanted to do load this manually, you could do this:
```python
from datasets import load_dataset
data_files = {
"train": "data/lambada/train.txt",
"valid": "data/lambada/valid.txt",
"test": "data/lambada/test.txt",
}
ds = load_dataset("text", data_files=data_files)
``` | 
Hey,
I want to split the lambada dataset into corpus, test, train and valid txt files (like penn treebank) but I am not able to achieve this. What I am doing is, executing the lambada.py file in my project but its not giving desired results. Any help will be appreciated! | 56 | How to use split dataset

Hey,
I want to split the lambada dataset into corpus, test, train and valid txt files (like penn treebank) but I am not able to achieve this. What I am doing is, executing the lambada.py file in my project but its not giving desired results. Any help will be appreciated!
By default, all 3 splits will be loaded if you run the following:
```python
from datasets import load_dataset
dataset = load_dataset("lambada")
print(dataset["train"])
print(dataset["valid"])
```
If you wanted to do load this manually, you could do this:
```python
from datasets import load_dataset
data_files = {
"train": "data/lambada/train.txt",
"valid": "data/lambada/valid.txt",
"test": "data/lambada/test.txt",
}
ds = load_dataset("text", data_files=data_files)
``` | [
-0.3074783384799957,
-0.04643095284700394,
-0.06252636015415192,
0.4651072323322296,
0.1305699348449707,
0.20379114151000977,
0.2765963077545166,
0.5807617902755737,
-0.4295650124549866,
0.015046034008264542,
-0.3925749659538269,
0.2540951669216156,
0.18384914100170135,
0.3340368866920471,
-0.19449467957019806,
-0.4850149154663086,
0.09063304960727692,
0.24471978843212128,
0.05136546865105629,
-0.10601384192705154,
-0.07859745621681213,
0.16368801891803741,
-0.4311266839504242,
-0.10090921819210052,
-0.5181128978729248,
-0.18123169243335724,
-0.2913365960121155,
0.11261309683322906,
-0.3164641261100769,
0.03343599662184715,
0.06434689462184906,
0.19152820110321045,
0.2770764231681824,
0.4318370223045349,
-0.00012366005103103817,
0.02672334387898445,
-0.0548701137304306,
-0.2515762150287628,
-0.14596675336360931,
-0.09038665145635605,
0.04580177366733551,
0.09037771075963974,
0.19703027606010437,
-0.33287888765335083,
-0.18142041563987732,
-0.4163513481616974,
-0.06817091256380081,
0.0015486638294532895,
0.6935949921607971,
0.4342883229255676,
0.008110802620649338,
-0.41641923785209656,
-0.0055435108952224255,
0.16472077369689941,
0.36727237701416016,
0.34025895595550537,
-0.02290876768529415,
-0.06570950895547867,
0.19163422286510468,
0.08122310042381287,
0.08230465650558472,
0.08324411511421204,
-0.015837423503398895,
0.3440508544445038,
0.0033666465897113085,
0.1852826625108719,
-0.2075951099395752,
-0.4350949823856354,
0.02014164999127388,
0.19739556312561035,
0.6681488752365112,
-0.3729458451271057,
-0.16183887422084808,
-0.20380926132202148,
-0.13451215624809265,
-0.4180256426334381,
-0.07790011167526245,
0.4423207640647888,
-0.1205713227391243,
0.13781489431858063,
-0.23839861154556274,
0.12562623620033264,
-0.24455566704273224,
0.3950927257537842,
-0.06539726257324219,
0.24460113048553467,
-0.08519133180379868,
0.15800714492797852,
0.1469617635011673,
0.22073064744472504,
0.17953935265541077,
-0.23895016312599182,
-0.196965292096138,
0.060934606939554214,
-0.3390176594257355,
-0.18099357187747955,
-0.4194633364677429,
-0.23347274959087372,
0.269391268491745,
0.42707961797714233,
-0.18692879378795624,
-0.13056029379367828,
-0.13680070638656616,
-0.13552650809288025,
0.511703610420227,
0.03014226257801056,
0.20423246920108795,
0.3433424234390259,
0.038957688957452774,
-0.03473476693034172,
-0.21853794157505035,
-0.16800174117088318,
-0.13788801431655884,
-0.23954962193965912,
-0.0726652592420578,
0.3465912640094757,
0.291511207818985,
-0.27634090185165405,
-0.10295304656028748,
-0.5062012076377869,
-0.5687620639801025,
-0.2831331193447113,
0.013206749223172665,
0.22617846727371216,
0.09553398191928864,
-0.08740174025297165,
-0.07268165796995163,
0.38774749636650085,
-0.31626376509666443,
-0.18199020624160767,
0.02310449443757534,
0.07185659557580948,
-0.2617368996143341,
-0.07027027755975723,
0.3142625689506531,
-0.4424532651901245,
0.12382276356220245,
-0.07492891699075699,
0.0452287383377552,
-0.3328416645526886,
0.16513845324516296,
-0.39379286766052246,
0.054579101502895355,
0.20886561274528503,
0.21889656782150269,
-0.06642864644527435,
0.12714225053787231,
0.14473961293697357,
-0.2334045022726059,
0.10490009933710098,
-0.1808670163154602,
-0.08017615973949432,
0.1558268666267395,
-0.019695861265063286,
0.06115303933620453,
0.13513469696044922,
-0.4866168797016144,
0.2976648211479187,
0.08968111127614975,
0.10102880001068115,
0.036778755486011505,
0.15949253737926483,
-0.14070695638656616,
-0.08473294973373413,
0.22504684329032898,
0.13439036905765533,
-0.29256054759025574,
0.08477545529603958,
0.02288551814854145,
-0.2819041311740875,
0.24531681835651398,
0.11086026579141617,
-0.12382310628890991,
0.5956165194511414,
-0.033051397651433945,
0.08151806145906448,
0.47773393988609314,
-0.751156747341156,
-0.14387288689613342,
0.37509244680404663,
0.2684720456600189,
-0.26788124442100525,
0.07328628748655319,
-0.1370617151260376,
0.5824897289276123,
-0.06007075309753418,
-0.19124741852283478,
0.5537319183349609,
-0.2710951864719391,
0.016522353515028954,
0.06682800501585007,
-0.253024697303772,
-0.0888291746377945,
0.2614714801311493,
0.01906842552125454,
-0.07781266421079636,
0.22628983855247498,
0.1465781331062317,
0.366556316614151,
-0.1042809784412384,
0.3087858259677887,
-0.04346877709031105,
0.2427290380001068,
0.007152140140533447,
0.178687185049057,
-0.3716316819190979,
-0.23588597774505615,
0.09320804476737976,
0.0062295799143612385,
-0.014147639274597168,
0.07565882056951523,
-0.2274845540523529,
-0.20977181196212769,
-0.3526073098182678,
-0.3782557249069214,
-0.1538071483373642,
0.004806930664926767,
-0.19629153609275818,
0.262134850025177,
0.010923948138952255,
-0.2893616259098053,
0.033971644937992096,
0.09757562726736069,
0.43230894207954407,
0.046964194625616074,
0.4479081332683563,
0.1255495548248291,
-0.08861922472715378,
0.02992158569395542,
0.05208830535411835,
0.0634898766875267,
-0.1969066709280014,
-0.1304464191198349,
0.4200090169906616,
0.3873400390148163,
-0.0858752429485321,
-0.02763504348695278,
-0.2635815441608429,
0.2716657519340515,
-0.23468028008937836,
0.03637789562344551,
-0.013142583891749382,
0.06686217337846756,
-0.23640504479408264,
-0.39312028884887695,
0.15132389962673187,
-0.2954009473323822,
0.25075483322143555,
-0.004537563305348158,
0.13673065602779388,
0.14031532406806946,
-0.2662443518638611,
0.16034509241580963,
0.025353562086820602,
-0.10902796685695648,
-0.2627275288105011,
0.26478275656700134,
-0.3021566569805145,
0.13179083168506622,
-0.06272489577531815,
0.4427020847797394,
-0.13448332250118256,
-0.027101311832666397,
0.0019469469552859664,
-0.014632977545261383,
0.3422631323337555,
0.12778489291667938,
0.4383704662322998,
0.3600812554359436,
0.14053715765476227,
0.1169457957148552,
0.11880606412887573,
0.2640935182571411,
-0.03301781788468361,
0.17764818668365479,
0.14779607951641083,
0.21399769186973572,
0.1553718000650406,
-0.24124014377593994,
-0.19303250312805176,
-0.03020518086850643,
-0.03563697263598442,
0.2965056300163269,
0.3059886395931244,
-0.08893889933824539,
0.1264158934354782,
-0.23077163100242615,
-0.4963018298149109,
-0.3396852910518646,
-0.327979177236557,
0.128958061337471,
0.02332780696451664,
0.03317278251051903,
0.047330692410469055,
0.2906076908111572,
0.12351144105195999,
0.18985167145729065,
0.03647955507040024,
-0.07401205599308014,
0.060000915080308914,
-0.06857863813638687,
-0.15149441361427307,
-0.13499917089939117,
0.06682679057121277,
0.37356430292129517,
0.7918116450309753,
0.2371254563331604,
-0.3188592791557312,
0.010652057826519012,
-0.25671541690826416,
0.07967741042375565,
0.22328932583332062,
-0.3098641633987427,
0.04982870817184448,
0.1674470156431198,
-0.018457550555467606,
0.009667670354247093,
-0.09925657510757446,
0.12964536249637604,
0.08141358196735382,
-0.19135203957557678,
0.007976456545293331,
-0.04987324774265289,
0.07597807794809341,
-0.09455341100692749,
-0.5739890336990356,
-0.14706498384475708,
-0.2587657570838928,
0.41221362352371216,
0.2381136268377304,
0.1185837984085083,
-0.09718494862318039,
0.08230452984571457,
0.09102866053581238,
0.0020556102972477674,
0.031557437032461166,
0.18993563950061798,
-0.11195481568574905,
0.11324558407068253,
-0.23505887389183044,
-0.24996329843997955,
0.3675471246242523,
0.17423544824123383,
-0.057356592267751694,
-0.07868198305368423,
-0.21218527853488922,
0.23354429006576538,
-0.0393020361661911,
-0.022711878642439842,
0.07120028883218765,
0.11508817225694656,
0.24292123317718506,
-0.23191237449645996,
0.16886383295059204,
-0.09023147076368332,
0.06545748561620712,
0.14910073578357697,
-0.21398493647575378,
0.26266565918922424,
-0.1342073380947113,
0.39094892144203186,
0.02019011788070202,
0.6240468621253967,
0.4335104525089264,
-0.012047475203871727,
0.03627342730760574,
-0.190975159406662,
-0.3649744391441345,
-0.07887150347232819,
-0.21820369362831116,
0.07004973292350769,
-0.11861040443181992,
0.01225980743765831,
0.42960453033447266,
0.29381322860717773,
-0.021073007956147194,
-0.37323352694511414,
-0.3243958652019501,
-0.38825854659080505,
-0.36267855763435364,
0.03442370891571045,
-0.17257367074489594,
-0.015538865700364113,
-0.2830410301685333,
0.03338240087032318,
0.2826631963253021,
-0.14968852698802948,
-0.3008396029472351,
0.2882888615131378,
0.06864511966705322,
-0.02685820497572422,
-0.47240975499153137,
0.07643644511699677,
-0.25538527965545654,
0.3712053596973419,
-0.0017334403237327933,
-0.16475237905979156,
-0.050184786319732666,
0.143905371427536,
0.3047730624675751,
0.056223418563604355,
0.6318737268447876,
0.012018022127449512,
-0.0175543874502182,
0.05380343645811081,
-0.039511870592832565,
0.12833590805530548,
0.032172638922929764,
-0.30076149106025696,
0.18020059168338776,
0.21794728934764862,
0.06965498626232147,
-0.46038782596588135,
-0.3480936288833618,
0.347425252199173,
0.09050887078046799,
-0.10738302767276764,
-0.054222699254751205,
-0.22019055485725403,
-0.13840262591838837,
-0.4269973039627075,
-0.03723149374127388,
0.23812158405780792,
0.04705595225095749,
-0.16647058725357056,
-0.2025655210018158,
-0.05769233778119087,
-0.17894737422466278,
0.2900053560733795,
0.08320460468530655,
0.26736414432525635,
-0.15050314366817474,
0.16344960033893585,
0.03198600187897682,
-0.02563157118856907,
0.5261568427085876,
0.5509869456291199,
-0.23886358737945557,
-0.6641389727592468,
-0.08237267285585403,
-0.2544226050376892,
0.41431739926338196,
0.0188777856528759,
-0.19845904409885406,
-0.057679254561662674,
-0.0474882498383522,
-0.04923470690846443,
-0.04939761757850647,
0.050316862761974335,
0.275256872177124,
-0.07992709428071976,
-0.4217451214790344,
-0.32955244183540344,
0.2977845370769501,
-0.04904284328222275,
0.10137753933668137,
0.322238564491272,
-0.053508732467889786,
-0.3448222279548645,
0.4046643078327179,
0.17551235854625702,
0.8032984137535095,
-0.3154439926147461,
-0.0005888458690606058,
-0.016341296955943108,
0.022042814642190933,
0.4005247950553894,
-0.6602144241333008,
0.08865418285131454,
-0.238567516207695,
-0.11239463835954666,
-0.13942711055278778,
-0.09394297748804092,
0.22458361089229584,
0.4019755721092224,
-0.4566557705402374,
0.16639259457588196,
0.16984078288078308,
-0.09225260466337204,
-0.2540281116962433,
0.15800155699253082,
-0.16842617094516754,
-0.17707319557666779,
-0.18916314840316772,
-0.0005675749271176755,
-0.17978313565254211,
0.12429793924093246,
0.08838368952274323,
-0.03293168917298317,
-0.18700148165225983,
-0.019758785143494606,
-0.001466176356188953,
0.08085232228040695,
-0.1125742569565773,
-0.10865079611539841,
-0.19987648725509644,
-0.22847259044647217,
0.21893782913684845,
0.6059163212776184,
0.22064156830310822,
-0.17429378628730774,
-0.12183704972267151,
0.10383477807044983,
-0.09084515273571014,
-0.16312824189662933,
-0.09841050952672958,
-0.06590065360069275,
0.17421452701091766,
-0.06483816355466843,
-0.32667845487594604,
0.14321613311767578,
0.14728008210659027,
-0.18520988523960114,
0.2426714450120926,
0.17043274641036987,
0.10301761329174042,
-0.5554354786872864,
-0.009894860908389091,
0.06675385683774948,
-0.09161734580993652,
-0.11788153648376465,
0.012263095006346703,
0.0074494038708508015,
-0.2226940393447876,
0.3630222976207733,
-0.3571639955043793,
-0.25478115677833557,
-0.0981251448392868,
-0.015484301373362541,
0.081795834004879,
-0.043155040591955185,
0.2503519356250763,
0.4610134959220886,
0.08029740303754807,
-0.21306118369102478,
0.3313157856464386,
-0.04689465090632439,
-0.5658298134803772,
0.1925094574689865,
-0.07153648138046265,
0.21219557523727417,
0.20294597744941711,
0.6457030177116394,
-0.12375303357839584,
-0.07733036577701569,
-0.10403186827898026,
-0.3982211649417877,
-0.18004633486270905,
0.188107430934906,
0.09796887636184692,
0.24437138438224792,
0.10313432663679123,
0.45722445845603943,
0.1946159303188324,
0.16446802020072937,
-0.09129466861486435,
0.4208088219165802,
0.016016313806176186,
0.23444527387619019,
-0.2441112995147705,
0.020229976624250412,
0.19394907355308533,
0.08314300328493118,
-0.07264493405818939,
0.12580426037311554,
-0.011015077121555805,
-0.10457869619131088,
-0.13267244398593903,
0.2093547135591507,
0.039248645305633545,
-0.04292108491063118,
-0.16821235418319702,
-0.20465269684791565,
-0.26913705468177795,
-0.20621910691261292,
0.12931324541568756,
-0.0536733902990818,
0.040461860597133636,
0.38891133666038513,
0.5246462821960449,
0.05889292061328888,
-0.5523726940155029,
-0.08314455300569534,
-0.03149331733584404,
0.017872074618935585,
0.1262948364019394,
0.10040395706892014,
-0.0244423970580101,
0.005022039171308279,
-0.5351828932762146,
-0.04380571097135544,
0.4880593717098236,
-0.04854439198970795,
0.32296133041381836,
0.012443934567272663,
0.36698195338249207,
-0.17748132348060608,
0.46262285113334656,
0.37827247381210327,
-0.017946304753422737,
0.19935333728790283,
0.1697978377342224,
0.05395164713263512,
0.01769767887890339,
0.18497386574745178,
0.2205457240343094,
-0.0006580218905583024,
0.016036467626690865,
0.49032294750213623,
-0.269065260887146,
0.1666281521320343,
-0.3717581331729889,
-0.042149122804403305,
0.32107779383659363,
0.15426863729953766,
0.3033198118209839,
0.9101154804229736,
-0.05958843231201172,
0.08664797246456146,
0.12546038627624512,
0.005780498031526804,
0.08390229940414429,
0.4529552459716797,
-0.06340163946151733,
0.3624615967273712,
-0.2818377912044525,
0.10661765187978745,
0.20833107829093933,
-0.1350652128458023,
0.11799971014261246,
0.14697135984897614,
-0.160519078373909,
-0.24243831634521484,
-0.06348180025815964,
0.6651053428649902,
-0.06483794748783112,
-0.1775447130203247,
-0.26961618661880493,
0.36918267607688904,
0.20233069360256195,
0.08462640643119812,
-0.32159560918807983,
-0.08356347680091858,
0.25106170773506165,
-0.10736396163702011,
-0.19845812022686005,
-0.22295118868350983,
0.06666329503059387,
0.2417345494031906,
0.021623507142066956,
-0.05598856136202812,
0.05584540218114853,
-0.08046737313270569,
0.18269601464271545,
-0.04394805058836937,
0.0037153020966798067,
0.14320801198482513,
-0.0718039944767952,
0.3600771725177765,
0.16030855476856232,
0.09384176135063171,
0.0030689446721225977,
-0.16674940288066864,
0.01949317567050457,
-0.04232056066393852,
-0.07010359317064285,
0.31846895813941956,
0.29827430844306946,
0.10525567829608917,
0.4170578122138977,
0.24473442137241364,
0.04213222116231918,
-0.023673532530665398,
-0.13603797554969788,
-0.014391656965017319,
-0.039927128702402115,
-0.27337703108787537,
0.3864547312259674,
0.011979861184954643,
-0.09348194301128387,
-0.018208058550953865,
-0.055980365723371506,
-0.38870811462402344,
-0.14738249778747559,
0.021849224343895912,
-0.280415803194046,
0.0626525729894638,
-0.07459491491317749,
-0.04146881774067879,
-0.06446840614080429,
0.24261294305324554,
-0.05617569759488106,
0.29433220624923706,
-0.3316035270690918,
-0.1498585045337677,
-0.19634690880775452,
-0.13897864520549774,
-0.45145100355148315,
-0.5549048781394958,
-0.07209936529397964,
0.06732719391584396,
0.021477188915014267,
0.23266173899173737,
0.09269796311855316,
-0.1600026786327362,
0.1497940868139267,
0.5700589418411255,
-0.1629796326160431,
-0.2597329914569855,
-0.2790684103965759,
0.3490470051765442,
-0.19561056792736053,
-0.389521062374115,
0.08401355147361755,
0.31959179043769836,
-0.20473480224609375,
0.14592672884464264,
-0.1514398604631424,
0.45450499653816223,
0.0031895108986645937,
-0.35989898443222046,
0.06291750818490982,
0.5531311631202698,
0.2346213161945343,
0.3608319163322449,
0.16408655047416687,
0.05731306970119476,
-0.07045631855726242,
0.20120035111904144,
0.11748535931110382,
0.29133227467536926,
-0.3149193227291107,
0.20035775005817413,
-0.10853957384824753,
0.0894610583782196,
-0.0003402023285161704,
-0.014992540702223778,
-0.3560353219509125,
0.06523062288761139,
-0.07072660326957703,
0.19268934428691864,
0.5887853503227234,
0.5346590280532837,
-0.2799520790576935,
-0.19009889662265778,
-0.28880956768989563,
-0.13985271751880646,
0.1622961461544037,
-0.5503788590431213,
-0.19008029997348785,
0.19415216147899628,
0.049757275730371475,
0.36096879839897156,
-0.05542965233325958,
-0.5752097368240356,
-0.0025691078044474125,
0.28394436836242676,
-0.15105660259723663,
-0.16498149931430817,
0.25271597504615784,
0.36566704511642456,
-0.13216832280158997,
0.059467166662216187,
0.05270232632756233,
0.13994063436985016,
-0.25194984674453735,
-0.01492616068571806,
-0.23721230030059814
] |
https://github.com/huggingface/datasets/issues/1785 | Not enough disk space (Needed: Unknown size) when caching on a cluster | Hi !
What do you mean by "disk_usage(".").free` can't compute on the cluster's shared disk" exactly ?
Does it return 0 ? | I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space? | 22 | Not enough disk space (Needed: Unknown size) when caching on a cluster
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space?
Hi !
What do you mean by "disk_usage(".").free` can't compute on the cluster's shared disk" exactly ?
Does it return 0 ? | [
-0.07774288952350616,
-0.41871702671051025,
-0.0846218541264534,
0.24316053092479706,
-0.09700983017683029,
0.15066014230251312,
0.07053445279598236,
0.34012123942375183,
0.396234929561615,
0.39331603050231934,
0.41839298605918884,
-0.13893121480941772,
-0.0912499651312828,
0.003891478292644024,
-0.17395858466625214,
0.24173209071159363,
-0.008229834958910942,
-0.06064518913626671,
0.3455672264099121,
0.1274867057800293,
-0.4057287871837616,
0.013044103048741817,
0.09445047378540039,
-0.37361401319503784,
-0.5426245331764221,
-0.18809249997138977,
-0.16628068685531616,
0.1566852480173111,
0.22696205973625183,
-0.22474305331707,
0.3221062123775482,
-0.005495274439454079,
-0.10113929957151413,
0.5720776319503784,
-0.00011594401439651847,
0.03631250187754631,
0.17152510583400726,
-0.18090511858463287,
-0.43993768095970154,
-0.03869561478495598,
0.21730422973632812,
-0.4069226086139679,
-0.22335879504680634,
-0.36196601390838623,
-0.010308967903256416,
0.16035668551921844,
-0.05118102207779884,
-0.4436119794845581,
0.17652523517608643,
-0.06918394565582275,
0.16796931624412537,
0.35300540924072266,
-0.22030183672904968,
-0.09261415898799896,
-0.26594120264053345,
0.17672336101531982,
-0.04691307619214058,
0.5180593132972717,
0.29926300048828125,
0.07531514763832092,
-0.2787306010723114,
0.2208094596862793,
-0.1333250105381012,
0.1601160317659378,
0.41381457448005676,
-0.13599751889705658,
-0.07452762126922607,
-0.18451376259326935,
0.19623786211013794,
-0.026867084205150604,
0.4277344048023224,
-0.1950320452451706,
-0.5273441076278687,
-0.5711028575897217,
0.050052959471940994,
-0.1597716063261032,
0.43965864181518555,
0.03642578050494194,
-0.40968748927116394,
0.1226714551448822,
-0.30185914039611816,
-0.3372611701488495,
-0.2010517716407776,
-0.20997749269008636,
0.05320871248841286,
0.16412986814975739,
0.0016835296992212534,
0.08308514952659607,
0.32703280448913574,
0.017501335591077805,
-0.025625910609960556,
0.026436196640133858,
0.17296095192432404,
0.2536419630050659,
-0.2865467369556427,
0.015175816603004932,
-0.09484075009822845,
0.21012328565120697,
0.10111894458532333,
0.21069858968257904,
0.061005838215351105,
-0.11254090070724487,
0.07357285171747208,
0.25406670570373535,
0.013657832518219948,
0.24661211669445038,
-0.26506730914115906,
-0.09788813441991806,
0.20305727422237396,
-0.0030460781417787075,
0.17353923618793488,
-0.11332003027200699,
0.048171982169151306,
-0.3508071303367615,
0.11620283126831055,
-0.01808820106089115,
0.20401303470134735,
-0.07148497551679611,
-0.3821853995323181,
0.12724798917770386,
0.20500513911247253,
0.3049910068511963,
0.21228188276290894,
0.28485462069511414,
0.08105023205280304,
0.2399788647890091,
0.21884191036224365,
0.1994525045156479,
-0.09023409336805344,
-0.09682647138834,
-0.11598099768161774,
-0.014707108959555626,
0.08853039890527725,
0.16931605339050293,
0.3448052406311035,
0.036770500242710114,
0.2115975022315979,
-0.01790425181388855,
0.4590660631656647,
-0.10544592887163162,
-0.07217616587877274,
-0.23526178300380707,
-0.11916287988424301,
0.42335179448127747,
0.11977585405111313,
0.011757089756429195,
0.25198253989219666,
0.15005068480968475,
-0.15103831887245178,
0.267790824174881,
-0.38364362716674805,
-0.45535942912101746,
0.04401949420571327,
0.07246261835098267,
-0.35284167528152466,
0.2011190503835678,
-0.4066093862056732,
-0.03843988478183746,
0.30972447991371155,
-0.1824394166469574,
0.1011647880077362,
0.09283839166164398,
-0.38870975375175476,
-0.24627067148685455,
0.13819411396980286,
0.3473311960697174,
-0.11425097286701202,
0.003716376144438982,
-0.31071704626083374,
0.16215574741363525,
0.05258793383836746,
0.4145960211753845,
0.13116280734539032,
0.13864387571811676,
-0.4277251362800598,
0.1380109041929245,
0.11270690709352493,
-0.330841988325119,
-0.5418029427528381,
0.3061305284500122,
-0.1718519926071167,
0.2516018748283386,
0.5377890467643738,
0.2614459693431854,
-0.01633279398083687,
-0.2336912751197815,
0.23278690874576569,
0.2714539170265198,
-0.21969115734100342,
0.05634543299674988,
-0.35332757234573364,
-0.2634565234184265,
0.02787197381258011,
0.06142935901880264,
0.3454008996486664,
0.10856427252292633,
0.010947959497570992,
-0.006002755835652351,
0.1818709671497345,
0.054979659616947174,
0.20100590586662292,
0.3193236291408539,
0.3190518319606781,
-0.34445902705192566,
-0.07386588305234909,
0.02172456495463848,
-0.5194777250289917,
0.3491623103618622,
0.19307170808315277,
-0.21001484990119934,
-0.06464958190917969,
-0.4432947635650635,
-0.28096291422843933,
0.062207773327827454,
0.24829380214214325,
0.3274296224117279,
0.04864668473601341,
-0.037388358265161514,
0.24946698546409607,
-0.30693528056144714,
-0.05964985489845276,
0.1668299436569214,
-0.2572430670261383,
-0.057898420840501785,
0.10287661850452423,
-0.03716321662068367,
-0.04239116981625557,
-0.1400396078824997,
0.049448415637016296,
0.06461042165756226,
0.06502678990364075,
0.1349683552980423,
-0.014335219748318195,
0.41349074244499207,
-0.1063750609755516,
0.22477182745933533,
-0.09035085141658783,
0.13459981977939606,
0.15231341123580933,
0.351261168718338,
0.0020522517152130604,
0.17524005472660065,
0.006947124842554331,
-0.1697661280632019,
-0.11104368418455124,
0.2095978707075119,
-0.0455695316195488,
0.2853599488735199,
-0.08265827596187592,
0.06405846029520035,
0.062438108026981354,
0.05603836104273796,
0.12377571314573288,
-0.059289734810590744,
0.29012978076934814,
-0.19665706157684326,
0.4879353642463684,
0.08131768554449081,
0.022846825420856476,
-0.014420188032090664,
0.06943953782320023,
0.15922804176807404,
0.2913537323474884,
0.15650686621665955,
0.2970969080924988,
-0.03452175483107567,
-0.0058796522207558155,
0.28174054622650146,
0.26641470193862915,
0.15600261092185974,
0.015309480018913746,
-0.17531843483448029,
0.04518727958202362,
-0.20555908977985382,
0.052819862961769104,
-0.05030118674039841,
0.15801866352558136,
0.29221096634864807,
0.006730163004249334,
-0.2964168190956116,
0.09604645520448685,
-0.3090459406375885,
0.21551162004470825,
0.07729799300432205,
-0.2874603867530823,
-0.05790763348340988,
0.055779892951250076,
0.1828184574842453,
0.0615939125418663,
0.18895982205867767,
-0.4589173197746277,
-0.3148483335971832,
0.17463596165180206,
0.6444193124771118,
-0.23739007115364075,
-0.0952429324388504,
-0.3729637861251831,
0.4732413589954376,
0.07805269211530685,
-0.4257936179637909,
-0.026563089340925217,
-0.26854634284973145,
-0.10555168986320496,
0.017070932313799858,
0.32546550035476685,
-0.2578275203704834,
0.3435429334640503,
0.00941354688256979,
0.07134485989809036,
-0.42507004737854004,
0.1581229865550995,
-0.16978764533996582,
0.026744384318590164,
0.16048875451087952,
-0.13076399266719818,
0.3355613946914673,
-0.12210825085639954,
-0.1611020565032959,
0.16005246341228485,
-0.03865161910653114,
-0.041747841984033585,
0.009187102317810059,
0.1570616066455841,
0.17532791197299957,
-0.3232637047767639,
0.03154053911566734,
-0.17938263714313507,
-0.5495162010192871,
0.17439024150371552,
-0.1816842257976532,
0.27164632081985474,
0.10364071279764175,
0.17338643968105316,
-0.10494726151227951,
0.7099816799163818,
-0.17317649722099304,
-0.24961937963962555,
-0.6116565465927124,
0.238290935754776,
-0.08035745471715927,
-0.02955198846757412,
-0.047171156853437424,
0.02962806634604931,
0.21220265328884125,
0.4242189824581146,
-0.478241890668869,
-0.4002627730369568,
-0.16716614365577698,
0.22946767508983612,
-0.24203552305698395,
-0.032156988978385925,
0.179103821516037,
-0.14865446090698242,
-0.07347264885902405,
-0.1409638375043869,
-0.028164079412817955,
0.052829187363386154,
0.009464691393077374,
0.2762106657028198,
0.2927938997745514,
0.21926258504390717,
0.32078421115875244,
0.7062379717826843,
-0.15945753455162048,
0.25005558133125305,
0.27551794052124023,
0.1817435771226883,
0.6162170171737671,
0.09052630513906479,
-0.05360362306237221,
0.040100011974573135,
0.008074064739048481,
-0.615044116973877,
0.018974697217345238,
-0.03327062353491783,
0.13807763159275055,
-0.028210269287228584,
-0.3949749171733856,
0.07973632216453552,
-0.2690039873123169,
0.3064285218715668,
-0.4407607913017273,
0.2631151080131531,
-0.26249590516090393,
0.0036537162959575653,
-0.36617013812065125,
-0.0888015627861023,
-0.027878014370799065,
0.09572465717792511,
0.516389787197113,
0.1993706077337265,
-0.2578812539577484,
-0.2660914361476898,
-0.5647942423820496,
0.32531583309173584,
-0.006048333365470171,
0.12446140497922897,
-0.3100084364414215,
0.07452922314405441,
-0.08088140934705734,
0.01012722309678793,
0.7869895696640015,
-0.09053642302751541,
0.2198173552751541,
0.08223861455917358,
0.02576530911028385,
-0.5359349846839905,
-0.01084910798817873,
0.13685601949691772,
0.3804580271244049,
-0.07197004556655884,
0.4385930895805359,
-0.17676983773708344,
0.1249719113111496,
-0.4394179880619049,
0.36068981885910034,
-0.33069220185279846,
-0.24158835411071777,
-0.38548025488853455,
-0.38147491216659546,
-0.48330065608024597,
0.44739028811454773,
0.45651692152023315,
0.25278592109680176,
-0.04835229367017746,
0.3299102783203125,
-0.17026332020759583,
-0.014961177483201027,
0.1736515611410141,
-0.007580084260553122,
0.4432085156440735,
-0.13666671514511108,
0.04138927906751633,
0.10192031413316727,
-0.0565786138176918,
0.42775481939315796,
0.41325822472572327,
0.10969618707895279,
0.15321114659309387,
0.2755294442176819,
0.015611952170729637,
0.333952397108078,
0.3349303901195526,
-0.07208298146724701,
0.02724182978272438,
0.11594650894403458,
0.2456975281238556,
-0.4392107129096985,
-0.06493625789880753,
-0.39375320076942444,
-0.053410738706588745,
-0.0902632400393486,
-0.02069704234600067,
0.3726738691329956,
0.35260218381881714,
0.017791565507650375,
0.07021545618772507,
0.3179871439933777,
-0.31271567940711975,
0.2607078552246094,
-0.026027431711554527,
0.8725865483283997,
-0.0851958766579628,
0.0190446600317955,
0.06687192618846893,
0.3008270859718323,
0.34014326333999634,
-0.4726661741733551,
0.36130765080451965,
0.04408472031354904,
-0.2942006587982178,
0.03258153051137924,
-0.012193524278700352,
-0.021077588200569153,
0.29593414068222046,
-0.16884489357471466,
0.4016993045806885,
-0.5068138837814331,
0.012193987146019936,
-0.0954146534204483,
0.1365528255701065,
-0.6846150159835815,
-0.37429556250572205,
-0.23896756768226624,
0.1206890270113945,
-0.1377958059310913,
0.21030038595199585,
-0.24510453641414642,
0.108656145632267,
0.0337136872112751,
-0.31288498640060425,
-0.36626681685447693,
-0.1701536476612091,
0.026717988774180412,
0.30356937646865845,
-0.17898522317409515,
0.02364315837621689,
-0.08937318623065948,
0.1346770077943802,
0.215277761220932,
0.3010419011116028,
-0.14354635775089264,
0.10248032212257385,
-0.15729190409183502,
-0.05579756572842598,
0.06480635702610016,
0.07522287964820862,
0.11239784955978394,
0.0016256612725555897,
-0.30968672037124634,
0.15746498107910156,
-0.2591038644313812,
-0.4899290204048157,
0.029062340036034584,
-0.043814290314912796,
-0.29428985714912415,
-0.0338735468685627,
-0.2902979850769043,
-0.45660021901130676,
-0.005463455803692341,
-0.08768325299024582,
0.06650680303573608,
0.019174374639987946,
-0.11894810199737549,
0.14763538539409637,
0.02352587878704071,
-0.20440952479839325,
0.11642161756753922,
0.19072353839874268,
0.17154835164546967,
-0.3462996780872345,
0.38599634170532227,
-0.37319833040237427,
-0.0873679518699646,
-0.17369388043880463,
-0.1504092812538147,
-0.13429872691631317,
0.09508267790079117,
0.34302568435668945,
-0.07940389215946198,
-0.12857937812805176,
-0.24275095760822296,
-0.23101283609867096,
0.6502945423126221,
0.426238089799881,
-0.14408330619335175,
-0.47837650775909424,
-0.37318316102027893,
0.26766476035118103,
0.08030028641223907,
0.23816069960594177,
-0.0641208216547966,
-0.09848769009113312,
0.030608702450990677,
0.1129469946026802,
-0.2559909224510193,
-0.05578715726733208,
-0.44073399901390076,
0.007171593606472015,
0.21178556978702545,
0.12637628614902496,
0.21430306136608124,
-0.0947057381272316,
-0.08272810280323029,
0.1265944391489029,
-0.0557575561106205,
-0.11263591796159744,
0.04496188461780548,
0.15062783658504486,
0.04691864177584648,
0.1951722651720047,
0.17354357242584229,
-0.4588235020637512,
0.2376367449760437,
-0.2655065357685089,
0.17537616193294525,
0.41826900839805603,
-0.045481450855731964,
-0.34155720472335815,
0.07465754449367523,
0.4974750578403473,
-0.17092376947402954,
0.14223183691501617,
0.1285942792892456,
0.1546490341424942,
-0.2296801209449768,
0.184286966919899,
0.1251480132341385,
0.14174029231071472,
0.23668637871742249,
-0.11207878589630127,
0.22014379501342773,
0.038521990180015564,
-0.154571071267128,
0.06847143918275833,
-0.04480205103754997,
0.2478228509426117,
0.2652955651283264,
-0.07904451340436935,
-0.029399048537015915,
0.03380577266216278,
0.06988354027271271,
0.21730972826480865,
-0.2394903600215912,
-0.11724872887134552,
0.23962830007076263,
-0.029939111322164536,
0.11975673586130142,
0.5013856291770935,
0.38761410117149353,
-0.3748738765716553,
0.07454225420951843,
0.0923805683851242,
0.5648562908172607,
-0.26017630100250244,
0.04130959510803223,
0.13369517028331757,
0.05060681328177452,
0.003041954943910241,
0.14901010692119598,
-0.06330112367868423,
0.3891545832157135,
0.30703940987586975,
-0.17135392129421234,
0.21597236394882202,
0.24081185460090637,
-0.12086082249879837,
-0.1497630923986435,
-0.4051089286804199,
0.0863523855805397,
0.08172875642776489,
0.042583368718624115,
0.13044629991054535,
-0.3192768096923828,
-0.047600626945495605,
-0.3641907870769501,
-0.19654087722301483,
-0.2249186784029007,
-0.11324135959148407,
-0.4139752984046936,
-0.010649199597537518,
-0.018117206171154976,
-0.08793187141418457,
-0.027367468923330307,
-0.12374754250049591,
0.35692545771598816,
-0.3851693868637085,
0.3071930706501007,
0.009147612378001213,
0.06227491796016693,
0.2990061044692993,
-0.2994197607040405,
0.46847790479660034,
0.16412922739982605,
-0.36845913529396057,
0.03779635950922966,
0.2732797861099243,
-0.2538943886756897,
0.299713134765625,
0.1712867170572281,
0.6783191561698914,
0.22274693846702576,
-0.09189630299806595,
0.06751563400030136,
0.03421520069241524,
0.07634939253330231,
-0.3394200801849365,
-0.023012923076748848,
0.06691823154687881,
-0.1332622766494751,
0.11456673592329025,
0.13749444484710693,
-0.0944962352514267,
0.22364617884159088,
0.011741859838366508,
0.26063698530197144,
-0.2572072148323059,
-0.12003525346517563,
-0.1719236969947815,
-0.19954967498779297,
-0.13376393914222717,
0.09174969792366028,
-0.2527792155742645,
-0.21109411120414734,
0.35246339440345764,
-0.05091581493616104,
0.18315255641937256,
0.19918863475322723,
0.06721251457929611,
-0.09606663882732391,
0.2713785171508789,
0.33813127875328064,
-0.5006521344184875,
-0.3073892891407013,
0.08907077461481094,
-0.5300477743148804,
0.2179003655910492,
-0.2879716157913208,
-0.07918906211853027,
-0.031629595905542374,
0.2162606418132782,
-0.035324662923812866,
-0.11000464856624603,
0.09238368272781372,
-0.08695510029792786,
-0.06845749914646149,
-0.15444938838481903,
-0.26337912678718567,
-0.2788788676261902,
-0.08781545609235764,
-0.2979597747325897,
0.2715916037559509,
-0.5973240733146667,
-0.04767140746116638,
0.10969915986061096,
0.06260484457015991,
0.08089568465948105,
-0.006934524979442358,
0.23120222985744476,
0.44211480021476746,
0.323679119348526,
-0.0014009432634338737,
0.45332151651382446,
0.06917830556631088,
-0.15781809389591217,
-0.35559943318367004,
-0.05122746154665947,
-0.1567314863204956,
0.0503358393907547,
0.12298188358545303,
0.23972448706626892,
-0.6420224905014038,
0.08903692662715912,
-0.23719574511051178,
0.24776968359947205,
0.06780708581209183,
-0.07973413914442062,
0.09804753214120865,
-0.023893527686595917,
-0.34318873286247253,
0.19829486310482025,
0.23607489466667175,
0.23017729818820953,
-0.06586279720067978,
0.32704317569732666,
-0.19334714114665985,
-0.15631523728370667,
0.48298752307891846,
-0.13969287276268005,
-0.3495692312717438,
-0.22467680275440216,
0.4760473668575287,
0.057769667357206345,
-0.040422528982162476,
-0.19705049693584442,
-0.08895669132471085,
0.18535375595092773,
0.07910503447055817,
0.06320055574178696,
-0.17947538197040558,
-0.2648893892765045,
-0.2492375671863556,
-0.013969553634524345,
0.20918014645576477,
-0.3121143579483032,
-0.3135882019996643,
0.03507346659898758,
-0.20943893492221832
] |
https://github.com/huggingface/datasets/issues/1785 | Not enough disk space (Needed: Unknown size) when caching on a cluster | Yes, that's right. It shows 0 free space even though there is. I suspect it might have to do with permissions on the shared disk.
```python
>>> disk_usage(".")
usage(total=999999, used=999999, free=0)
``` | I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space? | 32 | Not enough disk space (Needed: Unknown size) when caching on a cluster
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space?
Yes, that's right. It shows 0 free space even though there is. I suspect it might have to do with permissions on the shared disk.
```python
>>> disk_usage(".")
usage(total=999999, used=999999, free=0)
``` | [
-0.07774288952350616,
-0.41871702671051025,
-0.0846218541264534,
0.24316053092479706,
-0.09700983017683029,
0.15066014230251312,
0.07053445279598236,
0.34012123942375183,
0.396234929561615,
0.39331603050231934,
0.41839298605918884,
-0.13893121480941772,
-0.0912499651312828,
0.003891478292644024,
-0.17395858466625214,
0.24173209071159363,
-0.008229834958910942,
-0.06064518913626671,
0.3455672264099121,
0.1274867057800293,
-0.4057287871837616,
0.013044103048741817,
0.09445047378540039,
-0.37361401319503784,
-0.5426245331764221,
-0.18809249997138977,
-0.16628068685531616,
0.1566852480173111,
0.22696205973625183,
-0.22474305331707,
0.3221062123775482,
-0.005495274439454079,
-0.10113929957151413,
0.5720776319503784,
-0.00011594401439651847,
0.03631250187754631,
0.17152510583400726,
-0.18090511858463287,
-0.43993768095970154,
-0.03869561478495598,
0.21730422973632812,
-0.4069226086139679,
-0.22335879504680634,
-0.36196601390838623,
-0.010308967903256416,
0.16035668551921844,
-0.05118102207779884,
-0.4436119794845581,
0.17652523517608643,
-0.06918394565582275,
0.16796931624412537,
0.35300540924072266,
-0.22030183672904968,
-0.09261415898799896,
-0.26594120264053345,
0.17672336101531982,
-0.04691307619214058,
0.5180593132972717,
0.29926300048828125,
0.07531514763832092,
-0.2787306010723114,
0.2208094596862793,
-0.1333250105381012,
0.1601160317659378,
0.41381457448005676,
-0.13599751889705658,
-0.07452762126922607,
-0.18451376259326935,
0.19623786211013794,
-0.026867084205150604,
0.4277344048023224,
-0.1950320452451706,
-0.5273441076278687,
-0.5711028575897217,
0.050052959471940994,
-0.1597716063261032,
0.43965864181518555,
0.03642578050494194,
-0.40968748927116394,
0.1226714551448822,
-0.30185914039611816,
-0.3372611701488495,
-0.2010517716407776,
-0.20997749269008636,
0.05320871248841286,
0.16412986814975739,
0.0016835296992212534,
0.08308514952659607,
0.32703280448913574,
0.017501335591077805,
-0.025625910609960556,
0.026436196640133858,
0.17296095192432404,
0.2536419630050659,
-0.2865467369556427,
0.015175816603004932,
-0.09484075009822845,
0.21012328565120697,
0.10111894458532333,
0.21069858968257904,
0.061005838215351105,
-0.11254090070724487,
0.07357285171747208,
0.25406670570373535,
0.013657832518219948,
0.24661211669445038,
-0.26506730914115906,
-0.09788813441991806,
0.20305727422237396,
-0.0030460781417787075,
0.17353923618793488,
-0.11332003027200699,
0.048171982169151306,
-0.3508071303367615,
0.11620283126831055,
-0.01808820106089115,
0.20401303470134735,
-0.07148497551679611,
-0.3821853995323181,
0.12724798917770386,
0.20500513911247253,
0.3049910068511963,
0.21228188276290894,
0.28485462069511414,
0.08105023205280304,
0.2399788647890091,
0.21884191036224365,
0.1994525045156479,
-0.09023409336805344,
-0.09682647138834,
-0.11598099768161774,
-0.014707108959555626,
0.08853039890527725,
0.16931605339050293,
0.3448052406311035,
0.036770500242710114,
0.2115975022315979,
-0.01790425181388855,
0.4590660631656647,
-0.10544592887163162,
-0.07217616587877274,
-0.23526178300380707,
-0.11916287988424301,
0.42335179448127747,
0.11977585405111313,
0.011757089756429195,
0.25198253989219666,
0.15005068480968475,
-0.15103831887245178,
0.267790824174881,
-0.38364362716674805,
-0.45535942912101746,
0.04401949420571327,
0.07246261835098267,
-0.35284167528152466,
0.2011190503835678,
-0.4066093862056732,
-0.03843988478183746,
0.30972447991371155,
-0.1824394166469574,
0.1011647880077362,
0.09283839166164398,
-0.38870975375175476,
-0.24627067148685455,
0.13819411396980286,
0.3473311960697174,
-0.11425097286701202,
0.003716376144438982,
-0.31071704626083374,
0.16215574741363525,
0.05258793383836746,
0.4145960211753845,
0.13116280734539032,
0.13864387571811676,
-0.4277251362800598,
0.1380109041929245,
0.11270690709352493,
-0.330841988325119,
-0.5418029427528381,
0.3061305284500122,
-0.1718519926071167,
0.2516018748283386,
0.5377890467643738,
0.2614459693431854,
-0.01633279398083687,
-0.2336912751197815,
0.23278690874576569,
0.2714539170265198,
-0.21969115734100342,
0.05634543299674988,
-0.35332757234573364,
-0.2634565234184265,
0.02787197381258011,
0.06142935901880264,
0.3454008996486664,
0.10856427252292633,
0.010947959497570992,
-0.006002755835652351,
0.1818709671497345,
0.054979659616947174,
0.20100590586662292,
0.3193236291408539,
0.3190518319606781,
-0.34445902705192566,
-0.07386588305234909,
0.02172456495463848,
-0.5194777250289917,
0.3491623103618622,
0.19307170808315277,
-0.21001484990119934,
-0.06464958190917969,
-0.4432947635650635,
-0.28096291422843933,
0.062207773327827454,
0.24829380214214325,
0.3274296224117279,
0.04864668473601341,
-0.037388358265161514,
0.24946698546409607,
-0.30693528056144714,
-0.05964985489845276,
0.1668299436569214,
-0.2572430670261383,
-0.057898420840501785,
0.10287661850452423,
-0.03716321662068367,
-0.04239116981625557,
-0.1400396078824997,
0.049448415637016296,
0.06461042165756226,
0.06502678990364075,
0.1349683552980423,
-0.014335219748318195,
0.41349074244499207,
-0.1063750609755516,
0.22477182745933533,
-0.09035085141658783,
0.13459981977939606,
0.15231341123580933,
0.351261168718338,
0.0020522517152130604,
0.17524005472660065,
0.006947124842554331,
-0.1697661280632019,
-0.11104368418455124,
0.2095978707075119,
-0.0455695316195488,
0.2853599488735199,
-0.08265827596187592,
0.06405846029520035,
0.062438108026981354,
0.05603836104273796,
0.12377571314573288,
-0.059289734810590744,
0.29012978076934814,
-0.19665706157684326,
0.4879353642463684,
0.08131768554449081,
0.022846825420856476,
-0.014420188032090664,
0.06943953782320023,
0.15922804176807404,
0.2913537323474884,
0.15650686621665955,
0.2970969080924988,
-0.03452175483107567,
-0.0058796522207558155,
0.28174054622650146,
0.26641470193862915,
0.15600261092185974,
0.015309480018913746,
-0.17531843483448029,
0.04518727958202362,
-0.20555908977985382,
0.052819862961769104,
-0.05030118674039841,
0.15801866352558136,
0.29221096634864807,
0.006730163004249334,
-0.2964168190956116,
0.09604645520448685,
-0.3090459406375885,
0.21551162004470825,
0.07729799300432205,
-0.2874603867530823,
-0.05790763348340988,
0.055779892951250076,
0.1828184574842453,
0.0615939125418663,
0.18895982205867767,
-0.4589173197746277,
-0.3148483335971832,
0.17463596165180206,
0.6444193124771118,
-0.23739007115364075,
-0.0952429324388504,
-0.3729637861251831,
0.4732413589954376,
0.07805269211530685,
-0.4257936179637909,
-0.026563089340925217,
-0.26854634284973145,
-0.10555168986320496,
0.017070932313799858,
0.32546550035476685,
-0.2578275203704834,
0.3435429334640503,
0.00941354688256979,
0.07134485989809036,
-0.42507004737854004,
0.1581229865550995,
-0.16978764533996582,
0.026744384318590164,
0.16048875451087952,
-0.13076399266719818,
0.3355613946914673,
-0.12210825085639954,
-0.1611020565032959,
0.16005246341228485,
-0.03865161910653114,
-0.041747841984033585,
0.009187102317810059,
0.1570616066455841,
0.17532791197299957,
-0.3232637047767639,
0.03154053911566734,
-0.17938263714313507,
-0.5495162010192871,
0.17439024150371552,
-0.1816842257976532,
0.27164632081985474,
0.10364071279764175,
0.17338643968105316,
-0.10494726151227951,
0.7099816799163818,
-0.17317649722099304,
-0.24961937963962555,
-0.6116565465927124,
0.238290935754776,
-0.08035745471715927,
-0.02955198846757412,
-0.047171156853437424,
0.02962806634604931,
0.21220265328884125,
0.4242189824581146,
-0.478241890668869,
-0.4002627730369568,
-0.16716614365577698,
0.22946767508983612,
-0.24203552305698395,
-0.032156988978385925,
0.179103821516037,
-0.14865446090698242,
-0.07347264885902405,
-0.1409638375043869,
-0.028164079412817955,
0.052829187363386154,
0.009464691393077374,
0.2762106657028198,
0.2927938997745514,
0.21926258504390717,
0.32078421115875244,
0.7062379717826843,
-0.15945753455162048,
0.25005558133125305,
0.27551794052124023,
0.1817435771226883,
0.6162170171737671,
0.09052630513906479,
-0.05360362306237221,
0.040100011974573135,
0.008074064739048481,
-0.615044116973877,
0.018974697217345238,
-0.03327062353491783,
0.13807763159275055,
-0.028210269287228584,
-0.3949749171733856,
0.07973632216453552,
-0.2690039873123169,
0.3064285218715668,
-0.4407607913017273,
0.2631151080131531,
-0.26249590516090393,
0.0036537162959575653,
-0.36617013812065125,
-0.0888015627861023,
-0.027878014370799065,
0.09572465717792511,
0.516389787197113,
0.1993706077337265,
-0.2578812539577484,
-0.2660914361476898,
-0.5647942423820496,
0.32531583309173584,
-0.006048333365470171,
0.12446140497922897,
-0.3100084364414215,
0.07452922314405441,
-0.08088140934705734,
0.01012722309678793,
0.7869895696640015,
-0.09053642302751541,
0.2198173552751541,
0.08223861455917358,
0.02576530911028385,
-0.5359349846839905,
-0.01084910798817873,
0.13685601949691772,
0.3804580271244049,
-0.07197004556655884,
0.4385930895805359,
-0.17676983773708344,
0.1249719113111496,
-0.4394179880619049,
0.36068981885910034,
-0.33069220185279846,
-0.24158835411071777,
-0.38548025488853455,
-0.38147491216659546,
-0.48330065608024597,
0.44739028811454773,
0.45651692152023315,
0.25278592109680176,
-0.04835229367017746,
0.3299102783203125,
-0.17026332020759583,
-0.014961177483201027,
0.1736515611410141,
-0.007580084260553122,
0.4432085156440735,
-0.13666671514511108,
0.04138927906751633,
0.10192031413316727,
-0.0565786138176918,
0.42775481939315796,
0.41325822472572327,
0.10969618707895279,
0.15321114659309387,
0.2755294442176819,
0.015611952170729637,
0.333952397108078,
0.3349303901195526,
-0.07208298146724701,
0.02724182978272438,
0.11594650894403458,
0.2456975281238556,
-0.4392107129096985,
-0.06493625789880753,
-0.39375320076942444,
-0.053410738706588745,
-0.0902632400393486,
-0.02069704234600067,
0.3726738691329956,
0.35260218381881714,
0.017791565507650375,
0.07021545618772507,
0.3179871439933777,
-0.31271567940711975,
0.2607078552246094,
-0.026027431711554527,
0.8725865483283997,
-0.0851958766579628,
0.0190446600317955,
0.06687192618846893,
0.3008270859718323,
0.34014326333999634,
-0.4726661741733551,
0.36130765080451965,
0.04408472031354904,
-0.2942006587982178,
0.03258153051137924,
-0.012193524278700352,
-0.021077588200569153,
0.29593414068222046,
-0.16884489357471466,
0.4016993045806885,
-0.5068138837814331,
0.012193987146019936,
-0.0954146534204483,
0.1365528255701065,
-0.6846150159835815,
-0.37429556250572205,
-0.23896756768226624,
0.1206890270113945,
-0.1377958059310913,
0.21030038595199585,
-0.24510453641414642,
0.108656145632267,
0.0337136872112751,
-0.31288498640060425,
-0.36626681685447693,
-0.1701536476612091,
0.026717988774180412,
0.30356937646865845,
-0.17898522317409515,
0.02364315837621689,
-0.08937318623065948,
0.1346770077943802,
0.215277761220932,
0.3010419011116028,
-0.14354635775089264,
0.10248032212257385,
-0.15729190409183502,
-0.05579756572842598,
0.06480635702610016,
0.07522287964820862,
0.11239784955978394,
0.0016256612725555897,
-0.30968672037124634,
0.15746498107910156,
-0.2591038644313812,
-0.4899290204048157,
0.029062340036034584,
-0.043814290314912796,
-0.29428985714912415,
-0.0338735468685627,
-0.2902979850769043,
-0.45660021901130676,
-0.005463455803692341,
-0.08768325299024582,
0.06650680303573608,
0.019174374639987946,
-0.11894810199737549,
0.14763538539409637,
0.02352587878704071,
-0.20440952479839325,
0.11642161756753922,
0.19072353839874268,
0.17154835164546967,
-0.3462996780872345,
0.38599634170532227,
-0.37319833040237427,
-0.0873679518699646,
-0.17369388043880463,
-0.1504092812538147,
-0.13429872691631317,
0.09508267790079117,
0.34302568435668945,
-0.07940389215946198,
-0.12857937812805176,
-0.24275095760822296,
-0.23101283609867096,
0.6502945423126221,
0.426238089799881,
-0.14408330619335175,
-0.47837650775909424,
-0.37318316102027893,
0.26766476035118103,
0.08030028641223907,
0.23816069960594177,
-0.0641208216547966,
-0.09848769009113312,
0.030608702450990677,
0.1129469946026802,
-0.2559909224510193,
-0.05578715726733208,
-0.44073399901390076,
0.007171593606472015,
0.21178556978702545,
0.12637628614902496,
0.21430306136608124,
-0.0947057381272316,
-0.08272810280323029,
0.1265944391489029,
-0.0557575561106205,
-0.11263591796159744,
0.04496188461780548,
0.15062783658504486,
0.04691864177584648,
0.1951722651720047,
0.17354357242584229,
-0.4588235020637512,
0.2376367449760437,
-0.2655065357685089,
0.17537616193294525,
0.41826900839805603,
-0.045481450855731964,
-0.34155720472335815,
0.07465754449367523,
0.4974750578403473,
-0.17092376947402954,
0.14223183691501617,
0.1285942792892456,
0.1546490341424942,
-0.2296801209449768,
0.184286966919899,
0.1251480132341385,
0.14174029231071472,
0.23668637871742249,
-0.11207878589630127,
0.22014379501342773,
0.038521990180015564,
-0.154571071267128,
0.06847143918275833,
-0.04480205103754997,
0.2478228509426117,
0.2652955651283264,
-0.07904451340436935,
-0.029399048537015915,
0.03380577266216278,
0.06988354027271271,
0.21730972826480865,
-0.2394903600215912,
-0.11724872887134552,
0.23962830007076263,
-0.029939111322164536,
0.11975673586130142,
0.5013856291770935,
0.38761410117149353,
-0.3748738765716553,
0.07454225420951843,
0.0923805683851242,
0.5648562908172607,
-0.26017630100250244,
0.04130959510803223,
0.13369517028331757,
0.05060681328177452,
0.003041954943910241,
0.14901010692119598,
-0.06330112367868423,
0.3891545832157135,
0.30703940987586975,
-0.17135392129421234,
0.21597236394882202,
0.24081185460090637,
-0.12086082249879837,
-0.1497630923986435,
-0.4051089286804199,
0.0863523855805397,
0.08172875642776489,
0.042583368718624115,
0.13044629991054535,
-0.3192768096923828,
-0.047600626945495605,
-0.3641907870769501,
-0.19654087722301483,
-0.2249186784029007,
-0.11324135959148407,
-0.4139752984046936,
-0.010649199597537518,
-0.018117206171154976,
-0.08793187141418457,
-0.027367468923330307,
-0.12374754250049591,
0.35692545771598816,
-0.3851693868637085,
0.3071930706501007,
0.009147612378001213,
0.06227491796016693,
0.2990061044692993,
-0.2994197607040405,
0.46847790479660034,
0.16412922739982605,
-0.36845913529396057,
0.03779635950922966,
0.2732797861099243,
-0.2538943886756897,
0.299713134765625,
0.1712867170572281,
0.6783191561698914,
0.22274693846702576,
-0.09189630299806595,
0.06751563400030136,
0.03421520069241524,
0.07634939253330231,
-0.3394200801849365,
-0.023012923076748848,
0.06691823154687881,
-0.1332622766494751,
0.11456673592329025,
0.13749444484710693,
-0.0944962352514267,
0.22364617884159088,
0.011741859838366508,
0.26063698530197144,
-0.2572072148323059,
-0.12003525346517563,
-0.1719236969947815,
-0.19954967498779297,
-0.13376393914222717,
0.09174969792366028,
-0.2527792155742645,
-0.21109411120414734,
0.35246339440345764,
-0.05091581493616104,
0.18315255641937256,
0.19918863475322723,
0.06721251457929611,
-0.09606663882732391,
0.2713785171508789,
0.33813127875328064,
-0.5006521344184875,
-0.3073892891407013,
0.08907077461481094,
-0.5300477743148804,
0.2179003655910492,
-0.2879716157913208,
-0.07918906211853027,
-0.031629595905542374,
0.2162606418132782,
-0.035324662923812866,
-0.11000464856624603,
0.09238368272781372,
-0.08695510029792786,
-0.06845749914646149,
-0.15444938838481903,
-0.26337912678718567,
-0.2788788676261902,
-0.08781545609235764,
-0.2979597747325897,
0.2715916037559509,
-0.5973240733146667,
-0.04767140746116638,
0.10969915986061096,
0.06260484457015991,
0.08089568465948105,
-0.006934524979442358,
0.23120222985744476,
0.44211480021476746,
0.323679119348526,
-0.0014009432634338737,
0.45332151651382446,
0.06917830556631088,
-0.15781809389591217,
-0.35559943318367004,
-0.05122746154665947,
-0.1567314863204956,
0.0503358393907547,
0.12298188358545303,
0.23972448706626892,
-0.6420224905014038,
0.08903692662715912,
-0.23719574511051178,
0.24776968359947205,
0.06780708581209183,
-0.07973413914442062,
0.09804753214120865,
-0.023893527686595917,
-0.34318873286247253,
0.19829486310482025,
0.23607489466667175,
0.23017729818820953,
-0.06586279720067978,
0.32704317569732666,
-0.19334714114665985,
-0.15631523728370667,
0.48298752307891846,
-0.13969287276268005,
-0.3495692312717438,
-0.22467680275440216,
0.4760473668575287,
0.057769667357206345,
-0.040422528982162476,
-0.19705049693584442,
-0.08895669132471085,
0.18535375595092773,
0.07910503447055817,
0.06320055574178696,
-0.17947538197040558,
-0.2648893892765045,
-0.2492375671863556,
-0.013969553634524345,
0.20918014645576477,
-0.3121143579483032,
-0.3135882019996643,
0.03507346659898758,
-0.20943893492221832
] |
https://github.com/huggingface/datasets/issues/1785 | Not enough disk space (Needed: Unknown size) when caching on a cluster | That's an interesting behavior...
Do you know any other way to get the free space that works in your case ?
Also if it's a permission issue could you try fix the permissions and let mus know if that helped ? | I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space? | 41 | Not enough disk space (Needed: Unknown size) when caching on a cluster
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space?
That's an interesting behavior...
Do you know any other way to get the free space that works in your case ?
Also if it's a permission issue could you try fix the permissions and let mus know if that helped ? | [
-0.07774288952350616,
-0.41871702671051025,
-0.0846218541264534,
0.24316053092479706,
-0.09700983017683029,
0.15066014230251312,
0.07053445279598236,
0.34012123942375183,
0.396234929561615,
0.39331603050231934,
0.41839298605918884,
-0.13893121480941772,
-0.0912499651312828,
0.003891478292644024,
-0.17395858466625214,
0.24173209071159363,
-0.008229834958910942,
-0.06064518913626671,
0.3455672264099121,
0.1274867057800293,
-0.4057287871837616,
0.013044103048741817,
0.09445047378540039,
-0.37361401319503784,
-0.5426245331764221,
-0.18809249997138977,
-0.16628068685531616,
0.1566852480173111,
0.22696205973625183,
-0.22474305331707,
0.3221062123775482,
-0.005495274439454079,
-0.10113929957151413,
0.5720776319503784,
-0.00011594401439651847,
0.03631250187754631,
0.17152510583400726,
-0.18090511858463287,
-0.43993768095970154,
-0.03869561478495598,
0.21730422973632812,
-0.4069226086139679,
-0.22335879504680634,
-0.36196601390838623,
-0.010308967903256416,
0.16035668551921844,
-0.05118102207779884,
-0.4436119794845581,
0.17652523517608643,
-0.06918394565582275,
0.16796931624412537,
0.35300540924072266,
-0.22030183672904968,
-0.09261415898799896,
-0.26594120264053345,
0.17672336101531982,
-0.04691307619214058,
0.5180593132972717,
0.29926300048828125,
0.07531514763832092,
-0.2787306010723114,
0.2208094596862793,
-0.1333250105381012,
0.1601160317659378,
0.41381457448005676,
-0.13599751889705658,
-0.07452762126922607,
-0.18451376259326935,
0.19623786211013794,
-0.026867084205150604,
0.4277344048023224,
-0.1950320452451706,
-0.5273441076278687,
-0.5711028575897217,
0.050052959471940994,
-0.1597716063261032,
0.43965864181518555,
0.03642578050494194,
-0.40968748927116394,
0.1226714551448822,
-0.30185914039611816,
-0.3372611701488495,
-0.2010517716407776,
-0.20997749269008636,
0.05320871248841286,
0.16412986814975739,
0.0016835296992212534,
0.08308514952659607,
0.32703280448913574,
0.017501335591077805,
-0.025625910609960556,
0.026436196640133858,
0.17296095192432404,
0.2536419630050659,
-0.2865467369556427,
0.015175816603004932,
-0.09484075009822845,
0.21012328565120697,
0.10111894458532333,
0.21069858968257904,
0.061005838215351105,
-0.11254090070724487,
0.07357285171747208,
0.25406670570373535,
0.013657832518219948,
0.24661211669445038,
-0.26506730914115906,
-0.09788813441991806,
0.20305727422237396,
-0.0030460781417787075,
0.17353923618793488,
-0.11332003027200699,
0.048171982169151306,
-0.3508071303367615,
0.11620283126831055,
-0.01808820106089115,
0.20401303470134735,
-0.07148497551679611,
-0.3821853995323181,
0.12724798917770386,
0.20500513911247253,
0.3049910068511963,
0.21228188276290894,
0.28485462069511414,
0.08105023205280304,
0.2399788647890091,
0.21884191036224365,
0.1994525045156479,
-0.09023409336805344,
-0.09682647138834,
-0.11598099768161774,
-0.014707108959555626,
0.08853039890527725,
0.16931605339050293,
0.3448052406311035,
0.036770500242710114,
0.2115975022315979,
-0.01790425181388855,
0.4590660631656647,
-0.10544592887163162,
-0.07217616587877274,
-0.23526178300380707,
-0.11916287988424301,
0.42335179448127747,
0.11977585405111313,
0.011757089756429195,
0.25198253989219666,
0.15005068480968475,
-0.15103831887245178,
0.267790824174881,
-0.38364362716674805,
-0.45535942912101746,
0.04401949420571327,
0.07246261835098267,
-0.35284167528152466,
0.2011190503835678,
-0.4066093862056732,
-0.03843988478183746,
0.30972447991371155,
-0.1824394166469574,
0.1011647880077362,
0.09283839166164398,
-0.38870975375175476,
-0.24627067148685455,
0.13819411396980286,
0.3473311960697174,
-0.11425097286701202,
0.003716376144438982,
-0.31071704626083374,
0.16215574741363525,
0.05258793383836746,
0.4145960211753845,
0.13116280734539032,
0.13864387571811676,
-0.4277251362800598,
0.1380109041929245,
0.11270690709352493,
-0.330841988325119,
-0.5418029427528381,
0.3061305284500122,
-0.1718519926071167,
0.2516018748283386,
0.5377890467643738,
0.2614459693431854,
-0.01633279398083687,
-0.2336912751197815,
0.23278690874576569,
0.2714539170265198,
-0.21969115734100342,
0.05634543299674988,
-0.35332757234573364,
-0.2634565234184265,
0.02787197381258011,
0.06142935901880264,
0.3454008996486664,
0.10856427252292633,
0.010947959497570992,
-0.006002755835652351,
0.1818709671497345,
0.054979659616947174,
0.20100590586662292,
0.3193236291408539,
0.3190518319606781,
-0.34445902705192566,
-0.07386588305234909,
0.02172456495463848,
-0.5194777250289917,
0.3491623103618622,
0.19307170808315277,
-0.21001484990119934,
-0.06464958190917969,
-0.4432947635650635,
-0.28096291422843933,
0.062207773327827454,
0.24829380214214325,
0.3274296224117279,
0.04864668473601341,
-0.037388358265161514,
0.24946698546409607,
-0.30693528056144714,
-0.05964985489845276,
0.1668299436569214,
-0.2572430670261383,
-0.057898420840501785,
0.10287661850452423,
-0.03716321662068367,
-0.04239116981625557,
-0.1400396078824997,
0.049448415637016296,
0.06461042165756226,
0.06502678990364075,
0.1349683552980423,
-0.014335219748318195,
0.41349074244499207,
-0.1063750609755516,
0.22477182745933533,
-0.09035085141658783,
0.13459981977939606,
0.15231341123580933,
0.351261168718338,
0.0020522517152130604,
0.17524005472660065,
0.006947124842554331,
-0.1697661280632019,
-0.11104368418455124,
0.2095978707075119,
-0.0455695316195488,
0.2853599488735199,
-0.08265827596187592,
0.06405846029520035,
0.062438108026981354,
0.05603836104273796,
0.12377571314573288,
-0.059289734810590744,
0.29012978076934814,
-0.19665706157684326,
0.4879353642463684,
0.08131768554449081,
0.022846825420856476,
-0.014420188032090664,
0.06943953782320023,
0.15922804176807404,
0.2913537323474884,
0.15650686621665955,
0.2970969080924988,
-0.03452175483107567,
-0.0058796522207558155,
0.28174054622650146,
0.26641470193862915,
0.15600261092185974,
0.015309480018913746,
-0.17531843483448029,
0.04518727958202362,
-0.20555908977985382,
0.052819862961769104,
-0.05030118674039841,
0.15801866352558136,
0.29221096634864807,
0.006730163004249334,
-0.2964168190956116,
0.09604645520448685,
-0.3090459406375885,
0.21551162004470825,
0.07729799300432205,
-0.2874603867530823,
-0.05790763348340988,
0.055779892951250076,
0.1828184574842453,
0.0615939125418663,
0.18895982205867767,
-0.4589173197746277,
-0.3148483335971832,
0.17463596165180206,
0.6444193124771118,
-0.23739007115364075,
-0.0952429324388504,
-0.3729637861251831,
0.4732413589954376,
0.07805269211530685,
-0.4257936179637909,
-0.026563089340925217,
-0.26854634284973145,
-0.10555168986320496,
0.017070932313799858,
0.32546550035476685,
-0.2578275203704834,
0.3435429334640503,
0.00941354688256979,
0.07134485989809036,
-0.42507004737854004,
0.1581229865550995,
-0.16978764533996582,
0.026744384318590164,
0.16048875451087952,
-0.13076399266719818,
0.3355613946914673,
-0.12210825085639954,
-0.1611020565032959,
0.16005246341228485,
-0.03865161910653114,
-0.041747841984033585,
0.009187102317810059,
0.1570616066455841,
0.17532791197299957,
-0.3232637047767639,
0.03154053911566734,
-0.17938263714313507,
-0.5495162010192871,
0.17439024150371552,
-0.1816842257976532,
0.27164632081985474,
0.10364071279764175,
0.17338643968105316,
-0.10494726151227951,
0.7099816799163818,
-0.17317649722099304,
-0.24961937963962555,
-0.6116565465927124,
0.238290935754776,
-0.08035745471715927,
-0.02955198846757412,
-0.047171156853437424,
0.02962806634604931,
0.21220265328884125,
0.4242189824581146,
-0.478241890668869,
-0.4002627730369568,
-0.16716614365577698,
0.22946767508983612,
-0.24203552305698395,
-0.032156988978385925,
0.179103821516037,
-0.14865446090698242,
-0.07347264885902405,
-0.1409638375043869,
-0.028164079412817955,
0.052829187363386154,
0.009464691393077374,
0.2762106657028198,
0.2927938997745514,
0.21926258504390717,
0.32078421115875244,
0.7062379717826843,
-0.15945753455162048,
0.25005558133125305,
0.27551794052124023,
0.1817435771226883,
0.6162170171737671,
0.09052630513906479,
-0.05360362306237221,
0.040100011974573135,
0.008074064739048481,
-0.615044116973877,
0.018974697217345238,
-0.03327062353491783,
0.13807763159275055,
-0.028210269287228584,
-0.3949749171733856,
0.07973632216453552,
-0.2690039873123169,
0.3064285218715668,
-0.4407607913017273,
0.2631151080131531,
-0.26249590516090393,
0.0036537162959575653,
-0.36617013812065125,
-0.0888015627861023,
-0.027878014370799065,
0.09572465717792511,
0.516389787197113,
0.1993706077337265,
-0.2578812539577484,
-0.2660914361476898,
-0.5647942423820496,
0.32531583309173584,
-0.006048333365470171,
0.12446140497922897,
-0.3100084364414215,
0.07452922314405441,
-0.08088140934705734,
0.01012722309678793,
0.7869895696640015,
-0.09053642302751541,
0.2198173552751541,
0.08223861455917358,
0.02576530911028385,
-0.5359349846839905,
-0.01084910798817873,
0.13685601949691772,
0.3804580271244049,
-0.07197004556655884,
0.4385930895805359,
-0.17676983773708344,
0.1249719113111496,
-0.4394179880619049,
0.36068981885910034,
-0.33069220185279846,
-0.24158835411071777,
-0.38548025488853455,
-0.38147491216659546,
-0.48330065608024597,
0.44739028811454773,
0.45651692152023315,
0.25278592109680176,
-0.04835229367017746,
0.3299102783203125,
-0.17026332020759583,
-0.014961177483201027,
0.1736515611410141,
-0.007580084260553122,
0.4432085156440735,
-0.13666671514511108,
0.04138927906751633,
0.10192031413316727,
-0.0565786138176918,
0.42775481939315796,
0.41325822472572327,
0.10969618707895279,
0.15321114659309387,
0.2755294442176819,
0.015611952170729637,
0.333952397108078,
0.3349303901195526,
-0.07208298146724701,
0.02724182978272438,
0.11594650894403458,
0.2456975281238556,
-0.4392107129096985,
-0.06493625789880753,
-0.39375320076942444,
-0.053410738706588745,
-0.0902632400393486,
-0.02069704234600067,
0.3726738691329956,
0.35260218381881714,
0.017791565507650375,
0.07021545618772507,
0.3179871439933777,
-0.31271567940711975,
0.2607078552246094,
-0.026027431711554527,
0.8725865483283997,
-0.0851958766579628,
0.0190446600317955,
0.06687192618846893,
0.3008270859718323,
0.34014326333999634,
-0.4726661741733551,
0.36130765080451965,
0.04408472031354904,
-0.2942006587982178,
0.03258153051137924,
-0.012193524278700352,
-0.021077588200569153,
0.29593414068222046,
-0.16884489357471466,
0.4016993045806885,
-0.5068138837814331,
0.012193987146019936,
-0.0954146534204483,
0.1365528255701065,
-0.6846150159835815,
-0.37429556250572205,
-0.23896756768226624,
0.1206890270113945,
-0.1377958059310913,
0.21030038595199585,
-0.24510453641414642,
0.108656145632267,
0.0337136872112751,
-0.31288498640060425,
-0.36626681685447693,
-0.1701536476612091,
0.026717988774180412,
0.30356937646865845,
-0.17898522317409515,
0.02364315837621689,
-0.08937318623065948,
0.1346770077943802,
0.215277761220932,
0.3010419011116028,
-0.14354635775089264,
0.10248032212257385,
-0.15729190409183502,
-0.05579756572842598,
0.06480635702610016,
0.07522287964820862,
0.11239784955978394,
0.0016256612725555897,
-0.30968672037124634,
0.15746498107910156,
-0.2591038644313812,
-0.4899290204048157,
0.029062340036034584,
-0.043814290314912796,
-0.29428985714912415,
-0.0338735468685627,
-0.2902979850769043,
-0.45660021901130676,
-0.005463455803692341,
-0.08768325299024582,
0.06650680303573608,
0.019174374639987946,
-0.11894810199737549,
0.14763538539409637,
0.02352587878704071,
-0.20440952479839325,
0.11642161756753922,
0.19072353839874268,
0.17154835164546967,
-0.3462996780872345,
0.38599634170532227,
-0.37319833040237427,
-0.0873679518699646,
-0.17369388043880463,
-0.1504092812538147,
-0.13429872691631317,
0.09508267790079117,
0.34302568435668945,
-0.07940389215946198,
-0.12857937812805176,
-0.24275095760822296,
-0.23101283609867096,
0.6502945423126221,
0.426238089799881,
-0.14408330619335175,
-0.47837650775909424,
-0.37318316102027893,
0.26766476035118103,
0.08030028641223907,
0.23816069960594177,
-0.0641208216547966,
-0.09848769009113312,
0.030608702450990677,
0.1129469946026802,
-0.2559909224510193,
-0.05578715726733208,
-0.44073399901390076,
0.007171593606472015,
0.21178556978702545,
0.12637628614902496,
0.21430306136608124,
-0.0947057381272316,
-0.08272810280323029,
0.1265944391489029,
-0.0557575561106205,
-0.11263591796159744,
0.04496188461780548,
0.15062783658504486,
0.04691864177584648,
0.1951722651720047,
0.17354357242584229,
-0.4588235020637512,
0.2376367449760437,
-0.2655065357685089,
0.17537616193294525,
0.41826900839805603,
-0.045481450855731964,
-0.34155720472335815,
0.07465754449367523,
0.4974750578403473,
-0.17092376947402954,
0.14223183691501617,
0.1285942792892456,
0.1546490341424942,
-0.2296801209449768,
0.184286966919899,
0.1251480132341385,
0.14174029231071472,
0.23668637871742249,
-0.11207878589630127,
0.22014379501342773,
0.038521990180015564,
-0.154571071267128,
0.06847143918275833,
-0.04480205103754997,
0.2478228509426117,
0.2652955651283264,
-0.07904451340436935,
-0.029399048537015915,
0.03380577266216278,
0.06988354027271271,
0.21730972826480865,
-0.2394903600215912,
-0.11724872887134552,
0.23962830007076263,
-0.029939111322164536,
0.11975673586130142,
0.5013856291770935,
0.38761410117149353,
-0.3748738765716553,
0.07454225420951843,
0.0923805683851242,
0.5648562908172607,
-0.26017630100250244,
0.04130959510803223,
0.13369517028331757,
0.05060681328177452,
0.003041954943910241,
0.14901010692119598,
-0.06330112367868423,
0.3891545832157135,
0.30703940987586975,
-0.17135392129421234,
0.21597236394882202,
0.24081185460090637,
-0.12086082249879837,
-0.1497630923986435,
-0.4051089286804199,
0.0863523855805397,
0.08172875642776489,
0.042583368718624115,
0.13044629991054535,
-0.3192768096923828,
-0.047600626945495605,
-0.3641907870769501,
-0.19654087722301483,
-0.2249186784029007,
-0.11324135959148407,
-0.4139752984046936,
-0.010649199597537518,
-0.018117206171154976,
-0.08793187141418457,
-0.027367468923330307,
-0.12374754250049591,
0.35692545771598816,
-0.3851693868637085,
0.3071930706501007,
0.009147612378001213,
0.06227491796016693,
0.2990061044692993,
-0.2994197607040405,
0.46847790479660034,
0.16412922739982605,
-0.36845913529396057,
0.03779635950922966,
0.2732797861099243,
-0.2538943886756897,
0.299713134765625,
0.1712867170572281,
0.6783191561698914,
0.22274693846702576,
-0.09189630299806595,
0.06751563400030136,
0.03421520069241524,
0.07634939253330231,
-0.3394200801849365,
-0.023012923076748848,
0.06691823154687881,
-0.1332622766494751,
0.11456673592329025,
0.13749444484710693,
-0.0944962352514267,
0.22364617884159088,
0.011741859838366508,
0.26063698530197144,
-0.2572072148323059,
-0.12003525346517563,
-0.1719236969947815,
-0.19954967498779297,
-0.13376393914222717,
0.09174969792366028,
-0.2527792155742645,
-0.21109411120414734,
0.35246339440345764,
-0.05091581493616104,
0.18315255641937256,
0.19918863475322723,
0.06721251457929611,
-0.09606663882732391,
0.2713785171508789,
0.33813127875328064,
-0.5006521344184875,
-0.3073892891407013,
0.08907077461481094,
-0.5300477743148804,
0.2179003655910492,
-0.2879716157913208,
-0.07918906211853027,
-0.031629595905542374,
0.2162606418132782,
-0.035324662923812866,
-0.11000464856624603,
0.09238368272781372,
-0.08695510029792786,
-0.06845749914646149,
-0.15444938838481903,
-0.26337912678718567,
-0.2788788676261902,
-0.08781545609235764,
-0.2979597747325897,
0.2715916037559509,
-0.5973240733146667,
-0.04767140746116638,
0.10969915986061096,
0.06260484457015991,
0.08089568465948105,
-0.006934524979442358,
0.23120222985744476,
0.44211480021476746,
0.323679119348526,
-0.0014009432634338737,
0.45332151651382446,
0.06917830556631088,
-0.15781809389591217,
-0.35559943318367004,
-0.05122746154665947,
-0.1567314863204956,
0.0503358393907547,
0.12298188358545303,
0.23972448706626892,
-0.6420224905014038,
0.08903692662715912,
-0.23719574511051178,
0.24776968359947205,
0.06780708581209183,
-0.07973413914442062,
0.09804753214120865,
-0.023893527686595917,
-0.34318873286247253,
0.19829486310482025,
0.23607489466667175,
0.23017729818820953,
-0.06586279720067978,
0.32704317569732666,
-0.19334714114665985,
-0.15631523728370667,
0.48298752307891846,
-0.13969287276268005,
-0.3495692312717438,
-0.22467680275440216,
0.4760473668575287,
0.057769667357206345,
-0.040422528982162476,
-0.19705049693584442,
-0.08895669132471085,
0.18535375595092773,
0.07910503447055817,
0.06320055574178696,
-0.17947538197040558,
-0.2648893892765045,
-0.2492375671863556,
-0.013969553634524345,
0.20918014645576477,
-0.3121143579483032,
-0.3135882019996643,
0.03507346659898758,
-0.20943893492221832
] |
https://github.com/huggingface/datasets/issues/1785 | Not enough disk space (Needed: Unknown size) when caching on a cluster | I think its an issue on the clusters end (unclear exactly why -- maybe something with docker containers?), will close the issue | I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space? | 22 | Not enough disk space (Needed: Unknown size) when caching on a cluster
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk.
The exact error thrown:
```bash
>>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path")
OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
```
[`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk).
This is exactly where the error gets thrown:
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502
```python
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
utils.size_str(self.info.dataset_size or 0),
utils.size_str(self.info.post_processing_size or 0),
)
)
```
What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal.
Would it be possible to pass a flag to skip this check on disk space?
I think its an issue on the clusters end (unclear exactly why -- maybe something with docker containers?), will close the issue | [
-0.07774288952350616,
-0.41871702671051025,
-0.0846218541264534,
0.24316053092479706,
-0.09700983017683029,
0.15066014230251312,
0.07053445279598236,
0.34012123942375183,
0.396234929561615,
0.39331603050231934,
0.41839298605918884,
-0.13893121480941772,
-0.0912499651312828,
0.003891478292644024,
-0.17395858466625214,
0.24173209071159363,
-0.008229834958910942,
-0.06064518913626671,
0.3455672264099121,
0.1274867057800293,
-0.4057287871837616,
0.013044103048741817,
0.09445047378540039,
-0.37361401319503784,
-0.5426245331764221,
-0.18809249997138977,
-0.16628068685531616,
0.1566852480173111,
0.22696205973625183,
-0.22474305331707,
0.3221062123775482,
-0.005495274439454079,
-0.10113929957151413,
0.5720776319503784,
-0.00011594401439651847,
0.03631250187754631,
0.17152510583400726,
-0.18090511858463287,
-0.43993768095970154,
-0.03869561478495598,
0.21730422973632812,
-0.4069226086139679,
-0.22335879504680634,
-0.36196601390838623,
-0.010308967903256416,
0.16035668551921844,
-0.05118102207779884,
-0.4436119794845581,
0.17652523517608643,
-0.06918394565582275,
0.16796931624412537,
0.35300540924072266,
-0.22030183672904968,
-0.09261415898799896,
-0.26594120264053345,
0.17672336101531982,
-0.04691307619214058,
0.5180593132972717,
0.29926300048828125,
0.07531514763832092,
-0.2787306010723114,
0.2208094596862793,
-0.1333250105381012,
0.1601160317659378,
0.41381457448005676,
-0.13599751889705658,
-0.07452762126922607,
-0.18451376259326935,
0.19623786211013794,
-0.026867084205150604,
0.4277344048023224,
-0.1950320452451706,
-0.5273441076278687,
-0.5711028575897217,
0.050052959471940994,
-0.1597716063261032,
0.43965864181518555,
0.03642578050494194,
-0.40968748927116394,
0.1226714551448822,
-0.30185914039611816,
-0.3372611701488495,
-0.2010517716407776,
-0.20997749269008636,
0.05320871248841286,
0.16412986814975739,
0.0016835296992212534,
0.08308514952659607,
0.32703280448913574,
0.017501335591077805,
-0.025625910609960556,
0.026436196640133858,
0.17296095192432404,
0.2536419630050659,
-0.2865467369556427,
0.015175816603004932,
-0.09484075009822845,
0.21012328565120697,
0.10111894458532333,
0.21069858968257904,
0.061005838215351105,
-0.11254090070724487,
0.07357285171747208,
0.25406670570373535,
0.013657832518219948,
0.24661211669445038,
-0.26506730914115906,
-0.09788813441991806,
0.20305727422237396,
-0.0030460781417787075,
0.17353923618793488,
-0.11332003027200699,
0.048171982169151306,
-0.3508071303367615,
0.11620283126831055,
-0.01808820106089115,
0.20401303470134735,
-0.07148497551679611,
-0.3821853995323181,
0.12724798917770386,
0.20500513911247253,
0.3049910068511963,
0.21228188276290894,
0.28485462069511414,
0.08105023205280304,
0.2399788647890091,
0.21884191036224365,
0.1994525045156479,
-0.09023409336805344,
-0.09682647138834,
-0.11598099768161774,
-0.014707108959555626,
0.08853039890527725,
0.16931605339050293,
0.3448052406311035,
0.036770500242710114,
0.2115975022315979,
-0.01790425181388855,
0.4590660631656647,
-0.10544592887163162,
-0.07217616587877274,
-0.23526178300380707,
-0.11916287988424301,
0.42335179448127747,
0.11977585405111313,
0.011757089756429195,
0.25198253989219666,
0.15005068480968475,
-0.15103831887245178,
0.267790824174881,
-0.38364362716674805,
-0.45535942912101746,
0.04401949420571327,
0.07246261835098267,
-0.35284167528152466,
0.2011190503835678,
-0.4066093862056732,
-0.03843988478183746,
0.30972447991371155,
-0.1824394166469574,
0.1011647880077362,
0.09283839166164398,
-0.38870975375175476,
-0.24627067148685455,
0.13819411396980286,
0.3473311960697174,
-0.11425097286701202,
0.003716376144438982,
-0.31071704626083374,
0.16215574741363525,
0.05258793383836746,
0.4145960211753845,
0.13116280734539032,
0.13864387571811676,
-0.4277251362800598,
0.1380109041929245,
0.11270690709352493,
-0.330841988325119,
-0.5418029427528381,
0.3061305284500122,
-0.1718519926071167,
0.2516018748283386,
0.5377890467643738,
0.2614459693431854,
-0.01633279398083687,
-0.2336912751197815,
0.23278690874576569,
0.2714539170265198,
-0.21969115734100342,
0.05634543299674988,
-0.35332757234573364,
-0.2634565234184265,
0.02787197381258011,
0.06142935901880264,
0.3454008996486664,
0.10856427252292633,
0.010947959497570992,
-0.006002755835652351,
0.1818709671497345,
0.054979659616947174,
0.20100590586662292,
0.3193236291408539,
0.3190518319606781,
-0.34445902705192566,
-0.07386588305234909,
0.02172456495463848,
-0.5194777250289917,
0.3491623103618622,
0.19307170808315277,
-0.21001484990119934,
-0.06464958190917969,
-0.4432947635650635,
-0.28096291422843933,
0.062207773327827454,
0.24829380214214325,
0.3274296224117279,
0.04864668473601341,
-0.037388358265161514,
0.24946698546409607,
-0.30693528056144714,
-0.05964985489845276,
0.1668299436569214,
-0.2572430670261383,
-0.057898420840501785,
0.10287661850452423,
-0.03716321662068367,
-0.04239116981625557,
-0.1400396078824997,
0.049448415637016296,
0.06461042165756226,
0.06502678990364075,
0.1349683552980423,
-0.014335219748318195,
0.41349074244499207,
-0.1063750609755516,
0.22477182745933533,
-0.09035085141658783,
0.13459981977939606,
0.15231341123580933,
0.351261168718338,
0.0020522517152130604,
0.17524005472660065,
0.006947124842554331,
-0.1697661280632019,
-0.11104368418455124,
0.2095978707075119,
-0.0455695316195488,
0.2853599488735199,
-0.08265827596187592,
0.06405846029520035,
0.062438108026981354,
0.05603836104273796,
0.12377571314573288,
-0.059289734810590744,
0.29012978076934814,
-0.19665706157684326,
0.4879353642463684,
0.08131768554449081,
0.022846825420856476,
-0.014420188032090664,
0.06943953782320023,
0.15922804176807404,
0.2913537323474884,
0.15650686621665955,
0.2970969080924988,
-0.03452175483107567,
-0.0058796522207558155,
0.28174054622650146,
0.26641470193862915,
0.15600261092185974,
0.015309480018913746,
-0.17531843483448029,
0.04518727958202362,
-0.20555908977985382,
0.052819862961769104,
-0.05030118674039841,
0.15801866352558136,
0.29221096634864807,
0.006730163004249334,
-0.2964168190956116,
0.09604645520448685,
-0.3090459406375885,
0.21551162004470825,
0.07729799300432205,
-0.2874603867530823,
-0.05790763348340988,
0.055779892951250076,
0.1828184574842453,
0.0615939125418663,
0.18895982205867767,
-0.4589173197746277,
-0.3148483335971832,
0.17463596165180206,
0.6444193124771118,
-0.23739007115364075,
-0.0952429324388504,
-0.3729637861251831,
0.4732413589954376,
0.07805269211530685,
-0.4257936179637909,
-0.026563089340925217,
-0.26854634284973145,
-0.10555168986320496,
0.017070932313799858,
0.32546550035476685,
-0.2578275203704834,
0.3435429334640503,
0.00941354688256979,
0.07134485989809036,
-0.42507004737854004,
0.1581229865550995,
-0.16978764533996582,
0.026744384318590164,
0.16048875451087952,
-0.13076399266719818,
0.3355613946914673,
-0.12210825085639954,
-0.1611020565032959,
0.16005246341228485,
-0.03865161910653114,
-0.041747841984033585,
0.009187102317810059,
0.1570616066455841,
0.17532791197299957,
-0.3232637047767639,
0.03154053911566734,
-0.17938263714313507,
-0.5495162010192871,
0.17439024150371552,
-0.1816842257976532,
0.27164632081985474,
0.10364071279764175,
0.17338643968105316,
-0.10494726151227951,
0.7099816799163818,
-0.17317649722099304,
-0.24961937963962555,
-0.6116565465927124,
0.238290935754776,
-0.08035745471715927,
-0.02955198846757412,
-0.047171156853437424,
0.02962806634604931,
0.21220265328884125,
0.4242189824581146,
-0.478241890668869,
-0.4002627730369568,
-0.16716614365577698,
0.22946767508983612,
-0.24203552305698395,
-0.032156988978385925,
0.179103821516037,
-0.14865446090698242,
-0.07347264885902405,
-0.1409638375043869,
-0.028164079412817955,
0.052829187363386154,
0.009464691393077374,
0.2762106657028198,
0.2927938997745514,
0.21926258504390717,
0.32078421115875244,
0.7062379717826843,
-0.15945753455162048,
0.25005558133125305,
0.27551794052124023,
0.1817435771226883,
0.6162170171737671,
0.09052630513906479,
-0.05360362306237221,
0.040100011974573135,
0.008074064739048481,
-0.615044116973877,
0.018974697217345238,
-0.03327062353491783,
0.13807763159275055,
-0.028210269287228584,
-0.3949749171733856,
0.07973632216453552,
-0.2690039873123169,
0.3064285218715668,
-0.4407607913017273,
0.2631151080131531,
-0.26249590516090393,
0.0036537162959575653,
-0.36617013812065125,
-0.0888015627861023,
-0.027878014370799065,
0.09572465717792511,
0.516389787197113,
0.1993706077337265,
-0.2578812539577484,
-0.2660914361476898,
-0.5647942423820496,
0.32531583309173584,
-0.006048333365470171,
0.12446140497922897,
-0.3100084364414215,
0.07452922314405441,
-0.08088140934705734,
0.01012722309678793,
0.7869895696640015,
-0.09053642302751541,
0.2198173552751541,
0.08223861455917358,
0.02576530911028385,
-0.5359349846839905,
-0.01084910798817873,
0.13685601949691772,
0.3804580271244049,
-0.07197004556655884,
0.4385930895805359,
-0.17676983773708344,
0.1249719113111496,
-0.4394179880619049,
0.36068981885910034,
-0.33069220185279846,
-0.24158835411071777,
-0.38548025488853455,
-0.38147491216659546,
-0.48330065608024597,
0.44739028811454773,
0.45651692152023315,
0.25278592109680176,
-0.04835229367017746,
0.3299102783203125,
-0.17026332020759583,
-0.014961177483201027,
0.1736515611410141,
-0.007580084260553122,
0.4432085156440735,
-0.13666671514511108,
0.04138927906751633,
0.10192031413316727,
-0.0565786138176918,
0.42775481939315796,
0.41325822472572327,
0.10969618707895279,
0.15321114659309387,
0.2755294442176819,
0.015611952170729637,
0.333952397108078,
0.3349303901195526,
-0.07208298146724701,
0.02724182978272438,
0.11594650894403458,
0.2456975281238556,
-0.4392107129096985,
-0.06493625789880753,
-0.39375320076942444,
-0.053410738706588745,
-0.0902632400393486,
-0.02069704234600067,
0.3726738691329956,
0.35260218381881714,
0.017791565507650375,
0.07021545618772507,
0.3179871439933777,
-0.31271567940711975,
0.2607078552246094,
-0.026027431711554527,
0.8725865483283997,
-0.0851958766579628,
0.0190446600317955,
0.06687192618846893,
0.3008270859718323,
0.34014326333999634,
-0.4726661741733551,
0.36130765080451965,
0.04408472031354904,
-0.2942006587982178,
0.03258153051137924,
-0.012193524278700352,
-0.021077588200569153,
0.29593414068222046,
-0.16884489357471466,
0.4016993045806885,
-0.5068138837814331,
0.012193987146019936,
-0.0954146534204483,
0.1365528255701065,
-0.6846150159835815,
-0.37429556250572205,
-0.23896756768226624,
0.1206890270113945,
-0.1377958059310913,
0.21030038595199585,
-0.24510453641414642,
0.108656145632267,
0.0337136872112751,
-0.31288498640060425,
-0.36626681685447693,
-0.1701536476612091,
0.026717988774180412,
0.30356937646865845,
-0.17898522317409515,
0.02364315837621689,
-0.08937318623065948,
0.1346770077943802,
0.215277761220932,
0.3010419011116028,
-0.14354635775089264,
0.10248032212257385,
-0.15729190409183502,
-0.05579756572842598,
0.06480635702610016,
0.07522287964820862,
0.11239784955978394,
0.0016256612725555897,
-0.30968672037124634,
0.15746498107910156,
-0.2591038644313812,
-0.4899290204048157,
0.029062340036034584,
-0.043814290314912796,
-0.29428985714912415,
-0.0338735468685627,
-0.2902979850769043,
-0.45660021901130676,
-0.005463455803692341,
-0.08768325299024582,
0.06650680303573608,
0.019174374639987946,
-0.11894810199737549,
0.14763538539409637,
0.02352587878704071,
-0.20440952479839325,
0.11642161756753922,
0.19072353839874268,
0.17154835164546967,
-0.3462996780872345,
0.38599634170532227,
-0.37319833040237427,
-0.0873679518699646,
-0.17369388043880463,
-0.1504092812538147,
-0.13429872691631317,
0.09508267790079117,
0.34302568435668945,
-0.07940389215946198,
-0.12857937812805176,
-0.24275095760822296,
-0.23101283609867096,
0.6502945423126221,
0.426238089799881,
-0.14408330619335175,
-0.47837650775909424,
-0.37318316102027893,
0.26766476035118103,
0.08030028641223907,
0.23816069960594177,
-0.0641208216547966,
-0.09848769009113312,
0.030608702450990677,
0.1129469946026802,
-0.2559909224510193,
-0.05578715726733208,
-0.44073399901390076,
0.007171593606472015,
0.21178556978702545,
0.12637628614902496,
0.21430306136608124,
-0.0947057381272316,
-0.08272810280323029,
0.1265944391489029,
-0.0557575561106205,
-0.11263591796159744,
0.04496188461780548,
0.15062783658504486,
0.04691864177584648,
0.1951722651720047,
0.17354357242584229,
-0.4588235020637512,
0.2376367449760437,
-0.2655065357685089,
0.17537616193294525,
0.41826900839805603,
-0.045481450855731964,
-0.34155720472335815,
0.07465754449367523,
0.4974750578403473,
-0.17092376947402954,
0.14223183691501617,
0.1285942792892456,
0.1546490341424942,
-0.2296801209449768,
0.184286966919899,
0.1251480132341385,
0.14174029231071472,
0.23668637871742249,
-0.11207878589630127,
0.22014379501342773,
0.038521990180015564,
-0.154571071267128,
0.06847143918275833,
-0.04480205103754997,
0.2478228509426117,
0.2652955651283264,
-0.07904451340436935,
-0.029399048537015915,
0.03380577266216278,
0.06988354027271271,
0.21730972826480865,
-0.2394903600215912,
-0.11724872887134552,
0.23962830007076263,
-0.029939111322164536,
0.11975673586130142,
0.5013856291770935,
0.38761410117149353,
-0.3748738765716553,
0.07454225420951843,
0.0923805683851242,
0.5648562908172607,
-0.26017630100250244,
0.04130959510803223,
0.13369517028331757,
0.05060681328177452,
0.003041954943910241,
0.14901010692119598,
-0.06330112367868423,
0.3891545832157135,
0.30703940987586975,
-0.17135392129421234,
0.21597236394882202,
0.24081185460090637,
-0.12086082249879837,
-0.1497630923986435,
-0.4051089286804199,
0.0863523855805397,
0.08172875642776489,
0.042583368718624115,
0.13044629991054535,
-0.3192768096923828,
-0.047600626945495605,
-0.3641907870769501,
-0.19654087722301483,
-0.2249186784029007,
-0.11324135959148407,
-0.4139752984046936,
-0.010649199597537518,
-0.018117206171154976,
-0.08793187141418457,
-0.027367468923330307,
-0.12374754250049591,
0.35692545771598816,
-0.3851693868637085,
0.3071930706501007,
0.009147612378001213,
0.06227491796016693,
0.2990061044692993,
-0.2994197607040405,
0.46847790479660034,
0.16412922739982605,
-0.36845913529396057,
0.03779635950922966,
0.2732797861099243,
-0.2538943886756897,
0.299713134765625,
0.1712867170572281,
0.6783191561698914,
0.22274693846702576,
-0.09189630299806595,
0.06751563400030136,
0.03421520069241524,
0.07634939253330231,
-0.3394200801849365,
-0.023012923076748848,
0.06691823154687881,
-0.1332622766494751,
0.11456673592329025,
0.13749444484710693,
-0.0944962352514267,
0.22364617884159088,
0.011741859838366508,
0.26063698530197144,
-0.2572072148323059,
-0.12003525346517563,
-0.1719236969947815,
-0.19954967498779297,
-0.13376393914222717,
0.09174969792366028,
-0.2527792155742645,
-0.21109411120414734,
0.35246339440345764,
-0.05091581493616104,
0.18315255641937256,
0.19918863475322723,
0.06721251457929611,
-0.09606663882732391,
0.2713785171508789,
0.33813127875328064,
-0.5006521344184875,
-0.3073892891407013,
0.08907077461481094,
-0.5300477743148804,
0.2179003655910492,
-0.2879716157913208,
-0.07918906211853027,
-0.031629595905542374,
0.2162606418132782,
-0.035324662923812866,
-0.11000464856624603,
0.09238368272781372,
-0.08695510029792786,
-0.06845749914646149,
-0.15444938838481903,
-0.26337912678718567,
-0.2788788676261902,
-0.08781545609235764,
-0.2979597747325897,
0.2715916037559509,
-0.5973240733146667,
-0.04767140746116638,
0.10969915986061096,
0.06260484457015991,
0.08089568465948105,
-0.006934524979442358,
0.23120222985744476,
0.44211480021476746,
0.323679119348526,
-0.0014009432634338737,
0.45332151651382446,
0.06917830556631088,
-0.15781809389591217,
-0.35559943318367004,
-0.05122746154665947,
-0.1567314863204956,
0.0503358393907547,
0.12298188358545303,
0.23972448706626892,
-0.6420224905014038,
0.08903692662715912,
-0.23719574511051178,
0.24776968359947205,
0.06780708581209183,
-0.07973413914442062,
0.09804753214120865,
-0.023893527686595917,
-0.34318873286247253,
0.19829486310482025,
0.23607489466667175,
0.23017729818820953,
-0.06586279720067978,
0.32704317569732666,
-0.19334714114665985,
-0.15631523728370667,
0.48298752307891846,
-0.13969287276268005,
-0.3495692312717438,
-0.22467680275440216,
0.4760473668575287,
0.057769667357206345,
-0.040422528982162476,
-0.19705049693584442,
-0.08895669132471085,
0.18535375595092773,
0.07910503447055817,
0.06320055574178696,
-0.17947538197040558,
-0.2648893892765045,
-0.2492375671863556,
-0.013969553634524345,
0.20918014645576477,
-0.3121143579483032,
-0.3135882019996643,
0.03507346659898758,
-0.20943893492221832
] |
https://github.com/huggingface/datasets/issues/1784 | JSONDecodeError on JSON with multiple lines | Hi !
The `json` dataset script does support this format. For example loading a dataset with this format works on my side:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
Can you show the full stacktrace please ? Also which version of datasets and pyarrow are you using ?
| Hello :),
I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported.
When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either.
Please let me know :)
Thanks,
Gunjan | 49 | JSONDecodeError on JSON with multiple lines
Hello :),
I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported.
When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either.
Please let me know :)
Thanks,
Gunjan
Hi !
The `json` dataset script does support this format. For example loading a dataset with this format works on my side:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
Can you show the full stacktrace please ? Also which version of datasets and pyarrow are you using ?
| [
0.07569852471351624,
-0.004834028892219067,
-0.029282810166478157,
0.4874003529548645,
0.3547830581665039,
0.14951938390731812,
0.4615655839443207,
0.06345672905445099,
0.1587531715631485,
0.018791066482663155,
0.16414323449134827,
0.28063270449638367,
-0.04647229611873627,
0.21310165524482727,
0.07734128087759018,
-0.2579195499420166,
0.05452927574515343,
0.2539745569229126,
0.2304695099592209,
0.09392310678958893,
-0.1753568947315216,
0.2821830213069916,
-0.15588372945785522,
-0.08597768098115921,
-0.11649321019649506,
0.18214410543441772,
-0.1478191763162613,
0.22306616604328156,
0.11521929502487183,
-0.6116787195205688,
0.1991688311100006,
0.10720160603523254,
0.10276079922914505,
0.4384290277957916,
-0.00012228269770275801,
0.17845167219638824,
0.27980196475982666,
-0.24062734842300415,
-0.43775150179862976,
-0.24159182608127594,
-0.3200461268424988,
-0.21467146277427673,
0.3941475749015808,
-0.21646617352962494,
-0.017103124409914017,
-0.5522252917289734,
-0.10715549439191818,
-0.22317098081111908,
0.8473545908927917,
0.3154250979423523,
0.0736972987651825,
-0.037057776004076004,
0.1545831710100174,
0.09377603232860565,
0.13827916979789734,
0.3976793885231018,
0.10401967167854309,
0.3903295695781708,
0.15727297961711884,
0.38307666778564453,
0.08037178218364716,
-0.19407401978969574,
-0.0791405439376831,
0.11259079724550247,
0.2857990562915802,
0.10976564884185791,
-0.07170558720827103,
-0.0807541161775589,
0.015110025182366371,
0.4550836682319641,
0.6541770696640015,
-0.10462971031665802,
-0.4009037911891937,
-0.43070390820503235,
-0.12883663177490234,
-0.1373523473739624,
0.26104095578193665,
0.15445226430892944,
-0.10682716220617294,
0.17553824186325073,
-0.22872735559940338,
-0.18900839984416962,
-0.25318995118141174,
0.2583877146244049,
-0.09283435344696045,
-0.31734710931777954,
-0.21603834629058838,
0.21463286876678467,
0.19092752039432526,
-0.1639518290758133,
-0.1476033329963684,
-0.21648423373699188,
-0.3134979009628296,
0.16101694107055664,
-0.015815438702702522,
0.024427030235528946,
-0.1692642718553543,
-0.2996097803115845,
0.3776487112045288,
0.060645975172519684,
0.2912249267101288,
0.009057383053004742,
-0.3051210343837738,
0.13202069699764252,
0.423373818397522,
-0.0412973016500473,
0.467924565076828,
-0.20590399205684662,
0.02283019758760929,
-0.05095032975077629,
0.2377183586359024,
-0.23169805109500885,
-0.1745302677154541,
-0.024661285802721977,
0.06675828248262405,
-0.23374325037002563,
0.13676711916923523,
-0.19315677881240845,
0.04095710813999176,
-0.11414535343647003,
-0.32990074157714844,
-0.23795579373836517,
-0.0778571218252182,
0.2825755476951599,
0.34137243032455444,
0.13055314123630524,
0.00851950328797102,
0.4388342797756195,
0.1512412279844284,
-0.1779143512248993,
0.06126514449715614,
0.033614419400691986,
0.10911528766155243,
0.1203230768442154,
0.20026010274887085,
-0.1847381293773651,
0.1546735316514969,
0.1673329919576645,
-0.031202811747789383,
-0.18029838800430298,
-0.22481471300125122,
0.09545283764600754,
0.005339879542589188,
0.20346547663211823,
0.1514875739812851,
0.03817244619131088,
0.04654575139284134,
-0.3754885494709015,
-0.12297865748405457,
0.26149293780326843,
-0.3664223253726959,
-0.10861153155565262,
-0.215895876288414,
0.004594299476593733,
-0.2165379524230957,
-0.04275437816977501,
-0.7504183650016785,
0.24296459555625916,
-0.05819450318813324,
-0.35937291383743286,
0.027887392789125443,
-0.14142827689647675,
0.14017094671726227,
-0.28980210423469543,
0.05394059792160988,
0.4843589961528778,
-0.5632108449935913,
-0.3126641511917114,
0.29050254821777344,
-0.1905965358018875,
-0.10553557425737381,
0.3626500964164734,
-0.41072550415992737,
0.21883441507816315,
-0.2073308825492859,
0.3010173738002777,
0.36872056126594543,
-0.30922946333885193,
-0.2301800549030304,
0.5485827922821045,
0.10910730808973312,
0.3371365964412689,
0.22942136228084564,
-0.1662469059228897,
0.2583563029766083,
-0.008867226541042328,
0.23588994145393372,
0.11114566028118134,
0.13939669728279114,
0.04512364789843559,
0.10173022747039795,
-0.020823834463953972,
0.315166711807251,
0.2690216600894928,
-0.38382279872894287,
0.03421562910079956,
0.03197912126779556,
0.07702545821666718,
0.3040089011192322,
-0.28658804297447205,
-0.12449762225151062,
0.300216943025589,
-0.22689855098724365,
0.04455067962408066,
0.03176635131239891,
0.17405343055725098,
-0.7827897667884827,
0.03183501958847046,
0.15112051367759705,
-0.1864999383687973,
-0.3102797865867615,
-0.059872258454561234,
-0.009639852680265903,
0.018044935539364815,
-0.4591427743434906,
-0.05200481787323952,
-0.04328981041908264,
0.052905838936567307,
0.18616902828216553,
0.0698305070400238,
-0.15121014416217804,
0.26028189063072205,
0.08439294248819351,
0.12722888588905334,
-0.29445239901542664,
0.3275436758995056,
0.11300357431173325,
-0.12743978202342987,
0.08214785903692245,
-0.01477975957095623,
0.17438985407352448,
-0.3622351884841919,
-0.02379731461405754,
0.3017580807209015,
0.43651849031448364,
-0.23803529143333435,
-0.17483334243297577,
0.0855647623538971,
0.2663767337799072,
0.22005009651184082,
-0.07445250451564789,
0.25053805112838745,
0.22371625900268555,
-0.2906741797924042,
-0.3921761214733124,
0.27849826216697693,
-0.08864539861679077,
0.4363921284675598,
0.03884277120232582,
-0.15010792016983032,
0.42394596338272095,
0.10457529872655869,
-0.29509297013282776,
-0.1024179607629776,
0.15727680921554565,
0.19994224607944489,
0.025098849087953568,
0.03716173395514488,
-0.30325475335121155,
-0.19381721317768097,
0.5734390020370483,
-0.19821614027023315,
0.13668684661388397,
0.3101390600204468,
-0.16438493132591248,
-0.12241335213184357,
0.0132790207862854,
-0.023327549919486046,
0.3320559561252594,
0.14988300204277039,
-0.31599006056785583,
0.037602461874485016,
0.2749459147453308,
-0.21849429607391357,
0.12457304447889328,
-0.10848233848810196,
0.2380923181772232,
0.0401962473988533,
0.1783389449119568,
-0.07973413914442062,
-0.3305121064186096,
-0.4385954439640045,
0.10775282979011536,
0.07040853053331375,
-0.5264182090759277,
0.1137506365776062,
-0.4291846752166748,
-0.09219210594892502,
-0.06609293818473816,
-0.24175205826759338,
-0.18060024082660675,
-0.20908327400684357,
-0.14594359695911407,
0.06892221421003342,
0.024319002404808998,
-0.09220853447914124,
0.09433884173631668,
0.1706511676311493,
0.14148825407028198,
-0.1998654305934906,
-0.14685554802417755,
-0.14687439799308777,
-0.23797327280044556,
-0.06916268169879913,
0.24377663433551788,
-0.00992406066507101,
0.007075530011206865,
-0.32629919052124023,
-0.14777106046676636,
-0.15860697627067566,
-0.06615723669528961,
0.1092124804854393,
-0.10674094408750534,
0.15868277847766876,
0.14632195234298706,
0.4827868342399597,
-0.08614511787891388,
-0.03338099643588066,
0.3210742771625519,
0.2586284577846527,
-0.21110261976718903,
0.24270308017730713,
0.12396271526813507,
-0.030350971966981888,
-0.06385192275047302,
-0.07269814610481262,
0.048616841435432434,
-0.16639679670333862,
0.6842475533485413,
-0.04522072896361351,
0.19388657808303833,
-0.05414445698261261,
0.12998387217521667,
0.09720887243747711,
-0.204508438706398,
0.09399107843637466,
-0.11794804781675339,
-0.21616016328334808,
0.27485552430152893,
-0.15783971548080444,
-0.4564421772956848,
0.08667223155498505,
0.13760797679424286,
-0.11018815636634827,
-0.06610523909330368,
-0.429257333278656,
-0.19517634809017181,
-0.050483740866184235,
0.11369067430496216,
-0.12069591879844666,
-0.047441549599170685,
0.23184286057949066,
-0.001996411941945553,
0.08097051829099655,
-0.05583269149065018,
-0.3087208867073059,
0.12147192656993866,
0.018698882311582565,
0.08409903198480606,
0.25546711683273315,
0.7511202692985535,
-0.16437511146068573,
0.10482413321733475,
0.4095941185951233,
-0.09083220362663269,
0.3358142077922821,
-0.23180235922336578,
0.2796764373779297,
-0.261341392993927,
-0.05585813894867897,
-0.14856693148612976,
-0.10086918622255325,
0.05539683625102043,
0.23003175854682922,
-0.004468142986297607,
0.10114424675703049,
-0.15489447116851807,
0.041444022208452225,
-0.43941590189933777,
-0.11429781466722488,
0.11587795615196228,
-0.0837007388472557,
-0.23464788496494293,
-0.25059887766838074,
0.08272048085927963,
0.08235298842191696,
0.12979573011398315,
-0.22380097210407257,
0.40124303102493286,
0.2909095287322998,
0.010878915898501873,
-0.4823314845561981,
-0.17827139794826508,
-0.2993757426738739,
0.31158527731895447,
0.07247208058834076,
0.3987671434879303,
-0.05255909636616707,
0.30567118525505066,
0.15134169161319733,
-0.16403336822986603,
0.8771929144859314,
-0.07201936841011047,
-0.1486295759677887,
0.13510896265506744,
0.07906936854124069,
-0.4990382492542267,
0.02315925806760788,
-0.08321550488471985,
0.3365110754966736,
0.11281940340995789,
0.1889239102602005,
-0.5262195467948914,
-0.1411765217781067,
-0.15029925107955933,
0.12195169180631638,
-0.13064897060394287,
-0.3131035566329956,
-0.11053486913442612,
-0.4094933867454529,
-0.5487591028213501,
-0.2788083255290985,
0.050389911979436874,
0.2496141642332077,
0.05474510043859482,
-0.11734603345394135,
0.07640799880027771,
-0.28303757309913635,
0.02648857980966568,
0.10062362253665924,
0.1723233461380005,
0.1050177663564682,
-0.06772199273109436,
0.11604418605566025,
0.08107835799455643,
0.6050029993057251,
0.6168933510780334,
0.22004099190235138,
-0.5725252032279968,
-0.1515592783689499,
-0.3779136538505554,
0.3386916518211365,
0.12363740056753159,
0.008989383466541767,
0.09587910026311874,
-0.10696938633918762,
-0.02813549153506756,
0.03811373561620712,
-0.21263949573040009,
0.44858404994010925,
-0.15234829485416412,
-0.38946542143821716,
-0.4445137679576874,
0.567769467830658,
0.022304706275463104,
-0.015119793824851513,
0.031126869842410088,
0.28638404607772827,
-0.4327487647533417,
0.333175927400589,
-0.2572877109050751,
0.5948883891105652,
-0.06705889850854874,
0.3598080277442932,
0.4278509020805359,
-0.2802691161632538,
0.5248783826828003,
-0.08578688651323318,
-0.053144123405218124,
-0.14457163214683533,
0.16771200299263,
-0.13337387144565582,
-0.13183659315109253,
0.2990584373474121,
0.4635651409626007,
-0.2111044079065323,
0.19945700466632843,
-0.3796827793121338,
-0.025781823322176933,
0.02192254550755024,
0.3363606631755829,
-0.044759467244148254,
-0.24031206965446472,
-0.6766848564147949,
0.014287468045949936,
-0.07315517961978912,
-0.2198832780122757,
-0.05547868460416794,
-0.1762808859348297,
0.09182059019804001,
-0.3764573633670807,
-0.3643440008163452,
-0.02364727109670639,
0.018089059740304947,
-0.08522360771894455,
0.2905057966709137,
-0.2800568640232086,
0.30401697754859924,
0.29469361901283264,
0.00302890338934958,
-0.1377631425857544,
-0.1765667051076889,
0.0029853656888008118,
-0.32406941056251526,
-0.15002970397472382,
-0.33931615948677063,
-0.06139043718576431,
0.18986555933952332,
-0.0163224209100008,
-0.23272989690303802,
0.16678757965564728,
-0.16385626792907715,
-0.491840660572052,
-0.059373144060373306,
0.25066450238227844,
-0.5110673904418945,
-0.474500834941864,
-0.3947390019893646,
-0.1168440505862236,
0.05195165053009987,
-0.04425257816910744,
-0.007220118306577206,
0.24000541865825653,
-0.04979626461863518,
-0.1048770546913147,
0.06299089640378952,
-0.0384453646838665,
-0.01958828791975975,
0.18532608449459076,
0.02240614965558052,
-0.1815967857837677,
0.6452675461769104,
0.40094324946403503,
0.03330516815185547,
-0.12798404693603516,
0.3129695653915405,
0.6787832975387573,
-0.146088644862175,
0.31074389815330505,
0.13083532452583313,
0.42958763241767883,
-0.07042039185762405,
0.3472553491592407,
-0.0749996230006218,
0.18015140295028687,
0.30637940764427185,
-0.6065921187400818,
-0.09713814407587051,
0.25983670353889465,
0.054556284099817276,
0.10404585301876068,
0.23661038279533386,
-0.028383055701851845,
0.023627428337931633,
-0.012239125557243824,
-0.12460782378911972,
0.32668623328208923,
0.07753554731607437,
0.07314241677522659,
0.18941251933574677,
0.12071036547422409,
0.28739115595817566,
-0.08576710522174835,
-0.011272318661212921,
0.08615786582231522,
0.005568368826061487,
-0.0671929121017456,
-0.011652105487883091,
0.19085748493671417,
0.24496281147003174,
-0.10651537775993347,
-0.20955495536327362,
-0.14290295541286469,
-0.03132477402687073,
-0.1739066243171692,
0.3243986666202545,
0.06444323062896729,
-0.1287900060415268,
0.2100992500782013,
0.3157556653022766,
0.14974230527877808,
-0.30557191371917725,
0.10474499315023422,
-0.1872400939464569,
0.572140634059906,
-0.021531134843826294,
0.0584525503218174,
-0.11454226076602936,
0.07333202660083771,
-0.24764925241470337,
0.39738330245018005,
0.1267000138759613,
0.06468218564987183,
0.2737925946712494,
-0.47801899909973145,
0.24614615738391876,
0.05447057634592056,
0.17643161118030548,
0.5079079866409302,
-0.46329137682914734,
0.2767198383808136,
-0.08715204149484634,
-0.03239492326974869,
0.07467932999134064,
-0.17128732800483704,
0.3691147267818451,
0.13500580191612244,
-0.12958984076976776,
0.18431097269058228,
-0.05731860175728798,
-0.1345752328634262,
-0.028041232377290726,
-0.10975441336631775,
0.29228007793426514,
0.15917323529720306,
-0.03710700571537018,
0.414648175239563,
-0.17249861359596252,
-0.07843828946352005,
0.08979849517345428,
0.33310994505882263,
0.25350502133369446,
0.31896114349365234,
-0.2833828628063202,
-0.009992835111916065,
0.2608402669429779,
0.1258874386548996,
-0.07239613682031631,
-0.3877485394477844,
-0.05508463457226753,
0.35198280215263367,
0.09169090539216995,
0.12110362946987152,
0.16130585968494415,
0.1335015594959259,
0.05476078391075134,
0.13951408863067627,
-0.19049061834812164,
0.08334610611200333,
0.01028057374060154,
-0.2840880751609802,
-0.09987495839595795,
-0.11323053389787674,
-0.12547843158245087,
0.028886372223496437,
-0.29288753867149353,
-0.28051361441612244,
0.13533809781074524,
0.08194179832935333,
0.09510695189237595,
-0.4350184202194214,
0.3131978213787079,
-0.04057859256863594,
-0.015383925288915634,
-0.2048436999320984,
0.2946711480617523,
0.3339358866214752,
-0.1596250981092453,
0.5769932270050049,
0.009087096899747849,
0.5483869910240173,
0.2124696969985962,
0.11569572985172272,
0.013270911760628223,
-0.49090197682380676,
-0.09465702623128891,
0.20714665949344635,
0.3553980886936188,
0.050852734595537186,
0.00468255253508687,
0.2090476155281067,
0.05589388310909271,
0.08697596192359924,
0.32904183864593506,
0.032511644065380096,
0.15686792135238647,
-0.31560802459716797,
0.03023243509232998,
-0.37882980704307556,
-0.08736291527748108,
-0.12112896144390106,
-0.10118018090724945,
-0.13444992899894714,
-0.43400412797927856,
0.13307012617588043,
0.1707012951374054,
0.07933346927165985,
0.07149170339107513,
-0.0028354052919894457,
-0.13108861446380615,
0.46659159660339355,
0.3894784450531006,
0.2655846178531647,
0.023738546296954155,
-0.03359181061387062,
-0.1656285524368286,
-0.20368319749832153,
-0.278592050075531,
-0.13707268238067627,
0.2476901412010193,
0.06283924728631973,
0.24037012457847595,
0.25771427154541016,
-0.005891055334359407,
0.28449884057044983,
-0.3355717658996582,
0.0001503823441453278,
-0.2361425757408142,
-0.2020062357187271,
0.35896825790405273,
0.24504785239696503,
-0.19219553470611572,
0.08154745399951935,
0.3909071087837219,
-0.08266604691743851,
-0.0857478454709053,
-0.2182665467262268,
0.3969537913799286,
-0.20628099143505096,
-0.1763966828584671,
0.23746518790721893,
0.23027369379997253,
0.5443313717842102,
0.16059967875480652,
-0.08691763877868652,
-0.040468547493219376,
-0.1670810878276825,
0.01355633046478033,
0.615616500377655,
-0.03700274974107742,
0.40686020255088806,
-0.2951592803001404,
0.059250619262456894,
-0.12426469475030899,
0.0251254104077816,
-0.4160119295120239,
-0.012706528417766094,
-0.34396886825561523,
0.20344915986061096,
-0.001556508126668632,
-0.18287363648414612,
0.0542488656938076,
0.08630137145519257,
-0.15408827364444733,
0.08113425225019455,
-0.014294818043708801,
-0.10921195149421692,
0.23558276891708374,
-0.36493006348609924,
-0.18549999594688416,
0.1340005248785019,
-0.04535898566246033,
-0.1485261172056198,
-0.08985316008329391,
-0.5390961170196533,
0.17146095633506775,
0.4368409514427185,
-0.026989981532096863,
-0.5867699980735779,
0.1004965677857399,
-0.053317148238420486,
-0.17557863891124725,
-0.15294748544692993,
0.3230695426464081,
0.07048837840557098,
-0.20006470382213593,
-0.1911255270242691,
-0.30866679549217224
] |
https://github.com/huggingface/datasets/issues/1784 | JSONDecodeError on JSON with multiple lines | Hi Quentin!
I apologize for bothering you. There was some issue with my pyarrow version as far as I understand. I don't remember the exact version I was using as I didn't check it.
I repeated it with `datasets 1.2.1` and `pyarrow 2.0.0` and it worked.
Closing this issue. Again, sorry for the bother.
Thanks,
Gunjan | Hello :),
I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported.
When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either.
Please let me know :)
Thanks,
Gunjan | 56 | JSONDecodeError on JSON with multiple lines
Hello :),
I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported:
```json
{"key1":11, "key2":12, "key3":13}
{"key1":21, "key2":22, "key3":23}
```
But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported.
When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either.
Please let me know :)
Thanks,
Gunjan
Hi Quentin!
I apologize for bothering you. There was some issue with my pyarrow version as far as I understand. I don't remember the exact version I was using as I didn't check it.
I repeated it with `datasets 1.2.1` and `pyarrow 2.0.0` and it worked.
Closing this issue. Again, sorry for the bother.
Thanks,
Gunjan | [
0.11187915503978729,
-0.0649547353386879,
-0.012783469632267952,
0.5094955563545227,
0.36685115098953247,
0.14520752429962158,
0.4116666316986084,
0.06978582590818405,
0.11648772656917572,
0.07758273929357529,
0.12275238335132599,
0.3139994740486145,
-0.013312596827745438,
0.17431649565696716,
0.10525353997945786,
-0.3321564197540283,
0.05630522221326828,
0.24222025275230408,
0.28122442960739136,
0.04483134299516678,
-0.18832623958587646,
0.3222275674343109,
-0.1211521252989769,
-0.021525414660573006,
-0.10035904496908188,
0.20094627141952515,
-0.14906324446201324,
0.20983968675136566,
0.0983380675315857,
-0.5983389019966125,
0.1811591535806656,
0.07874880731105804,
0.08965200930833817,
0.40947893261909485,
-0.0001244392042281106,
0.17136558890342712,
0.23355673253536224,
-0.2385096698999405,
-0.419300377368927,
-0.20485666394233704,
-0.23441387712955475,
-0.18376563489437103,
0.4074416160583496,
-0.21534977853298187,
-0.04345022141933441,
-0.6132320761680603,
-0.11714033037424088,
-0.05721549317240715,
0.8382019996643066,
0.2899010479450226,
0.05570042505860329,
0.02217383310198784,
0.24379894137382507,
0.09813045710325241,
0.19294150173664093,
0.31847378611564636,
0.11450698971748352,
0.44309931993484497,
0.2087322324514389,
0.3381674587726593,
0.06790907680988312,
-0.1586388349533081,
-0.0711870789527893,
0.08355700969696045,
0.2809579074382782,
0.11956832557916641,
-0.02197786420583725,
-0.11461655795574188,
-0.010624115355312824,
0.4550394117832184,
0.6182889342308044,
-0.12444397062063217,
-0.3540067672729492,
-0.4397033452987671,
-0.12985071539878845,
-0.2184526026248932,
0.28760793805122375,
0.17721569538116455,
-0.15192821621894836,
0.1779497116804123,
-0.15952488780021667,
-0.17546862363815308,
-0.3075226843357086,
0.3047267496585846,
-0.04709383845329285,
-0.2925514578819275,
-0.14459581673145294,
0.2423643320798874,
0.25147300958633423,
-0.15743595361709595,
-0.17315071821212769,
-0.17070704698562622,
-0.30057746171951294,
0.1942361295223236,
-0.03745824471116066,
0.03326168656349182,
-0.16221743822097778,
-0.26028338074684143,
0.3593864142894745,
0.021999472752213478,
0.27777063846588135,
-0.015607915818691254,
-0.22100181877613068,
0.1750970035791397,
0.38672134280204773,
-0.031070787459611893,
0.39831528067588806,
-0.21183571219444275,
0.0357382707297802,
-0.08877010643482208,
0.1991063505411148,
-0.19576850533485413,
-0.1575288027524948,
-0.003041412914171815,
0.06268307566642761,
-0.25277650356292725,
0.14243869483470917,
-0.2047819048166275,
0.0941166877746582,
-0.128095343708992,
-0.3872184455394745,
-0.25713911652565,
-0.10429909825325012,
0.3170134127140045,
0.33083343505859375,
0.0327448695898056,
0.02138444595038891,
0.4348156154155731,
0.11620541661977768,
-0.2527851462364197,
0.0686018094420433,
0.02608688920736313,
0.10681499540805817,
0.12474384158849716,
0.17683273553848267,
-0.21313488483428955,
0.15774889290332794,
0.144698366522789,
-0.020176714286208153,
-0.14012186229228973,
-0.23651286959648132,
0.10405126959085464,
-0.03143233805894852,
0.21746350824832916,
0.09335311502218246,
0.005128532648086548,
0.06568484008312225,
-0.38578736782073975,
-0.1371871531009674,
0.26503264904022217,
-0.3571532368659973,
-0.18536266684532166,
-0.2478068470954895,
-0.013028962537646294,
-0.2101796418428421,
-0.04849841445684433,
-0.7054870128631592,
0.27205535769462585,
-0.04971490427851677,
-0.39165470004081726,
0.04228094220161438,
-0.11513234674930573,
0.20016755163669586,
-0.28368324041366577,
0.03938218951225281,
0.4265243113040924,
-0.5727179050445557,
-0.3258419334888458,
0.302289217710495,
-0.2016308307647705,
-0.062036674469709396,
0.39254918694496155,
-0.4634450674057007,
0.2692921459674835,
-0.17631137371063232,
0.3346170485019684,
0.36252835392951965,
-0.30546167492866516,
-0.2864093780517578,
0.47605130076408386,
0.06081141531467438,
0.3308362364768982,
0.2555825114250183,
-0.15106932818889618,
0.2409440577030182,
0.03931030258536339,
0.2559552490711212,
0.09360848367214203,
0.1579335778951645,
0.03327656909823418,
0.020897669717669487,
-0.04012759029865265,
0.3830367922782898,
0.26225826144218445,
-0.34673240780830383,
0.033625055104494095,
0.02983885444700718,
0.021078569814562798,
0.3198065459728241,
-0.3416239321231842,
-0.1486135870218277,
0.31345370411872864,
-0.17750786244869232,
0.07253473252058029,
0.041867416352033615,
0.19310028851032257,
-0.7275480628013611,
0.04684622585773468,
0.06163368374109268,
-0.09234201163053513,
-0.3281356990337372,
-0.045859094709157944,
-0.014527351595461369,
0.03760275989770889,
-0.4042333662509918,
-0.09697313606739044,
-0.06378456950187683,
0.04273613914847374,
0.21813857555389404,
0.10928555577993393,
-0.15388041734695435,
0.23077955842018127,
0.031264517456293106,
0.13121318817138672,
-0.3026619255542755,
0.37298282980918884,
0.06969217211008072,
-0.1885007917881012,
0.0212981179356575,
-0.0272982157766819,
0.206064835190773,
-0.3279634118080139,
-0.024857312440872192,
0.266045480966568,
0.3668580651283264,
-0.26701828837394714,
-0.1989661455154419,
0.06529825180768967,
0.25878584384918213,
0.09627071022987366,
-0.08288463950157166,
0.2987165153026581,
0.2130885273218155,
-0.23206640779972076,
-0.3045404553413391,
0.3062801957130432,
0.006999317556619644,
0.420573353767395,
0.026531700044870377,
-0.18264508247375488,
0.3832911252975464,
0.10583869367837906,
-0.2332841157913208,
-0.006008181720972061,
0.2103118747472763,
0.20888307690620422,
0.03129873797297478,
0.06150929257273674,
-0.3478977382183075,
-0.1770055890083313,
0.5678308606147766,
-0.20460714399814606,
0.11214089393615723,
0.33076709508895874,
-0.15699155628681183,
-0.08266880363225937,
0.05037626996636391,
-0.12668384611606598,
0.3211076557636261,
0.1670220047235489,
-0.3652741312980652,
0.03719023987650871,
0.23474332690238953,
-0.20119217038154602,
0.11603973060846329,
-0.09744998067617416,
0.2182055413722992,
0.05318894237279892,
0.22915975749492645,
-0.07880623638629913,
-0.41703134775161743,
-0.42038050293922424,
0.13394194841384888,
0.11083046346902847,
-0.5512768030166626,
0.12520569562911987,
-0.37227863073349,
-0.08220677077770233,
-0.04054868221282959,
-0.3005828559398651,
-0.27533382177352905,
-0.19562768936157227,
-0.08342818170785904,
0.09905922412872314,
0.03126185014843941,
-0.051852766424417496,
0.17124515771865845,
0.17002706229686737,
0.11198867112398148,
-0.24576015770435333,
-0.20710469782352448,
-0.21236442029476166,
-0.26876941323280334,
-0.09051483869552612,
0.21571655571460724,
-0.049005746841430664,
-0.02515745535492897,
-0.3031788468360901,
-0.20453140139579773,
-0.15074239671230316,
-0.13728508353233337,
0.08084891736507416,
-0.17061495780944824,
0.2122226506471634,
0.08487848192453384,
0.48876091837882996,
-0.0839303508400917,
-0.12838083505630493,
0.3590870797634125,
0.23639515042304993,
-0.2614619731903076,
0.2470538169145584,
0.08315907418727875,
0.018430093303322792,
-0.04640824720263481,
-0.06907451152801514,
0.0052783009596168995,
-0.15442562103271484,
0.743019700050354,
-0.08334363251924515,
0.20163021981716156,
-0.041560448706150055,
0.16453884541988373,
0.12990416586399078,
-0.26627862453460693,
0.10005325824022293,
-0.12102849036455154,
-0.21393433213233948,
0.2681325674057007,
-0.12438958138227463,
-0.44021692872047424,
0.0721987634897232,
0.14692318439483643,
-0.07049371302127838,
-0.05991854891180992,
-0.4526902735233307,
-0.24723783135414124,
-0.03885366767644882,
0.2286968231201172,
-0.13735689222812653,
-0.057573020458221436,
0.25960344076156616,
-0.010123585350811481,
0.0912240669131279,
-0.026584593579173088,
-0.33423882722854614,
0.11732902377843857,
0.05513295903801918,
0.11636146903038025,
0.164309561252594,
0.6633322238922119,
-0.21803759038448334,
0.2359459102153778,
0.3052801489830017,
-0.047010716050863266,
0.36742332577705383,
-0.2426072061061859,
0.2596144676208496,
-0.24327720701694489,
-0.09130315482616425,
-0.12680506706237793,
-0.12537601590156555,
0.01304487232118845,
0.1845621019601822,
-0.020193126052618027,
0.05075389891862869,
-0.17365853488445282,
-0.045230042189359665,
-0.4609680473804474,
-0.10127808153629303,
0.14024965465068817,
0.0856638103723526,
-0.2287006378173828,
-0.22121061384677887,
0.08660183846950531,
0.033741146326065063,
0.11507343500852585,
-0.18393278121948242,
0.40288445353507996,
0.30397799611091614,
0.009063472971320152,
-0.45902493596076965,
-0.24910739064216614,
-0.2739678919315338,
0.31414511799812317,
0.08093646168708801,
0.3001997172832489,
-0.0620875284075737,
0.2909623980522156,
0.2164379060268402,
-0.19767580926418304,
0.9261084198951721,
0.002683421829715371,
-0.16595767438411713,
0.14307360351085663,
0.0866745263338089,
-0.49003541469573975,
0.0012999328318983316,
-0.05143992602825165,
0.254129022359848,
0.12772910296916962,
0.2014629989862442,
-0.6062143445014954,
-0.146593376994133,
-0.12568597495555878,
0.1696174293756485,
-0.13257528841495514,
-0.3024125397205353,
-0.17022745311260223,
-0.4666594862937927,
-0.5862991213798523,
-0.21812140941619873,
0.028596779331564903,
0.295223206281662,
0.08153512328863144,
-0.035952258855104446,
0.0951203778386116,
-0.2656363248825073,
0.0024546270724385977,
0.12680920958518982,
0.1854032278060913,
0.08043985813856125,
-0.09033598750829697,
0.08203894644975662,
0.05426735058426857,
0.5888194441795349,
0.6108232736587524,
0.21062476933002472,
-0.6033202409744263,
-0.1698659509420395,
-0.3187556862831116,
0.4119632840156555,
0.19179242849349976,
-0.03337004780769348,
0.17532241344451904,
-0.10570895671844482,
-0.0074270982295274734,
0.07344956696033478,
-0.2139062136411667,
0.43103063106536865,
-0.13500544428825378,
-0.3312544524669647,
-0.36079704761505127,
0.5874239802360535,
0.0033596844878047705,
-0.012739533558487892,
0.07070145010948181,
0.3162636458873749,
-0.39538323879241943,
0.3670033812522888,
-0.25524401664733887,
0.7166486978530884,
-0.0982212945818901,
0.3945840895175934,
0.4653700888156891,
-0.26840847730636597,
0.5387393832206726,
-0.13183961808681488,
0.02568516694009304,
-0.15678952634334564,
0.15080101788043976,
-0.1145971417427063,
-0.10219980031251907,
0.28681209683418274,
0.42035552859306335,
-0.19007907807826996,
0.15300162136554718,
-0.35538530349731445,
-0.005156293511390686,
0.04495380073785782,
0.29308971762657166,
0.0029415516182780266,
-0.2236180454492569,
-0.8049351572990417,
-0.0073046875186264515,
-0.090687096118927,
-0.16723120212554932,
-0.04863924905657768,
-0.2482413500547409,
0.037758324295282364,
-0.4397958517074585,
-0.3008873462677002,
-0.028953660279512405,
-0.04174735024571419,
-0.0845264196395874,
0.34567680954933167,
-0.30729570984840393,
0.2221975326538086,
0.30935564637184143,
-0.06342797726392746,
-0.1697474718093872,
-0.20680101215839386,
0.033938534557819366,
-0.296146422624588,
-0.20270979404449463,
-0.3475341200828552,
-0.04426535591483116,
0.16436396539211273,
-0.05648226663470268,
-0.27335479855537415,
0.2610814869403839,
-0.21058078110218048,
-0.5443150401115417,
-0.07014171034097672,
0.23328106105327606,
-0.4967068135738373,
-0.4386484920978546,
-0.31273382902145386,
-0.1415804624557495,
0.03508370369672775,
-0.08484823256731033,
-0.019084922969341278,
0.19890372455120087,
-0.10749710351228714,
-0.12806205451488495,
0.05544515699148178,
-0.07897615432739258,
-0.05113024637103081,
0.22316692769527435,
0.028734732419252396,
-0.12543882429599762,
0.6856861114501953,
0.3832615613937378,
0.05821526050567627,
-0.10363566130399704,
0.20326976478099823,
0.6720961928367615,
-0.24891376495361328,
0.3087470233440399,
0.18287064135074615,
0.4318404495716095,
-0.13283587992191315,
0.4236629009246826,
0.021997831761837006,
0.12739881873130798,
0.3115243911743164,
-0.5580521821975708,
-0.1535036861896515,
0.301692932844162,
0.08157079666852951,
0.07769995182752609,
0.2658526301383972,
0.06335631757974625,
0.0652715191245079,
0.05799580365419388,
-0.1272096037864685,
0.33537757396698,
0.04154450073838234,
0.07795688509941101,
0.2087288796901703,
0.08264552056789398,
0.3267769515514374,
-0.04257110133767128,
-0.019354188814759254,
0.10769758373498917,
-0.0010704693850129843,
-0.05588630214333534,
-0.04914916679263115,
0.20185567438602448,
0.24198338389396667,
-0.09602540731430054,
-0.1949387490749359,
-0.15391243994235992,
0.011955847963690758,
-0.13377532362937927,
0.3213222324848175,
0.03842853009700775,
-0.08735925704240799,
0.19552265107631683,
0.37148231267929077,
0.1643388867378235,
-0.3251365125179291,
0.11411532759666443,
-0.16384583711624146,
0.6059881448745728,
0.046997010707855225,
-0.011901957914233208,
-0.1791575700044632,
0.0803649052977562,
-0.2306508868932724,
0.3374819755554199,
0.09882799535989761,
0.0001545751583762467,
0.27056440711021423,
-0.4505707621574402,
0.17966726422309875,
-0.052417248487472534,
0.2017090767621994,
0.4938378930091858,
-0.4585255980491638,
0.3138846755027771,
-0.028484482318162918,
-0.05705825611948967,
0.0034637886565178633,
-0.17094269394874573,
0.4224453270435333,
0.08758281916379929,
-0.16381174325942993,
0.17009787261486053,
0.0028256005607545376,
-0.1336953192949295,
0.017112262547016144,
-0.1054549515247345,
0.28738486766815186,
0.20065316557884216,
-0.08942259848117828,
0.43124932050704956,
-0.1834625005722046,
-0.05698641389608383,
0.12485671788454056,
0.36176973581314087,
0.24121025204658508,
0.21411162614822388,
-0.3609214723110199,
-0.03558725863695145,
0.14238867163658142,
0.16335828602313995,
-0.1051955372095108,
-0.3548903167247772,
-0.027986280620098114,
0.3401575982570648,
0.20293867588043213,
0.06162676215171814,
0.1194150522351265,
0.23623807728290558,
0.13313531875610352,
0.1293351799249649,
-0.18330642580986023,
0.22703595459461212,
0.030860360711812973,
-0.3004808723926544,
-0.07113807648420334,
-0.11581043154001236,
-0.091803640127182,
0.05003884807229042,
-0.25727537274360657,
-0.32974234223365784,
0.1884557455778122,
0.11049621552228928,
0.07637632638216019,
-0.49726033210754395,
0.19575956463813782,
0.019455699250102043,
-0.0014930319739505649,
-0.2102145254611969,
0.31314828991889954,
0.3145589828491211,
-0.22115564346313477,
0.5350201725959778,
0.02564244531095028,
0.5477103590965271,
0.21802665293216705,
0.06652285903692245,
0.01823863573372364,
-0.501283586025238,
-0.0442914180457592,
0.1924670785665512,
0.3591533899307251,
0.11764243990182877,
0.08100423216819763,
0.21094313263893127,
0.027481194585561752,
0.05771752819418907,
0.2730031907558441,
0.0655142143368721,
0.18632331490516663,
-0.30286937952041626,
-0.03693295642733574,
-0.35017067193984985,
-0.10014552623033524,
-0.15121015906333923,
-0.11708720773458481,
-0.15137004852294922,
-0.33339178562164307,
0.0944497361779213,
0.2090519517660141,
0.06792768836021423,
0.10470898449420929,
-0.01460069976747036,
-0.1393781304359436,
0.5112258791923523,
0.4039308726787567,
0.30753013491630554,
-0.09578391909599304,
-0.02801322378218174,
-0.20479616522789001,
-0.13634008169174194,
-0.34670862555503845,
-0.11907494068145752,
0.2723596692085266,
0.08675464987754822,
0.26393088698387146,
0.28514522314071655,
-0.010774861089885235,
0.25429773330688477,
-0.3200685679912567,
0.029257062822580338,
-0.30257508158683777,
-0.1702689677476883,
0.3497336208820343,
0.2315201461315155,
-0.1659979522228241,
0.14361786842346191,
0.4026562571525574,
-0.07104580849409103,
-0.09640133380889893,
-0.2188064008951187,
0.36414337158203125,
-0.19850416481494904,
-0.09477018564939499,
0.31047019362449646,
0.1703803539276123,
0.5703428387641907,
0.16124765574932098,
-0.10282237827777863,
0.03256530687212944,
-0.18983396887779236,
-0.017904462292790413,
0.554619312286377,
0.010795669630169868,
0.37819603085517883,
-0.2969704270362854,
0.03087407350540161,
-0.18003927171230316,
0.07732931524515152,
-0.3476775586605072,
-0.06990084797143936,
-0.2934137284755707,
0.20213401317596436,
0.0524851456284523,
-0.18145988881587982,
0.014675027690827847,
0.0893939733505249,
-0.13100410997867584,
0.06495239585638046,
-0.10941917449235916,
-0.10195771604776382,
0.33427610993385315,
-0.4352567195892334,
-0.1552678644657135,
0.17677932977676392,
-0.03176334500312805,
-0.10273981094360352,
-0.11415152251720428,
-0.5677464604377747,
0.16827833652496338,
0.4463464021682739,
-0.014063834212720394,
-0.5691119432449341,
0.11022626608610153,
-0.06185300648212433,
-0.1592489778995514,
-0.14741061627864838,
0.26723742485046387,
0.07385853677988052,
-0.1737385243177414,
-0.22265788912773132,
-0.3186436593532562
] |
https://github.com/huggingface/datasets/issues/1783 | Dataset Examples Explorer | Hi @ChewKokWah,
We're working on it! In the meantime, you can still find the dataset explorer at the following URL: https://huggingface.co/datasets/viewer/ | In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version.
Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation. | 21 | Dataset Examples Explorer
In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version.
Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation.
Hi @ChewKokWah,
We're working on it! In the meantime, you can still find the dataset explorer at the following URL: https://huggingface.co/datasets/viewer/ | [
-0.3861367702484131,
-0.387398362159729,
-0.061884526163339615,
0.29741257429122925,
0.1567152887582779,
0.2989472448825836,
0.08448292315006256,
0.35528409481048584,
-0.06431106477975845,
0.376342236995697,
0.0037852777168154716,
0.29944220185279846,
-0.29005733132362366,
0.5288340449333191,
0.3926573097705841,
-0.28976982831954956,
0.011550900526344776,
0.20835329592227936,
-0.10081718116998672,
0.11488708108663559,
0.07922551780939102,
0.08556902408599854,
-0.17432789504528046,
0.15143468976020813,
-0.4029158651828766,
-0.188039168715477,
-0.3037717640399933,
-0.074654720723629,
-0.261144757270813,
-0.5259743332862854,
0.09752755612134933,
-0.09698048233985901,
0.32576003670692444,
0.08752452582120895,
-0.00010945141548290849,
-0.13720688223838806,
0.22470641136169434,
0.07966785877943039,
-0.48928800225257874,
-0.05925259739160538,
-0.38466155529022217,
-0.015157731249928474,
0.30656862258911133,
-0.1603698432445526,
-0.21389253437519073,
-0.4064330756664276,
0.25697630643844604,
0.060766734182834625,
0.32770854234695435,
-0.057404011487960815,
0.18620780110359192,
0.46647387742996216,
-0.10119950026273727,
-0.3095893859863281,
-0.05778035894036293,
0.5932616591453552,
-0.37760376930236816,
0.14188052713871002,
0.4056650996208191,
0.17192034423351288,
-0.055873602628707886,
0.3942483067512512,
0.44340187311172485,
0.10746171325445175,
0.06668338924646378,
0.12247233092784882,
-0.01403119694441557,
-0.14126020669937134,
0.03522647172212601,
0.612338662147522,
0.4841231405735016,
0.10828440636396408,
-0.36990785598754883,
-0.43638747930526733,
-0.027957327663898468,
-0.16586562991142273,
-0.11217040568590164,
0.3824400007724762,
0.07018249481916428,
0.25386035442352295,
-0.37502437829971313,
0.11346525698900223,
-0.18307891488075256,
-0.03669729828834534,
-0.09141324460506439,
-0.019850965589284897,
-0.34800195693969727,
-0.0712084025144577,
0.46802401542663574,
-0.0432208850979805,
0.09429305046796799,
0.2341703176498413,
-0.0011736300075426698,
0.16521601378917694,
-0.026317361742258072,
-0.2085908204317093,
0.18608078360557556,
0.17611202597618103,
0.12910765409469604,
0.22926974296569824,
0.11673753708600998,
0.32466772198677063,
-0.031228428706526756,
0.17557968199253082,
0.21165324747562408,
-0.10557439178228378,
0.44098296761512756,
0.21196988224983215,
0.1845703423023224,
0.3149194121360779,
0.047623321413993835,
-0.04267141968011856,
-0.3810490071773529,
0.15703684091567993,
-0.3530597984790802,
-0.23613816499710083,
-0.010428064502775669,
-0.16971778869628906,
-0.08771247416734695,
-0.11541876196861267,
-0.23919855058193207,
-0.06368576735258102,
0.109463170170784,
0.40938282012939453,
-0.094733327627182,
-0.37194740772247314,
-0.3213823139667511,
-0.13243158161640167,
0.06606204807758331,
-0.32665756344795227,
-0.1745932400226593,
0.0009159913170151412,
-0.28273335099220276,
0.030079444870352745,
0.14481067657470703,
-0.5260003805160522,
0.4474385976791382,
-0.07013058662414551,
-0.06892155855894089,
0.0031329120974987745,
0.3343256413936615,
0.15536563098430634,
0.34081369638442993,
0.10378125309944153,
-0.004832357633858919,
-0.2238624542951584,
0.15571345388889313,
0.07394175231456757,
-0.2017611563205719,
-0.029244810342788696,
-0.10531022399663925,
-0.3409498333930969,
-0.34239718317985535,
0.11370723694562912,
-0.2802438735961914,
0.0596914142370224,
-0.38048771023750305,
0.4780719578266144,
-0.46615564823150635,
-0.20106655359268188,
-0.05017393082380295,
0.11695203930139542,
-0.2553439438343048,
0.060006607323884964,
0.3718671202659607,
0.2557031214237213,
-0.3894897997379303,
-0.377259224653244,
0.01827046275138855,
-0.21247689425945282,
-0.3901625871658325,
-0.03746304288506508,
-0.34428393840789795,
0.33506613969802856,
-0.5363284349441528,
0.2352287322282791,
0.3367297649383545,
-0.22280989587306976,
-0.051880475133657455,
0.09366297721862793,
0.1573922485113144,
-0.05494729429483414,
0.0014533733483403921,
-0.14815852046012878,
0.44590070843696594,
-0.030554573982954025,
-0.3026454746723175,
-0.07905896008014679,
0.059940654784440994,
-0.03687478229403496,
0.0009241309016942978,
-0.17192964255809784,
-0.012910507619380951,
0.056332748383283615,
-0.14861537516117096,
0.10105320066213608,
0.11913227289915085,
0.03834408149123192,
0.4723880887031555,
-0.23175953328609467,
-0.11254148930311203,
0.14847229421138763,
0.21926936507225037,
0.24320392310619354,
0.01115445327013731,
-0.402067095041275,
-0.1583314687013626,
0.09494030475616455,
0.003821713849902153,
-0.1807393878698349,
0.3076315224170685,
-0.31859660148620605,
-0.11311057209968567,
-0.034154556691646576,
-0.25964438915252686,
-0.2621263861656189,
0.15849807858467102,
-0.1365664005279541,
0.1611819863319397,
0.12514308094978333,
-0.1892433911561966,
0.08858945220708847,
-0.39873597025871277,
0.18700531125068665,
-0.39014118909835815,
0.2090325653553009,
0.1105593591928482,
0.05360668897628784,
0.010264859534800053,
0.026726311072707176,
-0.04083427041769028,
-0.26872116327285767,
0.06860294938087463,
0.22171515226364136,
0.1641520857810974,
-0.10901369154453278,
0.16309711337089539,
0.436235636472702,
0.2089855819940567,
-0.3917671740055084,
-0.010467436164617538,
-0.13317784667015076,
-0.13324245810508728,
0.20646335184574127,
-0.7598806023597717,
0.32166483998298645,
0.252136766910553,
0.15780490636825562,
0.31733816862106323,
0.11525142937898636,
0.023177161812782288,
0.11108798533678055,
-0.25495389103889465,
-0.2837451994419098,
0.13084973394870758,
0.07693084329366684,
0.17484037578105927,
-0.05286940559744835,
-0.640616774559021,
0.14786961674690247,
0.2648251950740814,
-0.09427498281002045,
-0.03801867738366127,
0.096348837018013,
-0.3271732032299042,
-0.02015855722129345,
0.42195335030555725,
0.05240473523736,
0.022104183211922646,
0.26869693398475647,
0.24397310614585876,
0.08576825261116028,
-0.13445217907428741,
0.11467503756284714,
0.18951252102851868,
0.06847073137760162,
0.0004233270010445267,
-0.3579307198524475,
-0.17320778965950012,
0.07837694883346558,
-0.28761544823646545,
-0.060378313064575195,
0.11064939200878143,
0.11754186451435089,
-0.27389010787010193,
0.09055878221988678,
-0.3630373179912567,
-0.4837636649608612,
-0.06979461014270782,
0.07046445459127426,
0.1552465558052063,
-0.3996531069278717,
0.08036749064922333,
0.2161305695772171,
-0.11437488347291946,
0.058318670839071274,
-0.16257399320602417,
0.3223589062690735,
-0.2975398898124695,
0.7413787245750427,
-0.11731834709644318,
0.11610139906406403,
-0.15373151004314423,
0.13649675250053406,
0.22915250062942505,
0.3248567283153534,
0.3808383047580719,
-0.22313399612903595,
0.11283232271671295,
-0.578158438205719,
-0.5961934924125671,
0.4128219187259674,
0.09461882710456848,
0.27269718050956726,
0.37131059169769287,
0.10631801933050156,
-0.44311830401420593,
-0.08089764416217804,
0.014267785474658012,
-0.33063414692878723,
-0.22475779056549072,
-0.15593065321445465,
-0.06451108306646347,
0.1442425698041916,
-0.04471699893474579,
-0.1804034560918808,
-0.1693992167711258,
-0.19827143847942352,
0.375235915184021,
-0.08493838459253311,
0.1998656541109085,
0.147750586271286,
0.04122810438275337,
0.3752748668193817,
-0.5501064658164978,
-0.015457654371857643,
-0.11899451911449432,
-0.408089280128479,
0.03775273263454437,
-0.6036458015441895,
-0.34498098492622375,
0.13046526908874512,
-0.14814475178718567,
-0.036735016852617264,
-0.11814956367015839,
-0.24378956854343414,
-0.2489357441663742,
-0.28174346685409546,
-0.04644596576690674,
-0.04387876018881798,
0.058212265372276306,
0.3366227447986603,
-0.07223541289567947,
-0.09184427559375763,
0.06534931808710098,
-0.14391043782234192,
-0.06273846328258514,
-0.01166894193738699,
0.11499125510454178,
-0.17817625403404236,
-0.03433698043227196,
0.18687160313129425,
0.3779296576976776,
0.218841552734375,
-0.12480910122394562,
0.027054110541939735,
-0.4515986442565918,
0.2974494993686676,
-0.04549409821629524,
-0.0707407295703888,
0.1005069762468338,
-0.11440867930650711,
0.14883647859096527,
0.158633291721344,
0.22254613041877747,
0.3080058693885803,
0.3026154041290283,
0.2815343141555786,
-0.3162563145160675,
-0.19434133172035217,
0.054528746753931046,
-0.1732914298772812,
0.2260575145483017,
-0.13560709357261658,
0.1330336034297943,
-0.05133095011115074,
0.10636890679597855,
0.004578582942485809,
0.036943528801202774,
0.23842042684555054,
0.02582690678536892,
-0.3806380331516266,
0.03989655151963234,
0.05206733196973801,
-0.04448053613305092,
-0.008907358162105083,
-0.11647461354732513,
-0.28676000237464905,
-0.11600208282470703,
0.06739184260368347,
0.23168976604938507,
0.6677562594413757,
-0.041294317692518234,
-0.005150316283106804,
0.04732082039117813,
-0.4719274938106537,
-0.39724814891815186,
-0.034990616142749786,
-0.28308209776878357,
0.09841553121805191,
0.15776175260543823,
0.4498452842235565,
0.111566461622715,
-0.25316160917282104,
0.6400969624519348,
0.14723478257656097,
-0.19241835176944733,
0.10994484275579453,
0.10657937079668045,
0.10875260829925537,
-0.1604260504245758,
0.0033708512783050537,
0.12669165432453156,
-0.06001259759068489,
-0.07145407050848007,
-0.23310096561908722,
-0.3549363911151886,
0.022564444690942764,
0.013848659582436085,
0.43315958976745605,
0.3815612196922302,
0.09090997278690338,
0.2579391300678253,
0.5203462243080139,
0.3753030598163605,
0.3056420683860779,
0.3549172282218933,
0.1044132187962532,
-0.12096811085939407,
0.3064051866531372,
-0.06175700202584267,
0.3310105800628662,
0.15650559961795807,
0.03893854096531868,
0.10246631503105164,
-0.04212384670972824,
0.13903872668743134,
-0.3317563533782959,
0.32284894585609436,
0.2974022924900055,
0.08945740014314651,
-0.3194746971130371,
-0.23417359590530396,
0.5605676174163818,
0.22378692030906677,
-0.18513906002044678,
0.46205583214759827,
0.47656816244125366,
0.1422177255153656,
-0.23735763132572174,
0.05353107675909996,
0.6876662969589233,
0.036522842943668365,
0.08434520661830902,
0.24557578563690186,
-0.17165452241897583,
0.502194344997406,
0.12092851102352142,
-0.11255728453397751,
-0.29566940665245056,
-0.4778715968132019,
-0.11478187143802643,
-0.2216896116733551,
0.28212934732437134,
0.18164971470832825,
-0.19886046648025513,
-0.024684961885213852,
-0.010078449733555317,
0.18244411051273346,
-0.04269888997077942,
0.06374563276767731,
0.0157806184142828,
-0.07267169654369354,
-0.38198909163475037,
0.12379945069551468,
0.18786399066448212,
-0.0032549845054745674,
0.009338071569800377,
-0.10062173753976822,
0.005843150429427624,
-0.0603998526930809,
-0.4639255106449127,
-0.21563047170639038,
-0.13437819480895996,
0.0016824292251840234,
0.27925676107406616,
-0.26894479990005493,
0.30966299772262573,
0.3147808909416199,
0.03121640719473362,
0.03956060856580734,
-0.2702919542789459,
0.016941118985414505,
-0.4660320580005646,
-0.045832667499780655,
-0.15623334050178528,
-0.001732847886160016,
0.2650192379951477,
-0.12445973604917526,
-0.20572270452976227,
0.27330532670021057,
-0.014413801021873951,
0.017664071172475815,
-0.08189444243907928,
0.1602962762117386,
-0.25557130575180054,
-0.17357979714870453,
-0.0668572187423706,
-0.10348181426525116,
0.02987959049642086,
-0.26671624183654785,
0.12279204279184341,
0.21543724834918976,
-0.13497421145439148,
-0.013182383961975574,
0.38662150502204895,
0.18081945180892944,
0.004753341432660818,
0.19999007880687714,
-0.14869384467601776,
-0.0018690850120037794,
0.2752644717693329,
0.19029586017131805,
0.04271817207336426,
-0.21427729725837708,
0.2983703315258026,
0.4879494905471802,
-0.2186921238899231,
-0.0052252099849283695,
-0.12805931270122528,
0.0626678317785263,
0.19733835756778717,
0.3569822311401367,
0.19948869943618774,
-0.19003209471702576,
-0.2914750874042511,
-0.05818120762705803,
-0.38028204441070557,
0.21149961650371552,
-0.118348628282547,
0.4987814426422119,
-0.17976617813110352,
0.015537316910922527,
0.05406739562749863,
0.12390605360269547,
-0.31960734724998474,
0.2481546401977539,
-0.32386744022369385,
0.06385032087564468,
-0.002706108381971717,
0.29910504817962646,
0.11340364813804626,
-0.329036146402359,
-0.03589240089058876,
0.12018028646707535,
-0.18389329314231873,
-0.23190464079380035,
-0.33907732367515564,
0.12326209247112274,
0.04798932746052742,
-0.0015725293196737766,
0.2810543179512024,
0.35645246505737305,
-0.004740063566714525,
-0.20985063910484314,
0.1643417328596115,
0.038174599409103394,
0.23744866251945496,
0.23117543756961823,
0.04341898486018181,
-0.14173144102096558,
0.20415525138378143,
-0.050108179450035095,
0.294319748878479,
0.183357372879982,
0.31431862711906433,
-0.09473250806331635,
-0.16752392053604126,
-0.07263266295194626,
-0.03996087610721588,
0.18795035779476166,
-0.04448859021067619,
-0.34537273645401,
0.050596222281455994,
0.024674702435731888,
0.13780435919761658,
-0.024542897939682007,
0.3533419370651245,
0.0892769992351532,
0.025667672976851463,
0.15037432312965393,
0.3059254288673401,
0.2060718685388565,
-0.17182409763336182,
-0.18203315138816833,
0.0941537544131279,
-0.08178968727588654,
0.2399892807006836,
-0.02830398827791214,
0.18823832273483276,
0.32001858949661255,
0.14300315082073212,
-0.14567868411540985,
-0.019348902627825737,
-0.02789333276450634,
0.4929860532283783,
0.3488089144229889,
-0.2583788335323334,
0.07632298767566681,
0.11675287783145905,
0.06997759640216827,
0.332817941904068,
-0.08697515726089478,
-0.03735532984137535,
0.36321738362312317,
-0.23299843072891235,
0.08221506327390671,
0.5594725012779236,
-0.2854763865470886,
-0.03674023970961571,
0.0957806184887886,
-0.13888998329639435,
0.08617524057626724,
-0.20342539250850677,
0.5114118456840515,
-0.15826506912708282,
-0.34565088152885437,
-0.28927889466285706,
-0.06359902769327164,
0.06637884676456451,
-0.09882217645645142,
-0.09523181617259979,
-0.2246951311826706,
0.07751666009426117,
0.10034631192684174,
0.10745319724082947,
-0.4275768995285034,
0.15210235118865967,
-0.3320245146751404,
-0.06720171868801117,
-0.4065210819244385,
-0.007738663349300623,
0.28455209732055664,
0.24093936383724213,
0.03884652629494667,
-0.05671406164765358,
-0.13501699268817902,
0.034503232687711716,
0.006947506684809923,
0.6226803064346313,
0.19371828436851501,
-0.271953284740448,
0.4494185447692871,
-0.003837018273770809,
-0.27867063879966736,
-0.009736504405736923,
0.08810342103242874,
-0.09380650520324707,
0.09639134258031845,
-0.3321145474910736,
0.24601155519485474,
0.12302355468273163,
-0.13961763679981232,
0.14297515153884888,
-0.1674235612154007,
0.2251502126455307,
-0.42049041390419006,
-0.14190757274627686,
-0.16621685028076172,
-0.22157953679561615,
0.13824418187141418,
-0.23807747662067413,
-0.2436445653438568,
0.14908519387245178,
0.3808841407299042,
0.007307713385671377,
-0.018475333228707314,
0.10627944767475128,
0.07049918919801712,
0.017671314999461174,
0.3879515528678894,
0.5070172548294067,
0.09120086580514908,
0.015564951114356518,
-0.43379995226860046,
-0.49612346291542053,
-0.04777034744620323,
-0.2083728313446045,
-0.075569286942482,
0.26718640327453613,
0.051497932523489,
0.07923702895641327,
0.12025009840726852,
0.19340628385543823,
-0.17290407419204712,
0.11228501051664352,
0.14889293909072876,
-0.3747885525226593,
-0.24446187913417816,
0.13332775235176086,
0.1647692173719406,
-0.11152202636003494,
0.09730183333158493,
0.18336604535579681,
-0.26718756556510925,
-0.06053511053323746,
-0.0539657361805439,
0.4409010410308838,
-0.3858111798763275,
-0.21345454454421997,
0.27424418926239014,
-0.08931993693113327,
0.22114311158657074,
-0.05428876727819443,
-0.05792660638689995,
-0.11337974667549133,
0.10592226684093475,
0.05678360164165497,
0.33054736256599426,
0.11929786950349808,
0.31754976511001587,
-0.03660295531153679,
-0.2714531123638153,
-0.0694231241941452,
-0.15288345515727997,
0.41361889243125916,
0.1176903173327446,
-0.2102361023426056,
0.02628149464726448,
0.031072091311216354,
-0.08659487217664719,
0.5606873035430908,
0.3495243489742279,
-0.1818980723619461,
-0.2859417498111725,
-0.04567788541316986,
-0.07513546943664551,
0.20338495075702667,
-0.4242958426475525,
0.020381400361657143,
-0.00720119709149003,
0.07309763133525848,
0.2851404845714569,
-0.1397036761045456,
-0.5321122407913208,
-0.07793182879686356,
0.38625526428222656,
-0.25375959277153015,
0.08177213370800018,
0.4235803484916687,
0.06838815659284592,
0.024976080283522606,
-0.06161923706531525,
0.7284913659095764,
0.260101318359375,
-0.12554779648780823,
0.07814957946538925,
-0.2238432765007019
] |
https://github.com/huggingface/datasets/issues/1783 | Dataset Examples Explorer | Glad to see that it still exist, this existing one is more than good enough for me, it is feature rich, simple to use and concise.
Hope similar feature can be retain in the future version. | In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version.
Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation. | 36 | Dataset Examples Explorer
In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version.
Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation.
Glad to see that it still exist, this existing one is more than good enough for me, it is feature rich, simple to use and concise.
Hope similar feature can be retain in the future version. | [
-0.3628716766834259,
-0.4238748550415039,
-0.046912845224142075,
0.3083788752555847,
0.12723509967327118,
0.2346736490726471,
0.1710147112607956,
0.3707433044910431,
-0.046005334705114365,
0.37545105814933777,
0.03735959529876709,
0.2407732456922531,
-0.3106936514377594,
0.5867727994918823,
0.4250451922416687,
-0.37111154198646545,
0.017620481550693512,
0.18140704929828644,
-0.08537570387125015,
0.08684252947568893,
0.05588094890117645,
0.07995832711458206,
-0.18064266443252563,
0.19461649656295776,
-0.43756410479545593,
-0.20320983231067657,
-0.2906792461872101,
-0.01811213046312332,
-0.2234526425600052,
-0.5350549817085266,
0.09335114806890488,
-0.11315961182117462,
0.3181226849555969,
0.09953143447637558,
-0.0001116613348131068,
-0.19113917648792267,
0.2427988350391388,
0.11751487106084824,
-0.537482500076294,
-0.01702454686164856,
-0.3509194552898407,
-0.06324806064367294,
0.32067570090293884,
-0.18441499769687653,
-0.18592782318592072,
-0.33353620767593384,
0.2009567767381668,
0.08714304864406586,
0.3625761568546295,
-0.1000136062502861,
0.15401513874530792,
0.4514332413673401,
-0.11476939916610718,
-0.2746315002441406,
0.021525664255023003,
0.6503050327301025,
-0.4158146381378174,
0.10277410596609116,
0.4872647225856781,
0.12204417586326599,
-0.062831811606884,
0.43643414974212646,
0.3849203884601593,
0.10844162851572037,
0.08278673142194748,
0.13598233461380005,
0.036740001291036606,
-0.12854552268981934,
-0.00267600966617465,
0.6877960562705994,
0.43814682960510254,
0.09319864958524704,
-0.36321359872817993,
-0.5371538400650024,
-0.09443017840385437,
-0.20775514841079712,
-0.12356653064489365,
0.34606170654296875,
0.0456617996096611,
0.29226425290107727,
-0.3274421989917755,
0.12380816787481308,
-0.20140644907951355,
-0.043520160019397736,
-0.03160913288593292,
-0.041952989995479584,
-0.35054638981819153,
-0.03885716199874878,
0.4434104859828949,
-0.04545506834983826,
0.03214403614401817,
0.1650785505771637,
0.027494382113218307,
0.1676369458436966,
-0.03626417741179466,
-0.17897461354732513,
0.2143944948911667,
0.1790531575679779,
0.20067410171031952,
0.18325631320476532,
0.04367390647530556,
0.2886770963668823,
-0.005131645128130913,
0.18752612173557281,
0.21003790199756622,
-0.14857755601406097,
0.44558775424957275,
0.15799202024936676,
0.19875748455524445,
0.29058343172073364,
0.11119475215673447,
-0.024733958765864372,
-0.3412184715270996,
0.190703883767128,
-0.35143935680389404,
-0.23641586303710938,
0.04807782545685768,
-0.15703624486923218,
-0.07454635202884674,
-0.11041413992643356,
-0.19669853150844574,
-0.10011166334152222,
0.09877175092697144,
0.3787336051464081,
-0.08206493407487869,
-0.3699350655078888,
-0.30439260601997375,
-0.13231457769870758,
0.09532992541790009,
-0.3404926657676697,
-0.16335293650627136,
0.013424172066152096,
-0.25730711221694946,
0.07651712745428085,
0.14089342951774597,
-0.489113986492157,
0.4031631350517273,
-0.06372016668319702,
-0.08232052624225616,
0.018205741420388222,
0.31768152117729187,
0.13764551281929016,
0.323196679353714,
0.08467727154493332,
-0.06982110440731049,
-0.20018480718135834,
0.1453600525856018,
0.04668080061674118,
-0.24021996557712555,
-0.03320461884140968,
-0.11505424976348877,
-0.40292787551879883,
-0.31976792216300964,
0.09049723297357559,
-0.17862184345722198,
0.10104788094758987,
-0.5091863870620728,
0.5675262212753296,
-0.4719488024711609,
-0.14239588379859924,
-0.05228753387928009,
0.16882802546024323,
-0.28889408707618713,
0.08082085102796555,
0.3657830059528351,
0.32024410367012024,
-0.3815147578716278,
-0.4023030400276184,
0.004049580544233322,
-0.20244964957237244,
-0.3541719615459442,
-0.010266248136758804,
-0.3748866617679596,
0.3842633366584778,
-0.5060609579086304,
0.19321085512638092,
0.34828779101371765,
-0.2705027759075165,
-0.026890290901064873,
0.07324211299419403,
0.1342184990644455,
-0.015300116501748562,
0.05472071096301079,
-0.16563981771469116,
0.5171093940734863,
-0.05808296427130699,
-0.32665836811065674,
-0.005883791018277407,
0.05005241185426712,
0.0045677912421524525,
-0.005781079642474651,
-0.14363348484039307,
-0.012643024325370789,
0.09874150156974792,
-0.18809092044830322,
0.082975372672081,
0.1046869084239006,
-0.029137935489416122,
0.5324885845184326,
-0.25470292568206787,
-0.0623813159763813,
0.12401639670133591,
0.24472279846668243,
0.18672719597816467,
0.03328966721892357,
-0.39072516560554504,
-0.26631611585617065,
0.08742725104093552,
0.01739155687391758,
-0.17043696343898773,
0.3375403881072998,
-0.32687100768089294,
-0.10811790078878403,
-0.030137956142425537,
-0.2641526758670807,
-0.24581167101860046,
0.11566304415464401,
-0.16326652467250824,
0.11296766251325607,
0.11940519511699677,
-0.23012857139110565,
0.10286282747983932,
-0.4876905083656311,
0.19370000064373016,
-0.3489357829093933,
0.1925225406885147,
0.11545931547880173,
0.0896763950586319,
-0.0020307814702391624,
0.0805487111210823,
-0.023297546431422234,
-0.28268760442733765,
0.05232395976781845,
0.1806110292673111,
0.16518278419971466,
-0.1275322139263153,
0.20217983424663544,
0.4183844029903412,
0.25019389390945435,
-0.3330259919166565,
-0.004209777340292931,
-0.2055595964193344,
-0.07188466936349869,
0.18679282069206238,
-0.7351930737495422,
0.31166502833366394,
0.2892591953277588,
0.17379412055015564,
0.27622804045677185,
0.05596660077571869,
0.027218593284487724,
0.08492932468652725,
-0.2509569525718689,
-0.23386913537979126,
0.16243454813957214,
0.08342399448156357,
0.13515087962150574,
0.011841067112982273,
-0.6773616671562195,
0.1799953132867813,
0.3371831476688385,
-0.12553751468658447,
-0.0636918693780899,
0.1597156673669815,
-0.28300487995147705,
-0.07185130566358566,
0.42287060618400574,
0.05802660435438156,
0.007862095721065998,
0.22130197286605835,
0.17576752603054047,
0.06113583594560623,
-0.102824866771698,
0.13898807764053345,
0.23111410439014435,
0.05953577160835266,
-0.021347466856241226,
-0.36259332299232483,
-0.15990905463695526,
0.12347909808158875,
-0.2691360414028168,
-0.08518479764461517,
0.12612184882164001,
0.0675012618303299,
-0.2492978423833847,
0.08822331577539444,
-0.31241321563720703,
-0.46994978189468384,
-0.05582798644900322,
0.05367056280374527,
0.10643555968999863,
-0.34494051337242126,
0.09614873677492142,
0.1833515614271164,
-0.1305016726255417,
0.08080189675092697,
-0.07397535443305969,
0.4409165382385254,
-0.2626435458660126,
0.6817625164985657,
-0.1589348167181015,
0.12168225646018982,
-0.14660464227199554,
0.09290526807308197,
0.19640988111495972,
0.2997833490371704,
0.39553722739219666,
-0.1922946572303772,
0.12537504732608795,
-0.6362912654876709,
-0.5710224509239197,
0.4147367477416992,
0.11405134946107864,
0.2819753587245941,
0.3237910866737366,
0.12125866860151291,
-0.4809722602367401,
-0.092061348259449,
0.023898258805274963,
-0.31085091829299927,
-0.19529543817043304,
-0.16065257787704468,
-0.06964955478906631,
0.08661582320928574,
-0.0036350626032799482,
-0.17604538798332214,
-0.23371903598308563,
-0.19288866221904755,
0.373075932264328,
-0.13502922654151917,
0.21569667756557465,
0.1801915019750595,
0.02222069352865219,
0.3586764931678772,
-0.5773913264274597,
0.06568799912929535,
-0.12300499528646469,
-0.4196789264678955,
-0.034190963953733444,
-0.5392006635665894,
-0.3599957227706909,
0.048810772597789764,
-0.18133850395679474,
-0.12221425771713257,
-0.08613025397062302,
-0.22494058310985565,
-0.28328976035118103,
-0.28889161348342896,
-0.012711819261312485,
-0.05501673370599747,
0.1428120732307434,
0.36446624994277954,
-0.012961638160049915,
-0.048052407801151276,
0.0823386162519455,
-0.22717300057411194,
-0.041186146438121796,
-0.01952260360121727,
0.10348036885261536,
-0.11570604145526886,
0.011371716856956482,
0.14244073629379272,
0.42829811573028564,
0.13442082703113556,
-0.07861000299453735,
0.047712765634059906,
-0.41471952199935913,
0.254325807094574,
-0.08435893058776855,
-0.106303371489048,
0.15341757237911224,
-0.09898398071527481,
0.17140258848667145,
0.13085433840751648,
0.21026946604251862,
0.34521254897117615,
0.28850364685058594,
0.26340606808662415,
-0.29600635170936584,
-0.2334068864583969,
0.025864116847515106,
-0.0685664638876915,
0.2710050344467163,
-0.05810615047812462,
0.05613698810338974,
-0.050293561071157455,
0.11480201780796051,
0.0017155520617961884,
0.13608437776565552,
0.2629626393318176,
0.042691826820373535,
-0.45156922936439514,
0.04889276623725891,
0.06359287351369858,
-0.0651576966047287,
0.04239523410797119,
-0.148787260055542,
-0.27443480491638184,
-0.1030249148607254,
0.013310379348695278,
0.275325208902359,
0.6601603627204895,
0.022746749222278595,
-0.02109231986105442,
0.0015428148908540606,
-0.5326406955718994,
-0.38593021035194397,
-0.023572158068418503,
-0.24939373135566711,
0.07461784034967422,
0.11913195997476578,
0.45952126383781433,
0.0635114312171936,
-0.3181057572364807,
0.637378990650177,
0.21319745481014252,
-0.19423073530197144,
0.12622733414173126,
0.1192455142736435,
0.10609408468008041,
-0.20075348019599915,
0.015885282307863235,
0.1677350103855133,
-0.07218687981367111,
-0.06926433742046356,
-0.2534736096858978,
-0.36916157603263855,
0.06230616942048073,
-0.016083257272839546,
0.445326566696167,
0.38878533244132996,
0.07389413565397263,
0.32723668217658997,
0.4302355945110321,
0.4262765049934387,
0.3560323417186737,
0.2934802174568176,
0.017901048064231873,
-0.14675121009349823,
0.25957536697387695,
-0.10832257568836212,
0.4040623903274536,
0.20718583464622498,
-0.040267348289489746,
0.13808976113796234,
-0.10564921796321869,
0.15932263433933258,
-0.3352412283420563,
0.29041266441345215,
0.3205355107784271,
0.14101284742355347,
-0.36668768525123596,
-0.22207599878311157,
0.5649848580360413,
0.2509383261203766,
-0.19642658531665802,
0.4854007065296173,
0.5616514086723328,
0.16542662680149078,
-0.2337636947631836,
-0.013483590446412563,
0.7488550543785095,
0.011356646195054054,
0.1794237196445465,
0.2811605632305145,
-0.08628977090120316,
0.518132746219635,
0.213639497756958,
-0.0785980075597763,
-0.3509381413459778,
-0.4129319489002228,
-0.10723773390054703,
-0.23593750596046448,
0.25145596265792847,
0.21314319968223572,
-0.1995895951986313,
-0.030933130532503128,
0.03396129608154297,
0.18470200896263123,
-0.08068109303712845,
0.08582659065723419,
0.06718719750642776,
-0.19965171813964844,
-0.4594392776489258,
0.06681536883115768,
0.1864132434129715,
-0.03131748363375664,
-0.0020043235272169113,
-0.1454935073852539,
0.03372632712125778,
-0.0769510492682457,
-0.41617727279663086,
-0.24802769720554352,
-0.1253674179315567,
-0.027866700664162636,
0.37327247858047485,
-0.3237704038619995,
0.32466697692871094,
0.24128662049770355,
-0.023241685703396797,
0.06661110371351242,
-0.20861279964447021,
-0.031621407717466354,
-0.5383202433586121,
0.011953308247029781,
-0.2288866639137268,
-0.04973569139838219,
0.2615383565425873,
-0.13232572376728058,
-0.23747071623802185,
0.18709783256053925,
-0.06151873618364334,
0.0161333829164505,
-0.07066478580236435,
0.1741616576910019,
-0.197946235537529,
-0.1789819598197937,
-0.07287634164094925,
-0.11469750106334686,
0.00568442652001977,
-0.2668551802635193,
0.09958077222108841,
0.20716193318367004,
-0.11864684522151947,
-0.011444838717579842,
0.39657729864120483,
0.16505976021289825,
0.023877477273344994,
0.11083198338747025,
-0.17631429433822632,
-0.01612892560660839,
0.2718542814254761,
0.17134521901607513,
0.04965631663799286,
-0.19897738099098206,
0.29848772287368774,
0.5128169059753418,
-0.20561201870441437,
0.04053357616066933,
-0.07901506870985031,
-0.004781607072800398,
0.14209944009780884,
0.42641183733940125,
0.2334619015455246,
-0.1881692260503769,
-0.21816542744636536,
-0.042688775807619095,
-0.37369924783706665,
0.22815240919589996,
-0.17073820531368256,
0.4515783488750458,
-0.12383217364549637,
-0.008598240092396736,
0.06441085040569305,
0.10720442235469818,
-0.2979230582714081,
0.23733118176460266,
-0.2675720751285553,
0.06758631765842438,
0.10665388405323029,
0.2853389084339142,
0.1486872136592865,
-0.29662662744522095,
-0.05603716894984245,
0.08989846706390381,
-0.16925844550132751,
-0.22352172434329987,
-0.35695594549179077,
0.14497800171375275,
0.06432601064443588,
-0.03981628268957138,
0.29318031668663025,
0.3415267765522003,
-0.031243111938238144,
-0.21596716344356537,
0.21449072659015656,
0.05331166833639145,
0.2625320255756378,
0.26503193378448486,
0.011877062730491161,
-0.145411416888237,
0.23327286541461945,
0.02683693915605545,
0.2896944582462311,
0.19864636659622192,
0.30816659331321716,
-0.1180163025856018,
-0.13548482954502106,
-0.09962958097457886,
0.013954455964267254,
0.19519199430942535,
-0.04864976927638054,
-0.3119460344314575,
0.013578417710959911,
0.004881365690380335,
0.07423307001590729,
0.039838675409555435,
0.3551677167415619,
0.11483068019151688,
0.01651916652917862,
0.1727309376001358,
0.2973676025867462,
0.18092645704746246,
-0.19038312137126923,
-0.20953229069709778,
0.17146380245685577,
-0.11087056249380112,
0.2763524353504181,
0.018687868490815163,
0.21209394931793213,
0.3231055736541748,
0.16003131866455078,
-0.18677304685115814,
0.036665961146354675,
-0.017878999933600426,
0.47369125485420227,
0.2818273603916168,
-0.25115880370140076,
0.09751184284687042,
0.11154700070619583,
0.16977129876613617,
0.36726564168930054,
-0.1209312230348587,
-0.023420820012688637,
0.30761998891830444,
-0.19601665437221527,
0.08618567883968353,
0.5580363869667053,
-0.32684817910194397,
0.03364309296011925,
0.08667609095573425,
-0.16847506165504456,
0.044301800429821014,
-0.20905372500419617,
0.534598708152771,
-0.12784099578857422,
-0.40579932928085327,
-0.25142666697502136,
-0.061817023903131485,
0.05484165996313095,
-0.11274251341819763,
-0.039309341460466385,
-0.21569064259529114,
0.08804281055927277,
0.09321843832731247,
0.1074286624789238,
-0.3729958236217499,
0.21447248756885529,
-0.32368892431259155,
-0.008395836688578129,
-0.42543330788612366,
0.0057018292136490345,
0.34779125452041626,
0.2657504379749298,
0.09099100530147552,
-0.09729989618062973,
-0.09930142760276794,
0.0328822135925293,
-0.03462766110897064,
0.6206562519073486,
0.11807633936405182,
-0.2262897938489914,
0.43332311511039734,
0.040671996772289276,
-0.31299272179603577,
0.0022461258340626955,
0.07346972823143005,
-0.12079410254955292,
0.1067873165011406,
-0.34008535742759705,
0.2328072041273117,
0.07468341290950775,
-0.10751161724328995,
0.15737594664096832,
-0.1454620212316513,
0.09124623239040375,
-0.43712711334228516,
-0.17303012311458588,
-0.18892371654510498,
-0.22340868413448334,
0.03945799916982651,
-0.23092597723007202,
-0.21440115571022034,
0.0947491005063057,
0.5052249431610107,
0.03361647576093674,
0.010373476892709732,
0.07255575060844421,
0.055790793150663376,
0.007100965827703476,
0.3296576142311096,
0.512272298336029,
0.10035835206508636,
0.03079422190785408,
-0.37073108553886414,
-0.4566683769226074,
-0.05536245182156563,
-0.2726142406463623,
-0.11334791034460068,
0.30758753418922424,
0.05955600365996361,
0.020858539268374443,
0.14123155176639557,
0.2326318323612213,
-0.1926283836364746,
0.14967507123947144,
0.0902007669210434,
-0.4039144814014435,
-0.2468184381723404,
0.16586631536483765,
0.14313797652721405,
-0.11398693919181824,
0.019761793315410614,
0.1975492388010025,
-0.21652761101722717,
-0.08191684633493423,
-0.0905742421746254,
0.4436957538127899,
-0.3907445967197418,
-0.12347599864006042,
0.23003505170345306,
-0.05083305761218071,
0.17910410463809967,
-0.05477733165025711,
-0.1305193305015564,
-0.10952670127153397,
0.1321539431810379,
0.0601375550031662,
0.32160526514053345,
0.13709013164043427,
0.24854913353919983,
-0.04044165462255478,
-0.282012939453125,
-0.10846053063869476,
-0.10370346903800964,
0.4561387896537781,
0.061592817306518555,
-0.2457849234342575,
0.07840348780155182,
0.06845839321613312,
-0.09748072177171707,
0.5709721446037292,
0.35886767506599426,
-0.208097904920578,
-0.24776452779769897,
-0.10207515954971313,
-0.10125746577978134,
0.2366829663515091,
-0.3834226131439209,
-0.025716545060276985,
-0.03234434500336647,
0.08270930498838425,
0.2758224308490753,
-0.10746429860591888,
-0.5303416848182678,
-0.1059398502111435,
0.34870409965515137,
-0.27847370505332947,
0.0735512301325798,
0.4093364179134369,
0.09777122735977173,
-0.005446745082736015,
-0.06865838170051575,
0.683068573474884,
0.27627474069595337,
-0.11772126704454422,
0.09965216368436813,
-0.23936936259269714
] |
https://github.com/huggingface/datasets/issues/1781 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import | Hi ! I'm not able to reproduce the issue. Can you try restarting your runtime ?
The PyExtensionType is available in pyarrow starting 0.17.1 iirc. If restarting your runtime doesn't fix this, can you try updating pyarrow ?
```
pip install pyarrow --upgrade
``` | I'm using Colab. And suddenly this morning, there is this error. Have a look below!

| 44 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
I'm using Colab. And suddenly this morning, there is this error. Have a look below!

Hi ! I'm not able to reproduce the issue. Can you try restarting your runtime ?
The PyExtensionType is available in pyarrow starting 0.17.1 iirc. If restarting your runtime doesn't fix this, can you try updating pyarrow ?
```
pip install pyarrow --upgrade
``` | [
-0.1790660172700882,
-0.1585773080587387,
-0.044393882155418396,
0.2205853909254074,
0.18019793927669525,
-0.06392691284418106,
0.1799791306257248,
0.26824215054512024,
-0.3114219903945923,
0.19323432445526123,
-0.036104802042245865,
0.43298816680908203,
-0.16673225164413452,
-0.1118563786149025,
0.08164181560277939,
-0.06726466864347458,
0.2507493197917938,
0.3972358703613281,
0.22831621766090393,
0.015299140475690365,
-0.1987968385219574,
0.22143340110778809,
-0.33178988099098206,
0.22891125082969666,
-0.36306923627853394,
0.25725147128105164,
0.05589579418301582,
-0.19205611944198608,
-0.23017434775829315,
-0.5764157176017761,
0.462282657623291,
-0.4576905071735382,
0.18378621339797974,
0.019819704815745354,
-0.00011443190305726603,
-0.008583638817071915,
0.34698498249053955,
0.0369325615465641,
-0.07820001989603043,
-0.17992711067199707,
0.01466925535351038,
-0.07960045337677002,
0.315355509519577,
-0.06888267397880554,
0.13768447935581207,
-0.04909826070070267,
-0.04556238651275635,
0.36711791157722473,
-0.051687050610780716,
0.27965304255485535,
0.23754481971263885,
-0.025175588205456734,
0.5402340888977051,
0.01672337017953396,
0.522700309753418,
-0.16090212762355804,
-0.2256375253200531,
0.6437644958496094,
0.3970015048980713,
-0.33972710371017456,
0.33035165071487427,
-0.062388282269239426,
-0.3161488473415375,
0.14672793447971344,
0.3413374722003937,
0.00938659068197012,
0.4785271883010864,
-0.29683995246887207,
-0.034920938313007355,
0.06390506774187088,
0.19930952787399292,
-0.10613224655389786,
-0.05362313985824585,
0.1321714073419571,
0.2737745940685272,
-0.4418089985847473,
0.1780535876750946,
0.3744232654571533,
-0.06510338187217712,
0.1674177646636963,
0.34469369053840637,
-0.02827368676662445,
-0.1547166407108307,
0.11217716336250305,
-0.329947292804718,
0.44001173973083496,
-0.06089143082499504,
-0.012678819708526134,
0.16065971553325653,
-0.014353552833199501,
0.43840283155441284,
0.17201931774616241,
-0.14645706117153168,
0.17460940778255463,
-0.13466796278953552,
0.16957899928092957,
0.0346124991774559,
0.36144906282424927,
-0.01689748279750347,
-0.30393436551094055,
-0.16464047133922577,
-0.2202557772397995,
0.18523795902729034,
0.45858800411224365,
-0.15472416579723358,
0.29691043496131897,
0.04259829968214035,
-0.18984930217266083,
0.19396473467350006,
0.04311400651931763,
-0.10442966222763062,
0.14216046035289764,
-0.1413404643535614,
-0.37775173783302307,
0.238135427236557,
-0.08613269031047821,
0.4219927489757538,
-0.1524941325187683,
-0.45514002442359924,
-0.34603968262672424,
-0.5161130428314209,
0.07154248654842377,
-0.08191079646348953,
0.23173083364963531,
-0.1786213368177414,
0.13982269167900085,
0.013510248623788357,
0.22793518006801605,
-0.12977571785449982,
-0.23413769900798798,
-0.04157055914402008,
0.3183739483356476,
-0.18675605952739716,
-0.22401635348796844,
-0.06058354303240776,
-0.19775395095348358,
-0.03448714688420296,
0.0647209957242012,
0.002957427641376853,
-0.17286519706249237,
-0.36389848589897156,
-0.2314034104347229,
-0.23837409913539886,
0.3250190317630768,
-0.12411957234144211,
-0.014452388510107994,
0.17097815871238708,
-0.5575418472290039,
-0.1424940973520279,
0.3194749653339386,
-0.5617519617080688,
-0.4043886065483093,
-0.290480375289917,
0.1659996211528778,
-0.1723259538412094,
-0.15489734709262848,
-0.30650952458381653,
-0.18035085499286652,
-0.033965326845645905,
-0.27121874690055847,
-0.1344476193189621,
-0.47942426800727844,
-0.01606059819459915,
-0.4012238383293152,
-0.0779944583773613,
0.023712679743766785,
-0.45368432998657227,
-0.1713843047618866,
-0.06733483821153641,
-0.059335172176361084,
0.34551534056663513,
0.03483583778142929,
-0.17410334944725037,
0.059954024851322174,
-0.08434509485960007,
0.19870130717754364,
0.08481437712907791,
-0.11367397755384445,
-0.22338375449180603,
-0.23622481524944305,
-0.07850734889507294,
-0.03860349953174591,
-0.0020761992782354355,
-0.2877240478992462,
-0.019769346341490746,
-0.043130893260240555,
0.4431333839893341,
0.2906011939048767,
-0.10933449864387512,
0.21798588335514069,
-0.31103330850601196,
-0.19816681742668152,
0.35804492235183716,
0.12559925019741058,
0.0955359935760498,
-0.16782405972480774,
0.08927806466817856,
-0.28284752368927,
0.0909028872847557,
-0.14410428702831268,
-0.033342666923999786,
-0.024779558181762695,
0.566024899482727,
0.0915234163403511,
-0.11757358908653259,
-0.05556722357869148,
0.060302168130874634,
0.17707251012325287,
-0.167184978723526,
0.15225590765476227,
-0.34474220871925354,
-0.03800135850906372,
-0.3247755169868469,
0.39262616634368896,
-0.24539218842983246,
-0.07465983927249908,
0.08875145763158798,
-0.10591772943735123,
-0.17910726368427277,
0.4000241458415985,
-0.07048489898443222,
0.05814735218882561,
0.1778249591588974,
0.18562833964824677,
0.07449121028184891,
0.430185467004776,
-0.27083179354667664,
-0.49790725111961365,
-0.10840503871440887,
0.0034131028223782778,
0.2324228137731552,
0.009456908330321312,
-0.10768024623394012,
-0.06700019538402557,
-0.029654409736394882,
0.18209540843963623,
-0.2738327980041504,
0.15432313084602356,
0.09934799373149872,
-0.46785080432891846,
-0.00980441365391016,
-0.22348225116729736,
0.0692763403058052,
-0.018745368346571922,
0.8860569596290588,
0.16759264469146729,
0.2548612058162689,
0.13226395845413208,
-0.26078611612319946,
0.16865716874599457,
0.004634649492800236,
0.09246339648962021,
0.20963875949382782,
0.13990451395511627,
0.06811733543872833,
0.241194486618042,
-0.18112148344516754,
-0.11707492172718048,
-0.02553267776966095,
0.05425424128770828,
0.2834246754646301,
0.20264528691768646,
0.19769519567489624,
0.001947763143107295,
-0.475684255361557,
0.09324333071708679,
0.23659208416938782,
-0.17329414188861847,
0.32500728964805603,
0.06680101901292801,
-0.35975685715675354,
0.07571990042924881,
0.07933535426855087,
-0.08896679431200027,
0.2429632693529129,
0.1491229087114334,
0.5926090478897095,
-0.0030889008194208145,
0.2650880217552185,
0.08024997264146805,
-0.16853909194469452,
-0.2275589257478714,
-0.08665161579847336,
0.27500930428504944,
-0.24857690930366516,
0.2147495448589325,
-0.3447977900505066,
-0.023402826860547066,
-0.16416166722774506,
-0.5490458607673645,
-0.10364382714033127,
-0.12645745277404785,
-0.12158435583114624,
0.28564348816871643,
0.19152595102787018,
0.05217304080724716,
0.2701270878314972,
-0.09636592119932175,
0.07072856277227402,
-0.4580153524875641,
-0.0769520029425621,
-0.2203984409570694,
-0.37430936098098755,
0.02628912962973118,
0.12517724931240082,
-0.05907245725393295,
-0.03042505495250225,
-0.36019352078437805,
0.13016504049301147,
0.07015810161828995,
-0.3697499930858612,
0.10273665189743042,
-0.21741560101509094,
0.3510778844356537,
0.12888464331626892,
0.1389356255531311,
-0.2283431440591812,
-0.22659386694431305,
0.3410276174545288,
-0.22795669734477997,
-0.23165775835514069,
0.17297160625457764,
-0.2530031204223633,
-0.14666686952114105,
-0.03882429748773575,
-0.0024364436976611614,
-0.4087463319301605,
-0.13567502796649933,
-0.0016152047319337726,
0.061781272292137146,
0.06477627903223038,
0.24733588099479675,
0.3024420738220215,
0.2300613671541214,
0.02466340735554695,
-0.005518327932804823,
0.10058533400297165,
0.166260227560997,
0.42914968729019165,
-0.12838523089885712,
-0.17998583614826202,
0.3432490825653076,
-0.25965413451194763,
-0.045466113835573196,
-0.10259033739566803,
-0.21025758981704712,
-0.4968867599964142,
-0.0208502858877182,
0.49425309896469116,
-0.11824721843004227,
-0.04948479309678078,
0.19532018899917603,
0.13268865644931793,
0.006299229804426432,
0.09638729691505432,
-0.02987048402428627,
-0.4402615427970886,
0.36751461029052734,
0.23365983366966248,
0.059735871851444244,
0.038473982363939285,
-0.1328352391719818,
0.5266129970550537,
-0.3150183856487274,
-0.03493981063365936,
0.3293399512767792,
-0.2715456485748291,
-0.061685867607593536,
0.027305707335472107,
-0.3756972849369049,
-0.028094960376620293,
-0.15550291538238525,
-0.20602263510227203,
0.17613326013088226,
-0.2777555584907532,
-0.1640520840883255,
-0.16386260092258453,
-0.07748396694660187,
-0.23830156028270721,
-0.21181216835975647,
0.157907634973526,
0.3201145529747009,
0.22258354723453522,
-0.16092072427272797,
-0.17919395864009857,
-0.013211269862949848,
-0.1428375393152237,
0.12384997308254242,
0.20512790977954865,
-0.27163809537887573,
0.07009857892990112,
0.4383118152618408,
-0.6262351870536804,
-0.059639181941747665,
0.29815244674682617,
0.32961010932922363,
-0.045216165482997894,
0.1585368663072586,
0.06533333659172058,
0.04404834657907486,
-0.016349660232663155,
0.35187336802482605,
0.27033811807632446,
-0.07552266120910645,
0.14120866358280182,
0.07662764191627502,
-0.14909914135932922,
-0.4287261366844177,
-0.11910142749547958,
-0.26810353994369507,
0.024327291175723076,
-0.46824824810028076,
-0.12966515123844147,
0.21631328761577606,
0.3303776979446411,
0.4147616922855377,
-0.10042491555213928,
0.2933029532432556,
-0.3792911469936371,
-0.45693567395210266,
-0.18292316794395447,
-0.1471698135137558,
0.11072330921888351,
0.5425567030906677,
0.044209230691194534,
0.232603520154953,
-0.11236962676048279,
-0.11950142681598663,
0.04818667098879814,
0.2808308005332947,
0.0800943374633789,
-0.08874257653951645,
-0.05812137946486473,
-0.24516355991363525,
-0.14979198575019836,
0.4851495921611786,
0.3575553894042969,
0.3432019054889679,
-0.5243745446205139,
-0.2735807001590729,
0.17613469064235687,
0.28267744183540344,
-0.08507215976715088,
-0.33563312888145447,
0.14720481634140015,
-0.6066706776618958,
-0.10709894448518753,
0.25764456391334534,
-0.05599839240312576,
0.24302123486995697,
0.12221404910087585,
-0.0310077965259552,
0.15050914883613586,
0.5593098402023315,
0.05246904119849205,
0.08376156538724899,
-0.16321061551570892,
0.44748654961586,
-0.10408192873001099,
0.19984474778175354,
0.0331474132835865,
0.8620262742042542,
0.09621654450893402,
-0.1062677651643753,
0.5184585452079773,
-0.08812867850065231,
0.18789654970169067,
-0.008163899183273315,
0.1899983286857605,
-0.3045163154602051,
-0.07990353554487228,
-0.08129160106182098,
-0.2375047504901886,
0.30075588822364807,
-0.38010820746421814,
-0.18557174503803253,
0.03217452019453049,
-0.1073663979768753,
0.041266076266765594,
0.2691589593887329,
-0.3244306743144989,
0.1020287573337555,
-0.02709462307393551,
-0.1815609186887741,
0.12792056798934937,
-0.33907344937324524,
0.3881625831127167,
-0.23317544162273407,
0.0897139310836792,
-0.23838144540786743,
-0.03451789915561676,
-0.3565085828304291,
0.15947556495666504,
-0.47473037242889404,
0.09533730149269104,
0.4025708734989166,
-0.26073071360588074,
0.21801523864269257,
0.2544824779033661,
-0.0881715640425682,
-0.20516034960746765,
-0.11909697204828262,
0.15318116545677185,
0.21048957109451294,
-0.29329925775527954,
-0.14009109139442444,
-0.014819408766925335,
0.37890592217445374,
-0.26633545756340027,
-0.20536845922470093,
0.3243812620639801,
-0.12005503475666046,
0.019012359902262688,
0.2079237848520279,
0.21721187233924866,
0.21742264926433563,
-0.13976913690567017,
-0.1159704327583313,
-0.15482060611248016,
0.43965214490890503,
-0.17938274145126343,
0.09745454043149948,
0.10228665173053741,
-0.1480681300163269,
0.23891429603099823,
0.059793081134557724,
-0.12154383212327957,
-0.06766564399003983,
0.03428690508008003,
0.05308360233902931,
0.12569260597229004,
0.43789029121398926,
0.036009304225444794,
-0.13380871713161469,
-0.08925873041152954,
0.08357713371515274,
-0.24525073170661926,
-0.3923932909965515,
0.1614234298467636,
0.041319116950035095,
0.09458663314580917,
0.15416933596134186,
0.6016366481781006,
0.2200910747051239,
0.19594278931617737,
-0.0029777451418340206,
-0.3935837745666504,
0.015397297218441963,
0.19521281123161316,
0.22340553998947144,
-0.18293774127960205,
0.14827609062194824,
0.4871103763580322,
0.23102232813835144,
-0.2154342383146286,
-0.23554521799087524,
0.16993892192840576,
-0.02021600306034088,
0.16549520194530487,
-0.20813097059726715,
-0.023761557415127754,
0.13768836855888367,
-0.025588298216462135,
0.17065337300300598,
0.1360500007867813,
0.07900409400463104,
-0.24130696058273315,
-0.20383696258068085,
0.156743586063385,
0.04734993353486061,
0.1087639108300209,
0.1444317102432251,
0.032391294836997986,
0.1363895982503891,
0.10756248980760574,
-0.014493201859295368,
-0.011574694886803627,
-0.2664198875427246,
0.020627908408641815,
0.5048089027404785,
0.011671733111143112,
-0.10324107855558395,
0.13988642394542694,
-0.17360393702983856,
0.4591967761516571,
0.17299112677574158,
0.08511386066675186,
0.055666759610176086,
0.12225888669490814,
0.006754703354090452,
-0.15250860154628754,
-0.36882904171943665,
-0.08225278556346893,
0.25275346636772156,
-0.5157039761543274,
-0.010297311469912529,
-0.36649033427238464,
-0.08044420927762985,
0.36816731095314026,
-0.28237760066986084,
0.1550218164920807,
0.35802990198135376,
0.14871469140052795,
-0.23438912630081177,
0.08023477345705032,
0.15615901350975037,
0.01210432592779398,
-0.06572804600000381,
0.20857001841068268,
0.09627145528793335,
0.13251718878746033,
0.013520902022719383,
0.19413739442825317,
0.11257454752922058,
0.3337908983230591,
0.07331252098083496,
0.19916698336601257,
-0.19074875116348267,
0.3111235201358795,
0.30128076672554016,
-0.044726643711328506,
0.09972520917654037,
0.10714663565158844,
-0.2848714590072632,
0.19150109589099884,
-0.12234561145305634,
-0.036643337458372116,
0.3447068929672241,
-0.2727973759174347,
0.054544344544410706,
-0.049981266260147095,
0.20501232147216797,
-0.1866607964038849,
0.22294838726520538,
0.4996074438095093,
-0.038126785308122635,
-0.08524592220783234,
0.04503977671265602,
0.47153306007385254,
-0.0909213051199913,
0.2189592570066452,
0.2121889591217041,
0.040019579231739044,
-0.11028889566659927,
0.061560314148664474,
0.08992932736873627,
-0.16476735472679138,
0.14055779576301575,
0.3287213146686554,
-0.27814948558807373,
-0.16833488643169403,
0.13419625163078308,
0.15515078604221344,
0.2446388602256775,
-0.1510167121887207,
-0.029192321002483368,
-0.012602919712662697,
-0.25358644127845764,
-0.3425182104110718,
0.33090940117836,
0.5272142291069031,
0.3617965281009674,
-0.2228710651397705,
-0.3505692183971405,
-0.26277604699134827,
-0.08631548285484314,
0.11957193166017532,
-0.16436447203159332,
0.1971999555826187,
0.5600976943969727,
0.07675652951002121,
0.1942417323589325,
-0.17044945061206818,
0.139704167842865,
-0.09166496247053146,
-0.04318929836153984,
-0.049122896045446396,
0.1625782698392868,
-0.008292860351502895,
-0.25678661465644836,
-0.5138967633247375,
0.09667105972766876,
-0.050402794033288956,
0.3500349819660187,
0.11257290095090866,
0.11481530219316483,
-0.18550226092338562,
0.04428818076848984,
0.06090010702610016,
0.1665428876876831,
0.30519726872444153,
0.3875772953033447,
0.4755406379699707,
-0.21389444172382355,
-0.18143446743488312,
-0.29163673520088196,
0.3696189820766449,
-0.2389659434556961,
0.0414593368768692,
0.11052713543176651,
-0.006288853939622641,
-0.1999727040529251,
0.37022891640663147,
-0.011493931524455547,
0.1765710562467575,
0.07348845899105072,
0.029802678152918816,
-0.32098403573036194,
-0.2221902757883072,
0.1444743573665619,
-0.3279421627521515,
0.07144923508167267,
-0.12310606241226196,
0.2319749891757965,
-0.6399857401847839,
0.11017221957445145,
-0.35003116726875305,
-0.2746464014053345,
0.002753601409494877,
-0.002903604181483388,
0.6594690084457397,
-0.08456918597221375,
0.41613006591796875,
0.13280315697193146,
0.09509290009737015,
0.03782270476222038,
-0.34727656841278076,
-0.05209474638104439,
0.247288778424263,
-0.0002783430682029575,
0.22365142405033112,
0.11498797684907913,
0.007557749282568693,
-0.3633072078227997,
0.3691531717777252,
0.010459143668413162,
-0.10326380282640457,
-0.10034002363681793,
0.08077175170183182,
0.01823269948363304,
0.16123929619789124,
-0.16696973145008087,
0.017748335376381874,
-0.10940351337194443,
0.047038447111845016,
-0.36118006706237793,
-0.5371567010879517,
0.42435869574546814,
-0.31465816497802734,
-0.34144696593284607,
0.067339226603508,
0.2100277543067932,
-0.13278169929981232,
-0.1468292623758316,
-0.4087653160095215,
0.0332324281334877,
0.2969633936882019,
0.13314013183116913,
-0.2754378318786621,
0.2085576057434082,
0.03382689133286476,
0.05570564046502113,
-0.0335557758808136,
0.3838146924972534,
-0.09978779405355453,
0.1347155123949051,
-0.25185322761535645,
-0.06294284760951996
] |
https://github.com/huggingface/datasets/issues/1781 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import | Yes indeed.
Also it looks like Pyarrow 3.0.0 got released on pypi 10 hours ago. This might be related to the bug, I'll investigate
EDIT: looks like the 3.0.0 release doesn't have unexpected breaking changes for us, so I don't think the issue comes from that | I'm using Colab. And suddenly this morning, there is this error. Have a look below!

| 46 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
I'm using Colab. And suddenly this morning, there is this error. Have a look below!

Yes indeed.
Also it looks like Pyarrow 3.0.0 got released on pypi 10 hours ago. This might be related to the bug, I'll investigate
EDIT: looks like the 3.0.0 release doesn't have unexpected breaking changes for us, so I don't think the issue comes from that | [
-0.013139103539288044,
-0.06683257967233658,
-0.03311915695667267,
0.14838816225528717,
0.15526390075683594,
-0.136658176779747,
0.29721179604530334,
0.32552459836006165,
-0.3937355577945709,
0.18657316267490387,
-0.017269041389226913,
0.3017129600048065,
-0.09787213802337646,
-0.1359524130821228,
0.15709730982780457,
-0.07664709538221359,
0.3692229688167572,
0.33226585388183594,
0.21011212468147278,
0.03413217142224312,
-0.20479044318199158,
0.24357450008392334,
-0.360564261674881,
0.281629741191864,
-0.33497145771980286,
0.29646557569503784,
-0.050194498151540756,
-0.2114926129579544,
-0.1720486730337143,
-0.5515246391296387,
0.465297669172287,
-0.37165674567222595,
0.17180278897285461,
0.0862075462937355,
-0.00011528708273544908,
0.04787646606564522,
0.3382733166217804,
0.01089903898537159,
-0.060263656079769135,
-0.09714464843273163,
0.005682784598320723,
-0.04947979375720024,
0.24770934879779816,
-0.017045965418219566,
0.1799536794424057,
-0.04658539965748787,
-0.12438354641199112,
0.3421863317489624,
-0.09060158580541611,
0.3016497492790222,
0.23600521683692932,
0.08285796642303467,
0.48731809854507446,
0.030931774526834488,
0.607761025428772,
-0.07731691002845764,
-0.2693599462509155,
0.5535905361175537,
0.3471968173980713,
-0.3623819649219513,
0.30864086747169495,
-0.03970615938305855,
-0.26906225085258484,
0.11965315788984299,
0.28641217947006226,
0.029936952516436577,
0.42403659224510193,
-0.2688586413860321,
-0.0992744192481041,
0.15160168707370758,
0.16770629584789276,
-0.17284415662288666,
-0.14817418158054352,
0.05795488879084587,
0.25755733251571655,
-0.45991015434265137,
0.23176820576190948,
0.3112022280693054,
-0.11514844745397568,
0.1562722623348236,
0.3843083679676056,
0.0039485446177423,
-0.21210817992687225,
0.05668787285685539,
-0.3574638366699219,
0.43640050292015076,
0.00009569975372869521,
-0.03212372586131096,
0.18041592836380005,
-0.0024626904632896185,
0.482647180557251,
0.21764448285102844,
-0.22505979239940643,
0.18745823204517365,
-0.12645238637924194,
0.12052574753761292,
0.09698401391506195,
0.21317385137081146,
0.032653436064720154,
-0.24343335628509521,
-0.17189395427703857,
-0.2731764316558838,
0.27437540888786316,
0.34536415338516235,
-0.1747223138809204,
0.240558922290802,
0.0511554554104805,
-0.09853852540254593,
0.2141355574131012,
-0.01702667959034443,
0.0022324256133288145,
0.15822698175907135,
-0.13248813152313232,
-0.33098646998405457,
0.1595117449760437,
-0.11746695637702942,
0.38870060443878174,
-0.10719690471887589,
-0.40329211950302124,
-0.36724382638931274,
-0.4772162139415741,
0.04258313402533531,
-0.20664383471012115,
0.16537873446941376,
-0.09996521472930908,
0.17632128298282623,
-0.0519440621137619,
0.249445378780365,
-0.20047761499881744,
-0.1350598931312561,
-0.015427462756633759,
0.3069824278354645,
-0.1381399929523468,
-0.11662731319665909,
-0.1501954048871994,
-0.11737336963415146,
-0.12035488337278366,
-0.028892947360873222,
0.003705522045493126,
-0.09388600289821625,
-0.39035162329673767,
-0.22690877318382263,
-0.192727729678154,
0.4000970125198364,
-0.20944736897945404,
0.010631379671394825,
0.03616639971733093,
-0.43288034200668335,
-0.17511144280433655,
0.3084086775779724,
-0.5105226635932922,
-0.4189542531967163,
-0.33869850635528564,
0.1622045636177063,
-0.23925572633743286,
-0.15903297066688538,
-0.21014522016048431,
-0.15391752123832703,
-0.025782311335206032,
-0.29771679639816284,
-0.06793689727783203,
-0.45933935046195984,
0.06612347066402435,
-0.37615397572517395,
-0.08899489790201187,
0.1171998530626297,
-0.46005716919898987,
-0.20829391479492188,
-0.039674535393714905,
-0.10024954378604889,
0.21234051883220673,
0.03345270827412605,
-0.13828961551189423,
0.04763425514101982,
-0.13627727329730988,
0.23074308037757874,
-0.024285877123475075,
-0.05946244299411774,
-0.2722766399383545,
-0.23208309710025787,
-0.04425149783492088,
-0.0388595387339592,
0.09284977614879608,
-0.3169506788253784,
0.034344252198934555,
-0.07495131343603134,
0.4046435058116913,
0.2313242405653,
-0.11846973747015,
0.2528599500656128,
-0.21519072353839874,
-0.22505803406238556,
0.4088806211948395,
0.06684190034866333,
0.09730330109596252,
-0.23978039622306824,
0.0692017525434494,
-0.2193102389574051,
0.1449560672044754,
-0.16284969449043274,
-0.016128208488225937,
-0.00417401222512126,
0.5557931065559387,
0.01143166795372963,
-0.0856291726231575,
-0.050572119653224945,
0.018957294523715973,
0.22291789948940277,
-0.18532037734985352,
0.19592656195163727,
-0.37701714038848877,
0.050820428878068924,
-0.2732280492782593,
0.4390935003757477,
-0.23997028172016144,
-0.22913725674152374,
0.0691438540816307,
-0.07095538079738617,
-0.16861392557621002,
0.4575912654399872,
-0.12533006072044373,
0.08456630259752274,
0.2847539186477661,
0.14485734701156616,
0.1470869481563568,
0.49994462728500366,
-0.2506093382835388,
-0.4530476927757263,
-0.15841950476169586,
0.009718627668917179,
0.18617762625217438,
-0.03563080355525017,
-0.08804579824209213,
-0.0568741038441658,
0.01089534442871809,
0.2653045654296875,
-0.2652030885219574,
0.12354998290538788,
0.17384281754493713,
-0.39295804500579834,
-0.01811409555375576,
-0.1742798238992691,
0.08774384111166,
-0.03356039896607399,
0.8921658396720886,
0.16879551112651825,
0.40380221605300903,
0.16025692224502563,
-0.15179654955863953,
0.13157084584236145,
-0.013512622565031052,
0.12694625556468964,
0.17199580371379852,
0.15792691707611084,
0.03581037372350693,
0.30806300044059753,
-0.16347211599349976,
-0.08712612092494965,
0.0040986682288348675,
0.08150847256183624,
0.3480777442455292,
0.09090116620063782,
0.1321674883365631,
0.09513194113969803,
-0.453349232673645,
0.10858367383480072,
0.28759124875068665,
-0.20442558825016022,
0.30062517523765564,
-0.0027226400561630726,
-0.34787505865097046,
0.09680680185556412,
0.06877941638231277,
-0.10363326221704483,
0.23124496638774872,
0.14646902680397034,
0.6274519562721252,
-0.05396211892366409,
0.2600462734699249,
0.12081457674503326,
-0.17547301948070526,
-0.1735771894454956,
-0.034508783370256424,
0.17548951506614685,
-0.32168087363243103,
0.2472684681415558,
-0.2865736782550812,
-0.033084433525800705,
-0.18379858136177063,
-0.6172892451286316,
-0.24672910571098328,
-0.0972246378660202,
-0.08636371046304703,
0.23979443311691284,
0.14394830167293549,
0.04948244243860245,
0.19442632794380188,
-0.13631589710712433,
0.13183175027370453,
-0.3939237892627716,
-0.06596311181783676,
-0.1660008281469345,
-0.4110149145126343,
0.03423347324132919,
0.07891073077917099,
-0.1280234158039093,
-0.08261921256780624,
-0.38248440623283386,
0.09803882241249084,
0.023292331025004387,
-0.41787195205688477,
0.18357273936271667,
-0.2367062270641327,
0.2517474591732025,
0.15669940412044525,
0.04643379524350166,
-0.13016487658023834,
-0.18292678892612457,
0.28201186656951904,
-0.2733280062675476,
-0.3171105682849884,
0.2481306493282318,
-0.19685007631778717,
-0.025536207482218742,
-0.04235459119081497,
0.0016371856909245253,
-0.4315139353275299,
-0.12709654867649078,
0.006396415643393993,
0.041153937578201294,
0.08137237280607224,
0.4008953869342804,
0.3015108108520508,
0.2564190626144409,
-0.06941260397434235,
-0.05168711766600609,
0.20515094697475433,
0.17295919358730316,
0.40197116136550903,
-0.04533364623785019,
-0.24625025689601898,
0.19888323545455933,
-0.21107271313667297,
-0.19460132718086243,
-0.04317748174071312,
-0.25077274441719055,
-0.41142532229423523,
0.006034962832927704,
0.5550534129142761,
-0.049753062427043915,
-0.06974105536937714,
0.34150487184524536,
0.0640970841050148,
0.020394276827573776,
0.10280101746320724,
-0.057550761848688126,
-0.42462897300720215,
0.3636845052242279,
0.19507357478141785,
0.020997323095798492,
-0.047094620764255524,
-0.09102991968393326,
0.5344064831733704,
-0.30501678586006165,
0.01969481259584427,
0.38063284754753113,
-0.31659501791000366,
0.008518941700458527,
-0.0075046829879283905,
-0.3508322834968567,
0.0020641630981117487,
-0.21640607714653015,
-0.2069075107574463,
0.11515342444181442,
-0.2021024376153946,
-0.199946790933609,
-0.2324254959821701,
-0.008179093711078167,
-0.14882661402225494,
-0.2450309544801712,
0.16059309244155884,
0.17233790457248688,
0.2058911919593811,
-0.14720970392227173,
-0.03596967086195946,
-0.08034887909889221,
-0.13512267172336578,
0.14141173660755157,
0.09918271750211716,
-0.23918119072914124,
0.02217033877968788,
0.3737476170063019,
-0.4715353548526764,
-0.18653401732444763,
0.2090771347284317,
0.39116790890693665,
-0.0005614262772724032,
0.2155108004808426,
-0.10193804651498795,
0.03022347018122673,
-0.05976464971899986,
0.46346041560173035,
0.3329996168613434,
-0.0764133632183075,
0.2497054487466812,
0.10639438778162003,
-0.19253325462341309,
-0.46607235074043274,
-0.1530638188123703,
-0.3820134699344635,
0.046714235097169876,
-0.39567434787750244,
-0.09915710985660553,
0.1917427033185959,
0.30780965089797974,
0.3542788028717041,
-0.05241616070270538,
0.232692688703537,
-0.3907874822616577,
-0.5037891268730164,
-0.10832279920578003,
-0.18566162884235382,
0.07354190945625305,
0.406732976436615,
-0.05116059258580208,
0.2021988481283188,
-0.05224987864494324,
-0.17192308604717255,
-0.05511843040585518,
0.2742961049079895,
-0.026356035843491554,
-0.11140379309654236,
-0.04322166368365288,
-0.20325803756713867,
-0.12010714411735535,
0.4974154531955719,
0.30161190032958984,
0.43075045943260193,
-0.5198174118995667,
-0.2346646636724472,
0.15395419299602509,
0.27330508828163147,
0.028220321983098984,
-0.263287216424942,
0.16595184803009033,
-0.5596694946289062,
-0.17249105870723724,
0.24116100370883942,
-0.13678096234798431,
0.3588765263557434,
0.09730646014213562,
-0.05963502079248428,
0.2025463581085205,
0.528908371925354,
0.024894723668694496,
0.07498610019683838,
-0.24590745568275452,
0.4537627398967743,
-0.09831414371728897,
0.06993434578180313,
0.043673742562532425,
0.8350273370742798,
0.12485069781541824,
0.030507344752550125,
0.6416878700256348,
-0.2158602774143219,
0.2537655532360077,
0.09450405836105347,
0.17313829064369202,
-0.2961376905441284,
-0.10710655897855759,
-0.10754776746034622,
-0.2412974089384079,
0.3092474639415741,
-0.53950035572052,
-0.12651927769184113,
-0.01607489585876465,
-0.06288211047649384,
0.13114400207996368,
0.3468615412712097,
-0.4278762638568878,
0.09382009506225586,
-0.03303362801671028,
-0.2038727104663849,
0.11214407533407211,
-0.21382072567939758,
0.39665934443473816,
-0.20330820977687836,
0.06484302133321762,
-0.20752163231372833,
-0.09532419592142105,
-0.32540860772132874,
0.2572104036808014,
-0.38438448309898376,
0.07236504554748535,
0.43094900250434875,
-0.31361958384513855,
0.0897601991891861,
0.14767445623874664,
-0.1038966029882431,
-0.3308494985103607,
-0.13816529512405396,
0.13799528777599335,
0.28117525577545166,
-0.160249263048172,
-0.03305751457810402,
-0.07589440792798996,
0.4511497914791107,
-0.2567557692527771,
-0.24070414900779724,
0.32487231492996216,
-0.17244406044483185,
-0.025203948840498924,
0.16898776590824127,
0.2126980870962143,
0.3129541873931885,
-0.06340540200471878,
0.04744857922196388,
-0.19498080015182495,
0.456856906414032,
-0.18302060663700104,
0.0838969275355339,
0.05129041522741318,
-0.15371748805046082,
0.13181175291538239,
-0.06724082678556442,
-0.0820612981915474,
-0.09339386969804764,
0.14226438105106354,
0.1050034612417221,
0.1677747666835785,
0.47029680013656616,
0.09164325147867203,
-0.07565893232822418,
-0.060848481953144073,
0.14440704882144928,
-0.18362995982170105,
-0.454288512468338,
0.09266865253448486,
-0.05914132297039032,
0.03390446677803993,
0.07915820926427841,
0.576115608215332,
0.2180941104888916,
0.09877330809831619,
-0.0183404590934515,
-0.3346140682697296,
-0.004028680734336376,
0.12695319950580597,
0.14442723989486694,
-0.2800023853778839,
0.15899941325187683,
0.47351983189582825,
0.30882522463798523,
-0.2921719253063202,
-0.20726151764392853,
0.13440753519535065,
0.01393150258809328,
0.11143767088651657,
-0.19843558967113495,
-0.03447945788502693,
0.16419152915477753,
-0.05301644653081894,
0.18027657270431519,
0.17622235417366028,
0.02990347146987915,
-0.19604867696762085,
-0.27638760209083557,
0.16464251279830933,
0.026245558634400368,
0.08284485340118408,
0.2277652770280838,
-0.01422748900949955,
0.12884749472141266,
0.14008893072605133,
-0.033557504415512085,
-0.02321762405335903,
-0.3132750988006592,
0.07495029270648956,
0.46862125396728516,
-0.0035442980006337166,
-0.03832731395959854,
0.16722193360328674,
-0.1821652203798294,
0.46136218309402466,
0.12798205018043518,
0.19625048339366913,
-0.004873619414865971,
0.14136715233325958,
-0.0738828182220459,
-0.05002044141292572,
-0.5202835202217102,
-0.0969448909163475,
0.3002702593803406,
-0.532829761505127,
0.0007333789835684001,
-0.4318065643310547,
-0.006455406080931425,
0.407260000705719,
-0.32088392972946167,
0.08987904340028763,
0.4028601348400116,
0.134538933634758,
-0.2542097866535187,
0.06818421930074692,
0.05024325102567673,
-0.004267406649887562,
-0.1172657310962677,
0.2047824114561081,
0.10543902218341827,
0.0983835905790329,
0.11259927600622177,
0.21779385209083557,
0.09511836618185043,
0.4087662398815155,
0.07844579219818115,
0.3108329176902771,
-0.21993815898895264,
0.3216122090816498,
0.30781543254852295,
-0.08268287032842636,
0.0700756311416626,
0.04918508604168892,
-0.24887694418430328,
0.19715599715709686,
-0.14394231140613556,
-0.013207338750362396,
0.31239768862724304,
-0.23278599977493286,
0.09402012825012207,
-0.09648721665143967,
0.17341649532318115,
-0.20892079174518585,
0.3062179684638977,
0.49252480268478394,
-0.05974183231592178,
-0.09543208032846451,
-0.07269478589296341,
0.4616526961326599,
-0.09854549169540405,
0.21102717518806458,
0.27017447352409363,
-0.004065580666065216,
-0.03814820945262909,
0.023346588015556335,
0.03644504025578499,
-0.1881677806377411,
0.2913280725479126,
0.27027571201324463,
-0.2566883862018585,
-0.2534962594509125,
0.13037358224391937,
0.08965696394443512,
0.25839313864707947,
-0.181217759847641,
0.03376372903585434,
-0.0694994106888771,
-0.22662189602851868,
-0.3217247724533081,
0.33889707922935486,
0.5313590168952942,
0.37964868545532227,
-0.19520334899425507,
-0.3217886686325073,
-0.18601520359516144,
-0.0729915127158165,
0.11963167786598206,
-0.1308954954147339,
0.2220325618982315,
0.6603375673294067,
0.11936725676059723,
0.16981400549411774,
-0.12563325464725494,
0.18396154046058655,
-0.030759040266275406,
0.05630073323845863,
-0.14921456575393677,
0.22866052389144897,
-0.1467946469783783,
-0.24530647695064545,
-0.46568506956100464,
0.1232057511806488,
-0.05550997331738472,
0.3984954357147217,
0.07432311773300171,
0.08254703879356384,
-0.10172319412231445,
0.030050622299313545,
0.05634824559092522,
0.1842731237411499,
0.34459659457206726,
0.4053151607513428,
0.39790409803390503,
-0.11089002341032028,
-0.10444344580173492,
-0.2590641975402832,
0.4423457086086273,
-0.2495422065258026,
0.08958107978105545,
0.13166049122810364,
-0.008886988274753094,
-0.15717244148254395,
0.31254395842552185,
-0.015456187538802624,
0.24764207005500793,
-0.07971391081809998,
-0.08511947840452194,
-0.3925018906593323,
-0.2460026741027832,
0.10715173184871674,
-0.2053278535604477,
-0.018297353759407997,
-0.14190559089183807,
0.30421969294548035,
-0.6519691944122314,
0.1224001869559288,
-0.27820953726768494,
-0.25642624497413635,
0.07774974405765533,
0.04539571702480316,
0.6552140116691589,
-0.02190331742167473,
0.3961554765701294,
0.17052404582500458,
-0.02709781937301159,
-0.07992684841156006,
-0.3554823398590088,
-0.08622781932353973,
0.20466648042201996,
-0.06408565491437912,
0.12381401658058167,
0.1020912230014801,
-0.0947146788239479,
-0.32308802008628845,
0.4325677156448364,
0.05179188400506973,
-0.037195075303316116,
-0.13372139632701874,
0.13919846713542938,
0.06386612355709076,
0.08631158620119095,
-0.11778466403484344,
-0.04632727801799774,
-0.16436076164245605,
-0.03789500519633293,
-0.32743385434150696,
-0.5092481374740601,
0.30030888319015503,
-0.42329278588294983,
-0.3363009989261627,
0.06681075692176819,
0.18471857905387878,
-0.22125190496444702,
-0.15294592082500458,
-0.3810844123363495,
0.09958721697330475,
0.3112214207649231,
0.1313263326883316,
-0.3076265752315521,
0.2013767957687378,
-0.02417842298746109,
0.0009541878825984895,
-0.012242333963513374,
0.4474133551120758,
-0.14610084891319275,
0.054235171526670456,
-0.12151817232370377,
-0.04455282539129257
] |
https://github.com/huggingface/datasets/issues/1781 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import | Installing datasets installs pyarrow>=0.17.1 so in theory it doesn't matter which version of pyarrow colab has by default (which is currently pyarrow 0.14.1).
Also now the colab runtime refresh the pyarrow version automatically after the update from pip (previously you needed to restart your runtime).
I guess what happened is that Colab didn't refresh pyarrow for some reason, and the AttributeError was raised *before* the pyarrow version check from `datasets` at https://github.com/huggingface/datasets/blob/master/src/datasets/__init__.py#L60 | I'm using Colab. And suddenly this morning, there is this error. Have a look below!

| 72 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
I'm using Colab. And suddenly this morning, there is this error. Have a look below!

Installing datasets installs pyarrow>=0.17.1 so in theory it doesn't matter which version of pyarrow colab has by default (which is currently pyarrow 0.14.1).
Also now the colab runtime refresh the pyarrow version automatically after the update from pip (previously you needed to restart your runtime).
I guess what happened is that Colab didn't refresh pyarrow for some reason, and the AttributeError was raised *before* the pyarrow version check from `datasets` at https://github.com/huggingface/datasets/blob/master/src/datasets/__init__.py#L60 | [
-0.4181622862815857,
0.15043915808200836,
-0.019076533615589142,
0.1533479392528534,
0.13422733545303345,
-0.02369346283376217,
0.25424617528915405,
0.2454892098903656,
-0.32417112588882446,
0.11164049059152603,
0.03812059760093689,
0.3774307072162628,
-0.081313356757164,
-0.04786325991153717,
-0.011885814368724823,
0.041887447237968445,
0.30278053879737854,
0.34092870354652405,
0.20719029009342194,
0.025910230353474617,
-0.2342766970396042,
0.09097155928611755,
-0.3210461437702179,
0.203517347574234,
-0.41183486580848694,
0.22036930918693542,
-0.017481274902820587,
-0.1700020134449005,
-0.31729695200920105,
-0.679212212562561,
0.5830786824226379,
-0.23232205212116241,
0.2768799364566803,
0.1425853818655014,
-0.00012093281839042902,
-0.02091645635664463,
0.35805538296699524,
0.10246492177248001,
-0.2893367409706116,
-0.1401553601026535,
-0.15110455453395844,
-0.18668165802955627,
0.3294045925140381,
0.0138394171372056,
0.20986127853393555,
-0.2561299204826355,
-0.013452437706291676,
0.21814264357089996,
-0.08072736114263535,
0.2746794521808624,
0.16976581513881683,
0.056785501539707184,
0.4970567524433136,
0.04246430844068527,
0.3831532299518585,
-0.07101903855800629,
-0.12619972229003906,
0.5384055972099304,
0.25737619400024414,
-0.31759822368621826,
0.3273624777793884,
0.09556889533996582,
-0.3002939522266388,
0.24530839920043945,
0.3384176790714264,
0.026110980659723282,
0.31563717126846313,
-0.19505593180656433,
-0.008002884685993195,
0.23268823325634003,
0.47244539856910706,
-0.20557847619056702,
-0.3742719888687134,
-0.14508697390556335,
0.2462431788444519,
-0.3504836857318878,
0.2955637574195862,
0.18235740065574646,
0.013468229211866856,
0.14899563789367676,
0.14975395798683167,
-0.018453368917107582,
-0.06698146462440491,
0.07979830354452133,
-0.3698369562625885,
0.43049147725105286,
-0.11515717953443527,
0.09487239271402359,
0.11713110655546188,
-0.06679264456033707,
0.5531335473060608,
-0.035331662744283676,
-0.2178257405757904,
0.24894194304943085,
-0.23379206657409668,
0.10790508985519409,
0.08493880182504654,
0.38369497656822205,
0.019143253564834595,
-0.16348077356815338,
-0.2799126207828522,
-0.3150513768196106,
0.04342944920063019,
0.3021690845489502,
-0.03142112120985985,
0.2702072262763977,
0.0722961351275444,
-0.04556727036833763,
0.23698095977306366,
0.013028624467551708,
-0.0343976765871048,
0.11623704433441162,
-0.10014243423938751,
-0.3603299558162689,
0.25204116106033325,
-0.05745088309049606,
0.6233629584312439,
-0.23488709330558777,
-0.42081496119499207,
-0.27910569310188293,
-0.49593937397003174,
-0.12938785552978516,
-0.14017140865325928,
0.16679617762565613,
-0.29775670170783997,
0.2598462700843811,
-0.14327485859394073,
0.10833501815795898,
-0.25399041175842285,
-0.1861821413040161,
-0.06465118378400803,
0.1568896770477295,
-0.14106324315071106,
-0.10382136702537537,
-0.07832125574350357,
-0.19582130014896393,
-0.003899620845913887,
0.060115914791822433,
-0.12462332099676132,
-0.06847628206014633,
-0.26990339159965515,
-0.3182121217250824,
-0.16368727385997772,
0.4307079017162323,
-0.2343379110097885,
0.16126611828804016,
0.11761485785245895,
-0.5139942765235901,
-0.16879628598690033,
0.2821597754955292,
-0.5118229985237122,
-0.44347164034843445,
-0.208292156457901,
0.09986800700426102,
-0.3005479574203491,
-0.19365157186985016,
-0.425718754529953,
-0.09903580695390701,
0.08824828267097473,
-0.4811270534992218,
-0.024284781888127327,
-0.5677357912063599,
0.009444134309887886,
-0.3748413920402527,
-0.031175842508673668,
0.29547813534736633,
-0.6035425662994385,
-0.1913352906703949,
-0.11963130533695221,
-0.14386960864067078,
0.1422237753868103,
-0.03206011280417442,
-0.13555003702640533,
0.08777114003896713,
-0.06918466836214066,
0.005296987481415272,
0.09780535846948624,
-0.20194263756275177,
-0.42897772789001465,
-0.1281324028968811,
0.03915523737668991,
0.08905882388353348,
0.06298992037773132,
-0.17877469956874847,
0.07338287681341171,
-0.07386478036642075,
0.34562453627586365,
0.21203407645225525,
-0.1600935459136963,
0.07668159157037735,
-0.09463129192590714,
-0.1960214525461197,
0.33231252431869507,
0.13537590205669403,
0.07914680242538452,
-0.09637121856212616,
0.1051177904009819,
-0.15281662344932556,
0.10424822568893433,
-0.08243212848901749,
-0.02286742627620697,
0.015180354937911034,
0.5127728581428528,
0.012978671118617058,
-0.11648552864789963,
-0.16115371882915497,
-0.18592873215675354,
0.22426234185695648,
0.08500247448682785,
-0.05988243594765663,
-0.42057496309280396,
-0.18365713953971863,
-0.24165195226669312,
0.2941112518310547,
-0.18845562636852264,
-0.25944164395332336,
-0.005725232418626547,
0.12021631002426147,
-0.15774701535701752,
0.3912128210067749,
-0.14060810208320618,
0.3141978681087494,
0.06999444216489792,
0.24493537843227386,
-0.0793025866150856,
0.36499351263046265,
-0.16731305420398712,
-0.3892545998096466,
-0.15349885821342468,
0.04619457945227623,
0.1388094425201416,
-0.044993940740823746,
-0.11339760571718216,
0.1098344698548317,
-0.00937747210264206,
0.29660743474960327,
-0.2214614748954773,
0.15785707533359528,
0.1264437735080719,
-0.18219135701656342,
0.031081760302186012,
-0.3086499571800232,
-0.0047075930051505566,
0.0026351744309067726,
0.6934747099876404,
0.1561753898859024,
0.24251402914524078,
0.18733160197734833,
-0.19397856295108795,
0.07101762294769287,
0.04523826017975807,
0.17694436013698578,
0.033825088292360306,
0.08479967713356018,
-0.026679184287786484,
0.20974348485469818,
0.02418036386370659,
0.01529479306191206,
-0.12462800741195679,
0.1560421884059906,
0.36521100997924805,
0.14918865263462067,
0.15325018763542175,
-0.018669966608285904,
-0.46016207337379456,
0.06894935667514801,
0.38312825560569763,
0.13045141100883484,
0.42968976497650146,
0.033359188586473465,
-0.305747389793396,
0.04278642684221268,
-0.07289853692054749,
0.0013498434564098716,
0.0672050192952156,
0.18508456647396088,
0.506013035774231,
-0.0201590396463871,
0.2183593362569809,
0.2089817076921463,
-0.15881486237049103,
-0.3102002441883087,
0.041130296885967255,
0.37397944927215576,
-0.3386671245098114,
0.2943221926689148,
-0.36556485295295715,
-0.11178117990493774,
-0.19001153111457825,
-0.6143972277641296,
-0.2298162281513214,
-0.13976535201072693,
-0.1837112456560135,
0.3203369677066803,
0.203680619597435,
0.14847055077552795,
0.06238210201263428,
-0.13522019982337952,
0.041902095079422,
-0.43031182885169983,
0.06903567165136337,
-0.17850907146930695,
-0.2635132670402527,
-0.00046957412268966436,
0.08003836125135422,
-0.14336925745010376,
0.010810972191393375,
-0.42251044511795044,
0.0828152745962143,
-0.015294237062335014,
-0.34957805275917053,
0.08563647419214249,
-0.3275430202484131,
0.4431426525115967,
0.25616970658302307,
0.15181465446949005,
-0.2441195696592331,
-0.13366276025772095,
0.3365134596824646,
-0.21758484840393066,
-0.280558317899704,
-0.08042694628238678,
-0.1813363879919052,
-0.0858774483203888,
0.09600697457790375,
-0.08899348974227905,
-0.4324345886707306,
-0.11478439718484879,
0.02393518202006817,
0.11663094907999039,
0.03848075494170189,
0.3249642848968506,
0.2670055627822876,
0.12280906736850739,
-0.03815219923853874,
0.027223538607358932,
0.06040363013744354,
0.014573412016034126,
0.3432319760322571,
-0.04396761953830719,
-0.09172088652849197,
0.24188226461410522,
-0.18619577586650848,
-0.1578911542892456,
0.09884152561426163,
-0.3921026885509491,
-0.6064205765724182,
-0.10588221997022629,
0.4493832290172577,
-0.08048747479915619,
0.028576089069247246,
0.3183554708957672,
0.21039946377277374,
0.0588822178542614,
-0.0014330657431855798,
-0.13036367297172546,
-0.5016969442367554,
0.2687036097049713,
0.19512313604354858,
0.03928321227431297,
0.1592850685119629,
-0.11933226138353348,
0.5885623097419739,
-0.11808338761329651,
-0.13070689141750336,
0.1967378854751587,
-0.278076708316803,
0.2577854096889496,
0.0037796576507389545,
-0.39995989203453064,
0.00010868992103496566,
-0.18382126092910767,
-0.17223642766475677,
0.05615440756082535,
-0.08897408843040466,
0.020605968311429024,
-0.17765739560127258,
-0.1040867418050766,
-0.2045784592628479,
-0.1649920642375946,
0.04859944060444832,
0.14846272766590118,
0.2544667422771454,
0.01242122147232294,
0.014621785841882229,
-0.198930561542511,
-0.1270340085029602,
-0.013311399146914482,
0.3179432451725006,
-0.10335704684257507,
0.09752146899700165,
0.21118298172950745,
-0.38013020157814026,
-0.1920146495103836,
0.3192766308784485,
0.3189556896686554,
0.07806942611932755,
0.21480511128902435,
0.011507188901305199,
0.011719536036252975,
-0.013602908700704575,
0.3772999048233032,
0.12151670455932617,
-0.08888968825340271,
0.1494612842798233,
0.03070870041847229,
-0.29404416680336,
-0.32767942547798157,
-0.07797066122293472,
-0.19993163645267487,
-0.03219166770577431,
-0.2915958762168884,
-0.11491499096155167,
0.08003759384155273,
0.4781748354434967,
0.4865286350250244,
0.0007784950430504978,
0.27293965220451355,
-0.26637643575668335,
-0.42039012908935547,
-0.10458510369062424,
-0.1371217668056488,
-0.08413311839103699,
0.24716469645500183,
-0.009054720401763916,
0.34966742992401123,
-0.26898205280303955,
-0.12797723710536957,
0.0009085236815735698,
0.28371143341064453,
0.10026583075523376,
-0.014521109871566296,
0.03288497030735016,
-0.06777355819940567,
-0.09914211928844452,
0.6560021638870239,
0.5683664679527283,
0.22286690771579742,
-0.5871347188949585,
-0.3114333152770996,
0.2615458071231842,
0.3081311881542206,
0.038541559129953384,
-0.3654320240020752,
0.15981295704841614,
-0.43494105339050293,
-0.20393620431423187,
0.11811379343271255,
-0.0032242056913673878,
0.36117956042289734,
0.2568577229976654,
-0.29899483919143677,
-0.17090660333633423,
0.6227720379829407,
0.18703831732273102,
-0.049782831221818924,
-0.01204275619238615,
0.4989394545555115,
-0.10867974162101746,
0.08676832169294357,
-0.07086316496133804,
0.7722880244255066,
0.21616230905056,
-0.016465812921524048,
0.5215465426445007,
-0.03751392662525177,
0.39845141768455505,
0.09631500393152237,
0.20345869660377502,
-0.3084243834018707,
-0.2251470685005188,
-0.17718036472797394,
-0.2383139729499817,
0.43703681230545044,
-0.3925250172615051,
-0.12048143893480301,
0.12570281326770782,
0.10995493084192276,
0.16743025183677673,
0.2934599816799164,
-0.23572364449501038,
-0.09708454459905624,
0.040784500539302826,
-0.27990204095840454,
0.07030951976776123,
-0.20626507699489594,
0.4521022439002991,
-0.239418625831604,
0.19165484607219696,
-0.17444036900997162,
-0.1181282252073288,
-0.32690292596817017,
0.027201903983950615,
-0.42233923077583313,
0.04698498919606209,
0.34874042868614197,
-0.3465302288532257,
0.14123310148715973,
0.30826273560523987,
0.14900259673595428,
-0.11056120693683624,
-0.14299678802490234,
0.19253946840763092,
0.12035740911960602,
-0.08307281881570816,
-0.08768671751022339,
-0.14316017925739288,
0.45850870013237,
-0.08697038143873215,
-0.2914060950279236,
0.11814969778060913,
-0.17575159668922424,
-0.11699693650007248,
0.19278322160243988,
0.17803902924060822,
0.18034738302230835,
-0.1606609970331192,
-0.008434370160102844,
-0.20925496518611908,
0.4160998463630676,
-0.20628733932971954,
0.033735230565071106,
0.029154958203434944,
-0.030818382278084755,
0.25892964005470276,
-0.0415644645690918,
-0.20234300196170807,
-0.23836249113082886,
0.22516924142837524,
0.0538901649415493,
0.22073055803775787,
0.5160394906997681,
0.004513528663665056,
-0.14240656793117523,
-0.025993943214416504,
0.03684275224804878,
-0.20405109226703644,
-0.41930386424064636,
0.09430911391973495,
-0.04726298153400421,
0.1737488955259323,
0.14844761788845062,
0.5579466819763184,
0.1887616664171219,
0.07398299872875214,
-0.012035361491143703,
-0.4998328983783722,
-0.01750086434185505,
0.2965070903301239,
0.17054681479930878,
-0.1402316838502884,
0.26192158460617065,
0.31618234515190125,
0.14629949629306793,
-0.20808981359004974,
-0.162100151181221,
0.1114121526479721,
0.08754952996969223,
0.2187371701002121,
-0.10144266486167908,
0.1857636421918869,
0.27125778794288635,
-0.11868056654930115,
0.08826324343681335,
0.11075697839260101,
0.02323833853006363,
-0.16796962916851044,
-0.1551799774169922,
0.19523103535175323,
0.07908079028129578,
-0.030984865501523018,
0.14436645805835724,
-0.05068409442901611,
0.051410943269729614,
-0.016652293503284454,
0.12291348725557327,
0.143535315990448,
-0.25172823667526245,
0.02046321891248226,
0.34471362829208374,
0.10181427001953125,
-0.10644326359033585,
0.2578163146972656,
-0.16466112434864044,
0.3178768455982208,
0.11871743947267532,
0.2142813503742218,
0.04412423446774483,
0.16591112315654755,
-0.04937410727143288,
-0.03691188618540764,
-0.3980922996997833,
-0.09095945954322815,
0.20257429778575897,
-0.5558546781539917,
0.06940718740224838,
-0.2835444211959839,
0.23896312713623047,
0.4619532823562622,
-0.20674745738506317,
0.036185409873723984,
0.4877447187900543,
0.07472258061170578,
-0.2718813121318817,
0.11394226551055908,
0.27185264229774475,
0.10405080765485764,
0.008456525392830372,
0.3226698935031891,
0.19101637601852417,
0.23183460533618927,
0.005049862898886204,
0.2871260643005371,
0.2534641921520233,
0.3062469959259033,
0.2237190455198288,
0.3408564329147339,
-0.11838589608669281,
0.32032468914985657,
0.46640369296073914,
0.10852894932031631,
-0.02239208109676838,
0.2567123472690582,
-0.21223188936710358,
0.21282869577407837,
0.024572990834712982,
-0.08169960975646973,
0.1981665939092636,
-0.43612298369407654,
0.3141305148601532,
-0.06388994306325912,
0.14637069404125214,
-0.2770730257034302,
0.3593447506427765,
0.4206172227859497,
-0.17486326396465302,
-0.09724992513656616,
-0.10612966865301132,
0.4280222952365875,
-0.10158119350671768,
0.038041774183511734,
0.22548161447048187,
-0.07109251618385315,
0.07657714933156967,
0.0310195442289114,
-0.009999464266002178,
-0.2566746175289154,
0.31533586978912354,
0.19513989984989166,
-0.3157760798931122,
-0.4515143632888794,
0.16600275039672852,
0.15376132726669312,
0.25457295775413513,
-0.0800386443734169,
0.0687815323472023,
-0.05596538633108139,
-0.15406863391399384,
-0.13222636282444,
0.5119329690933228,
0.6078238487243652,
0.33239373564720154,
-0.07309337705373764,
-0.231345072388649,
-0.31195175647735596,
-0.02857210487127304,
0.09801854938268661,
-0.07540557533502579,
-0.0635235458612442,
0.36349406838417053,
0.18493229150772095,
0.1777668595314026,
-0.10573995858430862,
0.26838427782058716,
-0.11546073853969574,
-0.08768610656261444,
-0.3277674615383148,
0.3378293216228485,
-0.07719181478023529,
-0.15047822892665863,
-0.29737523198127747,
0.2666490375995636,
0.006382803898304701,
0.2759137749671936,
0.2482227236032486,
0.0690191388130188,
-0.1253398358821869,
-0.025637300685048103,
0.008880767039954662,
0.1134219765663147,
0.3014829158782959,
0.5731635689735413,
0.3423221707344055,
-0.048862211406230927,
-0.032264865934848785,
-0.5246586799621582,
0.2737060785293579,
-0.37996169924736023,
-0.012691501528024673,
0.1221081018447876,
-0.11020966619253159,
-0.19722187519073486,
0.40665388107299805,
0.1094074547290802,
0.14864538609981537,
0.0448763370513916,
-0.0550348162651062,
-0.32515203952789307,
-0.3328723609447479,
-0.05180518701672554,
-0.2736150324344635,
-0.04707629978656769,
-0.2848775088787079,
0.26998746395111084,
-0.6724923849105835,
-0.009838026948273182,
-0.16482169926166534,
-0.19485244154930115,
0.133952334523201,
-0.23294435441493988,
0.693285346031189,
-0.006090631242841482,
0.5324743986129761,
0.15390029549598694,
0.018952319398522377,
-0.23979733884334564,
-0.3865700662136078,
-0.22896547615528107,
0.36948320269584656,
-0.12533161044120789,
0.3657643496990204,
-0.12084215134382248,
-0.009807072579860687,
-0.2979021668434143,
0.4230305254459381,
0.04621107503771782,
0.05184796452522278,
-0.18548937141895294,
0.18323564529418945,
-0.06718489527702332,
0.07735539227724075,
-0.11239894479513168,
0.033633552491664886,
-0.0960213914513588,
0.20616915822029114,
-0.3234833776950836,
-0.5417069792747498,
0.4071374535560608,
-0.4472002387046814,
-0.26112839579582214,
-0.1382686048746109,
0.15757645666599274,
-0.020176803693175316,
-0.2910701036453247,
-0.5523156523704529,
0.17134958505630493,
0.39712634682655334,
0.08703476190567017,
-0.3133404552936554,
0.17386913299560547,
-0.010652356781065464,
0.06553760915994644,
-0.07474908232688904,
0.5040861368179321,
-0.3182085156440735,
-0.015098942443728447,
-0.07190064340829849,
-0.010788732208311558
] |
https://github.com/huggingface/datasets/issues/1781 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import | Yes colab doesn’t reload preloaded library unless you restart the instance. Maybe we should move the check on top of the init | I'm using Colab. And suddenly this morning, there is this error. Have a look below!

| 22 | AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
I'm using Colab. And suddenly this morning, there is this error. Have a look below!

Yes colab doesn’t reload preloaded library unless you restart the instance. Maybe we should move the check on top of the init | [
-0.1401677429676056,
-0.14400196075439453,
-0.03869426250457764,
0.2877446115016937,
0.20868819952011108,
-0.15753273665905,
0.1334635466337204,
0.1926027089357376,
-0.27476322650909424,
0.12113486975431442,
-0.06184003874659538,
0.41798681020736694,
-0.1491585075855255,
0.03732901066541672,
0.17234748601913452,
0.22850461304187775,
0.20476703345775604,
0.45077046751976013,
0.19331622123718262,
-0.03587276488542557,
-0.05633382499217987,
0.09113455563783646,
-0.45177823305130005,
-0.02276896871626377,
-0.37407684326171875,
0.1728886216878891,
0.01681116782128811,
-0.038599442690610886,
-0.14388161897659302,
-0.5761193037033081,
0.5109918713569641,
-0.20189526677131653,
0.11765304952859879,
0.04562973976135254,
-0.00011695976718328893,
-0.02156204544007778,
0.29572799801826477,
-0.08152762800455093,
-0.1828681081533432,
-0.030446957796812057,
0.10399943590164185,
0.0859089344739914,
0.4524635672569275,
-0.03876108303666115,
0.13772626221179962,
0.0620984211564064,
-0.14287228882312775,
0.22681520879268646,
0.04267163574695587,
0.26543572545051575,
0.216277614235878,
-0.02455040253698826,
0.27854248881340027,
0.24674823880195618,
0.33304113149642944,
-0.03385021910071373,
-0.10992538928985596,
0.5772958993911743,
0.3482241630554199,
-0.31170371174812317,
0.22199669480323792,
0.07708050310611725,
-0.34726181626319885,
0.1299000233411789,
0.5009502172470093,
-0.15333664417266846,
0.25119760632514954,
-0.13690979778766632,
-0.07139009982347488,
0.08516521751880646,
0.13084672391414642,
-0.1807096302509308,
-0.038549162447452545,
-0.022683104500174522,
0.33675020933151245,
-0.4357973337173462,
0.29433968663215637,
0.15365497767925262,
0.0482853502035141,
0.14068132638931274,
0.40383216738700867,
-0.11592782288789749,
-0.04920811206102371,
0.05617011338472366,
-0.29774266481399536,
0.5725083351135254,
-0.09904421865940094,
0.029804391786456108,
0.21478264033794403,
0.07761438935995102,
0.5299271941184998,
0.13525718450546265,
-0.3125365972518921,
0.21308720111846924,
-0.18099737167358398,
0.05727464333176613,
0.15093804895877838,
0.3558627963066101,
-0.2009800374507904,
-0.060528047382831573,
0.04950635880231857,
-0.16327786445617676,
0.13001446425914764,
0.3676850497722626,
-0.1424960345029831,
0.37763646245002747,
0.1548832356929779,
-0.09596604853868484,
0.35947492718696594,
0.1658727526664734,
-0.2740061283111572,
0.1589539349079132,
-0.2349025309085846,
-0.3367801308631897,
0.45076099038124084,
-0.08249382674694061,
0.3774910867214203,
-0.24826811254024506,
-0.3130384087562561,
-0.2947345972061157,
-0.5301501154899597,
-0.13430313766002655,
0.1129380390048027,
0.23567195236682892,
-0.2533462643623352,
0.26334813237190247,
0.02087010256946087,
0.062007736414670944,
-0.3324308395385742,
0.014146671630442142,
-0.04263859987258911,
0.34806907176971436,
-0.2938278913497925,
-0.013567213900387287,
0.03257753700017929,
-0.25841033458709717,
0.16641415655612946,
-0.15954779088497162,
0.25741252303123474,
-0.39065712690353394,
-0.24371092021465302,
-0.23000086843967438,
-0.13250316679477692,
0.4801095128059387,
-0.2656363844871521,
-0.1174909919500351,
0.23004361987113953,
-0.554518461227417,
-0.2062152475118637,
0.34209033846855164,
-0.4835704267024994,
-0.4480428695678711,
-0.06921301782131195,
0.1318642646074295,
-0.2776031494140625,
-0.14352832734584808,
-0.17116881906986237,
-0.3030305504798889,
0.0745999664068222,
-0.43765750527381897,
-0.05815085023641586,
-0.4439564347267151,
0.028482025489211082,
-0.3985581398010254,
0.02379174344241619,
0.19196049869060516,
-0.4507100582122803,
-0.18075868487358093,
-0.06123797222971916,
0.027893122285604477,
0.17319974303245544,
-0.03077901527285576,
-0.2933192253112793,
0.013953346759080887,
-0.20747444033622742,
-0.08574987947940826,
0.08225665241479874,
-0.10669692605733871,
-0.2593955993652344,
-0.2776182293891907,
-0.05034947395324707,
-0.0017583711305633187,
0.07501938939094543,
-0.20231309533119202,
-0.03729958087205887,
-0.12829630076885223,
0.3937431275844574,
0.26587140560150146,
-0.09607689082622528,
0.16711650788784027,
-0.3055383563041687,
-0.10478347539901733,
0.23575080931186676,
-0.02433905564248562,
0.17188267409801483,
-0.009885410778224468,
0.26459160447120667,
-0.05804770067334175,
0.07032697647809982,
-0.07379566878080368,
-0.2017795592546463,
-0.038466423749923706,
0.5287054181098938,
-0.0025241340044885874,
-0.046185452491045,
0.02310268208384514,
0.09095453470945358,
0.1952458769083023,
-0.09398738294839859,
0.01492223422974348,
-0.3915698826313019,
-0.012315327301621437,
-0.35879218578338623,
0.39298439025878906,
-0.20137466490268707,
-0.22698892652988434,
0.06559688597917557,
0.08143085241317749,
-0.18327605724334717,
0.4519273638725281,
-0.13343119621276855,
0.10857714712619781,
-0.00992258545011282,
0.05542813986539841,
0.02716664969921112,
0.41769224405288696,
-0.15555527806282043,
-0.4423774778842926,
-0.20662161707878113,
0.01646588370203972,
0.07049013674259186,
-0.027679486200213432,
-0.23742763698101044,
0.011733013205230236,
0.061147067695856094,
0.3287149965763092,
-0.22979526221752167,
0.11341741681098938,
0.2255123108625412,
-0.3239573836326599,
-0.01303545106202364,
-0.30539384484291077,
0.2059907466173172,
-0.097538523375988,
0.8549455404281616,
0.2274996042251587,
0.13246649503707886,
0.12779508531093597,
-0.16728097200393677,
-0.05128281190991402,
0.01740775629878044,
0.03392941132187843,
0.043817874044179916,
0.1433742344379425,
0.009996439330279827,
0.31701818108558655,
0.015632208436727524,
0.05756888538599014,
-0.010498306713998318,
-0.05327431857585907,
0.25390782952308655,
0.1852034628391266,
0.18309913575649261,
-0.039283908903598785,
-0.3725685775279999,
0.015312107279896736,
0.39278629422187805,
-0.10422182828187943,
0.3537484407424927,
-0.0030457074753940105,
-0.4114217460155487,
0.0008038249798119068,
0.10207200050354004,
-0.10020847618579865,
0.14564430713653564,
0.173697829246521,
0.833160936832428,
0.09139935672283173,
0.29139694571495056,
0.09904409945011139,
-0.3745932877063751,
-0.22923612594604492,
0.08480977267026901,
0.14128710329532623,
-0.30069500207901,
0.19623318314552307,
-0.2893140912055969,
0.021409563720226288,
-0.162785604596138,
-0.5309423208236694,
-0.07382611185312271,
-0.10349682718515396,
-0.12438599765300751,
0.43798917531967163,
0.25601136684417725,
0.10481519997119904,
0.27436673641204834,
-0.06797017902135849,
-0.009113993495702744,
-0.6351601481437683,
-0.030366314575076103,
-0.2195124328136444,
-0.35029542446136475,
-0.0034260277170687914,
0.24062059819698334,
0.025364253669977188,
0.08855324238538742,
-0.22302386164665222,
0.1152782142162323,
0.196949303150177,
-0.4630785584449768,
0.09642642736434937,
-0.1084732934832573,
0.3668428063392639,
0.03406151011586189,
0.10449066013097763,
-0.1882026344537735,
-0.23834189772605896,
0.2162092626094818,
-0.2671552300453186,
-0.2033488154411316,
0.05906844511628151,
-0.07983550429344177,
0.005218277219682932,
-0.04404833912849426,
-0.11365094780921936,
-0.2847561836242676,
-0.1694563329219818,
-0.1283542364835739,
0.1254851520061493,
0.033884163945913315,
0.39864546060562134,
0.32494646310806274,
0.2000761479139328,
0.17353054881095886,
0.07666909694671631,
0.12223836034536362,
-0.09271449595689774,
0.3231503367424011,
-0.03469347581267357,
0.02316153608262539,
0.29900217056274414,
-0.3058592677116394,
0.028602734208106995,
-0.12585283815860748,
-0.4488917291164398,
-0.5858920812606812,
0.014621324837207794,
0.2705053985118866,
-0.044982001185417175,
0.022895600646734238,
0.32929784059524536,
0.17012915015220642,
-0.00993956159800291,
0.10315921157598495,
-0.18173277378082275,
-0.39345911145210266,
0.2843802571296692,
0.24906198680400848,
-0.04373864829540253,
-0.039165377616882324,
-0.22072026133537292,
0.5412882566452026,
-0.47306087613105774,
-0.0344151109457016,
0.3007103502750397,
-0.04631252586841583,
0.12206770479679108,
-0.0938379317522049,
-0.3473146855831146,
0.0026161663699895144,
-0.17703500390052795,
-0.3872644007205963,
0.1603216826915741,
-0.1921955943107605,
-0.18944616615772247,
-0.25036558508872986,
0.027951691299676895,
-0.2932750880718231,
-0.21870562434196472,
0.13106036186218262,
0.010510684922337532,
0.025269709527492523,
-0.0920436680316925,
-0.06902872771024704,
-0.04321955889463425,
-0.10325902700424194,
0.010746869258582592,
0.29595890641212463,
-0.22205425798892975,
0.020484553650021553,
0.33197927474975586,
-0.6371980905532837,
0.01143334899097681,
0.0785691887140274,
0.29248735308647156,
0.016109677031636238,
0.28017866611480713,
-0.12389925867319107,
0.05813705548644066,
-0.11540104448795319,
0.25882890820503235,
0.2669904828071594,
-0.12227270752191544,
0.187941774725914,
-0.15699662268161774,
0.08723466843366623,
-0.46831998229026794,
0.0024568543303757906,
-0.3910137414932251,
-0.037195783108472824,
-0.5108367204666138,
-0.0007462188368663192,
0.3016478419303894,
0.31585633754730225,
0.2830545902252197,
-0.07469966262578964,
0.18456228077411652,
-0.4773102402687073,
-0.4928886890411377,
-0.4238077700138092,
-0.14489254355430603,
-0.03402814641594887,
0.2792028784751892,
0.01377811562269926,
0.15747037529945374,
-0.11678648740053177,
-0.24214324355125427,
0.07629972696304321,
0.3607856035232544,
0.12091352790594101,
0.12576979398727417,
-0.04934424161911011,
-0.259583979845047,
-0.13504116237163544,
0.48706552386283875,
0.4426618218421936,
0.293804407119751,
-0.33575308322906494,
-0.30800098180770874,
0.29277303814888,
0.3107410669326782,
0.043500375002622604,
-0.39419233798980713,
0.1987719088792801,
-0.4934765100479126,
-0.19119490683078766,
0.17311100661754608,
0.044007934629917145,
0.11279907077550888,
0.20550215244293213,
-0.25964340567588806,
-0.050558652728796005,
0.5910876989364624,
0.0034474588464945555,
0.03583620488643646,
0.061753518879413605,
0.31987881660461426,
-0.1341247707605362,
0.24302922189235687,
0.22316814959049225,
0.9656520485877991,
0.012015162035822868,
-0.054653510451316833,
0.4602909982204437,
0.03271816670894623,
0.27139779925346375,
-0.05149253085255623,
0.30494827032089233,
-0.35734930634498596,
-0.2458045929670334,
-0.0611770823597908,
-0.26532572507858276,
0.3560567796230316,
-0.6037129163742065,
-0.22247830033302307,
-0.030062919482588768,
0.015170260332524776,
-0.056789930909872055,
0.18702587485313416,
-0.261544793844223,
-0.05751197040081024,
-0.06943464279174805,
-0.22461473941802979,
0.046108171343803406,
-0.2375423014163971,
0.5531843304634094,
-0.3224277198314667,
0.21208247542381287,
-0.015626700595021248,
-0.10247637331485748,
-0.25675639510154724,
0.10741616785526276,
-0.3843136429786682,
0.08194909989833832,
0.1826646625995636,
-0.19060420989990234,
-0.002057431498542428,
0.20885802805423737,
-0.04809734597802162,
0.025895170867443085,
-0.0038116245996207,
0.20533548295497894,
0.28753435611724854,
-0.2509106695652008,
-0.240632101893425,
-0.041230831295251846,
0.4544914662837982,
-0.0739620178937912,
-0.22320039570331573,
0.1632985770702362,
-0.14869661629199982,
-0.12030947953462601,
0.20793431997299194,
0.2491942197084427,
0.24046218395233154,
-0.06668037176132202,
-0.11946403235197067,
0.05038735643029213,
0.19102346897125244,
-0.2349577397108078,
0.06670469045639038,
0.05199623480439186,
-0.15816813707351685,
0.19815507531166077,
0.1511414647102356,
-0.3012101352214813,
-0.14049264788627625,
0.09682325273752213,
0.19549055397510529,
0.12711037695407867,
0.47861775755882263,
0.004655141849070787,
-0.03436178341507912,
-0.11829397082328796,
0.10163521766662598,
-0.45661863684654236,
-0.2995001971721649,
0.27557259798049927,
0.1854289323091507,
-0.06284480541944504,
0.20358602702617645,
0.5781242847442627,
0.14842340350151062,
0.2833879292011261,
0.001678471453487873,
-0.4137296676635742,
-0.06858635693788528,
0.1447930783033371,
0.11125370860099792,
-0.06067077815532684,
0.20278480648994446,
0.5849716067314148,
0.14151708781719208,
-0.02088649943470955,
-0.20941559970378876,
0.07603346556425095,
-0.07957004755735397,
0.11311406642198563,
-0.3074972629547119,
0.186747744679451,
0.04309318587183952,
-0.007370990235358477,
0.11489126831293106,
0.22193585336208344,
0.08259259909391403,
-0.20040066540241241,
-0.09694715589284897,
0.1931075006723404,
0.03972916305065155,
0.30055078864097595,
0.23248997330665588,
-0.08332343399524689,
0.0887918472290039,
0.043192099779844284,
0.07074746489524841,
-0.04547834023833275,
-0.2720467150211334,
0.00441755773499608,
0.5248976945877075,
-0.029315518215298653,
-0.13948483765125275,
0.21387961506843567,
-0.2634388208389282,
0.3821103870868683,
0.0388786680996418,
-0.004082683473825455,
-0.021580718457698822,
0.1026025116443634,
0.03954506665468216,
-0.07185499370098114,
-0.4443146586418152,
0.0025524951051920652,
0.1375381350517273,
-0.4270157217979431,
-0.008081110194325447,
-0.4568273723125458,
-0.08802807331085205,
0.4660228490829468,
-0.11645612120628357,
0.12306459993124008,
0.3373888432979584,
0.09097937494516373,
-0.30881214141845703,
0.19493131339550018,
-0.04608936980366707,
-0.05826081708073616,
0.038912806659936905,
0.44271597266197205,
0.05950532853603363,
0.1074465811252594,
0.22941969335079193,
0.2066301703453064,
-0.023166324943304062,
0.29251760244369507,
0.12752686440944672,
0.16816659271717072,
-0.28635668754577637,
0.2210293561220169,
0.3486666679382324,
-0.08687186986207962,
0.01170139666646719,
-0.05568961426615715,
-0.18060654401779175,
0.4193437695503235,
-0.11662798374891281,
0.16210921108722687,
0.08197633922100067,
-0.5037826895713806,
0.35883989930152893,
0.09322542697191238,
0.18933331966400146,
-0.11080961674451828,
0.3356678783893585,
0.4114014804363251,
0.017560312524437904,
-0.11495912820100784,
0.0365133173763752,
0.38739660382270813,
-0.1941826343536377,
0.20691293478012085,
0.29684990644454956,
-0.010450039990246296,
-0.09879424422979355,
0.1528923064470291,
0.26356902718544006,
-0.11211500316858292,
0.14242328703403473,
0.276593953371048,
-0.396596759557724,
-0.34449470043182373,
-0.005812126211822033,
0.07519887387752533,
0.1885022521018982,
-0.15580366551876068,
0.08973640948534012,
-0.09082002192735672,
-0.1286640614271164,
-0.24321366846561432,
0.32943636178970337,
0.45048096776008606,
0.4281198978424072,
-0.07950473576784134,
-0.32293739914894104,
-0.16045334935188293,
0.07464572042226791,
0.1047825738787651,
-0.14512227475643158,
0.2769164741039276,
0.6709738373756409,
0.05229653790593147,
0.1748085469007492,
-0.19528238475322723,
0.34027284383773804,
-0.09679149091243744,
-0.30598342418670654,
-0.18565180897712708,
0.19366221129894257,
0.2526381313800812,
-0.10949628055095673,
-0.46305596828460693,
0.26536738872528076,
-0.06217130646109581,
0.37482792139053345,
0.06471991539001465,
-0.002949328627437353,
-0.1486266404390335,
0.0214040819555521,
0.0385718010365963,
0.2800288498401642,
0.3117568790912628,
0.5116196870803833,
0.3169771134853363,
-0.13986213505268097,
-0.11575079709291458,
-0.5177516341209412,
0.40107491612434387,
-0.1786644160747528,
0.1842113435268402,
0.02203603833913803,
-0.026788653805851936,
-0.09976565837860107,
0.3125274181365967,
-0.02837331034243107,
0.11945542693138123,
0.07424426823854446,
-0.10696246474981308,
-0.29542651772499084,
-0.33189257979393005,
-0.09638620913028717,
-0.31951093673706055,
-0.00007231006748043001,
-0.27879875898361206,
0.16298197209835052,
-0.6408563852310181,
0.08287948369979858,
-0.1802207976579666,
-0.32848620414733887,
0.10354998707771301,
-0.06898466497659683,
0.7786418795585632,
-0.17242249846458435,
0.37212345004081726,
0.10728790611028671,
0.08926279842853546,
0.150909885764122,
-0.41444551944732666,
-0.14470909535884857,
0.09109818935394287,
0.10984671860933304,
0.3065454363822937,
0.023136364296078682,
-0.01993023231625557,
-0.3485967516899109,
0.35247889161109924,
0.13072703778743744,
-0.08243440091609955,
-0.2510978877544403,
-0.0061520603485405445,
0.03351153805851936,
0.1983194798231125,
-0.15382960438728333,
0.3151008188724518,
-0.11763694882392883,
0.055994559079408646,
-0.28645914793014526,
-0.46104028820991516,
0.46834951639175415,
-0.22317972779273987,
-0.26986831426620483,
0.00578460656106472,
0.17293305695056915,
-0.24871356785297394,
-0.2186257541179657,
-0.5525949001312256,
0.07796809822320938,
0.25951164960861206,
0.10685812681913376,
-0.21708770096302032,
0.2491261065006256,
0.05127487704157829,
0.09375903755426407,
-0.13074561953544617,
0.22707098722457886,
-0.13032865524291992,
0.11386717855930328,
-0.19326971471309662,
-0.061311133205890656
] |
https://github.com/huggingface/datasets/issues/1776 | [Question & Bug Report] Can we preprocess a dataset on the fly? | We are very actively working on this. How does your dataset look like in practice (number/size/type of files)? | I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 | 18 | [Question & Bug Report] Can we preprocess a dataset on the fly?
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
We are very actively working on this. How does your dataset look like in practice (number/size/type of files)? | [
-0.3903963565826416,
-0.19714827835559845,
-0.07739083468914032,
-0.0038241061847656965,
0.3977740406990051,
0.33564260601997375,
0.26100385189056396,
0.29689648747444153,
-0.0846412256360054,
0.1327672153711319,
0.06934796273708344,
0.12865325808525085,
-0.13560107350349426,
0.22886551916599274,
0.21264022588729858,
0.150919109582901,
0.21284237504005432,
0.06642619520425797,
0.03567274287343025,
0.20651090145111084,
-0.2539821267127991,
-0.1531417965888977,
-0.11005817353725433,
-0.21289171278476715,
-0.4570016860961914,
-0.27202510833740234,
-0.1605050414800644,
0.020596595481038094,
-0.23419643938541412,
-0.17677424848079681,
0.3146640956401825,
0.3214797079563141,
0.08660203218460083,
0.5502464175224304,
-0.00011173378152307123,
0.00889299251139164,
0.4019137918949127,
-0.09342468529939651,
-0.1076296791434288,
-0.10607465356588364,
0.12850037217140198,
-0.2643048167228699,
-0.14805172383785248,
-0.24707816541194916,
-0.15671558678150177,
-0.05044777691364288,
0.1196829155087471,
-0.6373547315597534,
0.38560160994529724,
0.12543371319770813,
0.2115146964788437,
0.12865689396858215,
-0.08107142150402069,
0.13829563558101654,
0.3179631233215332,
0.3585822880268097,
-0.3582458198070526,
-0.07893648743629456,
0.25965455174446106,
-0.079559326171875,
0.04806717112660408,
0.12024303525686264,
-0.3685796558856964,
-0.011184614151716232,
0.3391451835632324,
0.113104447722435,
-0.20823898911476135,
-0.6446155905723572,
0.10363085567951202,
0.27648651599884033,
0.4921409785747528,
-0.5251833200454712,
-0.675784707069397,
-0.23487378656864166,
0.11644233763217926,
-0.34336626529693604,
0.04457259923219681,
0.4104193150997162,
-0.15067535638809204,
0.04625333100557327,
-0.44459348917007446,
-0.3685855567455292,
0.007383985910564661,
-0.33614179491996765,
0.27084940671920776,
-0.15386946499347687,
-0.23515120148658752,
0.0023272146936506033,
0.06213323771953583,
0.14664332568645477,
0.37945425510406494,
-0.24089333415031433,
-0.357536256313324,
0.5096227526664734,
-0.26251715421676636,
-0.24318453669548035,
-0.29344695806503296,
0.10316164046525955,
0.2890484035015106,
0.12902997434139252,
0.032217927277088165,
-0.13476470112800598,
-0.045348383486270905,
-0.03312382474541664,
0.18082821369171143,
0.04792150482535362,
-0.05936907231807709,
-0.19617752730846405,
0.318860799074173,
-0.21964988112449646,
0.07543323934078217,
-0.07937899976968765,
0.05986262485384941,
-0.39651256799697876,
0.3271102011203766,
0.037709008902311325,
0.30403172969818115,
-0.322672963142395,
0.4087904691696167,
-0.01807871274650097,
0.09222891926765442,
-0.013514467515051365,
-0.4056242108345032,
0.10217723995447159,
-0.1372481733560562,
-0.01785396598279476,
0.12948957085609436,
0.08078857511281967,
0.028771499171853065,
-0.17341658473014832,
-0.10402539372444153,
0.015377654694020748,
0.014040407724678516,
0.27625328302383423,
0.1291564255952835,
-0.22555746138095856,
0.05980593338608742,
0.1925710141658783,
-0.08668018877506256,
-0.16472600400447845,
0.19882455468177795,
-0.4564759135246277,
0.10301735252141953,
0.34383392333984375,
0.03279310464859009,
0.05407101288437843,
-0.0675215870141983,
0.33003517985343933,
-0.19483675062656403,
0.48496997356414795,
-0.20168422162532806,
-0.2776722311973572,
0.03625258430838585,
0.10428830981254578,
-0.019973063841462135,
0.05561402812600136,
-0.601901650428772,
0.17124715447425842,
0.5740998387336731,
0.22622928023338318,
0.22374600172042847,
0.23392857611179352,
-0.2646641433238983,
-0.167998269200325,
0.11934756487607956,
0.4449637532234192,
-0.1898949146270752,
0.2122201770544052,
0.2736873924732208,
0.023191288113594055,
0.15235869586467743,
0.10423759371042252,
0.027539102360606194,
0.25406375527381897,
-0.06300761550664902,
-0.1503753364086151,
0.30980759859085083,
-0.10666056722402573,
0.11570149660110474,
0.40088149905204773,
-0.05500929430127144,
-0.2682388424873352,
0.07421038299798965,
0.1855355203151703,
-0.036489203572273254,
-0.13084033131599426,
0.000058189962146570906,
0.3976077139377594,
0.005013013258576393,
0.19509649276733398,
-0.1847907453775406,
-0.44823986291885376,
-0.32177749276161194,
0.005810887552797794,
-0.03781984746456146,
0.10627878457307816,
-0.18560658395290375,
-0.3014104664325714,
0.08773025870323181,
-0.197813481092453,
0.19497568905353546,
0.37260106205940247,
-0.04438775032758713,
0.06906692683696747,
0.050519246608018875,
-0.1592521369457245,
-0.3661361038684845,
0.21455106139183044,
-0.12305809557437897,
0.01630314439535141,
0.1816830039024353,
-0.4576368033885956,
0.1819762885570526,
0.0651792585849762,
0.08001058548688889,
0.11326047033071518,
0.04539578780531883,
-0.3407961130142212,
0.3032756447792053,
-0.011489548720419407,
-0.4556633532047272,
0.22945049405097961,
-0.1917675882577896,
0.10522172600030899,
-0.3946020305156708,
-0.08141013234853745,
0.14803558588027954,
-0.06047539412975311,
-0.035598743706941605,
-0.1678520143032074,
-0.21736815571784973,
-0.008643288165330887,
-0.08280922472476959,
0.30092212557792664,
-0.09612520039081573,
0.17689725756645203,
-0.013427380472421646,
0.16867591440677643,
-0.14742828905582428,
-0.14760614931583405,
-0.02059052139520645,
-0.13210555911064148,
0.14689117670059204,
-0.1920768767595291,
-0.2768489122390747,
0.23780660331249237,
-0.15263855457305908,
0.40718597173690796,
-0.05655955150723457,
-0.17049111425876617,
0.20153963565826416,
-0.06269285827875137,
-0.04672044888138771,
0.1874062567949295,
0.011347131803631783,
-0.01847003400325775,
0.7148054242134094,
-0.12358863651752472,
-0.08700606971979141,
-0.17254331707954407,
-0.011409148573875427,
-0.02652674727141857,
-0.04482875391840935,
0.26363033056259155,
-0.09863170236349106,
-0.11397373676300049,
-0.2289428561925888,
0.09293865412473679,
0.21436141431331635,
0.14235544204711914,
0.048432618379592896,
0.17999865114688873,
0.09540681540966034,
-0.09617840498685837,
0.29479724168777466,
0.010229147039353848,
0.4094161093235016,
-0.030661962926387787,
0.2173750102519989,
0.11281812936067581,
-0.18894144892692566,
0.17108723521232605,
0.06416397541761398,
0.0664079338312149,
-0.13523341715335846,
0.11678902804851532,
0.1735372692346573,
-0.14630036056041718,
0.1443754881620407,
0.034631501883268356,
-0.22365333139896393,
0.10553313046693802,
-0.12475690990686417,
0.006526668556034565,
0.0684497058391571,
-0.0014731045812368393,
-0.4323998689651489,
0.40774843096733093,
0.07149652391672134,
-0.1607206165790558,
-0.16851390898227692,
-0.17983956634998322,
0.21890385448932648,
0.01339035201817751,
0.26487141847610474,
-0.16334737837314606,
0.4653586149215698,
-0.051857154816389084,
0.04782304912805557,
-0.3106507360935211,
0.18899384140968323,
0.09808725863695145,
0.03684116527438164,
0.36315008997917175,
-0.02288014627993107,
0.057313472032547,
0.2028740793466568,
0.18957604467868805,
-0.000370995287084952,
-0.13383589684963226,
-0.16119982302188873,
-0.24652168154716492,
-0.03307897225022316,
0.0012592450948432088,
-0.20421135425567627,
0.0467960387468338,
-0.11168435215950012,
-0.24376976490020752,
0.14599479734897614,
-0.00019111089932266623,
0.034153856337070465,
0.24361549317836761,
0.02265498973429203,
-0.14873981475830078,
-0.14558453857898712,
0.07987424731254578,
-0.022601665928959846,
-0.7236915826797485,
0.2888319194316864,
-0.0164142157882452,
-0.35741472244262695,
0.02165219560265541,
0.005314286798238754,
-0.03623197600245476,
0.34114715456962585,
-0.6054071187973022,
0.012870913371443748,
-0.3743884265422821,
0.03555462509393692,
-0.17137207090854645,
0.16432064771652222,
0.2667718231678009,
0.07436708360910416,
-0.07150701433420181,
0.022016149014234543,
-0.10485467314720154,
0.0018189289839938283,
-0.1901124119758606,
0.015230332501232624,
0.2821192741394043,
0.4061175584793091,
0.010955425910651684,
0.6870189309120178,
0.17412756383419037,
0.013203972019255161,
0.3461168706417084,
0.04426630586385727,
0.5539388060569763,
-0.2773265540599823,
-0.09586940705776215,
-0.17710891366004944,
-0.24282675981521606,
-0.17665164172649384,
0.12360204011201859,
0.2735067903995514,
-0.3021136522293091,
-0.19381839036941528,
0.025361742824316025,
-0.07952120155096054,
-0.09929769486188889,
0.13475607335567474,
-0.28842607140541077,
0.2887290418148041,
-0.00557894678786397,
0.032216593623161316,
-0.2510039508342743,
-0.408884733915329,
0.10398954153060913,
0.06493157148361206,
0.6988078951835632,
-0.14191082119941711,
-0.19133248925209045,
0.21819357573986053,
-0.6576192378997803,
0.20691463351249695,
-0.003327468875795603,
0.2896777093410492,
0.12813891470432281,
0.06716261059045792,
0.07596732676029205,
-0.3018744885921478,
0.5862109065055847,
-0.2058389037847519,
0.03022914007306099,
0.40097177028656006,
-0.0075557660311460495,
-0.23861072957515717,
0.12600615620613098,
0.07730383425951004,
0.5740272998809814,
-0.1925809383392334,
0.3010321855545044,
-0.03072121925652027,
-0.17163006961345673,
0.08728976547718048,
0.37776699662208557,
-0.2151724100112915,
-0.5332974791526794,
-0.17039817571640015,
-0.17974838614463806,
-0.17500190436840057,
0.15046730637550354,
0.054904524236917496,
-0.19732891023159027,
-0.13214075565338135,
-0.10620199143886566,
-0.3844801187515259,
0.3052111566066742,
-0.02115752547979355,
-0.19301922619342804,
0.11602102220058441,
-0.03376234322786331,
0.48535799980163574,
0.03943463787436485,
-0.16996245086193085,
-0.07287223637104034,
0.5232402086257935,
-0.25951167941093445,
-0.18938881158828735,
-0.1474987268447876,
-0.03636200726032257,
0.38643795251846313,
0.24375250935554504,
0.04835382103919983,
0.20938017964363098,
-0.014933609403669834,
0.08610150963068008,
-0.5349301695823669,
0.10915964841842651,
0.12686143815517426,
-0.0836397185921669,
-0.6452922224998474,
-0.6370647549629211,
0.6103529334068298,
0.45277342200279236,
0.05477309226989746,
0.44094017148017883,
0.05472185090184212,
-0.1575472354888916,
0.2837331295013428,
0.21445225179195404,
0.8360587358474731,
-0.3474940359592438,
0.2523152828216553,
-0.36380627751350403,
0.16225863993167877,
0.26697638630867004,
-0.3113696575164795,
0.015099490992724895,
-0.3076028823852539,
-0.4002588987350464,
0.04246855154633522,
-0.1455601453781128,
0.10536857694387436,
0.3223256468772888,
0.05807113274931908,
0.2982223629951477,
-0.05111496150493622,
-0.0921739935874939,
-0.11887090653181076,
-0.07433830946683884,
-0.07843903452157974,
-0.5844621658325195,
-0.16226734220981598,
0.17473043501377106,
-0.04355154186487198,
0.12001137435436249,
-0.14097949862480164,
0.20368562638759613,
0.25615936517715454,
-0.11875171214342117,
-0.3911300599575043,
-0.016769135370850563,
-0.2120417058467865,
-0.2802059054374695,
-0.16740921139717102,
-0.1748959869146347,
-0.10337908565998077,
0.07241055369377136,
0.47919362783432007,
0.5132243633270264,
-0.05463869497179985,
-0.08497049659490585,
0.10395307093858719,
0.11524103581905365,
-0.09866344183683395,
0.11216819286346436,
0.11118406057357788,
-0.07542400062084198,
0.07227204740047455,
-0.02860833704471588,
-0.39298591017723083,
-0.13952264189720154,
0.17684507369995117,
-0.08542101830244064,
0.08600898832082748,
0.02703097276389599,
-0.29945194721221924,
0.06948813796043396,
0.2213984578847885,
-0.05795755982398987,
0.10773206502199173,
0.32723888754844666,
0.0183359757065773,
0.31711122393608093,
-0.1506403535604477,
-0.3271249234676361,
0.01252319011837244,
0.2531431317329407,
0.14493276178836823,
-0.3179360032081604,
0.2900613248348236,
0.1992647349834442,
-0.2374032884836197,
-0.13798852264881134,
0.2061213254928589,
-0.017935682088136673,
-0.33033016324043274,
0.21500252187252045,
0.13200922310352325,
0.23305284976959229,
-0.06949032843112946,
0.1627015620470047,
0.08220326155424118,
-0.26225173473358154,
0.13883815705776215,
-0.1855166256427765,
-0.590234637260437,
-0.09658539295196533,
0.14280997216701508,
0.22331015765666962,
0.5382516384124756,
-0.37363192439079285,
0.14909608662128448,
0.31630855798721313,
-0.2533814013004303,
-0.010181509889662266,
0.0427110493183136,
0.11362967640161514,
0.11112711578607559,
0.27535584568977356,
0.02982513979077339,
-0.17891967296600342,
-0.005251329857856035,
0.05391403287649155,
0.03329284489154816,
-0.2794553339481354,
-0.04774648696184158,
0.16699562966823578,
-0.14204752445220947,
-0.08743557333946228,
0.22336158156394958,
-0.21281665563583374,
-0.2577117383480072,
-0.3818078339099884,
0.09338954836130142,
0.3412836194038391,
-0.07002667337656021,
-0.25416845083236694,
0.3046005368232727,
0.14502452313899994,
-0.3586772382259369,
0.3340473473072052,
0.07001916319131851,
0.14352594316005707,
-0.12325747311115265,
0.12375866621732712,
0.16647668182849884,
-0.05559747666120529,
0.11188463121652603,
-0.18668079376220703,
0.24646668136119843,
-0.023826075717806816,
0.13621073961257935,
-0.17018190026283264,
0.06103070452809334,
0.2766336500644684,
0.286817729473114,
0.17736680805683136,
-0.09330219030380249,
0.12683463096618652,
0.2990509867668152,
0.17725272476673126,
-0.21631227433681488,
-0.2040117233991623,
0.1293662041425705,
-0.059113990515470505,
0.1035018041729927,
0.25954702496528625,
0.2191544473171234,
0.1358407884836197,
-0.1556209921836853,
0.26559433341026306,
0.24337272346019745,
-0.4232630431652069,
0.042372167110443115,
0.21772326529026031,
0.13720230758190155,
0.1452835500240326,
0.267795592546463,
0.30366840958595276,
0.1623481959104538,
0.35976913571357727,
0.28972575068473816,
0.5725318789482117,
0.3371695578098297,
0.05475874990224838,
-0.2753027677536011,
-0.6611908674240112,
0.30655983090400696,
0.08542156964540482,
0.3103349506855011,
0.37882405519485474,
-0.013584951870143414,
0.24900111556053162,
0.025653308257460594,
-0.17853084206581116,
-0.21634335815906525,
0.1090385690331459,
-0.11405233293771744,
-0.17851734161376953,
0.37786877155303955,
0.020188381895422935,
0.32965922355651855,
0.12270044535398483,
-0.04725674167275429,
-0.1081707701086998,
0.2652040421962738,
0.044924575835466385,
0.16075952351093292,
0.16782879829406738,
0.17482861876487732,
0.05635436624288559,
0.32558920979499817,
-0.13900412619113922,
0.16707752645015717,
0.033801089972257614,
0.0520104318857193,
-0.04516250640153885,
0.5297793745994568,
0.27729371190071106,
0.378084659576416,
-0.09875517338514328,
0.14681217074394226,
-0.05560506880283356,
0.0012174196308478713,
-0.02994816191494465,
0.26414698362350464,
-0.11505754292011261,
-0.1527373492717743,
0.16343463957309723,
0.06949011981487274,
-0.08180665224790573,
0.24328890442848206,
-0.15491883456707,
0.3400706648826599,
-0.13969768583774567,
0.2530258893966675,
0.09329185634851456,
-0.3390543460845947,
-0.21987034380435944,
0.17487400770187378,
-0.22939711809158325,
0.13707894086837769,
0.688322126865387,
-0.35233578085899353,
-0.0466698482632637,
-0.05499912425875664,
0.07789485901594162,
0.18930090963840485,
0.4720000624656677,
0.37034133076667786,
0.06909377872943878,
-0.15107375383377075,
0.07635237276554108,
-0.4328628480434418,
-0.15379425883293152,
-0.14269453287124634,
0.25030234456062317,
-0.2072928547859192,
-0.112790547311306,
0.15921594202518463,
0.2857864201068878,
-0.021907860413193703,
-0.3598353862762451,
0.0739046260714531,
0.4348345696926117,
-0.31276941299438477,
-0.18816697597503662,
-0.18507374823093414,
0.07514924556016922,
0.055716268718242645,
-0.5030345916748047,
0.12375868856906891,
0.12578505277633667,
-0.0742688700556755,
0.04434940218925476,
0.09412167221307755,
0.15373985469341278,
-0.011131078004837036,
0.4049523174762726,
0.00436795549467206,
0.17260406911373138,
-0.1656092405319214,
-0.014558601193130016,
-0.3031444549560547,
-0.043684497475624084,
-0.22673411667346954,
0.12965162098407745,
0.07701370120048523,
-0.06069064512848854,
-0.5568872690200806,
-0.2705356776714325,
-0.07294544577598572,
-0.2407097965478897,
-0.23688282072544098,
0.06005144119262695,
-0.3554624319076538,
-0.24559293687343597,
-0.11674892902374268,
-0.059756290167570114,
0.18818800151348114,
0.20106664299964905,
-0.020057279616594315,
0.0895659402012825,
-0.3076411187648773,
-0.2897493541240692,
0.5246589183807373,
-0.17344526946544647,
-0.2983178198337555,
-0.24424181878566742,
0.06164310500025749,
0.061412256211042404,
-0.1606092005968094,
-0.37959766387939453,
0.24051086604595184,
0.2741988003253937,
-0.11917313188314438,
0.155120387673378,
0.3109649121761322,
-0.35164499282836914,
0.06469637900590897,
-0.20360372960567474,
0.635615885257721,
-0.19219760596752167,
0.00021687081607524306,
-0.40292564034461975,
-0.3338172137737274
] |
https://github.com/huggingface/datasets/issues/1776 | [Question & Bug Report] Can we preprocess a dataset on the fly? | It's a text file with many lines (about 1B) of Chinese sentences. I use it to train language model using https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py | I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 | 21 | [Question & Bug Report] Can we preprocess a dataset on the fly?
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
It's a text file with many lines (about 1B) of Chinese sentences. I use it to train language model using https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py | [
-0.37494978308677673,
-0.3105449080467224,
-0.025356240570545197,
0.07814650237560272,
0.41907641291618347,
0.3276047110557556,
0.2523878812789917,
0.24938976764678955,
-0.11202412098646164,
0.06025981158018112,
-0.04217410832643509,
0.08074977248907089,
-0.11859795451164246,
0.16778141260147095,
0.31894204020500183,
0.08421208709478378,
0.20637330412864685,
0.03349270671606064,
-0.002537091262638569,
0.1758531779050827,
-0.2277178019285202,
-0.16506408154964447,
-0.060174547135829926,
-0.11336354911327362,
-0.5667707324028015,
-0.27683025598526,
-0.24533282220363617,
-0.04908553510904312,
-0.1583474576473236,
-0.22841933369636536,
0.27569833397865295,
0.2340819537639618,
0.08938341587781906,
0.5178626179695129,
-0.00011839768558274955,
0.05139782279729843,
0.3754440248012543,
-0.08065902441740036,
-0.12657922506332397,
-0.10067387670278549,
0.13752047717571259,
-0.22117020189762115,
-0.177097886800766,
-0.19191089272499084,
-0.17634207010269165,
-0.0012006514007225633,
0.15393003821372986,
-0.49223247170448303,
0.5047304630279541,
0.19468377530574799,
0.14486300945281982,
0.2098599076271057,
-0.05177018791437149,
0.2219604253768921,
0.2185230255126953,
0.31862780451774597,
-0.24613170325756073,
0.144497811794281,
0.2155948281288147,
-0.016662495210766792,
-0.03760841488838196,
0.16346684098243713,
-0.31660714745521545,
-0.0151866739615798,
0.2694856524467468,
0.14867478609085083,
-0.15378545224666595,
-0.5454912185668945,
0.12963365018367767,
0.3487483561038971,
0.3943714499473572,
-0.5621159076690674,
-0.6745551228523254,
-0.27403366565704346,
0.18088018894195557,
-0.33323338627815247,
0.09328678250312805,
0.4548129737377167,
-0.1409769356250763,
0.20200195908546448,
-0.43927809596061707,
-0.41259047389030457,
0.07816166430711746,
-0.31171706318855286,
0.29732340574264526,
-0.04748149961233139,
-0.26030752062797546,
0.03278276324272156,
0.051338937133550644,
0.13210822641849518,
0.3066861033439636,
-0.28354325890541077,
-0.31234681606292725,
0.573369562625885,
-0.24807307124137878,
-0.24157463014125824,
-0.312624990940094,
0.17123332619667053,
0.20139950513839722,
-0.06655853241682053,
0.06826172024011612,
-0.1289224475622177,
0.004190712235867977,
-0.05027139559388161,
0.12602493166923523,
0.03929387032985687,
-0.08337685465812683,
-0.21175691485404968,
0.29361605644226074,
-0.17861513793468475,
0.020047998055815697,
-0.022956497967243195,
0.022384697571396828,
-0.3257000744342804,
0.23055106401443481,
0.08852312713861465,
0.27188488841056824,
-0.1417563259601593,
0.31398460268974304,
-0.013668319210410118,
-0.018977273255586624,
-0.03112832084298134,
-0.33540213108062744,
0.1593688279390335,
-0.19146430492401123,
-0.043944548815488815,
0.14451059699058533,
0.10419676452875137,
-0.03084106184542179,
-0.2627185881137848,
-0.09549371898174286,
0.08992712944746017,
-0.05539042502641678,
0.3115384578704834,
0.11606314778327942,
-0.16808965802192688,
0.0953003466129303,
0.18655329942703247,
-0.12426649034023285,
-0.2649588882923126,
0.08114026486873627,
-0.4365721344947815,
0.014829925261437893,
0.2506142854690552,
-0.0197154451161623,
0.07208818942308426,
-0.0367935486137867,
0.3380577862262726,
-0.17790447175502777,
0.44929438829421997,
-0.20433826744556427,
-0.2573891580104828,
0.16425390541553497,
0.0534856878221035,
-0.008352619595825672,
0.05551384761929512,
-0.470235675573349,
0.3273879587650299,
0.6150686144828796,
0.28765833377838135,
0.28035515546798706,
0.32474285364151,
-0.3547724187374115,
-0.05433478206396103,
0.11124463379383087,
0.5088638663291931,
-0.28243911266326904,
0.0445283018052578,
0.39103177189826965,
-0.037899162620306015,
0.12273100018501282,
0.20045068860054016,
-0.03862053155899048,
0.3778628706932068,
-0.034848902374506,
-0.13771070539951324,
0.25490012764930725,
-0.02795691043138504,
-0.004930374678224325,
0.42978450655937195,
-0.1329643875360489,
-0.24088263511657715,
0.09946294128894806,
0.22738434374332428,
-0.19229765236377716,
-0.05346868932247162,
0.06413687765598297,
0.39434894919395447,
0.05072680115699768,
0.13479234278202057,
-0.1889542043209076,
-0.5016101598739624,
-0.2405151128768921,
-0.025490250438451767,
-0.051484789699316025,
0.11337874829769135,
-0.1985219269990921,
-0.07845114171504974,
0.14197856187820435,
-0.18654084205627441,
0.17621026933193207,
0.3741006553173065,
-0.17765644192695618,
0.10496637225151062,
-0.024602318182587624,
-0.2391481101512909,
-0.3565000593662262,
0.23780418932437897,
-0.18518325686454773,
0.07278834283351898,
0.19771093130111694,
-0.4412868618965149,
0.2564168870449066,
0.0928594172000885,
0.021197916939854622,
0.09672251343727112,
-0.004148240201175213,
-0.3817105293273926,
0.327762633562088,
0.022081585600972176,
-0.4443691372871399,
0.2501784563064575,
-0.35909783840179443,
0.07382865250110626,
-0.40266168117523193,
-0.11435030400753021,
0.10624803602695465,
0.00950030516833067,
-0.100331149995327,
-0.09452824294567108,
-0.2604740262031555,
0.007163796108216047,
-0.10087748616933823,
0.29016441106796265,
-0.16169624030590057,
0.22722227871418,
-0.12036243081092834,
0.09918802231550217,
-0.07375683635473251,
-0.2234308272600174,
-0.010772787034511566,
-0.1301415115594864,
0.10444298386573792,
-0.2295476645231247,
-0.24909797310829163,
0.26698359847068787,
-0.029423745349049568,
0.40338239073753357,
0.0256117545068264,
-0.2489110231399536,
0.22177934646606445,
-0.04112554341554642,
-0.0857890322804451,
0.08462728559970856,
0.10302797704935074,
-0.04956091195344925,
0.7756674289703369,
-0.02890443056821823,
-0.1323898732662201,
-0.2946954369544983,
0.12236665189266205,
-0.03221132978796959,
0.0509432852268219,
0.2729351222515106,
-0.16222362220287323,
-0.13280987739562988,
-0.2435215413570404,
0.013893740251660347,
0.2328963428735733,
0.09664507210254669,
0.08826934546232224,
0.30988040566444397,
0.05116831511259079,
-0.12634782493114471,
0.2850107252597809,
0.018753662705421448,
0.43964844942092896,
-0.025051748380064964,
0.16158433258533478,
0.1324831247329712,
-0.27926504611968994,
0.2479461133480072,
0.0971258282661438,
0.06976178288459778,
-0.21545793116092682,
0.14134354889392853,
0.09908556193113327,
-0.17934444546699524,
0.031003519892692566,
0.03604959324002266,
-0.2645479738712311,
0.18055588006973267,
-0.205617293715477,
-0.13508474826812744,
0.11206671595573425,
0.022504739463329315,
-0.34210923314094543,
0.3792153000831604,
0.10379564762115479,
-0.055177945643663406,
-0.06458717584609985,
-0.17644193768501282,
0.14158415794372559,
-0.05905361846089363,
0.3099806606769562,
-0.21320058405399323,
0.363567978143692,
-0.09602170437574387,
-0.04472463205456734,
-0.23097845911979675,
0.18583017587661743,
0.18363797664642334,
0.057598184794187546,
0.315347820520401,
0.01500357873737812,
0.06127703934907913,
0.14588245749473572,
0.1730891764163971,
0.03150974586606026,
-0.1268610656261444,
-0.22935490310192108,
-0.2512015402317047,
0.007826173678040504,
-0.002918961923569441,
-0.14718575775623322,
0.09293580800294876,
-0.18531487882137299,
-0.19760054349899292,
0.21957463026046753,
-0.06614980101585388,
0.05941155180335045,
0.33342447876930237,
-0.018125081434845924,
0.004022717010229826,
-0.17716340720653534,
0.064665287733078,
-0.0010531728621572256,
-0.7291207313537598,
0.3107970654964447,
0.05569203570485115,
-0.35983511805534363,
-0.009533887729048729,
-0.08333201706409454,
0.0246741883456707,
0.30751752853393555,
-0.6023690700531006,
0.05902748182415962,
-0.3641529679298401,
0.02229210175573826,
-0.17506274580955505,
0.14464989304542542,
0.16941851377487183,
-0.006835829000920057,
0.0020275560673326254,
0.03351932391524315,
-0.03290277719497681,
0.07124735414981842,
-0.18925592303276062,
0.04485435411334038,
0.2905825078487396,
0.6020950078964233,
0.0019183160038664937,
0.6774527430534363,
0.23822763562202454,
-0.010103164240717888,
0.3234528601169586,
0.11356357485055923,
0.5247786641120911,
-0.2154267281293869,
-0.09265410155057907,
-0.16710762679576874,
-0.21629489958286285,
-0.10277102142572403,
0.25829580426216125,
0.21519911289215088,
-0.23342129588127136,
-0.18049675226211548,
-0.04436654970049858,
-0.007284610997885466,
-0.09354894608259201,
0.19710376858711243,
-0.3860432505607605,
0.35247549414634705,
0.04312184080481529,
0.040476951748132706,
-0.2245042771100998,
-0.39346858859062195,
0.10247441381216049,
0.026566291227936745,
0.6047849059104919,
-0.06171554699540138,
-0.25066789984703064,
0.13564647734165192,
-0.7349542379379272,
0.15759088099002838,
0.06089288741350174,
0.3999407887458801,
0.11611828953027725,
0.14234371483325958,
0.1530470997095108,
-0.2671489715576172,
0.6611443161964417,
-0.18208925426006317,
0.023695388808846474,
0.28408190608024597,
-0.07003099471330643,
-0.22585320472717285,
0.16905167698860168,
0.004905944690108299,
0.5148667693138123,
0.01922493986785412,
0.3401058614253998,
-0.008586357347667217,
-0.20248033106327057,
0.09084894508123398,
0.3764362633228302,
-0.27705276012420654,
-0.5819284915924072,
-0.2186645120382309,
-0.1276068240404129,
-0.22942279279232025,
0.19331063330173492,
0.10356508940458298,
-0.1981814205646515,
-0.06174732744693756,
-0.0676766037940979,
-0.32005783915519714,
0.2900868058204651,
0.051093146204948425,
-0.18663683533668518,
0.00405226182192564,
0.08376740664243698,
0.4016824960708618,
0.051874831318855286,
-0.07886134088039398,
-0.1687552034854889,
0.5229564309120178,
-0.2597319483757019,
-0.2651680111885071,
-0.18190118670463562,
-0.08117901533842087,
0.3944950997829437,
0.3223760426044464,
0.09412061423063278,
0.2992989420890808,
0.17868269979953766,
0.11385294795036316,
-0.5120096802711487,
0.18926876783370972,
0.15498118102550507,
0.07199494540691376,
-0.722922146320343,
-0.6222508549690247,
0.6525927782058716,
0.3519832491874695,
0.12593844532966614,
0.2537677586078644,
0.12205331027507782,
-0.2655966579914093,
0.22473040223121643,
0.2336198091506958,
0.8952524065971375,
-0.3194475471973419,
0.2945694625377655,
-0.2977178692817688,
0.18844597041606903,
0.44127562642097473,
-0.33130839467048645,
0.08702472597360611,
-0.18642397224903107,
-0.3148829936981201,
-0.0036826718132942915,
-0.11617683619260788,
0.1716420203447342,
0.3708028793334961,
0.09521309286355972,
0.30085310339927673,
-0.01798406057059765,
-0.0516086146235466,
-0.016610069200396538,
0.029302390292286873,
-0.08204744756221771,
-0.5858249664306641,
-0.2183348536491394,
0.10132834315299988,
-0.08557381480932236,
0.14533619582653046,
-0.19209977984428406,
0.18407617509365082,
0.25102391839027405,
-0.09934810549020767,
-0.4174712002277374,
-0.03664454445242882,
-0.34678640961647034,
-0.17795167863368988,
-0.19798900187015533,
-0.16223293542861938,
0.05260241776704788,
0.08650809526443481,
0.5049937963485718,
0.5158254504203796,
-0.07509293407201767,
-0.09953851252794266,
0.01928621344268322,
0.09760496765375137,
-0.15617449581623077,
0.08644267171621323,
0.18892355263233185,
-0.05735926330089569,
0.05448620766401291,
-0.029299205169081688,
-0.3847138583660126,
-0.12600626051425934,
0.10873989760875702,
-0.1294970065355301,
0.08528529107570648,
0.13325609266757965,
-0.4105952978134155,
0.043044235557317734,
0.18811611831188202,
-0.0803622305393219,
0.04602893069386482,
0.2664838135242462,
-0.08431103825569153,
0.17668235301971436,
-0.10035654157400131,
-0.3924736976623535,
-0.017077622935175896,
0.33257168531417847,
0.15091301500797272,
-0.25410789251327515,
0.42687997221946716,
0.301395058631897,
-0.27817490696907043,
-0.07301678508520126,
0.16194339096546173,
0.09668094664812088,
-0.43294018507003784,
0.104279063642025,
0.18796557188034058,
0.24597832560539246,
-0.21420197188854218,
0.054830074310302734,
0.12209475040435791,
-0.2156113088130951,
0.12158340215682983,
-0.20273874700069427,
-0.6988819241523743,
-0.11574658006429672,
0.19374322891235352,
0.09633050858974457,
0.5451953411102295,
-0.09530067443847656,
0.18980512022972107,
0.4475332498550415,
-0.18525320291519165,
-0.03415045142173767,
-0.005107033997774124,
0.09385005384683609,
0.1589474081993103,
0.2476893663406372,
0.024621129035949707,
-0.13508304953575134,
-0.045772019773721695,
0.0844503790140152,
0.06267882138490677,
-0.23739050328731537,
-0.0988689586520195,
0.2000257968902588,
-0.0570259764790535,
-0.12075167894363403,
0.2125353068113327,
-0.18718072772026062,
-0.16794197261333466,
-0.40308424830436707,
0.03392215818166733,
0.3511117398738861,
-0.00697162514552474,
-0.20972850918769836,
0.2676529586315155,
0.20404848456382751,
-0.31312790513038635,
0.2779679298400879,
0.07485925406217575,
0.1064925417304039,
-0.06868502497673035,
0.09694497287273407,
0.29076525568962097,
0.04614966735243797,
0.06582305580377579,
-0.15295371413230896,
0.281549334526062,
-0.12764789164066315,
0.08699042350053787,
-0.23592758178710938,
0.08804238587617874,
0.2308560013771057,
0.22293779253959656,
0.18890829384326935,
-0.11966628581285477,
0.05408433824777603,
0.3452787399291992,
0.09658679366111755,
-0.3158838152885437,
-0.1373806893825531,
0.22070804238319397,
-0.12793590128421783,
0.10543416440486908,
0.27108967304229736,
0.20831075310707092,
0.21082854270935059,
-0.15562382340431213,
0.22138439118862152,
0.15548130869865417,
-0.3679105341434479,
-0.025575175881385803,
0.31434327363967896,
0.21947304904460907,
0.2891560196876526,
0.3471425771713257,
0.3937499523162842,
0.1932378113269806,
0.3604699671268463,
0.2966650724411011,
0.5566430687904358,
0.11561279743909836,
0.14604483544826508,
-0.2761043906211853,
-0.6948464512825012,
0.16864648461341858,
0.1119159683585167,
0.14376533031463623,
0.34306392073631287,
-0.1404845416545868,
0.24998192489147186,
0.013436662033200264,
-0.21597038209438324,
-0.18700972199440002,
0.17248445749282837,
-0.20667539536952972,
-0.26465627551078796,
0.35974305868148804,
0.029995432123541832,
0.30805909633636475,
0.17558759450912476,
-0.006224593613296747,
-0.17585307359695435,
0.11991184949874878,
0.036268144845962524,
0.10598345845937729,
0.029143283143639565,
0.12097340077161789,
0.07656148821115494,
0.1871217042207718,
-0.2097545564174652,
0.15742406249046326,
0.018892943859100342,
0.13195329904556274,
-0.16347955167293549,
0.4289206266403198,
0.1874070018529892,
0.39559870958328247,
-0.07572858035564423,
0.19279709458351135,
-0.056929025799036026,
0.023351935669779778,
-0.05762922018766403,
0.19939866662025452,
0.002304678549990058,
-0.07401519268751144,
0.17862176895141602,
0.005361238960176706,
-0.05825328081846237,
0.18534047901630402,
-0.07937547564506531,
0.3324710726737976,
-0.22972224652767181,
0.2897550165653229,
-0.03810647875070572,
-0.3007814884185791,
-0.2321137636899948,
0.25770920515060425,
-0.3346060514450073,
0.33399710059165955,
0.7271058559417725,
-0.4429170489311218,
-0.04021220654249191,
-0.06234835833311081,
0.03513949736952782,
0.16753454506397247,
0.5127871036529541,
0.38622525334358215,
0.13020743429660797,
-0.21322384476661682,
0.10550662130117416,
-0.5249496698379517,
-0.19797548651695251,
-0.1035250648856163,
0.36073243618011475,
-0.26795434951782227,
-0.13626320660114288,
0.16284358501434326,
0.21418984234333038,
-0.12371958792209625,
-0.2999061346054077,
-0.055915191769599915,
0.33104759454727173,
-0.2579767405986786,
-0.20189759135246277,
-0.34813690185546875,
0.18672853708267212,
0.017172252759337425,
-0.4353333115577698,
0.15845325589179993,
0.2004406601190567,
-0.17389445006847382,
-0.08892839401960373,
0.16387897729873657,
0.030490705743432045,
-0.018021464347839355,
0.34601759910583496,
0.073466956615448,
0.2587006092071533,
-0.19418290257453918,
0.009610001929104328,
-0.3058740496635437,
0.023203905671834946,
-0.25867363810539246,
0.20876528322696686,
0.051414281129837036,
0.007905044592916965,
-0.5748571753501892,
-0.3172648251056671,
-0.10321427136659622,
-0.21648551523685455,
-0.13749635219573975,
-0.05872282385826111,
-0.3331206738948822,
-0.2301083356142044,
-0.17847181856632233,
0.002949540503323078,
0.3238130807876587,
0.2766808569431305,
-0.008544530719518661,
0.10117575526237488,
-0.23281142115592957,
-0.18171900510787964,
0.4950384795665741,
-0.31649062037467957,
-0.3039827346801758,
-0.24054960906505585,
0.05648578703403473,
0.1237998977303505,
-0.25667381286621094,
-0.4457375407218933,
0.15041211247444153,
0.28647875785827637,
-0.13946066796779633,
0.05887007340788841,
0.3648117780685425,
-0.30238255858421326,
0.09236613661050797,
-0.21126951277256012,
0.6263195276260376,
-0.1821257770061493,
-0.09965191781520844,
-0.36726701259613037,
-0.4044739007949829
] |
https://github.com/huggingface/datasets/issues/1776 | [Question & Bug Report] Can we preprocess a dataset on the fly? | Indeed I will submit a PR in a fez days to enable processing on-the-fly :)
This can be useful in language modeling for tokenization, padding etc.
| I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 | 26 | [Question & Bug Report] Can we preprocess a dataset on the fly?
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
Indeed I will submit a PR in a fez days to enable processing on-the-fly :)
This can be useful in language modeling for tokenization, padding etc.
| [
-0.38063034415245056,
-0.19696876406669617,
-0.07462406903505325,
-0.006863976828753948,
0.4007774591445923,
0.3399392366409302,
0.27787846326828003,
0.26342713832855225,
-0.09953608363866806,
0.14619992673397064,
0.1342775523662567,
0.1849377155303955,
-0.1421179622411728,
0.2875472605228424,
0.26896563172340393,
0.14315278828144073,
0.19679778814315796,
0.03322114050388336,
0.07253304868936539,
0.23776596784591675,
-0.28207752108573914,
-0.1595613658428192,
-0.12986207008361816,
-0.1796601116657257,
-0.4086601734161377,
-0.30662962794303894,
-0.15479989349842072,
-0.09391779452562332,
-0.27369412779808044,
-0.2001536339521408,
0.2956175208091736,
0.2963145971298218,
0.06532502919435501,
0.4654718339443207,
-0.00011540267587406561,
0.010521920397877693,
0.42788153886795044,
-0.05471256375312805,
-0.09954619407653809,
-0.14353470504283905,
0.13768434524536133,
-0.24834704399108887,
-0.13861139118671417,
-0.2409493327140808,
-0.11215801537036896,
-0.033817190676927567,
0.07843007147312164,
-0.6800122857093811,
0.34944048523902893,
0.11581570655107498,
0.1876232624053955,
0.11962717026472092,
-0.0841415598988533,
0.15587620437145233,
0.2843363583087921,
0.37905153632164,
-0.34934499859809875,
-0.13078473508358002,
0.1972598433494568,
-0.07721471041440964,
0.08154485374689102,
0.07717271894216537,
-0.3598994314670563,
-0.04842592775821686,
0.28948265314102173,
0.0892699658870697,
-0.21458277106285095,
-0.6604300141334534,
0.1388300508260727,
0.2746991515159607,
0.4689069390296936,
-0.5630961060523987,
-0.702975869178772,
-0.21934746205806732,
0.14027391374111176,
-0.3208354413509369,
0.03829079493880272,
0.4482019245624542,
-0.17156437039375305,
0.07312393188476562,
-0.41513147950172424,
-0.42024657130241394,
0.04136672616004944,
-0.308630108833313,
0.2753440737724304,
-0.07209733128547668,
-0.21196068823337555,
0.02520178072154522,
0.03420178219676018,
0.1810990422964096,
0.4665650725364685,
-0.27185434103012085,
-0.30903732776641846,
0.48357462882995605,
-0.25777798891067505,
-0.19700929522514343,
-0.26455608010292053,
0.06774784624576569,
0.26920950412750244,
0.059397466480731964,
0.031287577003240585,
-0.12087628990411758,
-0.05939439311623573,
-0.06034315377473831,
0.18576280772686005,
0.04672422260046005,
-0.02059648558497429,
-0.18886055052280426,
0.2885477542877197,
-0.2618698477745056,
0.10948368161916733,
-0.051322609186172485,
0.020472925156354904,
-0.33831024169921875,
0.3059312701225281,
0.09551994502544403,
0.24374206364154816,
-0.2711469531059265,
0.3885357975959778,
-0.027221649885177612,
0.07651298493146896,
-0.023570237681269646,
-0.40082764625549316,
0.08768130093812943,
-0.1159520074725151,
-0.004716137889772654,
0.1546853482723236,
0.09619620442390442,
0.06724340468645096,
-0.22885900735855103,
-0.07707881182432175,
0.014027674682438374,
0.00414879247546196,
0.23254945874214172,
0.07277113199234009,
-0.1973726451396942,
0.031166035681962967,
0.21053238213062286,
-0.09173392504453659,
-0.20584744215011597,
0.1751338690519333,
-0.44167524576187134,
0.09071120619773865,
0.29822686314582825,
0.03513580560684204,
0.04681401699781418,
-0.029917141422629356,
0.3525294065475464,
-0.23667305707931519,
0.5580148696899414,
-0.15719285607337952,
-0.2958838641643524,
0.046777211129665375,
0.0742289274930954,
-0.020416485145688057,
0.006982714869081974,
-0.5607430338859558,
0.23428431153297424,
0.6066609621047974,
0.21604293584823608,
0.26053765416145325,
0.23207402229309082,
-0.30536770820617676,
-0.1547011435031891,
0.13657894730567932,
0.43688634037971497,
-0.2761691212654114,
0.18238526582717896,
0.2781614661216736,
0.03970099613070488,
0.2247023582458496,
0.028513289988040924,
-0.024242116138339043,
0.2706716060638428,
-0.04757547751069069,
-0.14639677107334137,
0.32117021083831787,
-0.09991351515054703,
0.13672009110450745,
0.3996352553367615,
-0.059050071984529495,
-0.28139933943748474,
0.08106835931539536,
0.16551603376865387,
-0.06320735067129135,
-0.0565832145512104,
-0.0004900741623714566,
0.44617781043052673,
0.023889737203717232,
0.15894654393196106,
-0.180437833070755,
-0.4752097725868225,
-0.2243528962135315,
-0.013599060475826263,
0.01186432596296072,
0.12632960081100464,
-0.12866009771823883,
-0.2577137351036072,
0.0810362920165062,
-0.20283153653144836,
0.1990295648574829,
0.33933934569358826,
-0.0400334894657135,
0.0700501799583435,
0.05016729608178139,
-0.21940678358078003,
-0.32555297017097473,
0.23923225700855255,
-0.12903977930545807,
0.07254095375537872,
0.16847702860832214,
-0.4414997398853302,
0.20578058063983917,
0.11762592196464539,
0.09296075999736786,
0.16508972644805908,
0.01848844438791275,
-0.34717270731925964,
0.2571829557418823,
0.008034425787627697,
-0.48882558941841125,
0.28475627303123474,
-0.28182387351989746,
0.060555484145879745,
-0.31922417879104614,
-0.08911243081092834,
0.15444548428058624,
-0.026418855413794518,
-0.07297741621732712,
-0.11705785244703293,
-0.23852050304412842,
0.03209443762898445,
-0.10211307555437088,
0.27578964829444885,
-0.06638985127210617,
0.1682732105255127,
-0.08663506805896759,
0.12564170360565186,
-0.14474532008171082,
-0.129069983959198,
-0.0076086800545454025,
-0.171779066324234,
0.1499706208705902,
-0.19085915386676788,
-0.18799196183681488,
0.2441374808549881,
-0.09065435826778412,
0.455109179019928,
-0.01866832561790943,
-0.17646287381649017,
0.1805126667022705,
0.0065297894179821014,
-0.05523642152547836,
0.125054731965065,
0.015582420863211155,
-0.08828054368495941,
0.7388349771499634,
-0.15103334188461304,
-0.09796857833862305,
-0.1166277527809143,
0.026519032195210457,
0.004368313588202,
-0.011703498661518097,
0.2582089602947235,
-0.11334501206874847,
-0.14054857194423676,
-0.22059358656406403,
0.08562707155942917,
0.21079935133457184,
0.12128400057554245,
0.039546482264995575,
0.24073991179466248,
0.07095739245414734,
-0.06431818753480911,
0.3207210302352905,
0.0227348692715168,
0.45631298422813416,
-0.04685302823781967,
0.23022432625293732,
0.15752561390399933,
-0.2121618539094925,
0.14795434474945068,
0.06119309738278389,
0.06468445062637329,
-0.1386880874633789,
0.1182624101638794,
0.13235217332839966,
-0.15800198912620544,
0.13924677670001984,
-0.028587663546204567,
-0.27574601769447327,
0.09569760411977768,
-0.13782379031181335,
-0.11890194565057755,
0.14351952075958252,
-0.02788936160504818,
-0.44743356108665466,
0.4689069390296936,
0.051171571016311646,
-0.1783304214477539,
-0.17204953730106354,
-0.2506064772605896,
0.21449285745620728,
-0.008765975944697857,
0.23328426480293274,
-0.14380884170532227,
0.4303096830844879,
-0.01804949715733528,
0.0589524507522583,
-0.2585678696632385,
0.13747760653495789,
0.10435216128826141,
0.030975261703133583,
0.3830711245536804,
-0.006109498906880617,
0.0010168642038479447,
0.20853793621063232,
0.20509064197540283,
-0.0019415939459577203,
-0.14475679397583008,
-0.20030000805854797,
-0.26093944907188416,
-0.02361694537103176,
-0.005871952511370182,
-0.20884840190410614,
0.09288493543863297,
-0.15212364494800568,
-0.23904870450496674,
0.13619129359722137,
-0.0025107506662607193,
0.05203620344400406,
0.1913914978504181,
-0.03416275233030319,
-0.09710882604122162,
-0.16018955409526825,
0.06803219765424728,
-0.024922028183937073,
-0.6827621459960938,
0.24374230206012726,
0.017617130652070045,
-0.33865320682525635,
-0.02387208864092827,
0.008869071491062641,
0.04373610019683838,
0.3255077004432678,
-0.5940137505531311,
0.06406865268945694,
-0.4057154953479767,
0.0709720104932785,
-0.22092345356941223,
0.1615334153175354,
0.3194848597049713,
0.10002739727497101,
-0.021658433601260185,
0.03393663093447685,
-0.160355344414711,
-0.02011731266975403,
-0.16824300587177277,
-0.0235503651201725,
0.34330227971076965,
0.4535854160785675,
0.03148112818598747,
0.6971469521522522,
0.13546490669250488,
-0.007267777808010578,
0.3471177816390991,
0.03751995787024498,
0.4989185333251953,
-0.30261391401290894,
-0.11541175842285156,
-0.19299355149269104,
-0.2688211500644684,
-0.17421677708625793,
0.07811369746923447,
0.2036477029323578,
-0.28886163234710693,
-0.21735338866710663,
0.05150516331195831,
-0.1161351203918457,
-0.04035395383834839,
0.08608637005090714,
-0.34709057211875916,
0.35492846369743347,
0.027555182576179504,
0.027592342346906662,
-0.2921554744243622,
-0.38152676820755005,
0.11333636194467545,
0.00505978986620903,
0.7152575850486755,
-0.14129172265529633,
-0.1982315480709076,
0.18183957040309906,
-0.6152508854866028,
0.1812918484210968,
0.024040834978222847,
0.39189815521240234,
0.13090179860591888,
0.04471203684806824,
0.1315591037273407,
-0.2936674952507019,
0.5625485777854919,
-0.25961363315582275,
0.021819932386279106,
0.3942945599555969,
-0.048894625157117844,
-0.24840104579925537,
0.1503465175628662,
0.08036535233259201,
0.5243754982948303,
-0.19547124207019806,
0.2850285470485687,
-0.0203668475151062,
-0.13412681221961975,
0.047423526644706726,
0.3616243302822113,
-0.20789982378482819,
-0.5691263675689697,
-0.21006856858730316,
-0.13691389560699463,
-0.19606272876262665,
0.16729025542736053,
0.05068596079945564,
-0.14847803115844727,
-0.09898451715707779,
-0.07939760386943817,
-0.4353748857975006,
0.30446290969848633,
-0.049216482788324356,
-0.2059289962053299,
0.030912697315216064,
-0.052169281989336014,
0.456504225730896,
0.010704953223466873,
-0.24765416979789734,
-0.16799041628837585,
0.4879389703273773,
-0.18821558356285095,
-0.24560125172138214,
-0.1580667644739151,
-0.005101671442389488,
0.44879239797592163,
0.22745859622955322,
0.04680667072534561,
0.24214911460876465,
0.028811639174818993,
0.06787198036909103,
-0.5434039235115051,
0.05806579813361168,
0.12932246923446655,
-0.07685314863920212,
-0.6611810922622681,
-0.6796528697013855,
0.5924068093299866,
0.4728294909000397,
0.0690128356218338,
0.4679061770439148,
0.037382740527391434,
-0.18621602654457092,
0.3434484899044037,
0.24815000593662262,
0.8984994888305664,
-0.3707824945449829,
0.21249477565288544,
-0.37609922885894775,
0.11620789021253586,
0.29984918236732483,
-0.30497410893440247,
0.0756969302892685,
-0.30925416946411133,
-0.3410373628139496,
0.03169800341129303,
-0.16260290145874023,
0.17449577152729034,
0.3247881829738617,
0.07135920226573944,
0.24984507262706757,
-0.049954287707805634,
-0.08416316658258438,
-0.02285422384738922,
-0.10554133355617523,
-0.054948993027210236,
-0.5814415812492371,
-0.1364498883485794,
0.13799171149730682,
-0.06841190159320831,
0.1358141005039215,
-0.13968172669410706,
0.20950858294963837,
0.2830487787723541,
-0.13001689314842224,
-0.43888330459594727,
-0.001440783846192062,
-0.23892873525619507,
-0.2830252945423126,
-0.1929851472377777,
-0.1482585072517395,
-0.020520219579339027,
0.028984393924474716,
0.5220214128494263,
0.5669854879379272,
0.015147804282605648,
-0.10170703381299973,
0.14498715102672577,
0.10290682315826416,
-0.054915279150009155,
0.11441808193922043,
0.09506605565547943,
-0.08765750378370285,
0.06441893428564072,
-0.0018638729816302657,
-0.3893856406211853,
-0.169649139046669,
0.14564403891563416,
-0.04975415766239166,
0.1266861855983734,
0.05350498855113983,
-0.33079540729522705,
0.12411566823720932,
0.27437612414360046,
-0.08970782160758972,
0.08354417979717255,
0.3032916188240051,
-0.0005669710808433592,
0.29263025522232056,
-0.19849279522895813,
-0.3364447057247162,
0.0016811697278171778,
0.23420153558254242,
0.17709964513778687,
-0.2752557396888733,
0.2237224280834198,
0.23387831449508667,
-0.2575758695602417,
-0.10630447417497635,
0.17239999771118164,
-0.07631316781044006,
-0.3368683159351349,
0.15990564227104187,
0.12803296744823456,
0.25585272908210754,
-0.12171425670385361,
0.14388960599899292,
0.03125301003456116,
-0.18699027597904205,
0.09780119359493256,
-0.21967820823192596,
-0.5614851117134094,
-0.08400267362594604,
0.07624742388725281,
0.15192468464374542,
0.5885523557662964,
-0.3070674538612366,
0.12644538283348083,
0.3701988160610199,
-0.21794337034225464,
-0.01091807521879673,
0.0840468779206276,
0.0907297432422638,
0.1064973846077919,
0.2765710651874542,
-0.02616739831864834,
-0.14701519906520844,
-0.02355244569480419,
0.0801505520939827,
0.0814553052186966,
-0.2511889934539795,
-0.021066635847091675,
0.1889360398054123,
-0.10974285751581192,
-0.02781994640827179,
0.237838476896286,
-0.199259951710701,
-0.32053300738334656,
-0.35031184554100037,
0.0754181370139122,
0.35563501715660095,
-0.12502510845661163,
-0.22054581344127655,
0.30596616864204407,
0.19243405759334564,
-0.3947243094444275,
0.36454737186431885,
0.11251544207334518,
0.13034510612487793,
-0.10614495724439621,
0.17551207542419434,
0.20992957055568695,
-0.014589028432965279,
0.1223229318857193,
-0.16521015763282776,
0.23440420627593994,
-0.021419912576675415,
0.15161873400211334,
-0.2099454402923584,
0.10741498321294785,
0.19616486132144928,
0.27123984694480896,
0.1962307244539261,
-0.0628976970911026,
0.09380005300045013,
0.31838491559028625,
0.12733598053455353,
-0.2558270990848541,
-0.18132537603378296,
0.1610770970582962,
-0.022100890055298805,
0.10443193465471268,
0.29581010341644287,
0.27261102199554443,
0.197369784116745,
-0.16814635694026947,
0.25173959136009216,
0.22230041027069092,
-0.44655585289001465,
0.04788876324892044,
0.22981895506381989,
0.16019345819950104,
0.16910000145435333,
0.2685851752758026,
0.325641006231308,
0.09999720752239227,
0.33419013023376465,
0.33404889702796936,
0.582002580165863,
0.39889946579933167,
0.08125761151313782,
-0.2637983560562134,
-0.6308766603469849,
0.31626182794570923,
0.06252502650022507,
0.2412298172712326,
0.3569070100784302,
-0.05552629008889198,
0.2297918200492859,
0.035385992377996445,
-0.17069214582443237,
-0.19887284934520721,
0.12122863531112671,
-0.13756436109542847,
-0.16653777658939362,
0.37725934386253357,
0.01653498038649559,
0.31764644384384155,
0.104921355843544,
-0.04185675457119942,
-0.09927206486463547,
0.2685161232948303,
0.0013307402841746807,
0.18236742913722992,
0.11839155107736588,
0.1652447134256363,
0.060097191482782364,
0.2857719957828522,
-0.18342389166355133,
0.17607586085796356,
-0.043693818151950836,
0.04718372970819473,
-0.133407324552536,
0.5387241840362549,
0.2672439515590668,
0.38091278076171875,
-0.12416472285985947,
0.1615903079509735,
-0.10296527296304703,
0.010156121104955673,
-0.012483639642596245,
0.2942134737968445,
-0.043089624494314194,
-0.07433637976646423,
0.17864549160003662,
0.045570846647024155,
-0.04420436546206474,
0.23257839679718018,
-0.13035553693771362,
0.38554784655570984,
-0.16413943469524384,
0.3359884023666382,
0.09041464328765869,
-0.29821038246154785,
-0.1875429004430771,
0.20612390339374542,
-0.24364306032657623,
0.15718358755111694,
0.7409973740577698,
-0.35968002676963806,
-0.10596474260091782,
-0.08483932167291641,
0.053869910538196564,
0.19892629981040955,
0.44216081500053406,
0.3787406086921692,
0.09707671403884888,
-0.1298152655363083,
0.06909163296222687,
-0.37576213479042053,
-0.15619811415672302,
-0.1044110655784607,
0.2584379017353058,
-0.20273862779140472,
-0.1442376971244812,
0.1973617821931839,
0.30045413970947266,
-0.03200438618659973,
-0.29718711972236633,
-0.001405575079843402,
0.431901752948761,
-0.2911933362483978,
-0.132473886013031,
-0.23003636300563812,
0.06531835347414017,
0.028320996090769768,
-0.4767264425754547,
0.11694225668907166,
0.1917359083890915,
-0.11068688333034515,
0.03524245321750641,
0.07042405754327774,
0.1664675772190094,
-0.06037432700395584,
0.4525507390499115,
0.03399631008505821,
0.18255123496055603,
-0.12791793048381805,
0.005865135695785284,
-0.31192442774772644,
-0.07593894004821777,
-0.22876949608325958,
0.23962293565273285,
0.05113678053021431,
-0.12844978272914886,
-0.5494621992111206,
-0.3066657483577728,
-0.10700299590826035,
-0.25877881050109863,
-0.23323626816272736,
0.039121102541685104,
-0.3262362480163574,
-0.2682570517063141,
-0.1688867062330246,
-0.05690651014447212,
0.2241002470254898,
0.18542425334453583,
0.021251006051898003,
0.09826959669589996,
-0.2764485478401184,
-0.27640795707702637,
0.44505468010902405,
-0.11665605008602142,
-0.32419052720069885,
-0.2345125824213028,
0.05785716697573662,
0.08003552258014679,
-0.2177993357181549,
-0.3854016363620758,
0.155552938580513,
0.2995451092720032,
-0.13096073269844055,
0.2152191400527954,
0.3185412287712097,
-0.3890826404094696,
0.1024346724152565,
-0.22066397964954376,
0.6346168518066406,
-0.21920794248580933,
0.033623479306697845,
-0.40681031346321106,
-0.3738466203212738
] |
https://github.com/huggingface/datasets/issues/1776 | [Question & Bug Report] Can we preprocess a dataset on the fly? | Hi @acul3,
Please look at the discussion on a related Issue #1825. I think using `set_transform` after building from source should do. | I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 | 22 | [Question & Bug Report] Can we preprocess a dataset on the fly?
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache?
BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code:
https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
Hi @acul3,
Please look at the discussion on a related Issue #1825. I think using `set_transform` after building from source should do. | [
-0.4329628348350525,
-0.14976295828819275,
-0.021089879795908928,
0.011729194782674313,
0.48501768708229065,
0.27308791875839233,
0.306505024433136,
0.2762749195098877,
-0.17471298575401306,
0.10266122221946716,
0.09820547699928284,
0.19635440409183502,
-0.08684181421995163,
0.24604475498199463,
0.2638712227344513,
0.14228405058383942,
0.20810438692569733,
0.08987979590892792,
-0.09663060307502747,
0.18759694695472717,
-0.29598701000213623,
-0.14257444441318512,
-0.06332728266716003,
-0.18397653102874756,
-0.4694172143936157,
-0.24277256429195404,
-0.1292233169078827,
0.0019165370613336563,
-0.18162144720554352,
-0.2031061351299286,
0.29272326827049255,
0.23240546882152557,
-0.01485854759812355,
0.4824580252170563,
-0.0001141936081694439,
0.04881890118122101,
0.4127863347530365,
-0.10139589011669159,
-0.14203059673309326,
-0.1252627819776535,
0.10220163315534592,
-0.30306097865104675,
-0.13483744859695435,
-0.25863024592399597,
-0.15554438531398773,
-0.10205139964818954,
0.03970088064670563,
-0.6355347037315369,
0.43213531374931335,
0.14660990238189697,
0.22004836797714233,
0.14741462469100952,
-0.045122794806957245,
0.12456896901130676,
0.26110002398490906,
0.31405916810035706,
-0.3821600079536438,
-0.10725588351488113,
0.1808372139930725,
0.03866761177778244,
0.037809450179338455,
0.15192998945713043,
-0.3269193768501282,
0.005300518125295639,
0.3591572940349579,
0.11015133559703827,
-0.23634248971939087,
-0.5635486245155334,
0.14775316417217255,
0.2872588336467743,
0.47847819328308105,
-0.560829758644104,
-0.719426691532135,
-0.2661270797252655,
0.14518265426158905,
-0.3385506868362427,
0.10055835545063019,
0.41547465324401855,
-0.17051514983177185,
0.0658450573682785,
-0.4523691236972809,
-0.4309621751308441,
0.025211814790964127,
-0.3683646619319916,
0.24051429331302643,
-0.1445682793855667,
-0.2335285097360611,
0.020499935373663902,
0.005709006451070309,
0.18992912769317627,
0.41070833802223206,
-0.21884334087371826,
-0.33816054463386536,
0.43553465604782104,
-0.2185554951429367,
-0.21876327693462372,
-0.26613086462020874,
0.0814250260591507,
0.2457326352596283,
0.13983014225959778,
0.015508143231272697,
-0.11616519838571548,
-0.032590847462415695,
-0.08937175571918488,
0.13607607781887054,
0.1203240305185318,
-0.08449006825685501,
-0.1408304125070572,
0.2896368205547333,
-0.2251356840133667,
0.09500017762184143,
-0.09808123856782913,
0.08256102353334427,
-0.40913471579551697,
0.33066391944885254,
0.10457783937454224,
0.32031333446502686,
-0.30020150542259216,
0.39894548058509827,
0.01400869432836771,
0.1325962245464325,
0.015018291771411896,
-0.38145193457603455,
0.14573432505130768,
-0.11045243591070175,
0.05123120918869972,
0.14663803577423096,
0.14227302372455597,
0.061334311962127686,
-0.17132848501205444,
-0.12158600240945816,
-0.0579744391143322,
-0.0176575668156147,
0.30376455187797546,
0.1017584353685379,
-0.20350612699985504,
0.09603305160999298,
0.19683171808719635,
-0.06930599361658096,
-0.1474776417016983,
0.15935637056827545,
-0.40744438767433167,
0.17736952006816864,
0.34921565651893616,
-0.02584640495479107,
0.08957988023757935,
-0.04352753981947899,
0.35301437973976135,
-0.1998041570186615,
0.5373976826667786,
-0.1354408711194992,
-0.31220218539237976,
0.03562839329242706,
0.0945882722735405,
-0.053180333226919174,
0.03737376257777214,
-0.5619779825210571,
0.14266125857830048,
0.6161592602729797,
0.21491371095180511,
0.26123401522636414,
0.18447716534137726,
-0.24947306513786316,
-0.16102081537246704,
0.1391238421201706,
0.45780906081199646,
-0.2424226701259613,
0.15425129234790802,
0.30466240644454956,
0.05118202790617943,
0.13853511214256287,
0.09610195457935333,
-0.028949862346053123,
0.20645089447498322,
-0.0387377068400383,
-0.19975203275680542,
0.32597747445106506,
-0.07219602912664413,
0.04675334692001343,
0.33943673968315125,
-0.09082115441560745,
-0.26452457904815674,
0.08235351741313934,
0.13847142457962036,
-0.027660148218274117,
-0.09626775234937668,
-0.05483587458729744,
0.4266059398651123,
-0.01957099139690399,
0.23604333400726318,
-0.18107087910175323,
-0.4425279498100281,
-0.2827942967414856,
-0.0746697187423706,
0.017609238624572754,
0.13785193860530853,
-0.19699260592460632,
-0.2738492488861084,
0.05709022283554077,
-0.18213443458080292,
0.23258516192436218,
0.34869906306266785,
-0.04560552537441254,
0.04651297628879547,
0.05859526991844177,
-0.14478497207164764,
-0.38473036885261536,
0.22109255194664001,
-0.10427036881446838,
0.04221181944012642,
0.11362743377685547,
-0.4316207468509674,
0.12563449144363403,
0.1094217598438263,
0.07254635542631149,
0.10652625560760498,
0.03961775451898575,
-0.30190300941467285,
0.2947498857975006,
-0.041091009974479675,
-0.44443824887275696,
0.24860543012619019,
-0.1694127768278122,
0.1128234937787056,
-0.4200752377510071,
-0.07612565159797668,
0.15064209699630737,
-0.06473830342292786,
-0.061865124851465225,
-0.12362376600503922,
-0.18797467648983002,
-0.007472912780940533,
-0.1552285999059677,
0.3102424144744873,
-0.15093974769115448,
0.23765519261360168,
-0.08336612582206726,
0.14791449904441833,
-0.10315082967281342,
-0.2216741144657135,
0.013471179641783237,
-0.14611585438251495,
0.12049791216850281,
-0.18983489274978638,
-0.23742999136447906,
0.2405591607093811,
-0.12544134259223938,
0.4528132975101471,
-0.02444695308804512,
-0.10673989355564117,
0.19655932486057281,
-0.0574270635843277,
-0.0650349110364914,
0.09893951565027237,
-0.04699459299445152,
-0.04357786849141121,
0.7283756136894226,
-0.08934211730957031,
-0.06463861465454102,
-0.08555350452661514,
0.07168832421302795,
0.01461095456033945,
-0.04505016282200813,
0.2503599524497986,
-0.14300508797168732,
-0.12394477427005768,
-0.2058185189962387,
0.11238989979028702,
0.22712352871894836,
0.14605043828487396,
0.028183037415146828,
0.2094622701406479,
0.05400790274143219,
-0.10658898204565048,
0.33124369382858276,
0.019544286653399467,
0.4602995216846466,
-0.028526684269309044,
0.24615056812763214,
0.10565155744552612,
-0.21524406969547272,
0.2044365108013153,
0.08516597002744675,
0.0561344213783741,
-0.17285294830799103,
0.11263012886047363,
0.15506145358085632,
-0.06946493685245514,
0.036156248301267624,
0.000529878365341574,
-0.22459883987903595,
0.08335885405540466,
-0.1207846850156784,
-0.03091822937130928,
0.02406224049627781,
0.05839378759264946,
-0.4411792755126953,
0.3388667106628418,
0.05310338735580444,
-0.18555182218551636,
-0.18536749482154846,
-0.2100471705198288,
0.20908576250076294,
0.0030894482042640448,
0.19118234515190125,
-0.17026287317276,
0.44990843534469604,
-0.06540637463331223,
0.02909080870449543,
-0.2961732745170593,
0.14708396792411804,
0.09489874541759491,
-0.005277194548398256,
0.35852453112602234,
0.014865079894661903,
0.027394797652959824,
0.20911383628845215,
0.19989925622940063,
0.059594474732875824,
-0.16880851984024048,
-0.18062780797481537,
-0.2080809623003006,
-0.05643468350172043,
0.017990678548812866,
-0.15132921934127808,
-0.006899877917021513,
-0.02973276376724243,
-0.2902207672595978,
0.1317756026983261,
-0.027170317247509956,
0.022543247789144516,
0.23140445351600647,
0.04084128513932228,
-0.15084406733512878,
-0.06090382859110832,
0.06513462215662003,
-0.041167035698890686,
-0.6186644434928894,
0.30167683959007263,
-0.05878139287233353,
-0.3465433716773987,
-0.044134099036455154,
-0.027905499562621117,
0.017873581498861313,
0.3690832853317261,
-0.6034702658653259,
0.07595385611057281,
-0.4336879849433899,
0.07875848561525345,
-0.15461991727352142,
0.19420547783374786,
0.3209497332572937,
0.1343017965555191,
-0.09562024474143982,
-0.03472580760717392,
-0.17358779907226562,
0.014821100048720837,
-0.15833094716072083,
-0.008743451908230782,
0.2583473026752472,
0.42548149824142456,
-0.014115234836935997,
0.7667752504348755,
0.1563379317522049,
-0.0408223494887352,
0.3145267367362976,
0.017723578959703445,
0.5878832936286926,
-0.35641875863075256,
-0.12585017085075378,
-0.1813509613275528,
-0.21664395928382874,
-0.14913734793663025,
0.07184366136789322,
0.2537595331668854,
-0.2575012743473053,
-0.20455652475357056,
0.07011014968156815,
-0.11129391938447952,
-0.11720453947782516,
0.15797701478004456,
-0.35165560245513916,
0.2993707060813904,
0.04676324874162674,
0.10096006840467453,
-0.2630336880683899,
-0.35495713353157043,
0.12592336535453796,
-0.05991906672716141,
0.6850695013999939,
-0.1539001315832138,
-0.18003715574741364,
0.13758260011672974,
-0.6912074685096741,
0.2251766324043274,
0.01099130418151617,
0.2751893997192383,
0.16949236392974854,
0.012461887672543526,
0.0676199346780777,
-0.32363706827163696,
0.5596727728843689,
-0.20986376702785492,
-0.01857788860797882,
0.39164870977401733,
-0.04108058288693428,
-0.31858184933662415,
0.14383792877197266,
0.08320353925228119,
0.5215531587600708,
-0.1703883558511734,
0.2730244994163513,
-0.07997258007526398,
-0.1630999892950058,
0.13640815019607544,
0.40824177861213684,
-0.2205166071653366,
-0.4579715430736542,
-0.20556490123271942,
-0.21043691039085388,
-0.22330455482006073,
0.16255363821983337,
-0.0004978545475751162,
-0.17773309350013733,
-0.16164052486419678,
-0.11082222312688828,
-0.38799282908439636,
0.24192802608013153,
-0.10167096555233002,
-0.18166868388652802,
0.15948015451431274,
-0.00702323205769062,
0.502896785736084,
0.09145395457744598,
-0.13548801839351654,
-0.046701230108737946,
0.6026397943496704,
-0.16953231394290924,
-0.16210447251796722,
-0.16363587975502014,
0.005473972763866186,
0.3667347729206085,
0.3100365102291107,
0.028797024860978127,
0.14055384695529938,
0.007456567604094744,
0.10563668608665466,
-0.5073131918907166,
0.06009868159890175,
0.13150648772716522,
-0.08067502826452255,
-0.5603204965591431,
-0.628738284111023,
0.6531299352645874,
0.382798969745636,
0.03111707977950573,
0.4319263994693756,
0.11654096841812134,
-0.16844075918197632,
0.3139214813709259,
0.2665287256240845,
0.8644785284996033,
-0.3468037545681,
0.24904178082942963,
-0.28386056423187256,
0.09723316878080368,
0.3066902160644531,
-0.21822695434093475,
0.034356456249952316,
-0.33034640550613403,
-0.3620760142803192,
0.06883735954761505,
-0.19249986112117767,
0.11415186524391174,
0.26704663038253784,
0.05115187540650368,
0.2359422892332077,
-0.09587777405977249,
-0.12192331254482269,
-0.1197623759508133,
-0.08171418309211731,
-0.13603734970092773,
-0.6008028388023376,
-0.17836259305477142,
0.1515984684228897,
-0.04680272564291954,
0.13191217184066772,
-0.11451980471611023,
0.20925329625606537,
0.1811385601758957,
-0.15071043372154236,
-0.45586276054382324,
0.027015088126063347,
-0.25615647435188293,
-0.24698171019554138,
-0.138692244887352,
-0.2268926501274109,
-0.06806604564189911,
0.04060208797454834,
0.5350574254989624,
0.49376651644706726,
-0.04535805806517601,
-0.055435314774513245,
0.14985160529613495,
0.13934580981731415,
-0.0006828019395470619,
0.10400491952896118,
0.13615263998508453,
-0.05530339479446411,
0.0626220852136612,
0.005233780946582556,
-0.3632960915565491,
-0.11646450310945511,
0.18806390464305878,
-0.16447396576404572,
0.07541131973266602,
-0.05574570968747139,
-0.25454941391944885,
0.07337789237499237,
0.2466437667608261,
-0.1198311299085617,
0.09575609862804413,
0.2751671075820923,
0.003511330345645547,
0.29702433943748474,
-0.15720242261886597,
-0.36419007182121277,
-0.02243037521839142,
0.2522277235984802,
0.18322856724262238,
-0.27862459421157837,
0.3542681336402893,
0.19727687537670135,
-0.22243435680866241,
-0.1341264694929123,
0.18423570692539215,
0.018239861354231834,
-0.451396107673645,
0.24806225299835205,
0.12629687786102295,
0.18291209638118744,
-0.11392153054475784,
0.1716470718383789,
0.020669028162956238,
-0.18631525337696075,
0.1057581678032875,
-0.16074906289577484,
-0.5908616781234741,
-0.07754463702440262,
0.1379881501197815,
0.21361316740512848,
0.48762285709381104,
-0.3452979326248169,
0.11471840739250183,
0.3632790148258209,
-0.2515029311180115,
-0.05274702236056328,
0.07163809984922409,
0.1376984566450119,
0.08145908266305923,
0.2629787027835846,
0.03636189550161362,
-0.18999668955802917,
-0.006793883163481951,
0.04136382043361664,
0.005094657652080059,
-0.25640201568603516,
-0.06515957415103912,
0.1668858379125595,
-0.15672503411769867,
-0.08775238692760468,
0.1447249948978424,
-0.19975119829177856,
-0.23089599609375,
-0.41381320357322693,
0.16140390932559967,
0.3609612286090851,
-0.10768506675958633,
-0.22224417328834534,
0.28471946716308594,
0.12515544891357422,
-0.35747775435447693,
0.2958548665046692,
0.05763402581214905,
0.1430906504392624,
-0.14669370651245117,
0.1799290031194687,
0.18287424743175507,
-0.07039417326450348,
0.06894762068986893,
-0.17544515430927277,
0.21208474040031433,
0.05600515007972717,
0.1681276112794876,
-0.22200225293636322,
0.05520113185048103,
0.26481056213378906,
0.33140793442726135,
0.19100481271743774,
-0.0749560073018074,
0.07670250535011292,
0.2916676104068756,
0.17311103641986847,
-0.26039472222328186,
-0.1648770272731781,
0.0726812332868576,
-0.08233819901943207,
0.11578017473220825,
0.27867838740348816,
0.23200033605098724,
0.10149218887090683,
-0.10814899206161499,
0.2868593633174896,
0.1727779358625412,
-0.4057708978652954,
0.08975965529680252,
0.25126776099205017,
0.12781718373298645,
0.1547182947397232,
0.32632532715797424,
0.3106880187988281,
0.18802961707115173,
0.3593754172325134,
0.29826033115386963,
0.5835421681404114,
0.33759045600891113,
0.08546395599842072,
-0.24754290282726288,
-0.6166614294052124,
0.29195472598075867,
0.012683534994721413,
0.2537062466144562,
0.3417038321495056,
0.0011656497372314334,
0.22556433081626892,
0.04103029891848564,
-0.2557654082775116,
-0.24898645281791687,
0.1445867419242859,
-0.15774421393871307,
-0.17408180236816406,
0.35420817136764526,
0.03498850017786026,
0.35175517201423645,
0.1345754861831665,
-0.06842799484729767,
-0.0899406149983406,
0.32068243622779846,
0.04301091656088829,
0.17034882307052612,
0.10470347851514816,
0.22470703721046448,
0.007458759006112814,
0.3076193332672119,
-0.1570519357919693,
0.19433295726776123,
-0.0012038693530485034,
0.0391932837665081,
-0.07298466563224792,
0.590671181678772,
0.31275612115859985,
0.39285486936569214,
-0.1074758917093277,
0.18590512871742249,
-0.015037477016448975,
-0.019771071150898933,
-0.03287293389439583,
0.2742159366607666,
-0.08664108067750931,
-0.13490508496761322,
0.1934506893157959,
0.0645885020494461,
-0.09403575956821442,
0.18811286985874176,
-0.15717627108097076,
0.3570965528488159,
-0.10758525878190994,
0.3226364850997925,
0.09698469936847687,
-0.371799111366272,
-0.2190295159816742,
0.18612924218177795,
-0.18532374501228333,
0.12986959517002106,
0.7191513180732727,
-0.38297605514526367,
-0.06614215672016144,
-0.11639714241027832,
0.06970573961734772,
0.22535832226276398,
0.5203014016151428,
0.38598647713661194,
0.06752925366163254,
-0.17044579982757568,
0.07980524003505707,
-0.3966832160949707,
-0.11737930029630661,
-0.10928947478532791,
0.2891940176486969,
-0.15930098295211792,
-0.09396246075630188,
0.17941898107528687,
0.29018929600715637,
-0.0023136038798838854,
-0.31462645530700684,
0.04820308834314346,
0.43114596605300903,
-0.26622679829597473,
-0.20243270695209503,
-0.19070832431316376,
0.05741351842880249,
0.023413626477122307,
-0.5342943072319031,
0.1379932314157486,
0.13526210188865662,
-0.07911601662635803,
0.07260986417531967,
0.10563870519399643,
0.17288389801979065,
-0.009929646737873554,
0.4256457984447479,
0.07138729840517044,
0.16450652480125427,
-0.13748155534267426,
-0.010516622103750706,
-0.3001011312007904,
-0.16406889259815216,
-0.24274207651615143,
0.19304965436458588,
0.053963545709848404,
-0.03718496486544609,
-0.4960954785346985,
-0.26997077465057373,
-0.1496705561876297,
-0.24138052761554718,
-0.16113340854644775,
0.10257059335708618,
-0.34335389733314514,
-0.1769258677959442,
-0.1870298981666565,
-0.04305052012205124,
0.19830194115638733,
0.21290740370750427,
-0.018253862857818604,
0.1253942847251892,
-0.3085353672504425,
-0.3872484564781189,
0.5898023843765259,
-0.15653644502162933,
-0.36828145384788513,
-0.21121704578399658,
0.11108947545289993,
0.09121110290288925,
-0.22580276429653168,
-0.3942166864871979,
0.2338772863149643,
0.2611790597438812,
-0.12217815965414047,
0.12152596563100815,
0.27105751633644104,
-0.37831705808639526,
0.0823223739862442,
-0.2273857742547989,
0.6979740858078003,
-0.22542022168636322,
-0.017110927030444145,
-0.4264147877693176,
-0.2989899516105652
] |
https://github.com/huggingface/datasets/issues/1775 | Efficient ways to iterate the dataset | It seems that selecting a subset of colums directly from the dataset, i.e., dataset["column"], is slow. | For a large dataset that does not fits the memory, how can I select only a subset of features from each example?
If I iterate over the dataset and then select the subset of features one by one, the resulted memory usage will be huge. Any ways to solve this?
Thanks | 16 | Efficient ways to iterate the dataset
For a large dataset that does not fits the memory, how can I select only a subset of features from each example?
If I iterate over the dataset and then select the subset of features one by one, the resulted memory usage will be huge. Any ways to solve this?
Thanks
It seems that selecting a subset of colums directly from the dataset, i.e., dataset["column"], is slow. | [
-0.2726210355758667,
-0.3842424154281616,
-0.09381949156522751,
0.3328416347503662,
-0.06488361954689026,
0.06871729344129562,
-0.08692619204521179,
0.2765877842903137,
0.15681496262550354,
0.1853521466255188,
0.10415738075971603,
0.09687274694442749,
0.07577352225780487,
0.17130164802074432,
0.05944925174117088,
0.024409106001257896,
-0.11798297613859177,
0.23680579662322998,
-0.19384321570396423,
-0.094364695250988,
-0.3235395550727844,
-0.3371298015117645,
-0.34141045808792114,
-0.4139212965965271,
-0.04482139274477959,
-0.27635031938552856,
-0.0030553648248314857,
-0.07011625170707703,
-0.10049588233232498,
-0.20227350294589996,
0.06490988284349442,
-0.10592038184404373,
0.1723705381155014,
0.13137786090373993,
-0.00011107684258604422,
-0.3096604347229004,
-0.0061721885576844215,
-0.016797225922346115,
-0.2181180864572525,
0.21279014647006989,
-0.43240103125572205,
-0.1536877304315567,
-0.20967303216457367,
-0.45742008090019226,
0.07893665134906769,
-0.1935446411371231,
0.04185185581445694,
-0.3434138894081116,
-0.39452677965164185,
0.001965402625501156,
0.17221884429454803,
0.36327439546585083,
-0.428151935338974,
-0.21938206255435944,
0.16364756226539612,
0.202066570520401,
-0.18606458604335785,
-0.16880977153778076,
0.3972514867782593,
-0.03171781450510025,
0.1105102002620697,
0.1986815333366394,
0.0027409016620367765,
0.06433340907096863,
0.4581540524959564,
-0.09333717077970505,
-0.2695295810699463,
-0.09125279635190964,
0.29071885347366333,
0.3570752739906311,
0.7055131196975708,
0.014239626005291939,
-0.020416177809238434,
-0.25482890009880066,
-0.11469123512506485,
-0.4821659028530121,
-0.05547218397259712,
0.20977583527565002,
-0.18124070763587952,
0.1794070601463318,
-0.3754855990409851,
-0.282170832157135,
-0.12141138315200806,
0.1009942814707756,
0.22518087923526764,
-0.1510586440563202,
0.07024750858545303,
0.009548278525471687,
0.5192239284515381,
-0.22286075353622437,
0.2806360423564911,
-0.18835203349590302,
0.04239572584629059,
0.12819424271583557,
-0.5794631242752075,
-0.3097939193248749,
-0.11188352853059769,
-0.06249174848198891,
0.34527119994163513,
0.10768451541662216,
0.08151239901781082,
0.09048424661159515,
0.23070396482944489,
0.06436444818973541,
0.3840838074684143,
-0.13383039832115173,
-0.1883256584405899,
0.13455791771411896,
0.14564470946788788,
-0.1606632024049759,
-0.0020946613512933254,
-0.09078087657690048,
-0.21826565265655518,
0.09379260987043381,
0.20853997766971588,
-0.4199844002723694,
-0.15693292021751404,
-0.129002645611763,
-0.1494205743074417,
-0.12614363431930542,
-0.13786205649375916,
-0.01625029556453228,
-0.02464432828128338,
0.42025431990623474,
0.061945948749780655,
-0.18893077969551086,
-0.426506370306015,
-0.011111186817288399,
-0.2233896404504776,
-0.2640571594238281,
-0.29864928126335144,
0.2844233512878418,
-0.04987165704369545,
0.018967285752296448,
0.06520778685808182,
0.19942238926887512,
0.1540556102991104,
-0.1386212259531021,
-0.15471749007701874,
-0.13923883438110352,
0.0547332838177681,
-0.3360624611377716,
0.26835259795188904,
-0.00828273594379425,
-0.13584406673908234,
-0.007702350150793791,
-0.05977228656411171,
0.3361252248287201,
-0.3245052695274353,
0.21917030215263367,
0.1463291347026825,
-0.5682114958763123,
0.18341250717639923,
0.07107274979352951,
0.0017379531636834145,
-0.06673195213079453,
-0.3420161306858063,
0.42012330889701843,
-0.09898922592401505,
0.4257790446281433,
-0.0995340570807457,
0.07064765691757202,
-0.307453453540802,
-0.1526208072900772,
0.37237468361854553,
0.4698696732521057,
-0.32939937710762024,
0.051087215542793274,
0.12026476860046387,
0.13932004570960999,
0.38564419746398926,
0.41930195689201355,
-0.22039581835269928,
0.15258441865444183,
-0.12243953347206116,
0.09594659507274628,
0.1902547925710678,
0.18200372159481049,
-0.5025991797447205,
0.34160804748535156,
0.10806780308485031,
0.07228930294513702,
0.25043627619743347,
0.5023418664932251,
0.07303500920534134,
0.06381159275770187,
-0.12981024384498596,
0.3935357630252838,
-0.27757957577705383,
0.1868896484375,
-0.003672401187941432,
-0.34795212745666504,
0.21955841779708862,
0.03967008739709854,
0.2890779674053192,
0.24120959639549255,
-0.008328652009367943,
0.04432738199830055,
0.28573036193847656,
-0.3043045103549957,
-0.15061131119728088,
0.13342320919036865,
0.5146899819374084,
-0.003933069296181202,
-0.04092675447463989,
-0.3039369285106659,
-0.37445586919784546,
0.22730371356010437,
0.4574953317642212,
-0.5265101790428162,
0.3239094913005829,
-0.13402897119522095,
0.10735880583524704,
0.018804792314767838,
0.17766310274600983,
0.14124831557273865,
0.017536157742142677,
-0.044485729187726974,
0.294791042804718,
-0.49134451150894165,
-0.23103606700897217,
0.09060023725032806,
-0.3048672080039978,
-0.10073430091142654,
-0.29959192872047424,
-0.016309846192598343,
0.5265928506851196,
0.0019101542420685291,
0.21377623081207275,
-0.028679830953478813,
-0.0328831747174263,
-0.2907179296016693,
0.1498335897922516,
0.14835037291049957,
0.377187579870224,
-0.06583156436681747,
0.11691240221261978,
0.35292908549308777,
0.08801840990781784,
-0.17266979813575745,
0.047460250556468964,
-0.325095534324646,
0.21334028244018555,
0.03103538043797016,
-0.21053911745548248,
0.15715566277503967,
0.09874721616506577,
0.5199264287948608,
0.2963036894798279,
-0.003634974593296647,
0.027997104451060295,
-0.030929110944271088,
0.276496559381485,
0.07144258916378021,
0.19366669654846191,
0.17368584871292114,
0.13501068949699402,
0.35304901003837585,
-0.6447685360908508,
0.04549751430749893,
0.19942592084407806,
0.0886545404791832,
-0.0918918251991272,
0.025197459384799004,
-0.12207861244678497,
0.09395743906497955,
0.1217484250664711,
-0.35378068685531616,
-0.029660793021321297,
0.087793730199337,
0.03548156097531319,
-0.13502508401870728,
0.08790667355060577,
0.1048283651471138,
0.12757311761379242,
0.2802191972732544,
0.30643078684806824,
-0.3647536039352417,
-0.04244813695549965,
-0.2706398367881775,
-0.10032761096954346,
0.06712403893470764,
0.04948927462100983,
0.11458415538072586,
0.0018406892195343971,
0.07246983796358109,
-0.3552096486091614,
-0.11684760451316833,
0.20576053857803345,
0.33131760358810425,
0.23934179544448853,
-0.11047521233558655,
-0.11246518790721893,
0.5158168077468872,
-0.058107469230890274,
-0.1062866747379303,
-0.1323307901620865,
0.506199061870575,
-0.012050595134496689,
0.016813986003398895,
0.11033758521080017,
-0.06034254655241966,
-0.06999963521957397,
0.00458126375451684,
0.3546582758426666,
0.13781876862049103,
0.3736889064311981,
0.12142375111579895,
-0.16788321733474731,
-0.4728029668331146,
0.19068916141986847,
0.12772180140018463,
0.21625250577926636,
0.08356904238462448,
-0.1990765482187271,
0.12865033745765686,
-0.3519139289855957,
0.10471846908330917,
-0.167206272482872,
0.1980486661195755,
-0.02788790874183178,
0.08539994060993195,
-0.034340985119342804,
-0.01968006044626236,
0.3902204930782318,
-0.32086217403411865,
-0.22281670570373535,
-0.2923350930213928,
0.3292641043663025,
0.024635324254631996,
0.24423335492610931,
-0.011665163561701775,
0.05370385944843292,
-0.26100799441337585,
-0.06643900275230408,
0.023643378168344498,
0.058667439967393875,
-0.16736653447151184,
0.2899853587150574,
-0.07205785810947418,
-0.19385011494159698,
-0.07575713098049164,
0.06667138636112213,
-0.028664184734225273,
0.5141796469688416,
-0.40759140253067017,
0.06451680511236191,
-0.5274327397346497,
-0.04677121713757515,
-0.18022353947162628,
0.03471892699599266,
-0.05636540800333023,
-0.20879250764846802,
-0.03641858696937561,
0.058329027146101,
-0.02738635428249836,
0.20153768360614777,
0.17719942331314087,
0.0547274649143219,
0.368169903755188,
0.17765484750270844,
0.22605308890342712,
0.29137882590293884,
0.3049386441707611,
0.2829528748989105,
0.23410837352275848,
-0.09187332540750504,
-0.13262854516506195,
0.0755496621131897,
-0.0428374782204628,
0.22393827140331268,
-0.11861814558506012,
-0.24476398527622223,
0.2743476629257202,
-0.1057320237159729,
-0.22450578212738037,
-0.00413748761638999,
-0.06180534139275551,
0.08590076118707657,
-0.1929444521665573,
0.25236594676971436,
0.010164485312998295,
0.26695165038108826,
0.15922759473323822,
-0.057401496917009354,
-0.33614617586135864,
0.04132135212421417,
0.07890164107084274,
-0.3824482858181,
0.3009423315525055,
0.00979310367256403,
-0.6226493120193481,
-0.14968952536582947,
-0.31500566005706787,
-0.004921965301036835,
-0.1470126062631607,
0.3232966959476471,
0.14056263864040375,
-0.3313436210155487,
0.03582694008946419,
0.27140289545059204,
0.5188841819763184,
0.27716004848480225,
-0.19719192385673523,
-0.09966372698545456,
-0.6063251495361328,
-0.004659850616008043,
0.19855237007141113,
-0.338318407535553,
0.4118953049182892,
-0.08648556470870972,
0.12713834643363953,
-0.13116148114204407,
-0.3343246877193451,
0.34923049807548523,
0.5830069780349731,
-0.18785548210144043,
-0.1890677958726883,
0.22679175436496735,
-0.23298604786396027,
-0.06034974753856659,
0.23889631032943726,
0.2808483839035034,
0.052478160709142685,
0.26561811566352844,
-0.05321602523326874,
-0.39002054929733276,
-0.06995583325624466,
0.41866275668144226,
0.15853260457515717,
0.09488443285226822,
-0.09744361788034439,
0.35906803607940674,
0.04239088296890259,
-0.008367592468857765,
0.4233681261539459,
0.5041762590408325,
0.2458581030368805,
-0.4154844582080841,
0.04524499922990799,
-0.10063861310482025,
0.7665138840675354,
0.26952722668647766,
0.01867831125855446,
0.21867386996746063,
-0.2198277711868286,
0.17893747985363007,
-0.3878571093082428,
-0.13028503954410553,
0.02503282018005848,
-0.15455257892608643,
-0.2564931809902191,
-0.38098669052124023,
0.4144183397293091,
0.01534058153629303,
-0.002216984750702977,
0.29920923709869385,
-0.04441158100962639,
0.10379307717084885,
0.002570624463260174,
0.24790523946285248,
0.7095937728881836,
-0.1336071491241455,
-0.15034566819667816,
-0.1070072278380394,
0.3820204734802246,
0.21217691898345947,
-0.0353323295712471,
0.30615559220314026,
-0.18318679928779602,
-0.8363988399505615,
0.044694963842630386,
-0.11120467633008957,
-0.018226265907287598,
0.23773671686649323,
0.19377018511295319,
0.45454689860343933,
-0.07200349867343903,
0.10756915807723999,
0.06592006236314774,
-0.1468537598848343,
-0.0741964727640152,
-0.21595783531665802,
0.048766233026981354,
0.07831554859876633,
0.18018227815628052,
-0.02308857999742031,
0.09461162239313126,
0.15204980969429016,
0.14820145070552826,
-0.014676357619464397,
-0.22058989107608795,
-0.04446784779429436,
-0.38081398606300354,
0.04302529990673065,
0.024388756603002548,
-0.31184425950050354,
0.059127327054739,
-0.024910319596529007,
0.0035384667571634054,
0.27774500846862793,
0.10991178452968597,
0.0352247916162014,
0.25037240982055664,
0.10686863213777542,
-0.12626205384731293,
0.07853411883115768,
-0.045950569212436676,
0.0317995548248291,
-0.1842188686132431,
0.11450076103210449,
-0.004938358906656504,
0.05290309339761734,
-0.09107162803411484,
-0.08224853128194809,
0.21729277074337006,
0.05485837161540985,
-0.40144655108451843,
0.11690224707126617,
-0.12054777890443802,
-0.11103728413581848,
0.1151476800441742,
0.08136611431837082,
-0.06540489196777344,
0.4636640250682831,
0.09197917580604553,
-0.14152774214744568,
-0.12867365777492523,
-0.14422041177749634,
0.2252928763628006,
0.0965716764330864,
0.37563925981521606,
0.18701286613941193,
-0.2087513655424118,
-0.2521997392177582,
0.16316144168376923,
0.30878257751464844,
0.17142105102539062,
-0.022754980251193047,
-0.332564115524292,
0.13360747694969177,
-0.018455857411026955,
0.16590619087219238,
0.062169771641492844,
-0.20948900282382965,
-0.23502019047737122,
-0.0221910011023283,
-0.03075091913342476,
0.34044238924980164,
0.23040072619915009,
0.2985273003578186,
-0.23097996413707733,
-0.34178537130355835,
-0.48829296231269836,
0.4365469515323639,
-0.23480968177318573,
-0.05076265335083008,
-0.31533461809158325,
0.26962876319885254,
0.1566268354654312,
0.3287501633167267,
-0.19833996891975403,
-0.038374654948711395,
0.1348450630903244,
0.17537111043930054,
0.04001026973128319,
-0.19483716785907745,
-0.08217894285917282,
0.10318867862224579,
0.026835376396775246,
-0.22454383969306946,
0.033773962408304214,
-0.2329854965209961,
-0.3304450213909149,
-0.46210578083992004,
0.24279485642910004,
-0.029616259038448334,
0.14972394704818726,
-0.028251901268959045,
0.2559698820114136,
-0.48354780673980713,
-0.23180732131004333,
0.37301623821258545,
0.10596270114183426,
0.1376318335533142,
0.13280798494815826,
0.23427541553974152,
0.3057882487773895,
-0.15166719257831573,
-0.15006759762763977,
0.012536562979221344,
0.0622963085770607,
-0.19018863141536713,
-0.1272411197423935,
0.17842717468738556,
0.07797175645828247,
0.32251226902008057,
-0.13249005377292633,
0.6161225438117981,
0.20120620727539062,
0.17323103547096252,
0.32716500759124756,
0.2236049920320511,
-0.1429850161075592,
-0.44846805930137634,
0.01364118978381157,
-0.2504254877567291,
0.18734361231327057,
0.5648921728134155,
0.2223633974790573,
0.27216997742652893,
-0.13084030151367188,
-0.3672899603843689,
0.10985057801008224,
-0.05405464023351669,
0.023271972313523293,
0.24955694377422333,
0.21166928112506866,
-0.459695041179657,
0.017250830307602882,
0.5931336879730225,
0.47601649165153503,
0.5107029676437378,
-0.08483072370290756,
0.32434818148612976,
0.22218236327171326,
0.13531875610351562,
-0.12162447720766068,
-0.6607636213302612,
-0.08439375460147858,
0.40373238921165466,
-0.03185764327645302,
0.015597614459693432,
-0.18821603059768677,
-0.42648032307624817,
0.021230455487966537,
-0.10185299813747406,
-0.2572142481803894,
-0.0009440919384360313,
0.07716422528028488,
-0.12220235168933868,
-0.0241952333599329,
-0.2490435093641281,
-0.14891278743743896,
0.20847047865390778,
0.018961990252137184,
-0.4959999918937683,
0.3610437214374542,
0.006726802792400122,
0.3690362572669983,
-0.2016272246837616,
0.551786482334137,
-0.010425709187984467,
0.22097690403461456,
-0.39736443758010864,
0.04905219003558159,
-0.2184409201145172,
0.08520017564296722,
-0.04503755271434784,
0.09113235771656036,
-0.2329304814338684,
0.11487981677055359,
-0.015088520012795925,
-0.02660871483385563,
-0.17860569059848785,
-0.2313801497220993,
-0.1345183402299881,
-0.2221691757440567,
-0.23199455440044403,
0.17451834678649902,
0.33622023463249207,
-0.021949170157313347,
0.018803009763360023,
0.1220083087682724,
0.06443266570568085,
-0.23888473212718964,
-0.6822425127029419,
-0.21424166858196259,
0.17446932196617126,
-0.2910797894001007,
0.15593445301055908,
0.02211061306297779,
0.06554927676916122,
-0.2823660671710968,
0.42073774337768555,
-0.466041624546051,
0.19194282591342926,
0.515131950378418,
0.09268278628587723,
-0.5289087891578674,
0.4705025851726532,
0.016160329803824425,
0.030973240733146667,
-0.29065024852752686,
-0.23197326064109802,
-0.08498773723840714,
-0.06963974982500076,
-0.4132067561149597,
-0.13491584360599518,
0.5719473361968994,
0.46829378604888916,
0.009673571214079857,
0.12520764768123627,
-0.07981504499912262,
0.0434405617415905,
-0.05456139147281647,
0.4297473430633545,
-0.24003362655639648,
-0.41531801223754883,
0.06120873987674713,
0.21969205141067505,
0.04983477294445038,
-0.3647940754890442,
0.40844351053237915,
-0.21422216296195984,
0.028203001245856285,
-0.13760891556739807,
0.06829293817281723,
0.2423672378063202,
0.10121157020330429,
0.20611807703971863,
-0.11860339343547821,
-0.05028536915779114,
0.06608591973781586,
-0.04802292585372925,
0.032218120992183685,
-0.07951004058122635,
0.007277226075530052,
0.1419924795627594,
-0.037135593593120575,
0.0833231508731842,
-0.21905413269996643,
0.39156925678253174,
0.08811038732528687,
0.14828182756900787,
-0.06998565047979355,
-0.1448041796684265,
0.07046762853860855,
0.0794522762298584,
-0.14188967645168304,
0.3347405791282654,
0.2606513202190399,
0.10037535429000854,
-0.2480083554983139,
-0.04574856162071228,
-0.03007199428975582,
0.012101753614842892,
0.19462624192237854,
0.07481330633163452,
-0.37343448400497437,
-0.2700417637825012,
0.16322287917137146,
0.29705509543418884,
-0.016514798626303673,
-0.11672019958496094,
-0.08522666990756989,
0.31822073459625244,
-0.2520100176334381,
-0.012192373163998127,
0.20005299150943756,
0.01267236564308405,
-0.2384377419948578,
-0.01953599974513054,
0.423286497592926,
-0.3153410851955414,
-0.2699565589427948,
-0.23088620603084564,
-0.3392120897769928
] |
https://github.com/huggingface/datasets/issues/1774 | is it possible to make slice to be more compatible like python list and numpy? | Hi ! Thanks for reporting.
I am working on changes in the way data are sliced from arrow. I can probably fix your issue with the changes I'm doing.
If you have some code to reproduce the issue it would be nice so I can make sure that this case will be supported :)
I'll make a PR in a few days | Hi,
see below error:
```
AssertionError: Requested slice [:10000000000000000] incompatible with 20 examples.
``` | 62 | is it possible to make slice to be more compatible like python list and numpy?
Hi,
see below error:
```
AssertionError: Requested slice [:10000000000000000] incompatible with 20 examples.
```
Hi ! Thanks for reporting.
I am working on changes in the way data are sliced from arrow. I can probably fix your issue with the changes I'm doing.
If you have some code to reproduce the issue it would be nice so I can make sure that this case will be supported :)
I'll make a PR in a few days | [
0.004519388545304537,
-0.06874530762434006,
-0.24153326451778412,
0.05697120353579521,
0.4289461672306061,
-0.30124402046203613,
0.12670300900936127,
0.37132689356803894,
-0.13171705603599548,
0.43240442872047424,
-0.014954859390854836,
0.7657302618026733,
-0.07993333041667938,
0.2857098877429962,
-0.3763241767883301,
-0.48801541328430176,
-0.021064208820462227,
0.10648196935653687,
0.25148338079452515,
0.12021005153656006,
0.055242475122213364,
0.09966672211885452,
-0.3396667540073395,
0.11706723272800446,
-0.18887710571289062,
-0.17909343540668488,
0.24903540313243866,
-0.02157956175506115,
-0.005637123249471188,
-0.2691524922847748,
-0.1261414736509323,
-0.4162091314792633,
0.03541605919599533,
0.19070567190647125,
-0.00010930775169981644,
0.11382915079593658,
0.5290839672088623,
0.04269624873995781,
-0.207660973072052,
-0.0507461316883564,
0.28704771399497986,
-0.487957626581192,
0.24213014543056488,
-0.24164490401744843,
0.04442988336086273,
0.05549800395965576,
-0.3735237121582031,
0.010754105634987354,
0.46776819229125977,
-0.026465626433491707,
0.25452589988708496,
0.006299011874943972,
0.3490648865699768,
0.04596405103802681,
0.07098010927438736,
0.3102607727050781,
-0.20729517936706543,
-0.1372472047805786,
0.5058742165565491,
0.402947336435318,
0.2683986723423004,
0.10324286669492722,
-0.07793905586004257,
0.040544167160987854,
-0.42705559730529785,
0.004429149441421032,
-0.06847991049289703,
-0.3739694356918335,
-0.11772757768630981,
0.5738006830215454,
0.17283527553081512,
0.19284649193286896,
-0.21517623960971832,
-0.010672400705516338,
-0.3015369176864624,
-0.2650509178638458,
-0.15549509227275848,
0.10122895240783691,
-0.09724100679159164,
0.1049899086356163,
0.06905709952116013,
0.005789991933852434,
-0.1316060870885849,
0.30300799012184143,
0.2846270799636841,
0.4896725118160248,
-0.03552772477269173,
0.10823549330234528,
0.16356465220451355,
-0.3503348231315613,
0.22685794532299042,
0.12437199801206589,
-0.0745617002248764,
-0.0966620072722435,
-0.15927749872207642,
-0.005347666796296835,
-0.5801075100898743,
0.16886582970619202,
0.14843423664569855,
-0.006306253373622894,
0.32387274503707886,
0.42338019609451294,
-0.15026283264160156,
0.1502196490764618,
0.23468665778636932,
-0.06387835741043091,
-0.08610913157463074,
0.00487424386665225,
0.1310964822769165,
-0.13692300021648407,
0.10436306148767471,
-0.028942426666617393,
0.26197102665901184,
-0.32017141580581665,
-0.23995426297187805,
0.0034458269365131855,
-0.025891900062561035,
-0.07905927300453186,
-0.07336791604757309,
-0.26546600461006165,
-0.32960647344589233,
-0.09694106876850128,
0.3133116066455841,
0.12846271693706512,
-0.021201053634285927,
0.09653003513813019,
-0.1779136210680008,
0.2430858612060547,
-0.1994258165359497,
-0.12514297664165497,
0.008212312124669552,
0.03852283954620361,
0.16896691918373108,
-0.483379602432251,
-0.03313746675848961,
-0.24857409298419952,
-0.005878192838281393,
-0.004819660913199186,
0.3314138352870941,
0.08670369535684586,
-0.14928416907787323,
-0.014887041412293911,
0.062819704413414,
0.019861262291669846,
0.07478560507297516,
-0.21424464881420135,
0.173936128616333,
0.06721003353595734,
-0.0024390302132815123,
0.40904921293258667,
-0.5157787203788757,
-0.16852529346942902,
-0.14786434173583984,
0.13076552748680115,
0.44577470421791077,
0.2731142044067383,
0.22074398398399353,
-0.15394648909568787,
0.005731977056711912,
-0.32267504930496216,
-0.08110601454973221,
-0.18135160207748413,
0.24512875080108643,
-0.3095429241657257,
0.22090016305446625,
-0.3931463360786438,
-0.34906184673309326,
0.08533737063407898,
-0.41806694865226746,
0.22753450274467468,
0.2932496666908264,
0.7705190181732178,
-0.18120428919792175,
-0.2930043935775757,
-0.030712377279996872,
0.3370468020439148,
0.41824761033058167,
0.10503248125314713,
-0.24538496136665344,
0.2037249356508255,
0.05093930661678314,
-0.1719103753566742,
-0.3283393383026123,
0.2673071622848511,
0.1533447653055191,
-0.20945675671100616,
-0.020972274243831635,
0.16960275173187256,
0.04616250842809677,
-0.035162292420864105,
-0.25009629130363464,
-0.40866875648498535,
0.28986063599586487,
-0.08881495893001556,
-0.06981376558542252,
-0.14063723385334015,
0.20504841208457947,
-0.37688151001930237,
0.26097533106803894,
-0.0919981449842453,
0.024756278842687607,
0.011076520197093487,
0.4300154149532318,
-0.4044121503829956,
0.10269016772508621,
-0.09497727453708649,
0.16022440791130066,
-0.19233529269695282,
-0.18116994202136993,
-0.04226134344935417,
-0.17419017851352692,
0.014170925132930279,
0.11395493149757385,
0.2723790109157562,
0.21183665096759796,
0.17267750203609467,
0.14381815493106842,
-0.42108073830604553,
0.3586546778678894,
-0.1922205686569214,
0.03350839763879776,
-0.03311227634549141,
-0.19498220086097717,
0.05276474729180336,
-0.16439799964427948,
0.3395622968673706,
-0.3022046387195587,
-0.3105171024799347,
-0.11811554431915283,
0.16783402860164642,
0.23984447121620178,
-0.189041405916214,
-0.23283249139785767,
0.2748934030532837,
0.10147614032030106,
-0.1820400208234787,
-0.2686278820037842,
0.05321648344397545,
0.16151706874370575,
-0.4648517668247223,
0.23352861404418945,
0.22809527814388275,
0.01375169213861227,
-0.021645503118634224,
0.008041393011808395,
0.2652311325073242,
-0.5424755811691284,
0.36303409934043884,
0.09047190845012665,
0.2836490571498871,
0.19754284620285034,
0.1266445368528366,
0.06523634493350983,
-0.0316096693277359,
0.3338300585746765,
0.12314687669277191,
-0.16313283145427704,
-0.19904567301273346,
-0.1483727991580963,
0.012621553614735603,
-0.0037903354968875647,
-0.07543256133794785,
0.2589482069015503,
0.28214597702026367,
0.039743658155202866,
0.11764393746852875,
-0.015470691956579685,
-0.42510780692100525,
0.13605839014053345,
0.23541995882987976,
-0.08374474197626114,
-0.15847380459308624,
0.23018141090869904,
-0.33596327900886536,
0.2332281917333603,
0.4529041051864624,
0.028897244483232498,
-0.1256340593099594,
0.072597436606884,
-0.004652988165616989,
0.05299486592411995,
0.22063498198986053,
-0.2965286672115326,
0.016503261402249336,
-0.0617348849773407,
0.1354551762342453,
-0.3268112242221832,
0.23842152953147888,
0.04654699191451073,
-0.8412551283836365,
-0.19151517748832703,
-0.336205393075943,
0.067520871758461,
0.03706179931759834,
-0.2109219878911972,
0.30763906240463257,
0.13308393955230713,
0.10196331888437271,
-0.027136415243148804,
0.32444998621940613,
-0.10163941979408264,
-0.17115819454193115,
-0.30021238327026367,
0.16423220932483673,
0.10312660783529282,
0.3488459587097168,
-0.08328816294670105,
0.1877925843000412,
0.022753912955522537,
0.029558107256889343,
-0.4092307686805725,
0.00015421256830450147,
-0.03464783728122711,
0.5563635230064392,
0.10881608724594116,
-0.0025664768181741238,
-0.17182837426662445,
-0.31615227460861206,
0.1827591359615326,
-0.41255128383636475,
-0.05620652064681053,
0.3178078234195709,
0.036871057003736496,
-0.2372615933418274,
0.010753018781542778,
0.016001472249627113,
-0.6098568439483643,
-0.3351958990097046,
0.3220387399196625,
0.23634716868400574,
0.15858711302280426,
-0.12598073482513428,
0.19177304208278656,
-0.15303319692611694,
0.27359142899513245,
-0.07464080303907394,
-0.03181038051843643,
0.06879004836082458,
0.12471943348646164,
-0.1566833108663559,
-0.19345682859420776,
-0.1348920315504074,
-0.1770819127559662,
-0.11678365617990494,
-0.07656032592058182,
0.04151627793908119,
0.19299450516700745,
-0.30297818779945374,
-0.050510160624980927,
-0.1226356029510498,
0.13210174441337585,
0.39674797654151917,
0.15604019165039062,
-0.10275231301784515,
-0.05668818578124046,
-0.18042118847370148,
0.10745826363563538,
0.02325529232621193,
-0.1332280933856964,
0.48117169737815857,
0.34658145904541016,
0.1279282420873642,
0.36884018778800964,
0.2477860450744629,
-0.11961714178323746,
0.2847771942615509,
0.27971360087394714,
0.03909121826291084,
-0.10420866310596466,
-0.27761149406433105,
0.2276645004749298,
-0.003757268190383911,
-0.22757503390312195,
0.012245766818523407,
0.014105081558227539,
0.04185992479324341,
0.03771995007991791,
-0.2182120531797409,
-0.4395800828933716,
-0.17612099647521973,
0.21338479220867157,
0.09213311225175858,
-0.04866497963666916,
-0.110105499625206,
-0.1205696165561676,
-0.27221164107322693,
-0.22614596784114838,
0.1058274433016777,
-0.12370382249355316,
0.4476037323474884,
-0.2446349561214447,
-0.3568991720676422,
-0.545268714427948,
0.04417047277092934,
0.5647822022438049,
0.3321605622768402,
0.24900047481060028,
-0.027846356853842735,
-0.18146881461143494,
0.05980450287461281,
0.05941750481724739,
0.6105978488922119,
-0.20745472609996796,
-0.3850252032279968,
-0.10524824261665344,
0.09172728657722473,
-0.15676985681056976,
0.2288677841424942,
-0.1590215414762497,
0.36204931139945984,
0.27989745140075684,
-0.1927834004163742,
-0.08452372252941132,
0.07354267686605453,
0.2832461893558502,
0.25852084159851074,
-0.05070963501930237,
-0.045247968286275864,
0.22437536716461182,
0.2511664927005768,
-0.191172257065773,
-0.06400205940008163,
-0.08683662861585617,
0.0999157503247261,
-0.11302325129508972,
-0.23518423736095428,
-0.444938987493515,
-0.48312073945999146,
-0.14763344824314117,
-0.2586730420589447,
0.38864007592201233,
-0.2742812931537628,
-0.01847318932414055,
-0.32520684599876404,
0.28516441583633423,
0.21689806878566742,
0.25995081663131714,
-0.1063731387257576,
0.1940312534570694,
-0.2688566744327545,
0.07684467732906342,
0.258160799741745,
0.08476301282644272,
0.04057125747203827,
0.13072948157787323,
0.04827524721622467,
0.15610459446907043,
0.11980965733528137,
-0.5726234316825867,
-0.03145302087068558,
-0.11100710183382034,
-0.21290971338748932,
0.36976900696754456,
0.40430179238319397,
0.30055728554725647,
-0.032587844878435135,
0.44407132267951965,
-0.19861361384391785,
0.07895445078611374,
0.19986440241336823,
0.4521448314189911,
0.9886346459388733,
0.10133037716150284,
-0.153008371591568,
-0.015924537554383278,
-0.05972016230225563,
0.4266941547393799,
0.10081949084997177,
0.16639763116836548,
-0.39951711893081665,
-0.1502481997013092,
-0.03193889930844307,
-0.2249174267053604,
-0.11852649599313736,
0.05612906441092491,
-0.31102943420410156,
-0.05639655143022537,
-0.5337848663330078,
-0.040396831929683685,
-0.25722649693489075,
0.0648103803396225,
0.07965029776096344,
-0.19687636196613312,
-0.35031360387802124,
0.1315545290708542,
-0.15240833163261414,
-0.3069133162498474,
-0.0183408260345459,
-0.3018190264701843,
-0.20964720845222473,
-0.256168931722641,
-0.12400148808956146,
0.08773625642061234,
-0.30598926544189453,
0.41809967160224915,
0.23143252730369568,
-0.45860180258750916,
0.21116019785404205,
0.051542703062295914,
0.22252044081687927,
0.09783843159675598,
-0.1563040018081665,
-0.03601939231157303,
0.13183000683784485,
-0.0493440218269825,
0.06609809398651123,
0.20491893589496613,
0.1444840133190155,
0.0021687375847250223,
-0.11256319284439087,
0.14950820803642273,
0.07046148180961609,
-0.5966782569885254,
-0.2847769856452942,
0.14023101329803467,
0.11454567313194275,
-0.21857838332653046,
-0.22295890748500824,
-0.2625516951084137,
-0.4028541147708893,
-0.16191071271896362,
0.14603540301322937,
0.2562428414821625,
-0.03795771673321724,
0.38832733035087585,
0.542961061000824,
0.17845584452152252,
-0.04049196094274521,
-0.032742783427238464,
0.14418688416481018,
0.06966453790664673,
0.1716310828924179,
0.3212607800960541,
-0.2490282654762268,
-0.18906870484352112,
0.18010053038597107,
-0.18167245388031006,
-0.05412527173757553,
0.025687962770462036,
-0.08075378835201263,
0.015501603484153748,
0.06344250589609146,
0.32461658120155334,
0.1424083411693573,
0.4862164855003357,
-0.4675273895263672,
-0.36337921023368835,
-0.24187259376049042,
0.36375758051872253,
0.05072938650846481,
0.13703571259975433,
-0.2009013295173645,
-0.08107312768697739,
-0.21092191338539124,
0.29390040040016174,
-0.27923065423965454,
0.20672889053821564,
0.06030963361263275,
0.1292991042137146,
-0.38331350684165955,
-0.10930033773183823,
-0.0650034174323082,
0.016927866265177727,
0.07199614495038986,
0.28883928060531616,
-0.24905802309513092,
-0.20889174938201904,
0.12142054736614227,
0.09576846659183502,
0.03697989508509636,
-0.580570638179779,
-0.3033239543437958,
-0.15845723450183868,
0.0030393735505640507,
-0.15955913066864014,
-0.4319694936275482,
-0.2644380033016205,
-0.03369232267141342,
-0.1819983720779419,
0.4959419369697571,
-0.0086946627125144,
0.16454319655895233,
0.27077195048332214,
-0.17684099078178406,
0.343540221452713,
0.11441550403833389,
-0.01688503660261631,
0.33388200402259827,
-0.0011246402282267809,
-0.005051872693002224,
0.07243705540895462,
0.20278240740299225,
0.0538879930973053,
0.07775397598743439,
-0.23130081593990326,
-0.30538809299468994,
-0.05282057076692581,
0.46250858902931213,
0.24558202922344208,
0.14430756866931915,
0.1524997353553772,
0.2244812548160553,
0.1997746229171753,
-0.05483303964138031,
-0.2919037938117981,
0.23201844096183777,
0.20117348432540894,
0.030321720987558365,
0.3115657567977905,
0.01922176592051983,
0.16553111374378204,
0.3544037938117981,
-0.007188900373876095,
0.1710478812456131,
-0.6634289622306824,
0.07695607841014862,
0.3633342981338501,
0.08607224375009537,
-0.1353578269481659,
-0.25201860070228577,
-0.3793857991695404,
0.27997705340385437,
-0.016505340114235878,
-0.29891759157180786,
0.12963196635246277,
0.16967591643333435,
-0.07582349330186844,
0.3128221333026886,
0.05489492416381836,
-0.1294255256652832,
0.04048735275864601,
-0.009098759852349758,
0.05402401089668274,
0.36734071373939514,
0.3564634621143341,
-0.017251888290047646,
-0.19250598549842834,
-0.22614003717899323,
0.19922834634780884,
0.015993360430002213,
-0.12834130227565765,
-0.16420775651931763,
-0.11440752446651459,
0.04769797623157501,
-0.33378866314888,
0.02814129739999771,
0.2662842869758606,
0.433802992105484,
0.2356032133102417,
0.012193632312119007,
-0.2688334584236145,
0.004064369015395641,
0.2407894879579544,
0.15261834859848022,
-0.22705237567424774,
-0.018495379015803337,
0.06788106262683868,
-0.046525802463293076,
-0.15678057074546814,
-0.009685874916613102,
0.5891753435134888,
0.21412190794944763,
-0.40627914667129517,
-0.1657726913690567,
-0.11191459000110626,
-0.16720518469810486,
0.030474770814180374,
0.16761915385723114,
0.1938886195421219,
0.11158084869384766,
0.12536530196666718,
0.23483212292194366,
-0.13697054982185364,
0.06201368197798729,
0.13146230578422546,
0.25175541639328003,
-0.24533143639564514,
0.3672526776790619,
0.12143434584140778,
-0.26794949173927307,
-0.3027442693710327,
-0.36042436957359314,
-0.18305043876171112,
0.17410077154636383,
-0.2602978050708771,
-0.38298025727272034,
-0.016671396791934967,
0.2625744342803955,
0.0917009487748146,
-0.21186991035938263,
0.3728056252002716,
0.15172243118286133,
0.15527759492397308,
-0.22086136043071747,
0.09820939600467682,
0.10397760570049286,
0.021862491965293884,
-0.23316475749015808,
0.1711069941520691,
0.2647581398487091,
-0.09548486024141312,
0.38054364919662476,
0.4274759292602539,
0.2128986269235611,
0.04718663915991783,
0.03230614960193634,
0.10431186109781265,
-0.5206048488616943,
0.16698838770389557,
0.3593798577785492,
-0.19799332320690155,
0.08482849597930908,
-0.032378192991018295,
0.08649168908596039,
0.08439620584249496,
0.03885352611541748,
-0.21932551264762878,
0.018262403085827827,
0.020891709253191948,
0.17538458108901978,
0.15762726962566376,
0.4535900354385376,
-0.011771496385335922,
-0.16800512373447418,
-0.0772646814584732,
0.14547745883464813,
-0.051457926630973816,
-0.0009285109699703753,
0.6229222416877747,
0.23276032507419586,
0.2851274907588959,
-0.2586369216442108,
-0.42730870842933655,
-0.3670192062854767,
-0.28457584977149963,
-0.3651994466781616,
0.33577683568000793,
0.16691474616527557,
0.18303392827510834,
-0.09474789351224899,
0.031185142695903778,
0.1386927217245102,
-0.03412828966975212,
0.14672163128852844,
0.22781018912792206,
-0.031304050236940384,
-0.283338338136673,
0.22536700963974,
-0.005203501787036657,
-0.08357749879360199,
-0.015467111021280289,
-0.014850400388240814,
0.09441062808036804,
-0.12636947631835938,
-0.07042348384857178,
-0.28740960359573364,
0.24880899488925934,
-0.1169525533914566,
0.35755839943885803,
0.06945957988500595,
0.3240206837654114,
-0.10327371209859848,
-0.02042943239212036,
0.21135936677455902,
0.3053734600543976,
0.05611296743154526,
-0.18076962232589722,
-0.08017957955598831
] |
Subsets and Splits